/* ============================================================
   KAPALI ORGANIK — Premium Design System
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,600;0,700;1,600&display=swap');

/* ── CSS Custom Properties ───────────────────────────────── */
:root {
  /* Palette */
  --forest:       #1a3c2b;
  --forest-mid:   #2F5233;
  --forest-light: #3d6b45;
  --sage:         #7aab87;
  --sage-light:   #b8d8be;
  --cream:        #faf8f3;
  --cream-dark:   #f2ede3;
  --gold:         #c9a84c;
  --gold-light:   #e5c97e;
  --gold-dark:    #a8862e;
  --ivory:        #fffff8;
  --charcoal:     #1c2330;
  --slate:        #4a5568;
  --muted:        #8a9ab0;
  --white:        #ffffff;

  /* Semantic */
  --primary-color:   var(--forest-mid);
  --primary-light:   #EDF5EF;
  --accent-color:    var(--gold);
  --accent-hover:    var(--gold-dark);
  --text-dark:       var(--charcoal);
  --text-light:      var(--slate);
  --text-muted:      var(--muted);
  --bg-color:        var(--white);
  --bg-alt:          var(--cream);
  --border-color:    #E2E8E4;
  --link-color:      #0F6EA1;

  /* Shadows */
  --shadow-xs:  0 1px 3px rgba(0,0,0,0.06);
  --shadow-sm:  0 2px 8px rgba(0,0,0,0.08);
  --shadow-md:  0 8px 24px rgba(0,0,0,0.10);
  --shadow-lg:  0 20px 50px rgba(0,0,0,0.12);
  --shadow-xl:  0 30px 80px rgba(0,0,0,0.15);
  --shadow-gold: 0 8px 24px rgba(201,168,76,0.30);

  /* Radii */
  --radius-sm:  8px;
  --radius-md:  14px;
  --radius-lg:  20px;
  --radius-xl:  30px;
  --radius-full: 9999px;

  /* Transitions */
  --transition:      all 0.30s cubic-bezier(0.4,0,0.2,1);
  --transition-slow: all 0.50s cubic-bezier(0.4,0,0.2,1);
  --transition-fast: all 0.15s cubic-bezier(0.4,0,0.2,1);

  /* Glassmorphism */
  --glass-bg:     rgba(255,255,255,0.70);
  --glass-border: rgba(255,255,255,0.50);
  --glass-blur:   blur(18px) saturate(180%);
}

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Outfit', sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-color);
  overflow-x: hidden;
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  color: var(--forest);
  line-height: 1.2;
}

a {
  color: var(--forest-mid);
  transition: var(--transition);
  text-decoration: none;
}
a:hover { color: var(--gold); text-decoration: none; }

img { max-width: 100%; display: block; }

/* ── Utility ──────────────────────────────────────────────── */
.text-gold    { color: var(--gold) !important; }
.text-forest  { color: var(--forest) !important; }
.bg-forest    { background-color: var(--forest) !important; }
.bg-cream     { background-color: var(--cream) !important; }
.bg-alt       { background-color: var(--cream) !important; }

.glass {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
}

.section-padding { padding: 96px 0; }

/* Fade-in animation for elements entering viewport */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Section Titles ───────────────────────────────────────── */
.section-title {
  text-align: center;
  margin-bottom: 56px;
}
.section-title .overline {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
  position: relative;
  padding: 0 16px;
}
.section-title .overline::before,
.section-title .overline::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 30px;
  height: 1px;
  background: var(--gold);
}
.section-title .overline::before { right: 100%; transform: translateX(16px); }
.section-title .overline::after  { left:  100%; transform: translateX(-16px); }

.section-title h2 {
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--forest);
}
.section-title p {
  color: var(--text-light);
  max-width: 560px;
  margin: 0 auto;
  font-size: 16px;
}

/* ── Top Bar ──────────────────────────────────────────────── */
.top-bar {
  background: linear-gradient(90deg, var(--forest) 0%, var(--forest-mid) 100%);
  color: rgba(255,255,255,0.82);
  font-size: 12.5px;
  padding: 8px 0;
  letter-spacing: 0.3px;
}
.top-bar a {
  color: rgba(255,255,255,0.75);
  transition: var(--transition-fast);
}
.top-bar a:hover { color: var(--gold-light); }
.top-bar .text-success { color: var(--gold-light) !important; }
.top-bar i { color: var(--gold-light); }

/* ── Main Header / Navbar ─────────────────────────────────── */
.main-header {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid rgba(255,255,255,0.3);
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 24px rgba(26,60,43,0.06);
  transition: var(--transition);
}

.main-header.scrolled {
  padding: 10px 0;
  box-shadow: 0 4px 32px rgba(26,60,43,0.14);
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.site-logo img { max-height: 46px; }
.site-logo-text {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 20px;
  color: var(--forest);
  line-height: 1.1;
}
.site-logo-text span { color: var(--gold); display: block; font-size: 10px; font-weight: 500; letter-spacing: 2px; text-transform: uppercase; }

/* Nav Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-links a {
  color: var(--text-dark);
  font-weight: 600;
  font-size: 14.5px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  position: relative;
  transition: var(--transition-fast);
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--gold);
  transition: var(--transition);
  transform: translateX(-50%);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--forest);
}
.nav-links a:hover::after,
.nav-links a.active::after {
  width: 60%;
}

/* Header Icons */
.header-icons {
  display: flex;
  gap: 8px;
  align-items: center;
}
.header-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  color: var(--text-dark);
  font-size: 16px;
  position: relative;
  transition: var(--transition-fast);
  border: 1px solid transparent;
}
.header-icons a:hover {
  background: var(--primary-light);
  color: var(--forest);
  border-color: var(--border-color);
}

.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: white;
  font-size: 9px;
  font-weight: 800;
  height: 18px;
  min-width: 18px;
  padding: 0 4px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(201,168,76,0.40);
}

/* Mobile menu toggle */
.mobile-menu-toggle {
  border: none;
  background: none;
  padding: 6px;
  color: var(--text-dark);
  font-size: 20px;
  cursor: pointer;
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn-primary {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  border: none;
  color: var(--white);
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 14.5px;
  padding: 11px 26px;
  border-radius: var(--radius-full);
  transition: var(--transition);
  letter-spacing: 0.3px;
  position: relative;
  overflow: hidden;
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.12);
  opacity: 0;
  transition: var(--transition-fast);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
  color: var(--white);
}
.btn-primary:hover::before { opacity: 1; }
.btn-primary:active { transform: translateY(0); }

.btn-outline-primary {
  background: transparent;
  border: 2px solid var(--gold);
  color: var(--gold);
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 14.5px;
  padding: 10px 24px;
  border-radius: var(--radius-full);
  transition: var(--transition);
}
.btn-outline-primary:hover {
  background: var(--gold);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

.btn-forest {
  background: linear-gradient(135deg, var(--forest-mid) 0%, var(--forest) 100%);
  border: none;
  color: var(--white);
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 14.5px;
  padding: 11px 26px;
  border-radius: var(--radius-full);
  transition: var(--transition);
}
.btn-forest:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(47,82,51,0.35);
  color: white;
}

.btn-add-to-cart {
  background: linear-gradient(135deg, var(--forest-mid) 0%, var(--forest-light) 100%);
  border: none;
  color: white;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  border-radius: var(--radius-full);
  transition: var(--transition);
  padding: 12px 24px;
}
.btn-add-to-cart:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(47,82,51,0.35);
  color: white;
}

/* ── Hero Section ─────────────────────────────────────────── */
.hero-section {
  background: linear-gradient(135deg, #eef7f1 0%, #f5f1e8 50%, #eef3f5 100%);
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
  min-height: 88vh;
  display: flex;
  align-items: center;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,168,76,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero-section::after {
  content: '';
  position: absolute;
  bottom: -150px;
  left: -150px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(47,82,51,0.07) 0%, transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(201,168,76,0.12);
  border: 1px solid rgba(201,168,76,0.35);
  color: var(--gold-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 20px;
}
.hero-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(1.4); opacity: 0.7; }
}

.hero-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(38px, 5.5vw, 68px);
  font-weight: 900;
  line-height: 1.05;
  color: var(--forest);
  margin-bottom: 22px;
}
.hero-title .accent {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-title .italic {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 600;
  color: var(--forest-mid);
}

.hero-subtitle {
  font-size: 17px;
  color: var(--slate);
  max-width: 480px;
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-stats {
  display: flex;
  gap: 36px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border-color);
}
.hero-stat-number {
  font-family: 'Outfit', sans-serif;
  font-size: 26px;
  font-weight: 800;
  color: var(--forest);
  line-height: 1;
}
.hero-stat-label {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}

.hero-image-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-image-blob {
  position: absolute;
  width: 90%;
  height: 90%;
  background: linear-gradient(135deg, rgba(47,82,51,0.06), rgba(201,168,76,0.08));
  border-radius: 50% 40% 60% 30% / 40% 60% 40% 55%;
  animation: blob-morph 8s ease-in-out infinite;
}
@keyframes blob-morph {
  0%, 100% { border-radius: 50% 40% 60% 30% / 40% 60% 40% 55%; }
  33%       { border-radius: 60% 35% 45% 55% / 55% 45% 60% 40%; }
  66%       { border-radius: 35% 60% 55% 45% / 60% 40% 55% 45%; }
}

.hero-image-wrap img {
  position: relative;
  z-index: 2;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  max-height: 540px;
  object-fit: cover;
  border: 6px solid rgba(255,255,255,0.8);
}

/* Floating leaf decorations */
.hero-leaf {
  position: absolute;
  opacity: 0.18;
  animation: float-leaf 6s ease-in-out infinite;
  font-size: 80px;
  color: var(--forest-mid);
  z-index: 1;
}
.hero-leaf:nth-child(2) { animation-delay: -2s; animation-duration: 7s; }
.hero-leaf:nth-child(3) { animation-delay: -4s; animation-duration: 5s; }

@keyframes float-leaf {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  33%       { transform: translateY(-16px) rotate(6deg); }
  66%       { transform: translateY(8px) rotate(-4deg); }
}

/* Trust badges in hero */
.hero-trust-row {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.trust-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: 8px 16px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-dark);
  box-shadow: var(--shadow-xs);
}
.trust-badge i {
  color: var(--forest-mid);
  font-size: 14px;
}

/* ── Category Section ─────────────────────────────────────── */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 20px;
}

.category-box {
  background: var(--white);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px 20px 24px;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
  display: block;
  text-decoration: none;
  color: var(--text-dark);
  position: relative;
  overflow: hidden;
}
.category-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--forest-mid), var(--forest));
  opacity: 0;
  transition: var(--transition);
  border-radius: inherit;
}
.category-box:hover {
  border-color: var(--forest-mid);
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(47,82,51,0.18);
  color: white;
}
.category-box:hover::before { opacity: 1; }

.category-box .cat-icon {
  position: relative;
  z-index: 1;
  font-size: 38px;
  margin-bottom: 16px;
  color: var(--forest-mid);
  transition: var(--transition);
  display: block;
}
.category-box:hover .cat-icon { color: rgba(255,255,255,0.9); }

.category-box h5 {
  position: relative;
  z-index: 1;
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 6px;
  color: inherit;
  transition: var(--transition);
}
.category-box small {
  position: relative;
  z-index: 1;
  font-size: 11.5px;
  color: var(--muted);
  transition: var(--transition);
}
.category-box:hover small { color: rgba(255,255,255,0.65); }

/* ── Product Cards ────────────────────────────────────────── */
.product-card {
  background: var(--white);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.product-card:hover {
  border-color: rgba(47,82,51,0.25);
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
}

.product-img-wrap {
  position: relative;
  padding-bottom: 95%;
  overflow: hidden;
  background: var(--cream);
}
.product-img-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 20px;
  transition: transform 0.55s cubic-bezier(0.4,0,0.2,1);
}
.product-card:hover .product-img-wrap img {
  transform: scale(1.07);
}

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: white;
  font-size: 10.5px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  z-index: 3;
  letter-spacing: 0.5px;
}

.product-wishlist-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  background: white;
  border: 1.5px solid var(--border-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
  transition: var(--transition-fast);
  z-index: 3;
}
.product-wishlist-btn:hover {
  background: #fff0f3;
  border-color: #f4b8c8;
  color: #e74c6b;
}

.add-to-cart-overlay {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  opacity: 0;
  transition: var(--transition);
  z-index: 4;
  white-space: nowrap;
}
.product-card:hover .add-to-cart-overlay {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.product-body {
  padding: 16px 18px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.rating {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #f5a623;
  font-size: 12px;
  margin-bottom: 8px;
}
.rating .count {
  color: var(--muted);
  font-size: 11px;
}

.product-category-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 6px;
}

.product-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-decoration: none;
  font-family: 'Outfit', sans-serif;
  line-height: 1.35;
  flex: 1;
}
.product-title:hover { color: var(--forest); }

.product-price {
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: var(--forest);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
}
.product-price del {
  font-size: 13px;
  color: var(--muted);
  font-weight: 400;
}
.product-price .save-tag {
  font-size: 11px;
  font-weight: 700;
  background: rgba(47,82,51,0.1);
  color: var(--forest-mid);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

/* ── Promo Banner ─────────────────────────────────────────── */
.promo-banner {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  background-size: cover;
  background-position: center;
  padding: 60px 44px;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 320px;
  cursor: pointer;
  transition: var(--transition);
}
.promo-banner:hover { transform: translateY(-4px); box-shadow: var(--shadow-xl); }
.promo-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(26,60,43,0.85) 0%, rgba(26,60,43,0.3) 60%, transparent 100%);
  z-index: 1;
  transition: var(--transition);
}
.promo-banner:hover::before { background: linear-gradient(0deg, rgba(26,60,43,0.90) 0%, rgba(26,60,43,0.45) 60%, transparent 100%); }
.promo-content { position: relative; z-index: 2; }
.promo-content .badge-tag {
  display: inline-block;
  background: rgba(201,168,76,0.9);
  color: white;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 10px;
}
.promo-content h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: white;
  margin-bottom: 8px;
}
.promo-content p { color: rgba(255,255,255,0.70); font-size: 14px; margin-bottom: 18px; }

/* ── Features / Why Choose Us ────────────────────────────── */
.feature-icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(47,82,51,0.1), rgba(201,168,76,0.08));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 24px;
  color: var(--forest-mid);
  transition: var(--transition);
}
.feature-card:hover .feature-icon-wrap {
  background: linear-gradient(135deg, var(--forest-mid), var(--forest-light));
  color: white;
  transform: rotate(-5deg) scale(1.05);
}
.feature-card {
  padding: 28px 24px;
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--border-color);
  background: var(--white);
  transition: var(--transition);
  height: 100%;
}
.feature-card:hover {
  border-color: rgba(47,82,51,0.2);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

/* ── Newsletter ───────────────────────────────────────────── */
.newsletter-section {
  background: linear-gradient(135deg, var(--forest) 0%, var(--forest-mid) 100%);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.newsletter-section::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(201,168,76,0.10);
}
.newsletter-section::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -80px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
}
.newsletter-input-wrap {
  display: flex;
  background: rgba(255,255,255,0.10);
  border: 1.5px solid rgba(255,255,255,0.20);
  border-radius: var(--radius-full);
  padding: 6px 6px 6px 24px;
  max-width: 540px;
  margin: 0 auto;
  backdrop-filter: blur(10px);
}
.newsletter-input-wrap input {
  background: none;
  border: none;
  outline: none;
  color: white;
  font-size: 15px;
  flex: 1;
  min-width: 0;
}
.newsletter-input-wrap input::placeholder { color: rgba(255,255,255,0.5); }

/* ── Footer ───────────────────────────────────────────────── */
.footer {
  background: linear-gradient(180deg, var(--forest) 0%, #0f2219 100%);
  color: rgba(255,255,255,0.75);
  padding: 72px 0 0;
}

.footer-brand p {
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
  max-width: 280px;
}

.footer h5 {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 22px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links li { margin-bottom: 10px; }
.footer-links a {
  color: rgba(255,255,255,0.60);
  font-size: 14px;
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.footer-links a::before {
  content: '→';
  font-size: 11px;
  opacity: 0;
  transform: translateX(-6px);
  transition: var(--transition-fast);
  color: var(--gold-light);
}
.footer-links a:hover {
  color: var(--gold-light);
  padding-left: 6px;
}
.footer-links a:hover::before { opacity: 1; transform: translateX(0); }

.social-links { display: flex; gap: 10px; margin-top: 20px; }
.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.70);
  font-size: 14px;
  transition: var(--transition);
}
.social-links a:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: white;
  transform: translateY(-3px);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 14px;
  color: rgba(255,255,255,0.60);
}
.footer-contact-item i {
  color: var(--gold-light);
  font-size: 14px;
  margin-top: 2px;
  flex-shrink: 0;
}

.footer-bottom {
  margin-top: 56px;
  padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,0.07);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: rgba(255,255,255,0.40);
}
.footer-bottom span { color: var(--gold-light); font-weight: 600; }

.payment-icons {
  display: flex;
  align-items: center;
  gap: 8px;
}
.payment-icon {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.60);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

/* ── WhatsApp Float ───────────────────────────────────────── */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: linear-gradient(135deg, #25d366, #128c53);
  color: white;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  box-shadow: 0 8px 24px rgba(37,211,102,0.40);
  z-index: 999;
  transition: var(--transition);
  animation: whatsapp-bounce 2s ease-in-out infinite 3s;
}
.whatsapp-float:hover {
  color: white;
  transform: scale(1.12);
  box-shadow: 0 12px 32px rgba(37,211,102,0.50);
}
@keyframes whatsapp-bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-6px); }
}

/* ── Toast Notifications ──────────────────────────────────── */
.toast-container {
  position: fixed;
  bottom: 100px;
  right: 30px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.kpl-toast {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--white);
  border: 1.5px solid var(--border-color);
  border-left: 4px solid var(--forest-mid);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  box-shadow: var(--shadow-lg);
  min-width: 280px;
  animation: toast-in 0.35s cubic-bezier(0.4,0,0.2,1);
}
.kpl-toast.success { border-left-color: var(--forest-mid); }
.kpl-toast.error   { border-left-color: #e53e3e; }
.kpl-toast .toast-icon { font-size: 20px; }
.kpl-toast.success .toast-icon { color: var(--forest-mid); }
.kpl-toast.error   .toast-icon { color: #e53e3e; }
.kpl-toast .toast-msg { font-size: 14px; font-weight: 600; color: var(--text-dark); }
.kpl-toast .toast-close {
  margin-left: auto;
  font-size: 16px;
  color: var(--muted);
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ── Dropdown ─────────────────────────────────────────────── */
.dropdown-menu {
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  min-width: 180px;
  animation: dropdown-in 0.18s ease;
}
@keyframes dropdown-in {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.dropdown-item {
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition-fast);
}
.dropdown-item:hover {
  background: var(--primary-light);
  color: var(--forest);
}

/* ── Cart Page ────────────────────────────────────────────── */
.cart-item-img {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-sm);
  object-fit: contain;
  background: var(--cream);
  padding: 8px;
  border: 1.5px solid var(--border-color);
}
.cart-summary-card {
  background: var(--cream);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: sticky;
  top: 100px;
}

/* ── Product Detail Page ──────────────────────────────────── */
.pd-image-main {
  border-radius: var(--radius-lg);
  border: 2px solid var(--border-color);
  overflow: hidden;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 480px;
}
.pd-image-main img {
  max-height: 460px;
  object-fit: contain;
  padding: 20px;
  transition: transform 0.4s ease;
}
.pd-image-main:hover img { transform: scale(1.04); }

.pd-thumb {
  width: 70px;
  height: 70px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border-color);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition-fast);
  background: var(--cream);
}
.pd-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
}
.pd-thumb:hover, .pd-thumb.active {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(201,168,76,0.20);
}

.pd-badge-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.pd-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--primary-light);
  color: var(--forest);
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.buy-box {
  background: var(--white);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: sticky;
  top: 100px;
  box-shadow: var(--shadow-sm);
}
.buy-box .price-main {
  font-family: 'Outfit', sans-serif;
  font-size: 32px;
  font-weight: 900;
  color: var(--forest);
  line-height: 1;
}
.buy-box .price-original {
  font-size: 14px;
  color: var(--muted);
  text-decoration: line-through;
}
.buy-box .discount-pill {
  display: inline-block;
  background: rgba(47,82,51,0.10);
  color: var(--forest);
  font-size: 12px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.stock-in  { color: #22c55e; font-weight: 700; font-size: 14px; }
.stock-out { color: #ef4444; font-weight: 700; font-size: 14px; }

/* Qty selector */
.qty-selector {
  display: flex;
  align-items: center;
  gap: 0;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-sm);
  overflow: hidden;
  width: fit-content;
}
.qty-btn {
  width: 38px;
  height: 38px;
  background: var(--cream);
  border: none;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}
.qty-btn:hover { background: var(--primary-light); color: var(--forest); }
.qty-input {
  width: 48px;
  text-align: center;
  border: none;
  border-left: 1.5px solid var(--border-color);
  border-right: 1.5px solid var(--border-color);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark);
  outline: none;
  height: 38px;
  background: white;
}

/* ── Nav Tabs ─────────────────────────────────────────────── */
.nav-tabs {
  border-bottom: 2px solid var(--border-color);
  gap: 4px;
}
.nav-tabs .nav-link {
  border: none;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  color: var(--slate);
  font-weight: 600;
  font-size: 14.5px;
  padding: 10px 18px;
  transition: var(--transition-fast);
  margin-bottom: -2px;
}
.nav-tabs .nav-link:hover { color: var(--forest); }
.nav-tabs .nav-link.active {
  color: var(--forest);
  border-bottom-color: var(--forest-mid);
  background: none;
}

/* ── Breadcrumb ───────────────────────────────────────────── */
.breadcrumb { background: none; padding: 0; margin: 0; }
.breadcrumb-item a { color: var(--muted); font-size: 13px; }
.breadcrumb-item.active { color: var(--text-dark); font-size: 13px; font-weight: 600; }
.breadcrumb-item + .breadcrumb-item::before { color: var(--border-color); }

/* ── Responsive — Comprehensive ──────────────────────────── */

/* ── Large Desktop (≥1200px) ─── */
@media (min-width: 1200px) {
  .pcard-img-box { aspect-ratio: 1 / 1; }
}

/* ── Tablet Landscape / Small Desktop (≤991px) ─── */
@media (max-width: 991px) {
  /* Layout */
  .hero-section { min-height: auto; padding: 60px 0; }
  .hero-title { font-size: 36px; }
  .hero-stats { gap: 20px; }
  .hero-image-wrap { margin-top: 40px; }
  .section-padding { padding: 64px 0; }

  /* Nav hides on tablet — mobile offcanvas takes over */
  .main-nav { display: none; }

  /* Footer grid 2 columns */
  .footer-grid { grid-template-columns: 1fr 1fr !important; gap: 32px; }

  /* Products page: sidebar hidden by default, handled by Bootstrap d-none d-md-block */
  .filter-sidebar { display: none; }
  .product-grid-col { width: 100% !important; }

  /* Product cards — 3 per row on tablet */
  .col-xl-3 { width: 33.333%; }
}

/* ── Tablet Portrait (≤767px) ─── */
@media (max-width: 767px) {
  /* Typography */
  .hero-title { font-size: 30px; }
  .hero-subtitle { font-size: 15px; }
  .hero-stats { gap: 16px; flex-wrap: wrap; }
  .hero-stat-number { font-size: 20px; }
  .section-title h2 { font-size: 24px; }
  .section-padding { padding: 48px 0; }

  /* Header */
  .header-inner { padding: 12px 16px; }
  .search-bar-wrap { display: none; }

  /* Hero buttons stack */
  .hero-actions { flex-direction: column; align-items: flex-start; gap: 12px; }

  /* Category cards full row */
  .cat-card { min-width: 140px; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr !important; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 8px; }
  .footer { padding: 40px 0 0; }
  .footer-brand p { max-width: 100%; }

  /* Newsletter */
  .newsletter-input-wrap { flex-direction: column; border-radius: var(--radius-lg); padding: 12px; gap: 8px; }
  .newsletter-input-wrap input { padding: 8px 12px; text-align: center; }

  /* Promo banner */
  .promo-banner { padding: 40px 24px; min-height: 260px; }
  .hero-trust-row { gap: 10px; flex-wrap: wrap; }

  /* Cart page */
  .cart-item-img { width: 60px !important; height: 60px !important; }
  .cart-page-grid { flex-direction: column !important; }
  .cart-summary-col { width: 100% !important; }

  /* Checkout form */
  .checkout-grid { flex-direction: column !important; }
  .checkout-summary-col { width: 100% !important; order: -1; }

  /* Product detail page */
  .pd-image-main { height: 280px !important; }
  .pd-thumbs-row { gap: 8px; }
  .pd-thumb { width: 56px !important; height: 56px !important; }
  .pd-info-title { font-size: 22px !important; }

  /* Pcard — 2 per row */
  .pcard-name { font-size: 13px; }
  .pcard-price { font-size: 15px; }
  .pcard-atc { height: 38px; font-size: 12px; }
}

/* ── Mobile (≤575px) ─── */
@media (max-width: 575px) {
  /* Global spacing */
  body { font-size: 14px; }
  .container, .container-fluid { padding-left: 12px; padding-right: 12px; }

  /* Header */
  .header-inner { padding: 10px 12px; }
  .logo img { height: 36px; }
  .logo span { font-size: 18px; }
  .header-actions { gap: 12px; }
  .header-actions a { font-size: 16px; }

  /* Hero section */
  .hero-title { font-size: 26px; line-height: 1.25; }
  .hero-subtitle { font-size: 14px; }
  .section-padding { padding: 36px 0; }

  /* Toast */
  .toast-container { left: 12px; right: 12px; bottom: 70px; }
  .kpl-toast { min-width: auto; width: 100%; }

  /* Pcard — 2 per row still, smaller padding */
  .pcard-body { padding: 10px 12px 12px; gap: 4px; }
  .pcard-name { font-size: 12px; -webkit-line-clamp: 2; }
  .pcard-price { font-size: 14px; }
  .pcard-cat { font-size: 10px; }
  .pcard-stars { font-size: 10px; }
  .pcard-variant { padding: 7px 10px; font-size: 11px; }
  .pcard-atc { height: 36px; font-size: 11px; }

  /* Products page grid — 2 col on small phones */
  .col-6 { padding-left: 6px; padding-right: 6px; }

  /* Cart page */
  .cart-item-img { width: 52px !important; height: 52px !important; }
  .cart-table th, .cart-table td { font-size: 12px; padding: 8px 6px; }

  /* Product detail */
  .pd-image-main { height: 240px !important; }
  .pd-info-title { font-size: 20px !important; }
  .pd-price { font-size: 24px !important; }

  /* Order / Success pages */
  .success-icon { font-size: 48px !important; }

  /* Topbar hide on mobile */
  .topbar { display: none !important; }

  /* Footer spacing */
  .footer { padding-top: 30px; }
  .footer-grid { padding: 0 12px; }
  .footer-bottom { padding: 16px 12px; }

  /* Whatsapp button position */
  .whatsapp { bottom: 16px; right: 16px; width: 48px; height: 48px; font-size: 22px; }

  /* Offcanvas nav full width on very small screens */
  #mobileNav { max-width: 100% !important; }

  /* Section headers */
  .section-header h2 { font-size: 20px; }
  .pre-title { font-size: 11px; }
}

/* ── Extra Small (≤400px) ─── */
@media (max-width: 400px) {
  .hero-title { font-size: 22px; }
  .pcard-body { padding: 8px 10px 10px; }
  .pcard-name { font-size: 11px; }
  .pcard-atc { height: 34px; font-size: 10px; letter-spacing: 0.3px; }
  .header-inner { padding: 8px 10px; }
  .logo img { height: 32px; }
}
