/* ============================================================
   Thread Growth — Clothing Store Theme
   Palette: Deep Plum #6B2D5E + Champagne Gold #D4A853
   Typography: Cormorant Garamond (display) + DM Sans (body)
   ============================================================ */

/* ===== CSS VARIABLES ===== */
:root {
  --clr-primary:       #6B2D5E;
  --clr-primary-light: #8A4278;
  --clr-accent:        #D4A853;
  --clr-accent-dark:   #B8892D;
  --clr-bg:            #FDFBF9;
  --clr-dark:          #1A0B17;
  --clr-surface:       #F4EEF3;
  --clr-surface-2:     #EDE2EB;
  --clr-border:        #E5D9E2;
  --clr-muted:         #6B5568;
  --clr-text:          #2D1A2A;
  --ff-display:        'Cormorant Garamond', Georgia, serif;
  --ff-body:           'DM Sans', system-ui, sans-serif;
  --radius:            4px;
  --radius-lg:         12px;
  --radius-xl:         20px;
  --shadow-sm:         0 1px 4px rgba(26,11,23,.08);
  --shadow-md:         0 4px 20px rgba(26,11,23,.12);
  --shadow-lg:         0 12px 40px rgba(26,11,23,.18);
  --transition:        .3s cubic-bezier(.4,0,.2,1);
  --transition-fast:   .18s cubic-bezier(.4,0,.2,1);
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--ff-body);
  background: var(--clr-bg);
  color: var(--clr-text);
  line-height: 1.65;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: inherit; }

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 {
  font-family: var(--ff-display);
  line-height: 1.15;
  letter-spacing: -.01em;
  color: inherit;
}
h1 { font-size: clamp(2.8rem, 6vw, 5rem); font-weight: 600; }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 600; }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); font-weight: 500; }
h4 { font-size: 1.15rem; font-weight: 500; }
p  { line-height: 1.7; }

.eyebrow {
  font-family: var(--ff-body);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--clr-accent);
  display: inline-block;
  margin-bottom: .75rem;
}

/* ===== UTILITIES ===== */
.container {
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2.5rem);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .8rem 2rem;
  border-radius: var(--radius);
  font-family: var(--ff-body);
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
  cursor: pointer;
  border: 2px solid transparent;
}
.btn:hover  { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }
.btn--primary   { background: var(--clr-primary); color: #fff; }
.btn--primary:hover { background: var(--clr-primary-light); }
.btn--accent    { background: var(--clr-accent); color: var(--clr-dark); color: oklch(from var(--clr-accent) clamp(0, (0.57 - l) * 1000, 1) 0 0); }
.btn--accent:hover { background: var(--clr-accent-dark); }
.btn--outline   { background: transparent; border-color: currentColor; color: var(--clr-primary); }
.btn--outline:hover { background: var(--clr-primary); color: #fff; border-color: var(--clr-primary); }
.btn--ghost-light { background: transparent; border-color: rgba(255,255,255,.5); color: #fff; }
.btn--ghost-light:hover { background: rgba(255,255,255,.12); border-color: #fff; }

.section-header { text-align: center; max-width: 640px; margin-inline: auto; margin-bottom: 3rem; }
.section-header p { color: var(--clr-muted); margin-top: .75rem; }

/* ===== ACCESSIBILITY ===== */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  padding: .6rem 1.2rem;
  background: var(--clr-primary);
  color: #fff;
  border-radius: 0 0 var(--radius) var(--radius);
  font-size: .875rem;
  z-index: 9999;
  transition: top var(--transition-fast);
}
.skip-link:focus { top: 0; }

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: var(--background, rgba(253,251,249,.92));
  border-bottom: 1px solid var(--clr-border);
  transition: box-shadow var(--transition);
}
/* The blur lives on a layer, not the header: backdrop-filter on the header makes it the containing
   block of the position:fixed mobile drawer, which then sizes to the header and widens the page. */
.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.site-header.scrolled { box-shadow: var(--shadow-md); }
.header-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 68px;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: .65rem;
  flex-shrink: 0;
  font-family: var(--ff-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--clr-primary);
  letter-spacing: .02em;
}
.site-logo img { height: 36px; width: auto; }
.site-nav {
  display: flex;
  align-items: center;
  gap: .25rem;
  margin-inline-start: auto;
}
.site-nav a {
  position: relative;
  font-size: .875rem;
  font-weight: 500;
  color: var(--clr-text);
  padding: .4rem .8rem;
  border-radius: var(--radius);
  transition: color var(--transition-fast);
}
.site-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: .8rem;
  width: 0;
  height: 1.5px;
  background: var(--clr-accent);
  transition: width var(--transition);
}
.site-nav a:hover { color: var(--clr-primary); }
.site-nav a:hover::after { width: calc(100% - 1.6rem); }
.header-actions { display: flex; align-items: center; gap: .5rem; margin-inline-start: 1.5rem; }
.cart-toggle {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: var(--clr-text);
  transition: background var(--transition-fast), color var(--transition-fast);
}
.cart-toggle:hover { background: var(--clr-surface); color: var(--clr-primary); }
.cart-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  background: var(--clr-accent);
  color: var(--clr-dark);
  font-size: .65rem;
  font-weight: 700;
  border-radius: 99px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: transform .2s;
  color: oklch(from var(--clr-accent) clamp(0, (0.57 - l) * 1000, 1) 0 0);
}
.cart-badge.pulse { animation: badgePulse .3s ease; }
@keyframes badgePulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.35); } }
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 10px;
}
.menu-toggle span {
  display: block;
  height: 1.5px;
  background: var(--clr-text);
  transition: transform var(--transition), opacity var(--transition);
  border-radius: 2px;
}
.menu-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
}
.hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 5rem clamp(2rem,5vw,4rem) 5rem clamp(2rem,5vw,4rem);
  background: var(--clr-dark);
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .35rem .9rem;
  border: 1px solid rgba(212,168,83,.4);
  border-radius: var(--radius, 99px);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--clr-accent);
  width: fit-content;
  margin-bottom: 1.5rem;
}
.hero__badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--clr-accent);
  flex-shrink: 0;
}
.hero h1 {
  font-size: clamp(3rem, 5.5vw, 5.5rem);
  font-weight: 700;
  color: var(--wb-on-dark, #fff);
  line-height: 1.05;
  margin-bottom: 1.25rem;
}
.hero h1 em { font-style: italic; color: var(--clr-accent); }
.hero__subtitle { font-size: 1.05rem; color: var(--wb-on-dark, rgba(255,255,255,.68)); margin-bottom: 2.5rem; max-width: 440px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero__image {
  position: relative;
  overflow: hidden;
}
.hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 12s ease;
}
.hero__image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--clr-dark) 0%, transparent 30%);
  pointer-events: none;
}

/* ===== STATS BAND ===== */
.stats-band {
  background: var(--clr-surface);
  border-bottom: 1px solid var(--clr-border);
  padding: 1.5rem 0;
}
.stats-band__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem 3rem;
}
.stat-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: .9rem;
  font-weight: 500;
  color: var(--clr-text);
}
.stat-item svg { color: var(--clr-accent); flex-shrink: 0; }
.stat-divider { width: 1px; height: 28px; background: var(--clr-border); }

/* ===== CATEGORIES ===== */
.categories { padding: 5rem 0; background: var(--clr-bg); }
.categories-bento {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  grid-template-rows: 280px 280px;
  gap: 1rem;
}
.category-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
}
.category-card:nth-child(1) { grid-row: 1 / 3; }
.category-card:nth-child(4) { grid-column: 2 / 4; }
.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.4,0,.2,1);
}
.category-card:hover img { transform: scale(1.06); }
.category-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,11,23,.75) 0%, transparent 55%);
  transition: background var(--transition);
}
.category-card:hover .category-card__overlay { background: linear-gradient(to top, rgba(26,11,23,.85) 0%, rgba(107,45,94,.2) 60%); }
.category-card__info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  transform: translateY(8px);
  transition: transform var(--transition);
}
.category-card:hover .category-card__info { transform: translateY(0); }
.category-card__name {
  font-family: var(--ff-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: #fff;
  display: block;
  margin-bottom: .4rem;
}
.category-card__cta {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--clr-accent);
  opacity: 0;
  transition: opacity var(--transition);
}
.category-card:hover .category-card__cta { opacity: 1; }

/* ===== PRODUCTS SECTION ===== */
.products-section { padding: 5rem 0; background: var(--clr-surface); }
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}
.products-cta-wrap { text-align: center; margin-top: 3rem; }

/* ===== PRODUCT CARD ===== */
.product-card {
  background: var(--clr-bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}
.product-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.product-card__image-wrap {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 3/4;
  background: var(--clr-surface);
}
.product-card__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.4,0,.2,1);
}
.product-card:hover .product-card__image-wrap img { transform: scale(1.07); }
.product-card__quick-view {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: rgba(255,255,255,.95);
  color: var(--clr-primary);
  padding: .5rem 1.1rem;
  border-radius: 99px;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  transition: opacity var(--transition-fast), transform var(--transition);
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: .4rem;
  box-shadow: 0 2px 12px rgba(26,11,23,.2);
}
.product-card:hover .product-card__quick-view { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; }
.product-card__info { padding: 1.1rem 1.2rem 1.3rem; }
.product-card__title { font-size: 1rem; font-weight: 500; margin-bottom: .35rem; }
.product-card__title a { color: var(--clr-text); transition: color var(--transition-fast); }
.product-card__title a:hover { color: var(--clr-primary); }
.product-card__price { display: flex; align-items: baseline; gap: .5rem; margin-bottom: .75rem; }
.product-card__price-current { font-size: 1rem; font-weight: 600; color: var(--clr-primary); }
.product-card__price-original { font-size: .875rem; text-decoration: line-through; color: var(--clr-muted); }
.product-card__add-btn {
  width: 100%;
  padding: .6rem 1rem;
  background: var(--clr-primary);
  color: #fff;
  border-radius: var(--radius);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: background var(--transition-fast), transform var(--transition-fast);
}
.product-card__add-btn:hover { background: var(--clr-primary-light); transform: none; }
.product-card__add-btn:active { transform: scale(.97); }

/* ===== CATEGORY FILTER BAR ===== */
.product-filter { margin-bottom: 2.5rem; }
.product-filter__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.product-filter__categories {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.filter-chip {
  padding: .45rem 1.1rem;
  border-radius: 99px;
  font-size: .8rem;
  font-weight: 500;
  border: 1.5px solid var(--clr-border);
  color: var(--clr-muted);
  background: var(--clr-bg);
  transition: all var(--transition-fast);
}
.filter-chip:hover { border-color: var(--clr-primary); color: var(--clr-primary); }
.filter-chip--active { background: var(--clr-primary); color: #fff; border-color: var(--clr-primary); }
.product-sort { display: flex; align-items: center; gap: .5rem; font-size: .875rem; }
.product-sort select {
  padding: .4rem .8rem;
  border: 1.5px solid var(--clr-border);
  border-radius: var(--radius);
  background: var(--clr-bg);
  color: var(--clr-text);
  font-size: .8rem;
  cursor: pointer;
}

/* ===== BREADCRUMBS ===== */
.breadcrumbs { padding: 1rem 0 .5rem; }
.breadcrumbs ol {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .25rem;
  font-size: .8rem;
  color: var(--clr-muted);
}
.breadcrumbs li { display: flex; align-items: center; gap: .25rem; }
.breadcrumbs li + li::before { content: '/'; color: var(--clr-border); }
.breadcrumbs a:hover { color: var(--clr-primary); }
.breadcrumbs [aria-current] { color: var(--clr-text); font-weight: 500; }

/* ===== PRODUCT DETAIL ===== */
.product-detail-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  padding: 2.5rem 0 5rem;
  align-items: start;
}
.product-gallery { display: flex; flex-direction: column; gap: .75rem; }
.product-gallery__main {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 3/4;
  background: var(--clr-surface);
}
.product-gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.product-gallery__thumbs { display: flex; gap: .5rem; }
.product-gallery__thumbs button {
  flex: 0 0 72px;
  height: 72px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid transparent;
  transition: border-color var(--transition-fast);
}
.product-gallery__thumbs button:hover,
.product-gallery__thumbs button.active { border-color: var(--clr-primary); }
.product-gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.product-info { padding-top: .5rem; }
.product-info__category {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--clr-accent);
  margin-bottom: .5rem;
  display: block;
}
.product-info h1 { font-size: clamp(2rem,3.5vw,2.8rem); margin-bottom: .75rem; }
.product-info__rating { display: flex; align-items: center; gap: .5rem; margin-bottom: 1rem; }
.stars { color: var(--clr-accent); letter-spacing: .05em; }
.rating-count { font-size: .85rem; color: var(--clr-muted); }
.product-price { display: flex; align-items: baseline; gap: .75rem; margin-bottom: 1.5rem; }
.product-price__current { font-family: var(--ff-display); font-size: 2rem; font-weight: 600; color: var(--clr-primary); }
.product-price__original { font-size: 1.1rem; text-decoration: line-through; color: var(--clr-muted); }
.product-price__badge {
  font-size: .7rem;
  font-weight: 700;
  padding: .2rem .5rem;
  background: var(--clr-accent);
  color: var(--clr-dark);
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: oklch(from var(--clr-accent) clamp(0, (0.57 - l) * 1000, 1) 0 0);
}
.product-info__desc { font-size: .95rem; color: var(--clr-muted); margin-bottom: 1.75rem; line-height: 1.7; }

/* ===== VARIANT CHIPS ===== */
.variant-selector { margin-bottom: 1.25rem; }
.variant-selector__label {
  display: block;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--clr-text);
  margin-bottom: .65rem;
  border: none;
  padding: 0;
}
.variant-selector__options { display: flex; flex-wrap: wrap; gap: .4rem; }
.variant-chip { position: relative; cursor: pointer; }
.variant-chip input { position: absolute; opacity: 0; width: 0; height: 0; }
.variant-chip span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 .9rem;
  border: 1.5px solid var(--clr-border);
  border-radius: var(--radius);
  font-size: .875rem;
  font-weight: 500;
  color: var(--clr-text);
  transition: all var(--transition-fast);
}
.variant-chip:hover span { border-color: var(--clr-primary); color: var(--clr-primary); }
.variant-chip--active span,
.variant-chip input:checked + span { background: var(--clr-primary); color: #fff; border-color: var(--clr-primary); }
.product-atc-row { display: flex; gap: .75rem; align-items: center; margin-bottom: 1.5rem; }
.qty-selector {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--clr-border);
  border-radius: var(--radius);
  overflow: hidden;
  flex-shrink: 0;
}
.qty-selector button {
  width: 40px;
  height: 44px;
  font-size: 1.1rem;
  color: var(--clr-muted);
  transition: background var(--transition-fast);
}
.qty-selector button:hover { background: var(--clr-surface); color: var(--clr-primary); }
.qty-selector span { width: 44px; text-align: center; font-weight: 600; }

/* ===== STICKY ATC ===== */
.sticky-atc { display: none; }
@media (max-width: 768px) {
  .sticky-atc {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 16px;
    background: var(--clr-bg);
    border-top: 1px solid var(--clr-border);
    z-index: 800;
    box-shadow: 0 -4px 16px rgba(26,11,23,.1);
    transform: translateY(100%);
    transition: transform var(--transition);
  }
  .sticky-atc.visible {
    display: flex;
    align-items: center;
    justify-content: space-between;
    transform: translateY(0);
  }
  .sticky-atc__info { flex: 1; min-width: 0; }
  .sticky-atc__title { font-weight: 600; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .sticky-atc__price { color: var(--clr-primary); font-weight: 700; font-size: .9rem; }
  .sticky-atc .btn { flex-shrink: 0; padding: .65rem 1.4rem; font-size: .8rem; }
}

/* ===== REVIEWS ===== */
.reviews-section { padding: 4rem 0; background: var(--clr-surface); }
.reviews-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); gap: 1.5rem; margin-bottom: 3rem; }
.review-item {
  background: var(--clr-bg);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--clr-border);
}
.review-item .stars { font-size: 1rem; }
.review-author { font-weight: 600; font-size: .9rem; }
.review-title { font-size: .95rem; font-weight: 600; display: block; margin: .4rem 0 .3rem; }
.review-body { font-size: .9rem; color: var(--clr-muted); }
.review-form { max-width: 560px; }
.review-form h3 { font-family: var(--ff-display); font-size: 1.5rem; margin-bottom: 1.25rem; }
.form-field { margin-bottom: 1rem; }
.form-field label { display: block; font-size: .8rem; font-weight: 600; margin-bottom: .35rem; letter-spacing: .06em; text-transform: uppercase; }
.form-field input, .form-field textarea, .form-field select {
  width: 100%;
  padding: .7rem 1rem;
  border: 1.5px solid var(--clr-border);
  border-radius: var(--radius);
  background: var(--clr-bg);
  color: var(--clr-text);
  font-size: .9rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
  outline: none;
  border-color: var(--clr-primary);
  box-shadow: 0 0 0 3px rgba(107,45,94,.12);
}
.form-field textarea { resize: vertical; min-height: 100px; }

/* ===== MINI CART DRAWER ===== */
.cart-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26,11,23,.5);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}
.cart-drawer-overlay.open { opacity: 1; pointer-events: auto; }
.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: min(420px, 92vw);
  background: var(--clr-bg);
  z-index: 1001;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.4,0,.2,1);
  box-shadow: var(--shadow-lg);
}
.cart-drawer.open { transform: translateX(0); }
.cart-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--clr-border);
  flex-shrink: 0;
}
.cart-drawer__head h2 { font-family: var(--ff-display); font-size: 1.5rem; }
.cart-drawer__close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast);
}
.cart-drawer__close:hover { background: var(--clr-surface); }
.cart-drawer__body { flex: 1; overflow-y: auto; padding: 1.25rem 1.5rem; }
.cart-drawer__empty { text-align: center; padding: 3rem 1rem; color: var(--clr-muted); }
.cart-drawer__empty svg { margin-inline: auto; margin-bottom: 1rem; color: var(--clr-border); }
.drawer-item {
  display: flex;
  gap: 1rem;
  padding: .875rem 0;
  border-bottom: 1px solid var(--clr-border);
}
.drawer-item__img {
  flex-shrink: 0;
  width: 68px;
  height: 84px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--clr-surface);
}
.drawer-item__img img { width: 100%; height: 100%; object-fit: cover; }
.drawer-item__info { flex: 1; min-width: 0; }
.drawer-item__title { font-size: .9rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.drawer-item__price { color: var(--clr-primary); font-weight: 600; font-size: .9rem; }
.drawer-item__remove { color: var(--clr-muted); transition: color var(--transition-fast); font-size: .75rem; cursor: pointer; border: none; background: none; }
.drawer-item__remove:hover { color: #c0392b; }
.cart-drawer__foot {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--clr-border);
  flex-shrink: 0;
}
.cart-drawer__total {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  margin-bottom: 1rem;
  font-family: var(--ff-display);
  font-size: 1.15rem;
}
.cart-drawer__total span:last-child { color: var(--clr-primary); }
.cart-drawer__actions { display: flex; flex-direction: column; gap: .5rem; }
.cart-drawer__actions a { width: 100%; text-align: center; justify-content: center; }

/* ===== CART PAGE ===== */
.cart-section { padding: 3rem 0 5rem; }
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 2.5rem;
  align-items: start;
}
.cart-items-wrap h2, .cart-summary h2 { font-family: var(--ff-display); font-size: 1.8rem; margin-bottom: 1.5rem; }
.cart-item {
  display: grid;
  grid-template-columns: 90px 1fr auto auto auto;
  gap: 1rem;
  align-items: center;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--clr-border);
}
.cart-item__img-wrap { width: 90px; height: 110px; border-radius: var(--radius); overflow: hidden; background: var(--clr-surface); flex-shrink: 0; }
.cart-item__img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.cart-item__title { font-weight: 500; font-size: .95rem; }
.cart-item__price { color: var(--clr-muted); font-size: .85rem; }
.cart-item__original { color: var(--clr-muted); }
.cart-item__qty { display: flex; align-items: center; gap: .25rem; }
.qty-btn {
  width: 32px;
  height: 32px;
  border-radius: var(--radius);
  border: 1px solid var(--clr-border);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast);
}
.qty-btn:hover { background: var(--clr-surface); }
.qty-val { min-width: 24px; text-align: center; font-weight: 600; }
.cart-item__line-total { font-weight: 600; color: var(--clr-primary); white-space: nowrap; }
.cart-item__remove { color: var(--clr-muted); transition: color var(--transition-fast); }
.cart-item__remove:hover { color: #c0392b; }
.cart-summary {
  background: var(--clr-surface);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  border: 1px solid var(--clr-border);
  position: sticky;
  top: 88px;
}
.summary-row { display: flex; justify-content: space-between; font-size: .9rem; padding: .5rem 0; border-bottom: 1px solid var(--clr-border); }
.summary-row:last-of-type { border-bottom: none; }
.summary-row--total { font-size: 1.1rem; font-weight: 700; padding-top: 1rem; }
.summary-row--total span:last-child { color: var(--clr-primary); }
.cart-cta { margin-top: 1.25rem; width: 100%; justify-content: center; }
.empty-state {
  text-align: center;
  padding: 5rem 2rem;
}
.empty-state__icon { margin-inline: auto; margin-bottom: 1.5rem; color: var(--clr-border); }
.empty-state h2 { font-family: var(--ff-display); font-size: 2rem; margin-bottom: .75rem; }
.empty-state p { color: var(--clr-muted); margin-bottom: 1.5rem; }

/* ===== CHECKOUT ===== */
.checkout-section { padding: 2rem 0 5rem; background: var(--clr-bg); }
.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 2.5rem;
  align-items: start;
}
.checkout-form-col h2 { font-family: var(--ff-display); font-size: 2rem; margin-bottom: .35rem; }
.checkout-form-col p.checkout-sub { color: var(--clr-muted); font-size: .9rem; margin-bottom: 2rem; }
.form-section { margin-bottom: 2rem; }
.form-section__title {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--clr-muted);
  margin-bottom: 1rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--clr-border);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.checkout-summary-col {
  position: sticky;
  top: 88px;
  background: var(--clr-dark);
  border-radius: var(--radius-xl);
  padding: 2rem;
  color: rgba(255,255,255,.9);
}
.checkout-summary-col h3 { font-family: var(--ff-display); font-size: 1.5rem; color: var(--wb-on-dark, #fff); margin-bottom: 1.5rem; }
.checkout-summary-item {
  display: flex;
  align-items: center;
  gap: .875rem;
  padding: .75rem 0;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.checkout-summary-item img { width: 52px; height: 64px; object-fit: cover; border-radius: var(--radius); flex-shrink: 0; }
.checkout-summary-item__info { flex: 1; min-width: 0; }
.checkout-summary-item__title { font-size: .875rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.checkout-summary-item__qty { font-size: .75rem; color: rgba(255,255,255,.55); }
.checkout-summary-item__price { font-size: .875rem; font-weight: 600; color: var(--clr-accent); flex-shrink: 0; }
.checkout-total-row {
  display: flex;
  justify-content: space-between;
  padding: .5rem 0;
  font-size: .875rem;
  color: rgba(255,255,255,.65);
  border-top: 1px solid rgba(255,255,255,.1);
  margin-top: .5rem;
}
.checkout-total-row--grand {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  padding-top: 1rem;
}
.checkout-total-row--grand span:last-child { color: var(--clr-accent); }
.method-option {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: .875rem 1rem;
  border: 1.5px solid var(--clr-border);
  border-radius: var(--radius);
  margin-bottom: .5rem;
  cursor: pointer;
  transition: border-color var(--transition-fast), background var(--transition-fast);
}
.method-option:has(input:checked), .method-option.selected {
  border-color: var(--clr-primary);
  background: rgba(107,45,94,.04);
}
.method-option input[type="radio"] { margin-top: 3px; flex-shrink: 0; accent-color: var(--clr-primary); }
.method-option__label { font-size: .9rem; font-weight: 500; }
.method-option__sub  { font-size: .8rem; color: var(--clr-muted); margin-top: .1rem; }
.method-option__price { margin-inline-start: auto; font-weight: 600; color: var(--clr-primary); font-size: .9rem; }
.place-order-btn { width: 100%; justify-content: center; margin-top: 1.5rem; padding: 1rem; font-size: .9rem; }

/* ===== CHECKOUT PROGRESS ===== */
.checkout-progress { margin-bottom: 2rem; }
.checkout-progress ol { display: flex; align-items: flex-start; max-width: 360px; }
.checkout-progress__step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  position: relative;
}
.checkout-progress__step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 13px;
  left: 50%;
  width: 100%;
  height: 2px;
  background: var(--clr-border);
}
.checkout-progress__step--completed::after { background: var(--clr-primary) !important; }
.checkout-progress__step span {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--clr-border);
  color: var(--clr-muted);
  font-size: .8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  transition: background var(--transition-fast), color var(--transition-fast);
}
.checkout-progress__step--completed span { background: var(--clr-primary); color: #fff; }
.checkout-progress__step--active span { background: var(--clr-accent); color: var(--clr-dark); color: oklch(from var(--clr-accent) clamp(0, (0.57 - l) * 1000, 1) 0 0); }
.checkout-progress__label { font-size: .72rem; text-align: center; white-space: nowrap; color: var(--clr-muted); font-weight: 500; }
.checkout-progress__step--active .checkout-progress__label { color: var(--clr-text); font-weight: 600; }

/* ===== TRUST SIGNALS ===== */
.trust-signals { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; margin-top: 1.25rem; }
.trust-signals__item { display: flex; align-items: center; gap: .4rem; font-size: .8rem; color: var(--clr-muted); }
.trust-signals__item svg { color: var(--clr-accent); flex-shrink: 0; }

/* ===== TESTIMONIALS ===== */
.testimonials { padding: 5rem 0; background: var(--wb-dark-surface, #1A0B17); }
.testimonials .section-header { color: #fff; }
.testimonials .section-header .eyebrow { color: var(--clr-accent); }
.testimonials .section-header p { color: var(--wb-on-dark, rgba(255,255,255,.6)); }
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px,1fr)); gap: 1.5rem; }
.testimonial-card {
  background: var(--background, rgba(255,255,255,.06));
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}
.testimonial-card:hover { transform: translateY(-4px); background: var(--background, rgba(255,255,255,.09)); box-shadow: 0 8px 32px rgba(0,0,0,.3); }
.testimonial-card__quote {
  font-family: var(--ff-display);
  font-size: 1.1rem;
  line-height: 1.6;
  color: rgba(255,255,255,.88);
  margin-bottom: 1.5rem;
  font-style: italic;
}
.testimonial-card__quote::before { content: '\201C'; font-size: 3rem; line-height: 0; vertical-align: -.4em; color: var(--clr-accent); margin-inline-end: .2rem; }
.testimonial-card__author { display: flex; align-items: center; gap: .875rem; }
.testimonial-card__avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: var(--clr-surface-2); border: 2px solid rgba(212,168,83,.3); }
.testimonial-card__name { font-weight: 600; color: #fff; font-size: .9rem; }
.testimonial-card__role { font-size: .8rem; color: rgba(255,255,255,.5); }
.testimonial-card__stars { color: var(--clr-accent); font-size: .85rem; margin-bottom: .25rem; }

/* ===== FAQS ===== */
.faqs { padding: 5rem 0; background: var(--clr-bg); }
.faqs__inner { max-width: 760px; margin-inline: auto; }
.faq-item {
  border-bottom: 1px solid var(--clr-border);
  overflow: hidden;
}
.faq-item:first-child { border-top: 1px solid var(--clr-border); }
.faq-question {
  width: 100%;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
  font-family: var(--ff-display);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--clr-text);
  transition: color var(--transition-fast);
}
.faq-question:hover { color: var(--clr-primary); }
.faq-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--clr-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background var(--transition-fast), transform var(--transition);
  color: var(--clr-primary);
}
.faq-item.open .faq-icon { background: var(--clr-primary); color: #fff; transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-answer p { padding: 0 0 1.25rem; font-size: .95rem; color: var(--clr-muted); line-height: 1.75; }

/* ===== POLICIES ===== */
.policies { padding: 3.5rem 0; background: var(--clr-surface); }
.policies-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px,1fr)); gap: 1rem; }
.policy-card {
  background: var(--clr-bg);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  border: 1px solid var(--clr-border);
  transition: box-shadow var(--transition), transform var(--transition);
}
.policy-card:hover { box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.policy-card__title { font-weight: 600; margin-bottom: .4rem; font-size: .95rem; }
.policy-card__content { font-size: .875rem; color: var(--clr-muted); line-height: 1.65; }

/* ===== CONTACT ===== */
.contact { padding: 5rem 0; background: var(--wb-dark-surface, #1A0B17); color: rgba(255,255,255,.88); }
.contact .eyebrow { color: var(--clr-accent); color: oklch(from var(--clr-accent) max(l, 0.68) c h); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.contact-info h2 { color: var(--wb-on-dark, #fff); margin-bottom: 1.5rem; }
.contact-detail { display: flex; align-items: flex-start; gap: .875rem; margin-bottom: 1.25rem; }
.contact-detail__icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(212,168,83,.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-accent);
  flex-shrink: 0;
}
.contact-detail__label { font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.45); margin-bottom: .15rem; }
.contact-detail__value { font-size: .95rem; color: rgba(255,255,255,.88); }
.contact-form-wrap { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius-xl); padding: 2rem; }
.contact-form-wrap .form-field input,
.contact-form-wrap .form-field textarea {
  background: rgba(255,255,255,.07);
  border-color: rgba(255,255,255,.15);
  color: #fff;
}
.contact-form-wrap .form-field input::placeholder,
.contact-form-wrap .form-field textarea::placeholder { color: rgba(255,255,255,.4); }
.contact-form-wrap .form-field input:focus,
.contact-form-wrap .form-field textarea:focus { border-color: var(--clr-accent); box-shadow: 0 0 0 3px rgba(212,168,83,.15); }
.contact-form-wrap .form-field label { color: rgba(255,255,255,.65); }

/* ===== FOOTER ===== */
.site-footer { background: #110810; color: rgba(255,255,255,.65); padding: 4rem 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 3rem; padding-bottom: 3rem; }
.footer-brand .site-logo { color: #fff; margin-bottom: 1rem; font-size: 1.6rem; }
.footer-brand p { font-size: .875rem; line-height: 1.7; max-width: 260px; }
.footer-social { display: flex; gap: .5rem; margin-top: 1.5rem; }
.social-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.6);
  transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}
.social-link:hover { background: var(--clr-accent); border-color: var(--clr-accent); color: var(--clr-dark); color: oklch(from var(--clr-accent) clamp(0, (0.57 - l) * 1000, 1) 0 0); }
.footer-col h4 { font-family: var(--ff-body); font-size: .72rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--wb-on-dark, rgba(255,255,255,.9)); margin-bottom: 1.25rem; }
.footer-col ul { display: flex; flex-direction: column; gap: .6rem; }
.footer-col a { font-size: .875rem; transition: color var(--transition-fast); }
.footer-col a:hover { color: var(--clr-accent); }
.footer-newsletter-form { display: flex; gap: .5rem; margin-top: .75rem; }
.footer-newsletter-form input {
  flex: 1;
  padding: .6rem 1rem;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius);
  background: rgba(255,255,255,.07);
  color: #fff;
  font-size: .85rem;
}
.footer-newsletter-form input::placeholder { color: rgba(255,255,255,.4); }
.footer-newsletter-form input:focus { outline: none; border-color: var(--clr-accent); }
.footer-newsletter-form button {
  padding: .6rem 1rem;
  background: var(--clr-accent);
  color: var(--clr-dark);
  border-radius: var(--radius);
  font-size: .8rem;
  font-weight: 700;
  white-space: nowrap;
  transition: background var(--transition-fast);
  color: oklch(from var(--clr-accent) clamp(0, (0.57 - l) * 1000, 1) 0 0);
}
.footer-newsletter-form button:hover { background: var(--clr-accent-dark); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 1.25rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .75rem;
  font-size: .8rem;
  color: rgba(255,255,255,.4);
}
.footer-bottom a { transition: color var(--transition-fast); }
.footer-bottom a:hover { color: var(--clr-accent); }

/* ===== HERO PRODUCTS PAGE ===== */
.page-hero {
  background: var(--wb-dark-surface, #1A0B17);
  padding: 4rem 0;
  text-align: center;
  color: #fff;
}
.page-hero h1 { font-size: clamp(2rem,4vw,3.5rem); margin-bottom: .75rem; }
.page-hero p { color: var(--wb-on-dark, rgba(255,255,255,.65)); font-size: 1.05rem; }

/* ===== RENDER PERFORMANCE ===== */
.categories, .testimonials, .faqs, .policies, .contact {
  content-visibility: auto;
  contain-intrinsic-size: auto 500px;
}

/* ===== SCROLL PROGRESS BAR ===== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(to right, var(--clr-primary), var(--clr-accent));
  z-index: 9999;
  transition: width .1s linear;
  pointer-events: none;
}

/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--clr-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 850;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition), background var(--transition-fast);
  box-shadow: var(--shadow-md);
}
.back-to-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-to-top:hover { background: var(--clr-primary-light); }

/* ===== BENTO GRID — transparent CMS wrapper ===== */
/* After converter runs, the data-list div becomes a plain div.
   display:contents makes it transparent to the parent grid. */
.categories-bento > div { display: contents; }

/* ===== FOCUS VISIBLE ===== */
:focus-visible {
  outline: 2px solid var(--clr-accent);
  outline-offset: 3px;
  border-radius: var(--radius);
}
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--clr-accent);
  outline-offset: 3px;
}

/* ===== MOTION — CSS-native reveals (GSAP removed 2026-09-16) =====
   Every lane below replaces a former GSAP tween. The resting state is fully
   visible at the RULE level in every branch — nothing here declares a hidden
   from-state outside a @keyframes body, so a browser with neither
   scroll-timeline support nor a matching @media hits only the base rule
   above (or no rule at all) and shows the content exactly as authored. */

@keyframes rv-up    { from { opacity: 0; transform: translateY(32px); } to { opacity: 1; } }
@keyframes rv-left  { from { opacity: 0; transform: translateX(-40px); } to { opacity: 1; } }
@keyframes rv-right { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; } }

/* Load-time entrance — hero, page-hero and product detail never had a
   ScrollTrigger in the GSAP version (they ran once on DOMContentLoaded), so
   they stay plain keyframe animations staggered with animation-delay. The
   "stagger via animation-range, never animation-delay" rule further down
   applies only to the scroll-linked lanes it exists for. */
@media (prefers-reduced-motion: no-preference) {
  .hero__badge[data-reveal]    { animation: rv-up .7s cubic-bezier(.16,1,.3,1) both; animation-delay: .1s; }
  .hero h1[data-reveal]        { animation: rv-up .9s cubic-bezier(.16,1,.3,1) both; animation-delay: .3s; }
  .hero__subtitle[data-reveal] { animation: rv-up .7s cubic-bezier(.16,1,.3,1) both; animation-delay: .55s; }
  .hero__ctas[data-reveal]     { animation: rv-up .6s cubic-bezier(.16,1,.3,1) both; animation-delay: .75s; }

  .page-hero h1 { animation: rv-up .65s cubic-bezier(.16,1,.3,1) both; }
  .page-hero p  { animation: rv-up .55s cubic-bezier(.16,1,.3,1) both; animation-delay: .15s; }

  .product-gallery { animation: rv-left .7s cubic-bezier(.16,1,.3,1) both; }
  .product-info    { animation: rv-right .7s cubic-bezier(.16,1,.3,1) both; }
}

/* Scroll-driven reveals — animation-timeline: view(), staggered by shifting
   animation-range PER ITEM rather than animation-delay: a delay measured in
   seconds means nothing against a scroll-linked timeline. Every ancestor of
   every element below (.stats-band(__inner), .categories(-bento),
   .products-section/.product-grid, .testimonials(-grid), .faqs(__inner),
   .policies(-grid), .contact(-grid), .footer-grid, .container) was checked
   against this stylesheet and declares no overflow:hidden|auto|scroll, so
   none needed the overflow:hidden→clip swap the view()-timeline recipe
   otherwise requires — the timeline for each element below measures against
   the real document scroller. `.category-card`, `.product-card` and
   `.faq-item` DO declare `overflow: hidden` on THEMSELVES (image/accordion
   clipping, unrelated to motion) — that is irrelevant here: the ancestor
   check is about wrapper elements, never the animated element itself. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .stat-item {
      animation: rv-up .5s ease-out both;
      animation-timeline: view();
      animation-range: entry 0% cover 30%;
    }
    .stat-item:nth-child(3) { animation-range: entry 8% cover 38%; }
    .stat-item:nth-child(5) { animation-range: entry 16% cover 46%; }
    .stat-item:nth-child(7) { animation-range: entry 24% cover 54%; }

    .category-card {
      animation: rv-up .65s cubic-bezier(.16,1,.3,1) both;
      animation-timeline: view();
      animation-range: entry 0% cover 35%;
    }
    .category-card:nth-child(2) { animation-range: entry 8% cover 43%; }
    .category-card:nth-child(3) { animation-range: entry 16% cover 51%; }
    .category-card:nth-child(4) { animation-range: entry 24% cover 59%; }

    .product-card {
      animation: rv-up .6s cubic-bezier(.16,1,.3,1) both;
      animation-timeline: view();
      animation-range: entry 0% cover 35%;
    }
    .product-card:nth-child(2) { animation-range: entry 6% cover 41%; }
    .product-card:nth-child(3) { animation-range: entry 12% cover 47%; }
    .product-card:nth-child(4) { animation-range: entry 18% cover 53%; }
    .product-card:nth-child(5) { animation-range: entry 24% cover 59%; }
    .product-card:nth-child(6) { animation-range: entry 30% cover 65%; }

    .testimonial-card {
      animation: rv-up .7s cubic-bezier(.16,1,.3,1) both;
      animation-timeline: view();
      animation-range: entry 0% cover 40%;
    }
    .testimonial-card:nth-child(2) { animation-range: entry 8% cover 48%; }
    .testimonial-card:nth-child(3) { animation-range: entry 16% cover 56%; }

    .faq-item {
      animation: rv-left .5s ease-out both;
      animation-timeline: view();
      animation-range: entry 0% cover 30%;
    }
    .faq-item:nth-child(2) { animation-range: entry 5% cover 35%; }
    .faq-item:nth-child(3) { animation-range: entry 10% cover 40%; }
    .faq-item:nth-child(4) { animation-range: entry 15% cover 45%; }
    .faq-item:nth-child(5) { animation-range: entry 20% cover 50%; }
    .faq-item:nth-child(6) { animation-range: entry 25% cover 55%; }

    .policy-card {
      animation: rv-up .55s ease-out both;
      animation-timeline: view();
      animation-range: entry 0% cover 35%;
    }
    .policy-card:nth-child(2) { animation-range: entry 7% cover 42%; }
    .policy-card:nth-child(3) { animation-range: entry 14% cover 49%; }
    .policy-card:nth-child(4) { animation-range: entry 21% cover 56%; }

    .contact-info {
      animation: rv-left .75s cubic-bezier(.16,1,.3,1) both;
      animation-timeline: view();
      animation-range: entry 0% cover 40%;
    }
    .contact-form-wrap {
      animation: rv-right .75s cubic-bezier(.16,1,.3,1) both;
      animation-timeline: view();
      animation-range: entry 0% cover 40%;
    }

    .footer-grid > * {
      animation: rv-up .55s ease-out both;
      animation-timeline: view();
      animation-range: entry 0% cover 100%;
    }
    .footer-grid > *:nth-child(2) { animation-range: entry 5% cover 100%; }
    .footer-grid > *:nth-child(3) { animation-range: entry 10% cover 100%; }
    .footer-grid > *:nth-child(4) { animation-range: entry 15% cover 100%; }
  }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; min-height: 70vh; }
  .hero__content { padding: 4rem 2rem; min-height: 70vh; }
  .hero__image { display: none; }
  .categories-bento { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .categories-bento .category-card:nth-child(1) { grid-row: auto; grid-column: 1 / 3; height: 300px; }
  .categories-bento .category-card:nth-child(4) { grid-column: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  .menu-toggle { display: flex; }
  /* A long brand name gives way instead of widening the phone's layout viewport. */
  .header-inner { gap: 1rem; }
  .site-logo { flex-shrink: 1; min-width: 0; }
  .site-logo img { flex-shrink: 0; }
  .site-logo span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .header-actions { margin-inline-start: auto; flex-shrink: 0; }
  .site-nav {
    position: fixed;
    inset: 68px 0 0 0;
    flex-direction: column;
    align-items: flex-start;
    background: var(--clr-bg);
    padding: 1.5rem;
    gap: .25rem;
    transform: translateX(100%);
    transition: transform var(--transition);
    z-index: 850;
    border-top: 1px solid var(--clr-border);
  }
  .site-nav.open { transform: translateX(0); }
  .site-nav a { font-size: 1.1rem; padding: .75rem 0; width: 100%; }
  .site-nav a::after { display: none; }
  .cart-layout { grid-template-columns: 1fr; }
  .checkout-layout { grid-template-columns: 1fr; }
  .checkout-summary-col { order: -1; }
  .product-detail-layout { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .cart-item { grid-template-columns: 70px 1fr; grid-template-rows: auto auto; }
  .cart-item__qty, .cart-item__line-total, .cart-item__remove { grid-column: 2; }
  .form-row { grid-template-columns: 1fr; }
  .stats-band__inner .stat-divider { display: none; }
  .categories-bento { grid-template-columns: 1fr; }
  .categories-bento .category-card:nth-child(1),
  .categories-bento .category-card:nth-child(4) { grid-column: auto; grid-row: auto; height: 220px; }
  .categories-bento .category-card { height: 200px; }
  .hero__content { padding: 3rem 1.5rem 3rem; }
}

/* Hide wire:loading elements before Livewire mounts (mirrors Livewire's runtime CSS) */
[wire\:loading],
[wire\:loading\.delay],
[wire\:loading\.inline-block],
[wire\:loading\.inline] { display: none; }

/* WoBooks empty-image guard (theme:editor-compliance --fix --scope=img-empty-guard):
   image_url('') renders <img src=""> until the owner uploads a photo — hide it
   instead of leaking the browser's broken-image icon + alt text onto the page. */
img[src=""], img:not([src]) { display: none !important; }

/* phone-header-fit: at phone width a real business name fills the logo, so the brand truncates
   before it can push the menu toggle off-screen, and the toggle stays pinned right.
   backdrop-filter made the header the containing block of the fixed .site-nav drawer, so the off-canvas
   drawer sat beside the header and scrolled the page sideways; without it the drawer is viewport-fixed.
   Gate: tests/Feature/Themes/MobileHeaderFitTest.php (it strips this block and expects the overhang back). */
@media (max-width: 768px) {
  [data-section="header"] .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; }
  [data-section="header"] .header-inner { gap: 1rem; }
  [data-section="header"] .site-logo { flex-shrink: 1; min-width: 0; }
  [data-section="header"] .site-logo span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  [data-section="header"] .header-actions { margin-inline-start: auto; flex-shrink: 0; }
}
/* /phone-header-fit */

/* Palette roles (BrandColourRoles, 2026-10-06): brand-coloured text on a band this theme draws dark keeps a lightness floor; text on a brand fill follows the fill. */
:where(.hero__content) .hero__badge { color: oklch(from var(--clr-accent) max(l, 0.75) c h); }

/* Own contrast (Weave item 54, theme:palette-stress --heal): with no palette, these read 4.5:1 on the theme's own
   backgrounds; each was proven by rendering the page. The palette block (html:root) still overrides the tokens. */
.footer-bottom { color: oklch(from rgba(255, 255, 255, 0.4) calc(l + 0.02) c h / calc(min(1, alpha + 0.06))); }

/* Own contrast (Weave item 54, theme:palette-stress --heal): with no palette, these read 4.5:1 on the theme's own
   backgrounds; each was proven by rendering the page. The palette block (html:root) still overrides the tokens. */
.eyebrow { color: oklch(from var(--clr-accent) min(l, 0.505) c h / alpha); }
