/* ============================================================
   dots & seams — design tokens ("Archive" direction)
   Minimal, editorial, flat. One accent color, hairline borders,
   numbered listings instead of skeuomorphic tags.
   ============================================================ */
:root {
  /* colour */
  --ink:         #141414;
  --ink-soft:   #6E6B64;
  --ink-ghost:  #9c9b92;
  --paper:      #F5F3EE;
  --paper-card: #FFFFFF;
  --forest:     #141414;   /* primary ink/black — was green in the old theme */
  --forest-dark:#000000;
  --accent:     #e27b9b;
  --accent-text: #b84d70;
  --accent2: #B8914D;
  --rose:       #BCA099;   /* darker coral, used for hover states */
  --denim:      #8B8880;   /* neutral warm grey, minor accents only */
  --line:       #1a1a1a;

  /* neutral tonal swatches for product media backgrounds — subtle
     variation within one off-white family, not a rainbow of pastels */
  --swatch-1: #ECEAE4;
  --swatch-2: #E5E2DA;
  --swatch-3: #EEEBE4;
  --swatch-4: #E8E4DB;
  --swatch-5: #F0EDE7;
  --swatch-6: #E3E0D7;

  /* type */
  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Inter", sans-serif;
  --font-mono: "JetBrains Mono", monospace;
  --font-stamp: var(--font-mono);

  --radius-sm: 0px;
  --radius-md: 0px;
  --shadow-tag: 0 1px 2px rgba(20,20,20,0.1);
  --shadow-card: 0 1px 3px rgba(20,20,20,0.06);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

a { color: inherit; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 1rem; }

:focus-visible {
  outline: 2.5px solid var(--forest);
  outline-offset: 2px;
}

img, svg { display: block; max-width: 100%; }

.wordmark {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  text-transform: lowercase;
  display: inline-block;
  white-space: nowrap;
  
  /* Start with tight, crisp tracking */
  letter-spacing: 0.08em; 
  
  /* Smooth, high-fashion expansion curve */
  transition: 
    color 0.3s ease,
    letter-spacing 0.35s cubic-bezier(0.25, 1, 0.5, 1),
    opacity 0.2s ease;
  
  /* Sharpen monospace rendering */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================================
   HOVER STATE: EXPAND TRACKING
   ============================================================ */
.wordmark:hover {
  /* Expands the brand name outward effortlessly */
  letter-spacing: 0.2em; 
  color: var(--accent);
}

/* logo mark: two stitched dots + a thread — Morse for U, "clothes made for U" */
.logo-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.22em;
  vertical-align: middle;
}
.logo-dot {
  width: 0.32em;
  height: 0.32em;
  border-radius: 50%;
  background: var(--ink);
  flex-shrink: 0;
}
.logo-dot2 {
  width: 0.32em;
  height: 0.32em;
  border-radius: 50%;
  background: var(--ink);
  flex-shrink: 0;
}
.logo-thread {
  width: 1.05em;
  height: 0.16em;
  border-radius: 0;
  background: var(--accent);
  flex-shrink: 0;
  transform-origin: left center;
  transition: transform 0.2s ease;
}
.wordmark:hover .logo-thread { transform: scaleX(1.28); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: var(--radius-sm);
  padding: 14px 28px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: var(--forest);
  color: var(--paper-card);
}
.btn-primary:hover { background: var(--forest-dark); }

/* Hide-sold toggle in the catalog toolbar */
.hide-sold-wrap { margin-left: 12px; display: flex; align-items: center; }
.hide-sold-label { font-size: 0.95rem; color: var(--ink-soft); display: inline-flex; align-items: center; gap: 8px; cursor: pointer; user-select: none; }
.hide-sold-label input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--accent); border-radius: 0; }

.btn-full { width: 100%; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.header-card {
  max-width: 1240px;
  margin: 0 auto;
}
.header-inner {
  padding: 0 20px;
  display: flex;
  align-items: stretch;
  gap: 0;
}
.hamburger, .wordmark {
  display: flex;
  align-items: center;
}
.hamburger{
  display:none;
}
.wordmark {
  padding: 16px 24px 16px 0;
}
.main-nav {
  border-left: 1px solid var(--line);
  display: flex;
  align-items: stretch;
  gap: 0;
  margin-left: auto;
}
.nav-close-btn { display: none; }
.nav-link {
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink);
  padding: 16px 22px;
  display: inline-flex;
  align-items: center;
  border-right: 1px solid var(--line);
  -webkit-tap-highlight-color: transparent;
  transition: color 0.15s ease, background 0.15s ease;
}
.nav-link:hover { color: var(--paper); background: var(--ink); }

.nav-link-coming-soon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  -webkit-tap-highlight-color: transparent;
}
.nav-link-soon-badge {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  
  /* High-contrast ink on mustard background */
  color: var(--ink);
  background: var(--accent);
  border: 1px solid var(--ink); 
  
  border-radius: 0;
  padding: 2px 7px;
  line-height: 1.4;
  flex-shrink: 0;
}

/* ============================================================
   NAV DROPDOWN — "Shop" trigger + category panel
   ============================================================ */
.nav-dropdown {
  position: relative;
  display: flex;
  align-items: stretch;
  border-right: 1px solid var(--line);
}
.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  border-right: none;
  padding: 16px 22px;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.15s ease, background 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.nav-dropdown-toggle:hover, .nav-dropdown-toggle[aria-expanded="true"] { color: var(--paper); background: var(--ink); }
.nav-chevron { width: 10px; height: 7px; transition: transform 0.18s ease; }
.nav-dropdown-toggle[aria-expanded="true"] .nav-chevron { transform: rotate(180deg); }

.nav-dropdown-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 190px;
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-tag);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 45;
}
.nav-dropdown-panel.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.nav-dropdown-link {
  display: block;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  transition: background 0.12s ease, color 0.12s ease;
}
.nav-dropdown-link:hover {
  background: var(--paper);
  color: var(--forest);
}
.nav-dropdown-link.active {
  color: var(--forest);
  font-weight: 600;
}

.cart-btn {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--ink);
  border-radius: 0;
  overflow: hidden;
  background: var(--paper-card);
  flex-shrink: 0;
  margin: 12px 0 12px 20px;
  -webkit-tap-highlight-color: transparent;
}
.cart-btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 9px 11px;
  color: var(--ink);
}
.cart-btn-icon svg { width: 20px; height: 20px; }
.cart-btn:hover .cart-btn-icon { background: rgba(20,20,20,0.04); }
@keyframes cart-bump {
  0%   { transform: scale(1); }
  35%  { transform: scale(1.22); }
  65%  { transform: scale(0.94); }
  100% { transform: scale(1); }
}
.cart-btn.bump { animation: cart-bump 0.4s ease; }
@media (prefers-reduced-motion: reduce) {
  .cart-btn.bump { animation: none; }
}
.cart-count {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  padding: 9px 11px;
  border-left: 1px solid var(--ink);
  background: var(--accent);
  color: var(--ink);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.85rem;
}

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(35,35,35,0.4);
  z-index: 39;
}
.nav-overlay.visible { display: block; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  max-width: 1240px;
  margin: 0 auto;
  padding: 88px 20px 64px;
  display: flex;
  align-items: center;
}
.hero-inner {
  width: 100%;
  max-width: 640px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* --- Base Text Content Animations --- */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-eyebrow, .hero-title, .hero-sub, .hero-inner .btn {
  opacity: 0;
  animation: fade-up 0.6s ease forwards;
}
.hero-eyebrow { animation-delay: 0.05s; }
.hero-title { animation-delay: 0.15s; }
.hero-sub { animation-delay: 0.28s; }
.hero-inner .btn { animation-delay: 0.4s; }
.hero-sub {
  margin: 0;
}

/* 1. EYEBROW CONTAINER */
.hero-eyebrow {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  
  /* Make this slightly smaller, technical-looking catalog tag */
  font-size: clamp(0.7rem, 1vw, 0.8rem); 
  
  letter-spacing: 0.15em; /* Classic tracking */
  text-transform: uppercase; /* Uppercase feels more 'archive tag' than lowercase here */
  color: var(--ink-soft, #777); /* Soften the color vs. the brand pink */
  
  margin: 0 0 12px; /* Pull it slightly tighter to the large logo title */
  font-weight: 500;
  line-height: 1.4;
}

/* Brand Name Spans */
.hero-eyebrow .brand-name {
  text-transform: lowercase;
}

/* Divider Styling */
.hero-eyebrow .eyebrow-divider {
  opacity: 0.5;
  margin: 0 4px;
}

/* Secondary Meta Line (Pushed to line 2 via <br>) */
.hero-eyebrow .brand-meta {
  display: inline;
  margin-top: 4px;
  font-size: 0.85em;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft, #666);
  font-weight: 500;
}


/* 2. LOGO CONTAINER (Hero Title) */
.hero-title {
  display: flex;
  width: 100%;
  justify-content: flex-start;
  margin: 0 0 28px; /* Slightly increased margin to match the bigger logo */
  padding: 0;
}

.hero-logo {
  /* Bumped max-width from 520px up to 680px (or 100% on smaller screens) */
  width: min(100%, 680px); 
  height: auto;
  overflow: visible; /* Prevents animated elements from getting clipped during scaling */
}


/* 3. SUBTITLE (Value Proposition) */
.hero-sub {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: clamp(0.88rem, 1.35vw, 1.05rem);
  line-height: 1.6;
  letter-spacing: 0.04em;
  color: var(--ink-soft, #555);
  max-width: 560px;
  margin: 0 0 32px;
}

@media (min-width: 768px) {
  .hero {
    flex-direction: row;  /* Side-by-side or left-anchored layout */
    align-items: center;
    text-align: left;     /* Crisp left-alignment for desktop */
    padding-bottom: 76px;
  }
  
  .hero-inner {
    gap: 32px;
  }

  .hero-title {
    justify-content: flex-start; /* Snap logo back to the left wall */
  }
}

/* --- The Seamless Logo Timeline --- */
#logo-ring, #logo-core, #logo-dot, #logo-dash {
  opacity: 0;
  transform-box: fill-box; /* Ensures true center anchor on mobile devices */
  will-change: transform, opacity; /* Optimizes hardware rendering for silk-smooth motion */
}

/* ============================================================
   UPDATED ANIMATION RULES (Only plays when .is-active is added)
   ============================================================ */

/* 1. The outer ring breathes in first, then joins the loop */
.hero-logo.is-active #logo-ring {
  transform-origin: center;
  animation: ring-combined-timeline 3.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* 2. The pink core scales up inside, then joins the loop */
.hero-logo.is-active #logo-core {
  transform-origin: center;
  animation: core-combined-timeline 3.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* 3. The second middle dot drops in next, then joins the loop */
.hero-logo.is-active #logo-dot {
  transform-origin: center;
  animation: dot-combined-timeline 3.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* 4. The final dash unrolls to complete the 'U', then joins the loop */
.hero-logo.is-active #logo-dash {
  transform-origin: left center; 
  animation: dash-combined-timeline 3.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}


/* 
   --- Combined Keyframes ---
   0% to 25%: Handles the initial "Smooth Gallery" page load animation.
   25% to 70%: Holds perfectly still so the user can read the branding.
   70% to 100%: Fires the , energetic Morse code ambient loops.
*/

/* Ring Timeline */
@keyframes ring-combined-timeline {
  0%   { opacity: 0; transform: scale(0.75); }
  20%, 100% { opacity: 1; transform: scale(1); } /* Settles and holds solid */
}

/* Core Timeline */
@keyframes core-combined-timeline {
  0%, 4%   { opacity: 0; transform: scale(0.75); }
  24%, 100% { opacity: 1; transform: scale(1); } /* Settles and holds solid */
}

/* Middle Dot Timeline */
@keyframes dot-combined-timeline {
  0%, 9%   { opacity: 0; transform: scale(0.75); }
  29%, 100% { opacity: 1; transform: scale(1); } /* Settles and holds solid */
}

/* Dash Timeline */
@keyframes dash-combined-timeline {
  0%, 13%  { opacity: 0; transform: scaleX(0); }
  33%, 100% { opacity: 1; transform: scaleX(1); } /* Settles and holds solid */
}

/* --- Accessibility Override --- */
@media (prefers-reduced-motion: reduce) {
  .hero-eyebrow, .hero-title, .hero-sub, .hero-inner .btn,
  #logo-ring, #logo-core, #logo-dot, #logo-dash {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ============================================================
   TRUST STRIP — a single flat line of text, slash-separated
   ============================================================ */
/* 1. Outer full-width container for the edge-to-edge dashed line */
.trust-strip {
  width: 100%;
  border-top: 1px dashed var(--line); /* Spans the entire screen size */
  background: transparent;
}

/* 2. Inner centering grid */
.trust-strip-content {
  max-width: 1240px;
  margin: 0 auto;
  padding: 18px 20px 40px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 14px;
}

/* 3. Typography rules */
.trust-item {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  white-space: nowrap;
}

/* 4. Desktop vertical dividers */
.trust-divider {
  width: 1px;
  height: 14px;
  background: var(--line);
  flex-shrink: 0;
  display: block; 
}

/* Collab Section */

.nav-link-highlight {
  color: var(--accent2);
  font-weight: 600;
}

.collab-section {
  width: 100%;
  border-top: 1px dashed var(--line);
  padding: 48px 20px;
  text-align: center;
}
.collab-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  margin: 0 0 10px;
}
.collab-sub {
  color: var(--accent2);
  max-width: 420px;
  margin: 0 auto 24px;
}
.collab-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-outline {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
}
.btn-outline:hover { background: var(--paper-card); }

/* ============================================================
   RESPONSIVE LAYOUT (Mobile Adjustments)
   ============================================================ */
@media (max-width: 640px) {
  .hero {
    padding-bottom: 32px;
  }

  .trust-strip-content { 
    gap: 8px 14px; 
    padding-top: 14px;
    padding-bottom: 28px;
  }
  
  /* Hides the solid lines on mobile so they don't break awkwardly */
  .trust-divider { 
    display: none; 
  }
}
/* ============================================================
   SECTION DIVIDER — thin hairline above the footer
   ============================================================ */
.seam-divider {
  max-width: 1240px;
  margin: 0 auto;
  border-top: 1px dashed var(--line);
}

/* ============================================================
   CATALOG TOOLBAR + TABS
   ============================================================ */
.catalog-section {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px 100px;
}
.catalog-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}
.search-wrap {
  position: relative;
  flex: 1 1 280px;
  max-width: 420px;
}
.search-wrap svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 17px;
  height: 17px;
  color: var(--ink-soft);
}
.search-wrap input {
  width: 100%;
  padding: 11px 14px 11px 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper-card);
  color: var(--ink);
}
.search-wrap input:focus { border-color: var(--forest); }

.sort-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--ink-soft);
}
.sort-wrap select {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper-card);
  color: var(--ink);
}

.category-tabs {
  position: relative;
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 12px 0 8px;
  margin-bottom: 24px;
  border-bottom: none;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.category-tabs::-webkit-scrollbar { display: none; }
.cat-tab-indicator {
  display: none;
}
@media (max-width: 860px) {
  .category-tabs {
    border-top: 1px dashed rgba(20,20,20,0.08);
    border-bottom: 1px dashed rgba(20,20,20,0.08);
    padding: 12px 0 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .cat-tab-indicator { display: none; }
}

.cat-tab {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.95);
  border: 1px solid var(--ink-soft);
  border-radius: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 16px 18px;
  margin-bottom: 0;
  transition: all 0.3s ease;
  white-space: nowrap;
}
.cat-tab svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  stroke-width: 7px;
  vector-effect: non-scaling-stroke;
}
.cat-tab:hover {
  color: var(--ink);
  border: 1px solid var(--ink-soft);
  background: var(--accent);
}
.cat-tab.active {
  color: var(--paper-card);
  background: var(--forest);
  border-color: var(--forest);
}

/* ============================================================
   PRODUCT GRID + CARD
   ============================================================ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
@media (min-width: 640px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); gap: 22px; }
}
@media (min-width: 1024px) {
  .product-grid { grid-template-columns: repeat(4, 1fr); }
}

.product-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.98), var(--paper-card));
  border: 1px solid var(--ink-soft);
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(43,42,35,0.06);
  display: flex;
  flex-direction: column;
  transition: transform 0.24s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  opacity: 0;
}
.product-card.in-view {
  animation: card-reveal 0.55s ease forwards;
}
@keyframes card-reveal {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .product-card { opacity: 1; }
  .product-card.in-view { animation: none; }
}
.product-card:hover { transform: translateY(-3px); border-color: var(--ink); }

/* de-emphasize sold items */
.product-card.sold {
  opacity: 0.66;
  filter: grayscale(0.28) contrast(0.96) brightness(0.98);
  box-shadow: none;
}
.product-card.sold .product-media img,
.product-card.sold .product-media svg {
  filter: grayscale(0.5) contrast(0.95);
}
.product-card.sold .add-btn { opacity: 0.9; border:1.5px dashed var(--ink-soft); background: transparent; color: var(--ink-soft);}

.product-media {
  position: relative;
  aspect-ratio: 4 / 5;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
  border-bottom: 1px solid var(--ink-soft);
}
.product-media svg {
  width: 42%;
  height: 42%;
  opacity: 0.85;
  transition: transform 0.35s ease;
}
.product-media img {
  transition: transform 0.35s ease;
}
/* subtle film-grain overlay on hover */
.product-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='t'><feTurbulence baseFrequency='0.6' numOctaves='2'/></filter><rect width='100%25' height='100%25' filter='url(%23t)' fill='%23000' opacity='0.16'/></svg>");
  background-repeat: repeat;
  background-size: 140px 140px;
  opacity: 0;
  mix-blend-mode: overlay;
  transition: opacity 0.28s ease;
  border-radius: inherit;
}
.product-card:hover .product-media::after {
  opacity: 0.9;
}
/* subtle color/tone shift on hover for vintage feel */
.product-card:hover .product-media img {
  filter: sepia(0.06) contrast(0.98) saturate(0.95);
}
.product-card:hover .product-media svg,
.product-card:hover .product-media img {
  transform: scale(1.06);
}
@media (prefers-reduced-motion: reduce) {
  .product-card:hover .product-media svg,
  .product-card:hover .product-media img {
    transform: none;
  }
}
.product-media svg * { vector-effect: non-scaling-stroke; }

.price-tag {
  position: absolute;
  bottom: 0;
  right: 0;
  background: var(--ink);
  color: var(--paper-card);
  padding: 6px 12px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.85rem;
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
  box-shadow: none;
  transition: background 0.15s ease, color 0.15s ease;
}
.price-tag::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
}
.price-tag:hover {
  color: var(--accent);
}

/* 360° badge — always visible (not hover-only) so it's obvious in the
   grid which items can be spun, before a customer even clicks in */
.spin-badge {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--ink);
  color: var(--paper-card);
  padding: 6px 10px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--ink);
  border-right: 1px solid var(--ink);
  box-shadow: none;
}
.spin-badge svg {
  width: 12px;
  height: 12px;
  animation: spin-badge-rotate 3s linear infinite;
}
@keyframes spin-badge-rotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .spin-badge svg { animation: none; }
}

.product-info { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  margin: 0;
  color: var(--ink);
  cursor: pointer;
}
.product-name:hover { color: var(--accent); }
.product-meta {
  font-size: 0.8rem;
  color: var(--ink-soft);
  margin: 0 0 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.product-meta .dot { margin: 0 6px; opacity: 0.5; }
.low-stock { color: var(--ink-ghost); font-weight: 600; }

.add-btn {
  margin-top: auto;
  width: 100%;
  background: transparent;
  border: 1px solid var(--ink-soft);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 10px 12px;
  border-radius: 0;
  transition: background 0.18s ease, color 0.18s ease, transform 0.12s ease;
}
.add-btn:hover { background: var(--accent); color: var(--paper-card); transform: translateY(-1px); }
.add-btn:disabled {
  border-color: rgba(43,42,35,0.06);
  color: var(--ink-soft);
  cursor: not-allowed;
}
.add-btn.added { background: var(--ink); border-color: var(--accent); color: var(--paper-card); }

.empty-state {
  text-align: center;
  color: var(--ink-soft);
  padding: 60px 20px;
  font-size: 0.95rem;
}
.empty-hanger {
  width: 64px;
  height: auto;
  color: var(--ink-soft);
  opacity: 0.55;
  margin: 0 auto 18px;
  display: block;
  transform-origin: 50% 12%;
  animation: hanger-sway 3.2s ease-in-out infinite;
}
@keyframes hanger-sway {
  0%, 100% { transform: rotate(-4deg); }
  50%      { transform: rotate(4deg); }
}
@media (prefers-reduced-motion: reduce) {
  .empty-hanger { animation: none; }
}

/* ============================================================
   SKELETON LOADING CARDS — shown while Airtable/product data loads
   ============================================================ */
.skeleton-card {
  background: var(--paper-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}
.skeleton-media { aspect-ratio: 4 / 5; }
.skeleton-info { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 10px; }
.skeleton-line { border-radius: 0; }
.skeleton-line-title { height: 16px; width: 78%; }
.skeleton-line-meta { height: 12px; width: 55%; }
.skeleton-line-btn { height: 36px; width: 100%; margin-top: 6px; border-radius: var(--radius-sm); }

.skeleton-media,
.skeleton-line {
  position: relative;
  overflow: hidden;
  background: rgba(35,35,35,0.08);
}
.skeleton-media::after,
.skeleton-line::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(
    100deg,
    rgba(255,255,255,0) 30%,
    rgba(255,255,255,0.55) 50%,
    rgba(255,255,255,0) 70%
  );
  animation: skeleton-shimmer 1.4s ease-in-out infinite;
}
@keyframes skeleton-shimmer {
  from { transform: translateX(-100%); }
  to   { transform: translateX(100%); }
}
@media (prefers-reduced-motion: reduce) {
  .skeleton-media::after, .skeleton-line::after { animation: none; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--forest);
  color: var(--paper-card);
  padding: 48px 20px 24px;
}
.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(241,236,224,0.18);
}
.site-footer .wordmark { color: var(--paper-card); }
.site-footer .logo-dot { background: var(--paper-card); }
.site-footer .logo-thread { background: var(--accent); }
.footer-brand-caption {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(241,236,224,0.55);
  margin: 6px 0 10px;
}
.footer-tagline { color: rgba(241,236,224,0.7); font-size: 0.9rem; margin: 0; }
.footer-contact p:first-child { margin: 0 0 6px; font-size: 0.85rem; color: rgba(241,236,224,0.7); }
.footer-contact a {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  font-size: 1.05rem;
  transition: color 0.2s ease;
}
.footer-contact a:hover { color: var(--rose); }
.footer-note { font-size: 0.8rem; color: rgba(241,236,224,0.6); margin: 8px 0 0; max-width: 260px; }
.footer-fine {
  max-width: 1240px;
  margin: 20px auto 0;
  font-size: 0.78rem;
  color: rgba(241,236,224,0.55);
}

/* ============================================================
   CART DRAWER
   ============================================================ */
.drawer-overlay, .modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(35,35,35,0.45);
  backdrop-filter: blur(8px) saturate(110%);
  -webkit-backdrop-filter: blur(8px) saturate(110%);
  z-index: 49;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.drawer-overlay.visible, .modal-overlay.visible { opacity: 1; pointer-events: auto; }

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  height: 100dvh;
  width: 100%;
  max-width: 420px;
  background: var(--paper);
  z-index: 50;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.28s ease;
  box-shadow: -8px 0 24px rgba(35,35,35,0.15);
}
.cart-drawer.open { transform: translateX(0); }

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border-bottom: 1px dashed var(--line);
}
.drawer-header h2 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin: 0;
  color: var(--forest);
}
.drawer-close {
  background: none;
  border: none;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--ink-soft);
}

.drawer-body { flex: 1; overflow-y: auto; padding: 14px 20px; }
.drawer-empty { color: var(--ink-soft); text-align: center; padding: 60px 10px; font-size: 0.92rem; }

.cart-item {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px dashed var(--line);
}
.cart-item-media {
  width: 56px;
  height: 68px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cart-item-media svg { width: 60%; height: 60%; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { font-weight: 600; font-size: 0.92rem; margin: 0 0 2px; }
.cart-item-meta { font-size: 0.78rem; color: var(--ink-soft); margin: 0 0 8px; }
.cart-item-controls { display: flex; align-items: center; gap: 10px; }
.qty-btn {
  width: 24px; height: 24px;
  border: 1px solid var(--line);
  background: var(--paper-card);
  border-radius: 0;
  font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  color: var(--forest);
}
.qty-value { font-family: var(--font-mono); font-size: 0.85rem; min-width: 16px; text-align: center; }
.remove-btn {
  margin-left: auto;
  background: none; border: none;
  font-size: 0.78rem;
  color: var(--rose);
  text-decoration: underline;
}
.cart-item-price {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--forest);
  white-space: nowrap;
}

.drawer-footer { padding: 18px 20px 22px; border-top: 1px dashed var(--line); }
.drawer-total-row {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 6px;
  color: var(--forest);
}
.drawer-total-row span:last-child { font-family: var(--font-mono); }
.drawer-hint { font-size: 0.76rem; color: var(--ink-soft); margin: 0 0 14px; }

/* ============================================================
   CHECKOUT MODAL
   ============================================================ */
.modal {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0.96);
  width: min(460px, 92vw);
  max-height: 88vh;
  max-height: 88dvh;
  /* the modal box itself no longer scrolls — .modal-scroll (inside) does.
     that keeps position:absolute chrome like .modal-close pinned to the
     box instead of drifting away with the scrolled content. */
  overflow: hidden;
  background: var(--paper);
  border-radius: var(--radius-md);
  padding: 0;
  z-index: 51;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  box-shadow: 0 20px 50px rgba(35,35,35,0.3);
}
.modal-overlay.visible .modal { opacity: 1; transform: translate(-50%, -50%) scale(1); pointer-events: auto; }

.modal-scroll {
  height: 100%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 30px 26px 26px;
}

.modal h2 {
  font-family: var(--font-display);
  color: var(--forest);
  margin: 0 0 8px;
  font-size: 1.4rem;
}
.modal-sub { color: var(--ink-soft); font-size: 0.88rem; margin: 0 0 22px; }
.modal-close {
  position: absolute;
  top: 14px; right: 16px;
  z-index: 45;
  background: var(--paper-card);
  border: 1px solid var(--line);
  width: 40px;
  height: 40px;
  border-radius: 0;
  font-size: 1.25rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  box-shadow: var(--shadow-tag);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.modal-close svg, .drawer-close svg { width: 16px; height: 16px; }
.modal-close:hover { background: var(--paper); transform: translateY(-1px); }
.modal-close:active { background: var(--paper); transform: translateY(0) scale(0.92); }
.modal-close:focus { outline: 3px solid rgba(199,90,60,0.18); outline-offset: 3px; }
.qv-share-btn {
  position: absolute;
  top: 14px; right: 66px;
  z-index: 45;
  background: var(--paper-card);
  border: 1px solid var(--line);
  width: 40px;
  height: 40px;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  box-shadow: var(--shadow-tag);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.qv-share-btn svg { width: 16px; height: 16px; }
.qv-share-btn:hover { background: var(--paper); color: var(--ink); transform: translateY(-1px); }
.qv-share-btn:active { background: var(--paper); transform: translateY(0) scale(0.92); }
.qv-share-btn:focus { outline: 3px solid rgba(199,90,60,0.18); outline-offset: 3px; }

.field { display: block; margin-bottom: 16px; }
.field span { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; color: var(--ink); }
.field em { font-weight: 400; color: var(--ink-soft); }
.field input, .field textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper-card);
  resize: vertical;
}
.field input:focus, .field textarea:focus { border-color: var(--forest); }

.field-group { border: none; padding: 0; margin: 0 0 16px; }
.field-group legend { font-size: 0.85rem; font-weight: 600; margin-bottom: 8px; padding: 0; }
.radio-option {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-right: 20px;
  font-size: 0.9rem;
}
.radio-option input { width: auto; }

/* ============================================================
   QUICK VIEW MODAL — product detail + photo gallery
   ============================================================ */
.quickview-modal {
  width: min(960px, 96vw);
  padding: 0;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}

.qv-scroll {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
  padding: 32px;
}
@media (min-width: 720px) {
  .qv-scroll {
    grid-template-columns: 1.3fr 1fr;
    padding: 36px;
  }
  .qv-info {
    margin-top: 44px;
  }
}

.qv-gallery { display: flex; flex-direction: column; gap: 10px; }

.qv-mode-toggle {
  display: flex;
  gap: 0;
  background: var(--paper-card);
  border: 1px solid var(--ink);
  border-radius: 0;
  padding: 0;
  align-self: flex-start;
  overflow: hidden;
}
.qv-mode-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none;
  border-right: 1px solid var(--ink);
  background: transparent;
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.82rem;
  padding: 8px 14px;
  border-radius: 0;
  transition: background 0.15s ease, color 0.15s ease;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.qv-mode-btn:last-child { border-right: none; }
.qv-mode-btn svg { width: 13px; height: 13px; }
.qv-mode-btn:hover { color: var(--ink); background: rgba(20,20,20,0.04); }
.qv-mode-btn:active:not(.active) { background: rgba(20,20,20,0.08); }
.qv-mode-btn.active {
  background: var(--ink);
  color: var(--paper-card);
}

.qv-thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}
.qv-thumb {
  flex-shrink: 0;
  width: 56px;
  height: 68px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.qv-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.qv-thumb.active { border-color: var(--ink); }

.qv-main {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 3;
  max-height: min(58vh, 560px);
  max-height: min(58dvh, 560px);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.qv-main.spinnable {
  max-height: min(calc(58vh + 80px), 640px);
  max-height: min(calc(58dvh + 80px), 640px);
}
.qv-main-media {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: pan-y;
  user-select: none;
  border: 1px solid var(--ink);
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}
.qv-main-media svg { width: 40%; height: 40%; opacity: 0.9; color: rgba(20,20,20,0.5); }
.qv-main-media img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.qv-main.spinnable .qv-main-media { cursor: grab; }
.qv-main-media.dragging { cursor: grabbing; }

.qv-spin-hint {
  position: absolute;
  bottom: 12px;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(20,20,20,0.82);
  color: var(--paper-card);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  padding: 6px 12px;
  border-radius: 0;
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  transform: translate(-50%, 6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.qv-spin-hint.qv-hint-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.qv-spin-hint[hidden] { display: none; }

.qv-spin-hint svg { width: 14px; height: 14px; }

.qv-frame-counter {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(20,20,20,0.82);
  color: var(--paper-card);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.03em;
  padding: 4px 9px;
  border-radius: var(--radius-sm);
  z-index: 2;
}

.qv-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 0 30px;
  width: 100%;
}
.qv-loading-bar {
  width: 100%;
  max-width: 180px;
  height: 3px;
  background: rgba(20,20,20,0.12);
  border-radius: 0;
  overflow: hidden;
}
.qv-loading-fill {
  height: 100%;
  background: var(--accent);
  width: 0%;
  transition: width 0.2s ease;
}
.qv-loading span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  color: var(--ink-soft);
}

.qv-main-media img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.qv-main-media.qv-slide-next img { animation: qvSlideFromRight 0.25s ease; }
.qv-main-media.qv-slide-prev img { animation: qvSlideFromLeft 0.25s ease; }
@keyframes qvSlideFromRight {
  from { transform: translateX(20px); }
  to   { transform: translateX(0); }
}
@keyframes qvSlideFromLeft {
  from { transform: translateX(-20px); }
  to   { transform: translateX(0); }
}

.qv-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 40;
  width: 40px;
  height: 40px;
  border-radius: 0;
  border: 1px solid var(--line);
  background: var(--paper-card);
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-tag);
  transition: background 0.12s ease, transform 0.12s ease, border-color 0.12s ease, color 0.12s ease;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.qv-arrow-prev { left: 10px; }
.qv-arrow-next { right: 10px; }
@media (hover: hover) and (pointer: fine) {
  .qv-arrow:hover {
    background: var(--paper);
    color: var(--ink);
    transform: translateY(calc(-50% - 1px));
  }
}
.qv-arrow:active {
  background: var(--paper);
  color: var(--ink);
  transform: translateY(-50%) scale(0.92);
}
.qv-arrow:focus-visible { outline: 3px solid rgba(199,90,60,0.18); outline-offset: 3px; }
.qv-arrow[hidden] { display: none; }

.qv-arrow svg { width: 18px; height: 18px; color: inherit; }

.qv-info { display: flex; flex-direction: column; }
.qv-info h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--ink);
  margin: 0 0 6px;
}
.qv-meta { font-size: 0.85rem; color: var(--ink-soft); margin: 0 0 12px; }
.qv-meta .dot { margin: 0 6px; opacity: 0.5; }
.qv-price {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--forest);
  margin: 0 0 16px;
}
.qv-measurements {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--ink);
  background: rgba(43,42,35,0.03);
  padding: 10px 12px;
  border-radius: 0;
  white-space: pre-wrap;
  margin: 0 0 12px;
}
.qv-description {
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 1.6;
  margin: 0 0 22px;
  flex: 1;
}
.qv-recs {
  grid-column: 1 / -1;
  min-width: 0;
  margin-top: 8px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.qv-recs-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--ink);
  margin: 0 0 12px;
}
.qv-recs-strip {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.qv-rec-card {
  flex-shrink: 0;
  width: 120px;
  text-align: left;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.qv-rec-media {
  aspect-ratio: 4 / 5;
  border: 1px solid var(--line);
  overflow: hidden;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.qv-rec-media img { width: 100%; height: 100%; object-fit: cover; }
.qv-rec-name {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.qv-rec-price {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-soft);
  margin-top: 2px;
}

/* ============================================================
   QUICK VIEW — MOBILE BOTTOM SHEET
   Below 720px the quickview becomes a sheet pinned to the bottom
   edge of the viewport instead of a box centered via top/left 50%.
   That's the actual fix for "things moving around": a centered
   modal recalculates its position from its own height, so it visibly
   drifts every time content height changes (switching Photos/360°,
   different description lengths between products, address-bar
   show/hide on scroll). A bottom-anchored sheet with a fixed height
   doesn't have that problem — only the content inside scrolls, the
   frame (and the close button on it) stays put.
   ============================================================ */
@media (max-width: 720px) {
  .quickview-modal {
    position: fixed;
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 100%;
    height: min(92dvh, 92vh);
    max-height: min(92dvh, 92vh);
    border-radius: 20px 20px 0 0;
    border-left: none;
    border-right: none;
    border-bottom: none;
    transform: translateY(100%);
    transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.2s ease;

    /* ADD THESE PROPS TO ALLOW SAFARI TOUCH EVENTS */
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
  }
  .modal-overlay.visible .quickview-modal {
    transform: translateY(0);
  }

  body.modal-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
  }

  .modal-close, .qv-share-btn { top: 16px; }

  .qv-scroll {
    flex: 1;
    height: auto;  
    min-height: 0; /* required for flex children to scroll */
    overflow-y: auto; /* <-- ADD THIS LINE */
    -webkit-overflow-scrolling: touch; /* <-- ADD THIS FOR SMOOTH iOS SCROLL */
    padding: 18px 20px 0;
    padding-bottom: max(20px, env(safe-area-inset-bottom));
  }

  /* bigger tap targets for arrows and mode toggle — 44px is the
     accepted minimum comfortable touch target on phones */
  .qv-arrow {
    width: 44px;
    height: 44px;
  }
  .qv-arrow svg { width: 20px; height: 20px; }

  .qv-mode-btn {
    padding: 10px 14px;
    font-size: 0.85rem;
  }

  .qv-thumb {
    width: 60px;
    height: 74px;
  }
}

/* share sheet */

.share-sheet-overlay {
  position: fixed;
  inset: 0;
  background: rgba(35,35,35,0.45);
  backdrop-filter: blur(8px) saturate(110%);
  -webkit-backdrop-filter: blur(8px) saturate(110%);
  z-index: 60;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.share-sheet-overlay.visible { opacity: 1; pointer-events: auto; }

.share-sheet {
  width: 100%;
  max-width: 460px;
  background: var(--paper);
  border-top: 1px solid var(--line);
  padding: 10px 20px calc(20px + env(safe-area-inset-bottom));
  transform: translateY(100%);
  transition: transform 0.25s ease;
}
.share-sheet-overlay.visible .share-sheet { transform: translateY(0); }

.share-sheet-handle {
  width: 36px; height: 4px;
  background: var(--line);
  opacity: 0.3;
  margin: 0 auto 14px;
}

.share-sheet-option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 4px;
  background: none;
  border: none;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  text-align: left;
}
.share-sheet-option svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--ink-soft); }
.share-sheet-option:active { background: var(--paper-card); }

.share-sheet-cancel {
  width: 100%;
  padding: 14px 4px;
  margin-top: 6px;
  background: none;
  border: none;
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--ink-soft);
  text-align: center;
}

/* ============================================================
   TOAST
   ============================================================ */
/* ============================================================
   BACK TO TOP — borrowed from the portfolio site, re-skinned
   ============================================================ */
.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 24px;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--forest);
  color: var(--paper-card);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-tag);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.15s ease;
  z-index: 55;
  cursor: pointer;
}
.back-to-top.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-to-top:hover { background: var(--forest-dark); }
.back-to-top svg { width: 20px; height: 20px; }

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--forest);
  color: var(--paper-card);
  padding: 14px 22px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  z-index: 60;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  box-shadow: 0 8px 20px rgba(35,35,35,0.25);
  max-width: 90vw;
  text-align: center;
}
.toast.visible { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ============================================================
   RESPONSIVE — MOBILE NAV
   ============================================================ */
@media (max-width: 860px) {

  .header-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    min-height: 56px;
  }

  .header-inner .wordmark {
    grid-column: 2;
    justify-self: center;
    text-align: center;
    padding: 0;
  }

  .header-inner .hamburger {
    grid-column: 1;
    justify-self: start;
  }

  .header-inner .cart-btn {
    grid-column: 3;
    justify-self: end;
    margin: 0;
  }

  .hero {
  position: relative;
  max-width: 1240px;
  margin: 0 auto;
  padding: 88px 20px 64px;
  display: flex;
  flex-direction: column; /* Stack vertically on mobile */
  align-items: center;    /* Center everything on mobile */
  text-align: center;
}

.hero-title {
  display: flex;
  justify-content: center; /* Center the logo on mobile */
  width: 100%;
}

.hero-logo {
  width: min(88%, 520px);
  height: auto;
  overflow: visible;
}

  /* ============================================================
     ⚡ CONSOLIDATED BRANDED HAMBURGER MENU
     ============================================================ */
  .hamburger {
    display: block; /* Matches original visibility logic */
    background: none;
    border: none;
    width: 44px;
    height: 44px;
    padding: 0;
    position: relative;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  /* The main 3 track layers, absolutely positioned to prevent vertical stacking issues */
  .hamburger span {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 22px; /* Standard horizontal line track width */
    height: 2px;
    background: var(--ink);
    border-radius: 0;
    transition: transform 0.2s ease, opacity 0.2s ease, width 0.2s ease, background 0.2s ease;
  }

  /* Exact original pixel spacing heights */
  .hamburger span:nth-child(1) { top: 12px; }
  .hamburger span:nth-child(2) { top: 21px; }
  .hamburger span:nth-child(3) { top: 30px; }

  /* ─── LINE 1: THE "dots & seams" ROW ─── */
  .hamburger span:nth-child(1) {
    background: transparent; /* Hide the default solid line background */
    display: flex;
    align-items: center;
    gap: 3px;
    overflow: hidden;
  }

  /* Structural mini-elements inside the HTML button markup */
  .hamburger span:nth-child(1) .menu-dot {
    width: 2px;
    height: 2px;
    background-color: var(--ink);
    border-radius: 50%;
    flex-shrink: 0;
    transition: background-color 0.2s ease;
  }

  .hamburger span:nth-child(1) .menu-dash {
    flex-grow: 1;
    height: 2px;
    background-color: var(--ink);
    border-radius: 0;
    transition: background-color 0.2s ease;
  }

  /* ─── LINE 2: THE SHORTER MIDDLE LINE ─── */
  .hamburger span:nth-child(2) {
    width: 14px; /* Scaled down perfectly */
    transform: translateX(-78%); /* Clean layout anchor balance offset for 14px line */
  }

  /* ─── INTERACTIVE HOVER / TOUCH STATES ─── */
  .hamburger:hover span,
  .hamburger:active span,
  .hamburger:hover .menu-dot,
  .hamburger:hover .menu-dash {
    background-color: var(--rose);
  }

  /* Micro-interaction: middle line stretches slightly on hover */
  .hamburger:hover span:nth-child(2) {
    width: 18px;
    transform: translateX(-62%);
  }

  /* ─── ACTIVE CLOSING STATE ("X" TRANSFORMATION) ─── */
  .hamburger.open span:nth-child(1) { 
    background: var(--ink); /* Swaps background back to solid ink for a crisp cross bar */
    overflow: visible;
    transform: translateX(-50%) translateY(9px) rotate(45deg); 
  }

  /* Hide the inner dot/dash shapes completely when open */
  .hamburger.open span:nth-child(1) * {
    opacity: 0;
  }

  .hamburger.open span:nth-child(2) { 
    opacity: 0; 
  }

  .hamburger.open span:nth-child(3) { 
    transform: translateX(-50%) translateY(-9px) rotate(-45deg); 
  }

  /* ============================================================
     NAVIGATION & MOBILE DRAWER PANEL
     ============================================================ */
  .main-nav {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: min(280px, 80vw);
    background: var(--paper-card);
    flex-direction: column;
    gap: 0;
    padding: 84px 0 24px;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    z-index: 40;
    border-right: 1px solid var(--line);
    overflow-y: auto;
  }

  .main-nav.open { 
    transform: translateX(0); 
  }

  .nav-close-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 20px;
    right: 16px;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    color: var(--ink-soft);
    -webkit-tap-highlight-color: transparent;
  }

  .nav-close-btn svg { 
    width: 18px; 
    height: 18px; 
  }

  .nav-close-btn:hover, 
  .nav-close-btn:active { 
    color: var(--ink); 
  }

  /* ============================================================
     DROPDOWNS & NAVIGATION LINKS
     ============================================================ */
  .nav-dropdown {
    display: block;
    border-right: none;
  }

  .nav-link {
    padding: 16px 20px;
    border: none;
    border-radius: 0;
    font-size: 1.02rem;
    min-height: auto;
    background: transparent;
    box-shadow: none;
    color: var(--ink);
    font-weight: 600;
    letter-spacing: -0.01em;
    transition: background 0.12s ease, color 0.12s ease;
  }

  .nav-link:hover, 
  .nav-link:active {
    background: rgba(20,20,20,0.05);
    color: var(--accent);
  }

  .nav-dropdown-toggle {
    width: 100%;
    justify-content: space-between;
    padding: 16px 20px;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: var(--ink);
    font-weight: 600;
    font-size: 1.02rem;
    letter-spacing: -0.01em;
    transition: background 0.12s ease, color 0.12s ease;
    -webkit-tap-highlight-color: transparent;
  }

  .nav-dropdown-toggle:hover, 
  .nav-dropdown-toggle:active {
    background: rgba(20,20,20,0.05);
    color: var(--accent);
  }

  .nav-dropdown-panel {
    position: static;
    box-shadow: none;
    border: none;
    padding: 0;
    min-width: 0;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.22s ease;
    background: transparent;
  }

  .nav-dropdown-panel.open { 
    max-height: 500px; 
  }

  .nav-dropdown-link {
    padding: 12px 20px 12px 40px;
    font-size: 0.95rem;
    border-radius: 0;
    color: var(--ink-soft);
    border-bottom: none;
    font-weight: 500;
    transition: background 0.12s ease, color 0.12s ease;
    -webkit-tap-highlight-color: transparent;
  }

  .nav-dropdown-link:hover, 
  .nav-dropdown-link:active {
    background: rgba(20,20,20,0.05);
    color: var(--accent);
  }

  .nav-link-coming-soon {
    width: 100%;
    justify-content: flex-start;
  }

  /* ============================================================
     HERO BREAKPOINT OVERRIDES
     ============================================================ */
  .hero { 
    padding: 44px 20px 56px; 
  }

  .hero-sub { 
    font-size: 0.98rem; 
  }

  .cart-drawer { 
    max-width: 100%; 
  }

.qv-spin-hint {
    bottom: auto; /* Clears the desktop bottom anchor */
    top: 12px;    /* Snaps it to the top on mobile */
  }

  /* ============================================================
     MOTION ACCESSIBILITY PROTECTION
     ============================================================ */
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
      animation-duration: 0.001ms !important;
      transition-duration: 0.001ms !important;
    }
  }
}
