/* =============================================
   Forma Growth — Furniture Store Theme
   ============================================= */

/* 1. CUSTOM PROPERTIES
   ============================================= */
:root {
  /* Colors */
  --clr-primary:        #BF7D50;   /* warm cognac */
  --clr-primary-light:  #D49672;
  --clr-primary-dark:   #9B6035;
  --clr-secondary:      #3E5B50;   /* sage green */
  --clr-secondary-dark: #2B4038;
  --clr-bg:             #FAFAF8;   /* warm off-white */
  --clr-tinted:         #F0E8DC;   /* warm beige */
  --clr-dark:           #1A1612;   /* warm near-black */
  --clr-dark-2:         #241F19;
  --clr-text:           #28221A;   /* warm charcoal */
  --clr-muted:          #8B7B6B;   /* warm gray-brown */
  --clr-border:         #E6DDD0;   /* warm border */
  --clr-white:          #FFFFFF;

  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'DM Sans', system-ui, -apple-system, sans-serif;

  /* Spacing */
  --section-pad: clamp(60px, 8vw, 112px);
  --container-max: 1240px;
  --container-pad: clamp(16px, 4vw, 40px);

  /* Transitions */
  --ease-fast:   0.18s ease;
  --ease-base:   0.28s ease;
  --ease-slow:   0.45s ease;
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Shadows */
  --shadow-xs: 0 1px 4px rgba(26,22,18,0.06);
  --shadow-sm: 0 4px 12px rgba(26,22,18,0.08);
  --shadow-md: 0 8px 28px rgba(26,22,18,0.12);
  --shadow-lg: 0 20px 52px rgba(26,22,18,0.16);

  /* Border radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--clr-text);
  background: var(--clr-bg);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* 3. ACCESSIBILITY
   ============================================= */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  padding: 10px 20px;
  background: var(--clr-primary);
  color: var(--clr-white);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-weight: 600;
  z-index: 9999;
  transition: top var(--ease-fast);
}
.skip-link:focus { top: 0; }

:focus-visible {
  outline: 2px solid var(--clr-primary);
  outline-offset: 3px;
  border-radius: 2px;
}

/* 4. UTILITIES
   ============================================= */
.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.section-pad { padding-block: var(--section-pad); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clr-primary);
  margin-bottom: 12px;
}

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
  line-height: 1.15;
  color: var(--clr-text);
}

.section-heading--light { color: var(--clr-white); }

.section-subtitle {
  font-size: 1.0625rem;
  color: var(--clr-muted);
  max-width: 520px;
  margin-top: 12px;
}

/* 5. BUTTONS
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: transform var(--ease-base), box-shadow var(--ease-base), background var(--ease-base), color var(--ease-base), border-color var(--ease-base);
  cursor: pointer;
}

.btn--primary {
  background: var(--clr-primary);
  color: var(--clr-white);
  box-shadow: 0 4px 16px rgba(191,125,80,0.32);
}
.btn--primary:hover {
  background: var(--clr-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(191,125,80,0.4);
}

.btn--secondary {
  background: var(--clr-secondary);
  color: var(--clr-white);
  color: oklch(from var(--clr-secondary) clamp(0, (0.57 - l) * 1000, 1) 0 0);
}
.btn--secondary:hover {
  background: var(--clr-secondary-dark);
  transform: translateY(-2px);
}

.btn--outline {
  background: transparent;
  color: var(--clr-primary);
  border: 1.5px solid var(--clr-primary);
}
.btn--outline:hover {
  background: var(--clr-primary);
  color: var(--clr-white);
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  color: var(--clr-text);
  border: 1.5px solid var(--clr-border);
}
.btn--ghost:hover {
  border-color: var(--clr-primary);
  color: var(--clr-primary);
  transform: translateY(-2px);
}

.btn--ghost-light {
  background: transparent;
  color: var(--clr-white);
  border: 1.5px solid rgba(255,255,255,0.3);
}
.btn--ghost-light:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--clr-white);
}

.btn--sm { padding: 10px 20px; font-size: 0.875rem; }

/* 6. HEADER
   ============================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: var(--background, rgba(250,250,248,0.92));
  border-bottom: 1px solid transparent;
  transition: border-color var(--ease-base), box-shadow var(--ease-base);
}

/* 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 {
  border-bottom-color: var(--clr-border);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 68px;
}

.header-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.header-logo__img { height: 36px; width: auto; }
.header-logo__text {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--clr-text);
  letter-spacing: -0.02em;
}

.header-nav { display: flex; align-items: center; gap: 32px; margin-inline-start: auto; }

.header-nav__link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--clr-muted);
  position: relative;
  transition: color var(--ease-fast);
}
.header-nav__link::after {
  content: '';
  position: absolute;
  left: 0; bottom: -3px;
  width: 0; height: 2px;
  background: var(--clr-primary);
  border-radius: 1px;
  transition: width var(--ease-base);
}
.header-nav__link:hover { color: var(--clr-primary); }
.header-nav__link:hover::after { width: 100%; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-inline-start: 24px;
}

.header-cart {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  color: var(--clr-text);
  transition: background var(--ease-fast), color var(--ease-fast);
}
.header-cart:hover { background: var(--clr-tinted); color: var(--clr-primary); }
.header-cart__icon { width: 22px; height: 22px; }

.cart-badge {
  position: absolute;
  top: 2px; right: 2px;
  min-width: 18px; height: 18px;
  padding-inline: 4px;
  background: var(--clr-primary);
  color: var(--clr-white);
  font-size: 0.6875rem;
  font-weight: 600;
  border-radius: 99px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 32px; height: 32px;
  align-items: flex-end;
  justify-content: center;
}
.mobile-nav-toggle span {
  display: block;
  height: 2px;
  background: var(--clr-text);
  border-radius: 2px;
  transition: transform var(--ease-base), opacity var(--ease-base), width var(--ease-base);
}
.mobile-nav-toggle span:nth-child(1) { width: 24px; }
.mobile-nav-toggle span:nth-child(2) { width: 18px; }
.mobile-nav-toggle span:nth-child(3) { width: 24px; }
.mobile-nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); width: 24px; }
.mobile-nav-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); width: 24px; }

/* 7. HERO SECTION
   ============================================= */
.hero {
  background: var(--clr-bg);
  overflow: clip; /* was overflow:hidden — this section never scrolls; `clip` keeps the same
                     visual clipping without becoming a scroll container, which would
                     otherwise break the animation-timeline:view() on the hero image below */
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding-block: 80px 60px;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(40px, 6vw, 96px);
}

.hero__content { max-width: 540px; }

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--clr-tinted);
  color: var(--clr-primary);
  border-radius: var(--radius, 99px);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: heroFadeUp 0.6s ease 0.1s both;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5.5vw, 4.25rem);
  font-weight: 500;
  line-height: 1.1;
  color: var(--clr-text);
  margin-top: 16px;
  animation: heroFadeUp 0.7s ease 0.25s both;
}
.hero__title em {
  font-style: italic;
  color: var(--clr-primary);
  display: block;
}

.hero__subtitle {
  font-size: 1.0625rem;
  color: var(--clr-muted);
  line-height: 1.7;
  margin-top: 20px;
  max-width: 440px;
  animation: heroFadeUp 0.6s ease 0.4s both;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
  animation: heroFadeUp 0.6s ease 0.52s both;
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 32px;
  animation: heroFadeUp 0.6s ease 0.64s both;
}
.hero__trust span {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--clr-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.hero__trust span::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--clr-secondary);
}

.hero__visual {
  position: relative;
  animation: heroFadeIn 0.9s ease 0.15s both;
}

.hero__image-wrap {
  border-radius: var(--radius-xl);
  overflow: clip; /* was overflow:hidden — non-scrolling wrapper; `clip` avoids becoming a
                     scroll container for the img's animation-timeline:view() parallax below */
  aspect-ratio: 4/5;
  background: var(--clr-tinted);
}
.hero__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s ease;
}
.hero__image-wrap:hover img { transform: scale(1.04); }

.hero__float-card {
  position: absolute;
  left: -48px;
  bottom: 60px;
  background: var(--clr-white);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 180px;
  animation: heroFadeUp 0.7s ease 0.8s both;
}
.hero__float-num {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--clr-primary);
  line-height: 1;
}
.hero__float-label { font-size: 0.75rem; color: var(--clr-muted); font-weight: 500; }

/* 8. CATEGORIES SECTION
   ============================================= */
.categories {
  background: var(--surface, var(--clr-tinted));
  padding-block: var(--section-pad);
  content-visibility: auto;
  contain-intrinsic-size: auto 600px;
}

.categories__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: minmax(220px, auto);
  gap: 16px;
}

/* Make the data-list wrapper transparent to the grid so bento-cards are direct grid items */
.bento-grid > [data-list] {
  display: contents;
}

.bento-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--clr-bg);
  cursor: pointer;
}
/* Wide card only when there are 3+ siblings so the row fills properly */
.bento-card:first-child:not(:nth-last-child(-n+2)) { grid-column: 1 / 3; }
.bento-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--ease-slow);
}
.bento-card:hover img { transform: scale(1.06); }

.bento-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,22,18,0.72) 0%, rgba(26,22,18,0.1) 55%, transparent 100%);
  transition: background var(--ease-base);
}
.bento-card:hover .bento-card__overlay {
  background: linear-gradient(to top, rgba(26,22,18,0.82) 0%, rgba(26,22,18,0.2) 60%, transparent 100%);
}

.bento-card__content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 24px;
  color: var(--clr-white);
}
.bento-card__name {
  font-family: var(--font-display);
  font-size: 1.3125rem;
  font-weight: 500;
  margin-bottom: 6px;
}
.bento-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  transition: color var(--ease-fast), gap var(--ease-fast);
}
.bento-card:hover .bento-card__link { color: var(--clr-white); gap: 10px; }

/* 9. PRODUCTS SECTION
   ============================================= */
.products {
  background: var(--clr-bg);
  padding-block: var(--section-pad);
  content-visibility: auto;
  contain-intrinsic-size: auto 700px;
}

.products__header {
  text-align: center;
  margin-bottom: 48px;
}
.products__header .section-subtitle { margin-inline: auto; }

/* Category filter bar */
.product-filter {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 40px;
}

.filter-chip {
  padding: 8px 20px;
  border-radius: 99px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--clr-muted);
  border: 1.5px solid var(--clr-border);
  background: transparent;
  cursor: pointer;
  transition: all var(--ease-fast);
  white-space: nowrap;
}
.filter-chip:hover {
  border-color: var(--clr-primary);
  color: var(--clr-primary);
}
.filter-chip--active {
  background: var(--clr-primary);
  border-color: var(--clr-primary);
  color: var(--clr-white);
}

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

/* PRODUCT CARD */
.product-card {
  background: var(--surface, var(--clr-white));
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--clr-border);
  transition: transform var(--ease-base), box-shadow var(--ease-base);
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.product-card__image-wrap {
  position: relative;
  display: block;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--surface, var(--clr-tinted));
}
.product-card__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--ease-slow);
}
.product-card:hover .product-card__image-wrap img { transform: scale(1.06); }

.product-card__quick-view {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  background: rgba(250,250,248,0.95);
  color: var(--clr-text);
  padding: 8px 18px;
  border-radius: 99px;
  font-size: 0.8125rem;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--ease-base), transform var(--ease-base);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
}
.product-card:hover .product-card__quick-view {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  pointer-events: auto;
}

.product-card__badge {
  position: absolute;
  top: 12px; left: 12px;
  padding: 4px 10px;
  background: var(--clr-secondary);
  color: var(--clr-white);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 4px;
  color: oklch(from var(--clr-secondary) clamp(0, (0.57 - l) * 1000, 1) 0 0);
}

.product-card__info {
  padding: 18px 20px 20px;
}
.product-card__category {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clr-muted);
  margin-bottom: 6px;
}
.product-card__title {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.3;
  margin-bottom: 10px;
}
.product-card__title a { color: var(--clr-text); transition: color var(--ease-fast); }
.product-card__title a:hover { color: var(--clr-primary); }

.product-card__price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 14px;
}
.product-card__price-current {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--clr-text);
}
.product-card__price-original {
  font-size: 0.875rem;
  color: var(--clr-muted);
  text-decoration: line-through;
}

.product-card__add-btn {
  width: 100%;
  padding: 11px 16px;
  background: var(--clr-text);
  color: var(--clr-white);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: background var(--ease-fast), transform var(--ease-fast);
}
.product-card__add-btn:hover {
  background: var(--clr-primary);
  transform: translateY(-1px);
}
.product-card__add-btn.added { background: var(--clr-secondary); }

.products__cta {
  text-align: center;
  margin-top: 48px;
}

/* 10. TESTIMONIALS (dark full-bleed)
   ============================================= */
.testimonials {
  background: var(--surface, var(--clr-dark));
  padding-block: var(--section-pad);
  content-visibility: auto;
  contain-intrinsic-size: auto 500px;
}

.testimonials__header {
  text-align: center;
  margin-bottom: 56px;
}
.testimonials__header .eyebrow { color: var(--clr-primary-light); }
.testimonials__header .section-subtitle { color: var(--wb-on-dark, rgba(255,255,255,0.5)); margin-inline: auto; }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: var(--surface, var(--clr-dark-2));
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: border-color var(--ease-base), transform var(--ease-base);
}
.testimonial-card:hover {
  border-color: var(--border, rgba(191,125,80,0.3));
  transform: translateY(-4px);
}

.testimonial-card__quote {
  font-family: var(--font-display);
  font-size: 3.5rem;
  line-height: 1;
  color: var(--clr-primary);
  margin-bottom: 12px;
  display: block;
}

.testimonial-card__stars {
  display: flex;
  gap: 3px;
  margin-bottom: 16px;
}
.testimonial-card__stars span {
  color: #F5A623;
  font-size: 0.875rem;
}

.testimonial-card__text {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
  margin-bottom: 24px;
  font-style: italic;
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testimonial-card__avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--clr-secondary);
}
.testimonial-card__name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--clr-white);
  display: block;
}
.testimonial-card__role {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
}

/* 11. FAQs SECTION
   ============================================= */
.faqs {
  background: var(--surface, var(--clr-tinted));
  padding-block: var(--section-pad);
  content-visibility: auto;
  contain-intrinsic-size: auto 480px;
}

.faqs__inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

.faq-list { display: flex; flex-direction: column; gap: 8px; }

.faq-item {
  background: var(--clr-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--clr-border);
  overflow: hidden;
  transition: border-color var(--ease-fast);
}
.faq-item:hover { border-color: var(--clr-primary); }
.faq-item.open { border-color: var(--clr-primary); }

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--clr-text);
  text-align: left;
  cursor: pointer;
  transition: color var(--ease-fast);
}
.faq-item.open .faq-question { color: var(--clr-primary); }

.faq-icon {
  width: 20px; height: 20px;
  flex-shrink: 0;
  color: var(--clr-muted);
  transition: transform var(--ease-base), color var(--ease-base);
}
.faq-item.open .faq-icon { transform: rotate(45deg); color: var(--clr-primary); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  /* JS sets style.maxHeight = scrollHeight + 'px' on open — never use fixed max-height */
}

.faq-answer__inner {
  padding: 0 22px 20px;
  font-size: 0.9375rem;
  color: var(--clr-muted);
  line-height: 1.7;
}

/* 12. POLICIES SECTION
   ============================================= */
.policies {
  background: var(--clr-bg);
  padding-block: var(--section-pad);
  content-visibility: auto;
  contain-intrinsic-size: auto 400px;
}

.policies__header { text-align: center; margin-bottom: 48px; }

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

.policy-card {
  background: var(--surface, var(--clr-tinted));
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid var(--clr-border);
  transition: transform var(--ease-base), box-shadow var(--ease-base);
}
.policy-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.policy-card__title {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--clr-text);
  margin-bottom: 10px;
}

.policy-card__text {
  font-size: 0.875rem;
  color: var(--clr-muted);
  line-height: 1.65;
}

/* 13. CONTACT SECTION
   ============================================= */
.contact {
  background: var(--surface, var(--clr-tinted));
  padding-block: var(--section-pad);
  content-visibility: auto;
  contain-intrinsic-size: auto 500px;
}

.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}

.contact-info { padding-top: 8px; }
.contact-info__items { margin-top: 32px; display: flex; flex-direction: column; gap: 16px; }
.contact-info__item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  background: var(--clr-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--clr-border);
}
.contact-info__icon { width: 20px; height: 20px; flex-shrink: 0; color: var(--clr-primary); margin-top: 1px; }
.contact-info__label { font-size: 0.75rem; color: var(--clr-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 2px; }
.contact-info__value { font-size: 0.9375rem; color: var(--clr-text); font-weight: 500; }

.contact-form {
  background: var(--clr-white);
  border-radius: var(--radius-lg);
  padding: 36px;
  border: 1px solid var(--clr-border);
}

.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-group label { font-size: 0.8125rem; font-weight: 600; color: var(--clr-text); }
.form-input {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--clr-border);
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  color: var(--clr-text);
  background: var(--clr-bg);
  transition: border-color var(--ease-fast), box-shadow var(--ease-fast);
  outline: none;
}
.form-input:focus {
  border-color: var(--clr-primary);
  box-shadow: 0 0 0 3px rgba(191,125,80,0.12);
}
textarea.form-input { resize: vertical; min-height: 120px; }

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

/* 14. FOOTER
   ============================================= */
.site-footer {
  background: var(--wb-dark-surface, #1A1612);
  color: rgba(255,255,255,0.6);
  padding-block: 64px 32px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 32px;
}

.footer-brand__logo {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--wb-on-dark, #FFFFFF);
  margin-bottom: 12px;
}
.footer-brand__desc { font-size: 0.875rem; line-height: 1.7; max-width: 260px; }

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}
.footer-social a {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--wb-on-dark, rgba(255,255,255,0.5));
  transition: background var(--ease-fast), color var(--ease-fast), border-color var(--ease-fast);
}
.footer-social a:hover {
  background: var(--clr-primary);
  border-color: var(--clr-primary);
  color: var(--clr-white);
}
.footer-social svg { width: 16px; height: 16px; }

.footer-col__heading {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--wb-on-dark, #FFFFFF);
  margin-bottom: 16px;
}
.footer-col__links { display: flex; flex-direction: column; gap: 10px; }
.footer-col__links a {
  font-size: 0.875rem;
  color: var(--wb-on-dark, rgba(255,255,255,0.5));
  transition: color var(--ease-fast);
}
.footer-col__links a:hover { color: var(--clr-primary-light); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.8125rem;
}
.footer-bottom p { color: var(--wb-on-dark, rgba(255,255,255,0.35)); }

/* 15. BREADCRUMBS
   ============================================= */
.breadcrumbs { padding-block: 20px; }
.breadcrumbs ol { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.breadcrumbs li {
  font-size: 0.8125rem;
  color: var(--clr-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.breadcrumbs li::after { content: '/'; color: var(--clr-border); }
.breadcrumbs li:last-child::after { display: none; }
.breadcrumbs li a { color: var(--clr-muted); transition: color var(--ease-fast); }
.breadcrumbs li a:hover { color: var(--clr-primary); }
.breadcrumbs li:last-child { color: var(--clr-text); font-weight: 500; }

/* 16. PRODUCT DETAIL PAGE
   ============================================= */
.product-detail { padding-block: var(--section-pad); }

.product-detail__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 5vw, 72px);
  align-items: start;
}

.product-gallery__main {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--clr-tinted);
}
.product-gallery__main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--ease-slow);
}
.product-gallery__main:hover img { transform: scale(1.04); }

.product-gallery__thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.product-gallery__thumbs button {
  width: 72px; height: 72px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid var(--clr-border);
  transition: border-color var(--ease-fast);
  padding: 0;
}
.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: 8px; }

.product-info__category {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clr-secondary);
  margin-bottom: 10px;
}

.product-info__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 500;
  line-height: 1.15;
  color: var(--clr-text);
  margin-bottom: 14px;
}

.product-info__rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}
.product-info__stars { color: #F5A623; font-size: 0.875rem; }
.product-info__review-count { font-size: 0.8125rem; color: var(--clr-muted); }

.product-info__price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 24px;
}
.product-info__price-current {
  font-size: 2rem;
  font-weight: 700;
  color: var(--clr-text);
}
.product-info__price-original {
  font-size: 1.125rem;
  color: var(--clr-muted);
  text-decoration: line-through;
}

.product-info__description {
  font-size: 0.9375rem;
  color: var(--clr-muted);
  line-height: 1.75;
  margin-bottom: 28px;
}

/* Variant selectors */
.variant-selector { margin-bottom: 20px; }
.variant-selector fieldset { border: none; }
.variant-selector__label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--clr-text);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}
.variant-selector__options { display: flex; gap: 8px; flex-wrap: wrap; }
.variant-chip {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}
.variant-chip input[type="radio"] { display: none; }
.variant-chip span {
  padding: 7px 16px;
  border: 1.5px solid var(--clr-border);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--clr-text);
  transition: all var(--ease-fast);
}
.variant-chip:hover span {
  border-color: var(--clr-primary);
  color: var(--clr-primary);
}
.variant-chip input:checked + span {
  background: var(--clr-primary);
  border-color: var(--clr-primary);
  color: var(--clr-white);
}

.product-info__atc-row {
  display: flex;
  gap: 12px;
  align-items: stretch;
  margin-bottom: 24px;
}
.qty-selector {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--clr-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.qty-selector button {
  width: 40px;
  height: 48px;
  font-size: 1.125rem;
  color: var(--clr-text);
  transition: background var(--ease-fast);
}
.qty-selector button:hover { background: var(--clr-tinted); }
.qty-selector input {
  width: 50px;
  text-align: center;
  border: none;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--clr-text);
  background: transparent;
}

.product-info__atc-btn {
  flex: 1;
  padding: 0 28px;
  height: 48px;
}

.product-info__meta { margin-top: 20px; }
.product-info__meta-row {
  display: flex;
  gap: 8px;
  font-size: 0.8125rem;
  color: var(--clr-muted);
  margin-bottom: 6px;
}
.product-info__meta-label { font-weight: 600; color: var(--clr-text); }

/* 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-white);
    border-top: 1px solid var(--clr-border);
    z-index: 800;
    transform: translateY(100%);
    transition: transform var(--ease-base);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
  }
  .sticky-atc.visible {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    transform: translateY(0);
  }
}
.sticky-atc__title {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--clr-text);
}
.sticky-atc__price { font-size: 1rem; font-weight: 700; color: var(--clr-primary); }

/* 17. REVIEWS SECTION
   ============================================= */
.reviews {
  background: var(--surface, var(--clr-tinted));
  padding-block: var(--section-pad);
}

.reviews__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }

.review-item {
  padding: 20px;
  background: var(--clr-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--clr-border);
  margin-bottom: 12px;
}
.review-author { font-weight: 600; font-size: 0.9375rem; color: var(--clr-text); }
.review-stars { color: #F5A623; font-size: 0.875rem; }
.review-title { font-size: 0.9375rem; font-weight: 600; display: block; margin-block: 6px; color: var(--clr-text); }
.review-body { font-size: 0.875rem; color: var(--clr-muted); line-height: 1.65; }

.review-form-placeholder { padding: 28px; background: var(--clr-white); border-radius: var(--radius-lg); border: 1px solid var(--clr-border); }
.review-form-placeholder h3 { font-family: var(--font-display); font-size: 1.25rem; margin-bottom: 20px; color: var(--clr-text); }
.review-form-placeholder input,
.review-form-placeholder textarea { display: block; width: 100%; margin-bottom: 12px; }

/* 18. CART PAGE
   ============================================= */
.cart-page { padding-block: var(--section-pad); }

.cart-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 40px;
  align-items: start;
}

.cart-page__title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 500;
  margin-bottom: 32px;
  color: var(--clr-text);
}

.cart-items-list { display: flex; flex-direction: column; gap: 0; }
.cart-item {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 16px;
  align-items: center;
  padding-block: 20px;
  border-bottom: 1px solid var(--clr-border);
}
.cart-item__image {
  width: 80px; height: 80px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: var(--surface, var(--clr-tinted));
}
.cart-item__title { font-size: 0.9375rem; font-weight: 500; color: var(--clr-text); margin-bottom: 4px; }
.cart-item__variant { font-size: 0.8125rem; color: var(--clr-muted); margin-bottom: 8px; }
.cart-item__qty { display: flex; align-items: center; gap: 8px; }
.cart-item__qty button { width: 28px; height: 28px; border: 1px solid var(--clr-border); border-radius: var(--radius, 4px); font-size: 1rem; transition: background var(--ease-fast); }
.cart-item__qty button:hover { background: var(--surface, var(--clr-tinted)); }
.cart-item__qty span { font-size: 0.9375rem; font-weight: 600; min-width: 20px; text-align: center; }
.cart-item__remove { font-size: 0.8125rem; color: var(--clr-muted); cursor: pointer; background: none; border: none; margin-top: 6px; transition: color var(--ease-fast); }
.cart-item__remove:hover { color: #E04444; }
.cart-item__price { font-size: 1rem; font-weight: 600; color: var(--clr-text); text-align: right; }

.cart-summary {
  background: var(--clr-tinted);
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid var(--clr-border);
  position: sticky;
  top: 88px;
}
.cart-summary__title { font-family: var(--font-display); font-size: 1.125rem; font-weight: 500; margin-bottom: 20px; color: var(--clr-text); }
.cart-summary__row { display: flex; justify-content: space-between; font-size: 0.9375rem; margin-bottom: 10px; color: var(--clr-muted); }
.cart-summary__row--total { font-size: 1.125rem; font-weight: 700; color: var(--clr-text); padding-top: 14px; border-top: 1px solid var(--clr-border); margin-top: 6px; }
.cart-summary__checkout { display: block; width: 100%; text-align: center; margin-top: 20px; }

/* Empty state */
.empty-state {
  text-align: center;
  padding-block: 80px 48px;
}
.empty-state__icon { width: 64px; height: 64px; color: var(--clr-border); margin-inline: auto; margin-bottom: 20px; }
.empty-state h2 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 500; margin-bottom: 10px; }
.empty-state p { color: var(--clr-muted); margin-bottom: 28px; }

/* 19. CHECKOUT PAGE
   ============================================= */
.checkout-page { padding-block: var(--section-pad); background: var(--clr-bg); }

.checkout-progress {
  margin-bottom: 48px;
}
.checkout-progress ol {
  display: flex;
  align-items: flex-start;
  gap: 0;
  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-secondary); }
.checkout-progress__step > span:first-child {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 2px solid var(--clr-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--clr-muted);
  flex-shrink: 0;
  background: var(--clr-white);
  transition: all var(--ease-base);
  position: relative;
  z-index: 1;
}
.checkout-progress__step--completed > span:first-child {
  background: var(--clr-secondary);
  border-color: var(--clr-secondary);
  color: var(--clr-white);
  color: oklch(from var(--clr-secondary) clamp(0, (0.57 - l) * 1000, 1) 0 0);
}
.checkout-progress__step--active > span:first-child {
  background: var(--clr-primary);
  border-color: var(--clr-primary);
  color: var(--clr-white);
}
.checkout-progress__label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--clr-muted);
  white-space: nowrap;
  text-align: center;
}
.checkout-progress__step--active .checkout-progress__label { color: var(--clr-primary); font-weight: 600; }

.checkout-inner {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 40px;
  align-items: start;
}

.checkout-form-section { background: var(--clr-white); border-radius: var(--radius-lg); padding: 28px; border: 1px solid var(--clr-border); margin-bottom: 16px; }
.checkout-form-section h3 { font-family: var(--font-display); font-size: 1.0625rem; font-weight: 500; margin-bottom: 20px; color: var(--clr-text); }

.checkout-summary {
  background: var(--clr-tinted);
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid var(--clr-border);
  position: sticky;
  top: 88px;
}
.checkout-summary__title { font-family: var(--font-display); font-size: 1.0625rem; font-weight: 500; margin-bottom: 20px; color: var(--clr-text); }

.checkout-item {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
}
.checkout-item img { width: 56px; height: 56px; object-fit: cover; border-radius: var(--radius-sm); background: var(--clr-border); }
.checkout-item__title { font-size: 0.875rem; font-weight: 500; }
.checkout-item__variant { font-size: 0.75rem; color: var(--clr-muted); }
.checkout-item__price { font-size: 0.9375rem; font-weight: 600; }
.checkout-divider { border: none; border-top: 1px solid var(--clr-border); margin-block: 16px; }
.checkout-total-row { display: flex; justify-content: space-between; font-size: 0.9375rem; margin-bottom: 10px; color: var(--clr-muted); }
.checkout-total-row--final { font-size: 1.125rem; font-weight: 700; color: var(--clr-text); }

/* Trust signals */
.trust-signals { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 20px; }
.trust-signals__item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--clr-secondary);
}
.trust-signals__item svg { width: 18px; height: 18px; flex-shrink: 0; }

/* 20. RELATED PRODUCTS (product page)
   ============================================= */
.related-products {
  background: var(--clr-bg);
  padding-block: var(--section-pad);
}
.related-products__header {
  text-align: center;
  margin-bottom: 40px;
}

/* 21. HERO (products page, smaller)
   ============================================= */
.page-hero {
  background: var(--surface, var(--clr-tinted));
  padding-block: 56px;
  text-align: center;
}
.page-hero__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 500;
  color: var(--clr-text);
  margin-bottom: 10px;
}
.page-hero__subtitle { font-size: 1rem; color: var(--clr-muted); }

/* 22. @KEYFRAMES
   ============================================= */
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes heroFadeIn {
  from { opacity: 0; transform: scale(0.96); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes spinLoader {
  to { transform: rotate(360deg); }
}

/* 23. RESPONSIVE
   ============================================= */
@media (max-width: 1023px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .hero__float-card { left: -24px; }
}

@media (max-width: 768px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { order: -1; max-width: 100%; }
  .hero__float-card { left: 16px; bottom: 20px; }
  .bento-grid { grid-template-columns: 1fr 1fr; }
  .bento-card:first-child { grid-column: 1 / 3; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr; }
  .policies-grid { grid-template-columns: 1fr; }
  .faqs__inner { grid-template-columns: 1fr; }
  .contact__inner { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .product-detail__inner { grid-template-columns: 1fr; }
  .cart-layout { grid-template-columns: 1fr; }
  .checkout-inner { grid-template-columns: 1fr; }
  .reviews__inner { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .mobile-nav-toggle { display: flex; }
  .header-nav { display: none; }
  /* A long brand name gives way instead of widening the phone's layout viewport. */
  .header-inner { gap: 1rem; }
  .header-logo { flex-shrink: 1; min-width: 0; }
  .header-logo__img { flex-shrink: 0; }
  .header-logo__text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .header-actions { margin-inline-start: auto; flex-shrink: 0; }
  .header-nav.open { display: flex; flex-direction: column; position: fixed; inset: 68px 0 0 0; background: var(--clr-bg); padding: 32px; gap: 8px; z-index: 400; overflow-y: auto; }
  .header-nav.open .header-nav__link { font-size: 1.125rem; padding-block: 8px; }
}

@media (max-width: 480px) {
  .product-grid { grid-template-columns: 1fr; }
  .bento-grid { grid-template-columns: 1fr; }
  .bento-card:nth-child(1) { grid-column: 1; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; justify-content: center; }
}

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

/* 25. BACK TO TOP
   ============================================= */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--clr-primary);
  color: var(--clr-white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity var(--ease-base), visibility var(--ease-base), transform var(--ease-base), background var(--ease-fast);
  z-index: 400;
  cursor: pointer;
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover { background: var(--clr-primary-dark); transform: translateY(-2px); }

/* Sort control */
.product-sort {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-bottom: 28px;
}
.product-sort label { font-size: 0.875rem; font-weight: 500; color: var(--clr-muted); }
.product-sort select {
  padding: 8px 14px;
  border: 1.5px solid var(--clr-border);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  color: var(--clr-text);
  background: var(--surface, var(--clr-white));
  cursor: pointer;
  outline: none;
  transition: border-color var(--ease-fast);
}
.product-sort select:focus { border-color: var(--clr-primary); }
.product-sort option { background: var(--surface, var(--clr-white)); color: var(--clr-text); }

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

/* 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; }

/* 27. SCROLL-DRIVEN REVEALS (CSS-native — replaces the former GSAP + ScrollTrigger pass)
   =============================================
   Resting state is visible at rule level everywhere below (no rule-level opacity:0 /
   transform:scale*(0)); the hidden from-state exists only inside @keyframes, so a
   visitor whose browser never runs the timeline (no support, or a same-origin
   iframe preview where a view()/scroll() timeline reads currentTime as null) still
   sees full content. Both guards — @supports (animation-timeline: view()) and
   prefers-reduced-motion: no-preference — wrap every lane; the shorthand is
   declared before animation-timeline/animation-range in every rule so it is never
   silently reset. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {

    /* Section eyebrows / headings / subtitles / CTAs */
    [data-reveal] {
      opacity: 1;
      animation: forma-reveal-up 0.6s cubic-bezier(.16,1,.3,1) both;
      animation-timeline: view();
      animation-range: entry 0% entry 40%;
    }

    /* Staggered grid children — everything except .bento-card (its own clip-style
       reveal below) and .product-card (its transform is owned by the JS hover-tilt
       in main.js; animating transform here would fight that inline style once the
       view() timeline fills). These get opacity + lift. */
    [data-stagger] [data-stagger-child]:not(.bento-card):not(.product-card) {
      opacity: 1;
      animation: forma-reveal-up 0.6s cubic-bezier(.16,1,.3,1) both;
      animation-timeline: view();
      animation-range: entry 0% entry 38%;
    }
    [data-stagger] [data-stagger-child]:not(.bento-card):not(.product-card):nth-child(2) { animation-range: entry 8% entry 46%; }
    [data-stagger] [data-stagger-child]:not(.bento-card):not(.product-card):nth-child(3) { animation-range: entry 16% entry 54%; }
    [data-stagger] [data-stagger-child]:not(.bento-card):not(.product-card):nth-child(4) { animation-range: entry 24% entry 62%; }
    [data-stagger] [data-stagger-child]:not(.bento-card):not(.product-card):nth-child(5) { animation-range: entry 32% entry 70%; }
    [data-stagger] [data-stagger-child]:not(.bento-card):not(.product-card):nth-child(6) { animation-range: entry 40% entry 78%; }
    [data-stagger] [data-stagger-child]:not(.bento-card):not(.product-card):nth-child(7) { animation-range: entry 48% entry 86%; }
    [data-stagger] [data-stagger-child]:not(.bento-card):not(.product-card):nth-child(8) { animation-range: entry 56% entry 94%; }

    /* .product-card — opacity-only reveal, transform stays free for the hover tilt */
    .product-card {
      opacity: 1;
      animation: forma-reveal-fade 0.6s cubic-bezier(.16,1,.3,1) both;
      animation-timeline: view();
      animation-range: entry 0% entry 38%;
    }
    [data-stagger] .product-card:nth-child(2) { animation-range: entry 8% entry 46%; }
    [data-stagger] .product-card:nth-child(3) { animation-range: entry 16% entry 54%; }
    [data-stagger] .product-card:nth-child(4) { animation-range: entry 24% entry 62%; }
    [data-stagger] .product-card:nth-child(5) { animation-range: entry 32% entry 70%; }
    [data-stagger] .product-card:nth-child(6) { animation-range: entry 40% entry 78%; }
    [data-stagger] .product-card:nth-child(7) { animation-range: entry 48% entry 86%; }
    [data-stagger] .product-card:nth-child(8) { animation-range: entry 56% entry 94%; }

    /* Category bento cards — grow-in reveal (opacity + scale; no held translate to
       fight .bento-card:hover img's own transform, which lives on the child img). */
    .bento-card {
      opacity: 1;
      animation: forma-bento-reveal 0.7s cubic-bezier(.16,1,.3,1) both;
      animation-timeline: view();
      animation-range: entry 0% entry 45%;
    }
    [data-stagger] .bento-card:nth-child(2) { animation-range: entry 8% entry 53%; }
    [data-stagger] .bento-card:nth-child(3) { animation-range: entry 16% entry 61%; }
    [data-stagger] .bento-card:nth-child(4) { animation-range: entry 24% entry 69%; }

    /* Hero image parallax — desktop only, matching the old GSAP `window.innerWidth > 768` gate */
    @media (min-width: 769px) {
      .hero__image-wrap img {
        animation: forma-hero-parallax linear both;
        animation-timeline: view();
        animation-range: cover 0% cover 100%;
      }
    }
  }
}

@keyframes forma-reveal-up {
  from { opacity: 0; transform: translateY(44px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes forma-reveal-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes forma-bento-reveal {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes forma-hero-parallax {
  from { transform: translateY(0); }
  to   { transform: translateY(-8%); }
}

/* 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.
   Gate: tests/Feature/Themes/MobileHeaderFitTest.php (it strips this block and expects the overhang back). */
@media (max-width: 768px) {
  [data-section="header"] .header-logo { flex-shrink: 1; min-width: 0; }
  [data-section="header"] .header-logo__text { 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 */

/* 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. */
:root {
  --clr-muted: #6d5e4f; /* was #8B7B6B */
  --clr-primary: #925426; /* was #BF7D50 */
}
.footer-bottom p { color: oklch(from var(--wb-on-dark, rgba(255,255,255,0.35)) calc(l + 0.04) c h / calc(min(1, alpha + 0.12))); }
