/* ============================================================
   SOLID3D DESIGNS — Stylesheet
   Typography: Bricolage Grotesque (headings) + Young Serif (body)
   Palette: OKLCH warm cream + steel gray + brown accent
   ============================================================ */

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Colors */
  --bg:           oklch(96% 0.008 80);
  --bg-alt:       oklch(93% 0.012 75);
  --surface:      oklch(99% 0.004 80);
  --steel:        oklch(56% 0.018 220);
  --steel-light:  oklch(78% 0.014 220);
  --steel-dark:   oklch(38% 0.02 220);
  --brown:        oklch(48% 0.072 52);
  --brown-mid:    oklch(62% 0.055 52);
  --brown-light:  oklch(88% 0.032 55);
  --brown-xlight: oklch(94% 0.016 60);
  --text:         oklch(18% 0.012 45);
  --text-muted:   oklch(54% 0.018 45);
  --text-subtle:  oklch(70% 0.012 45);
  --border:       oklch(88% 0.012 80);
  --border-strong:oklch(78% 0.018 75);

  /* Type */
  --font-display: 'Bricolage Grotesque', system-ui, sans-serif;
  --font-body:    'Young Serif', Georgia, serif;

  /* Spacing (4pt scale) */
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  24px;
  --space-6:  32px;
  --space-7:  48px;
  --space-8:  64px;
  --space-9:  96px;
  --space-10: 128px;

  /* Layout */
  --max-w:    1280px;
  --nav-h:    88px;

  /* Motion */
  --ease-premium: cubic-bezier(0.32, 0.72, 0, 1);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  font-synthesis: none;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul { list-style: none; }

/* ── Shared Helpers ───────────────────────────────────────── */
.section-eyebrow {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brown-mid);
  margin-bottom: var(--space-3);
}

.section-heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  line-height: 1.1;
  color: var(--text);
  letter-spacing: -0.02em;
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 14px 28px;
  border-radius: 4px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background-color 180ms ease-out, color 180ms ease-out, border-color 180ms ease-out, transform 150ms ease-out;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

/* Ripple element injected by JS */
.btn .ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  animation: ripple-expand 550ms cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
  background-color: oklch(100% 0 0 / 0.28);
}
@keyframes ripple-expand {
  to { transform: scale(4); opacity: 0; }
}

.btn--primary {
  background-color: var(--brown);
  color: oklch(97% 0.006 70);
  border-color: var(--brown);
}
.btn--primary:hover {
  background-color: var(--steel-dark);
  border-color: var(--steel-dark);
  transform: translateY(-1px);
}
.btn--primary:active { transform: translateY(0); }

.btn--ghost {
  background-color: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn--ghost:hover {
  background-color: var(--brown-xlight);
  border-color: var(--brown-mid);
  color: var(--brown);
}
.btn--ghost:active {
  background-color: var(--brown-light);
  transform: translateY(0);
}

/* ── Pill button variant ──────────────────────────────────── */
.btn--pill {
  border-radius: 100px;
  padding: 14px 24px 14px 28px;
}
.btn--ghost.btn--pill {
  padding: 14px 28px;
}

/* Arrow circle nested inside primary pill button */
.btn__arrow-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: oklch(100% 0 0 / 0.18);
  font-size: 0.875rem;
  line-height: 1;
  flex-shrink: 0;
  transition: transform 220ms var(--ease-premium), background-color 220ms var(--ease-premium);
}
.btn--primary:hover .btn__arrow-wrap {
  transform: translate(2px, -2px);
  background: oklch(100% 0 0 / 0.28);
}

/* ── Navigation ───────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 20px var(--space-6) 0;
  pointer-events: none;
}

.nav__inner {
  pointer-events: all;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  padding: 10px 20px 10px 16px;
  border-radius: 100px;
  background: oklch(97% 0.006 80 / 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid oklch(89% 0.01 80 / 0.7);
  box-shadow: 0 2px 12px oklch(18% 0.012 45 / 0.06);
  width: 100%;
  max-width: calc(var(--max-w) - var(--space-9));
  transition:
    background-color 350ms var(--ease-premium),
    border-color 350ms var(--ease-premium),
    box-shadow 350ms var(--ease-premium);
}

.nav.scrolled .nav__inner {
  background: oklch(98.5% 0.004 80 / 0.94);
  border-color: var(--border-strong);
  box-shadow: 0 4px 24px oklch(18% 0.012 45 / 0.1), 0 1px 0 oklch(100% 0 0 / 0.5) inset;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--steel);
  text-decoration: none;
  flex-shrink: 0;
}
.nav__logo:hover { color: var(--steel-dark); }

/* Filament flows through the tube on logo hover — on-brand micro-delight */
@keyframes filament-flow {
  from { stroke-dashoffset: 0; }
  to   { stroke-dashoffset: -8; }
}
.nav__logo:hover .nav__logo-icon path {
  animation: filament-flow 0.7s linear infinite;
}

.nav__logo-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: block;
  object-fit: contain;
}

.nav__logo-text {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text);
}

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

.nav__link {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 150ms ease;
  letter-spacing: 0.01em;
}
.nav__link:hover { color: var(--text); }

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

.nav__cart-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
  color: var(--text);
  transition: color 150ms ease;
  border-radius: 4px;
}
.nav__cart-btn:hover { color: var(--brown); }
.nav__cart-btn svg { width: 22px; height: 22px; }

.nav__cart-count {
  position: absolute;
  top: 0;
  right: 0;
  background-color: var(--brown);
  color: oklch(99% 0.004 80);
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translate(2px, -2px) scale(0.6);
  opacity: 0;
  transition: opacity 220ms cubic-bezier(0.22, 1, 0.36, 1), transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}
.nav__cart-count.visible {
  opacity: 1;
  transform: translate(2px, -2px) scale(1);
}

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
}
.nav__burger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background-color: var(--text);
  transition: transform 250ms ease, opacity 250ms ease;
  transform-origin: center;
}
.nav__burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav__burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── Mobile Nav Overlay ────────────────────────────────────── */
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  background-color: var(--surface);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-6);
  opacity: 0;
  pointer-events: none;
  transition: opacity 250ms ease;
}
.mobile-nav-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-nav-link {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  transition: color 150ms ease;
}
.mobile-nav-link:hover { color: var(--brown); }

/* ── Hero badge dot ───────────────────────────────────────── */
.hero__badge-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--brown-mid);
  flex-shrink: 0;
  position: relative;
}
.hero__badge-dot::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1.5px solid var(--brown-mid);
  opacity: 0;
  animation: badge-pulse 2.4s cubic-bezier(0.22, 1, 0.36, 1) 1.5s infinite;
}
@keyframes badge-pulse {
  0%   { transform: scale(0.7); opacity: 0.5; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  min-height: 100svh;
  padding-top: var(--nav-h);
  max-width: var(--max-w);
  margin: 0 auto;
  padding-left: var(--space-6);
  padding-right: var(--space-6);
  display: grid;
  grid-template-columns: 55fr 45fr;
  align-items: center;
  gap: var(--space-8);
  position: relative;
  overflow: hidden;
}

/* Grain texture layer */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.032;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 240px 240px;
}

/* Large editorial watermark behind content */
.hero::after {
  content: 'SOLID3D';
  position: absolute;
  right: -3%;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-size: clamp(7rem, 20vw, 20rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
  color: var(--border);
  pointer-events: none;
  user-select: none;
  z-index: 0;
  white-space: nowrap;
}

/* Hero children above the pseudo-elements */
.hero > * {
  position: relative;
  z-index: 1;
}

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

.animate-child {
  opacity: 0;
  animation: fadeUp 700ms var(--ease-premium) forwards;
  animation-delay: calc(var(--i) * 90ms + 200ms);
}

.hero__eyebrow {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brown-mid);
  margin-bottom: var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.hero__eyebrow::before {
  content: '';
  display: block;
  width: 0;
  height: 1px;
  background-color: var(--brown-mid);
  animation: line-draw 500ms cubic-bezier(0.22, 1, 0.36, 1) 700ms forwards;
}
@keyframes line-draw {
  to { width: 28px; }
}

.hero__heading {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3.5rem, 9vw, 7.5rem);
  line-height: 0.94;
  letter-spacing: -0.04em;
  color: var(--text);
  margin-bottom: var(--space-5);
}
.hero__heading em {
  font-style: normal;
  color: var(--steel);
  position: relative;
  display: inline-block;
}
/* Underline draws itself in after the heading appears */
.hero__heading em::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  height: 3px;
  width: 0;
  background-color: var(--brown-mid);
  border-radius: 2px;
  animation: underline-draw 700ms cubic-bezier(0.22, 1, 0.36, 1) 1050ms forwards;
}
@keyframes underline-draw {
  to { width: 100%; }
}

.hero__sub {
  font-size: 1.0625rem;
  color: var(--text-muted);
  max-width: 42ch;
  line-height: 1.65;
  margin-bottom: var(--space-6);
}

.hero__ctas {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.hero__visual {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  align-items: flex-end;
}

/* Double-bezel outer shell for hero image */
.hero__img-frame {
  width: 100%;
  max-width: 480px;
  padding: 8px;
  background: oklch(89% 0.012 80 / 0.5);
  border: 1px solid oklch(84% 0.014 78 / 0.6);
  border-radius: 18px;
  box-shadow: 0 8px 40px oklch(18% 0.012 45 / 0.08), 0 1px 0 oklch(100% 0 0 / 0.5) inset;
}

.hero__img-placeholder {
  width: 100%;
  aspect-ratio: 4/5;
  background-color: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 11px;
  box-shadow: 0 2px 8px oklch(18% 0.012 45 / 0.06) inset;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.hero__img-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  color: var(--steel-light);
  text-align: center;
}
.hero__img-inner svg {
  width: 48px;
  height: 48px;
  opacity: 0.5;
}
.hero__img-inner span {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--text-subtle);
  line-height: 1.5;
}

.hero__tag {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-3) var(--space-5);
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  width: fit-content;
  max-width: 480px;
}

.hero__tag-price {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--brown);
  padding-right: var(--space-4);
  border-right: 1px solid var(--border-strong);
}

.hero__tag-label {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* ── Products ─────────────────────────────────────────────── */
.products {
  padding: var(--space-9) var(--space-6);
  max-width: var(--max-w);
  margin: 0 auto;
}

.products__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-5);
  margin-bottom: var(--space-7);
  flex-wrap: wrap;
}

.products__header-note {
  font-family: var(--font-display);
  font-size: 0.875rem;
  color: var(--text-subtle);
  max-width: 28ch;
  text-align: right;
  line-height: 1.4;
}

.products__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-5);
}

/* Product Card */
.product-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  contain: layout style;
}
.product-card:hover {
  border-color: var(--border-strong);
}

.product-card__img {
  aspect-ratio: 1 / 1;
  background-color: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: var(--space-3);
  color: var(--steel-light);
  overflow: hidden;
  position: relative;
}

/* Shimmer sweep on hover over placeholder */
.product-card__img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    transparent 25%,
    oklch(99% 0.004 80 / 0.55) 45%,
    oklch(99% 0.004 80 / 0.55) 55%,
    transparent 75%
  );
  transform: translateX(-100%);
  transition: none;
  pointer-events: none;
}
.product-card:hover .product-card__img::after {
  transform: translateX(100%);
  transition: transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* Real image zoom on hover */
.product-card__img img {
  transition: transform 550ms cubic-bezier(0.22, 1, 0.36, 1);
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-card:hover .product-card__img img {
  transform: scale(1.06);
}
.product-card__img svg {
  width: 40px;
  height: 40px;
  opacity: 0.4;
}
.product-card__img span {
  font-family: var(--font-display);
  font-size: 0.75rem;
  color: var(--text-subtle);
  text-align: center;
  line-height: 1.4;
}

.product-card__body {
  padding: var(--space-5);
}

.product-card__material {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: var(--space-2);
}

.product-card__name {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: var(--space-2);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.product-card__desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: var(--space-4);
}

.product-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.product-card__price {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--brown);
}

.product-card__add {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 4px;
  border: 1.5px solid var(--border-strong);
  background: none;
  color: var(--text);
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}
.product-card__add:hover {
  background-color: var(--brown);
  border-color: var(--brown);
  color: oklch(99% 0.004 80);
}
.product-card__add:active {
  filter: brightness(0.88);
}
.product-card__add:disabled {
  opacity: 0.52;
  cursor: default;
  pointer-events: none;
}

/* ── Craft ─────────────────────────────────────────────────── */
.craft {
  background-color: var(--bg-alt);
  padding: var(--space-10) var(--space-6);
  margin-top: var(--space-8);
  content-visibility: auto;
  contain-intrinsic-size: auto 700px;
}

.craft__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-10);
  align-items: center;
}

.craft__img-placeholder {
  width: 100%;
  aspect-ratio: 4 / 5;
  background-color: oklch(90% 0.015 75);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  color: var(--steel);
  border: 1px solid var(--border);
}
.craft__img-placeholder svg {
  width: 72px;
  height: 72px;
  opacity: 0.45;
}
.craft__img-placeholder span {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  color: var(--text-subtle);
  text-align: center;
  line-height: 1.5;
}

.craft__copy .section-heading {
  margin-bottom: var(--space-5);
}

.craft__body {
  color: var(--text-muted);
  font-size: 1.0625rem;
  line-height: 1.7;
  max-width: 52ch;
  margin-bottom: var(--space-6);
}

.craft__quote {
  font-size: 1.25rem;
  font-style: italic;
  color: var(--steel-dark);
  line-height: 1.5;
  padding: var(--space-5) 0;
  border-top: 1px solid var(--border-strong);
  border-bottom: 1px solid var(--border-strong);
  margin-bottom: var(--space-6);
  max-width: 46ch;
}

.craft__facts {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.craft__facts li {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding: var(--space-4) 0;
}
.craft__facts li + li {
  border-top: 1px solid var(--border);
}
.craft__facts li:first-child {
  padding-top: 0;
}
.craft__facts strong {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
}
.craft__facts span {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ── Value Props ──────────────────────────────────────────── */
.props {
  padding: var(--space-9) var(--space-6);
  max-width: var(--max-w);
  margin: 0 auto;
}

.props__inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-7);
}

.props__item {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.props__num {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--steel-light);
  line-height: 1;
  letter-spacing: -0.04em;
  user-select: none;
}

.props__title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
  margin-bottom: var(--space-2);
}

.props__body {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 34ch;
}

/* ── About ─────────────────────────────────────────────────── */
.about {
  background-color: var(--bg-alt);
  padding: var(--space-10) var(--space-6);
  content-visibility: auto;
  contain-intrinsic-size: auto 500px;
}

.about__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-10);
  align-items: center;
}

.about__photo {
  flex-shrink: 0;
}

.about__photo-placeholder {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background-color: oklch(90% 0.015 75);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  color: var(--steel);
}
.about__photo-placeholder svg { width: 48px; height: 48px; opacity: 0.4; }
.about__photo-placeholder span {
  font-family: var(--font-display);
  font-size: 0.7rem;
  color: var(--text-subtle);
  text-align: center;
  line-height: 1.4;
}

.about__copy .section-heading {
  margin-bottom: var(--space-5);
}

.about__copy p {
  font-size: 1.0625rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 58ch;
  margin-bottom: var(--space-4);
}

.about__cta { margin-top: var(--space-3); }

/* ── Footer ───────────────────────────────────────────────── */
.footer {
  background-color: oklch(22% 0.012 45);
  color: oklch(80% 0.012 60);
  padding: var(--space-9) var(--space-6) var(--space-6);
}

.footer__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-8);
  padding-bottom: var(--space-7);
  border-bottom: 1px solid oklch(35% 0.01 45);
}

.footer .nav__logo { color: oklch(65% 0.016 220); }
.footer .nav__logo:hover { color: oklch(78% 0.016 220); }
.footer .nav__logo-text { color: oklch(90% 0.006 70); }

.footer__tagline {
  font-family: var(--font-display);
  font-size: 0.875rem;
  color: oklch(58% 0.014 55);
  margin-top: var(--space-4);
  line-height: 1.6;
}

.footer__col-title {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: oklch(55% 0.014 55);
  margin-bottom: var(--space-4);
}

.footer__links, .footer__contact {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer__links a, .footer__contact a {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  color: oklch(72% 0.012 60);
  transition: color 150ms ease;
}
.footer__links a:hover, .footer__contact a:hover {
  color: oklch(90% 0.018 70);
}

.footer__contact-note {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  color: oklch(48% 0.01 55);
  margin-top: var(--space-2);
  line-height: 1.5;
  max-width: 28ch;
}

.footer__bottom {
  max-width: var(--max-w);
  margin: var(--space-6) auto 0;
  font-family: var(--font-display);
  font-size: 0.8125rem;
  color: oklch(45% 0.01 55);
}

/* ── Cart Sidebar ─────────────────────────────────────────── */
.cart-overlay {
  position: fixed;
  inset: 0;
  z-index: 199;
  background-color: oklch(18% 0.012 45 / 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms ease;
}
.cart-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.cart {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  width: 100%;
  max-width: 420px;
  background-color: var(--surface);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: -8px 0 32px oklch(18% 0.012 45 / 0.12);
}
.cart.open {
  transform: translateX(0);
}

.cart__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-5) var(--space-6);
  border-bottom: 1px solid var(--border);
}

.cart__title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

.cart__close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  padding: var(--space-2);
  border-radius: 4px;
  transition: color 150ms ease, background-color 150ms ease;
  display: flex;
}
.cart__close:hover { color: var(--text); background-color: var(--bg); }
.cart__close svg { width: 20px; height: 20px; }

.cart__body {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-5) var(--space-6);
}

.cart__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  height: 100%;
  min-height: 200px;
  color: var(--text-subtle);
  text-align: center;
}
.cart__empty svg { width: 48px; height: 48px; opacity: 0.3; }
.cart__empty p {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.cart__browse-btn {
  font-size: 0.8125rem;
  padding: 10px 20px;
}

.cart__items {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

/* Cart item */
.cart-item {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: var(--space-4);
  align-items: start;
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--border);
}

.cart-item__img {
  width: 56px;
  height: 56px;
  border-radius: 4px;
  background-color: var(--bg-alt);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--steel-light);
}
.cart-item__img svg { width: 24px; height: 24px; opacity: 0.5; }

.cart-item__name {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: var(--space-1);
}

.cart-item__color {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.775rem;
  color: var(--steel);
  margin-bottom: var(--space-1);
}

.cart-item__color-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid oklch(0% 0 0 / 0.12);
  flex-shrink: 0;
}

.cart-item__price {
  font-family: var(--font-display);
  font-size: 0.875rem;
  color: var(--brown);
  margin-bottom: var(--space-3);
}

.cart-item__qty {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.cart-item__qty-btn {
  width: 28px;
  height: 28px;
  border: 1px solid var(--border-strong);
  background: none;
  border-radius: 4px;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 150ms ease;
  line-height: 1;
}
.cart-item__qty-btn:hover { background-color: var(--bg); }

.cart-item__qty-val {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
  min-width: 20px;
  text-align: center;
}

.cart-item__remove {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-subtle);
  padding: var(--space-1);
  transition: color 150ms ease;
  font-size: 1.25rem;
  line-height: 1;
}
.cart-item__remove:hover { color: oklch(50% 0.15 27); }

.cart__footer {
  padding: var(--space-5) var(--space-6) var(--space-6);
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.cart__subtotal {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cart__subtotal span:first-child {
  font-family: var(--font-display);
  font-size: 0.875rem;
  color: var(--text-muted);
}
.cart__subtotal span:last-child {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
}

.cart__note {
  font-family: var(--font-display);
  font-size: 0.75rem;
  color: var(--text-subtle);
}

.cart__checkout {
  width: 100%;
  justify-content: center;
  padding: 15px;
  font-size: 0.9375rem;
}

/* ── Scroll Reveal ───────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity  700ms var(--ease-premium),
    transform 700ms var(--ease-premium);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Reduced Motion ──────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .animate-child { opacity: 1; animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  :root { --space-6: 24px; }

  .craft__inner { gap: var(--space-8); }
  .about__inner { gap: var(--space-7); }

  .footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6);
  }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  :root { --space-6: 20px; }

  /* Nav — pill collapses to compact on mobile */
  .nav {
    padding: 12px var(--space-4) 0;
  }
  .nav__inner {
    padding: 8px 14px 8px 14px;
    max-width: 100%;
  }
  .nav__links { display: none; }
  .nav__burger { display: flex; }

  /* Hero */
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: calc(var(--nav-h) + var(--space-6));
    padding-bottom: var(--space-9);
    gap: var(--space-7);
  }
  .hero__visual { align-items: stretch; }
  .hero__img-frame { max-width: 100%; }
  .hero__img-placeholder { max-width: 100%; }
  .hero__tag { max-width: 100%; width: 100%; border-radius: 12px; }

  /* Products */
  .products__header { flex-direction: column; align-items: flex-start; }
  .products__header-note { text-align: left; max-width: 100%; }

  /* Craft */
  .craft { padding: var(--space-9) var(--space-6); }
  .craft__inner { grid-template-columns: 1fr; gap: var(--space-7); }
  .craft__media { order: 2; }
  .craft__copy { order: 1; }

  /* Props */
  .props__inner { grid-template-columns: 1fr; gap: var(--space-6); }

  /* About */
  .about__inner { grid-template-columns: 1fr; gap: var(--space-6); }
  .about__photo { display: flex; justify-content: center; }

  /* Footer */
  .footer__inner { grid-template-columns: 1fr; gap: var(--space-6); }
  .footer__brand { grid-column: auto; }
}

@media (max-width: 480px) {
  .hero__ctas { flex-direction: column; align-items: stretch; }
  .hero__ctas .btn { justify-content: center; }
  .cart { max-width: 100%; }
}

/* ── Announcement Bar ────────────────────────────────────── */
.announcement-bar {
  background: var(--brown);
  color: oklch(98% 0.005 60);
  text-align: center;
  padding: 10px var(--space-4);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.4;
}
.announcement-bar[hidden] { display: none; }

/* ── Scroll Progress Bar ─────────────────────────────────── */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background-color: var(--brown);
  z-index: 999;
  pointer-events: none;
  transform-origin: left center;
  transition: width 80ms linear;
}

/* ── Marquee ──────────────────────────────────────────────── */
.marquee-strip {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 13px 0;
  background-color: var(--surface);
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  width: max-content;
  animation: marquee-scroll 36s linear infinite;
}

.marquee-track span {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}

.marquee-sep {
  color: var(--brown-mid) !important;
  font-size: 0.9rem !important;
  letter-spacing: 0 !important;
}

/* ── Stats Strip ─────────────────────────────────────────── */
.stats {
  padding: var(--space-8) var(--space-6);
  background-color: var(--bg-alt);
}

.stats__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 0;
}

.stats__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-5);
  text-align: center;
}

.stats__num-wrap {
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.stats__num {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.stats__suffix {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2vw, 1.5rem);
  font-weight: 600;
  color: var(--brown-mid);
  letter-spacing: -0.02em;
}

.stats__label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-subtle);
}

.stats__divider {
  width: 1px;
  height: 48px;
  background-color: var(--border-strong);
  align-self: center;
  flex-shrink: 0;
}

/* ── Hero Float Animation ────────────────────────────────── */
@keyframes float-bob {
  0%, 100% { transform: translateY(0px);   }
  33%       { transform: translateY(-10px); }
  66%       { transform: translateY(-4px);  }
}

.hero__img-frame {
  animation: float-bob 5s ease-in-out infinite;
  will-change: transform;
}

/* ── Product Card Tilt (set by JS) ───────────────────────── */
.product-card {
  transform:
    perspective(900px)
    rotateY(calc(var(--card-rx, 0) * 1deg))
    rotateX(calc(var(--card-ry, 0) * 1deg));
  /* will-change is set/removed by JS only during active tilt — not statically */
  transition: transform 120ms ease-out, border-color 200ms ease-out, opacity 250ms ease-out;
}

.product-card.is-tilting {
  transition: transform 80ms ease-out, border-color 200ms ease-out;
}

/* ── Staggered Card Entrance ─────────────────────────────── */
.product-card.card-reveal {
  opacity: 0;
  transform: perspective(900px) translateY(30px) rotateX(4deg);
}

.product-card.card-reveal.visible {
  opacity: 1;
  transform: perspective(900px) translateY(0) rotateX(0deg);
  transition:
    opacity 600ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── Marquee pause on hover ──────────────────────────────── */
.marquee-strip:hover .marquee-track {
  animation-play-state: paused;
}

/* ── Stats responsive ────────────────────────────────────── */
@media (max-width: 768px) {
  .stats__inner {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    gap: var(--space-2);
  }
  .stats__divider { display: none; }
  .stats__item { padding: var(--space-4); }
}

@media (max-width: 480px) {
  .stats__inner { grid-template-columns: 1fr 1fr; }
}

/* ── Polish Pass ─────────────────────────────────────────── */

/* ① Focus ring — keyboard accessibility */
:focus-visible {
  outline: 2px solid var(--brown);
  outline-offset: 3px;
  border-radius: 2px;
}
:focus:not(:focus-visible) {
  outline: none;
}
/* Dark footer needs a lighter ring for contrast */
.footer :focus-visible {
  outline-color: var(--brown-light);
}
/* Cart sidebar uses light surface — brand ring works fine */

/* ② Touch targets — WCAG 2.5.5 */
.product-card__add {
  min-height: 44px;
  touch-action: manipulation;
}
.btn {
  touch-action: manipulation;
}
.cart-item__qty-btn {
  min-width: 36px;
  min-height: 36px;
  touch-action: manipulation;
}
.nav__cart-btn,
.nav__burger,
.cart__close {
  touch-action: manipulation;
}

/* ③ Reveal stagger — transition-delay via CSS custom property */
.reveal {
  transition-delay: var(--reveal-delay, 0ms);
}

/* Props items stagger */
.props__inner > :nth-child(1) { --reveal-delay: 0ms;   }
.props__inner > :nth-child(2) { --reveal-delay: 120ms; }
.props__inner > :nth-child(3) { --reveal-delay: 240ms; }

/* Stats items stagger (items are at positions 1, 3, 5, 7 — dividers at 2, 4, 6) */
.stats__inner > :nth-child(1) { --reveal-delay: 0ms;   }
.stats__inner > :nth-child(3) { --reveal-delay: 120ms; }
.stats__inner > :nth-child(5) { --reveal-delay: 240ms; }
.stats__inner > :nth-child(7) { --reveal-delay: 360ms; }

/* Craft facts stagger */
.craft__facts li:nth-child(1) { --reveal-delay: 0ms;   }
.craft__facts li:nth-child(2) { --reveal-delay: 80ms;  }
.craft__facts li:nth-child(3) { --reveal-delay: 160ms; }

/* ④ About section — remove orphaned margin before CTA button */
.about__copy p:last-of-type {
  margin-bottom: 0;
}

/* ⑤ Section scroll anchors — offset for sticky nav */
#products, #craft, #about, #contact {
  scroll-margin-top: calc(var(--nav-h) + 8px);
}

/* ⑥ Cart footer flex-direction already column; ensure it stacks cleanly */
.cart__footer {
  flex-direction: column;
}

/* ⑦ Improve btn--primary active state (don't override translateY from hover) */
.btn--primary:focus-visible {
  outline-offset: 3px;
}

/* ⑧ Marquee — ensure no flash on first paint */
.marquee-track {
  animation-fill-mode: both;
}

/* ⑨ Smooth scroll — only for users who haven't set reduced motion */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; }
  .hero__img-placeholder { animation: none; }
  .hero__img-frame { animation: none; }
  .hero__heading em::after { animation: none; width: 100%; }
  .hero__eyebrow::before { animation: none; width: 28px; }
  .hero__badge-dot::after { animation: none; opacity: 0; }
  .hero__tag-price { animation: none; opacity: 1; }
  .about__photo-placeholder { animation: none; box-shadow: none; }
  .cart__empty svg { animation: none; }
  .props__num { transition: none; }
}

/* ── Design & UI Skills Enhancement Pass ─────────────────── */

/* ① Disable 3D card tilt on touch devices — doesn't work and causes jank */
@media (hover: none) {
  .product-card {
    transform: none !important;
    transition: border-color 200ms ease-out !important;
  }
}

/* ② Hero watermark hidden on mobile (too large, breaks layout) */
@media (max-width: 768px) {
  .hero::after { display: none; }
}

/* ③ Stats number pulse when count-up completes */
@keyframes count-pulse {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.08); }
  100% { transform: scale(1); }
}
.stats__num.counted {
  animation: count-pulse 400ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* ④ Nav: active link indicator — underline slides in on current section */
.nav__link {
  padding-bottom: 3px;
}
.nav__link::after {
  content: '';
  display: block;
  height: 1.5px;
  width: 0;
  background-color: var(--brown-mid);
  transition: width 250ms cubic-bezier(0.22, 1, 0.36, 1);
  border-radius: 1px;
  margin-top: 2px;
}
.nav__link:hover::after,
.nav__link.active::after {
  width: 100%;
}
.nav__link.active {
  color: var(--text);
}

/* ⑤ Section eyebrows — decorative dot accent before text */
.craft__copy .section-eyebrow::before,
.about__copy .section-eyebrow::before,
.products .section-eyebrow::before {
  content: '·';
  margin-right: var(--space-2);
  color: var(--brown);
  font-size: 1.1rem;
}

/* ⑥ Craft facts — numbered markers for visual hierarchy */
.craft__facts li {
  counter-increment: fact-counter;
  padding-left: var(--space-6);
  position: relative;
}
.craft__facts {
  counter-reset: fact-counter;
}
.craft__facts li::before {
  content: '0' counter(fact-counter);
  position: absolute;
  left: 0;
  top: var(--space-4);
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--steel-light);
}
.craft__facts li:first-child::before { top: 0; }

/* ⑦ Product section — subtle category pill on each card */
.product-card:hover .product-card__body {
  background-color: var(--surface);
}

/* ⑧ Hero tag enhancement — pulse the price softly */
@keyframes price-breathe {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.78; }
}
.hero__tag-price {
  animation: price-breathe 3s ease-in-out 3s infinite;
}

/* ⑨ Cart empty state — make it more welcoming */
.cart__empty svg {
  animation: float-bob 4s ease-in-out infinite;
}

/* ⑩ Cart items — no entrance animation: renderCart() replaces innerHTML on every
      quantity change so replaying would be jarring on an already-open cart */

/* ⑪ Footer: subtle hover reveal on contact links */
.footer__contact a,
.footer__links a {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}
.footer__contact a::after,
.footer__links a::after {
  content: '→';
  font-size: 0.75rem;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 200ms ease, transform 200ms ease;
}
.footer__contact a:hover::after,
.footer__links a:hover::after {
  opacity: 1;
  transform: translateX(0);
}

/* ⑫ Props section: number changes color when item is visible */
.props__item.visible .props__num {
  color: var(--brown-light);
  transition: color 500ms ease;
}

/* ⑬ About photo placeholder: slow pulse ring */
@keyframes ring-pulse {
  0%, 100% { box-shadow: 0 0 0 0 oklch(62% 0.055 52 / 0.2); }
  50%       { box-shadow: 0 0 0 12px oklch(62% 0.055 52 / 0); }
}
.about__photo-placeholder {
  animation: ring-pulse 3.5s ease-in-out infinite;
}

/* ⑭ Marquee: alternate items use slightly different styling for rhythm */
.marquee-sep {
  color: var(--brown-mid) !important;
  font-size: 1rem !important;
  letter-spacing: 0 !important;
  opacity: 0.6;
}

/* ⑮ Section transitions: subtle top border on bg-alt sections */
.craft,
.about,
.stats {
  position: relative;
}
.craft::before,
.about::before {
  content: '';
  position: absolute;
  top: 0;
  left: var(--space-6);
  right: var(--space-6);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-strong) 30%, var(--border-strong) 70%, transparent);
  pointer-events: none;
}

/* ⑯ Products: grid hover — dim other cards when one is hovered */
.products__grid:has(.product-card:hover) .product-card:not(:hover) {
  opacity: 0.75;
}
/* transition is defined once on .product-card — no need to repeat here */

/* ══════════════════════════════════════════════════════════════
   INTERACTIVE ADDITIONS
   ══════════════════════════════════════════════════════════════ */

/* ── Product Filter Pills ────────────────────────────────────── */
.products__filters {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
  flex-wrap: wrap;
}

.filter-pill {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 8px 18px;
  border-radius: 100px;
  border: 1.5px solid var(--border-strong);
  background: none;
  color: var(--text-muted);
  cursor: pointer;
  transition:
    background-color 200ms var(--ease-premium),
    border-color 200ms var(--ease-premium),
    color 200ms var(--ease-premium),
    transform 150ms var(--ease-premium);
  touch-action: manipulation;
}
.filter-pill:hover {
  border-color: var(--brown-mid);
  color: var(--brown);
  background: var(--brown-xlight);
}
.filter-pill.active {
  background: var(--brown);
  border-color: var(--brown);
  color: oklch(99% 0.004 80);
}
.filter-pill.active:hover { background: var(--steel-dark); border-color: var(--steel-dark); }

/* ── Product Card Quick-View ─────────────────────────────────── */
.product-card__qv-btn {
  position: absolute;
  bottom: var(--space-3);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  opacity: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 100px;
  border: none;
  background: oklch(18% 0.012 45 / 0.88);
  color: oklch(97% 0.004 80);
  cursor: pointer;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition:
    opacity 220ms var(--ease-premium),
    transform 220ms var(--ease-premium);
}
.product-card__qv-btn svg { width: 14px; height: 14px; }

.product-card:hover .product-card__qv-btn,
.product-card:focus-within .product-card__qv-btn {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── Product Card Color Swatches ─────────────────────────────── */
.product-card__swatches {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.color-swatch {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: var(--swatch, #F0EDE8);
  border: 2px solid transparent;
  box-shadow: 0 0 0 1.5px oklch(70% 0.012 45 / 0.35);
  cursor: pointer;
  transition:
    transform 200ms var(--ease-premium),
    box-shadow 200ms var(--ease-premium);
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: manipulation;
  position: relative;
}
.color-swatch:hover { transform: scale(1.15); }
.color-swatch.active {
  box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--brown-mid);
  transform: scale(1.1);
}
.swatch-check {
  width: 8px;
  height: 8px;
  stroke: oklch(99% 0.004 80);
  pointer-events: none;
}
/* Dark swatch needs dark check */
.color-swatch[style*="2C2C2C"] .swatch-check { stroke: oklch(95% 0.004 80); }

.products__empty {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  color: var(--text-subtle);
  text-align: center;
  padding: var(--space-8) 0;
  grid-column: 1 / -1;
}

/* ── Quick-View Panel ────────────────────────────────────────── */
.qv-overlay {
  position: fixed;
  inset: 0;
  z-index: 210;
  background: oklch(18% 0.012 45 / 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 350ms var(--ease-premium);
}
.qv-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.qv-panel {
  position: fixed;
  z-index: 220;
  background: var(--surface);
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  pointer-events: none;

  /* Desktop: centered modal */
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.94);
  opacity: 0;
  width: min(880px, 90vw);
  max-height: 88vh;
  border-radius: 20px;
  box-shadow: 0 24px 64px oklch(18% 0.012 45 / 0.2), 0 2px 0 oklch(100% 0 0 / 0.5) inset;
  transition:
    transform 380ms var(--ease-premium),
    opacity 380ms var(--ease-premium);
}
.qv-panel.open {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  pointer-events: all;
}
body.qv-open { overflow: hidden; }

.qv-panel__img-col {
  background: var(--bg-alt);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  padding: var(--space-7);
  position: relative;
  min-height: 360px;
}

.qv-panel__img {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  color: var(--steel-light);
}
.qv-panel__img svg {
  width: 56px;
  height: 56px;
  opacity: 0.35;
}
.qv-panel__img span {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  color: var(--text-subtle);
  text-align: center;
}

.qv-panel__img-dots {
  display: flex;
  gap: 6px;
}
.qv-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border-strong);
  transition: background 200ms ease;
  cursor: pointer;
}
.qv-dot.active { background: var(--brown-mid); }

.qv-panel__img.has-image {
  flex: 1;
  width: 100%;
  overflow: hidden;
  align-items: stretch;
  gap: 0;
}
.qv-panel__img.has-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.qv-panel__info-col {
  padding: var(--space-7) var(--space-7) var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  overflow-y: auto;
  position: relative;
}

.qv-panel__close {
  position: absolute;
  top: var(--space-5);
  right: var(--space-5);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: background-color 150ms ease, color 150ms ease;
  touch-action: manipulation;
}
.qv-panel__close:hover { background: var(--bg); color: var(--text); }
.qv-panel__close svg { width: 16px; height: 16px; }

.qv-panel__material {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel);
  margin-top: var(--space-2);
}

.qv-panel__name {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.qv-panel__desc {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.qv-panel__details {
  font-size: 0.875rem;
  color: var(--text-subtle);
  line-height: 1.6;
  padding-top: var(--space-3);
  border-top: 1px solid var(--border);
}

.qv-panel__section-label {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-subtle);
  margin-top: var(--space-2);
  margin-bottom: calc(-1 * var(--space-2));
}

.qv-panel__colors {
  display: flex;
  gap: var(--space-3);
}
.qv-panel__colors .color-swatch {
  width: 28px;
  height: 28px;
}

.qv-panel__qty-row {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.qv-qty-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--border-strong);
  background: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.125rem;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 150ms ease, border-color 150ms ease;
  touch-action: manipulation;
}
.qv-qty-btn:hover { background: var(--bg-alt); border-color: var(--brown-mid); }

.qv-qty-val {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text);
  min-width: 28px;
  text-align: center;
}

.qv-panel__cta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.qv-panel__price-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.qv-panel__price {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--brown);
  letter-spacing: -0.03em;
}
.qv-panel__per {
  font-family: var(--font-display);
  font-size: 0.75rem;
  color: var(--text-subtle);
}

/* QV mobile: bottom sheet */
@media (max-width: 768px) {
  .qv-panel {
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    transform: translateY(100%);
    opacity: 1;
    width: 100%;
    max-height: 88dvh;
    border-radius: 20px 20px 0 0;
    grid-template-columns: 1fr;
  }
  .qv-panel.open {
    transform: translateY(0);
    opacity: 1;
  }
  .qv-panel__img-col {
    min-height: 200px;
    padding: var(--space-5);
  }
  .qv-panel__img-dots { display: none; }
  .qv-panel__info-col {
    padding: var(--space-5) var(--space-5) calc(var(--space-5) + env(safe-area-inset-bottom, 0px));
    gap: var(--space-3);
  }
  .qv-panel__close {
    top: var(--space-4);
    right: var(--space-4);
  }
}

/* ── Toast ───────────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 80px);
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  z-index: 300;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 12px 20px;
  border-radius: 100px;
  background: oklch(18% 0.012 45 / 0.92);
  backdrop-filter: blur(12px);
  color: oklch(97% 0.004 80);
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition:
    opacity 300ms var(--ease-premium),
    transform 300ms var(--ease-premium);
  box-shadow: 0 8px 32px oklch(18% 0.012 45 / 0.3);
}
.toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.toast__icon {
  width: 16px;
  height: 16px;
  color: oklch(72% 0.14 142);
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .toast {
    bottom: calc(env(safe-area-inset-bottom, 0px) + 72px);
  }
}
@media (min-width: 769px) {
  .toast { bottom: var(--space-6); }
}

/* ── Mobile Bottom Bar ───────────────────────────────────────── */
.bottom-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 150;
  background: oklch(98% 0.004 80 / 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--border);
  padding: 8px 0 calc(8px + env(safe-area-inset-bottom, 0px));
  flex-direction: row;
  justify-content: space-around;
  align-items: center;
}

.bottom-bar__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-subtle);
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 16px;
  border-radius: 8px;
  transition: color 150ms ease;
  touch-action: manipulation;
  min-width: 60px;
}
.bottom-bar__item:hover,
.bottom-bar__item:active { color: var(--brown); }
.bottom-bar__item svg { width: 22px; height: 22px; }

.bottom-bar__cart-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bottom-bar__badge {
  position: absolute;
  top: -4px;
  right: -8px;
  background: var(--brown);
  color: oklch(99% 0.004 80);
  font-family: var(--font-display);
  font-size: 0.6rem;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 100px;
  padding: 0 4px;
  display: none;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.bottom-bar__badge.visible { display: flex; }

/* Add body padding so content isn't hidden behind bottom bar on mobile */
@media (max-width: 768px) {
  .bottom-bar { display: flex; }
  body { padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px)); }
}

/* ── Reviews Section ─────────────────────────────────────────── */
.reviews {
  padding: var(--space-9) 0 var(--space-10);
  background: var(--bg-alt);
  overflow: hidden;
  position: relative;
  content-visibility: auto;
  contain-intrinsic-size: auto 480px;
}
.reviews::before {
  content: '';
  position: absolute;
  top: 0;
  left: var(--space-6);
  right: var(--space-6);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-strong) 30%, var(--border-strong) 70%, transparent);
  pointer-events: none;
}

.reviews__inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.reviews__header {
  padding: 0 var(--space-6);
  margin-bottom: var(--space-7);
}

.reviews__track-wrap {
  padding: 0 var(--space-6);
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
  /* Fade edges signal horizontal scrollability */
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 6%, black 94%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0%, black 6%, black 94%, transparent 100%);
}
.reviews__track-wrap::-webkit-scrollbar { display: none; }
.reviews__track-wrap:active { cursor: grabbing; }

.reviews__track {
  display: grid;
  grid-template-columns: repeat(6, minmax(300px, 1fr));
  gap: var(--space-5);
  width: max-content;
}

.review-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  width: 300px;
  transition: border-color 200ms ease, transform 200ms ease;
}
.review-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.review-card__stars {
  color: oklch(72% 0.14 72);
  font-size: 0.875rem;
  letter-spacing: 1px;
}

.review-card__text {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.65;
  flex: 1;
  font-style: italic;
}

.review-card__author {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: var(--space-3);
  border-top: 1px solid var(--border);
}

.review-card__name {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
}

.review-card__product {
  font-family: var(--font-display);
  font-size: 0.75rem;
  color: var(--steel);
  letter-spacing: 0.02em;
}

@media (max-width: 768px) {
  .reviews__track {
    grid-template-columns: repeat(6, minmax(272px, 1fr));
  }
  .review-card { width: 272px; padding: var(--space-5); }
}

/* ── FAQ Section ─────────────────────────────────────────────── */
.faq {
  padding: var(--space-10) var(--space-6);
  max-width: var(--max-w);
  margin: 0 auto;
  content-visibility: auto;
  contain-intrinsic-size: auto 700px;
}

.faq__inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--space-10);
  align-items: start;
}

.faq__header {
  position: sticky;
  top: calc(var(--nav-h) + var(--space-5));
}
.faq__header .section-heading { margin-bottom: var(--space-4); }

.faq__list {
  display: flex;
  flex-direction: column;
}

.faq__item {
  border-bottom: 1px solid var(--border);
}
.faq__item:first-child { border-top: 1px solid var(--border); }

.faq__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-5) 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  transition: color 150ms ease;
  touch-action: manipulation;
}
.faq__trigger:hover { color: var(--brown); }

.faq__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--text-subtle);
  transition: transform 380ms var(--ease-premium);
}
.faq__item.open .faq__icon { transform: rotate(180deg); }

/* Smooth height animation via grid-template-rows */
.faq__body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 380ms var(--ease-premium);
  overflow: hidden;
}
.faq__item.open .faq__body {
  grid-template-rows: 1fr;
}
.faq__body > * { overflow: hidden; }

.faq__answer {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.7;
  padding-bottom: var(--space-5);
}

@media (max-width: 768px) {
  .faq__inner { grid-template-columns: 1fr; gap: var(--space-6); }
  .faq__header { position: static; }
}

/* ── Contact Section ─────────────────────────────────────────── */
.contact-section {
  background: var(--bg-alt);
  padding: var(--space-10) var(--space-6);
  position: relative;
  content-visibility: auto;
  contain-intrinsic-size: auto 600px;
}
.contact-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: var(--space-6);
  right: var(--space-6);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-strong) 30%, var(--border-strong) 70%, transparent);
  pointer-events: none;
}

.contact-section__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--space-10);
  align-items: start;
}

.contact-section__header .section-heading { margin-bottom: var(--space-4); }

.contact-section__sub {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 40ch;
  margin-bottom: var(--space-6);
}

.contact-section__direct {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.contact-direct-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--brown);
  text-decoration: none;
  transition: color 150ms ease;
}
.contact-direct-link:hover { color: var(--steel-dark); }
.contact-direct-link svg { width: 18px; height: 18px; flex-shrink: 0; }

/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

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

.form-field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form-label {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
}

.form-counter {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--text-subtle);
  letter-spacing: 0.04em;
}
.form-counter.near-limit { color: oklch(50% 0.12 30); }

.form-input {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--text);
  background: var(--surface);
  border: 1.5px solid var(--border-strong);
  border-radius: 8px;
  padding: 12px 14px;
  width: 100%;
  transition:
    border-color 200ms var(--ease-premium),
    box-shadow 200ms var(--ease-premium);
  outline: none;
  -webkit-appearance: none;
}
.form-input::placeholder { color: var(--text-subtle); }
.form-input:focus {
  border-color: var(--brown-mid);
  box-shadow: 0 0 0 3px oklch(62% 0.055 52 / 0.15);
}
.form-input[aria-invalid="true"] {
  border-color: oklch(54% 0.18 27);
  box-shadow: 0 0 0 3px oklch(54% 0.18 27 / 0.12);
}

.form-textarea {
  resize: vertical;
  min-height: 130px;
  line-height: 1.6;
}

.form-error {
  font-family: var(--font-display);
  font-size: 0.75rem;
  color: oklch(50% 0.18 27);
  min-height: 1em;
  display: block;
}

.form-footer {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.form-note {
  font-family: var(--font-display);
  font-size: 0.75rem;
  color: var(--text-subtle);
}

.form-submit {
  font-size: 0.9375rem;
}

@media (max-width: 768px) {
  .contact-section__inner { grid-template-columns: 1fr; gap: var(--space-7); }
  .form-row { grid-template-columns: 1fr; }
}

/* ── Smooth mobile nav — staggered link reveal ───────────────── */
.mobile-nav-overlay {
  flex-direction: column;
  gap: 0;
  padding: var(--space-8) var(--space-6);
  align-items: flex-start;
  justify-content: center;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) 0;
  width: 100%;
  border-bottom: 1px solid oklch(88% 0.01 80 / 0.3);
  transition: color 150ms ease, padding-left 200ms var(--ease-premium);
}
.mobile-nav-link:hover { padding-left: var(--space-2); }
.mobile-nav-link:last-child { border-bottom: none; }

/* Staggered link entrance when mobile nav opens */
.mobile-nav-overlay .mobile-nav-link {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 400ms var(--ease-premium),
    transform 400ms var(--ease-premium),
    color 150ms ease,
    padding-left 200ms var(--ease-premium);
}
.mobile-nav-overlay.open .mobile-nav-link {
  opacity: 1;
  transform: translateY(0);
}
.mobile-nav-overlay.open .mobile-nav-link:nth-child(1) { transition-delay: 60ms; }
.mobile-nav-overlay.open .mobile-nav-link:nth-child(2) { transition-delay: 120ms; }
.mobile-nav-overlay.open .mobile-nav-link:nth-child(3) { transition-delay: 180ms; }
.mobile-nav-overlay.open .mobile-nav-link:nth-child(4) { transition-delay: 240ms; }

/* Add arrow to mobile nav links */
.mobile-nav-link::after {
  content: '→';
  margin-left: auto;
  font-size: 1.25rem;
  color: var(--border-strong);
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 200ms ease, transform 200ms var(--ease-premium);
}
.mobile-nav-link:hover::after {
  opacity: 1;
  transform: translateX(0);
}

/* ── Scroll reveal for reviews track items ───────────────────── */
.reviews__track .reveal {
  transition-delay: 0ms;
}


/* ── Admin link (footer) ─────────────────────────────────────── */
.footer__admin-link {
  display: inline-block;
  margin-top: var(--space-3);
  font-size: 0.65rem;
  color: var(--border-strong);
  opacity: 0.35;
  transition: opacity 200ms ease;
  text-decoration: none;
}
.footer__admin-link:hover { opacity: 0.7; }
