:root {
  color-scheme: light;
  /* ── Core palette ── */
  --paper:      #f7f4ee;  /* warm bone page background */
  --paper-2:    #efe9df;
  --card:       #ffffff;
  --ink:        #211f1b;  /* near-black body text */
  --ink-2:      #5b554c;  /* secondary text */
  --ink-soft:   #938b7e;  /* muted / captions */
  --line:       #e7e0d3;  /* dividers */
  --line-2:     #dcd3c3;  /* stronger dividers */
  --clay:       #b9543a;  /* terracotta accent — used sparingly */
  --clay-d:     #9d4329;
  --olive:      #4c5b48;  /* muted sage green */
  --olive-dim:  rgba(76,91,72,0.1);

  /* ── Legacy aliases (kept for backward compat with existing markup) ── */
  --cream:          #f7f4ee;
  --cream-warm:     #f9f4ea;
  --dark:           #1a2920;   /* brand forest-green — footer bg, dark buttons */
  --mid:            #5b554c;   /* secondary text */
  --star:           #d48800;
  --error:          #c0392b;
  --light:          #e8e2d9;
  --sage:           #4c5b48;   /* updated — muted olive sage */
  --sage-medium:    #6b8c75;
  --sage-soft:      #d8e2d4;
  --sage-bg:        rgba(76,91,72,0.08);
  --accent:         #b9543a;   /* clay terracotta — same as --clay */
  --terracotta:     #b9543a;
  --accent-light:   #f5ede8;
  --aqua:           #16B5A3;
  --aqua-bg:        rgba(22, 181, 163, 0.11);
  --white:          #ffffff;
  --border:         #e7e0d3;
  --radius:         10px;
  --radius-lg:      18px;
  --maxw:           1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Outfit', sans-serif;
  background: var(--cream);
  color: var(--dark);
  font-size: 16px;
  line-height: 1.6;
}

/* ─── NAV ─────────────────────────────── */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.15rem 2.5rem;
  border-bottom: 1px solid transparent;
  background: rgba(247,244,238,0.85);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: border-color 0.3s ease, padding 0.3s ease, background 0.3s ease;
}
.nav.scrolled {
  border-color: var(--border);
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}

.nav-logo {
  font-family: 'Fraunces', serif;
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--dark);
  text-decoration: none;
  letter-spacing: -0.4px;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}
.nav-logo span { color: var(--accent); }
.nav-logo svg { flex-shrink: 0; display: block; }
.nav-logo:hover { color: var(--dark); opacity: 0.85; }

.nav-links { display: flex; gap: 2rem; }
.nav-links a {
  color: var(--mid);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 400;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--dark); }

.cart-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--dark);
  color: var(--white);
  border: none;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.875rem;
  cursor: pointer;
  transition: background 0.2s;
}
.cart-btn:hover { background: #333; }

.cart-count {
  background: var(--aqua);
  color: white;
  border-radius: 999px;
  min-width: 20px;
  height: 20px;
  font-size: 0.72rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
}

/* ─── NAV ICON BUTTONS (search + cart) ─── */
.nav-icons { display: flex; align-items: center; gap: 0.25rem; }
.icon-btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border: none; background: transparent; color: var(--dark);
  border-radius: 999px; cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
  -webkit-tap-highlight-color: transparent;
}
.icon-btn:hover { background: var(--sage-bg); color: var(--accent); }
.icon-btn:active { transform: scale(0.92); }
.icon-btn svg { display: block; }
.cart-badge {
  position: absolute; top: 3px; right: 2px;
  min-width: 17px; height: 17px; padding: 0 4px;
  background: var(--accent); color: #fff;
  border-radius: 999px; font-size: 0.64rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  line-height: 1; box-shadow: 0 0 0 2px var(--cream);
  font-family: 'Outfit', sans-serif;
}
.cart-badge--empty { display: none; }

/* ─── PRODUCT SEARCH OVERLAY ───────────── */
.search-overlay { position: fixed; inset: 0; z-index: 600; }
.search-overlay[hidden] { display: none; }
.search-backdrop {
  position: absolute; inset: 0; background: rgba(26, 41, 32, 0.32);
  opacity: 0; transition: opacity 0.22s ease;
}
.search-overlay.open .search-backdrop { opacity: 1; }
.search-panel {
  position: absolute; top: 0; left: 0; right: 0;
  background: var(--white);
  box-shadow: 0 14px 36px rgba(26, 41, 32, 0.18);
  padding: 1rem 1.1rem 1.3rem;
  transform: translateY(-16px); opacity: 0;
  transition: transform 0.26s cubic-bezier(.2, .7, .3, 1), opacity 0.22s ease;
  max-height: 88vh; overflow-y: auto;
  border-bottom-left-radius: 18px; border-bottom-right-radius: 18px;
}
.search-overlay.open .search-panel { transform: translateY(0); opacity: 1; }
.search-bar {
  display: flex; align-items: center; gap: 0.6rem;
  max-width: 660px; margin: 0 auto;
  border: 1.5px solid var(--border); border-radius: 14px;
  padding: 0.62rem 0.9rem; color: var(--mid);
  transition: border-color 0.18s ease;
}
/* Focus indication lives on the WHOLE bar (one soft ring) — not on the input,
   so there's no second border inside the wrapper. */
.search-bar:focus-within { border-color: var(--sage-medium); box-shadow: 0 0 0 3px var(--sage-bg); }
.search-bar > svg { flex-shrink: 0; }
.search-bar input {
  flex: 1; min-width: 0; border: none; background: transparent;
  -webkit-appearance: none; appearance: none;
  font-family: 'Outfit', sans-serif; font-size: 1rem; color: var(--dark);
}
/* Kill the input's own outline/ring (incl. the global focus-visible ring) so
   only the wrapper shows focus — overrides input:focus-visible by specificity. */
.search-bar input:focus,
.search-bar input:focus-visible { outline: none; box-shadow: none; }
.search-bar input::placeholder { color: var(--mid); }
.search-bar input::-webkit-search-decoration,
.search-bar input::-webkit-search-cancel-button { -webkit-appearance: none; }
.search-close {
  border: none; background: transparent; color: var(--mid);
  font-size: 1.05rem; cursor: pointer; padding: 0.15rem 0.4rem; border-radius: 8px;
  line-height: 1;
}
.search-close:hover { background: var(--sage-bg); color: var(--dark); }
.search-results { max-width: 660px; margin: 0.45rem auto 0; }
.search-hint {
  font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.07em;
  color: var(--mid); margin: 0.7rem 0.3rem 0.35rem; font-weight: 600;
}
.search-result {
  display: flex; align-items: center; gap: 0.85rem;
  padding: 0.5rem; border-radius: 12px;
  text-decoration: none; color: var(--dark);
  transition: background 0.15s ease;
}
.search-result:hover { background: var(--sage-bg); }
.search-thumb {
  flex-shrink: 0; width: 50px; height: 50px; border-radius: 10px;
  overflow: hidden; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); background: #f7f3ec;
}
.search-thumb svg { width: 46px !important; height: 46px !important; }
.search-meta { display: flex; flex-direction: column; gap: 0.12rem; flex: 1; min-width: 0; }
.search-name { font-size: 0.95rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-price { font-size: 0.8rem; color: var(--mid); }
.search-go { color: var(--mid); flex-shrink: 0; }
.search-empty { text-align: center; color: var(--mid); padding: 1.6rem 1rem; font-size: 0.92rem; line-height: 1.6; }
.search-empty a { color: var(--accent); font-weight: 500; }
@media (max-width: 600px) {
  .search-panel { padding: 0.8rem 0.75rem 1rem; }
  .search-name { font-size: 0.9rem; }
  .search-thumb { width: 44px; height: 44px; }
  .search-thumb svg { width: 40px !important; height: 40px !important; }
}

/* ─── BUTTONS ─────────────────────────── */
.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  padding: 0.8rem 1.8rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.2s, transform 0.1s;
  border: none;
  cursor: pointer;
  font-family: 'Outfit', sans-serif;
}
.btn-primary:hover { background: #a33618; transform: translateY(-1px); }

.btn-ghost {
  display: inline-block;
  background: transparent;
  color: var(--dark);
  padding: 0.8rem 1.8rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 400;
  border: 1.5px solid var(--border);
  transition: border-color 0.2s, background 0.2s;
  cursor: pointer;
  font-family: 'Outfit', sans-serif;
}
.btn-ghost:hover { border-color: var(--dark); background: var(--light); }

.btn-accent {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  padding: 0.8rem 1.8rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  font-family: 'Outfit', sans-serif;
  transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
  width: 100%;
  text-align: center;
}
.btn-accent:hover { background: #a33618; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(200, 69, 32, 0.3); }

/* ─── HERO ─────────────────────────────── */
.hero {
  text-align: center;
  padding: 5rem 2rem 4rem;
  max-width: 820px;
  margin: 0 auto;
}

.hero-tag {
  display: inline-block;
  background: var(--aqua-bg);
  color: var(--aqua);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
  letter-spacing: 0.03em;
  font-family: 'DM Mono', monospace;
}

.hero-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 1.2rem;
  color: var(--dark);
}
.hero-title em { font-style: italic; color: var(--accent); }

.hero-sub {
  font-size: 1.05rem;
  color: var(--mid);
  max-width: 520px;
  margin: 0 auto 2rem;
  line-height: 1.7;
  font-weight: 300;
}

.hero-actions { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; margin-bottom: 2rem; }

.hero-proof {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-size: 0.82rem;
  color: var(--mid);
}
.hero-proof span:first-child { color: var(--star); letter-spacing: 2px; }
.dot { opacity: 0.4; }

/* ─── PROCESS STRIP ───────────────────── */
.process-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.5rem 2rem;
  background: var(--dark);
  color: var(--white);
  flex-wrap: wrap;
}

.process-step { display: flex; align-items: center; gap: 0.6rem; }
.ps-num {
  font-family: 'DM Mono', monospace;
  font-size: 0.75rem;
  color: var(--aqua);
  opacity: 0.95;
}
.ps-text { font-size: 0.9rem; font-weight: 300; }
.process-arrow { color: var(--mid); font-size: 1rem; }

/* ─── PRODUCTS GRID ───────────────────── */
.products-preview {
  max-width: 1100px;
  margin: 4rem auto;
  padding: 0 2rem;
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1.8rem;
}

.section-header h2 {
  font-family: 'Fraunces', serif;
  font-size: 1.8rem;
  font-weight: 400;
  letter-spacing: -0.5px;
}

.see-all {
  color: var(--mid);
  font-size: 0.88rem;
  text-decoration: none;
  transition: color 0.2s;
}
.see-all:hover { color: var(--dark); }

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

/* ── Product card skeleton loader ───────────────────────────────────────── */
@keyframes skeletonShimmer {
  from { background-position: -200% 0; }
  to   { background-position:  200% 0; }
}
.card-skeleton {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
}
.card-skeleton-img {
  height: 170px;
  background: linear-gradient(90deg, #f0ede8 25%, #e6e1da 50%, #f0ede8 75%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.5s ease infinite;
}
.card-skeleton-body { padding: 0.9rem 1rem 1rem; display: flex; flex-direction: column; gap: 8px; }
.card-skeleton-line {
  height: 11px; border-radius: 6px;
  background: linear-gradient(90deg, #f0ede8 25%, #e6e1da 50%, #f0ede8 75%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.5s ease infinite;
  animation-delay: 0.1s;
}
.card-skeleton-line--short  { width: 58%; }
.card-skeleton-line--xs     { width: 36%; }
@media (prefers-reduced-motion: reduce) {
  .card-skeleton-img, .card-skeleton-line { animation: none; }
}

.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: var(--dark);
  border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
  display: block;
}
.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

.product-img {
  height: 170px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* ── "Customise →" hover overlay on product cards ──────────────────────── */
.product-img-overlay {
  position: absolute; inset: 0;
  background: rgba(26, 41, 32, 0);
  display: flex; align-items: flex-end; justify-content: center;
  padding-bottom: 14px;
  transition: background 0.22s ease;
  pointer-events: none;
}
.product-customise-label {
  background: #fff;
  color: var(--dark);
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 5px 14px;
  border-radius: 999px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.22s ease, transform 0.22s ease;
  white-space: nowrap;
}
.product-card:hover .product-img-overlay { background: rgba(26, 41, 32, 0.48); }
.product-card:hover .product-customise-label { opacity: 1; transform: translateY(0); }
/* Don't show on touch devices — no hover state */
@media (hover: none) { .product-img-overlay { display: none; } }
.product-img .product-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.recently-viewed-strip .product-img .product-photo { object-fit: cover; }

.product-info { padding: 0.9rem 1rem 1rem; position: relative; }
.product-name { font-size: 0.9rem; font-weight: 500; margin-bottom: 3px; }
.product-price { font-size: 0.82rem; color: var(--mid); }

/* ─── RATINGS ─────────────────────────── */
.rating { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.78rem; color: var(--mid); }
.rating-stars { color: var(--star); letter-spacing: 1px; font-size: 0.86rem; line-height: 1; }
.rating-count { font-size: 0.78rem; color: var(--mid); }
.rating-empty { font-size: 0.74rem; color: var(--mid); font-style: italic; opacity: 0.7; }

.rating-compact {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.78rem;
  color: var(--dark);
  font-weight: 500;
}
.rating-compact .rating-stars { color: var(--star); font-size: 0.78rem; line-height: 1; }
.rating-compact .rating-count { font-weight: 400; color: var(--mid); }

.product-card .rating-compact { margin-top: 4px; }

/* ─── PRODUCT BADGES ──────────────────── */
.product-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: var(--dark);
  color: var(--white);
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  z-index: 2;
}
.product-badge.bestseller { background: var(--accent, #c8522a); }
.product-badge.popular { background: var(--sage); }

.product-card { position: relative; }

/* ─── PRODUCT DETAIL — BENEFITS LIST ─── */
.product-benefits {
  list-style: none;
  padding: 0;
  margin: 1rem 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.product-benefits li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 0.6rem;
  font-size: 0.86rem;
  color: var(--dark);
  line-height: 1.5;
}
.product-benefits li::before {
  content: "✓";
  color: var(--sage);
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.5;
}

/* ─── PRODUCT POPULARITY (social proof) ─── */
.product-popularity {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-left: 1.2rem;
  margin: 0.75rem 0 1rem;
  font-size: 0.82rem;
  color: var(--mid);
  padding: 0.65rem 0.85rem;
  background: var(--cream);
  border-radius: var(--radius);
}
.product-popularity::before {
  content: '';
  position: absolute;
  left: 5px; top: 50%; transform: translateY(-50%);
  width: 4px; height: 60%;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--olive), rgba(76,91,72,0.4));
}
.product-popularity strong { color: var(--dark); font-weight: 500; }

/* ─── TRUST STRIP (above add-to-cart) ─── */
.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin: 1rem 0;
  font-size: 0.72rem;
  color: var(--mid);
  text-align: center;
}
.trust-strip-item {
  padding: 0.5rem 0.4rem;
  background: var(--cream);
  border-radius: var(--radius);
  line-height: 1.3;
}
.trust-strip-item strong { display: block; color: var(--dark); font-size: 0.78rem; margin-bottom: 1px; }

/* ─── DELIVERY DATE ESTIMATE ─────────── */
.delivery-estimate {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.75rem 0;
  padding: 0.65rem 0.85rem 0.65rem 1.2rem;
  background: var(--accent-light);
  border-radius: var(--radius);
  font-size: 0.82rem;
  color: #7a3818;
}
.delivery-estimate::before {
  content: '';
  position: absolute;
  left: 5px; top: 50%; transform: translateY(-50%);
  width: 4px; height: 60%;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--clay), rgba(185,84,58,0.4));
}
.delivery-estimate strong { color: #5e2a0e; font-weight: 500; }

/* ─── RECENTLY VIEWED ─────────────────── */
.recently-viewed {
  margin: 3rem auto;
  max-width: 1200px;
  padding: 0 2rem;
}
.recently-viewed h2 {
  font-family: 'Fraunces', serif;
  font-size: 1.4rem;
  font-weight: 400;
  margin-bottom: 1rem;
}
.recently-viewed-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
}
.recently-viewed-strip .product-card .product-img { height: 130px; }
.recently-viewed-strip .product-card .product-name { font-size: 0.82rem; }

/* ─── REVIEW SUMMARY BAR ON LISTING ─── */
.listing-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding: 1rem 1.5rem;
  margin: 0 auto 2rem;
  max-width: 900px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  font-size: 0.85rem;
  color: var(--mid);
}
.listing-trust strong { color: var(--dark); font-weight: 500; }
.listing-trust .trust-divider { color: var(--border); }

/* ─── TRUST ───────────────────────────── */
.trust-section {
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 3.5rem 2rem;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.trust-item { text-align: center; }
.trust-icon { font-size: 1.2rem; color: var(--sage); margin-bottom: 0.75rem; }
.trust-item:nth-child(2) .trust-icon { color: var(--accent); }
.trust-title { font-weight: 500; margin-bottom: 0.4rem; font-size: 0.95rem; }
.trust-body { font-size: 0.85rem; color: var(--mid); line-height: 1.6; }

/* ─── CTA ─────────────────────────────── */
.cta-section {
  text-align: center;
  padding: 5rem 2rem;
}
.cta-section h2 {
  font-family: 'Fraunces', serif;
  font-size: 2.2rem;
  font-weight: 400;
  letter-spacing: -0.5px;
  margin-bottom: 0.75rem;
}
.cta-section p { color: var(--mid); margin-bottom: 1.8rem; }

/* ─── FOOTER ──────────────────────────── */
.footer {
  background: #1a2920;
  color: #9fb89a;
  padding: 3rem 2.5rem 2rem;
  border-top: 1px solid rgba(94,199,159,0.12);
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-brand {
  font-family: 'Fraunces', serif;
  font-size: 1.3rem;
  font-weight: 400;
  letter-spacing: -0.4px;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}
.footer-brand span { color: #5ec79f; }
.footer-brand svg { flex-shrink: 0; display: block; }
.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-links a { color: #7ea889; text-decoration: none; font-size: 0.85rem; transition: color 0.2s; }
.footer-links a:hover { color: #c8e0cc; }
.footer-copy { font-size: 0.78rem; color: rgba(159,184,154,0.45); }

/* ─── CART DRAWER ─────────────────────── */
.cart-drawer { display: none; position: fixed; inset: 0; z-index: 999; }
.cart-drawer.open { display: flex; }
.cart-overlay { flex: 1; background: rgba(0,0,0,0.3); }
.cart-panel {
  width: 380px;
  height: 100%;
  max-height: 100dvh;
  background: var(--white);
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--border);
  animation: slideIn 0.25s ease;
  overflow: hidden;
}
@keyframes slideIn { from { transform: translateX(100%); } to { transform: translateX(0); } }

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 1.5rem;
  border-bottom: 1px solid var(--border);
}
.cart-header h3 { font-family: 'Fraunces', serif; font-weight: 400; }
.cart-close {
  background: none;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  color: var(--mid);
  padding: 0.25rem;
}

.cart-items { flex: 1; overflow-y: auto; padding: 1rem 1.5rem; min-height: 0; }

.cart-item {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
  position: relative;
}
.cart-item-thumb {
  width: 72px;
  height: 72px;
  border-radius: var(--radius);
  background: var(--cream);
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  color: var(--mid);
  text-align: center;
  position: relative;
}
.cart-item-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* Composite thumbnail: photo positioned at print area, product SVG mockup on top */
.cart-thumb-composite {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: var(--radius);
}
.cart-thumb-photo {
  position: absolute;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}
.cart-thumb-svg { position: absolute; inset: 0; pointer-events: none; }
.cart-thumb-svg svg { width: 100%; height: 100%; }
.cart-thumb-mockup {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: #f7f3ec; border-radius: var(--radius);
}
.cart-thumb-mockup svg { width: 84%; height: 84%; }
@keyframes cartSpin { to { transform: rotate(360deg); } }
.cart-thumb-fallback {
  font-size: 0.65rem;
  color: var(--mid);
  text-align: center;
  padding: 0.4rem;
}

.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { font-size: 0.88rem; font-weight: 500; margin-bottom: 2px; }
.cart-item-variant { font-size: 0.76rem; color: var(--mid); margin-bottom: 3px; }
.cart-item-file {
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  color: var(--mid);
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item-lowres {
  background: #fff8e1;
  border-left: 3px solid #e6a700;
  border-radius: 0 6px 6px 0;
  padding: 5px 8px;
  margin-bottom: 6px;
  font-size: 0.7rem;
  line-height: 1.35;
  color: #7a5a00;
}

.cart-item-previews {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--cream);
  border: 1px solid var(--border);
  color: var(--dark);
  font-size: 0.74rem;
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
  margin-bottom: 6px;
  transition: background 0.15s, border-color 0.15s;
}
.cart-item-previews:hover:not([disabled]) { background: #fff; border-color: var(--accent); color: var(--accent); }
.cart-item-previews[disabled] { opacity: 0.65; cursor: default; }

/* Live progress bar for items whose Printful mockup is still rendering.
   Replaces the static "Generating previews…" button — same footprint so
   the cart row layout doesn't shift between pending and ready states. */
.cart-item-progress {
  position: relative;
  margin-top: 6px;
  height: 28px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #f6f4ee;
  overflow: hidden;
  font-size: 0.75rem;
  color: var(--mid);
}
.cart-item-progress-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  background: linear-gradient(90deg, rgba(22,181,163,0.18), rgba(22,181,163,0.35));
  transition: width 0.4s ease-out;
}
.cart-item-progress-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'DM Mono', monospace;
  letter-spacing: 0.02em;
  pointer-events: none;
  /* Clip + ellipsis any label longer than the bar — narrow cart drawers
     (mobile especially) can be tighter than the 'Taking longer than
     usual…' string. Padding keeps the text from kissing the rounded
     border. */
  padding: 0 0.6rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
}
.qty-control {
  display: inline-flex;
  align-items: center;
  background: var(--cream);
  border-radius: 999px;
  padding: 2px;
}
.qty-btn {
  width: 26px;
  height: 26px;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 50%;
  font-size: 0.95rem;
  color: var(--dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  transition: background 0.12s;
}
.qty-btn:hover { background: var(--white); }
.qty-value {
  min-width: 24px;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 500;
  font-family: 'DM Mono', monospace;
}

.cart-item-price { font-size: 0.95rem; font-weight: 500; }
.cart-item-remove {
  background: none;
  border: none;
  color: var(--mid);
  cursor: pointer;
  font-size: 0.95rem;
  padding: 4px;
  transition: color 0.2s;
  align-self: flex-start;
  line-height: 1;
}
.cart-item-remove:hover { color: var(--terracotta, #c8522a); }

/* ─── CART UPSELL ─────────────────────── */
.cart-upsell {
  border-top: 1px solid var(--border);
  padding: 1rem 0 0.5rem;
  margin-top: 0.25rem;
}
.cart-upsell-heading {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 0.75rem;
}
.cart-upsell-grid {
  display: flex;
  gap: 0.6rem;
}
.cart-upsell-card {
  flex: 1;
  min-width: 0;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.6rem 0.5rem 0.55rem;
  text-decoration: none;
  color: var(--dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  transition: border-color 0.15s, background 0.15s;
  cursor: pointer;
}
.cart-upsell-card:hover {
  border-color: var(--accent);
  background: var(--accent-light);
}
.cart-upsell-thumb {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  overflow: hidden;
}
.cart-upsell-name {
  font-size: 0.7rem;
  font-weight: 500;
  text-align: center;
  line-height: 1.25;
  color: var(--dark);
}
.cart-upsell-price {
  font-size: 0.68rem;
  color: var(--mid);
}
.cart-upsell-cta {
  font-size: 0.65rem;
  color: var(--accent);
  font-weight: 600;
  margin-top: auto;
}

/* Empty-cart message (selector restored — was orphaned, leaving it unstyled) */
.cart-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--mid);
  font-size: 0.9rem;
}

/* ─── YOU MIGHT ALSO LIKE SLIDER ─────────────────────────────── */
.also-like-heading {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: 1.6rem;
  margin: 0 0 0.5rem;   /* track adds 0.75rem top padding → ~1.25rem visual gap */
  color: var(--dark);
}
.also-like-viewport {
  position: relative;
}
.also-like-track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  /* overflow-x:auto makes overflow-y compute to auto, which would clip a card's
     top border + shadow when it lifts on hover. Top padding gives the lift room
     inside the clip box; the heading's reduced bottom margin keeps the gap. */
  padding-top: 0.75rem;
  padding-bottom: 0.5rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.also-like-track::-webkit-scrollbar { height: 5px; }
.also-like-track::-webkit-scrollbar-track { background: transparent; }
.also-like-track::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
.also-like-card {
  flex: 0 0 calc(25% - 0.75rem);
  min-width: 200px;
  scroll-snap-align: start;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: border-color 0.15s, box-shadow 0.18s, transform 0.18s;
}
.also-like-card:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  transform: translateY(-3px);
}
.also-like-thumb {
  aspect-ratio: 1 / 1;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.also-like-photo {
  width: 100%;
  height: 100%;
  object-fit: contain;   /* match product.html: full product letterboxed on white */
  display: block;
  transition: transform 0.3s ease;
}
.also-like-card:hover .also-like-photo { transform: scale(1.04); }
.also-like-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dark);
}
.also-like-name {
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--dark);
  padding: 0.85rem 0.9rem 0;
}
.also-like-price {
  font-size: 0.8rem;
  color: var(--mid);
  padding: 0.2rem 0.9rem 0;
}
.also-like-cta {
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 600;
  padding: 0.5rem 0.9rem 0.95rem;
  margin-top: auto;
}
.also-like-arrow {
  position: absolute;
  top: 38%;
  transform: translateY(-50%);
  z-index: 3;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0,0,0,0.12);
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}
.also-like-arrow:hover {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 14px rgba(200,69,32,0.3);
}
.also-like-arrow--prev { left: -8px; }
.also-like-arrow--next { right: -8px; }
@media (max-width: 900px) {
  .also-like-card { flex: 0 0 calc(33.33% - 0.67rem); }
}
@media (max-width: 640px) {
  .also-like-card { flex: 0 0 64vw; min-width: 0; }
  .also-like-arrow { display: none !important; }
}

/* Add-to-cart confirmation banner */
.added-confirmation {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--sage-bg);
  color: var(--sage);
  border-radius: var(--radius);
  padding: 0.7rem 1rem;
  margin-bottom: 0.75rem;
  font-weight: 500;
  font-size: 0.92rem;
  animation: addedFadeIn 0.3s ease;
}
.added-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--sage);
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
}
@keyframes addedFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* "View cart" + quick-undo X — sits inline beside View cart, animates in
   from a 0-width pill so it doesn't shove on instantly. The X itself fades
   in slightly later so the colour fill reads first. */
.view-cart-row {
  display: flex;
  align-items: stretch;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.view-cart-main { flex: 1 1 auto; }
.view-cart-undo {
  flex: 0 0 auto;
  width: 0;
  padding: 0;
  border: none;
  border-radius: var(--radius);
  background: var(--accent);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
  font-size: 0.95rem;
  line-height: 1;
  animation: viewCartUndoIn 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) 0.15s forwards;
  transition: background 0.15s ease, transform 0.1s ease;
}
.view-cart-undo:hover { background: #a73e1e; }
.view-cart-undo:active { transform: scale(0.94); }
.view-cart-undo-x {
  opacity: 0;
  animation: viewCartUndoX 0.25s ease 0.45s forwards;
}
@keyframes viewCartUndoIn {
  from { width: 0; }
  to   { width: 44px; }
}
@keyframes viewCartUndoX {
  from { opacity: 0; transform: rotate(-90deg) scale(0.6); }
  to   { opacity: 1; transform: rotate(0)     scale(1);   }
}

/* Collapsing exit — the X fades + spins out first, then the pill width
   shrinks back to zero. Mirrors the entrance so it reads as a confirmation
   that the undo registered. */
.view-cart-undo.collapsing {
  animation: viewCartUndoOut 0.32s cubic-bezier(0.4, 0, 0.6, 1) 0.12s forwards;
  pointer-events: none;
}
.view-cart-undo.collapsing .view-cart-undo-x {
  animation: viewCartUndoXOut 0.18s ease forwards;
}
@keyframes viewCartUndoOut {
  from { width: 44px; }
  to   { width: 0; }
}
@keyframes viewCartUndoXOut {
  from { opacity: 1; transform: rotate(0)     scale(1);   }
  to   { opacity: 0; transform: rotate(90deg) scale(0.6); }
}

.cart-footer {
  padding: 1.2rem 1.5rem;
  border-top: 1px solid var(--border);
}
.cart-total {
  display: flex;
  justify-content: space-between;
  font-weight: 500;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

/* ─── ZOOM CONTROLS ───────────────────── */
.zoom-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: var(--white);
  font-size: 1.1rem;
  font-family: 'Outfit', sans-serif;
  cursor: pointer;
  color: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s;
  border: 0.5px solid var(--border);
  padding: 0;
  line-height: 1;
}
.zoom-btn:hover { background: var(--sage-bg); border-color: var(--sage); color: var(--sage); }

.reset-btn {
  background: transparent;
  border: 0.5px solid var(--border);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 0.78rem;
  font-family: 'Outfit', sans-serif;
  color: var(--mid);
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.15s;
}
.reset-btn:hover { color: var(--sage); border-color: var(--sage); background: var(--sage-bg); }
.reset-btn.active { color: var(--sage); border-color: var(--sage); background: var(--sage-bg); }

#zoomSlider {
  -webkit-appearance: none;
  appearance: none;
  height: 3px;
  background: var(--border);
  border-radius: 999px;
  outline: none;
  margin: 0;
}
#zoomSlider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--sage);
  cursor: pointer;
  border: 2px solid var(--white);
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}
#zoomSlider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--sage);
  cursor: pointer;
  border: 2px solid var(--white);
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

/* ─── PAGE HEADER ─────────────────────── */
.page-header {
  background: var(--dark);
  color: var(--white);
  padding: 3.5rem 2.5rem 3rem;
}
.page-header-inner { max-width: 1100px; margin: 0 auto; }
.page-header h1 {
  font-family: 'Fraunces', serif;
  font-size: 2.5rem;
  font-weight: 400;
  letter-spacing: -1px;
  margin-bottom: 0.5rem;
}
.page-header p { color: rgba(255,255,255,0.55); font-weight: 300; }

/* ─── PRODUCTS PAGE ───────────────────── */
.products-page {
  max-width: 1100px;
  margin: 3rem auto;
  padding: 0 2rem;
}

.filter-bar {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.filter-btn {
  padding: 0.4rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  font-family: 'Outfit', sans-serif;
  font-size: 0.82rem;
  cursor: pointer;
  color: var(--mid);
  transition: all 0.15s;
}
.filter-btn.active, .filter-btn:hover {
  background: var(--sage);
  color: var(--white);
  border-color: var(--sage);
}

/* ─── PRODUCT DETAIL PAGE ─────────────── */
.product-detail {
  max-width: 1200px;
  margin: 3rem auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 3.5rem;
  align-items: start;
}

.product-gallery {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1rem;
  padding: 2rem 1.5rem;
  position: relative;
  overflow: hidden;
}

@media (max-width: 768px) {
  .product-gallery {
    min-height: 0;
    padding: 1.5rem 1rem;
  }
}

.gallery-preview {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.gallery-upload-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.92);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--mid);
  border-radius: var(--radius);
  border: 2px dashed var(--border);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.gallery-upload-overlay:hover { border-color: var(--accent); background: var(--accent-light); }
.gallery-upload-overlay.has-image { background: transparent; border: none; cursor: default; }

.preview-product-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.preview-user-img {
  position: absolute;
  border-radius: 4px;
  object-fit: cover;
}

/* ─── PRODUCT PHOTO CAROUSEL ───────────────────────────────────── */
.photo-carousel { width: 100%; }

.carousel-main-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #ffffff;
  border-radius: var(--radius);
  /* #1 stronger soft drop shadow lifts the photo card off the white panel;
     #2 crisp 1px inner keyline defines the edge of a white product. */
  border: 1px solid var(--border);
  box-shadow: 0 4px 16px rgba(0,0,0,0.12), inset 0 0 0 1px rgba(0,0,0,0.07);
  overflow: hidden;
}
.carousel-main-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  cursor: zoom-in;
  display: block;
}
/* Carousel slide is driven by the Web Animations API in _swapMain
   (a real two-layer track); the outgoing photo is a .carousel-ghost
   overlay that slides off while the new one slides in. */
.carousel-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  color: var(--mid);
  font-size: 0.9rem;
  width: 100%;
}
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.92);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: background 0.15s;
  padding: 0;
}
.carousel-arrow:hover { background: #fff; }
.carousel-arrow--left  { left: 10px; }
.carousel-arrow--right { right: 10px; }
.carousel-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.carousel-thumb {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  width: 62px;
  height: 62px;
  cursor: pointer;
  padding: 0;
  background: #ffffff;
  /* Same framing as the main photo so each scrollable thumbnail reads as
     a card and white products are visible. */
  box-shadow: 0 2px 6px rgba(0,0,0,0.12), inset 0 0 0 1px rgba(0,0,0,0.06);
  transition: border-color 0.15s, box-shadow 0.15s;
  flex-shrink: 0;
}
.carousel-thumb.active { border-color: var(--terracotta); }
.carousel-thumb:hover  { border-color: var(--dark); }
.carousel-thumb img    { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ─── PRODUCT-PAGE REVIEWS CAROUSEL ────────────────────────────── */
.reviews-carousel-track::-webkit-scrollbar { height: 6px; }
.reviews-carousel-track::-webkit-scrollbar-thumb { background: var(--border); border-radius: 999px; }
.reviews-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.95);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  padding: 0;
  color: var(--dark);
}
.reviews-carousel-arrow:hover { background: #fff; }
.reviews-carousel-arrow--left  { left: -10px; }
.reviews-carousel-arrow--right { right: -10px; }
@media (max-width: 720px) {
  .reviews-carousel-arrow { display: none; }
}

/* ─── REALISTIC PREVIEW PANEL ──────────────────────────────────── */
.printful-mockup-panel {
  width: 100%;
  text-align: center;
}
.printful-mockup-status {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.mockup-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1.75rem 1rem;
}
.shirt-loader {
  width: 72px;
  height: auto;
}
.mockup-loading span {
  font-family: 'DM Mono', monospace;
  font-size: 0.72rem;
  color: var(--mid);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
/* Baked preview: reserve a square slot (bake renders are square) so the
   realistic image swaps in with zero layout shift. Responsive + mobile-first. */
#mockupAngleWrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.printful-mockup-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: var(--radius);
  cursor: zoom-in;
  transition: transform 0.2s;
  display: block;
}
.printful-mockup-img:hover { transform: scale(1.005); }

/* GPU-promote the live image element so position/background changes
   composite without a layout pass — keeps drag smooth on mobile. */
#liveUserImg { will-change: transform; }

/* Resize handles: L-shaped corner brackets that hug the image corners.
   Two thick borders per corner form the L; a drop-shadow halo keeps them
   visible on light and dark photos alike. */
.resize-handle {
  position: absolute;
  width: 18px;
  height: 18px;
  background: transparent;
  border: 0 solid var(--accent);
  border-radius: 3px;
  box-sizing: border-box;
  pointer-events: auto;
  z-index: 5;
  touch-action: none;
  filter: drop-shadow(0 0 1.5px rgba(0,0,0,0.55));
}
.resize-handle.handle-tl { top: 2px;    left: 2px;    border-top-width: 4px;    border-left-width: 4px;  border-top-left-radius: 5px;     cursor: nwse-resize; }
.resize-handle.handle-tr { top: 2px;    right: 2px;   border-top-width: 4px;    border-right-width: 4px; border-top-right-radius: 5px;    cursor: nesw-resize; }
.resize-handle.handle-bl { bottom: 2px; left: 2px;    border-bottom-width: 4px; border-left-width: 4px;  border-bottom-left-radius: 5px;  cursor: nesw-resize; }
.resize-handle.handle-br { bottom: 2px; right: 2px;   border-bottom-width: 4px; border-right-width: 4px; border-bottom-right-radius: 5px; cursor: nwse-resize; }
/* Edge handles hidden on every input — corner handles are free-form
   (single-axis movement works by dragging a corner along the X or Y
   axis only), which makes the side handles redundant clutter. */
.resize-handle.handle-t,
.resize-handle.handle-b,
.resize-handle.handle-l,
.resize-handle.handle-r { display: none; }

/* Touch devices: bigger handles, fully inset so overflow:hidden on
   liveDesignArea never clips them, plus a transparent ::after pad that
   gives a ~44 px total tap target. */
@media (pointer: coarse) {
  /* On touch screens only show 4 corner handles — fewer, larger targets.
     Side handles (free-form single-axis stretch) are rarely needed and
     just clutter the small editing area on mobile. */
  .resize-handle.handle-t,
  .resize-handle.handle-b,
  .resize-handle.handle-l,
  .resize-handle.handle-r { display: none; }

  .resize-handle {
    width: 26px;
    height: 26px;
  }
  .resize-handle::after {
    content: '';
    position: absolute;
    top: -12px; left: -12px; right: -12px; bottom: -12px;
  }
  /* Inset rather than outset — brackets stay inside the clip boundary.
     Thicker strokes so the L reads on a small touch screen. */
  .resize-handle.handle-tl { top: 3px;    left: 3px;    border-top-width: 5px;    border-left-width: 5px;  cursor: nwse-resize; }
  .resize-handle.handle-tr { top: 3px;    right: 3px;   border-top-width: 5px;    border-right-width: 5px; cursor: nesw-resize; }
  .resize-handle.handle-bl { bottom: 3px; left: 3px;    border-bottom-width: 5px; border-left-width: 5px;  cursor: nesw-resize; }
  .resize-handle.handle-br { bottom: 3px; right: 3px;   border-bottom-width: 5px; border-right-width: 5px; cursor: nwse-resize; }
  /* side handles hidden above — these lines kept in case display is toggled */
  .resize-handle.handle-t  { top: 3px;    left: 50%; transform: translateX(-50%); cursor: ns-resize; }
  .resize-handle.handle-b  { bottom: 3px; left: 50%; transform: translateX(-50%); cursor: ns-resize; }
  .resize-handle.handle-l  { left: 3px;   top: 50%;  transform: translateY(-50%); cursor: ew-resize; }
  .resize-handle.handle-r  { right: 3px;  top: 50%;  transform: translateY(-50%); cursor: ew-resize; }
}

/* While a design is uploading, dim and block nav links so an accidental
   click doesn't tear the page down mid-fetch and leave the cart item
   stuck without a designFileUrl ("Previews unavailable" loop). */
body.saving-design nav a,
body.saving-design .footer a,
body.saving-design .nav-logo {
  pointer-events: none;
  opacity: 0.5;
  transition: opacity 0.15s ease;
}

/* Live design area label */
.live-design-label {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(26, 41, 32, 0.55);
  color: #fff;
  font-size: 0.68rem;
  font-family: 'DM Mono', monospace;
  letter-spacing: 0.04em;
  padding: 0.28rem 0.7rem;
  border-radius: 20px;
  pointer-events: none;
  white-space: nowrap;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* Show the right hint for the current input method */
.live-design-label--touch  { display: none; }
@media (pointer: coarse) {
  .live-design-label--mouse { display: none; }
  .live-design-label--touch { display: block; }
}

/* Angle indicator dots for multi-angle mockup carousel */
.mockup-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  padding: 0;
  cursor: pointer;
  background: var(--border);
  transition: background 0.15s;
  flex-shrink: 0;
}
.mockup-dot.active,
.mockup-dot:hover { background: var(--terracotta); }

/* ─── LIGHTBOX (large product photo) ───────────────────────────── */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 20, 17, 0.88);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 2rem;
}
.lightbox-overlay.open { display: flex; }
.lightbox-frame {
  max-width: 95vw;
  max-height: 90vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(255,255,255,0.92);
  border: none;
  border-radius: 999px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  font-size: 1.2rem;
  color: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover { background: white; }
.lightbox-close { top: -52px; right: 0; }
.lightbox-prev { left: -56px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: -56px; top: 50%; transform: translateY(-50%); }
.lightbox-counter {
  position: absolute;
  bottom: -36px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.85);
  font-family: 'DM Mono', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
}
@media (max-width: 768px) {
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
  .lightbox-close { top: 8px; right: 8px; }
}

.product-sticky { position: sticky; top: 90px; }

.product-detail-name {
  font-family: 'Fraunces', serif;
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: -0.5px;
  margin-bottom: 0.3rem;
}

.product-detail-rating-row { margin-bottom: 0.6rem; min-height: 1.2rem; }
.product-detail-rating-row .rating { font-size: 0.85rem; }
.product-detail-rating-row .rating-stars { font-size: 0.95rem; }

.product-detail-price {
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--dark);
  margin-bottom: 1.2rem;
}

.product-detail-desc {
  font-size: 0.9rem;
  color: var(--mid);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.option-group { margin-bottom: 1.2rem; }
.option-label {
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--mid);
  margin-bottom: 0.5rem;
  font-family: 'DM Mono', monospace;
}

.size-options, .color-options { display: flex; gap: 0.5rem; flex-wrap: wrap; }

.size-btn {
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: transparent;
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.15s;
  color: var(--dark);
}
.size-btn.active, .size-btn:hover { background: var(--dark); color: var(--white); border-color: var(--dark); }
.size-btn.oos { color: var(--mid); opacity: 0.5; cursor: not-allowed; text-decoration: line-through; }
.size-btn.oos:hover { background: transparent; color: var(--mid); border-color: var(--border); transform: none; }

.color-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color 0.15s, opacity 0.15s;
  position: relative;
  overflow: hidden;
  color-scheme: light;
  -webkit-appearance: none;
  appearance: none;
  forced-color-adjust: none;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}
/* Light/white swatches get a grey ring so they're visible on any background */
.color-btn.light-swatch { box-shadow: 0 0 0 1.5px #aaa; }
.color-btn.active { border-color: var(--dark); outline: 2px solid var(--white); outline-offset: 1px; }
.color-btn.light-swatch.active { border-color: var(--dark); box-shadow: none; }
.color-btn.oos { opacity: 0.5; cursor: not-allowed; }
/* A single diagonal slash through the swatch (dark line with a white halo so it
   reads on any colour) — the universal "out of stock" mark. */
.color-btn.oos::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top right, transparent calc(50% - 1px), rgba(25,25,25,0.95) calc(50% - 1px), rgba(25,25,25,0.95) calc(50% + 1px), transparent calc(50% + 1px)),
    linear-gradient(to top right, transparent calc(50% - 2.5px), rgba(255,255,255,0.95) calc(50% - 2.5px), rgba(255,255,255,0.95) calc(50% + 2.5px), transparent calc(50% + 2.5px));
}

/* ─── UPLOAD ZONE ─────────────────────── */
.upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  background: var(--cream);
  margin-bottom: 1.2rem;
  position: relative;
}
.upload-zone:hover, .upload-zone.dragover {
  border-color: var(--sage);
  background: var(--sage-bg);
}
.upload-zone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.upload-icon { font-size: 1.5rem; margin-bottom: 0.5rem; color: var(--sage); }
.upload-title { font-size: 0.9rem; font-weight: 500; margin-bottom: 0.25rem; }
.upload-sub { font-size: 0.78rem; color: var(--mid); }
.upload-preview { font-size: 0.82rem; color: var(--sage); margin-top: 0.4rem; font-weight: 500; }

.product-meta {
  margin-top: 1.2rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--border);
}
.meta-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  padding: 0.3rem 0;
  color: var(--mid);
}
.meta-row strong { color: var(--dark); font-weight: 500; }
.meta-note {
  font-size: 0.78rem;
  color: var(--mid);
  margin-top: 0.6rem;
  line-height: 1.4;
}

/* ─── HOW IT WORKS ────────────────────── */
.hiw-section {
  max-width: 800px;
  margin: 4rem auto;
  padding: 0 2rem;
}

.hiw-step {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  align-items: start;
}

.hiw-num {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--dark);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fraunces', serif;
  font-size: 1.2rem;
  font-weight: 400;
  flex-shrink: 0;
}

.hiw-content h3 {
  font-family: 'Fraunces', serif;
  font-size: 1.2rem;
  font-weight: 400;
  margin-bottom: 0.4rem;
}
.hiw-content p { font-size: 0.9rem; color: var(--mid); line-height: 1.7; }

.hiw-connector {
  width: 1px;
  height: 30px;
  background: var(--border);
  margin-left: 25px;
  margin-bottom: 2.5rem;
  margin-top: -2rem;
}

/* ─── FAQ PAGE ────────────────────────── */
.faq-section {
  max-width: 720px;
  margin: 4rem auto;
  padding: 0 2rem;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 1.2rem 0;
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  color: var(--dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-question .faq-arrow { color: var(--mid); transition: transform 0.2s; font-size: 0.8rem; }
.faq-item.open .faq-arrow { transform: rotate(180deg); }

.faq-answer {
  display: none;
  font-size: 0.88rem;
  color: var(--mid);
  line-height: 1.7;
  padding-bottom: 1.2rem;
}
.faq-item.open .faq-answer { display: block; }

/* ─── CONTACT PAGE ────────────────────── */
.contact-section {
  max-width: 700px;
  margin: 4rem auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 4rem;
}

.contact-info h2 {
  font-family: 'Fraunces', serif;
  font-size: 1.6rem;
  font-weight: 400;
  margin-bottom: 0.75rem;
}
.contact-info p { font-size: 0.88rem; color: var(--mid); line-height: 1.7; margin-bottom: 1.2rem; }
.contact-detail { font-size: 0.85rem; color: var(--mid); margin-bottom: 0.4rem; }
.contact-detail strong { color: var(--dark); display: block; font-weight: 500; }

.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label { font-size: 0.8rem; font-weight: 500; color: var(--mid); text-transform: uppercase; letter-spacing: 0.04em; font-family: 'DM Mono', monospace; }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.7rem 1rem;
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  background: var(--white);
  color: var(--dark);
  transition: border-color 0.2s;
  outline: none;
  resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--dark); }

/* Custom address autocomplete dropdown (Places API New, our own UI). */
.addr-suggestions {
  position: absolute; top: 100%; left: 0; right: 0; z-index: 50;
  background: #fff; border: 1px solid var(--border, #e3dccf);
  border-radius: var(--radius, 10px); box-shadow: 0 6px 20px rgba(26, 41, 32, 0.10);
  margin-top: 4px; overflow: hidden; display: none;
}
.addr-suggestions.open { display: block; }
.addr-suggestion {
  padding: 0.6rem 0.85rem; font-size: 0.88rem; cursor: pointer;
  color: var(--dark, #1f1c18); display: flex; flex-direction: column; gap: 1px;
}
.addr-suggestion + .addr-suggestion { border-top: 1px solid var(--border, #e3dccf); }
.addr-suggestion:hover, .addr-suggestion.active { background: var(--cream, #f5f1eb); }
.addr-suggestion .sec { font-size: 0.76rem; color: var(--mid, #7a7468); }

.field-error {
  display: none;
  font-size: 0.78rem;
  color: var(--error, #c0392b);
  margin-top: -0.1rem;
  font-weight: 500;
}

.form-success {
  background: #e6f4ee;
  color: #1a6b3c;
  border-radius: var(--radius);
  padding: 1rem;
  font-size: 0.88rem;
  display: none;
}

/* ─── CHECKOUT MODAL ──────────────────── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 999;
  align-items: center;
  justify-content: center;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
}
.modal h2 {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}
.modal-close-btn {
  display: block;
  width: 100%;
  margin-top: 1rem;
  background: none;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.7rem;
  font-family: 'Outfit', sans-serif;
  font-size: 0.88rem;
  cursor: pointer;
  color: var(--mid);
}

/* ─── TOAST ───────────────────────────── */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--dark);
  color: var(--white);
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-size: 0.88rem;
  z-index: 9999;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  max-width: min(90vw, 560px);
  text-align: center;
  white-space: normal;
  line-height: 1.4;
}
.toast.error,
.toast.toast--error {
  background: var(--error, #c0392b);
  color: #fff;
  font-weight: 500;
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* ─── RESPONSIVE ──────────────────────── */

/* Hamburger — hidden on desktop, shown inside .nav-icons on mobile.
   Sized/shaped to match the .icon-btn search & cart buttons it sits beside. */
.hamburger {
  display: none;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.18s ease;
  flex-shrink: 0;
}
.hamburger:hover { background: var(--sage-bg); }
.hamburger:active { transform: scale(0.92); }
.hamburger span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  border-radius: 999px;
  transition: transform 0.28s cubic-bezier(0.4,0,0.2,1), opacity 0.2s, width 0.2s;
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 768px) {
  .nav { padding: 1rem 1.2rem; }
  .hamburger { display: flex; }

  /* mobile nav drawer — anchored to the bottom edge of the (sticky) nav so it
     always sits flush below it, regardless of nav height */
  .nav-links {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: rgba(247,244,238,0.97);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 0.5rem 0 1rem;
    z-index: 98;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.28s cubic-bezier(0.2,0.7,0.2,1), opacity 0.22s ease;
    box-shadow: 0 8px 24px rgba(33,31,27,0.08);
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-links a {
    display: block;
    padding: 0.85rem 1.4rem;
    font-size: 1rem;
    border-bottom: 1px solid var(--line);
    color: var(--ink-2);
  }
  .nav-links a:last-child { border-bottom: none; }
  .nav-links a:hover { background: var(--sage-bg); color: var(--ink); }

  .hero { padding: 3rem 1.2rem 2.5rem; }
  .product-detail { grid-template-columns: 1fr; gap: 2rem; }
  .contact-section { grid-template-columns: 1fr; gap: 2rem; }
  .cart-panel { width: 100%; }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ═══════════════════════════════════════════════════════════════════════
   MOTION & MICRO-INTERACTIONS
   Tasteful, restrained polish layered on top of the existing motion (cart
   slide-in, undo pill, toast spring). All of it is neutralised by the
   prefers-reduced-motion guard at the very bottom of this file, and the
   scroll reveals are progressive-enhancement only (gated behind @supports,
   so browsers without scroll-driven animations simply show content as-is).
   ═══════════════════════════════════════════════════════════════════════ */

/* ── Accessible focus rings (keyboard navigation only) ─────────────────── */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--sage);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ── Nav links: sliding underline on hover ─────────────────────────────── */
.nav-links a { position: relative; }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 1.5px;
  background: var(--dark);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.22s ease;
}
.nav-links a:hover::after { transform: scaleX(1); }

/* ── Product cards: gentle image zoom within the framed thumbnail ──────── */
.product-card .product-img > * {
  transition: transform 0.4s cubic-bezier(0.2, 0.6, 0.2, 1);
  will-change: transform;
}
.product-card:hover .product-img > * { transform: scale(1.05); }
/* …but never scale the hover overlay — rasterising the "Customise →" text at
   1.05× on a GPU layer makes it look blurry. Keep it pin-sharp at 1:1. */
.product-card .product-img > .product-img-overlay,
.product-card:hover .product-img > .product-img-overlay {
  transform: none;
  will-change: auto;
}

/* ── Tactile press feedback on pills / option controls ─────────────────── */
.btn-primary:active,
.btn-ghost:active,
.btn-accent:active,
.cart-btn:active,
.filter-btn:active,
.size-btn:active,
.color-btn:active,
.qty-btn:active { transform: scale(0.96); }

/* Harmonise the primary button's hover with the accent button's lift */
.btn-primary:hover { box-shadow: 0 6px 18px rgba(200, 69, 32, 0.22); }

/* ── Overlay entrances: fade the backdrop, ease the panel in ───────────── */
.cart-overlay { animation: overlayFade 0.28s ease; }
.modal-overlay.open { animation: overlayFade 0.2s ease; }
.modal-overlay.open .modal { animation: popIn 0.3s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.lightbox-overlay.open { animation: overlayFade 0.25s ease; }
/* The image unrolls top-to-bottom like a blind being drawn down, settling
   into place with a gentle downward glide. clip-path inset(… bottom …)
   reveals the picture row by row from the top edge. */
.lightbox-overlay.open .lightbox-img { animation: blindsDown 0.5s cubic-bezier(0.22, 0.61, 0.36, 1) both; }
@keyframes overlayFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes blindsDown {
  from { clip-path: inset(0 0 100% 0); opacity: 0.5; transform: translateY(-12px); }
  60%  { opacity: 1; }
  to   { clip-path: inset(0 0 0 0);    opacity: 1;   transform: translateY(0); }
}
@keyframes popIn {
  from { opacity: 0; transform: translateY(8px) scale(0.985); }
  to   { opacity: 1; transform: none; }
}

/* ── Hero: staggered rise on load (homepage) ───────────────────────────── */
.hero-tag     { animation: heroRise 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) 0.05s both; }
.hero-title   { animation: heroRise 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) 0.12s both; }
.hero-sub     { animation: heroRise 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) 0.20s both; }
.hero-actions { animation: heroRise 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) 0.28s both; }
.hero-proof   { animation: heroRise 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) 0.36s both; }
@keyframes heroRise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

/* ── FAQ answer: soft rise when an item opens ──────────────────────────── */
.faq-item.open .faq-answer { animation: revealUp 0.3s ease both; }

/* ── Scroll reveals — progressive enhancement only ─────────────────────────
   Each block reveals itself as it scrolls into view (the timeline naturally
   staggers a row of cards/steps as you scroll past them — no manual delays).
   Gated behind @supports so non-supporting browsers never hide content, and
   behind no-preference so reduced-motion users get static content.          */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .products-preview .product-card,
    .products-page .product-card,
    .recently-viewed-strip .product-card,
    .trust-item,
    .cta-section,
    .hiw-step,
    .faq-item {
      opacity: 0;
      animation: revealUp 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
      animation-timeline: view();
      animation-range: entry 5% entry 55%;
    }
    /* Per-card stagger: left-to-right wave across each grid row.
       --i is set as an inline style (0–4) by the JS render functions. */
    .products-preview .product-card,
    .products-page .product-card,
    .recently-viewed-strip .product-card {
      animation-delay: calc(var(--i, 0) * 40ms);
    }
  }
}

/* ── Baked preview fade-in (template → composite reveal) ───────────────── */
#mockupAngleWrap { transition: opacity 0.28s ease; }
@keyframes revealUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}

/* ── Reduced-motion guard: neutralise everything above for users who ask ── */
/* ── Add-to-cart pulse: draws eye to checkout CTA after preview renders ── */
@keyframes btnPulse {
  0%   { box-shadow: 0 4px 16px rgba(200, 69, 32, 0.25); }
  45%  { box-shadow: 0 6px 28px rgba(200, 69, 32, 0.55), 0 0 0 6px rgba(200, 69, 32, 0.1); transform: translateY(-2px); }
  100% { box-shadow: 0 4px 16px rgba(200, 69, 32, 0.25); transform: translateY(0); }
}
.btn-pulse { animation: btnPulse 0.65s ease-in-out; }

/* ── Cart badge bounce: lands the fly-to-cart animation ──────────────── */
@keyframes cartBadgeBounce {
  0%   { transform: scale(1); }
  30%  { transform: scale(1.7); }
  55%  { transform: scale(0.82); }
  75%  { transform: scale(1.15); }
  100% { transform: scale(1); }
}
.cart-badge-bounce { animation: cartBadgeBounce 0.5s cubic-bezier(0.34, 1.56, 0.64, 1); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ─── KICKER LABEL ────────────────────────────────────────────────────────── */
.kicker {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--olive);
  background: var(--olive-dim);
  padding: 0.28rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 0.85rem;
}

/* ─── CALLOUT BLOCKS (legal/info pages) — floating pill, no flush border ─── */
.callout {
  position: relative;
  padding: 1rem 1.2rem 1rem 1.5rem;
  background: var(--sage-bg);
  border-radius: var(--radius);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 1rem 0;
  color: var(--ink-2);
}
.callout::before {
  content: '';
  position: absolute;
  left: 5px; top: 50%; transform: translateY(-50%);
  width: 4px; height: 65%;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--olive), rgba(76,91,72,0.35));
}
.callout strong { color: var(--ink); }

/* ─── SCROLL-REVEAL UTILITY ──────────────────────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  [data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.6s cubic-bezier(0.2, 0.7, 0.2, 1),
                transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
  }
  [data-reveal="scale"] {
    transform: scale(0.94) translateY(16px);
    transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.2, 0.7, 0.2, 1);
  }
  [data-reveal="left"] {
    transform: translateX(-28px);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
  }
  [data-reveal="right"] {
    transform: translateX(28px);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
  }
  [data-reveal].is-visible {
    opacity: 1;
    transform: none;
  }
}

/* ─── FLOATING ACTION BUTTON ─────────────────────────────────────────────── */
.fab {
  position: fixed;
  z-index: 99;
  bottom: 2rem;
  right: 2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #1a2920;
  color: #c8e0cc;
  border: none;
  padding: 0.72rem 1.25rem;
  border-radius: 999px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(26,41,32,0.35);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s ease;
}
.fab.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.fab:hover { background: #2d4035; color: #e2f0e4; }
@media (max-width: 600px) { .fab { bottom: 1.25rem; right: 1.25rem; } }
