/* ============================================================
   FOLIO — Books & Stationery | Growth Tier
   Palette: Deep Violet Ink + Amber Gold on Warm Parchment
   ============================================================ */

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --primary:          #3d2c72;
  --primary-dark:     #2a1d55;
  --primary-light:    #5a44a0;
  --secondary:        #c8507a;
  --secondary-dark:   #a63d63;
  --secondary-light:  #de7298;
  --accent:           #e8a83c;
  --accent-dark:      #c98c28;
  --accent-light:     #f2c060;
  --background:       #faf7f2;
  --surface:          #f0ebe1;
  --surface-dark:     #e4ddd0;
  --dark:             #1e1625;
  --dark-mid:         #2c2138;
  --text:             #1e1625;
  --text-body:        #3d3350;
  --muted:            #7a6e85;
  --muted-light:      #a89eb5;
  --border:           #d8d0e2;
  --border-light:     #ede7f3;
  --font-display:     'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans:        'DM Sans', system-ui, -apple-system, sans-serif;
  --radius:           0.5rem;
  --radius-lg:        1rem;
  --radius-xl:        1.5rem;
  --shadow-sm:        0 2px 8px rgba(61, 44, 114, 0.06);
  --shadow:           0 4px 24px rgba(61, 44, 114, 0.10);
  --shadow-hover:     0 8px 40px rgba(61, 44, 114, 0.20);
  --shadow-card:      0 2px 16px rgba(30, 22, 37, 0.08);
  --ease:             cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out:         cubic-bezier(0.0, 0, 0.2, 1);
  --transition:       0.25s var(--ease);
}

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

/* ── Typography ────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: 1.2;
  font-weight: 700;
  color: var(--text);
}
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }
p { color: var(--text-body); }

/* ── Container & Layout ────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border-width: 0;
}

/* ── Scroll Progress ───────────────────────────────────────── */
#scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  z-index: 9999; transition: width 0.1s linear; pointer-events: none;
}

/* ── Skip Link ─────────────────────────────────────────────── */
.skip-link {
  position: absolute; left: -9999px; top: auto; z-index: 9999;
  padding: 0.6rem 1.2rem; background: var(--primary); color: #fff;
  font-size: 0.875rem; font-weight: 600; border-radius: 0 0 var(--radius) var(--radius);
}
.skip-link:focus { left: 1.5rem; top: 0; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.75rem; border-radius: var(--radius);
  font-family: var(--font-sans); font-size: 0.9375rem; font-weight: 600;
  border: 2px solid transparent; cursor: pointer; transition: var(--transition);
  text-decoration: none; white-space: nowrap;
}
.btn--primary {
  background: var(--primary); color: #fff; border-color: var(--primary);
}
.btn--primary:hover, .btn--primary:focus-visible {
  background: var(--primary-dark); border-color: var(--primary-dark);
}
.btn--accent {
  background: var(--accent); color: var(--dark); border-color: var(--accent);
  color: oklch(from var(--accent) clamp(0, (0.57 - l) * 1000, 1) 0 0);
}
.btn--accent:hover, .btn--accent:focus-visible {
  background: var(--accent-dark); border-color: var(--accent-dark);
}
.btn--outline {
  background: transparent; color: var(--primary); border-color: var(--primary);
}
.btn--outline:hover, .btn--outline:focus-visible {
  background: var(--primary); color: #fff;
}
.btn--ghost {
  background: transparent; color: rgba(255,255,255,0.85);
  border-color: rgba(255,255,255,0.4);
}
.btn--ghost:hover, .btn--ghost:focus-visible {
  background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.7); color: #fff;
}
.btn--ghost-light {
  background: transparent; color: var(--muted-light);
  border-color: rgba(255,255,255,0.25);
}
.btn--ghost-light:hover { color: #fff; border-color: rgba(255,255,255,0.6); }
.btn--sm { padding: 0.5rem 1.25rem; font-size: 0.875rem; }
.btn--lg { padding: 1rem 2.25rem; font-size: 1rem; }
.btn--full { width: 100%; justify-content: center; }
.btn__icon { flex-shrink: 0; transition: transform 0.2s var(--ease-out); }
.btn:hover .btn__icon, .btn:focus-visible .btn__icon { transform: translateX(3px); }
.btn--magnetic { transition: var(--transition), transform 0.3s cubic-bezier(.23,1,.32,1); }

/* ── Section Helpers ───────────────────────────────────────── */
section { padding: 5.5rem 0; }
.section__eyebrow {
  display: inline-block; font-family: var(--font-sans); font-size: 0.75rem;
  font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 0.75rem;
}
.section__eyebrow--light { color: var(--accent-light); }
.section__title { margin-bottom: 1rem; }
.section__subtitle { color: var(--muted); font-size: 1.0625rem; max-width: 560px; }
.section__header { margin-bottom: 3rem; }
.section__header--center { text-align: center; }
.section__header--center .section__subtitle { margin: 0 auto; }
.section__header--flex {
  display: flex; align-items: flex-end;
  justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
}

/* ── Header / Navigation ───────────────────────────────────── */
[data-section="header"] {
  position: sticky; top: 0; z-index: 100;
  background: var(--background, rgba(250,247,242,.96));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.nav {
  display: flex; align-items: center;
  justify-content: space-between; padding: 1rem 0; gap: 2rem;
}
.nav__logo img { height: 44px; width: auto; object-fit: contain; }
.nav__links {
  display: flex; align-items: center; gap: 0.25rem; list-style: none;
}
.nav__links a {
  padding: 0.5rem 0.875rem; border-radius: var(--radius);
  font-size: 0.9375rem; font-weight: 500; color: var(--text-body);
  transition: var(--transition); text-decoration: none;
}
.nav__links a:hover { color: var(--primary); background: var(--surface); }
.nav__actions { display: flex; align-items: center; gap: 0.75rem; }
.nav__cart-btn {
  position: relative; display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: var(--radius);
  background: var(--surface); color: var(--text); border: 1px solid var(--border);
  transition: var(--transition);
}
.nav__cart-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.nav__cart {
  position: absolute; top: -4px; right: -4px;
  min-width: 20px; height: 20px; padding: 0 5px;
  background: var(--secondary); color: #fff;
  border-radius: 10px; font-size: 0.6875rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--background);
  color: oklch(from var(--secondary) clamp(0, (0.57 - l) * 1000, 1) 0 0);
}
.nav__toggle {
  display: none; flex-direction: column; justify-content: center;
  gap: 5px; width: 44px; height: 44px;
  background: none; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 10px;
}
.nav__toggle span {
  display: block; height: 2px; width: 100%;
  background: var(--text); border-radius: 2px;
  transition: var(--transition);
}
.nav__toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.active span:nth-child(2) { opacity: 0; }
.nav__toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Hero (Index) ──────────────────────────────────────────── */
[data-section="hero"] {
  background: linear-gradient(135deg, var(--primary) 0%, var(--dark-mid) 55%, var(--dark) 100%);
  color: #fff; padding: 6rem 0 0; overflow: hidden; position: relative;
}
.hero__inner {
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: center; gap: 4rem; min-height: 520px;
}
.hero__badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.25);
  padding: 0.375rem 1rem; border-radius: 2rem; margin-bottom: 1.5rem;
  font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.06em;
  color: var(--accent-light);
}
.badge-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); display: inline-block; flex-shrink: 0;
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.8); }
}
.hero__prefix {
  font-size: 0.875rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 0.75rem;
}
.hero__title {
  font-size: clamp(2.5rem, 5.5vw, 4rem); font-family: var(--font-display);
  font-weight: 700; color: #fff; line-height: 1.1; margin-bottom: 1.25rem;
  font-style: italic;
}
.hero__subtitle {
  font-size: 1.125rem; color: rgba(255,255,255,0.75); margin-bottom: 1rem; max-width: 480px;
}
.hero__body { color: rgba(255,255,255,0.6); font-size: 0.9375rem; margin-bottom: 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2.5rem; }
.hero__stats {
  display: flex; gap: 2rem; padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.15);
}
.hero__stat { display: flex; flex-direction: column; gap: 0.125rem; }
.hero__stat strong {
  font-family: var(--font-sans); font-size: 1.75rem; font-weight: 700;
  color: var(--accent); line-height: 1;
}
.hero__stat span { font-size: 0.8125rem; color: rgba(255,255,255,0.55); }

/* Hero visual */
.hero__visual { position: relative; display: flex; justify-content: center; }
.hero__img-frame {
  position: relative; width: 100%; max-width: 420px;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  overflow: hidden; aspect-ratio: 4/5;
}
.hero__img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 6s ease;
}
.hero__float {
  position: absolute; background: rgba(255,255,255,0.95);
  border-radius: var(--radius-lg); padding: 0.75rem 1.1rem;
  display: flex; align-items: center; gap: 0.75rem;
  box-shadow: var(--shadow); backdrop-filter: blur(8px);
  color: var(--text); font-size: 0.8125rem;
  animation: float-up 3s ease-in-out infinite alternate;
}
.hero__float--top { top: 1.5rem; left: -1.5rem; }
.hero__float--bottom { bottom: 2rem; right: -1.5rem; animation-delay: 1.2s; }
.hero__float strong { font-weight: 700; font-size: 0.875rem; display: block; }
.hero__float small { color: var(--muted); font-size: 0.75rem; display: block; }
.hero__float-icon {
  width: 36px; height: 36px; background: var(--surface);
  border-radius: var(--radius); display: flex; align-items: center;
  justify-content: center; color: var(--primary); flex-shrink: 0;
}
.hero__float span { font-weight: 600; }
@keyframes float-up {
  from { transform: translateY(0); }
  to   { transform: translateY(-8px); }
}
.deco-dot {
  position: absolute; border-radius: 50%;
  background: rgba(232,168,60,0.25);
}
.deco-dot--1 { width: 120px; height: 120px; top: -40px; right: -40px; }
.deco-dot--2 { width: 60px; height: 60px; bottom: 20px; left: -20px; background: rgba(200,80,122,0.2); }
.deco-line {
  position: absolute; bottom: 80px; right: -30px;
  width: 60px; height: 3px; background: var(--accent); border-radius: 2px;
  transform: rotate(-45deg);
}
.hero__wave {
  margin-top: 3rem; line-height: 0;
}
.hero__wave svg { width: 100%; height: 60px; display: block; }

/* Hero compact (products page banner) */
.hero--compact { padding: 3.5rem 0; min-height: auto; }
.hero-compact__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
}
.hero-compact__prefix {
  font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 0.5rem;
}
.hero-compact__title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem); color: #fff;
  font-family: var(--font-display); margin-bottom: 0.75rem; font-style: italic;
}
.hero-compact__subtitle { color: rgba(255,255,255,0.7); margin-bottom: 1.5rem; }
.hero-compact__body { display: none; }
.hero-compact__img img {
  width: 260px; height: 260px; object-fit: cover;
  border-radius: var(--radius-xl); opacity: 0.6;
}

/* ── Categories ────────────────────────────────────────────── */
[data-section="categories"] {
  background: var(--surface); padding: 5rem 0;
}
.categories__scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 0.5rem; }
.categories__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.25rem; min-width: 640px;
}
.category-card { border-radius: var(--radius-lg); overflow: hidden; }
.category-card__link {
  display: block; position: relative; border-radius: var(--radius-lg);
  overflow: hidden; text-decoration: none;
}
.category-card__img-wrap { aspect-ratio: 9/11; overflow: hidden; }
.category-card__img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.category-card__link:hover .category-card__img-wrap img { transform: scale(1.06); }
.category-card__label {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(0deg, rgba(30,22,37,0.9) 0%, rgba(30,22,37,0) 100%);
  padding: 2rem 1rem 1rem;
  display: flex; align-items: center; justify-content: space-between;
  color: #fff; font-weight: 600; font-size: 0.9375rem;
}
.category-card__arrow { flex-shrink: 0; opacity: 0.7; transition: transform 0.25s; }
.category-card__link:hover .category-card__arrow { transform: translateX(4px); opacity: 1; }

/* ── Products Section ──────────────────────────────────────── */
[data-section="products"] { background: var(--background); }
.products__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem;
}

/* Product Card */
.product-card {
  background: var(--background); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-card);
  border: 1px solid var(--border-light);
  transition: box-shadow 0.3s var(--ease), transform 0.3s cubic-bezier(.23,1,.32,1);
  transform-style: preserve-3d;
}
.product-card:hover { box-shadow: var(--shadow-hover); }
.product-card__img-wrap {
  position: relative; overflow: hidden; aspect-ratio: 3/4;
  display: block; background: var(--surface);
}
.product-card__img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.product-card:hover .product-card__img-wrap img { transform: scale(1.05); }
.product-card__quick-view {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: rgba(61,44,114,0.92); color: #fff;
  padding: 0.75rem 1rem;
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-size: 0.875rem; font-weight: 600;
  transform: translateY(100%); transition: transform 0.3s var(--ease);
}
.product-card:hover .product-card__quick-view { transform: translateY(0); }
.product-card__badge {
  position: absolute; top: 0.75rem; left: 0.75rem;
  background: var(--secondary); color: #fff;
  padding: 0.25rem 0.625rem; border-radius: 2rem;
  font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: oklch(from var(--secondary) clamp(0, (0.57 - l) * 1000, 1) 0 0);
}
.product-card__body { padding: 1.25rem; }
.product-card__title {
  font-family: var(--font-display); font-size: 1rem; font-weight: 600;
  margin-bottom: 0.5rem; line-height: 1.3; overflow-wrap: anywhere;
}
.product-card__title a {
  color: var(--text); text-decoration: none; transition: color 0.2s;
}
.product-card__title a:hover { color: var(--primary); }
.product-card__price { margin-bottom: 0.875rem; }
.product-card__price-current {
  font-family: var(--font-sans); font-size: 1.0625rem; font-weight: 700;
  color: var(--primary);
}
.product-card__price-original {
  font-size: 0.875rem; color: var(--muted); text-decoration: line-through; margin-left: 0.5rem;
}
.product-card__add-btn {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.625rem 1rem; border-radius: var(--radius);
  background: var(--primary); color: #fff; border: none;
  font-size: 0.875rem; font-weight: 600; cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.product-card__add-btn:hover { background: var(--primary-dark); }
.product-card__add-btn:active { transform: scale(0.97); }

/* Product Filter Bar */
.products__filter-wrap { margin-bottom: 2rem; }
.product-filter__bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
}
.product-filter__chips { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.filter-chip {
  padding: 0.4375rem 1rem; border-radius: 2rem;
  border: 1.5px solid var(--border); background: var(--background);
  color: var(--text-body); font-size: 0.875rem; font-weight: 500;
  cursor: pointer; transition: var(--transition); white-space: nowrap;
}
.filter-chip:hover { border-color: var(--primary); color: var(--primary); }
.filter-chip--active, .filter-chip[aria-pressed="true"] {
  background: var(--primary); border-color: var(--primary);
  color: #fff;
}
.sort-select {
  padding: 0.4375rem 1rem; border-radius: var(--radius);
  border: 1.5px solid var(--border); background: var(--background);
  color: var(--text, var(--text-body)); font-size: 0.875rem; font-weight: 500;
  cursor: pointer; min-width: 160px;
}
.sort-select:focus { outline: 2px solid var(--primary); outline-offset: 2px; }

/* ── Testimonials ──────────────────────────────────────────── */
[data-section="testimonials"] {
  background: var(--dark); color: #fff;
}
[data-section="testimonials"] .section__title { color: #fff; }
.testimonials__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
}
.testimonial-card {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg); padding: 1.75rem;
  transition: var(--transition);
}
.testimonial-card:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.2); }
.testimonial-card__stars { color: var(--accent); font-size: 1.0625rem; margin-bottom: 1rem; }
.testimonial-card__content {
  color: rgba(255,255,255,0.8); font-size: 0.9375rem; line-height: 1.7;
  margin-bottom: 1.5rem; font-style: italic;
}
.testimonial-card__author { display: flex; align-items: center; gap: 0.875rem; }
.testimonial-card__author img {
  width: 48px; height: 48px; border-radius: 50%; object-fit: cover;
  border: 2px solid rgba(255,255,255,0.2);
}
.testimonial-card__info strong { display: block; font-size: 0.9375rem; color: #fff; }
.testimonial-card__info span { font-size: 0.8125rem; color: rgba(255,255,255,0.5); }

/* ── FAQs ──────────────────────────────────────────────────── */
[data-section="faqs"] { background: var(--surface); }
.faqs__list { max-width: 800px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--border); overflow: hidden;
}
.faq-trigger {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 1.25rem 0; gap: 1rem;
  background: none; border: none; text-align: left; cursor: pointer;
  font-size: 1rem; font-weight: 600; color: var(--text);
  font-family: var(--font-sans); transition: color 0.2s;
}
.faq-trigger:hover { color: var(--primary); }
.faq-trigger[aria-expanded="true"] { color: var(--primary); }
.faq-icon { flex-shrink: 0; transition: transform 0.3s var(--ease); color: var(--muted); }
.faq-trigger[aria-expanded="true"] .faq-icon { transform: rotate(180deg); color: var(--primary); }
.faq-body { overflow: hidden; transition: max-height 0.3s var(--ease); }
.faq-answer {
  padding: 0 0 1.25rem;
  color: var(--text-body); font-size: 0.9375rem; line-height: 1.7;
}

/* ── Policies ──────────────────────────────────────────────── */
[data-section="policies"] { background: var(--background); }
.policies__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem;
}
.policy-card {
  text-align: center; padding: 2.5rem 2rem; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--border);
  transition: var(--transition);
}
.policy-card:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.policy-card__icon {
  width: 60px; height: 60px; border-radius: var(--radius-lg);
  background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.25rem;
}
.policy-card__title {
  display: block; font-size: 1.0625rem; font-weight: 700;
  color: var(--text); margin-bottom: 0.75rem;
}
.policy-card__body { color: var(--text-body); font-size: 0.9375rem; line-height: 1.65; }

/* ── Contact ───────────────────────────────────────────────── */
/* overflow-x: clip — the form reveals from 40px right of the edge (wbRevealRight) and would
   otherwise widen a phone's layout viewport until it scrolls into view. */
[data-section="contact"] {
  background: var(--dark-mid); color: #fff;
  overflow-x: clip;
}
[data-section="contact"] .section__title { color: #fff; }
.contact__inner {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 5rem; align-items: start;
}
.contact__details { margin: 1.75rem 0; display: flex; flex-direction: column; gap: 1rem; }
.contact__detail {
  display: flex; align-items: flex-start; gap: 0.875rem;
  font-size: 0.9375rem; color: rgba(255,255,255,0.75);
}
.contact__detail-icon {
  width: 38px; height: 38px; background: rgba(255,255,255,0.08);
  border-radius: var(--radius); display: flex; align-items: center;
  justify-content: center; color: var(--accent); flex-shrink: 0; margin-top: 2px;
}
.contact__map-btn { margin-bottom: 1.5rem; }
.contact__whatsapp {
  display: flex; align-items: center; gap: 0.5rem;
  color: #25D366; font-weight: 600; font-size: 0.9375rem;
}
.contact-form { background: var(--background); border-radius: var(--radius-lg); padding: 2.5rem; }
.form-group { margin-bottom: 1.25rem; }
.form-label {
  display: block; font-size: 0.875rem; font-weight: 600;
  color: var(--text); margin-bottom: 0.4rem;
}
.form-input {
  width: 100%; padding: 0.75rem 1rem; border-radius: var(--radius);
  border: 1.5px solid var(--border); background: var(--background);
  color: var(--text); font-size: 0.9375rem; transition: border-color 0.2s;
}
.form-input:focus { outline: none; border-color: var(--primary); }
.form-input::placeholder { color: var(--muted-light); }
.form-textarea { resize: vertical; min-height: 120px; }
.form-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237a6e85' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.875rem center; padding-right: 2.25rem; }
.form-row { display: flex; gap: 1rem; }
.form-row .form-group { flex: 1; }

/* ── Footer ────────────────────────────────────────────────── */
[data-section="footer"] {
  background: var(--dark); color: rgba(255,255,255,0.65); padding: 4rem 0 2rem;
}
.footer__grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2.5rem;
  margin-bottom: 3rem;
}
.footer__logo img { height: 40px; width: auto; margin-bottom: 1rem; }
.footer__tagline { font-size: 0.9rem; line-height: 1.6; margin-bottom: 1.5rem; }
.footer__social { display: flex; gap: 0.75rem; }
.social-link {
  width: 38px; height: 38px; border-radius: var(--radius);
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.55); transition: var(--transition);
}
.social-link:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.footer__heading {
  font-family: var(--font-sans); font-size: 0.8125rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: rgba(255,255,255,0.9); margin-bottom: 1.25rem;
}
.footer__list li { margin-bottom: 0.625rem; }
.footer__list a {
  font-size: 0.9rem; color: rgba(255,255,255,0.55); transition: color 0.2s;
  text-decoration: none;
}
.footer__list a:hover { color: var(--accent-light); }
.footer__list--contact li { display: flex; align-items: center; gap: 0.5rem; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1.5rem; text-align: center; font-size: 0.875rem;
}

/* ── Back to Top ───────────────────────────────────────────── */
.back-to-top {
  position: fixed; bottom: 2rem; right: 2rem;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--primary); color: #fff; border: none;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow); cursor: pointer; z-index: 800;
  opacity: 0; pointer-events: none; transition: opacity 0.3s, transform 0.3s;
  transform: translateY(10px);
}
.back-to-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-to-top:hover { background: var(--primary-dark); }

/* ── Breadcrumbs ───────────────────────────────────────────── */
.breadcrumbs { padding: 1.25rem 0; margin-bottom: 0.5rem; }
.breadcrumbs ol { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.breadcrumbs li { display: flex; align-items: center; gap: 0.5rem; }
.breadcrumbs li:not(:last-child)::after {
  content: '/'; color: var(--muted); font-size: 0.875rem;
}
.breadcrumbs a { font-size: 0.875rem; color: var(--muted); text-decoration: none; transition: color 0.2s; }
.breadcrumbs a:hover { color: var(--primary); }
.breadcrumbs [aria-current="page"] { font-size: 0.875rem; color: var(--text); font-weight: 500; }

/* ── Product Detail ────────────────────────────────────────── */
[data-section="product_detail"] { padding: 3rem 0 5rem; }
.product-detail__layout {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start;
  overflow-x: clip; /* the info column reveals from 40px right (wbRevealRight) */
}
.product-gallery { position: sticky; top: 90px; }
.product-gallery__main {
  border-radius: var(--radius-lg); overflow: hidden;
  aspect-ratio: 4/5; background: var(--surface); margin-bottom: 0.875rem;
}
.product-gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.product-gallery__thumbs { display: flex; gap: 0.625rem; }
.product-gallery__thumbs button {
  width: 72px; height: 72px; border-radius: var(--radius); overflow: hidden;
  border: 2px solid transparent; background: var(--surface); cursor: pointer;
  transition: border-color 0.2s; padding: 0; flex-shrink: 0;
}
.product-gallery__thumbs button:hover,
.product-gallery__thumbs button.active { border-color: var(--primary); }
.product-gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; }

.product-detail__info {}
.product-category {
  font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 0.75rem; display: block;
}
.product-title {
  font-size: clamp(1.6rem, 3vw, 2.25rem); margin-bottom: 1.25rem; line-height: 1.2;
}
.product-price {
  display: flex; align-items: baseline; gap: 0.75rem; margin-bottom: 1.5rem;
}
.price-current {
  font-size: 1.75rem; font-weight: 700; color: var(--primary); font-family: var(--font-sans);
}
.price-original {
  font-size: 1.125rem; color: var(--muted); text-decoration: line-through;
}
.price-badge {
  padding: 0.25rem 0.625rem; background: var(--secondary); color: #fff;
  border-radius: 2rem; font-size: 0.75rem; font-weight: 700;
  color: oklch(from var(--secondary) clamp(0, (0.57 - l) * 1000, 1) 0 0);
}
.product-rating {
  display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1.5rem;
}
.product-rating__stars { color: var(--accent); letter-spacing: 2px; }
.product-rating__count { font-size: 0.875rem; color: var(--muted); }
.product-desc { color: var(--text-body); line-height: 1.75; margin-bottom: 2rem; }
.product-desc p { margin-bottom: 0.75rem; }

/* Variant selectors */
.variant-selector { margin-bottom: 1.5rem; }
.variant-selector__label {
  display: block; font-size: 0.875rem; font-weight: 600; color: var(--text);
  margin-bottom: 0.625rem;
}
.variant-selector__options { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.variant-chip { cursor: pointer; }
.variant-chip input { position: absolute; opacity: 0; width: 0; height: 0; }
.variant-chip span {
  display: block; padding: 0.375rem 0.875rem; border-radius: var(--radius);
  border: 1.5px solid var(--border); font-size: 0.875rem; font-weight: 500;
  color: var(--text-body); transition: var(--transition);
}
.variant-chip:hover span { border-color: var(--primary); color: var(--primary); }
.variant-chip input:checked ~ span { border-color: var(--primary); background: var(--primary); color: #fff; }

/* Product qty */
.product-qty {
  display: flex; align-items: center; gap: 0; margin-bottom: 1.5rem;
  border: 1.5px solid var(--border); border-radius: var(--radius);
  overflow: hidden; width: fit-content;
}
.qty-btn {
  width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  background: var(--surface); border: none; cursor: pointer; font-size: 1.125rem;
  color: var(--text); transition: background 0.2s; flex-shrink: 0;
}
.qty-btn:hover { background: var(--surface-dark); }
.qty-val {
  width: 50px; text-align: center; font-size: 1rem; font-weight: 600;
  color: var(--text); padding: 0 0.5rem;
}

/* Trust signals */
.product-trust {
  display: flex; flex-direction: column; gap: 0.625rem;
  padding-top: 1.5rem; margin-top: 1.5rem; border-top: 1px solid var(--border);
}
.product-trust__item {
  display: flex; align-items: center; gap: 0.625rem;
  font-size: 0.875rem; color: var(--muted);
}
.product-trust__item svg { color: var(--accent); flex-shrink: 0; }

/* Sticky ATC */
.sticky-atc {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 800;
  background: var(--background, rgba(250,247,242,.97));
  border-top: 1px solid var(--border);
  padding: 0.875rem 1.5rem; gap: 1rem; align-items: center;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
}
@media (max-width: 768px) {
  .sticky-atc { display: flex; transform: translateY(100%); transition: transform 0.3s var(--ease); }
  .sticky-atc.visible { display: flex; transform: translateY(0); }
}
.sticky-atc__info { flex: 1; min-width: 0; }
.sticky-atc__title { font-weight: 600; font-size: 0.9375rem; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky-atc__price { font-size: 1.0625rem; font-weight: 700; color: var(--primary); }

/* ── Reviews ───────────────────────────────────────────────── */
[data-section="reviews"] { background: var(--surface); }
.reviews-list { display: flex; flex-direction: column; gap: 1.25rem; margin-bottom: 3rem; }
.review-item {
  padding: 1.5rem; background: var(--background); border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}
.review-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.625rem; }
.review-author { font-weight: 700; font-size: 0.9375rem; }
.review-stars { color: var(--accent); }
.review-date { font-size: 0.8125rem; color: var(--muted); }
.review-title { font-weight: 600; margin-bottom: 0.375rem; }
.review-body { color: var(--text-body); font-size: 0.9375rem; line-height: 1.65; }
.review-form { background: var(--background); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2rem; }
.review-form h3 { font-size: 1.25rem; margin-bottom: 1.25rem; }
.rating-select { display: flex; gap: 0.375rem; margin-bottom: 1.25rem; }
.star-btn {
  background: none; border: none; font-size: 1.5rem; cursor: pointer;
  color: var(--muted-light); transition: color 0.15s; padding: 0;
}
.star-btn:hover, .star-btn.active { color: var(--accent); }

/* ── Cart Page ─────────────────────────────────────────────── */
[data-section="cart"] { padding: 3rem 0 5rem; }
.cart-page__title { font-size: clamp(1.75rem, 3vw, 2.25rem); margin-bottom: 2rem; }
.cart-layout {
  display: grid; grid-template-columns: 1fr 360px; gap: 3rem; align-items: start;
}
.cart-item {
  display: grid; grid-template-columns: 80px 1fr auto 120px 40px;
  align-items: center; gap: 1.25rem; padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}
.cart-item__img-wrap { width: 80px; height: 100px; border-radius: var(--radius); overflow: hidden; }
.cart-item__img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.cart-item__title { font-weight: 600; font-size: 0.9375rem; color: var(--text); text-decoration: none; }
.cart-item__title:hover { color: var(--primary); }
.cart-item__original { font-size: 0.875rem; color: var(--muted); text-decoration: line-through; display: block; }
.cart-item__price { font-weight: 700; color: var(--primary); }
.cart-item__qty {
  display: flex; align-items: center;
  border: 1.5px solid var(--border); border-radius: var(--radius); overflow: hidden;
}
.cart-item__qty .qty-btn { width: 36px; height: 36px; font-size: 1rem; }
.cart-item__qty .qty-val { width: 40px; font-size: 0.9375rem; }
.cart-item__line-total { font-weight: 700; font-size: 1rem; color: var(--text); text-align: right; }
.cart-item__remove {
  width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
  background: none; border: 1px solid var(--border); border-radius: var(--radius);
  color: var(--muted); cursor: pointer; transition: var(--transition);
}
.cart-item__remove:hover { background: #fee2e2; border-color: #fca5a5; color: #dc2626; }

/* Cart summary */
.cart-summary {
  background: var(--surface); border-radius: var(--radius-lg);
  padding: 2rem; border: 1px solid var(--border); position: sticky; top: 90px;
}
.cart-summary h2 { font-size: 1.25rem; margin-bottom: 1.5rem; }
.cart-summary__row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.625rem 0; font-size: 0.9375rem;
}
.cart-summary__row--discount { color: var(--secondary); }
.cart-summary__row--total {
  border-top: 2px solid var(--border); margin-top: 0.5rem;
  padding-top: 1.25rem; font-weight: 700; font-size: 1.125rem; color: var(--text);
}
.cart-summary .btn + .btn { margin-top: 0.75rem; }

/* ── Checkout ──────────────────────────────────────────────── */
[data-section="checkout"] { padding: 3rem 0 5rem; }
.checkout-page__header { margin-bottom: 2rem; }
.checkout-layout {
  display: grid; grid-template-columns: 1fr 380px; gap: 3rem; align-items: start;
}
.checkout-progress { margin-bottom: 2.5rem; }
.checkout-progress ol {
  display: flex; align-items: flex-start; max-width: 360px; list-style: none;
}
.checkout-progress__step {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  gap: 6px; position: relative; font-size: 0.8125rem; color: var(--muted);
}
.checkout-progress__step:not(:last-child)::after {
  content: ''; position: absolute; top: 13px; left: 50%; width: 100%; height: 2px;
  background: var(--border);
}
.checkout-progress__num {
  width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8125rem; font-weight: 700; background: var(--background);
  position: relative; z-index: 1;
}
.checkout-progress__label { white-space: nowrap; text-align: center; }
.checkout-progress__step--completed .checkout-progress__num {
  background: var(--primary); border-color: var(--primary); color: #fff;
}
.checkout-progress__step--completed::after { background: var(--primary); }
.checkout-progress__step--active .checkout-progress__num {
  border-color: var(--primary); color: var(--primary);
}
.checkout-progress__step--active { color: var(--primary); font-weight: 600; }
.checkout-form__section {
  background: var(--background); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.75rem; margin-bottom: 1.5rem;
}
.checkout-form__section h2 { font-size: 1.125rem; margin-bottom: 1.25rem; font-family: var(--font-sans); }
.form-row--2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.method-option {
  display: flex; align-items: center; gap: 1rem; padding: 1rem 1.25rem;
  border: 1.5px solid var(--border); border-radius: var(--radius);
  cursor: pointer; transition: border-color 0.2s, background 0.2s; margin-bottom: 0.625rem;
}
.method-option:last-child { margin-bottom: 0; }
.method-option:hover { border-color: var(--primary-light); }
.method-option--selected { border-color: var(--primary); background: rgba(61,44,114,0.04); }
.method-option input { flex-shrink: 0; accent-color: var(--primary); }
.method-option__info { flex: 1; }
.method-option__label { font-weight: 600; font-size: 0.9375rem; color: var(--text); }
.method-option__sub { font-size: 0.8125rem; color: var(--muted); margin-top: 0.125rem; }
.method-option__price { font-weight: 700; color: var(--primary); font-size: 0.9375rem; white-space: nowrap; }
.trust-signals {
  display: flex; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 1.5rem; padding: 1rem 0;
}
.trust-signals__item {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.8125rem; color: var(--muted);
}
.trust-signals__item svg { color: var(--accent); flex-shrink: 0; }
.checkout-note { font-size: 0.875rem; color: var(--muted); margin-bottom: 1.5rem; }

/* Checkout sidebar */
.checkout-sidebar { position: sticky; top: 90px; }
.checkout-sidebar__inner {
  background: var(--surface); border-radius: var(--radius-lg);
  padding: 1.75rem; border: 1px solid var(--border);
}
.checkout-sidebar__inner h2 { font-size: 1.125rem; margin-bottom: 1.5rem; font-family: var(--font-sans); }
.checkout-summary__items { margin-bottom: 1.25rem; }
.checkout-summary-item {
  display: flex; align-items: center; gap: 0.875rem; padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}
.checkout-summary-item:last-child { border-bottom: none; }
.checkout-summary-item img {
  width: 56px; height: 56px; border-radius: var(--radius); object-fit: cover;
  flex-shrink: 0;
}
.checkout-summary-item__info { flex: 1; min-width: 0; }
.checkout-summary-item__title { font-weight: 600; font-size: 0.875rem; }
.checkout-summary-item__qty { font-size: 0.8125rem; color: var(--muted); }
.checkout-summary-item__price { font-weight: 700; font-size: 0.9375rem; white-space: nowrap; }
.checkout-summary__divider { border: none; border-top: 1px solid var(--border); margin: 1rem 0; }
.checkout-summary__row {
  display: flex; justify-content: space-between; font-size: 1rem; font-weight: 700;
}

/* ── Empty States ──────────────────────────────────────────── */
.empty-state {
  text-align: center; padding: 5rem 2rem; max-width: 400px; margin: 0 auto;
}
.empty-state__icon {
  width: 80px; height: 80px; border-radius: 50%;
  background: var(--surface); display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.5rem; color: var(--muted);
}
.empty-state h2 { font-size: 1.5rem; margin-bottom: 0.75rem; }
.empty-state p { color: var(--muted); margin-bottom: 2rem; }

/* ── Wire:loading ──────────────────────────────────────────── */
[wire\:loading],
[wire\:loading\.delay],
[wire\:loading\.inline-block],
[wire\:loading\.inline] { display: none; }

/* ── Data List Grid Fix ────────────────────────────────────── */
[data-list],
[data-db-list] { display: contents; }
.categories__grid > div:only-child { display: contents; }
.products__grid > div:only-child { display: contents; }
.testimonials__grid > div:only-child { display: contents; }
.policies__grid > div:only-child { display: contents; }
.reviews-list > div:only-child { display: contents; }

/* ── Empty Image Fallback ──────────────────────────────────── */
img[src=""], img:not([src]) { display: none !important; }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; gap: 2rem; }
  .hero__visual { display: none; }
  .products__grid, .products__grid--wide { grid-template-columns: repeat(3, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .cart-layout { grid-template-columns: 1fr; }
  .checkout-layout { grid-template-columns: 1fr; }
  .checkout-sidebar { position: static; }
  .product-detail__layout { grid-template-columns: 1fr; }
  .product-gallery { position: static; }
}
@media (max-width: 768px) {
  section { padding: 3.5rem 0; }
  .nav__links { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; background: var(--background); padding: 1rem 1.5rem; box-shadow: 0 8px 24px rgba(0,0,0,0.12); border-bottom: 1px solid var(--border); z-index: 200; }
  .nav__links.active { display: flex; }
  .nav__links a { padding: 0.75rem 0; border-bottom: 1px solid var(--border-light); border-radius: 0; }
  .nav__toggle { display: flex; }
  .nav { position: relative; }
  .products__grid, .products__grid--wide { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .testimonials__grid { grid-template-columns: 1fr; }
  .policies__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .contact__inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero__stats { gap: 1.25rem; }
  .hero__stat strong { font-size: 1.4rem; }
  .section__header--flex { flex-direction: column; align-items: flex-start; }
  .cart-item { grid-template-columns: 72px 1fr 36px; grid-template-rows: auto auto; gap: 0.875rem; }
  .cart-item__line-total { grid-column: 2; }
  .hero-compact__inner { flex-direction: column; }
  .hero-compact__img { display: none; }
}
@media (max-width: 480px) {
  .products__grid, .products__grid--wide { grid-template-columns: repeat(2, 1fr); gap: 0.875rem; }
  .hero__float { display: none; }
}

/* ── Content Visibility (below-fold perf) ──────────────────── */
[data-section="categories"],
[data-section="testimonials"],
[data-section="faqs"],
[data-section="policies"] {
  content-visibility: auto;
  contain-intrinsic-size: auto 400px;
}

/* ── Reduced Motion ────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}

/* ===== MOTION — GSAP REPLACEMENT (CSS-native reveals) =====
   Resting state for every selector below is fully visible at rule level
   (no rule-level opacity:0 anywhere in this file) — a browser that supports
   neither prefers-reduced-motion nor view() timelines still renders full
   content. Everything past this point is additive polish only. */

@media (prefers-reduced-motion: no-preference) {

  @keyframes wbRevealUp {
    from { opacity: 0; transform: translateY(32px); }
    /* `to` intentionally omits `transform` — see
       les-filling-view-animation-outranks-hover-and-inline-transform.
       A filling animation's `to` frame is a PERMANENT declaration; writing
       `transform: translateY(0)` (or worse, `none`) here would out-rank
       every later `:hover` lift / JS tilt on the same element forever. */
    to { opacity: 1; }
  }
  @keyframes wbRevealUpSmall {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; }
  }
  @keyframes wbRevealLeft {
    from { opacity: 0; transform: translateX(-32px); }
    to { opacity: 1; }
  }
  @keyframes wbRevealRight {
    from { opacity: 0; transform: translateX(32px); }
    to { opacity: 1; }
  }

  /* ---- Page-load entrances (heroes never used ScrollTrigger — GSAP
     fired them once on DOMContentLoaded, so a wall-clock animation-delay
     reproduces them exactly) ---- */
  .hero__badge[data-reveal]    { animation: wbRevealUpSmall .6s cubic-bezier(.16,1,.3,1) .1s both; }
  .hero__prefix[data-reveal]   { animation: wbRevealUpSmall .6s cubic-bezier(.16,1,.3,1) .2s both; }
  .hero__title[data-reveal]    { animation: wbRevealUp .9s cubic-bezier(.16,1,.3,1) .3s both; }
  .hero__subtitle[data-reveal] { animation: wbRevealUpSmall .7s cubic-bezier(.16,1,.3,1) .5s both; }
  .hero__body[data-reveal]     { animation: wbRevealUpSmall .7s cubic-bezier(.16,1,.3,1) .6s both; }
  .hero__actions[data-reveal]  { animation: wbRevealUpSmall .6s cubic-bezier(.16,1,.3,1) .7s both; }
  .hero__stats[data-reveal]    { animation: wbRevealUpSmall .6s cubic-bezier(.16,1,.3,1) .8s both; }
  .hero__visual[data-reveal]   { animation: wbRevealRight 1s cubic-bezier(.16,1,.3,1) .35s both; }

  .hero-compact__prefix[data-reveal]   { animation: wbRevealUpSmall .5s cubic-bezier(.16,1,.3,1) both; }
  .hero-compact__title[data-reveal]    { animation: wbRevealUp .7s cubic-bezier(.16,1,.3,1) .1s both; }
  .hero-compact__subtitle[data-reveal] { animation: wbRevealUpSmall .6s cubic-bezier(.16,1,.3,1) .25s both; }
  .hero-compact__body[data-reveal]     { animation: wbRevealUpSmall .6s cubic-bezier(.16,1,.3,1) .35s both; }

  .product-gallery[data-reveal]      { animation: wbRevealLeft .75s cubic-bezier(.16,1,.3,1) both; }
  .product-detail__info[data-reveal] { animation: wbRevealRight .75s cubic-bezier(.16,1,.3,1) .1s both; }

  .cart-page__title[data-reveal] { animation: wbRevealUpSmall .55s cubic-bezier(.16,1,.3,1) both; }
  .checkout-page__header h1[data-reveal] { animation: wbRevealUpSmall .55s cubic-bezier(.16,1,.3,1) both; }
  .checkout-page__header p[data-reveal]  { animation: wbRevealUpSmall .55s cubic-bezier(.16,1,.3,1) .1s both; }

  /* .category-card lives inside .categories__scroll, which is a GENUINE
     horizontally-scrolling container (overflow-x: auto) — left un-clipped
     per the commerce doctrine. A view()-timeline on its children would
     measure against a scroll container that never moves in the block
     axis and permanently read progress 1. Reveal on page load with a
     short stagger instead of on scroll. */
  .category-card { animation: wbRevealUpSmall .5s cubic-bezier(.16,1,.3,1) both; }
  .category-card:nth-child(2) { animation-delay: .08s; }
  .category-card:nth-child(3) { animation-delay: .16s; }
  .category-card:nth-child(4) { animation-delay: .24s; }
  .category-card:nth-child(n+5) { animation-delay: .32s; }
}

/* ---- Scroll-driven reveals (replaces every ScrollTrigger tween) ----
   Scoped to browsers that both allow motion AND support scroll-driven
   animations; everywhere else the elements above are simply visible with
   no reveal, which is the correct fallback, not a regression. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {

    .section__title[data-reveal] {
      animation: wbRevealUp .7s cubic-bezier(.16,1,.3,1) both;
      animation-timeline: view();
      animation-range: entry 0% entry 60%;
    }

    /* `.product-card` (Featured / All Products / Related Products grids)
       is only ever used inside a `.reveal-grid`-wrapped CSS grid in this
       theme — never inside a horizontally-scrolling runway — so a
       view()-timeline reveal is always safe here. */
    .product-card {
      animation: wbRevealUp .65s cubic-bezier(.16,1,.3,1) both;
      animation-timeline: view();
      animation-range: entry 0% entry 62%;
    }
    .product-card:nth-child(2) { animation-range: entry 8% entry 70%; }
    .product-card:nth-child(3) { animation-range: entry 16% entry 78%; }
    .product-card:nth-child(4) { animation-range: entry 24% entry 86%; }
    .product-card:nth-child(n+5) { animation-range: entry 32% entry 94%; }

    .testimonial-card {
      animation: wbRevealUp .7s cubic-bezier(.16,1,.3,1) both;
      animation-timeline: view();
      animation-range: entry 0% entry 65%;
    }
    .testimonial-card:nth-child(2) { animation-range: entry 12% entry 77%; }
    .testimonial-card:nth-child(3) { animation-range: entry 24% entry 89%; }
    .testimonial-card:nth-child(n+4) { animation-range: entry 36% entry 100%; }

    .faq-item {
      animation: wbRevealLeft .5s cubic-bezier(.16,1,.3,1) both;
      animation-timeline: view();
      animation-range: entry 0% entry 65%;
    }
    .faq-item:nth-child(2) { animation-range: entry 7% entry 72%; }
    .faq-item:nth-child(3) { animation-range: entry 14% entry 79%; }
    .faq-item:nth-child(4) { animation-range: entry 21% entry 86%; }
    .faq-item:nth-child(n+5) { animation-range: entry 28% entry 93%; }

    .policy-card {
      animation: wbRevealUpSmall .55s cubic-bezier(.16,1,.3,1) both;
      animation-timeline: view();
      animation-range: entry 0% entry 68%;
    }
    .policy-card:nth-child(2) { animation-range: entry 9% entry 77%; }
    .policy-card:nth-child(3) { animation-range: entry 18% entry 86%; }
    .policy-card:nth-child(n+4) { animation-range: entry 27% entry 95%; }

    .contact__info[data-reveal] {
      animation: wbRevealLeft .75s cubic-bezier(.16,1,.3,1) both;
      animation-timeline: view();
      animation-range: entry 0% entry 65%;
    }
    .contact__form-wrap[data-reveal] {
      animation: wbRevealRight .75s cubic-bezier(.16,1,.3,1) both;
      animation-timeline: view();
      animation-range: entry 0% entry 65%;
    }

    .footer__grid > * {
      animation: wbRevealUpSmall .55s cubic-bezier(.16,1,.3,1) both;
      animation-timeline: view();
      animation-range: entry 0% entry 100%;
    }
    .footer__grid > *:nth-child(2) { animation-range: entry 10% entry 100%; }
    .footer__grid > *:nth-child(3) { animation-range: entry 20% entry 100%; }
    .footer__grid > *:nth-child(n+4) { animation-range: entry 30% entry 100%; }
  }
}


/* __wobooks-defensive__ — appended by HtmlZipThemeConverterV2.
   Hide images whose src resolves to empty (e.g. data-src-field bindings
   for Items / categories the owner hasn't uploaded a photo for yet).
   Without this rule, the browser shows the alt-text fallback —
   that's the bug behind the literal word 'image' showing in avatar
   slots and About images on the production Braise theme. */
img[src=""], img:not([src]) { display: none !important; }

/* 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([data-section="contact"]) .section__eyebrow--light { color: oklch(from var(--accent-light) 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. */
:root {
  --muted: #74687f; /* was #7a6e85 */
}

/* 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. */
:where([data-section="footer"]) p { color: oklch(from var(--text-body) max(l, 0.665) c h / alpha); }

/* 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. */
:where([data-section="categories"]) .section__eyebrow { color: oklch(from var(--accent) min(l, 0.524) c h / alpha); }
:where([data-section="products"]) .section__eyebrow { color: oklch(from var(--accent) min(l, 0.524) c h / alpha); }
:where([data-section="faqs"]) .section__eyebrow { color: oklch(from var(--accent) min(l, 0.524) c h / alpha); }
