/* ─────────────────────────────────────────────────────────────────────────────
   Maison D'Autrefois — Design System
   Palette: cream #F4EDE0 · espresso #2B1810 · gold #C5A572
   Type: Fraunces (display) · Manrope (body)
───────────────────────────────────────────────────────────────────────────── */

/* ── Tokens ──────────────────────────────────────────────────────────────── */
:root {
  --cream:        #F4EDE0;
  --cream-dark:   #EDE0CC;
  --espresso:     #2B1810;
  --espresso-lt:  #5C3D2E;
  --gold:         #C5A572;
  --gold-dark:    #A8884A;
  --oxblood:      #7A2A2A;
  --teal:         #2A5A5A;
  --white:        #FDFAF5;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'Manrope', 'Segoe UI', system-ui, sans-serif;

  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  1.5rem;
  --space-lg:  2.5rem;
  --space-xl:  4rem;
  --space-2xl: 6rem;

  --radius:    4px;
  --radius-lg: 8px;

  --shadow-sm: 0 2px 8px rgba(43,24,16,.08);
  --shadow-md: 0 6px 24px rgba(43,24,16,.12);

  --transition: 400ms cubic-bezier(.25,.46,.45,.94);
  --transition-fast: 200ms ease;

  /* Horizontal page margin — scales from 24px on mobile to 96px on wide desktop */
  --page-margin: clamp(1.5rem, 6vw, 6rem);
  /* Top breathing room between header and page content (non-hero pages) */
  --page-top: clamp(1.5rem, 4vw, 3.25rem);

  --easing:        cubic-bezier(.22, 1, .36, 1);
  --easing-spring: cubic-bezier(.34, 1.56, .64, 1);
}

/* ── Reset ───────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { overflow-x: clip; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font: inherit; border: none; background: none; }
ul { list-style: none; }

/* ── Base ────────────────────────────────────────────────────────────────── */
body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--espresso);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

h1,h2,h3,h4,h5 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  color: var(--espresso);
}
h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.7rem); }

p { max-width: 65ch; }

/* ── Layout Utilities ────────────────────────────────────────────────────── */
.container  { max-width: 1280px; margin: 0 auto; padding: 0 var(--page-margin); }
.container--narrow { max-width: 800px; margin: 0 auto; padding: 0 var(--page-margin); }
.section    { padding: var(--space-2xl) 0; }
.section--sm { padding: var(--space-xl) 0; }

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.75rem;
  font-family: var(--font-body);
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: var(--transition-fast);
  white-space: nowrap;
}
.btn--primary {
  background: var(--espresso);
  color: var(--cream);
  border: 2px solid var(--espresso);
}
.btn--primary:hover { background: var(--espresso-lt); border-color: var(--espresso-lt); }

.btn--ghost {
  background: transparent;
  color: var(--cream);
  border: 2px solid var(--cream);
}
.btn--ghost:hover { background: var(--cream); color: var(--espresso); }

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

.btn--gold {
  background: var(--gold);
  color: var(--espresso);
  border: 2px solid var(--gold);
}
.btn--gold:hover { background: var(--gold-dark); border-color: var(--gold-dark); }

.btn--sm { padding: .5rem 1.25rem; font-size: .8125rem; }
.btn--full { width: 100%; justify-content: center; }

/* ── Header / Nav ────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--cream);
  border-bottom: 1px solid var(--cream-dark);
  padding: 0 var(--page-margin);
}
.site-header__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: var(--space-md);
}
.site-logo {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--espresso);
  white-space: nowrap;
  flex-shrink: 0;
}
.site-logo span { color: var(--gold); }

.site-nav { display: flex; align-items: center; gap: var(--space-md); }
.site-nav a {
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--espresso-lt);
  transition: color var(--transition-fast);
  position: relative;
}
.site-nav a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0; right: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform var(--transition-fast);
}
.site-nav a:hover { color: var(--espresso); }
.site-nav a:hover::after { transform: scaleX(1); }

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown__trigger { cursor: pointer; }
.nav-dropdown__menu {
  display: none;
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: var(--space-sm);
  min-width: 220px;
  column-count: 2;
  column-gap: .5rem;
}
.nav-dropdown:hover .nav-dropdown__menu { display: block; }
/* Bridge the visual gap so hover isn't lost when moving cursor to the menu */
.nav-dropdown__menu::before {
  content: '';
  position: absolute;
  top: -14px;
  left: 0; right: 0;
  height: 14px;
}
.nav-dropdown__menu a {
  display: block;
  padding: .4rem .75rem;
  border-radius: var(--radius);
  font-size: .8125rem;
  break-inside: avoid;
}
.nav-dropdown__menu a:hover { background: var(--cream); }
/* Suppress the underline animation inside the dropdown */
.nav-dropdown__menu a::after { display: none; }

/* Always-visible right group: cart + hamburger */
.header-actions {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-shrink: 0;
}

.cart-icon-wrap {
  position: relative;
  display: flex;
  align-items: center;
  color: var(--espresso);
}
.cart-badge {
  position: absolute;
  top: -6px; right: -8px;
  background: var(--espresso);
  color: var(--cream);
  font-size: .65rem;
  font-weight: 700;
  width: 18px; height: 18px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
}

/* Hamburger — hidden on desktop, shown on mobile */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  position: relative;
  z-index: 102;
}
.menu-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--espresso);
  border-radius: 2px;
  transition: transform .35s var(--easing-spring), opacity .25s var(--easing);
  transform-origin: center;
}
.menu-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Footer ──────────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--espresso);
  color: var(--cream);
  padding: var(--space-xl) 0 var(--space-lg);
  margin-top: var(--space-2xl);
}
.site-footer__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--page-margin);
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-xl);
}
.footer-brand__logo {
  display: inline-block;
  margin-bottom: var(--space-md);
  line-height: 0;
  background: var(--cream);
  padding: .9rem 1.25rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.footer-brand__logo:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.footer-brand__logo-img {
  width: 140px;
  max-width: 100%;
  height: auto;
  display: block;
}
.footer-brand__tagline {
  font-style: italic;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 1rem;
  margin-bottom: var(--space-sm);
}
.footer-brand__desc { font-size: .875rem; opacity: .75; max-width: 30ch; }

.footer-col h4 {
  font-family: var(--font-body);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-sm);
}
.footer-col ul { display: flex; flex-direction: column; gap: .5rem; }
.footer-col a { font-size: .875rem; opacity: .8; transition: opacity var(--transition-fast); }
.footer-col a:hover { opacity: 1; }

.footer-bottom {
  max-width: 1280px;
  margin: var(--space-lg) auto 0;
  padding: var(--space-sm) var(--page-margin) 0;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .8125rem;
  opacity: .6;
}

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  height: clamp(520px, 85vh, 920px);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding-bottom: var(--space-2xl);
}
.hero__bg {
  position: absolute;
  inset: -10% 0;
  width: 100%;
  height: 120%;
  object-fit: cover;
  object-position: center 42%;
  will-change: transform;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 70% 50% at 30% 20%, rgba(197,165,114,.12) 0%, transparent 55%),
    linear-gradient(to right, rgba(19,10,5,.55) 0%, rgba(19,10,5,.18) 45%, rgba(19,10,5,0) 70%),
    linear-gradient(to top,   rgba(43,24,16,.82) 0%, rgba(43,24,16,.35) 55%, rgba(43,24,16,.08) 100%);
}
.hero__content {
  position: relative;
  z-index: 3;
  padding: 0 var(--page-margin);
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
}
.hero__eyebrow {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-sm);
}
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  font-weight: 700;
  color: var(--cream);
  line-height: 1.05;
  margin-bottom: var(--space-md);
}
.hero__title em { font-style: italic; color: var(--gold); }
.hero__sub {
  font-size: 1.1rem;
  color: rgba(244,237,224,.85);
  margin-bottom: var(--space-lg);
  font-weight: 300;
}

/* Hero placeholder (when no image is set) */
.hero--placeholder {
  background:
    radial-gradient(ellipse 70% 60% at 72% 42%, rgba(197,165,114,.13) 0%, transparent 65%),
    radial-gradient(ellipse 45% 45% at 22% 78%, rgba(122,42,42,.14) 0%, transparent 55%),
    linear-gradient(155deg, #3E2214 0%, #2B1810 42%, #130A05 100%);
}

/* Gold line above eyebrow */
.hero__eyebrow::before {
  content: '';
  display: block;
  width: 36px;
  height: 1px;
  background: var(--gold);
  margin-bottom: var(--space-sm);
  opacity: .7;
}

/* ── Hero 3D canvas (injected by JS) ────────────────────────────────────── */
.hero__3d {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  z-index: 2;
  pointer-events: none;
}

/* ── Hero entrance animations ────────────────────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  .hero__eyebrow           { animation: heroUp  .7s  .10s both ease-out; }
  .hero__title             { animation: heroUp 1.05s  .32s both cubic-bezier(.22,1,.36,1); }
  .hero__sub               { animation: heroUp  .75s  .68s both ease-out; }
  .hero__content .btn      { animation: heroUp  .7s  1.05s both ease-out; }
}
@keyframes heroUp {
  from { opacity: 0; transform: translateY(36px); }
  to   { opacity: 1; transform: none; }
}

/* ── Brand Moment (pull-quote) ───────────────────────────────────────────── */
.brand-moment {
  padding: var(--space-2xl) var(--page-margin);
  text-align: center;
  border-top: 1px solid var(--cream-dark);
  border-bottom: 1px solid var(--cream-dark);
}
.brand-moment blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2.4rem);
  font-style: italic;
  font-weight: 400;
  color: var(--espresso);
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.4;
}
.brand-moment blockquote::before { content: '\201C'; color: var(--gold); }
.brand-moment blockquote::after  { content: '\201D'; color: var(--gold); }

/* ── Section Titles ──────────────────────────────────────────────────────── */
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: var(--space-lg);
  gap: var(--space-md);
}
.section-header h2 { font-family: var(--font-display); }
.section-header a  { font-size: .8125rem; letter-spacing: .06em; text-transform: uppercase; color: var(--gold-dark); }

/* ── Collections Grid ─────────────────────────────────────────────────────── */
.collections-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}

.collection-card {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--cream-dark);
  text-decoration: none;
}

.collection-card__img {
  width: 100%; height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  transition: transform 650ms cubic-bezier(.25,.46,.45,.94);
}
.collection-card__img--empty {
  width: 100%; height: 100%;
  background: var(--espresso-lt);
}

.collection-card:hover .collection-card__img {
  transform: scale(1.06);
}

/* Subtle gradient only at the bottom third */
.collection-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(15,8,3,.70) 0%,
    rgba(15,8,3,.20) 30%,
    transparent 58%
  );
  display: flex;
  align-items: flex-end;
  padding: .9rem 1rem;
  transition: background 300ms ease;
}
.collection-card:hover .collection-card__overlay {
  background: linear-gradient(
    to top,
    rgba(15,8,3,.80) 0%,
    rgba(15,8,3,.30) 35%,
    transparent 62%
  );
}

.collection-card__name {
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.92);
  line-height: 1;
}

/* ── Product Grid (editorial asymmetric) ─────────────────────────────────── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--space-lg);
  align-items: start;
}

/* Alternating column spans: 5+7 / 7+5 / 4+8 / 8+4 */
.product-card:nth-child(4n+1) { grid-column: span 5; }
.product-card:nth-child(4n+2) { grid-column: span 7; }
.product-card:nth-child(4n+3) { grid-column: span 7; }
.product-card:nth-child(4n+4) { grid-column: span 5; }

/* Uniform 4-col grid variant — every card the exact same size */
.product-grid--uniform { align-items: stretch; }
.product-grid--uniform .product-card { grid-column: span 3; height: 100%; }

/* ── Product Card ────────────────────────────────────────────────────────── */
.product-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  height: 100%;
}
.product-card__img-wrap {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--cream-dark);
  aspect-ratio: 4/3;
}
.product-card__img {
  width: 100%; height: 100%;
  object-fit: contain;
  object-position: center;
  transition: transform var(--transition), filter var(--transition);
}
.product-card:hover .product-card__img {
  transform: scale(1.025);
  filter: brightness(1.04);
}
.product-card__info { padding: 0 .25rem; }
.product-card__category {
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: .25rem;
}
.product-card__name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: .35rem;
  line-height: 1.3;
  /* Clamp to two lines so every card stays the same height */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(1.05rem * 1.3 * 2);
}
.product-card__category {
  /* Single line, ellipsised, so cards line up even with long category names */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.product-card__info {
  padding: 0 .25rem;
  display: flex;
  flex-direction: column;
  flex: 1; /* push actions to bottom */
}
.product-card__price {
  font-size: .9375rem;
  font-weight: 600;
  color: var(--espresso);
  margin-top: auto; /* sit just above the actions */
}
.product-card__price--request { color: var(--gold-dark); font-style: italic; }
.product-card__actions { margin-top: .5rem; }

/* ── Sale & Out-of-Stock badges ──────────────────────────────────────────── */
.price-was {
  text-decoration: line-through;
  color: var(--espresso-lt);
  font-weight: 400;
  margin-right: .35rem;
  font-size: .875em;
}
.price-sale         { color: #c0392b; font-weight: 700; }
.price-sale--lg     { font-size: 1.35rem; }

.badge-oos, .badge-sale {
  position: absolute;
  top: .6rem; left: .6rem;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .25rem .55rem;
  border-radius: 2px;
  pointer-events: none;
  z-index: 2;
}
.badge-oos  { background: rgba(15,8,3,.72); color: #fff; }
.badge-sale { background: #c0392b; color: #fff; }

.product-card--oos .product-card__img { opacity: .65; }
.product-card--oos button[disabled]   { opacity: .4; cursor: not-allowed; }

/* ── Product Detail ──────────────────────────────────────────────────────── */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: start;
  padding: var(--space-xl) 0;
}
.product-detail__img-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
  background: var(--cream-dark);
}
.product-detail__img { width: 100%; height: 100%; object-fit: contain; object-position: center; }

.product-detail__body { position: sticky; top: 100px; }
.product-detail__category {
  font-size: .75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: var(--space-xs);
}
.product-detail__name {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.8rem);
  margin-bottom: var(--space-sm);
  line-height: 1.1;
}
.product-detail__price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--espresso);
  margin-bottom: var(--space-md);
}
.product-detail__price--request {
  font-size: 1.1rem;
  color: var(--gold-dark);
  font-style: italic;
  font-weight: 400;
}
.product-detail__description {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--espresso-lt);
  margin-bottom: var(--space-md);
  max-width: 50ch;
}
.product-detail__meta {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  margin-bottom: var(--space-md);
  padding: var(--space-sm);
  background: var(--cream-dark);
  border-radius: var(--radius);
  font-size: .875rem;
}
.product-detail__meta dt { font-weight: 600; }
.product-detail__meta dl { display: grid; grid-template-columns: auto 1fr; gap: .25rem var(--space-sm); }

/* Variant selector */
.variant-select { display: flex; flex-direction: column; gap: .5rem; margin-bottom: var(--space-md); }
.variant-select label { font-size: .875rem; font-weight: 600; }
.variant-select select {
  width: 100%;
  padding: .6rem .9rem;
  border: 1.5px solid var(--cream-dark);
  border-radius: var(--radius);
  background: var(--cream);
  font-family: var(--font-body);
  font-size: .9rem;
  color: var(--espresso);
  cursor: pointer;
}
.variant-select select:focus { outline: none; border-color: var(--gold); }

/* Quantity selector */
.qty-row {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}
.qty-control {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--cream-dark);
  border-radius: var(--radius);
  overflow: hidden;
}
.qty-control button {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  color: var(--espresso);
  transition: background var(--transition-fast);
}
.qty-control button:hover { background: var(--cream-dark); }
.qty-control input {
  width: 50px; height: 40px;
  text-align: center;
  border: none;
  border-left: 1.5px solid var(--cream-dark);
  border-right: 1.5px solid var(--cream-dark);
  background: var(--cream);
  font-size: .9375rem;
  font-family: var(--font-body);
  color: var(--espresso);
}
.qty-control input:focus { outline: none; }

/* ── Cart ────────────────────────────────────────────────────────────────── */
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: var(--space-xl);
  align-items: start;
  padding: var(--space-xl) 0;
}
.cart-items { display: flex; flex-direction: column; gap: var(--space-md); }
.cart-item {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  gap: var(--space-md);
  align-items: center;
  padding: var(--space-md);
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--cream-dark);
}
.cart-item__img {
  width: 96px; height: 96px;
  object-fit: contain;
  object-position: center;
  background: var(--cream-dark);
  border-radius: var(--radius);
}
.cart-item__name { font-family: var(--font-display); font-size: 1rem; font-weight: 600; margin-bottom: .25rem; }
.cart-item__variant { font-size: .8125rem; color: var(--gold-dark); }
.cart-item__price { font-weight: 600; margin-top: .35rem; }
.cart-item__remove { font-size: .75rem; color: var(--espresso-lt); text-decoration: underline; cursor: pointer; background: none; border: none; margin-top: .25rem; }

.cart-sidebar {
  background: var(--white);
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  position: sticky;
  top: 100px;
}
.cart-sidebar h3 { font-family: var(--font-display); margin-bottom: var(--space-md); }
.cart-subtotal-row {
  display: flex;
  justify-content: space-between;
  padding: var(--space-sm) 0;
  border-top: 1px solid var(--cream-dark);
  font-weight: 600;
  font-size: 1.1rem;
}
.cart-empty {
  text-align: center;
  padding: var(--space-2xl) 0;
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--espresso-lt);
}
.cart-empty a { color: var(--gold-dark); }

/* ── Checkout ────────────────────────────────────────────────────────────── */
.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: var(--space-xl);
  padding: var(--space-xl) 0;
}
.checkout-form { display: flex; flex-direction: column; gap: var(--space-sm); }
.form-group { display: flex; flex-direction: column; gap: .4rem; }
.form-group label { font-size: .875rem; font-weight: 600; }
.form-group input,
.form-group textarea,
.form-group select {
  padding: .7rem 1rem;
  border: 1.5px solid var(--cream-dark);
  border-radius: var(--radius);
  background: var(--cream);
  font-family: var(--font-body);
  font-size: .9375rem;
  color: var(--espresso);
  transition: border-color var(--transition-fast);
}
.form-group input:focus,
.form-group textarea:focus { outline: none; border-color: var(--gold); }
.form-group textarea { resize: vertical; min-height: 80px; }
.form-required { color: var(--oxblood); }

.checkout-order-summary {
  background: var(--white);
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  position: sticky;
  top: 100px;
}
.checkout-order-summary h3 { font-family: var(--font-display); margin-bottom: var(--space-md); }

/* Checkout confirm */
.checkout-confirm {
  text-align: center;
  padding: var(--space-2xl) 0;
  max-width: 560px;
  margin: 0 auto;
}
.checkout-confirm__icon { font-size: 3rem; margin-bottom: var(--space-sm); }
.checkout-confirm h1 { margin-bottom: var(--space-sm); }
.checkout-confirm p { margin-bottom: var(--space-md); color: var(--espresso-lt); }
.checkout-confirm__fallback { margin-top: var(--space-md); font-size: .875rem; color: var(--espresso-lt); }
.checkout-confirm__fallback a { color: var(--gold-dark); text-decoration: underline; }

/* ── Shop Filter Bar ──────────────────────────────────────────────────────── */
.shop-filter {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--cream-dark);
  margin-bottom: var(--space-lg);
}
.filter-btn {
  padding: .4rem 1rem;
  border: 1.5px solid var(--cream-dark);
  border-radius: 100px;
  font-size: .8125rem;
  font-weight: 500;
  color: var(--espresso-lt);
  background: var(--cream);
  transition: var(--transition-fast);
  cursor: pointer;
}
.filter-btn:hover,
.filter-btn.is-active {
  background: var(--espresso);
  color: var(--cream);
  border-color: var(--espresso);
}

/* ── About Page ──────────────────────────────────────────────────────────── */
.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
  padding: var(--space-xl) 0;
}
.about-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
  background: var(--cream-dark);
}
.about-img img { width: 100%; height: 100%; object-fit: cover; }
.about-body { max-width: 55ch; }
.about-body .eyebrow {
  font-size: .75rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: var(--space-xs);
  font-weight: 600;
}
.about-body h1 { margin-bottom: var(--space-md); }
.about-body p  { margin-bottom: var(--space-md); color: var(--espresso-lt); font-size: 1.05rem; }

/* ── Contact ─────────────────────────────────────────────────────────────── */
.contact-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--space-2xl) 0;
  gap: var(--space-lg);
}
.contact-cards {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  justify-content: center;
}
.contact-card {
  background: var(--white);
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  min-width: 220px;
  text-align: center;
}
.contact-card__icon { font-size: 2rem; margin-bottom: var(--space-xs); }
.contact-card__label { font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-dark); font-weight: 600; margin-bottom: .25rem; }
.contact-card__value { font-family: var(--font-display); font-size: 1.1rem; }

/* ── Reveal animations ───────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 480ms ease-out, transform 480ms ease-out;
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal--delay-1 { transition-delay: 100ms; }
.reveal--delay-2 { transition-delay: 200ms; }
.reveal--delay-3 { transition-delay: 300ms; }
/* Grid stagger: JS sets --stagger-i on each child */
.reveal--stagger { transition-delay: calc(var(--stagger-i, 0) * 55ms); }

/* ── Page transitions ────────────────────────────────────────────────────── */
body { animation: pageIn 300ms ease-out; }
@keyframes pageIn { from { opacity: 0; } to { opacity: 1; } }

/* ── Toasts / notifications ──────────────────────────────────────────────── */
.toast-wrap {
  position: fixed;
  bottom: 1.5rem;
  /* Sit just left of the WhatsApp dock so toasts aren't hidden behind it */
  right: 6rem;
  z-index: 10001;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  pointer-events: none;
}
.toast-wrap .toast { pointer-events: auto; }
@media (max-width: 600px) {
  .toast-wrap { right: 1rem; bottom: 5.5rem; left: 1rem; }
}
.toast {
  background: var(--espresso);
  color: var(--cream);
  padding: .75rem 1.25rem;
  border-radius: var(--radius-lg);
  font-size: .875rem;
  box-shadow: var(--shadow-md);
  animation: toastIn 250ms ease-out;
}
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ── Breadcrumb ──────────────────────────────────────────────────────────── */
.breadcrumb {
  font-size: .8125rem;
  color: var(--espresso-lt);
  padding: var(--space-sm) 0;
  display: flex;
  gap: .5rem;
  align-items: center;
}
.breadcrumb a:hover { color: var(--espresso); }
.breadcrumb__sep { opacity: .4; }

/* ── Misc ────────────────────────────────────────────────────────────────── */
.gold-rule {
  border: none;
  border-top: 1px solid var(--gold);
  opacity: .4;
  margin: var(--space-lg) 0;
}
.text-gold { color: var(--gold-dark); }
.text-center { text-align: center; }
.mt-lg { margin-top: var(--space-lg); }

/* ── Cursor glow (desktop, injected by JS) ───────────────────────────────── */
.cursor-glow {
  position: fixed;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(197,165,114,.32) 0%, transparent 70%);
  pointer-events: none;
  z-index: 9999;
  top: 0; left: 0;
  mix-blend-mode: screen;
  will-change: transform;
}

/* ── Collection card cursor ──────────────────────────────────────────────── */
.collection-card { cursor: pointer; }

/* ── "All Products" first item in nav dropdown ───────────────────────────── */
.nav-dropdown__all {
  font-weight: 600 !important;
  color: var(--espresso) !important;
}

/* ───────────────────────────────────────────────────────────────────────────
   RESPONSIVE
─────────────────────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(6, 1fr); }
  .product-card:nth-child(4n+1),
  .product-card:nth-child(4n+2),
  .product-card:nth-child(4n+3),
  .product-card:nth-child(4n+4) { grid-column: span 3; }
  /* Uniform: 3 columns on tablet */
  .product-grid--uniform .product-card { grid-column: span 2; }

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

  .about-layout,
  .product-detail { grid-template-columns: 1fr; }
  .product-detail__body { position: static; }

  .cart-layout,
  .checkout-layout { grid-template-columns: 1fr; }

  .site-footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root {
    --space-lg: 1.5rem;
    --space-xl: 2.5rem;
    --space-2xl: 3.5rem;
  }

  .site-nav { display: none; }
  .site-nav.is-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 72px 0 0;
    background: var(--cream);
    padding: var(--space-lg);
    overflow-y: auto;
    z-index: 99;
    align-items: flex-start;
    gap: var(--space-md);
  }
  .site-nav.is-open .nav-dropdown__menu {
    position: static;
    transform: none;
    box-shadow: none;
    border: none;
    display: block;
    padding: 0 0 0 var(--space-md);
    column-count: 1;
    background: transparent;
  }
  .menu-toggle { display: flex; }

  .product-grid { grid-template-columns: 1fr 1fr; gap: var(--space-sm); }
  .product-card:nth-child(n) { grid-column: span 1; }

  .collections-grid { grid-template-columns: 1fr 1fr; gap: 3px; }

  .site-footer__inner { grid-template-columns: 1fr; gap: var(--space-lg); }
  .footer-bottom { flex-direction: column; gap: .5rem; text-align: center; }

  .hero { height: clamp(440px, 78vh, 680px); }
  .hero__content { padding: 0 var(--page-margin); }
  /* Favor the antique-clock side on narrow viewports — wide panorama crops hard on portrait */
  .hero__bg { object-position: 28% 48%; }
  /* Slightly stronger floor-to-text gradient on mobile so cream copy stays crisp */
  .hero__overlay {
    background:
      linear-gradient(to top, rgba(19,10,5,.88) 0%, rgba(43,24,16,.55) 35%, rgba(43,24,16,.15) 75%, rgba(43,24,16,.05) 100%);
  }

  .product-detail { gap: var(--space-lg); }
  .cart-item { grid-template-columns: 72px 1fr; }
  .cart-item:last-child { grid-column: 1/-1; }
}

@media (max-width: 480px) {
  /* --page-margin clamp handles container padding — no override needed */
  .product-grid { grid-template-columns: 1fr; }
  .product-card:nth-child(n) { grid-column: span 1; }
  .collections-grid { grid-template-columns: 1fr 1fr; gap: 3px; }
  .contact-cards { flex-direction: column; align-items: stretch; }
}

/* ═════════════════════════════════════════════════════════════════════════
   CATALOG (shop & category) — sidebar filter + sort + pagination
═════════════════════════════════════════════════════════════════════════ */

.catalog { padding-top: var(--page-top); padding-bottom: var(--space-2xl); }

.catalog__header {
  margin-bottom: var(--space-xl);
  position: relative;
}
.catalog__eyebrow {
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: .65rem;
}
.catalog__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  line-height: 1.05;
  letter-spacing: -.01em;
  margin-bottom: .85rem;
}
.catalog__lede {
  font-size: 1.05rem;
  color: var(--espresso-lt);
  max-width: 52ch;
}
.catalog__rule {
  display: block;
  width: 60px;
  height: 1px;
  background: linear-gradient(to right, var(--gold) 0%, transparent 100%);
  margin-top: var(--space-md);
  transform-origin: left;
  animation: ruleGrow 1.1s var(--easing) .2s both;
}
@keyframes ruleGrow {
  from { transform: scaleX(0); opacity: 0; }
  to   { transform: scaleX(1); opacity: 1; }
}

.catalog__layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: var(--space-2xl);
  align-items: start;
}
.catalog__main { min-width: 0; }

/* ── Filter sidebar ──────────────────────────────────────────────────────── */
.filter-sidebar {
  position: sticky;
  top: 92px;
  background: var(--white);
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  font-size: .875rem;
  box-shadow: 0 1px 0 rgba(43,24,16,.04);
}
.filter-sidebar__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--cream-dark);
}
.filter-sidebar__title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: .01em;
  margin: 0;
}
.filter-sidebar__close {
  display: none;
  width: 32px; height: 32px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  color: var(--espresso);
  transition: background var(--transition-fast);
}
.filter-sidebar__close:hover { background: var(--cream-dark); }

.filter-block {
  display: block;
  min-inline-size: 0;
  border: none;
  margin: 0 0 var(--space-md);
  padding: 0 0 var(--space-md);
  border-bottom: 1px solid var(--cream-dark);
}
.filter-block:last-of-type { border-bottom: none; padding-bottom: 0; }
.filter-block__title {
  display: block;
  width: 100%;
  float: none;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--espresso);
  margin: 0 0 .85rem;
  padding: 0;
}

/* Category list inside sidebar */
.filter-cat-list { display: flex; flex-direction: column; gap: .15rem; }
.filter-cat-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .55rem .65rem;
  border-radius: var(--radius);
  color: var(--espresso-lt);
  font-size: .875rem;
  transition: background var(--transition-fast), color var(--transition-fast), padding var(--transition-fast);
  position: relative;
}
.filter-cat-link__chev {
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity var(--transition-fast), transform var(--transition-fast);
  color: var(--gold-dark);
  font-size: .8em;
}
.filter-cat-link:hover {
  color: var(--espresso);
  background: var(--cream);
  padding-left: .85rem;
}
.filter-cat-link:hover .filter-cat-link__chev,
.filter-cat-link.is-active .filter-cat-link__chev {
  opacity: 1;
  transform: translateX(0);
}
.filter-cat-link.is-active {
  color: var(--espresso);
  background: var(--cream);
  font-weight: 600;
}
.filter-cat-link.is-active::before {
  content: '';
  position: absolute;
  left: -.5rem; top: 50%;
  width: 3px; height: 60%;
  transform: translateY(-50%);
  background: var(--gold);
  border-radius: 2px;
}

/* Price slider */
.filter-price { display: flex; flex-direction: column; gap: .85rem; }
.filter-price__track {
  position: relative;
  height: 28px;
  display: flex;
  align-items: center;
}
.filter-price__track::before {
  content: '';
  position: absolute;
  inset: 50% 0 auto 0;
  height: 3px;
  transform: translateY(-50%);
  background: var(--cream-dark);
  border-radius: 3px;
}
.filter-price__fill {
  position: absolute;
  top: 50%;
  height: 3px;
  transform: translateY(-50%);
  background: linear-gradient(90deg, var(--gold), var(--gold-dark));
  border-radius: 3px;
  pointer-events: none;
  transition: left .15s ease, right .15s ease;
}
.filter-price__slider {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 28px;
  margin: 0;
  padding: 0;
  background: transparent;
  pointer-events: none;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
}
.filter-price__slider:focus { outline: none; }
.filter-price__slider--lo { z-index: 2; }
.filter-price__slider--hi { z-index: 3; }

/* Hide native track — our .filter-price__track::before draws the rail */
.filter-price__slider::-webkit-slider-runnable-track {
  background: transparent;
  border: none;
  height: 28px;
}
.filter-price__slider::-moz-range-track {
  background: transparent;
  border: none;
  height: 28px;
}

/* Custom thumb */
.filter-price__slider::-webkit-slider-thumb {
  -webkit-appearance: none;
          appearance: none;
  pointer-events: auto;
  width: 18px; height: 18px;
  margin-top: 0;
  border-radius: 50%;
  background: var(--cream);
  border: 2px solid var(--espresso);
  cursor: grab;
  box-shadow: 0 2px 6px rgba(43,24,16,.18);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.filter-price__slider::-webkit-slider-thumb:hover  { transform: scale(1.15); box-shadow: 0 4px 12px rgba(43,24,16,.25); }
.filter-price__slider::-webkit-slider-thumb:active { cursor: grabbing; }
.filter-price__slider::-moz-range-thumb {
  pointer-events: auto;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--cream);
  border: 2px solid var(--espresso);
  cursor: grab;
  box-shadow: 0 2px 6px rgba(43,24,16,.18);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.filter-price__slider::-moz-range-thumb:hover { transform: scale(1.15); }

.filter-price__inputs { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.filter-price__field {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .2rem;
}
.filter-price__field > span:first-child {
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--espresso-lt);
}
.filter-price__currency {
  position: absolute;
  left: .65rem; bottom: .55rem;
  color: var(--espresso-lt);
  font-size: .85rem;
  pointer-events: none;
}
.filter-price__field input {
  padding: .5rem .65rem .5rem 1.5rem;
  border: 1.5px solid var(--cream-dark);
  border-radius: var(--radius);
  background: var(--cream);
  font-family: var(--font-body);
  font-size: .85rem;
  color: var(--espresso);
  width: 100%;
  transition: border-color var(--transition-fast);
}
.filter-price__field input:focus {
  outline: none;
  border-color: var(--gold);
}
.filter-price__field input::-webkit-outer-spin-button,
.filter-price__field input::-webkit-inner-spin-button {
  -webkit-appearance: none; margin: 0;
}
.filter-price__bounds {
  display: flex; justify-content: space-between;
  font-size: .7rem;
  color: var(--espresso-lt);
  letter-spacing: .04em;
}

/* In-stock toggle */
.filter-toggle {
  display: flex;
  align-items: center;
  gap: .65rem;
  cursor: pointer;
  user-select: none;
  font-size: .875rem;
}
.filter-toggle input {
  position: absolute;
  width: 1px; height: 1px;
  opacity: 0;
  pointer-events: none;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}
.filter-toggle__track {
  width: 38px; height: 22px;
  background: var(--cream-dark);
  border-radius: 999px;
  position: relative;
  transition: background .25s var(--easing);
  flex-shrink: 0;
}
.filter-toggle__thumb {
  position: absolute;
  top: 3px; left: 3px;
  width: 16px; height: 16px;
  background: var(--white);
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
  transition: transform .25s var(--easing-spring), background .25s var(--easing);
}
.filter-toggle input:checked + .filter-toggle__track { background: var(--espresso); }
.filter-toggle input:checked + .filter-toggle__track .filter-toggle__thumb {
  transform: translateX(16px);
  background: var(--gold);
}
.filter-toggle input:focus-visible + .filter-toggle__track {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.filter-actions {
  display: flex;
  flex-direction: column;
  gap: .65rem;
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--cream-dark);
}
.filter-reset {
  display: inline-block;
  text-align: center;
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--espresso-lt);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--cream-dark);
  transition: color var(--transition-fast), text-decoration-color var(--transition-fast);
}
.filter-reset:hover {
  color: var(--oxblood);
  text-decoration-color: var(--oxblood);
}

/* ── Sort bar ─────────────────────────────────────────────────────────────── */
.sort-bar {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-sm) 0;
  margin-bottom: var(--space-lg);
  border-bottom: 1px solid var(--cream-dark);
  position: relative;
  z-index: 50;
}
.sort-dropdown[open] { z-index: 60; }
.sort-bar__filter-toggle {
  display: none;
  align-items: center;
  gap: .5rem;
  padding: .5rem .9rem;
  border: 1.5px solid var(--cream-dark);
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--espresso);
  background: var(--cream);
  cursor: pointer;
  transition: var(--transition-fast);
}
.sort-bar__filter-toggle:hover { background: var(--espresso); color: var(--cream); border-color: var(--espresso); }
.sort-bar__count {
  flex: 1;
  margin: 0;
  font-size: .85rem;
  color: var(--espresso-lt);
}
.sort-bar__count strong { color: var(--espresso); font-weight: 700; }

.sort-dropdown {
  position: relative;
  font-size: .85rem;
}
.sort-dropdown summary {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .5rem .9rem;
  border: 1.5px solid var(--cream-dark);
  border-radius: 999px;
  cursor: pointer;
  user-select: none;
  background: var(--cream);
  list-style: none;
  transition: var(--transition-fast);
}
.sort-dropdown summary::-webkit-details-marker { display: none; }
.sort-dropdown summary::marker { content: ''; }
.sort-dropdown summary svg { transition: transform .25s var(--easing); }
.sort-dropdown[open] summary { background: var(--espresso); color: var(--cream); border-color: var(--espresso); }
.sort-dropdown[open] summary svg { transform: rotate(180deg); }
.sort-dropdown__label {
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  opacity: .7;
}
.sort-dropdown__value { font-weight: 600; }

.sort-dropdown__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--white);
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: .35rem;
  min-width: 220px;
  z-index: 200;
  list-style: none;
  margin: 0;
  animation: sortDrop .25s var(--easing);
  transform-origin: top right;
}
@keyframes sortDrop {
  from { opacity: 0; transform: scale(.96) translateY(-4px); }
  to   { opacity: 1; transform: none; }
}
.sort-dropdown__menu a {
  display: block;
  padding: .55rem .8rem;
  border-radius: var(--radius);
  color: var(--espresso-lt);
  font-size: .85rem;
  transition: background var(--transition-fast), color var(--transition-fast);
}
.sort-dropdown__menu a:hover { background: var(--cream); color: var(--espresso); }
.sort-dropdown__menu a.is-active {
  background: var(--cream);
  color: var(--espresso);
  font-weight: 600;
  position: relative;
  padding-left: 1.6rem;
}
.sort-dropdown__menu a.is-active::before {
  content: '✓';
  position: absolute;
  left: .65rem; top: 50%;
  transform: translateY(-50%);
  color: var(--gold-dark);
}

/* ── Empty state ─────────────────────────────────────────────────────────── */
.catalog-empty {
  text-align: center;
  padding: var(--space-2xl) var(--space-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  border: 1px dashed var(--cream-dark);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--white) 0%, var(--cream) 100%);
}
.catalog-empty__glyph {
  font-size: 3rem;
  color: var(--gold);
  opacity: .55;
  animation: emptyFloat 4s var(--easing) infinite;
}
.catalog-empty__text {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--espresso-lt);
  margin: 0;
  max-width: 40ch;
}
@keyframes emptyFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

/* ── Pagination ──────────────────────────────────────────────────────────── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  margin-top: var(--space-2xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--cream-dark);
}
.pagination__list { display: flex; gap: .25rem; align-items: center; }
.pagination__link,
.pagination__nav,
.pagination__gap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 .65rem;
  border-radius: var(--radius);
  font-size: .9rem;
  font-weight: 500;
  color: var(--espresso-lt);
  transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}
.pagination__link {
  border: 1px solid transparent;
}
.pagination__link:hover {
  color: var(--espresso);
  background: var(--cream);
}
.pagination__link.is-current {
  background: var(--espresso);
  color: var(--cream);
  font-weight: 700;
  cursor: default;
}
.pagination__gap {
  color: var(--espresso-lt);
  opacity: .5;
  cursor: default;
}
.pagination__nav {
  gap: .35rem;
  font-size: .8rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-weight: 600;
  border: 1.5px solid var(--cream-dark);
  background: var(--cream);
}
.pagination__nav:hover {
  background: var(--espresso);
  color: var(--cream);
  border-color: var(--espresso);
}
.pagination__nav:hover svg { transform: translateX(0); }
.pagination__nav svg { transition: transform var(--transition-fast); }
.pagination__nav:first-child:hover svg { transform: translateX(-2px); }
.pagination__nav:last-child:hover  svg { transform: translateX(2px); }
.pagination__nav.is-disabled {
  opacity: .35;
  pointer-events: none;
  cursor: not-allowed;
}

/* ── Filter backdrop (mobile sheet) ──────────────────────────────────────── */
.filter-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15,8,3,.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s var(--easing);
  z-index: 100;
  backdrop-filter: blur(2px);
}
.filter-backdrop.is-active {
  opacity: 1;
  pointer-events: auto;
}

/* ── Responsive catalog ──────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .catalog__layout {
    grid-template-columns: 220px 1fr;
    gap: var(--space-xl);
  }
}

@media (max-width: 860px) {
  .catalog__layout { grid-template-columns: 1fr; }
  .sort-bar__filter-toggle { display: inline-flex; }

  .filter-sidebar {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: min(360px, 88vw);
    border-radius: 0;
    border: none;
    z-index: 110;
    transform: translateX(102%);
    transition: transform .35s var(--easing);
    overflow-y: auto;
    box-shadow: -12px 0 40px rgba(15,8,3,.18);
    padding: var(--space-lg);
  }
  .filter-sidebar.is-open { transform: none; }
  .filter-sidebar__close { display: inline-flex; }
}

/* ═════════════════════════════════════════════════════════════════════════
   GLOBAL POLISH — spacing, animations, header, cart, footer
═════════════════════════════════════════════════════════════════════════ */

/* Section breathing room — non-hero pages */
.section,
.section--sm { padding-left: 0; padding-right: 0; }

/* Header — translucent on scroll */
.site-header {
  transition: background .3s var(--easing), border-color .3s var(--easing), padding .3s var(--easing);
}
.site-header.is-scrolled {
  background: rgba(244, 237, 224, .82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
}
.site-header.is-scrolled .site-header__inner { height: 60px; }
.site-header__inner { transition: height .3s var(--easing); }

/* Logo letter-spacing reveal on scroll */
.site-logo {
  background: linear-gradient(90deg, var(--espresso) 0%, var(--espresso) 50%, var(--gold) 50%, var(--gold) 100%);
  background-size: 200% 100%;
  background-position: 0% 0%;
  -webkit-background-clip: text;
          background-clip: text;
  transition: background-position .6s var(--easing);
}
.site-logo:hover {
  background-position: -100% 0%;
  -webkit-text-fill-color: transparent;
          text-fill-color: transparent;
}

/* Cart icon — pulse when item added */
.cart-icon-wrap {
  transition: transform var(--transition-fast);
}
.cart-icon-wrap:hover { transform: translateY(-1px) scale(1.05); }
.cart-badge {
  transition: transform .3s var(--easing-spring);
}
.cart-badge.is-bumped {
  animation: cartBump .55s var(--easing-spring);
}
@keyframes cartBump {
  0%   { transform: scale(1); }
  35%  { transform: scale(1.45) rotate(-8deg); }
  60%  { transform: scale(.92) rotate(4deg); }
  100% { transform: scale(1); }
}

/* Buttons — subtle gold sheen on hover */
.btn--primary,
.btn--outline,
.btn--gold,
.btn--ghost {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.btn--primary::before,
.btn--gold::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,.18) 50%, transparent 100%);
  transform: translateX(-110%);
  transition: transform .55s var(--easing);
  z-index: -1;
}
.btn--primary:hover::before,
.btn--gold:hover::before { transform: translateX(110%); }

/* Add-to-cart "added" success morph */
.btn[data-add-to-cart]:disabled {
  background: var(--espresso) !important;
  color: var(--gold) !important;
  border-color: var(--espresso) !important;
}

/* Product card — depth lift on hover */
.product-card {
  transition: transform .35s var(--easing);
}
.product-card:hover { transform: translateY(-3px); }
.product-card__img-wrap {
  position: relative;
  box-shadow: 0 1px 0 rgba(43,24,16,.05);
  transition: box-shadow .35s var(--easing);
}
.product-card:hover .product-card__img-wrap {
  box-shadow: 0 24px 40px -20px rgba(43,24,16,.32);
}
/* Quick "view" affordance overlay */
.product-card__img-wrap::after {
  content: 'View';
  position: absolute;
  bottom: 12px; right: 12px;
  background: var(--cream);
  color: var(--espresso);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: .35rem .7rem;
  border-radius: 999px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .3s var(--easing), transform .3s var(--easing);
  pointer-events: none;
}
.product-card:hover .product-card__img-wrap::after {
  opacity: 1;
  transform: none;
}

/* Image shimmer placeholder while loading */
.product-card__img-wrap {
  background:
    linear-gradient(110deg, var(--cream-dark) 30%, var(--cream) 50%, var(--cream-dark) 70%);
  background-size: 200% 100%;
  animation: shimmer 2.6s var(--easing) infinite;
}
.product-card__img.loaded ~ * + *,
.product-card__img-wrap:has(.product-card__img.loaded) { animation: none; background: var(--cream-dark); }
.product-card__img { opacity: 0; transition: opacity .5s var(--easing), transform var(--transition), filter var(--transition); }
.product-card__img.loaded { opacity: 1; }
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Section dividers */
.gold-rule,
.section-rule {
  border: none;
  height: 1px;
  background: linear-gradient(to right, transparent 0%, var(--gold) 18%, var(--gold) 82%, transparent 100%);
  opacity: .55;
  margin: var(--space-xl) auto;
  max-width: 240px;
}

/* Footer link micro-interaction */
.footer-col a {
  position: relative;
  display: inline-block;
}
.footer-col a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--easing);
}
.footer-col a:hover::after { transform: scaleX(1); }

/* Breadcrumb subtle hover */
.breadcrumb a {
  transition: color var(--transition-fast), letter-spacing var(--transition-fast);
}
.breadcrumb a:hover { letter-spacing: .01em; }

/* Form focus glow */
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  box-shadow: 0 0 0 3px rgba(197,165,114,.18);
}

/* Toast — gold accent strip */
.toast {
  position: relative;
  padding-left: 1.5rem;
}
.toast::before {
  content: '';
  position: absolute;
  left: .55rem; top: 50%;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  transform: translateY(-50%);
  box-shadow: 0 0 8px var(--gold);
}

/* Hero entrance — keep intact + add subtle scroll cue */
.hero::after {
  content: '';
  position: absolute;
  bottom: 1.4rem;
  left: 50%;
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, transparent, var(--gold) 50%, transparent);
  transform: translateX(-50%);
  z-index: 4;
  opacity: .8;
  animation: scrollCue 2.4s var(--easing) infinite;
  pointer-events: none;
}
@keyframes scrollCue {
  0%   { transform: translate(-50%, -10px); opacity: 0; }
  35%  { opacity: 1; }
  100% { transform: translate(-50%, 14px); opacity: 0; }
}

/* In-view section reveal (added to .section by JS) */
.section.is-revealing { animation: sectionReveal .8s var(--easing) both; }
@keyframes sectionReveal {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}

/* Smooth grid swap when navigating filters (back/forward) */
@media (prefers-reduced-motion: no-preference) {
  #product-grid {
    animation: gridIn .55s var(--easing) both;
  }
  @keyframes gridIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: none; }
  }
}

/* Page-content top breathing room (non-hero pages) */
.container.section--sm:first-child,
main > .container:first-child:not(.catalog) { padding-top: var(--page-top); }

/* Mobile responsive tweaks for filter sidebar mobile sheet */
@media (max-width: 480px) {
  .sort-bar { flex-wrap: wrap; gap: .65rem; }
  .sort-bar__count { order: 3; flex-basis: 100%; text-align: left; }
  .sort-dropdown__menu { right: auto; left: 0; }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  .product-card__img-wrap,
  .catalog-empty__glyph,
  .hero::after,
  .catalog__rule,
  #product-grid { animation: none !important; }
}

/* ═════════════════════════════════════════════════════════════════════════
   GLOBAL PAGE PADDING — every non-hero page gets breathing room
═════════════════════════════════════════════════════════════════════════ */
main > .container:first-child,
main > .container:last-child:not(.catalog) {
  padding-top: var(--page-top);
  padding-bottom: var(--space-2xl);
}
.cart-layout,
.checkout-layout,
.product-detail,
.about-layout,
.contact-section { padding-top: var(--page-top); }

/* ═════════════════════════════════════════════════════════════════════════
   FILTER — search input
═════════════════════════════════════════════════════════════════════════ */
.filter-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem .8rem .5rem 2.1rem;
  border: 1.5px solid var(--cream-dark);
  border-radius: 999px;
  background: var(--cream);
  transition: border-color var(--transition-fast), background var(--transition-fast);
}
.filter-search:focus-within {
  border-color: var(--gold);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(197,165,114,.18);
}
.filter-search__icon {
  position: absolute;
  left: .75rem; top: 50%;
  transform: translateY(-50%);
  color: var(--espresso-lt);
  pointer-events: none;
}
.filter-search input {
  border: none;
  background: transparent;
  outline: none;
  font: inherit;
  font-size: .875rem;
  color: var(--espresso);
  width: 100%;
  padding: 0;
}
.filter-search input::placeholder { color: var(--espresso-lt); opacity: .7; }
.filter-search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.filter-search__clear {
  font-size: 1.2rem;
  line-height: 1;
  color: var(--espresso-lt);
  width: 22px; height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast), color var(--transition-fast);
}
.filter-search__clear:hover { background: var(--cream-dark); color: var(--espresso); }

/* Realtime filter loading state */
.catalog__main.is-loading {
  position: relative;
  pointer-events: none;
}
.catalog__main.is-loading::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(244,237,224,.55);
  backdrop-filter: blur(1px);
  z-index: 5;
  animation: fadeIn .2s var(--easing) both;
}
.catalog__main.is-loading::before {
  content: '';
  position: absolute;
  top: 80px; left: 50%;
  transform: translateX(-50%);
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 2.5px solid var(--cream-dark);
  border-top-color: var(--gold-dark);
  z-index: 6;
  animation: spin .9s linear infinite;
}
@keyframes spin { to { transform: translateX(-50%) rotate(360deg); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ═════════════════════════════════════════════════════════════════════════
   WISHLIST — heart button on product card + header icon + page
═════════════════════════════════════════════════════════════════════════ */
.product-card { position: relative; }
.wishlist-btn {
  position: absolute;
  top: .65rem; right: .65rem;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(253, 250, 245, .92);
  backdrop-filter: blur(6px);
  color: var(--espresso);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  cursor: pointer;
  transition: transform .25s var(--easing-spring), background .25s var(--easing), color .25s var(--easing);
  box-shadow: 0 2px 8px rgba(43,24,16,.12);
}
.wishlist-btn:hover { transform: scale(1.08); background: var(--white); }
.wishlist-btn svg { transition: fill .3s var(--easing), transform .3s var(--easing-spring); }
.wishlist-btn.is-saved {
  color: var(--oxblood);
  background: var(--white);
}
.wishlist-btn.is-saved svg {
  fill: var(--oxblood);
  stroke: var(--oxblood);
  animation: heartPop .55s var(--easing-spring);
}
@keyframes heartPop {
  0%   { transform: scale(1); }
  35%  { transform: scale(1.4); }
  60%  { transform: scale(.92); }
  100% { transform: scale(1); }
}

.wishlist-icon-wrap {
  position: relative;
  display: flex;
  align-items: center;
  color: var(--espresso);
  transition: transform var(--transition-fast), color var(--transition-fast);
}
.wishlist-icon-wrap:hover { transform: translateY(-1px); color: var(--oxblood); }
.wishlist-badge {
  position: absolute;
  top: -6px; right: -8px;
  background: var(--oxblood);
  color: var(--cream);
  font-size: .65rem;
  font-weight: 700;
  width: 18px; height: 18px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  transition: transform .3s var(--easing-spring);
}
.wishlist-badge.is-bumped { animation: cartBump .55s var(--easing-spring); }

.wishlist-empty {
  text-align: center;
  padding: var(--space-2xl) var(--space-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  border: 1px dashed var(--cream-dark);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--white) 0%, var(--cream) 100%);
}
.wishlist-empty .catalog-empty__glyph {
  color: var(--oxblood);
  font-size: 3.4rem;
  opacity: .6;
}
.wishlist-card-remove {
  margin-top: .5rem;
  font-size: .7rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--oxblood);
  background: none;
  border: none;
  cursor: pointer;
  padding: .25rem 0;
  align-self: flex-start;
}
.wishlist-card-remove:hover { text-decoration: underline; }

/* ═════════════════════════════════════════════════════════════════════════
   STICKY CONTACT DOCK — always-visible bottom-right (Instagram, Phone, WhatsApp)
═════════════════════════════════════════════════════════════════════════ */
.contact-dock {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .65rem;
}

/* Mini buttons (phone + IG) — always visible, smaller */
.contact-dock__mini {
  width: 42px; height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 6px 16px rgba(43,24,16,.22);
  transition: transform .3s var(--easing-spring), box-shadow .25s var(--easing);
  position: relative;
  text-decoration: none;
  animation: dockMiniIn .55s var(--easing) both;
}
.contact-dock__mini:nth-child(1) { animation-delay: .25s; }
.contact-dock__mini:nth-child(2) { animation-delay: .15s; }
@keyframes dockMiniIn {
  from { opacity: 0; transform: translateY(20px) scale(.6); }
  to   { opacity: 1; transform: none; }
}
.contact-dock__mini:hover { transform: translateY(-3px) scale(1.08); box-shadow: 0 12px 22px rgba(43,24,16,.28); }
.contact-dock__mini--ig    { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.contact-dock__mini--phone { background: var(--espresso); }

/* Main WhatsApp button — biggest, always pulsing */
.contact-dock__main {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(37,211,102,.42), 0 4px 10px rgba(43,24,16,.2);
  transition: transform .35s var(--easing-spring), box-shadow .25s var(--easing);
  position: relative;
  text-decoration: none;
  animation: dockMainIn .7s var(--easing-spring) .35s both;
}
@keyframes dockMainIn {
  from { opacity: 0; transform: translateY(40px) scale(.4); }
  to   { opacity: 1; transform: none; }
}
.contact-dock__main:hover { transform: scale(1.08) translateY(-2px); }
.contact-dock__main:active { transform: scale(.96); }
.contact-dock__main::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: rgba(37,211,102,.5);
  z-index: -1;
  animation: dockPulse 2.4s var(--easing) infinite;
}
@keyframes dockPulse {
  0%   { transform: scale(1);   opacity: .65; }
  70%  { transform: scale(1.65); opacity: 0; }
  100% { transform: scale(1.65); opacity: 0; }
}

/* Tooltips */
.contact-dock__tip {
  position: absolute;
  right: calc(100% + .8rem);
  top: 50%;
  transform: translateY(-50%) translateX(8px);
  background: var(--espresso);
  color: var(--cream);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .04em;
  padding: .4rem .75rem;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s var(--easing), transform .25s var(--easing);
}
.contact-dock__tip::after {
  content: '';
  position: absolute;
  top: 50%; left: 100%;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-left-color: var(--espresso);
}
.contact-dock__main:hover .contact-dock__tip,
.contact-dock__mini:hover .contact-dock__tip {
  opacity: 1;
  transform: translateY(-50%);
}

@media (max-width: 480px) {
  .contact-dock { right: 1rem; bottom: 1rem; gap: .5rem; }
  .contact-dock__main { width: 54px; height: 54px; }
  .contact-dock__mini { width: 38px; height: 38px; }
  .contact-dock__tip  { display: none; }
}

/* ═════════════════════════════════════════════════════════════════════════
   CONTACT PAGE — form + channel cards
═════════════════════════════════════════════════════════════════════════ */
.contact-page { padding-top: var(--page-top); padding-bottom: var(--space-2xl); }
.contact-hero { margin-bottom: var(--space-xl); max-width: 56ch; }

.contact-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: var(--space-2xl);
  align-items: start;
}
.contact-channels { display: flex; flex-direction: column; gap: .65rem; }
.contact-channels__title {
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--espresso);
  margin-bottom: .5rem;
}
.contact-channel {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.1rem;
  background: var(--white);
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--espresso);
  transition: transform .25s var(--easing), border-color .25s var(--easing), box-shadow .25s var(--easing);
}
.contact-channel:hover {
  transform: translateY(-2px);
  border-color: var(--gold);
  box-shadow: 0 12px 26px -10px rgba(43,24,16,.18);
}
.contact-channel--info { cursor: default; }
.contact-channel--info:hover { transform: none; border-color: var(--cream-dark); box-shadow: none; }
.contact-channel__icon {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--cream);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--espresso);
  transition: background .25s var(--easing), color .25s var(--easing);
}
.contact-channel--whatsapp:hover .contact-channel__icon { background: #25D366; color: #fff; }
.contact-channel--phone:hover    .contact-channel__icon { background: var(--espresso); color: var(--cream); }
.contact-channel--instagram:hover .contact-channel__icon { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); color: #fff; }
.contact-channel__label {
  display: block;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: .15rem;
}
.contact-channel__value {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--espresso);
}

.contact-form-wrap {
  background: var(--white);
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: 0 1px 0 rgba(43,24,16,.04);
}
.contact-form-wrap__title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin-bottom: .35rem;
}
.contact-form-wrap__lede {
  color: var(--espresso-lt);
  margin-bottom: var(--space-lg);
  max-width: 50ch;
}

.contact-form { display: flex; flex-direction: column; gap: var(--space-sm); }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
}
.field-error {
  font-size: .75rem;
  color: var(--oxblood);
  margin-top: .25rem;
  display: block;
}
.contact-form input.has-error,
.contact-form textarea.has-error {
  border-color: var(--oxblood);
  background: rgba(122, 42, 42, 0.04);
}

.contact-success {
  text-align: center;
  padding: var(--space-xl) var(--space-md);
}
.contact-success__check {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #d1f0d8, #a8e0b8);
  color: #2A5A2A;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-md);
  animation: checkPop .6s var(--easing-spring);
}
@keyframes checkPop {
  from { transform: scale(0); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
.contact-success h2 { font-family: var(--font-display); margin-bottom: .5rem; }
.contact-success p { margin-bottom: var(--space-md); color: var(--espresso-lt); max-width: 40ch; margin-left: auto; margin-right: auto; }

@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; gap: var(--space-xl); }
  .form-row     { grid-template-columns: 1fr; }
  .contact-form-wrap { padding: var(--space-lg); }
}

/* ═════════════════════════════════════════════════════════════════════════
   CHECKOUT — Google Maps pin button
═════════════════════════════════════════════════════════════════════════ */
.map-pin-row {
  margin-top: .65rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .65rem;
}
.map-pin-btn {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .55rem .9rem;
  border: 1.5px dashed var(--gold);
  background: rgba(197,165,114,.06);
  color: var(--espresso);
  font-size: .82rem;
  font-weight: 600;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background .25s var(--easing), border-color .25s var(--easing), transform .15s var(--easing);
}
.map-pin-btn:hover { background: rgba(197,165,114,.18); border-style: solid; }
.map-pin-btn:active { transform: scale(.98); }
.map-pin-btn.is-loading { opacity: .6; pointer-events: none; }
.map-pin-btn.is-pinned {
  border-style: solid;
  border-color: var(--espresso);
  background: var(--cream-dark);
  color: var(--espresso);
}
.map-pin-link {
  font-size: .82rem;
  font-weight: 600;
  color: var(--gold-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.map-pin-link:hover { color: var(--espresso); }
.map-pin-status {
  flex-basis: 100%;
  margin: 0;
  font-size: .78rem;
  color: var(--espresso-lt);
}
.map-pin-status.is-error { color: var(--oxblood); }

/* ═════════════════════════════════════════════════════════════════════════
   ADMIN — message cards + nav badge
═════════════════════════════════════════════════════════════════════════ */
.admin-nav__item { position: relative; }
.admin-nav__badge {
  background: #b45309;
  color: #fff;
  font-size: .65rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 1px 7px;
  margin-left: auto;
  min-width: 20px;
  text-align: center;
}
.messages-list { display: flex; flex-direction: column; gap: 1rem; }
.message-card {
  background: #fff;
  border: 1px solid #e9e2d2;
  border-radius: 10px;
  padding: 1.1rem 1.25rem;
  transition: box-shadow .2s ease, border-color .2s ease;
}
.message-card:hover { box-shadow: 0 4px 18px rgba(43,24,16,.06); }
.message-card.is-unread { border-left: 3px solid #b45309; background: #fffaf0; }
.message-card__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: .4rem;
}
.message-card__sender { display: flex; flex-direction: column; gap: .15rem; }
.message-card__name {
  font-weight: 700;
  font-size: .98rem;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}
.message-card__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #b45309;
}
.message-card__email {
  font-size: .82rem;
  color: var(--a-muted, #8A7F74);
}
.message-card__time {
  font-size: .78rem;
  color: var(--a-muted, #8A7F74);
  white-space: nowrap;
}
.message-card__subject {
  font-weight: 600;
  margin: .4rem 0 .25rem;
  font-size: .92rem;
}
.message-card__body {
  font-size: .9rem;
  line-height: 1.6;
  color: #3d2d23;
  margin: .25rem 0 .85rem;
  white-space: pre-wrap;
}
.message-card__foot {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem;
  border-top: 1px solid #f0e9d8;
  padding-top: .75rem;
}
.message-card__contact,
.message-card__actions { display: flex; gap: .4rem; flex-wrap: wrap; }

/* ═════════════════════════════════════════════════════════════════════════
   ROUND 4 — fixes: wishlist hidden, sticky filter, home margins,
   view-all buttons, cart UI, district select, more animations
═════════════════════════════════════════════════════════════════════════ */

/* Wishlist empty state was overriding [hidden] via display:flex.
   We use inline style="display:none" in the markup instead, but also: */
.wishlist-empty { display: flex; flex-direction: column; align-items: center; gap: var(--space-md); }
[hidden]:not(:where(.allow-display)) { display: none !important; }

/* ── Filter sidebar — robust sticky on scroll ────────────────────────────── */
@media (min-width: 861px) {
  .catalog__layout { align-items: start; }
  .filter-sidebar {
    position: sticky;
    top: 88px;
    align-self: start;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
    overscroll-behavior: contain;
    /* Subtle gold scrollbar */
    scrollbar-width: thin;
    scrollbar-color: var(--gold) transparent;
  }
  .filter-sidebar::-webkit-scrollbar { width: 6px; }
  .filter-sidebar::-webkit-scrollbar-track { background: transparent; }
  .filter-sidebar::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 3px; opacity: .6; }
}

/* Avoid `overflow:auto` ancestors breaking sticky — scope a guard */
.catalog,
.catalog__layout,
.catalog__main,
main { overflow: visible; }

/* ── Search highlight pulse on results update ────────────────────────────── */
@keyframes searchHighlight {
  0%   { box-shadow: 0 0 0 0 rgba(197,165,114,.55); }
  100% { box-shadow: 0 0 0 16px rgba(197,165,114,0); }
}
.filter-search.is-active { animation: searchHighlight 1s var(--easing) both; }

/* ═════════════════════════════════════════════════════════════════════════
   HOME PAGE — boxed feel, generous side margins
═════════════════════════════════════════════════════════════════════════ */
main > .hero { /* hero stays as-is — full-bleed for drama */ }

/* New "main page" wrapper to cover the rest */
.home-shell {
  padding: 0 var(--page-margin);
}
.home-shell > .section,
.home-shell > .brand-moment,
.home-shell > .container { padding-left: 0; padding-right: 0; }

/* Brand moment: more breathing room and decorative borders */
.brand-moment {
  margin: var(--space-2xl) 0;
  padding-block: var(--space-2xl);
  position: relative;
}

/* ═════════════════════════════════════════════════════════════════════════
   "VIEW ALL" / SECTION HEADER LINKS — proper button look
═════════════════════════════════════════════════════════════════════════ */
.section-header a {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .55rem 1.1rem;
  border: 1.5px solid var(--espresso);
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--espresso);
  background: transparent;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: color .35s var(--easing), border-color .35s var(--easing), padding .35s var(--easing);
}
.section-header a::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--espresso);
  transform: translateX(-101%);
  transition: transform .45s var(--easing);
  z-index: -1;
}
.section-header a::after {
  /* Replace the literal "→" with an animated arrow */
  content: '';
  display: inline-block;
  width: 16px; height: 1.5px;
  background: currentColor;
  position: relative;
  transition: width .35s var(--easing), background .35s var(--easing);
}
.section-header a:hover {
  color: var(--cream);
  border-color: var(--espresso);
  padding-right: 1.4rem;
}
.section-header a:hover::before { transform: translateX(0); }
.section-header a:hover::after  { width: 22px; }

/* Strip browsery "→" suffix that's already in HTML — wrap it */
.section-header a > br + *,
.section-header a {
  /* Hide trailing arrow text when our pseudo arrow is in play */
}
/* We can't easily strip the existing "→" character without changing markup —
   so add a sibling rule that gives it room. Better: tweak markup later if needed. */

/* ═════════════════════════════════════════════════════════════════════════
   CART — better UI for items + remove icon button
═════════════════════════════════════════════════════════════════════════ */
.cart-page { padding-top: var(--page-top); padding-bottom: var(--space-2xl); }
.cart-item {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: var(--space-md);
  align-items: center;
  padding: var(--space-md);
  background: var(--white);
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius-lg);
  transition: box-shadow .25s var(--easing), transform .25s var(--easing);
}
.cart-item:hover {
  box-shadow: 0 8px 24px -12px rgba(43,24,16,.12);
  transform: translateY(-1px);
}
.cart-item__img {
  width: 110px; height: 110px;
  object-fit: contain;
  object-position: center;
  background: var(--cream-dark);
  border-radius: var(--radius);
}
.cart-item__body { min-width: 0; }
.cart-item__name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: .25rem;
}
.cart-item__variant { font-size: .8rem; color: var(--gold-dark); margin-bottom: .25rem; }
.cart-item__price   { font-weight: 600; }

.cart-item__controls {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .65rem;
}

.qty-control--cart {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--cream-dark);
  border-radius: 999px;
  background: var(--cream);
  overflow: hidden;
}
.qty-control--cart .cart-qty-btn {
  width: 36px; height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--espresso);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background .2s var(--easing), color .2s var(--easing);
}
.qty-control--cart .cart-qty-btn:hover:not([disabled]) {
  background: var(--espresso);
  color: var(--cream);
}
.qty-control--cart .cart-qty-btn[disabled] { opacity: .4; cursor: not-allowed; }
.qty-control--cart .cart-qty-input {
  width: 38px;
  height: 36px;
  border: none;
  border-left: 1.5px solid var(--cream-dark);
  border-right: 1.5px solid var(--cream-dark);
  background: transparent;
  text-align: center;
  font-size: .9rem;
  font-weight: 600;
  color: var(--espresso);
  -moz-appearance: textfield;
}
.qty-control--cart .cart-qty-input::-webkit-outer-spin-button,
.qty-control--cart .cart-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-control--cart .cart-qty-input:focus { outline: none; background: rgba(197,165,114,.12); }

.cart-item__remove {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .35rem .8rem;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--oxblood);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: background .2s var(--easing), color .2s var(--easing), border-color .2s var(--easing);
}
.cart-item__remove:hover {
  background: var(--oxblood);
  color: var(--cream);
  border-color: var(--oxblood);
}
.cart-item__remove svg { transition: transform .25s var(--easing); }
.cart-item__remove:hover svg { transform: rotate(8deg) scale(1.05); }

@media (max-width: 600px) {
  .cart-item {
    grid-template-columns: 84px 1fr;
    grid-template-rows: auto auto;
  }
  .cart-item__img { width: 84px; height: 84px; }
  .cart-item__controls {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

/* ═════════════════════════════════════════════════════════════════════════
   CHECKOUT — district select, totals breakdown, map paste box
═════════════════════════════════════════════════════════════════════════ */
.checkout-page { padding-top: var(--page-top); padding-bottom: var(--space-2xl); }
.checkout-section-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: var(--space-md);
  font-weight: 600;
  color: var(--espresso);
}

.district-select {
  background-image:
    linear-gradient(45deg, transparent 50%, var(--espresso) 50%),
    linear-gradient(135deg, var(--espresso) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 12px) 50%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.5rem !important;
  cursor: pointer;
}

.form-hint {
  display: block;
  margin-top: .35rem;
  font-size: .78rem;
  color: var(--espresso-lt);
  font-style: italic;
}
.form-group__label {
  font-size: .875rem;
  font-weight: 600;
  margin-bottom: .35rem;
  display: block;
}

.map-pin-tools {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: .5rem;
}
.map-pin-btn {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .55rem 1rem;
  border: 1.5px solid var(--gold);
  background: rgba(197,165,114,.06);
  color: var(--espresso);
  font-size: .82rem;
  font-weight: 600;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  transition: background .25s var(--easing), border-color .25s var(--easing), transform .15s var(--easing);
}
.map-pin-btn:hover { background: rgba(197,165,114,.18); border-style: solid; transform: translateY(-1px); }
.map-pin-btn:active { transform: scale(.98); }
.map-pin-btn.is-loading { opacity: .6; pointer-events: none; }
.map-pin-btn.is-pinned { border-color: var(--espresso); background: var(--cream-dark); color: var(--espresso); }
.map-pin-btn--secondary {
  border-color: var(--cream-dark);
  background: var(--cream);
}
.map-pin-paste {
  width: 100%;
  padding: .65rem .9rem;
  border: 1.5px solid var(--cream-dark);
  border-radius: var(--radius);
  background: var(--cream);
  font-family: var(--font-body);
  font-size: .85rem;
  color: var(--espresso);
}
.map-pin-paste:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(197,165,114,.18); }
.map-pin-status {
  margin: .5rem 0 0;
  font-size: .78rem;
  color: var(--espresso-lt);
  word-break: break-all;
}
.map-pin-status.is-error { color: var(--oxblood); }

/* Totals breakdown in summary aside */
.checkout-totals {
  display: flex;
  flex-direction: column;
  gap: .55rem;
  margin: var(--space-md) 0 var(--space-sm);
  padding-top: var(--space-md);
  border-top: 1px solid var(--cream-dark);
}
.checkout-totals__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: .9rem;
  color: var(--espresso-lt);
}
.checkout-totals__row dt { font-weight: 500; }
.checkout-totals__row dd { font-weight: 600; color: var(--espresso); }
.checkout-totals__row--grand {
  font-size: 1.05rem;
  padding-top: .65rem;
  margin-top: .35rem;
  border-top: 1px solid var(--cream-dark);
}
.checkout-totals__row--grand dt { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; color: var(--espresso); }
.checkout-totals__row--grand dd { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; color: var(--espresso); }

.summary-line {
  display: flex;
  justify-content: space-between;
  font-size: .85rem;
  padding: .35rem 0;
  color: var(--espresso-lt);
  border-bottom: 1px dashed var(--cream-dark);
}
.summary-line:last-child { border-bottom: none; }

/* ═════════════════════════════════════════════════════════════════════════
   ANIMATIONS — extra polish
═════════════════════════════════════════════════════════════════════════ */

/* Hero title — letterspacing reveal */
@media (prefers-reduced-motion: no-preference) {
  .hero__title {
    background-image: linear-gradient(180deg, var(--cream) 0%, var(--cream) 60%, rgba(244,237,224,.55) 100%);
    -webkit-background-clip: text;
            background-clip: text;
    -webkit-text-fill-color: transparent;
            text-fill-color: transparent;
  }
}

/* Product card image scale on hover — subtle */
.product-card__img-wrap {
  transition: box-shadow .35s var(--easing);
}

/* Product card image gradient sheen on hover */
.product-card__img-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 0%, transparent 40%, rgba(255,255,255,.18) 50%, transparent 60%);
  transform: translateX(-150%);
  transition: transform .9s var(--easing);
  z-index: 1;
  pointer-events: none;
}
.product-card:hover .product-card__img-wrap::before { transform: translateX(150%); }

/* Smooth entrance for filter sidebar */
.filter-sidebar { animation: sidebarIn .55s var(--easing) both; }
@keyframes sidebarIn {
  from { opacity: 0; transform: translateX(-12px); }
  to   { opacity: 1; transform: none; }
}

/* Sort bar entry */
.sort-bar { animation: barIn .5s var(--easing) both; }
@keyframes barIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: none; }
}

/* Cart item entrance stagger — disabled. Re-render hides item, looks broken. */
.cart-items .cart-item { animation: none !important; opacity: 1 !important; }

/* Underline grow on links inside content */
main a:not(.btn):not(.product-card__name a):not(.section-header a):not(.contact-channel):not(.contact-dock__main):not(.contact-dock__mini):not(.filter-cat-link):not(.pagination__link):not(.pagination__nav):not(.sort-dropdown__menu a):not(.breadcrumb a) {
  background-image: linear-gradient(to right, currentColor, currentColor);
  background-position: 0 100%;
  background-size: 0% 1px;
  background-repeat: no-repeat;
  transition: background-size .35s var(--easing);
}
main a:not(.btn):not(.product-card__name a):not(.section-header a):not(.contact-channel):not(.contact-dock__main):not(.contact-dock__mini):not(.filter-cat-link):not(.pagination__link):not(.pagination__nav):not(.sort-dropdown__menu a):not(.breadcrumb a):hover {
  background-size: 100% 1px;
}

/* Page-load: subtle gold flash on logo */
.site-logo {
  position: relative;
}
.site-logo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(197,165,114,.55) 50%, transparent 70%);
  background-size: 200% 100%;
  background-position: 200% 0;
  animation: logoSheen 5s var(--easing) 1.2s 1;
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
          text-fill-color: transparent;
  pointer-events: none;
}
@keyframes logoSheen {
  to { background-position: -200% 0; }
}

/* Section-header rule above title */
.section-header h2 { position: relative; }
.section-header h2::before {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--gold);
  margin-bottom: .65rem;
  transform-origin: left;
  animation: ruleGrow 1s var(--easing) .25s both;
}

/* Toast animation - improved */
.toast {
  position: relative;
  padding: .8rem 1.1rem .8rem 2rem;
  border-radius: var(--radius-lg);
  background: var(--espresso);
  color: var(--cream);
  font-size: .875rem;
  box-shadow: 0 8px 24px rgba(43,24,16,.32);
  animation: toastInRich .35s var(--easing-spring);
}
@keyframes toastInRich {
  from { opacity: 0; transform: translateX(20px) scale(.92); }
  to   { opacity: 1; transform: none; }
}

/* Make sure page-margin sides apply to home explicitly */
@media (max-width: 480px) {
  .checkout-page,
  .cart-page { padding-left: var(--page-margin); padding-right: var(--page-margin); }
}

/* ═════════════════════════════════════════════════════════════════════════
   ROUND 5 — header social, filter accordion, stronger mobile, more animation
═════════════════════════════════════════════════════════════════════════ */

/* ── Header social icons (desktop) ──────────────────────────────────────── */
.header-social {
  display: flex;
  align-items: center;
  gap: .35rem;
  padding-right: .35rem;
  border-right: 1px solid var(--cream-dark);
  margin-right: .25rem;
}
.header-social__link {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--espresso-lt);
  transition: color .2s var(--easing), background .2s var(--easing), transform .25s var(--easing-spring);
}
.header-social__link:hover {
  color: var(--espresso);
  background: var(--cream-dark);
  transform: translateY(-2px) scale(1.06);
}

/* ── In-nav social row (mobile drawer only) ─────────────────────────────── */
.site-nav__social { display: none; }

@media (max-width: 768px) {
  .header-social { display: none; }
  .site-nav.is-open .site-nav__social {
    display: flex;
    gap: .65rem;
    margin-top: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid var(--cream-dark);
    width: 100%;
  }
  .site-nav.is-open .site-nav__social a {
    width: 40px; height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--cream-dark);
    color: var(--espresso);
    transition: transform .25s var(--easing-spring), background .2s var(--easing);
  }
  .site-nav.is-open .site-nav__social a::after { display: none; }
  .site-nav.is-open .site-nav__social a:hover {
    background: var(--espresso);
    color: var(--cream);
    transform: scale(1.08);
  }
}

@media (max-width: 480px) {
  /* Tighter header on small phones — keep cart + hamburger fully visible */
  .site-header { padding: 0 var(--space-sm); }
  .site-header__inner { gap: .35rem; }
  .site-logo { font-size: 1.05rem; }
}

/* ── Filter accordion (Collection collapse) ─────────────────────────────── */
.filter-accordion { padding-bottom: 0 !important; }
.filter-accordion__head {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  list-style: none;
  user-select: none;
  padding: .25rem 0 .85rem 0;
  margin: 0 !important;
  border: none;
}
.filter-accordion__head::-webkit-details-marker { display: none; }
.filter-accordion__head::marker { content: ''; }
.filter-accordion__head .filter-block__title { margin: 0 !important; padding: 0 !important; flex: 1; }
.filter-accordion__chev {
  display: inline-flex;
  width: 22px; height: 22px;
  align-items: center;
  justify-content: center;
  color: var(--espresso-lt);
  transition: transform .3s var(--easing), color .2s var(--easing);
}
.filter-accordion[open] .filter-accordion__chev { transform: rotate(180deg); color: var(--espresso); }
.filter-accordion .filter-cat-list {
  padding-bottom: var(--space-md);
  animation: filterAccordionIn .35s var(--easing) both;
}
@keyframes filterAccordionIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}

/* ── Filter sidebar — improved scroll & visual polish ───────────────────── */
.filter-sidebar {
  scroll-padding-top: var(--space-md);
}
@media (min-width: 861px) {
  .filter-sidebar {
    /* Stronger sticky scroll: keep filters always reachable while scrolling
       a long product grid. Custom scrollbar already styled above. */
    max-height: calc(100vh - 110px);
    overflow-y: auto;
    padding-right: .5rem;
  }
  /* Keep the form itself happy as the inner scroll target */
  .filter-form { padding-right: .25rem; }
}

/* Mobile filter — defensive: explicitly hide off-canvas, show only when open */
@media (max-width: 860px) {
  .filter-sidebar {
    position: fixed !important;
    top: 0; right: 0; bottom: 0; left: auto;
    width: min(360px, 88vw);
    max-height: 100vh;
    overflow-y: auto;
    transform: translateX(101%);
    transition: transform .35s var(--easing);
    border-left: 1px solid var(--cream-dark);
    background: var(--white);
    z-index: 110;
    box-shadow: -16px 0 40px rgba(15,8,3,.18);
    padding: var(--space-lg);
    visibility: hidden;
    opacity: 0;
  }
  .filter-sidebar.is-open {
    transform: none;
    visibility: visible;
    opacity: 1;
  }
  .filter-sidebar__close { display: inline-flex !important; }
  .sort-bar__filter-toggle { display: inline-flex !important; }
  .catalog__layout { grid-template-columns: 1fr !important; gap: 0; }
}

/* ── Sort bar fully responsive on mobile ────────────────────────────────── */
@media (max-width: 600px) {
  .sort-bar { gap: .5rem; flex-wrap: wrap; }
  .sort-bar__count { font-size: .78rem; flex-basis: 100%; order: 2; margin-top: .25rem; }
  .sort-bar__filter-toggle { font-size: .72rem; padding: .45rem .75rem; }
  .sort-dropdown summary { padding: .45rem .75rem; font-size: .78rem; }
}

/* ── Mobile general polish ──────────────────────────────────────────────── */
@media (max-width: 600px) {
  .breadcrumb { font-size: .78rem; flex-wrap: wrap; }
  .product-detail { gap: var(--space-md); }
  .product-detail__name { font-size: clamp(1.55rem, 6vw, 2.2rem); }
  .cart-item {
    grid-template-columns: 86px 1fr;
    grid-template-areas:
      "img body"
      "ctrl ctrl";
    padding: var(--space-sm);
  }
  .cart-item__img { grid-area: img; width: 86px; height: 86px; }
  .cart-item__body { grid-area: body; }
  .cart-item__controls { grid-area: ctrl; flex-direction: row; align-items: center; justify-content: space-between; }
  .checkout-layout { gap: var(--space-md); }
  .form-row { grid-template-columns: 1fr !important; }
  .checkout-section-title { font-size: 1.15rem; }
  .map-pin-tools { flex-wrap: wrap; }
  .container,
  .container--narrow { padding-left: var(--space-sm); padding-right: var(--space-sm); }
  .home-shell { padding: 0 var(--space-sm); }
  .hero__title { font-size: clamp(2rem, 8vw, 3rem); }
  .hero__sub { font-size: .95rem; }
  .qty-stock-hint { font-size: .78rem; }
}

/* ── Stock hint on product page ─────────────────────────────────────────── */
.qty-row { display: flex; align-items: center; gap: var(--space-md); flex-wrap: wrap; margin-top: var(--space-sm); margin-bottom: var(--space-sm); }
.qty-stock-hint {
  font-size: .82rem;
  color: var(--espresso-lt);
  letter-spacing: .02em;
}
.qty-stock-hint strong { color: var(--oxblood); font-weight: 700; }

/* ── ENHANCED ANIMATIONS — landing page wow factor ──────────────────────── */

/* Hero title — stagger word-by-word with a gold sweep */
.hero__title {
  background: linear-gradient(110deg,
    var(--cream) 0%, var(--cream) 35%,
    var(--gold) 50%, var(--cream) 65%, var(--cream) 100%);
  background-size: 250% 100%;
  background-position: 100% 50%;
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: heroSheen 2.6s var(--easing) 1.4s 1 forwards, heroUp 1.05s .32s both cubic-bezier(.22,1,.36,1);
}
@keyframes heroSheen {
  from { background-position: 100% 50%; }
  to   { background-position: 0% 50%; }
}
.hero__title em {
  /* Keep gold accent visible during the sheen sweep */
  -webkit-text-fill-color: var(--gold);
}

/* Hero CTA breath effect */
.hero__content .btn--ghost {
  position: relative;
  overflow: hidden;
}
.hero__content .btn--ghost::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,.25), transparent);
  transform: translateX(-100%);
  animation: ctaGleam 4.5s var(--easing) 2s infinite;
}
@keyframes ctaGleam {
  0%   { transform: translateX(-100%); }
  18%  { transform: translateX(120%); }
  100% { transform: translateX(120%); }
}

/* Brand moment quote — typewriter-feel rise */
.brand-moment blockquote {
  position: relative;
  display: block;
  text-align: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  color: var(--espresso);
  letter-spacing: -.005em;
  max-width: 32ch;
  margin: 0 auto;
  line-height: 1.35;
}
.brand-moment blockquote::before,
.brand-moment blockquote::after {
  content: '';
  position: absolute;
  height: 1px;
  width: 0;
  background: var(--gold);
  top: 50%;
  transition: width 1s var(--easing) .3s;
}
.brand-moment blockquote::before { right: calc(100% + 1rem); }
.brand-moment blockquote::after  { left:  calc(100% + 1rem); }
.brand-moment.is-visible blockquote::before,
.brand-moment.is-visible blockquote::after { width: 80px; }

/* Collection card — stronger interaction (hover lift + image zoom + name slide) */
.collection-card {
  display: block;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  transform: translateY(0);
  transition: transform .55s var(--easing), box-shadow .45s var(--easing);
  will-change: transform;
}
.collection-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 48px -16px rgba(43,24,16,.35);
}
.collection-card__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transition: transform 1.2s var(--easing), filter .6s var(--easing);
  will-change: transform;
}
.collection-card:hover .collection-card__img {
  transform: scale(1.08) rotate(.6deg);
  filter: brightness(.85) saturate(1.05);
}
.collection-card__overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: var(--space-sm) var(--space-md);
  background: linear-gradient(to top, rgba(43,24,16,.85), rgba(43,24,16,0));
  color: var(--cream);
  transform: translateY(0);
  transition: transform .4s var(--easing);
}
.collection-card__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: .01em;
  position: relative;
  display: inline-block;
}
.collection-card__name::after {
  content: '';
  position: absolute;
  left: 0; bottom: -3px;
  height: 1px;
  width: 0;
  background: var(--gold);
  transition: width .45s var(--easing) .05s;
}
.collection-card:hover .collection-card__name::after { width: 100%; }

/* Product card — micro-interaction polish */
.product-card { transition: transform .4s var(--easing), box-shadow .4s var(--easing); }
.product-card:hover { transform: translateY(-4px); box-shadow: 0 18px 36px -18px rgba(43,24,16,.22); }
.product-card .product-card__img { transition: transform .9s var(--easing); }
.product-card:hover .product-card__img { transform: scale(1.05); }

/* Section reveal — fade up */
.section.is-revealing > * { animation: fadeUpSoft .8s var(--easing) both; }
.section.is-revealing > *:nth-child(2) { animation-delay: .1s; }
.section.is-revealing > *:nth-child(3) { animation-delay: .2s; }
@keyframes fadeUpSoft {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}

/* Floating section dividers — subtle decoration */
.section-header { position: relative; }
.section-header h2 { position: relative; display: inline-block; }
.section-header h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -8px;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--gold), transparent);
  transition: width .8s var(--easing) .2s;
}
.section-header.reveal.is-visible h2::after,
.section-header.is-revealing h2::after { width: 56px; }

/* Footer link hover slide */
.footer-col a {
  position: relative;
  padding-left: 0;
  transition: padding-left .3s var(--easing), opacity var(--transition-fast);
}
.footer-col a::before {
  content: '→';
  position: absolute;
  left: -.85rem;
  opacity: 0;
  transition: opacity .25s var(--easing), left .25s var(--easing);
  color: var(--gold);
}
.footer-col a:hover { padding-left: .85rem; }
.footer-col a:hover::before { opacity: 1; left: 0; }

/* Form input focus animation */
.form-group input,
.form-group textarea,
.form-group select,
.checkout-page input,
.checkout-page textarea,
.checkout-page select {
  transition: border-color .25s var(--easing), box-shadow .25s var(--easing), transform .15s var(--easing);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  box-shadow: 0 0 0 3px rgba(197,165,114,.18);
}

/* Cart item slide-in (no animation on re-render — would hide cart on every +/-) */
.cart-item { /* animation removed; opacity stays 1 at all times */ }

/* Apply button on filter pulse on hover */
.filter-actions .btn--primary {
  position: relative;
  overflow: hidden;
}
.filter-actions .btn--primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255,255,255,.35), transparent 60%);
  opacity: 0;
  transition: opacity .3s var(--easing);
}
.filter-actions .btn--primary:hover::after { opacity: 1; }

/* Smooth scroll for filter sidebar contents */
.filter-sidebar { scroll-behavior: smooth; }

/* Site-nav home link special hover */
.site-nav__link {
  position: relative;
}

/* Hero parallax floating particles (CSS-only fallback) */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(2px 2px at 20% 30%, rgba(197,165,114,.4), transparent),
    radial-gradient(1.5px 1.5px at 70% 60%, rgba(197,165,114,.3), transparent),
    radial-gradient(2px 2px at 40% 80%, rgba(197,165,114,.35), transparent),
    radial-gradient(1.5px 1.5px at 85% 25%, rgba(197,165,114,.25), transparent);
  background-repeat: no-repeat;
  z-index: 2;
  pointer-events: none;
  animation: heroSparkle 8s linear infinite;
  opacity: .6;
}
@keyframes heroSparkle {
  0%, 100% { opacity: .35; transform: translateY(0); }
  50%      { opacity: .85; transform: translateY(-12px); }
}

/* ── Force hide any leftover dock minis (Instagram + phone) ─────────────── */
.contact-dock__mini { display: none !important; }
.contact-dock { gap: 0 !important; }

/* ── Responsive cart layout small screens (already handled but defensive) ── */
@media (max-width: 480px) {
  .cart-page h1 { font-size: 1.7rem; }
  .checkout-page h1 { font-size: 1.7rem; }
  .qty-control--cart .cart-qty-btn { width: 32px; height: 32px; }
  .qty-control--cart .cart-qty-input { width: 36px; height: 32px; }
  .product-detail__price { font-size: 1.4rem; }
}

/* ── Tilt subtle on cards (mouse only) ──────────────────────────────────── */
@media (hover: hover) and (pointer: fine) {
  .product-card[data-tilt] { transform-style: preserve-3d; }
}

/* ── Scroll-driven reveal: collection grid stagger ──────────────────────── */
.collections-grid .collection-card {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s var(--easing), transform .8s var(--easing);
}
.collections-grid.is-revealed .collection-card { opacity: 1; transform: none; }
.collections-grid.is-revealed .collection-card:nth-child(1) { transition-delay: .05s; }
.collections-grid.is-revealed .collection-card:nth-child(2) { transition-delay: .15s; }
.collections-grid.is-revealed .collection-card:nth-child(3) { transition-delay: .25s; }
.collections-grid.is-revealed .collection-card:nth-child(4) { transition-delay: .35s; }
.collections-grid.is-revealed .collection-card:nth-child(5) { transition-delay: .45s; }
.collections-grid.is-revealed .collection-card:nth-child(n+6) { transition-delay: .55s; }
@media (prefers-reduced-motion: reduce) {
  .collections-grid .collection-card { opacity: 1; transform: none; transition: none; }
}

/* ── Page Loading Overlay ────────────────────────────────────────────────── */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  visibility: visible;
  transition: opacity .4s var(--easing), visibility 0s linear .4s;
}
.page-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .4s var(--easing), visibility 0s linear .4s;
}
.page-loader__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
}
.page-loader__logo {
  width: clamp(180px, 30vw, 280px);
  height: auto;
  display: block;
  animation: page-loader-pulse 1.8s ease-in-out infinite;
}
.page-loader__ring {
  width: 38px;
  height: 38px;
  border: 2px solid rgba(43,24,16,.10);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: page-loader-spin 850ms linear infinite;
}
@keyframes page-loader-pulse {
  0%, 100% { opacity: .72; transform: translateY(0); }
  50%      { opacity: 1;   transform: translateY(-3px); }
}
@keyframes page-loader-spin {
  to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .page-loader__logo,
  .page-loader__ring { animation: none; }
}

