/* ==========================================================================
   KIRI WELLNESS MEGASTORE THAILAND — Full E-Commerce Storefront Stylesheet
   Layout: Top Utility Nav + Search Header + Left Category Sidebar + Main Store
   Palette: Eye-Friendly Warm Alabaster, Soft Sage, Warm Peach/Sand, Emerald CTA
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Prompt:wght@300;400;500;600;700&display=swap');

:root {
  /* Soothing Eye-Friendly E-Commerce Palette */
  --bg-page: #F6F5F0;            /* Soft Warm Alabaster background */
  --bg-surface: #FFFFFF;         /* Crisp White Cards & Header */
  --bg-subtle: #F0EFE9;          /* Soft Stone / Product Thumbnail Box */
  --bg-peach-soft: #F5DEC9;      /* Warm Apricot / Sand Banner Gradient */
  --bg-sage-soft: #E3EFE8;       /* Soft Eucalyptus Mint */
  --bg-amber-soft: #F9E8C8;      /* Warm Honey Tint */

  --text-main: #1E2923;          /* Deep Charcoal Forest */
  --text-secondary: #53635A;     /* Muted Slate Sage */
  --text-muted: #84938B;         /* Soft Gray-Green */

  /* Brand & Interactive Accents */
  --primary: #2D6A4F;            /* Soothing Botanical Emerald */
  --primary-hover: #21513B;      /* Deeper Emerald Hover */
  --primary-light: #E6F2EC;      /* Soft Emerald Pill Background */

  --cta-mint: #2EC486;           /* Pleasant Mint-Emerald Cart Button (matches reference) */
  --cta-mint-hover: #24A870;

  --badge-sale: #E07A5F;         /* Soft Terracotta Coral for Promo Badges */
  --badge-amber: #F2B749;        /* Warm Gold-Yellow for 'Акция / โปรโมชั่น' */
  --badge-new: #38B27B;          /* Fresh Mint for 'Новинка / สินค้าใหม่' */

  --border-color: #E5E3DC;       /* Gentle Warm Gray Border */
  --border-hover: #B8D4C5;       /* Soft Sage Border on Hover */

  --shadow-xs: 0 2px 6px rgba(30, 41, 35, 0.04);
  --shadow-sm: 0 4px 16px rgba(30, 41, 35, 0.06);
  --shadow-md: 0 10px 28px rgba(30, 41, 35, 0.09);
  --shadow-lg: 0 20px 48px rgba(30, 41, 35, 0.14);

  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-pill: 9999px;

  --font-sans: 'Plus Jakarta Sans', 'Prompt', -apple-system, BlinkMacSystemFont, sans-serif;
  --transition: all 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

html[lang="th"] {
  --font-sans: 'Prompt', 'Plus Jakarta Sans', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 15px;
}

body {
  background-color: var(--bg-page);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

ul {
  list-style: none;
}

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

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

.container {
  width: 100%;
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 20px;
}

.container-narrow {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ==========================================================================
   1. Top Utility Bar (Exact match to reference screenshot top bar)
   ========================================================================== */

.utility-bar {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  font-size: 0.84rem;
  color: var(--text-secondary);
  padding: 8px 0;
}

.utility-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.utility-links {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.utility-links a {
  color: var(--text-secondary);
  font-weight: 500;
}

.utility-links a:hover,
.utility-links a.active {
  color: var(--primary);
}

.utility-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.cabinet-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-subtle);
  padding: 4px 12px;
  border-radius: var(--radius-xs);
  font-weight: 600;
  color: var(--text-main);
  font-size: 0.8rem;
}

.phone-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: var(--text-main);
  font-size: 0.9rem;
}

.phone-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary);
  color: #FFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
}

/* Language Switcher */
.lang-switcher {
  display: inline-flex;
  background: var(--bg-subtle);
  border-radius: var(--radius-pill);
  padding: 2px;
  border: 1px solid var(--border-color);
}

.lang-btn {
  border: none;
  background: transparent;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
}

.lang-btn.active {
  background: var(--primary);
  color: #FFF;
}

/* ==========================================================================
   2. Main Store Header (Logo + Catalog Button + Big Search Bar + Compare & Cart)
   ========================================================================== */

.store-header {
  background: var(--bg-surface);
  padding: 16px 0;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: var(--shadow-xs);
}

.store-header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Brand Logo Block */
.store-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  min-width: 220px;
}

.logo-box {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: #1E2923;
  color: #FFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.logo-meta {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--text-main);
  line-height: 1.15;
}

.logo-subtitle {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Purple/Emerald Catalog Pill Button */
.catalog-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--primary);
  color: #FFF;
  border: none;
  padding: 11px 22px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  flex-shrink: 0;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(45, 106, 79, 0.22);
}

.catalog-btn:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

/* Full-Width Search Bar */
.header-search {
  flex-grow: 1;
  display: flex;
  align-items: center;
  background: var(--bg-page);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  padding: 4px 6px 4px 18px;
  transition: var(--transition);
}

.header-search:focus-within {
  border-color: var(--primary);
  background: #FFF;
  box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.12);
}

.header-search svg.search-icon {
  color: var(--text-muted);
  margin-right: 10px;
  flex-shrink: 0;
}

.header-search input {
  width: 100%;
  border: none;
  background: transparent;
  color: var(--text-main);
  font-size: 0.92rem;
  outline: none;
}

.search-submit-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.84rem;
  color: var(--text-main);
  cursor: pointer;
  flex-shrink: 0;
  transition: var(--transition);
}

.search-submit-btn:hover {
  background: var(--primary);
  color: #FFF;
  border-color: var(--primary);
}

/* Right Action Icons (Compare, Favorites, Green Cart Circle) */
.header-icons {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.icon-circle-btn {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.icon-circle-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}

.icon-circle-btn.cart-green {
  background: var(--cta-mint);
  border-color: var(--cta-mint);
  color: #FFF;
  box-shadow: 0 4px 12px rgba(46, 196, 134, 0.3);
}

.icon-circle-btn.cart-green:hover {
  background: var(--cta-mint-hover);
  transform: translateY(-1px);
}

.counter-pill {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--badge-sale);
  color: #FFF;
  font-size: 0.68rem;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid #FFF;
}

/* ==========================================================================
   3. Main 2-Column Megastore Layout (Left Category Sidebar + Right Content)
   ========================================================================== */

.store-layout {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 28px;
  padding: 26px 0 64px;
  align-items: start;
}

/* Left Category Sidebar Card */
.category-sidebar {
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  padding: 12px 0;
  box-shadow: var(--shadow-xs);
  position: sticky;
  top: 94px;
}

.sidebar-heading {
  padding: 10px 20px 12px;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 4px;
}

.sidebar-menu li a,
.sidebar-menu li button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 20px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-main);
  background: transparent;
  border: none;
  text-align: left;
  cursor: pointer;
  transition: var(--transition);
  border-bottom: 1px solid rgba(229, 227, 220, 0.45);
}

.sidebar-menu li:last-child a,
.sidebar-menu li:last-child button {
  border-bottom: none;
}

.sidebar-menu li a:hover,
.sidebar-menu li button:hover,
.sidebar-menu li a.active,
.sidebar-menu li button.active {
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 600;
  padding-left: 24px;
}

.sidebar-label {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-count {
  font-size: 0.74rem;
  color: var(--text-muted);
  background: var(--bg-page);
  padding: 2px 7px;
  border-radius: var(--radius-pill);
}

.sidebar-chevron {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Sidebar Promo Mini-Card */
.sidebar-trust-box {
  margin: 16px 14px 6px;
  padding: 16px;
  background: var(--bg-sage-soft);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  color: var(--text-main);
}

.sidebar-trust-box strong {
  display: block;
  color: var(--primary);
  margin-bottom: 4px;
  font-size: 0.88rem;
}

/* ==========================================================================
   4. Right Main Content Area
   ========================================================================== */

.store-main {
  min-width: 0; /* prevent grid blowout */
}

/* Hero Promotional Banner Slider (Matches reference rounded banner + white card) */
.promo-banner {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(120deg, #F3DFC8 0%, #E7D4BC 48%, #D8E4DC 100%);
  min-height: 330px;
  display: grid;
  grid-template-columns: 420px 1fr;
  align-items: center;
  padding: 32px 36px;
  margin-bottom: 36px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}

.promo-white-card {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-md);
  padding: 28px 30px;
  box-shadow: var(--shadow-md);
  z-index: 2;
}

.promo-pill-badge {
  display: inline-block;
  background: var(--badge-sale);
  color: #FFF;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 12px;
}

.promo-white-card h1,
.promo-white-card h2 {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.22;
  margin-bottom: 8px;
}

.promo-white-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.promo-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: #FFF;
  padding: 10px 24px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.88rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.promo-cta-btn:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.promo-visual-side {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-left: 24px;
}

.promo-visual-img {
  width: 100%;
  max-width: 480px;
  height: 265px;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.banner-dots {
  position: absolute;
  bottom: 16px;
  left: 42px;
  display: flex;
  gap: 6px;
  z-index: 3;
}

.banner-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(30, 41, 35, 0.25);
  border: none;
  cursor: pointer;
}

.banner-dot.active {
  background: var(--primary);
  width: 20px;
  border-radius: 4px;
}

.banner-arrows {
  position: absolute;
  bottom: 20px;
  right: 28px;
  display: flex;
  gap: 8px;
  z-index: 3;
}

.banner-arrow {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-main);
  font-weight: 700;
  transition: var(--transition);
}

.banner-arrow:hover {
  background: var(--primary);
  color: #FFF;
}

/* ==========================================================================
   5. Popular Categories Visual Grid (8 Cards in 4x2 Grid — Matches Reference)
   ========================================================================== */

.store-section {
  margin-bottom: 44px;
}

.section-title-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 12px;
  flex-wrap: wrap;
}

.section-title-bar h2 {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-main);
}

.section-more-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.section-more-link:hover {
  text-decoration: underline;
}

.popular-cats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.cat-visual-card {
  cursor: pointer;
  group: true;
}

.cat-thumb-box {
  height: 148px;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 10px;
  position: relative;
  border: 1px solid var(--border-color);
  background: var(--bg-subtle);
  transition: var(--transition);
}

.cat-thumb-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.cat-visual-card:hover .cat-thumb-box {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.cat-visual-card:hover .cat-thumb-box img {
  transform: scale(1.05);
}

.cat-thumb-overlay {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary);
  padding: 3px 9px;
  border-radius: var(--radius-pill);
}

.cat-visual-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-main);
  transition: var(--transition);
}

.cat-visual-card:hover .cat-visual-title {
  color: var(--primary);
}

.section-divider-more {
  display: flex;
  justify-content: flex-end;
  padding-top: 14px;
  margin-top: 16px;
  border-top: 1px solid var(--border-color);
}

/* ==========================================================================
   6. E-Commerce Product Cards (4-Column Grid — Matches Reference Card Design)
   ========================================================================== */

.products-4col-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.ecom-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
}

.ecom-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

/* Rounded Inner Image Box with Top-Left Badge */
.ecom-img-box {
  position: relative;
  height: 180px;
  background: var(--bg-subtle);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 12px;
  cursor: pointer;
}

.ecom-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.ecom-card:hover .ecom-img-box img {
  transform: scale(1.04);
}

.ecom-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: var(--radius-xs);
  z-index: 2;
}

.ecom-badge.promo {
  background: var(--badge-amber);
  color: #1E2923;
}

.ecom-badge.new {
  background: var(--badge-new);
  color: #FFF;
}

.ecom-badge.hit {
  background: var(--primary);
  color: #FFF;
}

.quick-view-btn {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xs);
  padding: 4px 8px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  opacity: 0;
  transition: var(--transition);
}

.ecom-card:hover .quick-view-btn {
  opacity: 1;
}

/* Card Title, Brand Link & Stars */
.ecom-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.35;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.5em;
  cursor: pointer;
}

.ecom-title:hover {
  color: var(--primary);
}

.ecom-brand {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 4px;
}

.ecom-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  color: #E8A838;
  margin-bottom: 12px;
}

.ecom-rating span {
  color: var(--text-muted);
  font-size: 0.72rem;
}

/* Price Block */
.ecom-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: auto;
  margin-bottom: 12px;
}

.ecom-price-current {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
}

.ecom-price-old {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

/* Stepper (- 1 +) + Green Round Cart Button Row */
.ecom-purchase-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.card-qty-stepper {
  display: inline-flex;
  align-items: center;
  background: var(--bg-page);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  padding: 2px 6px;
}

.card-qty-stepper button {
  border: none;
  background: transparent;
  width: 24px;
  height: 26px;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
}

.card-qty-stepper button:hover {
  color: var(--primary);
}

.card-qty-stepper input {
  width: 28px;
  text-align: center;
  border: none;
  background: transparent;
  font-weight: 700;
  font-size: 0.84rem;
  color: var(--text-main);
  outline: none;
}

.ecom-cart-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--cta-mint);
  color: #FFF;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: var(--transition);
  box-shadow: 0 3px 10px rgba(46, 196, 134, 0.28);
}

.ecom-cart-circle:hover {
  background: var(--cta-mint-hover);
  transform: scale(1.06);
}

/* Compare Bottom Link */
.ecom-compare-row {
  padding-top: 8px;
  border-top: 1px solid rgba(229, 227, 220, 0.6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.76rem;
  color: var(--text-muted);
}

.compare-link-btn {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.76rem;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: var(--transition);
}

.compare-link-btn:hover,
.compare-link-btn.active {
  color: var(--primary);
  font-weight: 600;
}

.stock-dot {
  color: var(--cta-mint);
  font-weight: 600;
}

/* ==========================================================================
   7. Catalog Toolbar (Sorting, Price Filter, Search Status)
   ========================================================================== */

.catalog-toolbar {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.toolbar-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.toolbar-select {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: var(--bg-page);
  color: var(--text-main);
  font-size: 0.86rem;
  font-weight: 600;
}

/* ==========================================================================
   8. Compliance Notice & Store Footer
   ========================================================================== */

.wellness-disclaimer-box {
  background: var(--bg-sage-soft);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-top: 28px;
}

.wellness-disclaimer-box strong {
  color: var(--primary);
}

.site-footer {
  background: #1B2821;
  color: #EAE8E1;
  padding: 60px 0 32px;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 36px;
  margin-bottom: 40px;
}

.footer-title {
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #74C69D;
  margin-bottom: 16px;
}

.footer-links li {
  margin-bottom: 9px;
}

.footer-links a {
  font-size: 0.86rem;
  color: rgba(234, 232, 225, 0.76);
}

.footer-links a:hover {
  color: #FFF;
}

.footer-disclaimer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 18px 0;
  margin-bottom: 20px;
  font-size: 0.76rem;
  color: rgba(234, 232, 225, 0.62);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.8rem;
  color: rgba(234, 232, 225, 0.65);
}

/* ==========================================================================
   9. Modals, Drawers, Legal Docs & Cookie Banner
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition);
}

.btn-primary {
  background: var(--primary);
  color: #FFF;
}

.btn-primary:hover {
  background: var(--primary-hover);
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-main);
  border-color: var(--border-color);
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.82rem;
}

.btn-full {
  width: 100%;
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(20, 30, 25, 0.52);
  backdrop-filter: blur(3px);
  z-index: 900;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.drawer-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 430px;
  height: 100vh;
  background: var(--bg-surface);
  z-index: 950;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.cart-drawer.open {
  transform: translateX(0);
}

.drawer-header {
  padding: 20px 22px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.close-btn {
  background: var(--bg-page);
  border: 1px solid var(--border-color);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.drawer-body {
  padding: 20px 22px;
  overflow-y: auto;
  flex-grow: 1;
}

.cart-item {
  display: flex;
  gap: 12px;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border-color);
}

.cart-item-img {
  width: 62px;
  height: 62px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--bg-subtle);
}

.drawer-footer {
  padding: 18px 22px;
  border-top: 1px solid var(--border-color);
  background: var(--bg-page);
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.86rem;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.cart-summary-total {
  display: flex;
  justify-content: space-between;
  font-size: 1.08rem;
  font-weight: 800;
  padding-top: 8px;
  margin-top: 8px;
  margin-bottom: 14px;
  border-top: 1px solid var(--border-color);
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 30, 25, 0.58);
  backdrop-filter: blur(4px);
  z-index: 1100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.modal-overlay.open {
  display: flex;
}

.modal-box {
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  max-width: 620px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 28px;
  box-shadow: var(--shadow-lg);
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 18px;
  left: 18px;
  right: 18px;
  max-width: 1020px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-md);
  padding: 18px 24px;
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  display: none;
}

.cookie-banner.show {
  display: block;
}

.cookie-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.cookie-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

/* Forms & Legal Cards */
.form-card, .legal-document, .benefit-card, .ingredient-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-xs);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.ingredients-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.ingredient-card {
  display: flex;
  gap: 18px;
}

.ingredient-badge {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--bg-sage-soft);
  color: var(--primary);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.form-group {
  margin-bottom: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-label {
  display: block;
  font-size: 0.84rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: var(--bg-page);
}

.legal-document h2 {
  font-size: 1.3rem;
  color: var(--primary);
  margin: 24px 0 10px;
}

.legal-document h2:first-child {
  margin-top: 0;
}

.legal-document p, .legal-document li {
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.legal-document ul {
  list-style: disc;
  padding-left: 20px;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 0.84rem;
}

.legal-table th, .legal-table td {
  border: 1px solid var(--border-color);
  padding: 10px;
  text-align: left;
}

.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.switch input { opacity: 0; width: 0; height: 0; }
.slider {
  position: absolute; cursor: pointer; inset: 0;
  background-color: #CBD5CF; transition: 0.25s; border-radius: 24px;
}
.slider:before {
  position: absolute; content: ""; height: 18px; width: 18px;
  left: 3px; bottom: 3px; background-color: white; transition: 0.25s; border-radius: 50%;
}
input:checked + .slider { background-color: var(--primary); }
input:checked + .slider:before { transform: translateX(20px); }

.toast-notification {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #1E2923;
  color: #FFF;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  font-size: 0.88rem;
  font-weight: 600;
  z-index: 1300;
  opacity: 0;
  transform: translateY(15px);
  pointer-events: none;
  transition: var(--transition);
}

.toast-notification.show {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   10. Responsive Breakpoints
   ========================================================================== */

@media (max-width: 1120px) {
  .store-layout {
    grid-template-columns: 230px 1fr;
  }
  .products-4col-grid,
  .popular-cats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .promo-banner {
    grid-template-columns: 1fr;
  }
  .promo-visual-side {
    display: none;
  }
}

@media (max-width: 860px) {
  .store-layout {
    grid-template-columns: 1fr;
  }
  .category-sidebar {
    position: static;
  }
  .products-4col-grid,
  .popular-cats-grid,
  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .store-header-inner {
    flex-wrap: wrap;
  }
  .header-search {
    order: 3;
    width: 100%;
    flex-basis: 100%;
  }
  .footer-grid,
  .ingredients-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 540px) {
  .products-4col-grid,
  .popular-cats-grid,
  .benefits-grid,
  .footer-grid,
  .ingredients-grid,
  .form-row {
    grid-template-columns: 1fr;
  }
  .cookie-banner-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ==========================================================================
   11. Dedicated Product Page (product.html) Styles
   ========================================================================== */

.breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.breadcrumbs a {
  color: var(--text-secondary);
  font-weight: 500;
}

.breadcrumbs a:hover {
  color: var(--primary);
}

.pdp-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 36px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 36px;
}

.pdp-media-box {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  height: 440px;
}

.pdp-media-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pdp-info-col {
  display: flex;
  flex-direction: column;
}

.pdp-category-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  width: fit-content;
  margin-bottom: 10px;
}

.pdp-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.25;
  margin-bottom: 8px;
}

.pdp-brand-line {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 18px;
}

.pdp-price-box {
  background: var(--bg-page);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.pdp-price-main {
  font-size: 1.95rem;
  font-weight: 800;
  color: var(--primary);
}

.pdp-price-old {
  font-size: 1.05rem;
  color: var(--text-muted);
  text-decoration: line-through;
  margin-left: 10px;
}

.pdp-cod-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-sage-soft);
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
}

.pdp-desc {
  font-size: 0.96rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 20px;
}

.pdp-specs-list {
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 16px 0;
  margin-bottom: 22px;
}

.pdp-spec-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  padding: 6px 0;
}

.pdp-spec-label {
  color: var(--text-muted);
}

.pdp-spec-val {
  font-weight: 700;
  color: var(--text-main);
}

.pdp-actions-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.pdp-lead-card {
  background: linear-gradient(125deg, #FFFFFF 0%, #E6F2EC 100%);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-md);
  padding: 22px;
  margin-top: auto;
}

@media (max-width: 860px) {
  .pdp-grid {
    grid-template-columns: 1fr;
    padding: 20px;
  }
  .pdp-media-box {
    height: 300px;
  }
}
