/* ============================================
   ETHIOPIAN ORGANIC COTTON WEBSTORE
   styles-v1.css — Complete Design System
   ============================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Nunito:wght@300;400;500;600;700&display=swap');

/* ============================================
   1. CSS CUSTOM PROPERTIES
   ============================================ */
:root {
  /* --- Brand Colors --- */
  --color-cream:       #F5F0EB;
  --color-cream-dark:  #EDE6DD;
  --color-sage:        #5B7B3A;
  --color-sage-light:  #6E9147;
  --color-sage-dark:   #4A6530;
  --color-terracotta:  #C2703E;
  --color-terracotta-light: #D4844F;
  --color-terracotta-dark:  #A85E33;
  --color-brown:       #8B6F4E;
  --color-brown-light: #A08563;
  --color-charcoal:    #2D2D2D;
  --color-charcoal-light: #4A4A4A;

  /* --- Neutral Colors --- */
  --color-white:       #FFFFFF;
  --color-off-white:   #FAFAF8;
  --color-gray-100:    #F3F3F1;
  --color-gray-200:    #E5E5E0;
  --color-gray-300:    #D1D1CC;
  --color-gray-400:    #A8A8A3;
  --color-gray-500:    #787873;
  --color-gray-600:    #5A5A56;
  --color-gray-700:    #3D3D3A;
  --color-black:       #1A1A1A;

  /* --- Semantic Colors --- */
  --color-success:     #5B7B3A;
  --color-warning:     #D4A03C;
  --color-error:       #C44B4B;
  --color-info:        #4A7B9D;

  /* --- Typography --- */
  --font-heading:      'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body:         'Cormorant Garamond', Georgia, 'Times New Roman', serif;

  --text-xs:    0.75rem;    /* 12px */
  --text-sm:    0.875rem;   /* 14px */
  --text-base:  1rem;       /* 16px */
  --text-md:    1.125rem;   /* 18px */
  --text-lg:    1.25rem;    /* 20px */
  --text-xl:    1.5rem;     /* 24px */
  --text-2xl:   1.875rem;   /* 30px */
  --text-3xl:   2.25rem;    /* 36px */
  --text-4xl:   3rem;       /* 48px */
  --text-5xl:   3.75rem;    /* 60px */

  --leading-tight:   1.2;
  --leading-snug:    1.35;
  --leading-normal:  1.6;
  --leading-relaxed: 1.75;

  --weight-light:    300;
  --weight-regular:  400;
  --weight-medium:   500;
  --weight-semibold: 600;
  --weight-bold:     700;

  /* --- Spacing --- */
  --space-xs:   0.25rem;   /* 4px */
  --space-sm:   0.5rem;    /* 8px */
  --space-md:   1rem;      /* 16px */
  --space-lg:   1.5rem;    /* 24px */
  --space-xl:   2rem;      /* 32px */
  --space-2xl:  3rem;      /* 48px */
  --space-3xl:  4rem;      /* 64px */
  --space-4xl:  6rem;      /* 96px */
  --space-5xl:  8rem;      /* 128px */

  /* --- Layout --- */
  --container-max:    1280px;
  --container-narrow: 1000px;
  --container-wide:   1440px;
  --sidebar-width:    280px;

  /* --- Borders --- */
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   12px;
  --radius-xl:   16px;
  --radius-full: 9999px;

  --border-thin:   1px solid var(--color-gray-200);
  --border-medium: 2px solid var(--color-gray-200);

  /* --- Shadows --- */
  --shadow-sm:   0 1px 3px rgba(45, 45, 45, 0.06);
  --shadow-md:   0 4px 12px rgba(45, 45, 45, 0.08);
  --shadow-lg:   0 8px 30px rgba(45, 45, 45, 0.1);
  --shadow-xl:   0 16px 50px rgba(45, 45, 45, 0.12);
  --shadow-glow: 0 0 20px rgba(91, 123, 58, 0.15);

  /* --- Transitions --- */
  --transition-fast:   150ms ease;
  --transition-base:   250ms ease;
  --transition-slow:   400ms ease;
  --transition-spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);

  /* --- Z-Index --- */
  --z-dropdown:  100;
  --z-sticky:    200;
  --z-overlay:   300;
  --z-modal:     400;
  --z-toast:     500;
}


/* ============================================
   2. RESET & BASE
   ============================================ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--weight-regular);
  line-height: var(--leading-normal);
  color: var(--color-charcoal);
  background-color: #EDE8E3;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-top: 70px; /* space for fixed nav */
}

/* Homepage: hero goes under nav */
body.page-home {
  padding-top: 0;
}

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

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

a:hover {
  color: var(--color-terracotta-dark);
}

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

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

::selection {
  background-color: var(--color-sage);
  color: var(--color-white);
}


/* ============================================
   3. TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-tight);
  color: var(--color-charcoal);
}

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl);  }
h5 { font-size: var(--text-lg);  }
h6 { font-size: var(--text-md);  }

p {
  margin-bottom: var(--space-md);
}

p:last-child {
  margin-bottom: 0;
}

.text-sm { font-size: var(--text-sm); }
.text-md { font-size: var(--text-md); }
.text-lg { font-size: var(--text-lg); }
.text-xl { font-size: var(--text-xl); }

.text-muted  { color: var(--color-gray-500); }
.text-sage   { color: var(--color-sage); }
.text-terra  { color: var(--color-terracotta); }
.text-center { text-align: center; }
.text-uppercase {
  text-transform: uppercase;
  letter-spacing: 0.08em;
}


/* ============================================
   4. LAYOUT UTILITIES
   ============================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.container--narrow {
  max-width: var(--container-narrow);
}

.container--wide {
  max-width: var(--container-wide);
}

.section {
  padding: var(--space-2xl) 0;
}

.section--sm {
  padding: var(--space-xl) 0;
}

.section--lg {
  padding: var(--space-3xl) 0;
}

.section--cream {
  background-color: var(--color-cream);
}

.section--white {
  background-color: var(--color-white);
}

.section--charcoal {
  background-color: var(--color-charcoal);
  color: var(--color-cream);
}

.section--charcoal h2,
.section--charcoal h3,
.section--charcoal h4 {
  color: var(--color-cream);
}

.grid {
  display: grid;
  gap: var(--space-lg);
}

.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.flex {
  display: flex;
  align-items: center;
}

.flex--between {
  justify-content: space-between;
}

.flex--center {
  justify-content: center;
}

.flex--wrap {
  flex-wrap: wrap;
}

.flex--col {
  flex-direction: column;
}

.gap-sm  { gap: var(--space-sm); }
.gap-md  { gap: var(--space-md); }
.gap-lg  { gap: var(--space-lg); }
.gap-xl  { gap: var(--space-xl); }
.gap-2xl { gap: var(--space-2xl); }


/* ============================================
   5. BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.8em 2em;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  transition: all var(--transition-base);
  white-space: nowrap;
  line-height: 1;
}

.btn--primary {
  background-color: transparent;
  color: var(--color-charcoal);
  border: 1px solid var(--color-charcoal);
  font-weight: var(--weight-regular);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: var(--text-sm);
}

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

.btn--secondary {
  background-color: var(--color-terracotta);
  color: var(--color-white);
  border: 2px solid var(--color-terracotta);
}

.btn--secondary:hover {
  background-color: var(--color-terracotta-dark);
  border-color: var(--color-terracotta-dark);
  color: var(--color-white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn--outline {
  background-color: transparent;
  color: var(--color-charcoal);
  border: 2px solid var(--color-charcoal);
}

.btn--outline:hover {
  background-color: var(--color-charcoal);
  color: var(--color-white);
}

.btn--outline-white {
  background-color: transparent;
  color: var(--color-white);
  border: 2px solid var(--color-white);
}

.btn--outline-white:hover {
  background-color: var(--color-white);
  color: var(--color-charcoal);
}

.btn--ghost {
  background: transparent;
  color: var(--color-terracotta);
  border: 2px solid transparent;
  padding: 0.8em 1em;
}

.btn--ghost:hover {
  color: var(--color-terracotta-dark);
  background-color: rgba(194, 112, 62, 0.06);
}

.btn--lg {
  padding: 1em 2.5em;
  font-size: var(--text-base);
}

.btn--sm {
  padding: 0.5em 1.2em;
  font-size: var(--text-xs);
}

.btn--full {
  width: 100%;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}


/* ============================================
   6. FORM ELEMENTS
   ============================================ */
.form-group {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  margin-bottom: var(--space-xs);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--color-charcoal);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 0.75em 1em;
  font-size: var(--text-base);
  color: var(--color-charcoal);
  background-color: var(--color-white);
  border: 1px solid var(--color-gray-300);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--color-sage);
  box-shadow: 0 0 0 3px rgba(91, 123, 58, 0.12);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%232D2D2D' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1em center;
  padding-right: 2.5em;
}

.form-hint {
  margin-top: var(--space-xs);
  font-size: var(--text-sm);
  color: var(--color-gray-500);
}

.form-error {
  margin-top: var(--space-xs);
  font-size: var(--text-sm);
  color: var(--color-error);
}

.form-input--error {
  border-color: var(--color-error);
}

.form-input--error:focus {
  box-shadow: 0 0 0 3px rgba(196, 75, 75, 0.12);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  cursor: pointer;
}

.form-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--color-sage);
}



/* ============================================
   7. NAVIGATION — v2
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-sticky);
  background-color: var(--color-white);
  border-bottom: 1px solid var(--color-gray-200);
  transition: background-color var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

/* Transparent nav over hero (homepage) — visible with transparent bg */
.nav--transparent {
  background-color: transparent;
  border-bottom-color: transparent;
}

/* Hide logo in transparent nav — only show on scroll */
.nav--transparent .nav__logo {
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
}

.nav--transparent.nav--scrolled .nav__logo {
  opacity: 1;
  pointer-events: auto;
}

/* Show solid nav on scroll */
.nav--transparent.nav--scrolled {
  background-color: var(--color-white);
  border-bottom-color: var(--color-gray-200);
  box-shadow: var(--shadow-sm);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px var(--space-lg); /* v18: reduced from var(--space-md)/16px — nav was too tall (client 1.1) */
  max-width: var(--container-wide);
  margin: 0 auto;
}

/* Logo */
.nav__logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav__logo-img {
  height: 50px;
  width: auto;
}

/* Nav Links */
.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-2xl);
}

.nav__link {
  font-family: 'Nunito', 'Segoe UI', Tahoma, sans-serif;
  font-size: 15px;
  font-weight: var(--weight-regular);
  color: var(--color-charcoal);
  letter-spacing: 0.06em;
  position: relative;
  padding: var(--space-xs) 0;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--color-charcoal);
  transition: width var(--transition-base);
}

.nav__link:hover,
.nav__link--active {
  color: var(--color-charcoal);
}

.nav__link--hide {
  display: none; /* v18: added to hide Login link temporarily per client (1.2) — reversible, remove class in header to bring back */
}

.nav__link--group-start {
  margin-left: var(--space-2xl); /* v34: extra 48px on top of the existing 48px nav__links gap, separating Our Story/Founders from the product-category links (client 1.2) — try this amount first, adjust if needed */
}

.nav__link:hover::after,
.nav__link--active::after {
  width: 100%;
}

/* Right Actions */
.nav__actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.nav__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-charcoal);
  transition: color var(--transition-fast);
}

.nav__social-link:hover {
  color: var(--color-gray-500);
}

.nav__social-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  stroke: none;
}

.nav__action-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-charcoal);
  transition: color var(--transition-fast);
}

.nav__action-btn:hover {
  color: var(--color-gray-500);
}

.nav__action-btn svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
  stroke: none;
}

.nav__cart-btn {
  margin-left: var(--space-sm);
}

.nav__cart-badge {
  position: absolute;
  top: -6px;
  right: -8px;
  background-color: var(--color-charcoal);
  color: var(--color-white);
  font-size: 10px;
  font-weight: var(--weight-bold);
  width: 18px;
  height: 18px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.nav__hamburger span {
  width: 22px;
  height: 2px;
  background-color: var(--color-charcoal);
  transition: all var(--transition-base);
}

.nav__hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav__hamburger.active span:nth-child(2) {
  opacity: 0;
}

.nav__hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
.nav__mobile-menu {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  height: 100vh;
  background-color: var(--color-cream);
  z-index: var(--z-modal);
  padding: var(--space-4xl) var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  transition: right var(--transition-slow);
  box-shadow: var(--shadow-xl);
}

.nav__mobile-menu.open {
  right: 0;
}

.nav__mobile-menu .nav__link {
  font-size: var(--text-md);
  padding: var(--space-md) 0; /* v18: increased from var(--space-sm)/8px for breathing room (client 1.5) */
  border-bottom: 1px solid var(--color-gray-200); /* v18: divider so links don't read as running text (client 1.5) */
}

.nav__mobile-menu .nav__link:last-of-type {
  border-bottom: none; /* v18: no trailing line after the final link */
}

.nav__mobile-close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  font-size: var(--text-3xl);
  color: var(--color-charcoal);
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
}

.nav__overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: var(--z-overlay);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
}

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


/* ============================================
   8. FOOTER — v2
   ============================================ */
.footer {
  background-color: var(--color-white);
  color: var(--color-charcoal);
  padding: var(--space-2xl) 0 var(--space-xl);
  border-top: 1px solid var(--color-gray-200);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--space-2xl);
  padding-bottom: var(--space-2xl);
}

.footer__brand-name {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-style: italic;
  font-weight: var(--weight-regular);
  color: var(--color-charcoal);
}

.footer__brand-logo {
  height: 72px; /* v25: was 36px — client wants it "much bigger", no exact target given, roughly doubled as a starting point. Estimate — adjust once seen live. */
  width: auto;
}

.footer__heading {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--color-charcoal);
  margin-bottom: var(--space-lg);
  letter-spacing: 0.02em;
}

.footer__link {
  display: block;
  font-size: var(--text-sm);
  color: var(--color-gray-600);
  margin-bottom: var(--space-sm);
  transition: color var(--transition-fast);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer__link:hover {
  color: var(--color-charcoal);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-xl);
  border-top: 1px solid var(--color-gray-200);
  font-size: var(--text-xs);
  color: var(--color-gray-500);
}

.footer__legal-links {
  display: flex;
  gap: var(--space-lg);
}

.footer__legal-links a {
  color: var(--color-gray-500);
}

.footer__legal-links a:hover {
  color: var(--color-charcoal);
}


/* ============================================
   9. HERO — v2 (full-width image)
   ============================================ */
.hero-full {
  position: relative;
  width: 100%;
  overflow: hidden;
  background-color: var(--color-cream-dark);
}

.hero-full__image {
  position: relative;
  width: 100%;
}

.hero-full__image img {
  width: 100%;
  height: auto;
  display: block;
}

/* White wash at top of hero — wide, gradual fade matching video */
.hero-full::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(to bottom, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0.35) 25%, rgba(255,255,255,0.15) 55%, transparent 100%);
  z-index: 1;
  pointer-events: none;
}

.hero-full__placeholder {
  width: 100%;
  min-height: 100vh;
  background: linear-gradient(160deg, #c8b99a 0%, #a89070 40%, #8a7b60 70%, #6d6548 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-cream);
  font-size: var(--text-sm);
  opacity: 0.8;
}

.hero-full__overlay {
  position: absolute;
  right: 7%; /* v18: was 10% — logo moved right per client (2.4) */
  top: 30%; /* v18: was 35% — logo moved up per client (2.4) */
  transform: translateY(-50%);
  text-align: center;
  z-index: 2;
}

.hero-full__logo-img {
  max-height: 420px;
  width: auto;
}

.hero-full__tagline {
  position: absolute;
  bottom: 14%; /* v22: was 10.7% — measured directly against the source hero image (desisil_hero.jpg, 1874x1597px): grass begins ~11-12% from bottom at horizontal center, so 10.7% was right at that floor. Raised to 14% for real buffer. Flag: if the live hero image differs from the file measured here, this may still need adjustment. */
  left: 0;
  right: 0;
  text-align: center;
  z-index: 2;
}

.hero-full__tagline p {
  font-family: var(--font-body); /* v18: was var(--font-heading)/Playfair Display — switched to Cormorant Garamond per client (2.2) */
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-style: normal; /* v18: was italic — client wants non-italic (2.2) */
  font-weight: 300;
  color: var(--color-charcoal);
  max-width: 1100px;
  margin: 0 auto;
  line-height: 1.5;
}

/* Keep old hero class for other pages that may use it */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: var(--color-cream-dark);
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--color-cream-dark) 0%, #ddd5c9 50%, var(--color-cream) 100%);
}

.hero__bg-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image:
    radial-gradient(circle at 20% 50%, var(--color-sage) 1px, transparent 1px),
    radial-gradient(circle at 80% 20%, var(--color-terracotta) 1px, transparent 1px),
    radial-gradient(circle at 60% 80%, var(--color-brown) 1px, transparent 1px);
  background-size: 60px 60px, 80px 80px, 70px 70px;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 640px;
  padding: var(--space-4xl) 0;
}

.hero__tag {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--color-sage);
  margin-bottom: var(--space-lg);
  padding: var(--space-xs) var(--space-md);
  background: rgba(91, 123, 58, 0.08);
  border-radius: var(--radius-full);
}

.hero__title {
  font-size: var(--text-5xl);
  font-weight: var(--weight-bold);
  line-height: 1.1;
  margin-bottom: var(--space-lg);
  color: var(--color-charcoal);
}

.hero__title em {
  font-style: italic;
  color: var(--color-terracotta);
}

.hero__subtitle {
  font-size: var(--text-lg);
  color: var(--color-gray-600);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-2xl);
  max-width: 500px;
}

.hero__actions {
  display: flex;
  gap: var(--space-md);
  align-items: center;
}

.hero__image {
  position: absolute;
  right: 0;
  top: 0;
  width: 50%;
  height: 100%;
  background-color: var(--color-cream-dark);
  overflow: hidden;
}

.hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__image-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(160deg, var(--color-cream-dark) 0%, var(--color-brown-light) 50%, var(--color-cream) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-brown);
  font-size: var(--text-sm);
  opacity: 0.6;
}

/* ============================================
   10. BRAND PROMISE BAR
   ============================================ */
.promise-bar {
  background-color: var(--color-white);
  border-bottom: var(--border-thin);
  padding: var(--space-xl) 0;
}

.promise-bar__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  text-align: center;
}

.promise-bar__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
}

.promise-bar__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-sage);
}

.promise-bar__icon svg {
  width: 32px;
  height: 32px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.promise-bar__label {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--color-charcoal);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}


/* ============================================
   11. PRODUCT CARDS & GRID
   ============================================ */
.products-section__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: var(--space-2xl);
}

.products-section__title {
  margin-bottom: var(--space-xs);
}

.products-section__subtitle {
  color: var(--color-gray-500);
  font-size: var(--text-md);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

.product-grid.product-grid--few {
  /* v32: switched from CSS Grid (auto-fit/minmax) to Flexbox. Two attempts at the grid
     approach (v30, v31) produced no visible change despite verified-correct deployment —
     grid's auto-fit requires the container to have a "definite" width to calculate columns,
     and that computation can silently fail depending on ancestor layout, which is very hard
     to diagnose from screenshots alone. Flexbox's wrap+justify-content:center is simpler and
     more predictable for this exact "centered row of cards" pattern. */
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-lg);
}

.product-grid.product-grid--few .product-card {
  flex: 0 1 300px; /* v32: target 300px width, allowed to shrink on narrow screens, never grows beyond 300px */
}

.product-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-white);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.product-card__image {
  display: block; /* v28: new — this is now an <a> tag (image made clickable per client), anchors default to inline which would break aspect-ratio sizing; block restores prior div-like behavior */
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--color-gray-100);
}

.product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.product-card:hover .product-card__image img {
  transform: scale(1.05);
}

/* Placeholder product image */
.product-card__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, var(--color-gray-100), var(--color-cream-dark));
  color: var(--color-gray-400);
  font-size: var(--text-sm);
}

.product-card__badge {
  position: absolute;
  top: var(--space-sm);
  left: var(--space-sm);
  padding: 4px 10px;
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: var(--radius-sm);
}

.product-card__badge--sale {
  background-color: var(--color-terracotta);
  color: var(--color-white);
}

.product-card__badge--new {
  background-color: var(--color-sage);
  color: var(--color-white);
}

/* v28: .product-card__quick-add and its hover rule removed — button deleted per client request */

.product-card__info {
  display: flex; /* v29: was block/stacked — client wants name and price on the same line, name left / price right */
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-sm);
  padding: var(--space-md);
}

.product-card__name {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: var(--weight-medium);
  color: var(--color-charcoal);
  min-width: 0; /* v29: new — prevents a long product name from forcing the row wider and squeezing the price out, same fix pattern as the product-detail page bug */
}

.product-card__name a {
  color: inherit;
}

.product-card__name a:hover {
  color: var(--color-terracotta);
}

.product-card__price {
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  color: var(--color-charcoal);
}

.product-card__price--sale {
  color: var(--color-terracotta);
}

.product-card__price--original {
  text-decoration: line-through;
  color: var(--color-gray-400);
  font-weight: var(--weight-regular);
  font-size: var(--text-sm);
  margin-left: var(--space-sm);
}


/* ============================================

/* ============================================
   12. SPLIT SECTION — v2
   ============================================ */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: var(--space-3xl) var(--space-2xl);
}

.split--60-40 {
  grid-template-columns: 3fr 2fr;
}

.split--40-60 {
  grid-template-columns: 2fr 3fr;
}

.split--reverse {
  direction: rtl;
}

.split--reverse > * {
  direction: ltr;
}

.split__image {
  position: relative;
  overflow: hidden;
  background: var(--color-cream-dark);
}

.split__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.split__image--fixed {
  width: 100%;
  height: 700px; /* homepage trial size — updated from 600px */
  background: transparent; /* overrides .split__image's tan fill so letterboxed space shows the section's own background instead of a visible rectangle */
}

.split__image--fixed img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.split__image-placeholder {
  width: 100%;
  height: 100%;
  min-height: 400px;
  background: linear-gradient(160deg, var(--color-cream-dark) 0%, var(--color-brown-light) 60%, var(--color-cream) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-brown);
  font-size: var(--text-sm);
  opacity: 0.5;
}

.split__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-2xl);
}

.split__tag {
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--color-sage);
  margin-bottom: var(--space-md);
}

.split__title {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-style: italic;
  font-weight: var(--weight-regular);
  margin-bottom: var(--space-lg);
  color: var(--color-charcoal);
}

.page-story .split__title {
  font-family: var(--font-body); /* v34: was --font-heading/Playfair Display — client wants same font family as other titles (Cormorant Garamond), matching v21 precedent. Scoped to Our Story/Founder pages only — .split__title is shared with homepage/Impact/Tata and those are untouched */
}

.split__text {
  color: var(--color-gray-600);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-xl);
  max-width: 480px;
}

.split__link {
  display: inline-block;
  font-size: var(--text-sm);
  color: var(--color-charcoal);
  text-decoration: underline;
  text-underline-offset: 3px;
  letter-spacing: 0.02em;
  transition: color var(--transition-fast);
}

.split__link:hover {
  color: var(--color-gray-500);
}

/* ============================================
   13. IMPACT STATS
   ============================================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
  text-align: center;
}

.stat-item {
  padding: var(--space-xl);
}

.stat-item__number {
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  font-weight: var(--weight-bold);
  color: var(--color-terracotta);
  line-height: 1;
  margin-bottom: var(--space-sm);
}

.stat-item__label {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-cream);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}


/* ============================================
   14. CATEGORY SHOWCASE
   ============================================ */
.category-card {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
}

.category-card__image {
  width: 100%;
  height: 100%;
  background: linear-gradient(145deg, var(--color-cream-dark), var(--color-gray-200));
  transition: transform var(--transition-slow);
}

.category-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-card:hover .category-card__image {
  transform: scale(1.05);
}

.category-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(45, 45, 45, 0.7) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: var(--space-xl);
  transition: background var(--transition-base);
}

.category-card:hover .category-card__overlay {
  background: linear-gradient(to top, rgba(45, 45, 45, 0.85) 0%, rgba(45, 45, 45, 0.1) 60%);
}

.category-card__name {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: var(--weight-semibold);
  color: var(--color-white);
}

.category-card__count {
  font-size: var(--text-sm);
  color: var(--color-gray-300);
  margin-top: var(--space-xs);
}


/* ============================================
   15. TESTIMONIALS
   ============================================ */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.testimonial-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: var(--space-2xl);
  position: relative;
}

.testimonial-card__stars {
  display: flex;
  gap: 2px;
  margin-bottom: var(--space-md);
  color: var(--color-warning);
}

.testimonial-card__stars svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.testimonial-card__quote {
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--color-gray-600);
  margin-bottom: var(--space-lg);
  font-style: italic;
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.testimonial-card__avatar {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--color-cream-dark), var(--color-gray-200));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--weight-bold);
  color: var(--color-brown);
  font-size: var(--text-sm);
}

.testimonial-card__name {
  font-weight: var(--weight-semibold);
  font-size: var(--text-sm);
  color: var(--color-charcoal);
}

.testimonial-card__role {
  font-size: var(--text-xs);
  color: var(--color-gray-500);
}


/* ============================================
   16. NEWSLETTER
   ============================================ */
.newsletter {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}

.newsletter__title {
  margin-bottom: var(--space-sm);
}

.newsletter__text {
  color: var(--color-gray-500);
  margin-bottom: var(--space-xl);
}

.newsletter__form {
  display: flex;
  gap: var(--space-sm);
  max-width: 440px;
  margin: 0 auto;
}

.newsletter__input {
  flex: 1;
  padding: 0.8em 1.2em;
  border: 1px solid var(--color-gray-300);
  border-radius: var(--radius-sm);
  font-size: var(--text-base);
  background: var(--color-white);
}

.newsletter__input:focus {
  outline: none;
  border-color: var(--color-sage);
  box-shadow: 0 0 0 3px rgba(91, 123, 58, 0.12);
}



/* ============================================
   NEW HOMEPAGE SECTIONS — v2
   ============================================ */

/* --- Category Row (4-column grid with labels below) --- */
.category-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

.section--categories {
  padding-top: var(--space-3xl);
}

.category-tile {
  display: block;
  text-align: center;
}

.category-tile__image {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  margin-bottom: var(--space-sm);
  background: var(--color-cream-dark);
}

.category-tile__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.category-tile:hover .category-tile__image img {
  transform: scale(1.04);
}

.category-tile__placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(145deg, var(--color-cream-dark), var(--color-gray-200));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gray-500);
  font-size: var(--text-xs);
}

.category-tile__label {
  font-size: var(--text-base);
  color: var(--color-charcoal);
  letter-spacing: 0.02em;
}


/* --- Quote Block --- */
.quote-block {
  text-align: center;
}

.section--quote {
  padding-bottom: var(--space-4xl); /* v20: 96px — was inheriting base .section 48px. Category section above adds 48px(its own bottom)+48px(this section's top)=96px above; this makes below match: 96px(this)+0px(banner has no padding)=96px (client spacing request) */
}

.quote-block__text {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: var(--text-4xl);
  font-style: italic;
  font-weight: 300;
  color: var(--color-charcoal);
  line-height: var(--leading-snug);
  margin-bottom: var(--space-xl);
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.quote-block__body {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: var(--text-lg);
  font-weight: 300;
  color: var(--color-gray-600);
  line-height: var(--leading-relaxed);
  max-width: 800px;
  margin: 0 auto;
}


/* --- Full-Width Banner --- */
.banner-full {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.banner-full__image {
  position: relative;
  width: 100%;
}

.banner-full__image img {
  width: 100%;
  height: auto;
  display: block;
}

/* White wash at top of banner */
.banner-full::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 35%;
  background: linear-gradient(to bottom, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0.15) 40%, transparent 100%);
  z-index: 1;
  pointer-events: none;
}

.banner-full__placeholder {
  width: 100%;
  min-height: 60vh;
  background: linear-gradient(160deg, #b8a88a 0%, #96825e 40%, #7a6c4e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-cream);
  font-size: var(--text-sm);
  opacity: 0.7;
}

.banner-full__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: var(--space-3xl);
  padding-top: 12%;
  z-index: 2;
}

.banner-full__text {
  font-family: var(--font-body); /* v21: was var(--font-heading)/Playfair Display — client wants same font family as other titles (Cormorant Garamond) */
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-style: italic;
  font-weight: 300;
  color:#B97F75; //color:#853B2E; //color: #F5E5E2; /* v21: was rgba(255,255,255,0.75) — client wants this to match the Who We Are section's background color exactly */
  text-align: center;
  max-width: 1000px;
  line-height: 1.4;
}


/* --- Content Block (centered heading + paragraph) --- */
.content-block {
  text-align: center;
  padding: var(--space-xl) 0;
}

.content-block__title {
  font-family: var(--font-body); /* v21: was var(--font-heading)/Playfair Display — client wants same font family as other titles (Cormorant Garamond) */
  font-size: var(--text-3xl);
  font-style: italic;
  font-weight: var(--weight-regular);
  color: var(--color-charcoal);
  margin-bottom: var(--space-lg);
}

.section--content-block {
  padding-top: calc(var(--space-2xl) + var(--space-xl));    /* v21: 80px — was 48px */
  padding-bottom: calc(var(--space-2xl) - var(--space-xl)); /* v21: 16px — was 48px */
  /* Above gap = banner-full's 0px + this section's 80px top = 80px.
     Below gap = this section's 16px bottom + Who We Are section's internal 64px top padding = 80px.
     Zero-sum shift (top+bottom still sums to 96px, same as before) — just rebalanced per client request. */
}

.content-block__text {
  font-size: var(--text-base);
  color: var(--color-gray-600);
  line-height: var(--leading-relaxed);
  max-width: 640px;
  margin: 0 auto;
}


/* --- Video Embed --- */
.video-embed {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--color-charcoal);
  overflow: hidden;
}

.video-embed video,
.video-embed iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: none;
}

.video-embed__placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(145deg, #4a4a3e 0%, #6b5e48 50%, #4a4a3e 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  color: var(--color-cream);
  font-size: var(--text-sm);
}

.video-embed__play-btn {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xl);
  color: var(--color-white);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.video-embed__play-btn:hover {
  background: rgba(255, 255, 255, 0.35);
}


/* --- Image Carousel --- */
.carousel-section {
  padding-top: 0;
  padding-bottom: var(--space-3xl);
}

.carousel {
  position: relative;
  overflow: hidden;
}

.carousel__track {
  display: flex;
  gap: var(--space-md);
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0 var(--space-lg);
}

.carousel__track::-webkit-scrollbar {
  display: none;
}

.carousel__slide {
  flex: 0 0 22%;
  scroll-snap-align: start;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--color-cream-dark);
}

.carousel__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel__slide-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(145deg, var(--color-cream-dark), var(--color-gray-200));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gray-500);
  font-size: var(--text-xs);
}

.carousel__arrow {
  position: absolute;
  top: calc(50% - 18px);
  width: 36px;
  height: 36px;
  background: var(--color-white);
  border: 1px solid var(--color-gray-300);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-md);
  color: var(--color-charcoal);
  cursor: pointer;
  transition: all var(--transition-fast);
  z-index: 2;
}

.carousel__arrow:hover {
  background: var(--color-charcoal);
  color: var(--color-white);
  border-color: var(--color-charcoal);
}

.carousel__arrow--left {
  left: var(--space-sm);
}

.carousel__arrow--right {
  right: var(--space-sm);
}

.carousel__arrow:disabled,
.carousel__arrow.hidden {
  opacity: 0;
  pointer-events: none;
}


/* --- Story Background (Who we are + Carousel) --- */
.section--story-bg {
  background-color: #F5E5E2;
}

/* --- Compact Image (25% smaller) --- */
.split__image--compact {
  max-width: 75%;
}

.split__image--compact img {
  width: 100%;
  height: auto;
}

.split--40-60 .split__content {
  padding-left: 0;    /* v23: was inheriting 48px from base .split__content — removed so left/middle/right gaps in Sustainable Materials section are all equal (48px), scoped only to this section */
  padding-right: 0;
}

/* --- Text Clamp (3 lines max) --- */
.split__text--clamp {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}


/* --- Mailing List (full-width image background) --- */
.mailing-list {
  position: relative;
  min-height: 450px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.mailing-list__bg {
  position: absolute;
  inset: 0;
}

.mailing-list__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mailing-list__bg-placeholder {
  width: 100%;
  height: 100%;
  min-height: 450px;
  background: linear-gradient(180deg, #9bbbd4 0%, #7ba7c4 30%, #a88e72 70%, #8b7355 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-cream);
  font-size: var(--text-xs);
  opacity: 0.4;
}

.mailing-list__content {
  position: relative;
  z-index: 1;
  padding: var(--space-2xl);
  max-width: 500px;
}

.mailing-list__title {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-style: italic;
  font-weight: var(--weight-regular);
  color: var(--color-charcoal);
  margin-bottom: var(--space-sm);
}

.mailing-list__subtitle {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--color-charcoal);
  margin-bottom: var(--space-xl);
}

.mailing-list__form {
  display: flex;
  gap: var(--space-sm);
}

.mailing-list__input {
  flex: 1;
  padding: 0.7em 1em;
  border: 1px solid var(--color-gray-300);
  background: var(--color-white);
  font-size: var(--text-base);
  font-family: var(--font-body);
}

.mailing-list__input::placeholder {
  color: var(--color-gray-400);
}

.mailing-list__input:focus {
  outline: none;
  border-color: var(--color-charcoal);
}

.mailing-list__btn {
  padding: 0.7em 1.5em;
  background: var(--color-cream);
  color: var(--color-charcoal);
  border: none;
  font-size: var(--text-sm);
  font-family: var(--font-body);
  font-weight: var(--weight-medium);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.mailing-list__btn:hover {
  background: var(--color-cream-dark);
}

/* ============================================
   17. PAGE HEADER (for inner pages)
   ============================================ */
.page-header {
  padding: var(--space-3xl) 0 var(--space-2xl);
  text-align: center;
  background-color: var(--color-cream);
}

.page-header__title {
  margin-bottom: var(--space-sm);
}

.page-header__subtitle {
  color: var(--color-gray-500);
  font-size: var(--text-md);
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--text-sm);
  color: var(--color-gray-500);
  margin-bottom: var(--space-lg);
}

.breadcrumb a {
  color: var(--color-gray-500);
}

.breadcrumb a:hover {
  color: var(--color-terracotta);
}

.breadcrumb__sep {
  font-size: var(--text-xs);
}


/* ============================================
   18. SHOP PAGE — FILTERS & GRID
   ============================================ */
.shop-layout {
  display: grid;
  grid-template-columns: 1fr; /* v27: was "var(--sidebar-width) 1fr" — filter sidebar hidden per client (1), so this reclaims that column's width for products instead of leaving blank space */
  gap: var(--space-2xl);
  align-items: start;
}

.filter-sidebar {
  display: none; /* v27: hidden per client — "no need for it now" (reversible: remove this line to bring back, also restore .shop-layout's two-column grid-template-columns) */
  position: sticky;
  top: 100px;
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
}

.filter-group {
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-xl);
  border-bottom: var(--border-thin);
}

.filter-group:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.filter-group__title {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-charcoal);
  margin-bottom: var(--space-md);
}

.filter-option {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-xs) 0;
  font-size: var(--text-sm);
  color: var(--color-gray-600);
  cursor: pointer;
}

.filter-option input {
  accent-color: var(--color-sage);
}

.filter-option__count {
  margin-left: auto;
  font-size: var(--text-xs);
  color: var(--color-gray-400);
}

.shop-toolbar {
  display: none; /* v27: hidden per client — covers both the sort dropdown (2) and "Showing X of Y" text (3), the only two things in this wrapper. Reversible: remove this line. */
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-lg);
}

.shop-toolbar__count {
  font-size: var(--text-sm);
  color: var(--color-gray-500);
}

.shop-toolbar__sort {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.shop-toolbar__sort label {
  font-size: var(--text-sm);
  color: var(--color-gray-500);
}

.shop-toolbar__sort select {
  padding: var(--space-xs) var(--space-sm);
  font-size: var(--text-sm);
  border: 1px solid var(--color-gray-300);
  border-radius: var(--radius-sm);
  background: var(--color-white);
}


/* ============================================
   19. PRODUCT DETAIL PAGE
   ============================================ */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: start;
}

.product-info {
  min-width: 0; /* v26: new — grid items default to min-width:auto, which lets long description text force this column wider than its 1fr share, squeezing/hiding the gallery column. This fixes the "long description breaks layout, image disappears" bug. */
}

.product-gallery {
  position: sticky;
  top: 100px;
}

.product-gallery__main {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--color-gray-100);
  margin-bottom: var(--space-md);
}

.product-gallery__main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-sm);
}

.product-gallery__thumb {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--color-gray-100);
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color var(--transition-fast);
}

.product-gallery__thumb--active,
.product-gallery__thumb:hover {
  border-color: var(--color-charcoal);
}

.product-info__name {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: var(--weight-regular);
  font-style: italic;
  margin-bottom: var(--space-md);
}

.product-info__price-row {
  display: flex;
  align-items: baseline;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.product-info__price {
  font-size: var(--text-2xl);
  font-weight: var(--weight-medium);
  color: var(--color-charcoal);
}

.product-info__price--sale {
  color: var(--color-terracotta);
}

.product-info__price--original {
  font-size: var(--text-lg);
  color: var(--color-gray-400);
  text-decoration: line-through;
  font-weight: var(--weight-regular);
}

.product-info__stock {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--color-sage);
  margin-bottom: var(--space-lg);
}

.product-info__stock--low {
  color: var(--color-warning);
}

.product-info__stock--out {
  color: var(--color-error);
}

.product-info__description {
  color: var(--color-gray-600);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-xl);
  overflow-wrap: break-word; /* v26: new — secondary safeguard so even a single long unbroken word (e.g. a URL) wraps instead of forcing the grid wider */
}

.product-info__options {
  margin-bottom: var(--space-xl);
}

.product-info__option-label {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  margin-bottom: var(--space-sm);
}

.size-selector {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.size-btn {
  padding: 0.5em 1.2em;
  border: 1px solid var(--color-gray-300);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-charcoal);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.size-btn:hover {
  border-color: var(--color-sage);
}

.size-btn--active {
  border-color: var(--color-sage);
  background-color: var(--color-sage);
  color: var(--color-white);
}

.quantity-selector {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--color-gray-300);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.quantity-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-md);
  color: var(--color-charcoal);
  transition: background-color var(--transition-fast);
}

.quantity-btn:hover {
  background-color: var(--color-gray-100);
}

.quantity-value {
  width: 50px;
  text-align: center;
  font-weight: var(--weight-semibold);
  border-left: 1px solid var(--color-gray-300);
  border-right: 1px solid var(--color-gray-300);
  height: 40px;
  line-height: 40px;
}

.product-info__add-row {
  display: flex;
  gap: var(--space-md);
  align-items: center;
  margin-bottom: var(--space-2xl);
}

/* Product details — quiet inline list */
.product-info__details {
  margin-bottom: var(--space-lg);
}

.product-info__detail {
  font-size: var(--text-sm);
  color: var(--color-gray-500);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-xs);
}

.product-info__detail-label {
  color: var(--color-charcoal);
  font-weight: var(--weight-medium);
  margin-right: var(--space-sm);
}

.product-info__detail-label::after {
  content: ' —';
}

/* Categories — subtle footnote */
.product-info__categories {
  font-size: var(--text-sm);
  color: var(--color-gray-400);
}

.product-info__categories a {
  color: var(--color-gray-500);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.product-info__categories a:hover {
  color: var(--color-charcoal);
}

/* Related products title */
.product-related__title {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-style: italic;
  font-weight: var(--weight-regular);
  text-align: center;
  margin-bottom: var(--space-xl);
}

/* Product tabs */
.product-tabs {
  border-top: var(--border-thin);
  margin-top: var(--space-2xl);
}

.product-tabs__nav {
  display: flex;
  border-bottom: var(--border-thin);
}

.product-tabs__btn {
  padding: var(--space-md) var(--space-xl);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--color-gray-500);
  border-bottom: 2px solid transparent;
  transition: all var(--transition-fast);
}

.product-tabs__btn--active,
.product-tabs__btn:hover {
  color: var(--color-charcoal);
  border-bottom-color: var(--color-terracotta);
}

.product-tabs__panel {
  display: none;
  padding: var(--space-xl) 0;
  color: var(--color-gray-600);
  line-height: var(--leading-relaxed);
}

.product-tabs__panel--active {
  display: block;
}

/* Impact badge */
.impact-badge {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-lg);
  background: rgba(91, 123, 58, 0.06);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--color-sage);
}

.impact-badge__icon {
  color: var(--color-sage);
  flex-shrink: 0;
}

.impact-badge__icon svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
}

.impact-badge__text {
  font-size: var(--text-sm);
  color: var(--color-sage-dark);
  font-weight: var(--weight-medium);
}


/* ============================================
   20. CART PAGE
   ============================================ */
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: var(--space-2xl);
  align-items: start;
}

.cart-item {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: var(--space-lg);
  align-items: center;
  padding: var(--space-lg) 0;
  border-bottom: var(--border-thin);
}

.cart-item__image {
  width: 100px;
  height: 120px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--color-gray-100);
}

.cart-item__name {
  font-family: var(--font-heading);
  font-weight: var(--weight-medium);
  margin-bottom: var(--space-xs);
}

.cart-item__variant {
  font-size: var(--text-sm);
  color: var(--color-gray-500);
  margin-bottom: var(--space-sm);
}

.cart-item__remove {
  font-size: var(--text-sm);
  color: var(--color-gray-400);
  text-decoration: underline;
  cursor: pointer;
}

.cart-item__remove:hover {
  color: var(--color-error);
}

.cart-item__right {
  text-align: right;
}

.cart-item__price {
  font-weight: var(--weight-semibold);
  margin-bottom: var(--space-sm);
}

/* Order summary sidebar */
.order-summary {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  position: sticky;
  top: 100px;
}

.order-summary__title {
  font-size: var(--text-lg);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: var(--border-thin);
}

.order-summary__row {
  display: flex;
  justify-content: space-between;
  padding: var(--space-sm) 0;
  font-size: var(--text-sm);
}

.order-summary__row--total {
  padding-top: var(--space-md);
  margin-top: var(--space-md);
  border-top: var(--border-medium);
  font-weight: var(--weight-bold);
  font-size: var(--text-lg);
}

.order-summary__coupon {
  display: flex;
  gap: var(--space-sm);
  margin: var(--space-lg) 0;
}

.order-summary__coupon input {
  flex: 1;
  padding: 0.6em 0.8em;
  font-size: var(--text-sm);
  border: 1px solid var(--color-gray-300);
  border-radius: var(--radius-sm);
}


/* ============================================
   21. CHECKOUT PAGE
   ============================================ */
.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: var(--space-2xl);
  align-items: start;
}

.checkout-steps {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
}

.checkout-step {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--text-sm);
  color: var(--color-gray-400);
}

.checkout-step--active {
  color: var(--color-charcoal);
  font-weight: var(--weight-semibold);
}

.checkout-step--done {
  color: var(--color-sage);
}

.checkout-step__number {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  border: 2px solid currentColor;
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
}

.checkout-step--active .checkout-step__number {
  background: var(--color-charcoal);
  border-color: var(--color-charcoal);
  color: var(--color-white);
}

.checkout-step--done .checkout-step__number {
  background: var(--color-sage);
  border-color: var(--color-sage);
  color: var(--color-white);
}

.checkout-step__line {
  width: 40px;
  height: 2px;
  background: var(--color-gray-300);
}

.checkout-section {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  margin-bottom: var(--space-lg);
}

.checkout-section__title {
  font-size: var(--text-lg);
  margin-bottom: var(--space-lg);
}

/* Shipping method radio cards */
.shipping-option {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-sm);
  cursor: pointer;
  transition: border-color var(--transition-fast);
}

.shipping-option:hover,
.shipping-option--active {
  border-color: var(--color-sage);
}

.shipping-option--active {
  background: rgba(91, 123, 58, 0.04);
}

.shipping-option input[type="radio"] {
  accent-color: var(--color-sage);
}

.shipping-option__info {
  flex: 1;
}

.shipping-option__name {
  font-weight: var(--weight-semibold);
  font-size: var(--text-sm);
}

.shipping-option__time {
  font-size: var(--text-xs);
  color: var(--color-gray-500);
}

.shipping-option__price {
  font-weight: var(--weight-semibold);
}


/* ============================================
   22. ORDER CONFIRMATION
   ============================================ */
.confirmation {
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
}

.confirmation__icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(91, 123, 58, 0.1);
  border-radius: var(--radius-full);
  color: var(--color-sage);
}

.confirmation__icon svg {
  width: 40px;
  height: 40px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.confirmation__title {
  margin-bottom: var(--space-sm);
}

.confirmation__order-number {
  font-size: var(--text-md);
  color: var(--color-gray-500);
  margin-bottom: var(--space-2xl);
}

/* Status timeline */
.status-timeline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: var(--space-2xl) 0;
}

.status-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  padding: 0 var(--space-lg);
}

.status-step__dot {
  width: 16px;
  height: 16px;
  border-radius: var(--radius-full);
  background: var(--color-gray-300);
}

.status-step--done .status-step__dot {
  background: var(--color-sage);
}

.status-step--active .status-step__dot {
  background: var(--color-sage);
  box-shadow: 0 0 0 4px rgba(91, 123, 58, 0.2);
}

.status-step__label {
  font-size: var(--text-xs);
  color: var(--color-gray-500);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.status-step--done .status-step__label,
.status-step--active .status-step__label {
  color: var(--color-sage);
  font-weight: var(--weight-semibold);
}

.status-step__line {
  width: 60px;
  height: 2px;
  background: var(--color-gray-300);
  align-self: flex-start;
  margin-top: 7px;
}

.status-step--done + .status-step__line {
  background: var(--color-sage);
}


/* ============================================
   23. ACCOUNT PAGE
   ============================================ */
.auth-tabs {
  display: flex;
  border-bottom: var(--border-medium);
  margin-bottom: var(--space-xl);
}

.auth-tab {
  padding: var(--space-md) var(--space-xl);
  font-weight: var(--weight-semibold);
  color: var(--color-gray-500);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.auth-tab--active {
  color: var(--color-charcoal);
  border-bottom-color: var(--color-terracotta);
}

.auth-form {
  max-width: 440px;
  margin: 0 auto;
}

.account-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: var(--space-2xl);
}

.account-nav__link {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-md);
  font-size: var(--text-sm);
  color: var(--color-gray-600);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.account-nav__link:hover {
  background: var(--color-cream-dark);
  color: var(--color-charcoal);
}

.account-nav__link--active {
  background: rgba(91, 123, 58, 0.08);
  color: var(--color-sage);
  font-weight: var(--weight-semibold);
}


/* ============================================
   24. FAQ ACCORDION
   ============================================ */
.faq-item {
  border-bottom: var(--border-thin);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: var(--space-lg) 0;
  font-size: var(--text-md);
  font-weight: var(--weight-semibold);
  color: var(--color-charcoal);
  text-align: left;
  cursor: pointer;
}

.faq-question__icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: var(--color-gray-400);
  transition: transform var(--transition-base);
}

.faq-item.open .faq-question__icon {
  transform: rotate(45deg);
  color: var(--color-terracotta);
}

.faq-answer {
  display: none;
  padding-bottom: var(--space-lg);
  color: var(--color-gray-600);
  line-height: var(--leading-relaxed);
}

.faq-item.open .faq-answer {
  display: block;
}


/* ============================================
   25. LEGAL PAGES
   ============================================ */
.legal-content {
  max-width: var(--container-narrow);
  margin: 0 auto;
  line-height: var(--leading-relaxed);
}

.legal-content h2 {
  font-size: var(--text-xl);
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-md);
}

.legal-content h3 {
  font-size: var(--text-lg);
  margin-top: var(--space-xl);
  margin-bottom: var(--space-sm);
}

.legal-content p {
  color: var(--color-gray-600);
  margin-bottom: var(--space-md);
}

.legal-content ul {
  list-style: disc;
  margin-left: var(--space-xl);
  margin-bottom: var(--space-md);
  color: var(--color-gray-600);
}

.legal-content li {
  margin-bottom: var(--space-xs);
}


/* ============================================
   26. TABLES
   ============================================ */
.table-wrap {
  overflow-x: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th {
  text-align: left;
  padding: var(--space-md);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-gray-500);
  border-bottom: var(--border-medium);
}

.table td {
  padding: var(--space-md);
  font-size: var(--text-sm);
  border-bottom: var(--border-thin);
  color: var(--color-gray-600);
}

.table tr:hover td {
  background: var(--color-gray-100);
}


/* ============================================
   27. BADGES & TAGS
   ============================================ */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  border-radius: var(--radius-full);
  letter-spacing: 0.02em;
}

.badge--sage    { background: rgba(91, 123, 58, 0.1); color: var(--color-sage); }
.badge--terra   { background: rgba(194, 112, 62, 0.1); color: var(--color-terracotta); }
.badge--warning { background: rgba(212, 160, 60, 0.1); color: var(--color-warning); }
.badge--error   { background: rgba(196, 75, 75, 0.1); color: var(--color-error); }
.badge--info    { background: rgba(74, 123, 157, 0.1); color: var(--color-info); }


/* ============================================
   28. PAGINATION
   ============================================ */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  margin-top: var(--space-2xl);
}

.pagination__btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-gray-600);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.pagination__btn:hover {
  background: var(--color-cream-dark);
  color: var(--color-charcoal);
}

.pagination__btn--active {
  background: var(--color-sage);
  color: var(--color-white);
}

.pagination__btn--disabled {
  opacity: 0.3;
  cursor: not-allowed;
}


/* ============================================
   29. EMPTY STATES
   ============================================ */
.empty-state {
  text-align: center;
  padding: var(--space-4xl) var(--space-xl);
}

.empty-state__icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-gray-100);
  border-radius: var(--radius-full);
  color: var(--color-gray-400);
}

.empty-state__icon svg {
  width: 36px;
  height: 36px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
}

.empty-state__title {
  font-size: var(--text-lg);
  margin-bottom: var(--space-sm);
}

.empty-state__text {
  color: var(--color-gray-500);
  margin-bottom: var(--space-xl);
}


/* ============================================
   30. ANIMATIONS
   ============================================ */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.anim-fade-in {
  opacity: 0;
  animation: fadeIn 0.6s ease forwards;
}

.anim-fade-in-up {
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
}

.anim-slide-up {
  opacity: 0;
  animation: slideUp 0.8s ease forwards;
}

/* Stagger delays */
.anim-delay-1 { animation-delay: 0.1s; }
.anim-delay-2 { animation-delay: 0.2s; }
.anim-delay-3 { animation-delay: 0.3s; }
.anim-delay-4 { animation-delay: 0.4s; }
.anim-delay-5 { animation-delay: 0.5s; }
.anim-delay-6 { animation-delay: 0.6s; }

/* Scroll-triggered animations (activated by JS) */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}


/* ============================================

/* ============================================
   31. RESPONSIVE — TABLET (max 1024px)
   ============================================ */
@media (max-width: 1024px) {
  :root {
    --text-5xl: 2.75rem;
    --text-4xl: 2.25rem;
    --text-3xl: 1.875rem;
  }

  .grid--4 { grid-template-columns: repeat(3, 1fr); }

  .product-grid { grid-template-columns: repeat(3, 1fr); }

  .hero__image { width: 45%; }

  /* Splits stack on tablet */
  .split,
  .split--60-40,
  .split--40-60 { grid-template-columns: 1fr; }
  .split__content { padding: var(--space-2xl); }

  /* Category row: 2x2 */
  .category-row { grid-template-columns: repeat(2, 1fr); }

  /* Carousel slides wider */
  .carousel__slide { flex: 0 0 30%; }

  .footer__grid { grid-template-columns: repeat(3, 1fr); }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }

  .shop-layout { grid-template-columns: 240px 1fr; }

  .product-detail { gap: var(--space-2xl); }

  .cart-layout { grid-template-columns: 1fr 340px; }

  .checkout-layout { grid-template-columns: 1fr 360px; }

  /* Hero full: smaller logo */
  .hero-full__logo-img { max-height: 300px; }
}


/* ============================================
   32. RESPONSIVE — MOBILE (max 768px)
   ============================================ */
@media (max-width: 768px) {
  :root {
    --text-5xl: 2.25rem;
    --text-4xl: 1.875rem;
    --text-3xl: 1.5rem;
    --text-2xl: 1.25rem;
  }

  .container {
    padding: 0 var(--space-md);
  }

  .section {
    padding: var(--space-2xl) 0;
  }

  /* Nav */
  .nav__links { display: none; }
  .nav__social-link { display: none; }
  .nav__hamburger { display: flex; }
  /* v19: removed ".nav__mobile-menu { display: block; }" — it broke the flex-column stacking,
     causing links to run together as unstyled paragraph text at <=768px, and was also the root
     cause of the pre-existing "menu visible without tapping hamburger" bug from the handout.
     .nav__mobile-menu already defaults to display:flex + right:-320px (hidden off-screen);
     only .open (added by JS) should ever bring it on screen — no override needed here. */

  /* Old hero (used on other pages) */
  .hero {
    min-height: 70vh;
  }

  .hero__image {
    position: relative;
    width: 100%;
    height: 300px;
  }

  .hero {
    flex-direction: column-reverse;
  }

  .hero__content {
    padding: var(--space-2xl) 0;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  /* New hero full */
  .hero-full__overlay {
    right: var(--space-xl);
  }

  .hero-full__logo-img {
    max-height: 180px;
  }

  .hero-full__tagline p {
    font-size: var(--text-3xl);
  }

  /* Grids */
  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: 1fr;
  }

  .product-grid { grid-template-columns: repeat(2, 1fr); }

  .promise-bar__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }

  .testimonial-grid { grid-template-columns: 1fr; }

  .category-row { grid-template-columns: repeat(2, 1fr); }

  .footer__grid { grid-template-columns: 1fr; gap: var(--space-xl); }

  .footer__bottom {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }

  .footer__legal-links {
    justify-content: center;
  }

  /* Quote block */
  .quote-block__text {
    font-size: var(--text-2xl);
  }

  /* Banner */
  .banner-full__placeholder {
    min-height: 50vh;
  }

  .banner-full__text {
    font-size: var(--text-2xl);
  }

  /* Carousel */
  .carousel__slide { flex: 0 0 45%; }

  /* Mailing list */
  .mailing-list {
    min-height: 350px;
  }

  .mailing-list__bg-placeholder {
    min-height: 350px;
  }

  .mailing-list__content {
    padding: var(--space-2xl);
  }

  .mailing-list__form {
    flex-direction: column;
  }

  /* Split sections */
  .split__content {
    padding: var(--space-xl);
  }

  /* Shop */
  .shop-layout {
    grid-template-columns: 1fr;
  }

  .filter-sidebar {
    position: static;
    display: none;
  }

  .filter-sidebar.open {
    display: block;
  }

  /* Product detail */
  .product-detail {
    grid-template-columns: 1fr;
  }

  .product-gallery {
    position: static;
  }

  /* Cart */
  .cart-layout {
    grid-template-columns: 1fr;
  }

  .cart-item {
    grid-template-columns: 80px 1fr;
  }

  .cart-item__right {
    grid-column: span 2;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: var(--space-sm);
  }

  /* Checkout */
  .checkout-layout {
    grid-template-columns: 1fr;
  }

  /* Account */
  .account-layout {
    grid-template-columns: 1fr;
  }

  /* Forms */
  .form-row {
    grid-template-columns: 1fr;
  }

  .newsletter__form {
    flex-direction: column;
  }

  /* Category cards */
  .category-showcase-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}


/* ============================================
   33. RESPONSIVE — SMALL MOBILE (max 480px)
   ============================================ */
@media (max-width: 480px) {
  :root {
    --text-5xl: 1.875rem;
    --text-4xl: 1.5rem;
  }

  .product-grid { grid-template-columns: 1fr; }

  .promise-bar__grid { grid-template-columns: 1fr; }

  .stats-grid { grid-template-columns: 1fr; }

  .hero { min-height: auto; }

  .hero-full__overlay { right: var(--space-md); }

  .hero-full__logo-img { max-height: 120px; }

  .hero-full__tagline p { font-size: var(--text-2xl); }

  .category-row { grid-template-columns: repeat(2, 1fr); gap: var(--space-sm); }

  .carousel__slide { flex: 0 0 70%; }

  .banner-full__placeholder { min-height: 40vh; }
  .banner-full__text { font-size: var(--text-lg); }

  .split__title { font-size: var(--text-2xl); }
}


/* ============================================
   34. UTILITY HELPERS
   ============================================ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.hidden { display: none !important; }

.mb-0   { margin-bottom: 0 !important; }
.mb-sm  { margin-bottom: var(--space-sm) !important; }
.mb-md  { margin-bottom: var(--space-md) !important; }
.mb-lg  { margin-bottom: var(--space-lg) !important; }
.mb-xl  { margin-bottom: var(--space-xl) !important; }
.mb-2xl { margin-bottom: var(--space-2xl) !important; }

.mt-0   { margin-top: 0 !important; }
.mt-md  { margin-top: var(--space-md) !important; }
.mt-lg  { margin-top: var(--space-lg) !important; }
.mt-xl  { margin-top: var(--space-xl) !important; }

.pt-0   { padding-top: 0 !important; }
.pb-0   { padding-bottom: 0 !important; }


/* ============================================
   ABOUT PAGE — IMAGE COLLAGE
   Fixed 5-image scattered/moodboard layout, placed after the last
   visible section on about.php. Not admin-editable — positions/images
   are hardcoded in about.php.
   ============================================ */
.about-collage {
  position: relative;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  height: 640px;
}

.about-collage__item {
  position: absolute;
  background: var(--color-white);
  padding: var(--space-xs);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  border-radius: var(--radius-sm);
}

.about-collage__item-placeholder {
  width: 100%;
  height: 100%;
  background: var(--color-gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gray-400);
  font-size: var(--text-sm);
}

.about-collage__item--1 { top: 0;     left: 4%;  width: 30%; height: 320px; transform: rotate(-3deg); z-index: 2; }
.about-collage__item--2 { top: 260px; left: 30%; width: 22%; height: 380px; transform: rotate(2deg);  z-index: 3; }
.about-collage__item--3 { top: 40px;  left: 55%; width: 20%; height: 260px; transform: rotate(-2deg); z-index: 1; }
.about-collage__item--4 { top: 340px; left: 4%;  width: 24%; height: 300px; transform: rotate(2deg);  z-index: 2; }
.about-collage__item--5 { top: 300px; left: 78%; width: 20%; height: 300px; transform: rotate(-1deg); z-index: 1; }

@media (max-width: 768px) {
  .about-collage {
    height: auto;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    padding: 0 var(--space-md);
  }

  .about-collage__item {
    position: static;
    width: 100% !important;
    height: 240px;
    transform: none !important;
  }
}
