/* ===== PAKAILAGI.ID - MAIN STYLESHEET ===== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
  --green: #22C55E;
  --green-dark: #16A34A;
  --green-light: #DCFCE7;
  --black: #222222;
  --gray-dark: #374151;
  --gray: #6B7280;
  --gray-light: #F3F4F6;
  --white: #FFFFFF;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 32px rgba(34,197,94,0.18);
  --radius: 16px;
  --radius-sm: 8px;
  --transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', sans-serif;
  color: var(--black);
  background: var(--white);
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ===== UTILITIES ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }
.text-center { text-align: center; }
.text-green { color: var(--green); }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.gap-3 { gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border-radius: 50px; font-family: 'Poppins', sans-serif;
  font-weight: 600; font-size: 0.95rem; cursor: pointer;
  border: none; transition: var(--transition); white-space: nowrap;
}
.btn-primary { background: var(--green); color: var(--white); }
.btn-primary:hover { background: var(--green-dark); transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.btn-outline { background: transparent; color: var(--green); border: 2px solid var(--green); }
.btn-outline:hover { background: var(--green); color: var(--white); transform: translateY(-2px); }
.btn-dark { background: var(--black); color: var(--white); }
.btn-dark:hover { background: var(--gray-dark); transform: translateY(-2px); }
.btn-sm { padding: 8px 18px; font-size: 0.85rem; }
.btn-lg { padding: 16px 40px; font-size: 1.05rem; }

.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 12px; border-radius: 50px; font-size: 0.75rem; font-weight: 600;
}
.badge-green { background: var(--green-light); color: var(--green-dark); }
.badge-black { background: var(--black); color: var(--white); }
.badge-orange { background: #FEF3C7; color: #D97706; }
.badge-red { background: #FEE2E2; color: #DC2626; }
.badge-purple { background: #EDE9FE; color: #7C3AED; }

.section-title { font-size: 2rem; font-weight: 700; margin-bottom: 8px; }
.section-subtitle { color: var(--gray); font-size: 1rem; margin-bottom: 40px; }

.tag { display: inline-block; background: var(--green-light); color: var(--green-dark); padding: 4px 14px; border-radius: 50px; font-size: 0.8rem; font-weight: 600; margin-bottom: 12px; }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,0.95); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  transition: var(--transition);
}
.navbar.scrolled { box-shadow: var(--shadow); }
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; max-width: 1200px; margin: 0 auto;
}
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo .logo-icon {
  width: 38px; height: 38px; background: var(--green); border-radius: 10px;
  display: flex; align-items: center; justify-content: center; color: white; font-size: 1.2rem;
}
.nav-logo .logo-text { font-size: 1.3rem; font-weight: 800; }
.nav-logo .logo-text span { color: var(--green); }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { font-weight: 500; font-size: 0.95rem; color: var(--gray-dark); transition: var(--transition); }
.nav-links a:hover { color: var(--green); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-search {
  display: flex; align-items: center; background: var(--gray-light);
  border-radius: 50px; padding: 8px 16px; gap: 8px; width: 220px;
}
.nav-search input { border: none; background: transparent; font-family: 'Poppins', sans-serif; font-size: 0.9rem; outline: none; width: 100%; }
.nav-search svg { color: var(--gray); flex-shrink: 0; }
.nav-icon-btn {
  width: 40px; height: 40px; border-radius: 50%; background: var(--gray-light);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  transition: var(--transition); border: none; position: relative;
}
.nav-icon-btn:hover { background: var(--green-light); color: var(--green); }
.nav-badge {
  position: absolute; top: -2px; right: -2px; width: 18px; height: 18px;
  background: var(--green); color: white; border-radius: 50%; font-size: 0.65rem;
  font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
.hamburger span { width: 24px; height: 2px; background: var(--black); border-radius: 2px; transition: var(--transition); }

/* ===== HERO ===== */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  background: linear-gradient(135deg, #F0FDF4 0%, #FFFFFF 50%, #F0FDF4 100%);
  padding-top: 80px; overflow: hidden; position: relative;
}
.hero::before {
  content: ''; position: absolute; top: -100px; right: -100px;
  width: 500px; height: 500px; background: radial-gradient(circle, rgba(34,197,94,0.12) 0%, transparent 70%);
  border-radius: 50%;
}
.hero::after {
  content: ''; position: absolute; bottom: -100px; left: -100px;
  width: 400px; height: 400px; background: radial-gradient(circle, rgba(34,197,94,0.08) 0%, transparent 70%);
  border-radius: 50%;
}
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; position: relative; z-index: 1; }
.hero-tag { display: inline-flex; align-items: center; gap: 8px; background: var(--green-light); color: var(--green-dark); padding: 6px 16px; border-radius: 50px; font-size: 0.85rem; font-weight: 600; margin-bottom: 20px; }
.hero-tag::before { content: '🌱'; }
.hero h1 { font-size: 3.2rem; font-weight: 800; line-height: 1.15; margin-bottom: 20px; }
.hero h1 .highlight { color: var(--green); position: relative; }
.hero h1 .highlight::after {
  content: ''; position: absolute; bottom: 4px; left: 0; right: 0;
  height: 4px; background: var(--green); border-radius: 2px; opacity: 0.3;
}
.hero p { font-size: 1.1rem; color: var(--gray); margin-bottom: 36px; max-width: 480px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 48px; }
.hero-stats { display: flex; gap: 32px; }
.hero-stat { }
.hero-stat .num { font-size: 1.6rem; font-weight: 800; color: var(--black); }
.hero-stat .num span { color: var(--green); }
.hero-stat .label { font-size: 0.8rem; color: var(--gray); }

.hero-visual { position: relative; }
.hero-card-main {
  background: white; border-radius: var(--radius); box-shadow: var(--shadow);
  overflow: hidden; transition: var(--transition);
}
.hero-card-main:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); }
.hero-card-img { width: 100%; height: 280px; object-fit: cover; background: linear-gradient(135deg, #DCFCE7, #BBF7D0); display: flex; align-items: center; justify-content: center; font-size: 5rem; }
.hero-card-body { padding: 20px; }
.hero-card-body h3 { font-weight: 700; margin-bottom: 4px; }
.hero-card-body .price { color: var(--green); font-weight: 700; font-size: 1.2rem; }
.hero-card-body .original { color: var(--gray); text-decoration: line-through; font-size: 0.85rem; margin-left: 8px; }
.hero-float-1 {
  position: absolute; top: -20px; right: -20px;
  background: white; border-radius: var(--radius-sm); padding: 12px 16px;
  box-shadow: var(--shadow); display: flex; align-items: center; gap: 10px;
  animation: float 3s ease-in-out infinite;
}
.hero-float-2 {
  position: absolute; bottom: 40px; left: -30px;
  background: var(--black); color: white; border-radius: var(--radius-sm); padding: 12px 16px;
  box-shadow: var(--shadow); display: flex; align-items: center; gap: 10px;
  animation: float 3s ease-in-out infinite 1.5s;
}
.hero-float-2 .float-icon { font-size: 1.5rem; }
.hero-float-1 .float-icon { font-size: 1.5rem; }
.float-text .t1 { font-size: 0.75rem; font-weight: 600; }
.float-text .t2 { font-size: 0.7rem; color: var(--gray); }
.hero-float-2 .float-text .t2 { color: #9CA3AF; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ===== MARQUEE ===== */
.marquee-section { background: var(--black); padding: 14px 0; overflow: hidden; }
.marquee-track { display: flex; align-items: center; gap: 0; animation: marquee 28s linear infinite; white-space: nowrap; }
.marquee-item {
  display: inline-flex; align-items: center; gap: 8px;
  color: white; font-weight: 500; font-size: 0.82rem;
  letter-spacing: 0.3px; flex-shrink: 0; padding: 0 28px;
}
.marquee-item svg { opacity: 0.9; flex-shrink: 0; }
.marquee-dot {
  width: 4px; height: 4px; border-radius: 50%;
  background: #374151; flex-shrink: 0; display: inline-block;
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ===== CATEGORIES ===== */
.categories { background: var(--white); }
.cat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.cat-card {
  background: var(--gray-light); border-radius: var(--radius); padding: 24px 16px;
  text-align: center; cursor: pointer; transition: var(--transition); border: 2px solid transparent;
}
.cat-card:hover, .cat-card.active {
  background: var(--green-light); border-color: var(--green);
  transform: translateY(-4px); box-shadow: var(--shadow-hover);
}
.cat-icon { width: 56px; height: 56px; margin: 0 auto 12px; display: flex; align-items: center; justify-content: center; background: var(--gray-light); border-radius: 16px; color: #374151; transition: var(--transition); }
.cat-card:hover .cat-icon, .cat-card.active .cat-icon { background: white; color: var(--green); }
.cat-name { font-weight: 600; font-size: 0.9rem; color: var(--gray-dark); }
.cat-count { font-size: 0.75rem; color: var(--gray); margin-top: 2px; }

/* ===== PRODUCT CARD ===== */
.product-card {
  background: white; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: var(--transition); cursor: pointer; position: relative;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.product-img {
  width: 100%; height: 220px; object-fit: cover;
  background: linear-gradient(135deg, #F0FDF4, #DCFCE7);
  display: flex; align-items: center; justify-content: center; font-size: 4rem;
  position: relative; overflow: hidden;
}
.product-img-overlay {
  position: absolute; inset: 0; background: rgba(0,0,0,0.4);
  display: flex; align-items: center; justify-content: center; gap: 12px;
  opacity: 0; transition: var(--transition);
}
.product-card:hover .product-img-overlay { opacity: 1; }
.product-img-overlay button {
  width: 40px; height: 40px; border-radius: 50%; background: white;
  border: none; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: var(--transition); font-size: 1rem;
}
.product-img-overlay button:hover { background: var(--green); color: white; }
.product-badges { position: absolute; top: 12px; left: 12px; display: flex; flex-direction: column; gap: 6px; }
.product-wishlist {
  position: absolute; top: 12px; right: 12px;
  width: 34px; height: 34px; border-radius: 50%; background: white;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12); transition: var(--transition); border: none; font-size: 1rem;
}
.product-wishlist:hover { background: #FEE2E2; }
.product-wishlist.active { background: #FEE2E2; }
.product-body { padding: 16px; }
.product-category { font-size: 0.75rem; color: var(--gray); margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.5px; }
.product-name { font-weight: 600; font-size: 0.95rem; margin-bottom: 8px; line-height: 1.4; }
.product-price { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.product-price .price { font-size: 1.1rem; font-weight: 700; color: var(--green); }
.product-price .original { font-size: 0.8rem; color: var(--gray); text-decoration: line-through; }
.product-price .discount { font-size: 0.75rem; font-weight: 600; color: #DC2626; background: #FEE2E2; padding: 2px 6px; border-radius: 4px; }
.product-meta { display: flex; align-items: center; justify-content: space-between; }
.product-seller { display: flex; align-items: center; gap: 6px; font-size: 0.8rem; color: var(--gray); }
.seller-avatar { width: 22px; height: 22px; border-radius: 50%; background: var(--green-light); display: flex; align-items: center; justify-content: center; font-size: 0.65rem; font-weight: 700; color: var(--green-dark); }
.product-rating { display: flex; align-items: center; gap: 4px; font-size: 0.8rem; color: var(--gray); }
.product-rating .star { color: #F59E0B; }

/* ===== FLASH SALE ===== */
.flash-sale { background: var(--black); color: white; }
.flash-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 32px; }
.flash-title { display: flex; align-items: center; gap: 16px; }
.flash-title h2 { font-size: 1.8rem; font-weight: 800; }
.flash-title .fire { font-size: 2rem; animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.2); } }
.countdown { display: flex; gap: 8px; align-items: center; }
.countdown-item { background: var(--green); border-radius: 8px; padding: 8px 14px; text-align: center; min-width: 52px; }
.countdown-item .num { font-size: 1.4rem; font-weight: 800; display: block; line-height: 1; }
.countdown-item .label { font-size: 0.65rem; opacity: 0.8; }
.countdown-sep { font-size: 1.4rem; font-weight: 800; color: var(--green); }
.flash-sale .product-card { background: #2D2D2D; }
.flash-sale .product-name { color: white; }
.flash-sale .product-category { color: #9CA3AF; }

/* ===== FEATURES ===== */
.features { background: var(--gray-light); }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.feature-card {
  background: white; border-radius: var(--radius); padding: 36px 28px;
  text-align: center; transition: var(--transition); border: 2px solid transparent;
}
.feature-card:hover { border-color: var(--green); transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.feature-icon {
  width: 72px; height: 72px; border-radius: 20px; background: var(--green-light);
  display: flex; align-items: center; justify-content: center; font-size: 2rem;
  margin: 0 auto 20px;
}
.feature-card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 10px; }
.feature-card p { color: var(--gray); font-size: 0.9rem; line-height: 1.7; }

/* ===== HOW IT WORKS ===== */
.how-it-works { background: white; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; }
.steps::before {
  content: ''; position: absolute; top: 36px; left: 10%; right: 10%;
  height: 2px; background: linear-gradient(90deg, var(--green), var(--green-dark));
  z-index: 0;
}
.step { text-align: center; position: relative; z-index: 1; }
.step-num {
  width: 72px; height: 72px; border-radius: 50%; background: var(--green);
  color: white; font-size: 1.5rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 16px;
  box-shadow: 0 4px 16px rgba(34,197,94,0.4);
}
.step h3 { font-weight: 700; margin-bottom: 8px; }
.step p { font-size: 0.85rem; color: var(--gray); }

/* ===== TITIP BARANG ===== */
.titip-section { background: linear-gradient(135deg, var(--black) 0%, #1a1a2e 100%); color: white; }
.titip-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.titip-content .tag { background: rgba(34,197,94,0.2); color: var(--green); }
.titip-content h2 { font-size: 2.2rem; font-weight: 800; margin-bottom: 16px; }
.titip-content p { color: #9CA3AF; margin-bottom: 32px; line-height: 1.8; }
.titip-steps { display: flex; flex-direction: column; gap: 20px; margin-bottom: 36px; }
.titip-step { display: flex; align-items: flex-start; gap: 16px; }
.titip-step-icon { width: 44px; height: 44px; border-radius: 12px; background: rgba(34,197,94,0.15); border: 1px solid rgba(34,197,94,0.3); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0; }
.titip-step-text h4 { font-weight: 600; margin-bottom: 4px; }
.titip-step-text p { font-size: 0.85rem; color: #9CA3AF; }
.titip-form { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius); padding: 32px; backdrop-filter: blur(10px); }
.titip-form h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 24px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 500; margin-bottom: 6px; color: #D1D5DB; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 12px 16px; border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15);
  color: white; font-family: 'Poppins', sans-serif; font-size: 0.9rem; outline: none;
  transition: var(--transition);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--green); background: rgba(34,197,94,0.08); }
.form-group select option { background: var(--black); }
.form-group textarea { resize: vertical; min-height: 80px; }

/* ===== TESTIMONIALS ===== */
.testimonials { background: var(--gray-light); }
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testi-card {
  background: white; border-radius: var(--radius); padding: 28px;
  box-shadow: var(--shadow); transition: var(--transition);
}
.testi-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.testi-stars { color: #F59E0B; font-size: 1rem; margin-bottom: 14px; }
.testi-text { color: var(--gray-dark); font-size: 0.9rem; line-height: 1.7; margin-bottom: 20px; font-style: italic; }
.testi-author { display: flex; align-items: center; gap: 12px; }
.testi-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--green-light); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.testi-name { font-weight: 600; font-size: 0.9rem; }
.testi-role { font-size: 0.78rem; color: var(--gray); }

/* ===== ECO SECTION ===== */
.eco-section { background: linear-gradient(135deg, #F0FDF4, #DCFCE7); }
.eco-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.eco-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.eco-stat-card { background: white; border-radius: var(--radius); padding: 24px; text-align: center; box-shadow: var(--shadow); }
.eco-stat-card .eco-icon { font-size: 2rem; margin-bottom: 8px; }
.eco-stat-card .eco-num { font-size: 1.8rem; font-weight: 800; color: var(--green); }
.eco-stat-card .eco-label { font-size: 0.8rem; color: var(--gray); margin-top: 4px; }
.eco-content .tag { }
.eco-content h2 { font-size: 2rem; font-weight: 800; margin-bottom: 16px; }
.eco-content p { color: var(--gray); line-height: 1.8; margin-bottom: 16px; }
.eco-tips { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }
.eco-tip { display: flex; align-items: center; gap: 12px; font-size: 0.9rem; color: var(--gray-dark); }
.eco-tip::before { content: '✓'; width: 24px; height: 24px; background: var(--green); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 700; flex-shrink: 0; }

/* ===== STORE LOCATION ===== */
.store-section { background: white; }
.store-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.store-map { background: var(--gray-light); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.store-map::after { display: none; }
.store-info h2 { font-size: 2rem; font-weight: 800; margin-bottom: 16px; }
.store-info p { color: var(--gray); margin-bottom: 24px; }
.store-details { display: flex; flex-direction: column; gap: 16px; margin-bottom: 28px; }
.store-detail { display: flex; align-items: flex-start; gap: 14px; }
.store-detail-icon { width: 40px; height: 40px; border-radius: 10px; background: var(--green-light); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
.store-detail-text h4 { font-weight: 600; font-size: 0.9rem; margin-bottom: 2px; }
.store-detail-text p { font-size: 0.85rem; color: var(--gray); }

/* ===== CTA BANNER ===== */
.cta-banner { background: var(--green); color: white; padding: 80px 0; text-align: center; position: relative; overflow: hidden; }
.cta-banner::before { content: ''; position: absolute; top: -50%; left: -10%; width: 300px; height: 300px; background: rgba(255,255,255,0.08); border-radius: 50%; }
.cta-banner::after { content: ''; position: absolute; bottom: -50%; right: -5%; width: 400px; height: 400px; background: rgba(255,255,255,0.06); border-radius: 50%; }
.cta-banner h2 { font-size: 2.5rem; font-weight: 800; margin-bottom: 12px; position: relative; z-index: 1; }
.cta-banner p { font-size: 1.1rem; opacity: 0.9; margin-bottom: 36px; position: relative; z-index: 1; }
.cta-actions { display: flex; gap: 16px; justify-content: center; position: relative; z-index: 1; }
.btn-white { background: white; color: var(--green); }
.btn-white:hover { background: var(--green-light); transform: translateY(-2px); }
.btn-outline-white { background: transparent; color: white; border: 2px solid rgba(255,255,255,0.6); }
.btn-outline-white:hover { background: rgba(255,255,255,0.15); transform: translateY(-2px); }

/* ===== FOOTER ===== */
footer { background: var(--black); color: white; padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand .logo-text { font-size: 1.4rem; font-weight: 800; margin-bottom: 12px; display: block; }
.footer-brand .logo-text span { color: var(--green); }
.footer-brand p { color: #9CA3AF; font-size: 0.9rem; line-height: 1.7; margin-bottom: 20px; }
.social-links { display: flex; gap: 12px; }
.social-link { width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; transition: var(--transition); font-size: 1rem; }
.social-link:hover { background: var(--green); }
.footer-col h4 { font-weight: 700; margin-bottom: 20px; font-size: 0.95rem; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a { color: #9CA3AF; font-size: 0.88rem; transition: var(--transition); }
.footer-col ul li a:hover { color: var(--green); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 20px 0; display: flex; align-items: center; justify-content: space-between; }
.footer-bottom p { color: #6B7280; font-size: 0.85rem; }
.footer-bottom .green { color: var(--green); }

/* ===== LIVE CHAT ===== */
.live-chat-btn {
  position: fixed; bottom: 28px; right: 28px; z-index: 999;
  width: 58px; height: 58px; border-radius: 50%; background: var(--green);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  box-shadow: 0 4px 20px rgba(34,197,94,0.5); transition: var(--transition);
  border: none; font-size: 1.5rem; color: white;
}
.live-chat-btn:hover { transform: scale(1.1); }
.live-chat-btn .chat-badge { position: absolute; top: -2px; right: -2px; width: 18px; height: 18px; background: #DC2626; border-radius: 50%; font-size: 0.65rem; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.chat-popup {
  position: fixed; bottom: 100px; right: 28px; z-index: 998;
  width: 320px; background: white; border-radius: var(--radius); box-shadow: 0 8px 40px rgba(0,0,0,0.15);
  overflow: hidden; display: none; animation: slideUp 0.3s ease;
}
.chat-popup.open { display: block; }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.chat-header { background: var(--green); color: white; padding: 16px 20px; display: flex; align-items: center; gap: 12px; }
.chat-avatar { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,0.2); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.chat-header-info h4 { font-weight: 700; font-size: 0.9rem; }
.chat-header-info p { font-size: 0.75rem; opacity: 0.85; }
.chat-online { width: 8px; height: 8px; background: #4ADE80; border-radius: 50%; display: inline-block; margin-right: 4px; }
.chat-body { padding: 20px; height: 200px; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; }
.chat-msg { max-width: 80%; }
.chat-msg.bot { align-self: flex-start; }
.chat-msg.user { align-self: flex-end; }
.chat-bubble { padding: 10px 14px; border-radius: 12px; font-size: 0.85rem; line-height: 1.5; }
.chat-msg.bot .chat-bubble { background: var(--gray-light); color: var(--black); border-bottom-left-radius: 4px; }
.chat-msg.user .chat-bubble { background: var(--green); color: white; border-bottom-right-radius: 4px; }
.chat-footer { padding: 12px 16px; border-top: 1px solid var(--gray-light); display: flex; gap: 8px; }
.chat-footer input { flex: 1; border: 1px solid var(--gray-light); border-radius: 50px; padding: 8px 14px; font-family: 'Poppins', sans-serif; font-size: 0.85rem; outline: none; }
.chat-footer input:focus { border-color: var(--green); }
.chat-send { width: 36px; height: 36px; border-radius: 50%; background: var(--green); border: none; color: white; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: var(--transition); }
.chat-send:hover { background: var(--green-dark); }

/* ===== PRODUCTS PAGE ===== */
.page-hero { background: linear-gradient(135deg, #F0FDF4, white); padding: 120px 0 60px; }
.page-hero h1 { font-size: 2.5rem; font-weight: 800; margin-bottom: 8px; }
.page-hero p { color: var(--gray); }
.products-layout { display: grid; grid-template-columns: 260px 1fr; gap: 32px; padding: 48px 0; }
.filter-sidebar { }
.filter-card { background: white; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); margin-bottom: 20px; }
.filter-card h3 { font-weight: 700; font-size: 1rem; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--gray-light); }
.filter-option { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; cursor: pointer; }
.filter-option input[type="checkbox"] { accent-color: var(--green); width: 16px; height: 16px; }
.filter-option label { font-size: 0.9rem; cursor: pointer; }
.price-range { display: flex; gap: 8px; align-items: center; }
.price-range input { flex: 1; padding: 8px 12px; border: 1px solid var(--gray-light); border-radius: var(--radius-sm); font-family: 'Poppins', sans-serif; font-size: 0.85rem; outline: none; }
.price-range input:focus { border-color: var(--green); }
.products-main { }
.products-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.products-count { font-size: 0.9rem; color: var(--gray); }
.products-sort { display: flex; align-items: center; gap: 8px; }
.products-sort select { padding: 8px 14px; border: 1px solid var(--gray-light); border-radius: var(--radius-sm); font-family: 'Poppins', sans-serif; font-size: 0.9rem; outline: none; cursor: pointer; }
.products-sort select:focus { border-color: var(--green); }
.products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

/* ===== DASHBOARD ===== */
.dashboard-layout { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; padding-top: 70px; }
.sidebar { background: var(--black); color: white; padding: 32px 0; position: sticky; top: 70px; height: calc(100vh - 70px); overflow-y: auto; }
.sidebar-logo { padding: 0 24px 24px; border-bottom: 1px solid rgba(255,255,255,0.08); margin-bottom: 16px; }
.sidebar-logo .logo-text { font-size: 1.1rem; font-weight: 800; }
.sidebar-logo .logo-text span { color: var(--green); }
.sidebar-nav { padding: 0 12px; }
.sidebar-nav a { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: var(--radius-sm); color: #9CA3AF; font-size: 0.9rem; font-weight: 500; transition: var(--transition); margin-bottom: 4px; }
.sidebar-nav a:hover, .sidebar-nav a.active { background: rgba(34,197,94,0.15); color: var(--green); }
.sidebar-nav a .nav-icon { font-size: 1.1rem; }
.sidebar-section { padding: 16px 24px 8px; font-size: 0.7rem; font-weight: 700; color: #4B5563; text-transform: uppercase; letter-spacing: 1px; }
.dashboard-main { background: var(--gray-light); padding: 32px; }
.dash-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 32px; }
.dash-header h1 { font-size: 1.6rem; font-weight: 800; }
.dash-header p { color: var(--gray); font-size: 0.9rem; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 32px; }
.stat-card { background: white; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.stat-card .stat-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; margin-bottom: 16px; }
.stat-card .stat-value { font-size: 1.6rem; font-weight: 800; margin-bottom: 4px; }
.stat-card .stat-label { font-size: 0.85rem; color: var(--gray); }
.stat-card .stat-change { font-size: 0.8rem; font-weight: 600; margin-top: 8px; }
.stat-change.up { color: var(--green); }
.stat-change.down { color: #DC2626; }
.dash-card { background: white; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); margin-bottom: 24px; }
.dash-card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.dash-card-header h2 { font-size: 1.1rem; font-weight: 700; }
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; padding: 12px 16px; font-size: 0.8rem; font-weight: 600; color: var(--gray); text-transform: uppercase; letter-spacing: 0.5px; border-bottom: 1px solid var(--gray-light); }
.table td { padding: 14px 16px; font-size: 0.9rem; border-bottom: 1px solid var(--gray-light); }
.table tr:last-child td { border-bottom: none; }
.table tr:hover td { background: var(--gray-light); }
.product-thumb { width: 44px; height: 44px; border-radius: 8px; background: var(--green-light); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; }
.status-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 50px; font-size: 0.78rem; font-weight: 600; }
.status-pending { background: #FEF3C7; color: #D97706; }
.status-active { background: var(--green-light); color: var(--green-dark); }
.status-sold { background: #EDE9FE; color: #7C3AED; }
.status-rejected { background: #FEE2E2; color: #DC2626; }

/* ===== UPLOAD FORM ===== */
.upload-zone {
  border: 2px dashed var(--gray-light); border-radius: var(--radius); padding: 40px;
  text-align: center; cursor: pointer; transition: var(--transition);
}
.upload-zone:hover { border-color: var(--green); background: var(--green-light); }
.upload-zone .upload-icon { font-size: 3rem; margin-bottom: 12px; }
.upload-zone p { color: var(--gray); font-size: 0.9rem; }
.upload-zone span { color: var(--green); font-weight: 600; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group-light label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; color: var(--gray-dark); }
.form-group-light input, .form-group-light select, .form-group-light textarea {
  width: 100%; padding: 12px 16px; border-radius: var(--radius-sm);
  background: white; border: 1.5px solid var(--gray-light);
  font-family: 'Poppins', sans-serif; font-size: 0.9rem; outline: none; transition: var(--transition);
}
.form-group-light input:focus, .form-group-light select:focus, .form-group-light textarea:focus { border-color: var(--green); }
.form-group-light textarea { resize: vertical; min-height: 100px; }
.sell-type-options { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.sell-type-card { border: 2px solid var(--gray-light); border-radius: var(--radius); padding: 20px; cursor: pointer; transition: var(--transition); text-align: center; }
.sell-type-card:hover, .sell-type-card.selected { border-color: var(--green); background: var(--green-light); }
.sell-type-card .type-icon { font-size: 2rem; margin-bottom: 8px; }
.sell-type-card h4 { font-weight: 700; margin-bottom: 4px; }
.sell-type-card p { font-size: 0.8rem; color: var(--gray); }

/* ===== PRODUCT DETAIL ===== */
.product-detail-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding: 120px 0 80px; }
.product-gallery { }
.gallery-main { border-radius: var(--radius); overflow: hidden; background: var(--gray-light); height: 400px; display: flex; align-items: center; justify-content: center; font-size: 6rem; margin-bottom: 12px; }
.gallery-thumbs { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; scrollbar-color: var(--green-light) transparent; }
.gallery-thumbs::-webkit-scrollbar { height: 4px; }
.gallery-thumbs::-webkit-scrollbar-track { background: transparent; }
.gallery-thumbs::-webkit-scrollbar-thumb { background: var(--green-light); border-radius: 2px; }
.gallery-thumb { width: 80px; height: 80px; border-radius: var(--radius-sm); background: var(--gray-light); display: flex; align-items: center; justify-content: center; font-size: 1.8rem; cursor: pointer; border: 2px solid transparent; transition: var(--transition); flex-shrink: 0; overflow: hidden; }
.gallery-thumb.active, .gallery-thumb:hover { border-color: var(--green); }
.product-info h1 { font-size: 1.8rem; font-weight: 800; margin-bottom: 12px; }
.product-info .price-block { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.product-info .price-block .price { font-size: 2rem; font-weight: 800; color: var(--green); }
.product-info .price-block .original { font-size: 1rem; color: var(--gray); text-decoration: line-through; }
.product-info .price-block .discount-badge { background: #FEE2E2; color: #DC2626; padding: 4px 10px; border-radius: 6px; font-size: 0.85rem; font-weight: 700; }
.condition-bar { display: flex; gap: 8px; margin-bottom: 20px; }
.condition-item { flex: 1; background: var(--gray-light); border-radius: var(--radius-sm); padding: 12px; text-align: center; }
.condition-item .c-label { font-size: 0.75rem; color: var(--gray); margin-bottom: 4px; }
.condition-item .c-value { font-weight: 700; font-size: 0.9rem; }
.product-desc { color: var(--gray-dark); font-size: 0.9rem; line-height: 1.8; margin-bottom: 24px; }
.seller-card { background: var(--gray-light); border-radius: var(--radius); padding: 16px; display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.seller-card .s-avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--green-light); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; }
.seller-card .s-info h4 { font-weight: 700; font-size: 0.95rem; }
.seller-card .s-info p { font-size: 0.8rem; color: var(--gray); }
.seller-card .s-rating { margin-left: auto; text-align: right; }
.seller-card .s-rating .stars { color: #F59E0B; font-size: 0.9rem; }
.seller-card .s-rating p { font-size: 0.75rem; color: var(--gray); }
.action-buttons { display: flex; gap: 12px; }
.action-buttons .btn { flex: 1; justify-content: center; }

/* ===== MODAL ===== */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 2000; display: none; align-items: center; justify-content: center; backdrop-filter: blur(4px); }
.modal-overlay.open { display: flex; }
.modal { background: white; border-radius: var(--radius); padding: 40px; max-width: 480px; width: 90%; animation: modalIn 0.3s ease; }
@keyframes modalIn { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }
.modal h2 { font-size: 1.5rem; font-weight: 800; margin-bottom: 8px; }
.modal p { color: var(--gray); margin-bottom: 28px; font-size: 0.9rem; }
.modal-tabs { display: flex; gap: 0; margin-bottom: 24px; border: 1.5px solid var(--gray-light); border-radius: var(--radius-sm); overflow: hidden; }
.modal-tab { flex: 1; padding: 10px; text-align: center; font-weight: 600; font-size: 0.9rem; cursor: pointer; transition: var(--transition); background: white; border: none; font-family: 'Poppins', sans-serif; }
.modal-tab.active { background: var(--green); color: white; }
.modal-divider { text-align: center; color: var(--gray); font-size: 0.85rem; margin: 16px 0; position: relative; }
.modal-divider::before, .modal-divider::after { content: ''; position: absolute; top: 50%; width: 40%; height: 1px; background: var(--gray-light); }
.modal-divider::before { left: 0; }
.modal-divider::after { right: 0; }

/* ===== TOAST ===== */
.toast-container { position: fixed; top: 90px; right: 20px; z-index: 3000; display: flex; flex-direction: column; gap: 10px; }
.toast { background: white; border-radius: var(--radius-sm); padding: 14px 20px; box-shadow: 0 4px 20px rgba(0,0,0,0.12); display: flex; align-items: center; gap: 12px; min-width: 280px; animation: toastIn 0.3s ease; border-left: 4px solid var(--green); }
.toast.error { border-left-color: #DC2626; }
.toast.warning { border-left-color: #F59E0B; }
@keyframes toastIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }
.toast-icon { font-size: 1.2rem; }
.toast-text { font-size: 0.88rem; font-weight: 500; }

/* ===== RESPONSIVE — DESKTOP (1024px+) ===== */
@media (max-width: 1024px) {
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .dashboard-layout { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .hero h1 { font-size: 2.6rem; }
  .titip-inner { gap: 40px; }
}

/* ===== RESPONSIVE — TABLET (768px) ===== */
@media (max-width: 768px) {
  /* Navbar */
  .nav-links, .nav-search { display: none; }
  .hamburger { display: flex; }
  .nav-inner { padding: 12px 16px; }
  .nav-logo .logo-text { font-size: 1.1rem; }

  /* Hero */
  .hero { min-height: auto; padding: 100px 0 60px; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; gap: 32px; }
  .hero h1 { font-size: 2rem; }
  .hero p { font-size: 1rem; margin: 0 auto 28px; }
  .hero-visual { display: none; }
  .hero-stats { justify-content: center; gap: 24px; }
  .hero-actions { justify-content: center; }
  .hero-tag { justify-content: center; }

  /* Sections */
  .section { padding: 56px 0; }
  .section-title { font-size: 1.6rem; }
  .section-subtitle { font-size: 0.9rem; }

  /* Grids */
  .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .features-grid { grid-template-columns: 1fr; gap: 16px; }
  .testi-grid { grid-template-columns: 1fr; }
  .titip-inner, .eco-inner, .store-inner { grid-template-columns: 1fr; gap: 32px; }
  .eco-inner { flex-direction: column-reverse; }

  /* Steps */
  .steps { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .steps::before { display: none; }

  /* Categories */
  .cat-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .cat-card { padding: 16px 10px; }
  .cat-icon { width: 44px; height: 44px; }

  /* Products */
  .products-layout { grid-template-columns: 1fr; }
  .filter-sidebar { display: none; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .product-img { height: 180px; }

  /* Product detail */
  .product-detail-layout { grid-template-columns: 1fr; padding-top: 90px; }
  .action-buttons { flex-wrap: wrap; }

  /* Flash sale */
  .flash-header { flex-direction: column; align-items: flex-start; gap: 16px; }

  /* CTA */
  .cta-banner h2 { font-size: 1.8rem; }
  .cta-banner p { font-size: 0.95rem; }
  .cta-actions { flex-direction: column; align-items: center; gap: 12px; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

  /* Forms */
  .form-row { grid-template-columns: 1fr; }
  .sell-type-options { grid-template-columns: 1fr; }

  /* Chat */
  .chat-popup { width: calc(100vw - 32px); right: 16px; }
  .live-chat-btn { bottom: 20px; right: 16px; width: 52px; height: 52px; }

  /* Admin back button */
  .admin-back-btn { bottom: 20px; left: 16px; padding: 8px 14px; font-size: 0.78rem; }
}

/* ===== RESPONSIVE — MOBILE (480px) ===== */
@media (max-width: 480px) {
  /* Base */
  .container { padding: 0 14px; }
  .section { padding: 44px 0; }

  /* Navbar */
  .nav-inner { padding: 10px 14px; }
  .nav-logo .logo-text { font-size: 1rem; }
  .nav-logo .logo-icon img { width: 32px; height: 32px; }
  .nav-actions { gap: 6px; }
  .nav-icon-btn { width: 34px; height: 34px; font-size: 0.85rem; }
  .btn-sm { padding: 7px 14px; font-size: 0.8rem; }

  /* Hero */
  .hero { padding: 90px 0 48px; }
  .hero h1 { font-size: 1.7rem; line-height: 1.2; }
  .hero p { font-size: 0.9rem; }
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-stats { gap: 16px; }
  .hero-stat .num { font-size: 1.3rem; }

  /* Categories */
  .cat-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .cat-card { padding: 12px 8px; border-radius: 12px; }
  .cat-icon { width: 36px; height: 36px; border-radius: 10px; }
  .cat-name { font-size: 0.75rem; }
  .cat-count { font-size: 0.65rem; }

  /* Products */
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .product-img { height: 160px; }
  .product-body { padding: 12px; }
  .product-name { font-size: 0.85rem; }
  .product-price .price { font-size: 0.95rem; }
  .product-price .original { display: none; }

  /* Grids */
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); gap: 12px; }

  /* Steps */
  .steps { grid-template-columns: 1fr 1fr; gap: 16px; }
  .step-num { width: 52px; height: 52px; font-size: 1.2rem; }

  /* Flash sale */
  .countdown { gap: 4px; }
  .countdown-item { padding: 6px 10px; min-width: 42px; }
  .countdown-item .num { font-size: 1.1rem; }
  .flash-title h2 { font-size: 1.4rem; }

  /* Titip section */
  .titip-form { padding: 20px; }

  /* Eco stats */
  .eco-stats { grid-template-columns: 1fr 1fr; gap: 12px; }
  .eco-stat-card { padding: 16px; }
  .eco-stat-card .eco-num { font-size: 1.4rem; }

  /* CTA */
  .cta-banner { padding: 56px 0; }
  .cta-banner h2 { font-size: 1.5rem; }
  .cta-actions .btn { width: 100%; max-width: 280px; justify-content: center; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  footer { padding: 40px 0 0; }

  /* Section titles */
  .section-title { font-size: 1.4rem; }
  .page-hero h1 { font-size: 1.8rem; }
  .page-hero { padding: 90px 0 40px; }

  /* Product detail */
  .gallery-main { height: 260px; }
  .condition-bar { flex-wrap: wrap; }
  .condition-item { min-width: 45%; }

  /* Sell page */
  .titip-inner { gap: 24px; }

  /* Chat */
  .chat-popup { width: calc(100vw - 28px); right: 14px; bottom: 86px; }
  .chat-body { height: 160px; }
}

/* ===== MOBILE BOTTOM NAV (opsional, untuk UX lebih baik) ===== */
@media (max-width: 480px) {
  /* Pastikan konten tidak tertutup floating buttons */
  body { padding-bottom: 0; }

  /* Marquee lebih kecil di mobile */
  .marquee-item { font-size: 0.75rem; padding: 0 18px; }
  .marquee-section { padding: 10px 0; }

  /* Testimonial */
  .testi-card { padding: 20px; }
  .testi-text { font-size: 0.85rem; }

  /* Store section */
  .store-inner { gap: 24px; }
  .store-info h2 { font-size: 1.5rem; }

  /* Feature cards */
  .feature-card { padding: 24px 20px; }
  .feature-icon { width: 56px; height: 56px; }
}

/* ===== TOUCH IMPROVEMENTS ===== */
@media (hover: none) {
  /* Hapus hover effects di touchscreen */
  .product-card:hover { transform: none; }
  .cat-card:hover { transform: none; }
  .feature-card:hover { transform: none; }
  .testi-card:hover { transform: none; }
  .btn-primary:hover { transform: none; }
  .btn-outline:hover { transform: none; }
  /* Tapi tetap tunjukkan overlay saat tap */
  .product-img-overlay { display: none; }
}

/* ===== FAQ ===== */
.faq-item { background: white; border-radius: var(--radius-sm); overflow: hidden; border: 1.5px solid var(--gray-light); transition: var(--transition); }
.faq-item.open { border-color: var(--green); }
.faq-q { width: 100%; background: none; border: none; padding: 18px 20px; text-align: left; font-family: 'Poppins', sans-serif; font-size: 0.95rem; font-weight: 600; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq-q span { font-size: 1.3rem; color: var(--green); transition: var(--transition); flex-shrink: 0; }
.faq-item.open .faq-q span { transform: rotate(45deg); }
.faq-a { display: none; padding: 0 20px 18px; color: var(--gray); font-size: 0.88rem; line-height: 1.7; }
.faq-item.open .faq-a { display: block; }

/* ===== LOGO POPUP ANIMATION ===== */
@keyframes popIn {
  from { opacity: 0; transform: scale(0.85); }
  to   { opacity: 1; transform: scale(1); }
}

/* ===== ADMIN BACK BUTTON ===== */
.admin-back-btn {
  position: fixed;
  bottom: 28px;
  left: 28px;
  z-index: 998;
  display: none;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--black);
  color: white;
  border: none;
  border-radius: 50px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  transition: all 0.25s;
  text-decoration: none;
  white-space: nowrap;
}
.admin-back-btn:hover {
  background: #374151;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.35);
}
.admin-back-btn .back-icon { font-size: 1rem; }
.admin-back-btn .back-role {
  background: var(--green);
  color: white;
  padding: 2px 8px;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 700;
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-20px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ===== CHAT QUICK REPLY BUTTONS ===== */
.chat-quick-btn {
  background: var(--green-light);
  color: var(--green-dark);
  border: 1.5px solid var(--green);
  border-radius: 50px;
  padding: 5px 12px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.chat-quick-btn:hover {
  background: var(--green);
  color: white;
}

/* ===== SAFE AREA — iPhone notch & Dynamic Island ===== */
@supports (padding: max(0px)) {
  .navbar { padding-left: max(0px, env(safe-area-inset-left)); padding-right: max(0px, env(safe-area-inset-right)); }
  .live-chat-btn { bottom: max(28px, calc(env(safe-area-inset-bottom) + 16px)); }
  .admin-back-btn { bottom: max(28px, calc(env(safe-area-inset-bottom) + 16px)); }
  .chat-popup { bottom: max(100px, calc(env(safe-area-inset-bottom) + 88px)); }
}

/* ===== DARK MODE ===== */
[data-theme="dark"] {
  --black: #F9FAFB;
  --gray-dark: #E5E7EB;
  --gray: #9CA3AF;
  --gray-light: #1F2937;
  --white: #111827;
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
  --shadow-hover: 0 8px 32px rgba(34,197,94,0.25);
}
[data-theme="dark"] body { background: #111827; color: #F9FAFB; }
[data-theme="dark"] .navbar { background: rgba(17,24,39,0.95); border-bottom-color: rgba(255,255,255,0.08); }
[data-theme="dark"] .nav-search { background: #1F2937; }
[data-theme="dark"] .nav-search input { color: #F9FAFB; }
[data-theme="dark"] .nav-icon-btn { background: #1F2937; color: #F9FAFB; }
[data-theme="dark"] .hero { background: linear-gradient(135deg, #0F1F14 0%, #111827 50%, #0F1F14 100%); }
[data-theme="dark"] .product-card { background: #1F2937; }
[data-theme="dark"] .product-name { color: #F9FAFB; }
[data-theme="dark"] .product-category { color: #9CA3AF; }
[data-theme="dark"] .feature-card { background: #1F2937; }
[data-theme="dark"] .feature-card h3 { color: #F9FAFB; }
[data-theme="dark"] .testi-card { background: #1F2937; }
[data-theme="dark"] .testi-text { color: #D1D5DB; }
[data-theme="dark"] .filter-card { background: #1F2937; }
[data-theme="dark"] .dash-card { background: #1F2937; }
[data-theme="dark"] .stat-card { background: #1F2937; }
[data-theme="dark"] .table th { color: #9CA3AF; border-bottom-color: #374151; }
[data-theme="dark"] .table td { border-bottom-color: #374151; }
[data-theme="dark"] .table tr:hover td { background: #374151; }
[data-theme="dark"] .eco-stat-card { background: #1F2937; }
[data-theme="dark"] .categories { background: #111827; }
[data-theme="dark"] .cat-card { background: #1F2937; }
[data-theme="dark"] .cat-name { color: #E5E7EB; }
[data-theme="dark"] .how-it-works { background: #111827; }
[data-theme="dark"] .store-section { background: #111827; }
[data-theme="dark"] .store-map { background: #1F2937; }
[data-theme="dark"] .testimonials { background: #0F172A; }
[data-theme="dark"] .features { background: #0F172A; }
[data-theme="dark"] .eco-section { background: linear-gradient(135deg, #0F1F14, #111827); }
[data-theme="dark"] .chat-popup { background: #1F2937; }
[data-theme="dark"] .chat-msg.bot .chat-bubble { background: #374151; color: #F9FAFB; }
[data-theme="dark"] .chat-footer { border-top-color: #374151; }
[data-theme="dark"] .chat-footer input { background: #374151; border-color: #4B5563; color: #F9FAFB; }
[data-theme="dark"] .modal { background: #1F2937; }
[data-theme="dark"] .modal h2 { color: #F9FAFB; }
[data-theme="dark"] .form-group-light input,
[data-theme="dark"] .form-group-light select,
[data-theme="dark"] .form-group-light textarea { background: #374151; border-color: #4B5563; color: #F9FAFB; }
[data-theme="dark"] .page-hero { background: linear-gradient(135deg, #0F1F14, #111827); }
[data-theme="dark"] .products-sort select { background: #1F2937; border-color: #374151; color: #F9FAFB; }
[data-theme="dark"] footer { background: #0F172A; }
[data-theme="dark"] .footer-bottom { border-top-color: rgba(255,255,255,0.06); }

/* Dark mode toggle button */
.dark-toggle {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--gray-light); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; transition: var(--transition);
  flex-shrink: 0;
}
.dark-toggle:hover { background: var(--green-light); transform: rotate(20deg); }
