/* ══════════════════════════════════════════════════════════════════════════
   VintageGear CSS — Consolidated
   Structure:
    1.  Custom properties (:root + dark theme)
    2.  Base / reset
    3.  Header
    4.  Header inline search
    5.  Header Gear Music attribution
    6.  Navigation
    7.  Breadcrumb
    8.  Identity band (home hero)
    9.  Product cards (shared)
   10.  Product grid
   11.  Trust bar
   12.  Listing page (sidebar, filters, sort, pagination)
   13.  Collapsible filter groups
   14.  Listing search bar
   15.  Product detail (gallery, product info, CTAs, description)
   16.  Gallery navigation (arrows, counter)
   17.  Cart page
   18.  Checkout page
   19.  Search page
   20.  Staff picks page
   21.  Content pages
   22.  Footer (including gear pig stamps)
   23.  Theme toggle
   24.  Mobile hamburger menu
   25.  ─── @media (max-width: 768px) ─── all tablet/mobile overrides
   26.  ─── @media (max-width: 480px) ─── narrow phone overrides
   ══════════════════════════════════════════════════════════════════════════ */


/* ══ 1. CUSTOM PROPERTIES ══════════════════════════════════════════════════ */

:root {
  /* Semantic vars (theme-switchable) */
  --bg: #FAF9F7;
  --surface: #FFFFFF;
  --wire: #E5E5E5;
  --text: #1A1A1A;
  --text-muted: #6B6B6B;
  --claret: #8B1A2B;
  --heading: #1A1A1A;
  /* Fixed vars (same in both modes) */
  --slate: #1E2229;
  --gold: #B8922E;
  --outline-copper: #B87333;
  --claret-deep: #5C1020;
  --gray-light: #999;
  --surface-dim: #F2F2F0;
  --shadow: rgba(0,0,0,0.06);
}

[data-theme="dark"] {
  --bg: #1A1A1A;
  --surface: #242424;
  --surface-dim: #2A2A2A;
  --wire: #333333;
  --text: #E5E5E5;
  --text-muted: #999999;
  --claret: #C43D52;
  --heading: #E5E5E5;
}


/* ══ 2. BASE / RESET ═══════════════════════════════════════════════════════ */

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

body {
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}


/* ══ 3. HEADER ═════════════════════════════════════════════════════════════ */

.site-header { background: var(--slate); }

.header-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 40px 14px;
}

.header-left { display: flex; align-items: center; gap: 20px; }

.logo-lockup {
  display: inline-flex; flex-direction: column; align-items: center;
  gap: 5px; text-decoration: none;
}
.logo-wordmark {
  font-family: 'Cormorant Garamond', serif; font-size: 1.9rem; font-weight: 600;
  color: #FFF; font-variant: small-caps; letter-spacing: 0.02em; line-height: 1;
  white-space: nowrap;
}
.logo-byline {
  display: flex; align-items: center; gap: 8px;
  font-family: 'DM Sans', sans-serif; font-size: 0.6rem; font-weight: 600;
  color: var(--gold); text-transform: uppercase; letter-spacing: 0.16em; line-height: 1;
}
.byline-rule { display: inline-block; width: 22px; height: 1px; background: var(--gold); flex-shrink: 0; }

.header-tagline { display: inline-block; text-align: center; }
.tagline-main {
  display: block;
  font-family: 'Cinzel', serif;
  font-size: 0.60rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.10em; color: #C9A03C; line-height: 1;
}
.tagline-sub {
  display: block; margin-top: 4px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.48rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.14em; color: rgba(184,146,46,0.70); line-height: 1;
}

.header-icons { display: flex; align-items: center; gap: 22px; }
.header-icons a {
  color: #FFF; text-decoration: none; display: flex; align-items: center;
  min-width: 36px; min-height: 44px; justify-content: center;
  opacity: 0.85; transition: opacity 0.15s;
}
.header-icons a:hover { opacity: 1; }
.cart-icon-link { position: relative; }
.cart-count {
  position: absolute; top: 4px; right: -6px;
  background: var(--gold); color: #fff; font-size: 0.65rem; font-weight: 700;
  min-width: 16px; height: 16px; line-height: 16px;
  border-radius: 8px; text-align: center; padding: 0 4px;
}


/* ══ 4. HEADER INLINE SEARCH ═══════════════════════════════════════════════ */

.header-search { display: flex; align-items: center; position: relative; }
.header-search-toggle {
  background: none; border: none; padding: 0; cursor: pointer;
  color: #FFF; opacity: 0.85; transition: opacity 0.15s;
  display: flex; align-items: center;
}
.header-search-toggle:hover { opacity: 1; }
.header-search-form {
  width: 0; overflow: hidden; transition: width 0.25s ease;
}
.header-search.open .header-search-form {
  width: 200px; margin-left: 10px;
}
.header-search-form input {
  width: 100%; padding: 6px 12px; border: 1px solid rgba(255,255,255,0.2);
  border-radius: 4px; background: rgba(255,255,255,0.08); color: #FFF;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  font-size: 0.78rem; outline: none;
}
.header-search-form input::placeholder { color: rgba(255,255,255,0.4); }
.header-search-form input:focus {
  border-color: rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.12);
}


/* ══ 5. HEADER GEAR MUSIC ATTRIBUTION ══════════════════════════════════════ */
/* Uses Gear Music's own brand identity — green, system font — NOT VG's palette */

.header-gm {
  display: flex; flex-direction: column; align-items: center;
  text-decoration: none; gap: 3px;
  margin-left: auto; margin-right: 60px;
}
.header-gm-label {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  font-size: 0.45rem; font-weight: 500; text-transform: uppercase;
  letter-spacing: 0.1em; color: rgba(255,255,255,0.45); line-height: 1;
}
.header-gm-logo {
  height: 20px; width: auto; opacity: 0.7;
  transition: opacity 0.15s;
}
.header-gm:hover .header-gm-logo { opacity: 0.85; }
.header-gm:hover .header-gm-label { color: rgba(255,255,255,0.5); }


/* ══ 6. NAVIGATION ══════════════════════════════════════════════════════════ */

.header-nav {
  display: flex; gap: 28px; padding: 0 40px;
  border-top: 1px solid rgba(255,255,255,0.07);
  flex-wrap: nowrap;
}
.header-nav a {
  font-size: 0.75rem; font-weight: 600; color: #CCC; text-decoration: none;
  text-transform: uppercase; letter-spacing: 0.1em;
  padding: 11px 0 10px; border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s; display: inline-block;
  white-space: nowrap;
}
.header-nav a:hover { color: #FFF; }
.header-nav a.active { color: var(--gold); border-bottom-color: var(--gold); }

/* Mid-width / phone landscape: keep labels one line, tighten row */
@media (max-width: 1100px) and (min-width: 769px) {
  .header-nav {
    gap: 12px; padding: 0 16px;
    overflow-x: auto; -webkit-overflow-scrolling: touch;
  }
  .header-nav a {
    font-size: 0.68rem; letter-spacing: 0.06em; flex-shrink: 0;
  }
}


/* ══ 7. BREADCRUMB ═════════════════════════════════════════════════════════ */

.breadcrumb {
  padding: 14px 40px;
  font-size: 0.78rem; color: var(--text-muted);
  border-bottom: 1px solid var(--wire);
}
.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--claret); }
.breadcrumb span { margin: 0 8px; opacity: 0.5; }


/* ══ 8. IDENTITY BAND (home hero) ══════════════════════════════════════════ */

.identity-band {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  padding: 32px 40px 28px;
  align-items: stretch;
  border-bottom: 1px solid var(--wire);
}

.identity-left {
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center; gap: 24px;
  padding: 40px 32px;
  border-radius: 8px; overflow: hidden;
  background-image:
    linear-gradient(160deg, rgba(18,10,22,0.82) 0%, rgba(26,14,8,0.82) 100%),
    url('/assets/images/gear-store-interior-1920.jpg');
  background-image:
    linear-gradient(160deg, rgba(18,10,22,0.82) 0%, rgba(26,14,8,0.82) 100%),
    image-set(url('/assets/images/gear-store-interior-1920.avif') type('image/avif'), url('/assets/images/gear-store-interior-1920.webp') type('image/webp'), url('/assets/images/gear-store-interior-1920.jpg') type('image/jpeg'));
  background-size: cover; background-position: center 50%;
  min-height: 320px;
}
/* Hero store photo: smaller files for narrower screens */
@media (max-width: 1100px) {
  .identity-left {
    background-image:
      linear-gradient(160deg, rgba(18,10,22,0.82) 0%, rgba(26,14,8,0.82) 100%),
      url('/assets/images/gear-store-interior-1280.jpg');
    background-image:
      linear-gradient(160deg, rgba(18,10,22,0.82) 0%, rgba(26,14,8,0.82) 100%),
      image-set(url('/assets/images/gear-store-interior-1280.avif') type('image/avif'), url('/assets/images/gear-store-interior-1280.webp') type('image/webp'), url('/assets/images/gear-store-interior-1280.jpg') type('image/jpeg'));
  }
}
@media (max-width: 768px) {
  .identity-left {
    background-image:
      linear-gradient(160deg, rgba(18,10,22,0.82) 0%, rgba(26,14,8,0.82) 100%),
      url('/assets/images/gear-store-interior-960.jpg');
    background-image:
      linear-gradient(160deg, rgba(18,10,22,0.82) 0%, rgba(26,14,8,0.82) 100%),
      image-set(url('/assets/images/gear-store-interior-960.avif') type('image/avif'), url('/assets/images/gear-store-interior-960.webp') type('image/webp'), url('/assets/images/gear-store-interior-960.jpg') type('image/jpeg'));
  }
}

.identity-right { position: relative; }

.identity-logo { align-items: center; }
.identity-logo .logo-wordmark { font-size: 4.2rem; }
.identity-subs { display: flex; flex-direction: column; gap: 3px; }
.identity-logo .logo-byline { font-size: 0.85rem; letter-spacing: 0.20em; }
.identity-logo .byline-rule { width: 50px; }
.identity-sub {
  font-size: 0.98rem; color: rgba(255,255,255,0.62);
  text-align: center; line-height: 1.5; letter-spacing: 0.01em;
}

/* Era pills */
.era-pills { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.era-pill {
  display: inline-block; padding: 8px 18px; border-radius: 6px;
  font-size: 0.8rem; font-weight: 600; color: var(--gold);
  border: 1.5px solid rgba(184,146,46,0.55); background: rgba(184,146,46,0.08);
  text-decoration: none; transition: background 0.15s, color 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.era-pill:hover { background: rgba(184,146,46,0.22); color: #E8C56A; border-color: var(--gold); }
.era-pill.active { background: rgba(184,146,46,0.28); color: #E8C56A; border-color: var(--gold); }

.era-label {
  font-size: 0.62rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.14em; color: var(--gold);
  display: flex; align-items: center; gap: 10px; width: 100%; justify-content: center;
}
.era-label::before, .era-label::after {
  content: ''; flex: 1; max-width: 40px; height: 1px; background: rgba(184,146,46,0.45);
}

/* Budget pills (hero) */
.budget-label-hero {
  font-size: 0.62rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.14em; color: var(--gold);
  display: flex; align-items: center; gap: 10px; width: 100%; justify-content: center;
  margin-top: 16px;
}
.budget-label-hero::before, .budget-label-hero::after {
  content: ''; flex: 1; max-width: 40px; height: 1px; background: rgba(184,146,46,0.45);
}
.budget-pill-hero {
  display: inline-block; padding: 5px 13px; border-radius: 5px;
  font-size: 0.72rem; font-weight: 600; color: var(--gold);
  border: 1.5px solid rgba(184,146,46,0.55); background: rgba(184,146,46,0.08);
  text-decoration: none; transition: background 0.15s, color 0.15s, border-color 0.15s;
  flex-shrink: 0;
}
.budget-pill-hero:hover { background: rgba(184,146,46,0.22); color: #E8C56A; border-color: var(--gold); }

/* Featured label on identity-right */
.featured-label {
  position: absolute; top: 16px; right: 16px; z-index: 2;
  background: var(--gold); color: var(--slate);
  padding: 7px 14px; border-radius: 4px;
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  text-decoration: none;
}

/* Just Arrived section */
.arrivals-section { padding: 32px 40px 40px; }
.arrivals-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 24px;
}
.arrivals-title {
  font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; font-weight: 600;
  color: var(--text);
}
.arrivals-link {
  font-size: 0.82rem; font-weight: 600; color: var(--claret);
  text-decoration: none; letter-spacing: 0.02em;
}
.arrivals-link:hover { text-decoration: underline; }

/* Budget strip (below identity band on home) */
.budget-strip {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 24px; flex-wrap: wrap;
}
.budget-label {
  font-size: 0.65rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.10em; color: var(--text-muted); white-space: nowrap; flex-shrink: 0;
}
.budget-pill {
  display: inline-block; padding: 5px 14px; border-radius: 5px;
  font-size: 0.72rem; font-weight: 600; color: var(--claret);
  border: 1.5px solid rgba(139,26,43,0.40); background: rgba(139,26,43,0.06);
  text-decoration: none; white-space: nowrap;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.budget-pill:hover { background: rgba(139,26,43,0.18); border-color: var(--claret); }

/* What's New section */
.section { padding: 32px 40px 40px; }
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; margin-bottom: 16px; flex-wrap: wrap;
}
.section-title {
  font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; font-weight: 600;
  color: var(--text); white-space: nowrap;
}
.section-sub { font-size: 0.82rem; color: var(--text-muted); white-space: nowrap; }
.section-header .era-pills { flex: 1; justify-content: center; }
.section-header .era-pill { padding: 6px 14px; font-size: 0.75rem; }

.scroll-hint { text-align: center; padding: 32px 40px 8px; font-size: 0.78rem; color: var(--gray-light); }


/* ══ 9. PRODUCT CARDS (shared) ═════════════════════════════════════════════ */

.product-card {
  background: var(--surface); border-radius: 8px; overflow: hidden;
  box-shadow: 0 1px 4px var(--shadow); border: 1px solid var(--wire);
  position: relative; transition: box-shadow 0.15s;
  display: flex; flex-direction: column; height: 100%;
}
.product-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.1); }
.product-card .card-image {
  position: relative;
  aspect-ratio: 4/5; background: var(--surface-dim); overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; color: var(--gray-light); font-style: italic;
}
.product-card .card-image img { width: 100%; height: 100%; object-fit: contain; display: block; }
.product-card .card-badge {
  position: absolute; top: 12px; right: 12px;
  background: var(--gold); color: var(--text);
  padding: 4px 10px; border-radius: 4px;
  font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
}
.product-card .card-body {
  position: relative; z-index: 2;
  background: var(--surface);
  overflow-x: hidden; padding: 16px 18px 20px;
  display: flex; flex-direction: column; flex: 1 1 auto;
}
.product-card .card-name { font-size: 0.95rem; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.product-card .card-meta { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 12px; }
.product-card .card-meta-link { color: inherit; text-decoration: none; }
.product-card .card-meta-link:hover { color: var(--claret); text-decoration: underline; }
.product-card .card-price { font-size: 1rem; font-weight: 700; color: var(--claret); }
.product-card .card-bottom { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.product-card .card-body > .card-price { margin-top: auto; }
.product-card .card-link { font-size: 0.75rem; font-weight: 600; color: var(--claret); text-decoration: none; }
.product-card .card-link:hover { text-decoration: underline; }

/* Featured card */
.featured-card {
  border: 1.5px solid var(--outline-copper);
  box-shadow: 0 4px 24px rgba(184,115,51,0.14);
}
.featured-card:hover { box-shadow: 0 8px 32px rgba(184,115,51,0.22); }
.featured-card .card-image {
  aspect-ratio: 4/5; height: auto;
  padding: 12px;
}
.featured-card .card-price { font-size: 1.15rem; }

/* Sold state */
.product-card.sold .card-image { opacity: 0.5; }
.product-card.sold .card-name { color: var(--gray-light); }
.product-card.sold .card-price { color: var(--gray-light); font-weight: 500; }

/* Gear pig stamp — lives inside .card-image only (behind card title/body).
   Must beat .product-card .card-image img { width/height:100% } or stamp fills the photo. */
.product-card .card-image img.gear-pig-stamp {
  position: absolute; bottom: 10px; right: 10px; left: auto; transform: none;
  width: 76px; height: 76px; max-width: 76px; max-height: 76px;
  object-fit: contain; opacity: 0.80; pointer-events: none; z-index: 1;
}
.product-card .card-image img.gear-pig-stamp.featured-pig {
  width: 76px; height: 76px; max-width: 76px; max-height: 76px;
  bottom: 14px; right: 14px; left: auto; transform: none; opacity: 0.85;
}


/* ══ 10. PRODUCT GRID ══════════════════════════════════════════════════════ */

.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.arrivals-section .product-grid { grid-template-columns: repeat(4, 1fr); }


/* ══ 11. TRUST BAR ═════════════════════════════════════════════════════════ */

.trust-bar {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  padding: 0 40px 48px;
}
.trust-bar-3 {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  padding: 0 40px 48px;
}
.trust-bar-product {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  padding: 32px 40px 40px;
}
.trust-item {
  display: block; background: var(--surface); border-radius: 8px; padding: 24px;
  text-align: center; border: 1px solid var(--wire); color: inherit; text-decoration: none;
}
.trust-item:hover { border-color: var(--claret); transform: translateY(-1px); }
.trust-item .trust-icon { font-size: 1.5rem; margin-bottom: 10px; }
.trust-item .trust-title { font-weight: 600; font-size: 0.88rem; color: var(--text); margin-bottom: 4px; }
.trust-item .trust-desc { font-size: 0.78rem; color: var(--text-muted); line-height: 1.5; }
.gear-pig-trust { width: 48px; height: 48px; margin: 0 auto 8px; display: block; opacity: 0.85; }


/* ══ 12. LISTING PAGE ══════════════════════════════════════════════════════ */

.page-layout { display: grid; grid-template-columns: 240px 1fr; gap: 32px; padding: 8px 40px 56px; }

/* Sidebar */
.sidebar { padding-top: 8px; }
.filter-group { margin-bottom: 28px; }
.filter-group h3 {
  font-size: 0.72rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--text-muted);
  margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--wire);
}
.filter-group.featured h3 { color: var(--claret); border-bottom-color: var(--claret); }
.filter-group ul { list-style: none; }
.filter-group li { margin-bottom: 6px; }
.filter-group a {
  font-size: 0.85rem; color: var(--text); text-decoration: none;
  display: flex; justify-content: space-between; align-items: center; padding: 4px 0;
}
.filter-group a:hover { color: var(--claret); }
.filter-group a.active { color: var(--claret); font-weight: 600; }
.filter-count { font-size: 0.72rem; color: var(--text-muted); font-weight: 400; }

.price-quick { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.price-bands { margin-bottom: 14px; }
.price-bands li a { padding: 5px 0; }
.price-divider {
  font-size: 0.68rem; color: var(--gray-light); text-transform: uppercase;
  letter-spacing: 0.06em; margin: 10px 0 6px;
}
.filter-group .price-inputs { display: flex; gap: 8px; align-items: center; }
.filter-group .price-input {
  width: 90px; padding: 8px 10px; border: 1px solid var(--wire); border-radius: 4px;
  font-size: 0.82rem; font-family: inherit; background: var(--surface); color: var(--text);
}
.filter-group .price-dash { color: var(--text-muted); font-size: 0.82rem; }
.btn-filter {
  display: inline-block; margin-top: 8px; padding: 7px 16px;
  border: 1px solid var(--wire); border-radius: 4px;
  font-size: 0.78rem; font-weight: 500; color: var(--text);
  background: var(--surface); cursor: pointer; font-family: inherit;
}
.btn-filter:hover { border-color: var(--claret); color: var(--claret); }
.filter-clear-all { margin-bottom: 16px; }
.filter-clear-link {
  display: inline-block;
  font-size: 0.82rem;
  color: var(--claret);
  text-decoration: underline;
  font-weight: 600;
}
.filter-clear-link:hover { color: var(--gold); }
.price-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}
.price-actions .btn-filter { margin-top: 0; }


/* Listing header / sort / filters */
.listing-area { }
.listing-header {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 20px;
  margin: 0 0 12px; padding: 0 0 12px; border-bottom: 1px solid var(--wire);
  flex-wrap: wrap;
}
.listing-era-pills { display: flex; gap: 6px; flex-wrap: wrap; flex: 1; justify-content: center; }
.listing-era-pill {
  display: inline-block; padding: 5px 12px; border-radius: 5px;
  font-size: 0.72rem; font-weight: 600; color: var(--gold);
  border: 1.5px solid rgba(184,146,46,0.55); background: rgba(184,146,46,0.08);
  text-decoration: none; white-space: nowrap;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.listing-era-pill:hover { background: rgba(184,146,46,0.22); color: #E8C56A; border-color: var(--gold); }
.listing-era-pill.active { background: rgba(184,146,46,0.28); color: #E8C56A; border-color: var(--gold); }
.listing-count { font-size: 0.88rem; color: var(--text-muted); }
.listing-count strong { color: var(--text); font-weight: 600; }
/* Active filter pills (listing header) */
.listing-active-filters {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  flex: 1 1 auto; min-width: 0;
}
.listing-filter-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 8px 5px 12px; border-radius: 999px;
  font-size: 0.75rem; font-weight: 600; line-height: 1.2;
  color: var(--text);
  border: 1.5px solid rgba(184,146,46,0.50);
  background: rgba(184,146,46,0.10);
  text-decoration: none; white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.listing-filter-pill:hover {
  background: rgba(184,146,46,0.22);
  border-color: var(--gold);
  color: #E8C56A;
}
.listing-filter-pill-label { max-width: 16rem; overflow: hidden; text-overflow: ellipsis; }
.listing-filter-pill-x {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.15rem; height: 1.15rem; border-radius: 50%;
  font-size: 0.95rem; font-weight: 700; line-height: 1;
  color: var(--text);
  background: rgba(0,0,0,0.18);
  border: 1px solid rgba(184,146,46,0.35);
}
.listing-filter-pill:hover .listing-filter-pill-x {
  background: rgba(139,26,43,0.55);
  border-color: var(--claret);
  color: #fff;
}
.listing-filter-pill--brand { border-color: rgba(184,146,46,0.55); }
.listing-filter-pill--price { border-color: rgba(139,26,43,0.40); background: rgba(139,26,43,0.08); }
.listing-filter-pill--price:hover { border-color: var(--claret); color: var(--claret); background: rgba(139,26,43,0.16); }
.listing-filter-pill--search { border-style: dashed; }
.listing-filter-pill--type { border-color: rgba(184,146,46,0.40); }

.listing-filters {
  width: 100%; display: flex; align-items: center; gap: 10px;
  padding-top: 12px; flex-wrap: wrap;
}
.filter-label {
  font-size: 0.65rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.10em; color: var(--text-muted); white-space: nowrap; flex-shrink: 0;
}
.listing-budget-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.listing-budget-pill {
  display: inline-block; padding: 5px 12px; border-radius: 5px;
  font-size: 0.72rem; font-weight: 600; color: var(--claret);
  border: 1.5px solid rgba(139,26,43,0.40); background: rgba(139,26,43,0.06);
  text-decoration: none; white-space: nowrap;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.listing-budget-pill:hover { background: rgba(139,26,43,0.18); border-color: var(--claret); }
.listing-budget-pill.active { background: rgba(139,26,43,0.20); border-color: var(--claret); color: var(--claret); }
.listing-sort { display: flex; align-items: center; gap: 8px; font-size: 0.82rem; color: var(--text-muted); }
.listing-sort select {
  padding: 7px 12px; border: 1px solid var(--wire); border-radius: 4px;
  font-size: 0.82rem; font-family: inherit; background: var(--surface);
  color: var(--text); cursor: pointer;
}

/* What's New brand filter */
.listing-brand-select {
  padding: 5px 12px; border: 1.5px solid var(--wire); border-radius: 5px;
  font-size: 0.72rem; font-weight: 600; font-family: inherit;
  background: var(--surface); color: var(--text); cursor: pointer;
}

/* Listing product grid */
.listing-area .product-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; }

/* Listing-specific card adjustments */
.listing-area .product-card .card-badge { top: 10px; right: 10px; padding: 3px 8px; border-radius: 3px; font-size: 0.62rem; letter-spacing: 0.05em; }
.listing-area .product-card .card-body {
  overflow-x: hidden; padding: 14px 16px 18px;
  display: flex; flex-direction: column; flex: 1 1 auto;
}
.listing-area .product-card .card-meta { font-size: 0.75rem; margin-bottom: 10px; }
.listing-area .product-card .card-price { font-size: 0.95rem; }

/* Mobile filter bar (desktop: hidden) */
.mobile-filter-bar { display: none; }

/* Pagination */
.pagination {
  display: flex; align-items: center; justify-content: center;
  gap: 4px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--wire);
}
.pagination a, .pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 4px;
  font-size: 0.82rem; font-weight: 500; text-decoration: none; color: var(--text);
}
.pagination a:hover { background: var(--surface); box-shadow: 0 1px 3px var(--shadow); }
.pagination .active { background: var(--claret); color: #FFF; font-weight: 600; }
.pagination .nav-arrow { color: var(--text-muted); font-size: 0.9rem; }


/* ══ 13. COLLAPSIBLE FILTER GROUPS ════════════════════════════════════════ */

.filter-toggle { cursor: pointer; display: flex; align-items: center; justify-content: space-between; }
.filter-toggle::after { content: '\2212'; font-size: 1rem; font-weight: 600; color: var(--text-muted); }
.collapsed .filter-toggle::after { content: '+'; }
.collapsed .filter-body {
  overflow-x: hidden; display: none; }


/* ══ 14. LISTING TOPBAR (crumb + search) + SEARCH ══════════════════════════ */

.listing-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  flex-wrap: wrap;
  margin: 0 0 14px;
  padding: 0 0 12px;
  border-bottom: 1px solid var(--wire);
}
.listing-breadcrumb.breadcrumb {
  padding: 0;
  margin: 0;
  border: none;
  flex: 1 1 auto;
  min-width: 0;
  font-size: 0.78rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.listing-search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: none;
  flex: 0 1 280px;
  max-width: 320px;
  min-width: 180px;
}
.listing-search-input {
  flex: 1;
  min-width: 0;
  width: 100%;
  max-width: none;
  padding: 8px 12px;
  border: 1px solid var(--wire);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: 0.85rem;
}
.listing-search-input:focus { outline: none; border-color: var(--claret); }
.listing-search-input::placeholder { color: var(--text-muted); }
.listing-search-btn {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; flex: 0 0 36px;
  border: 1px solid var(--wire);
  border-radius: 6px; background: var(--surface); color: var(--text-muted);
  cursor: pointer;
}
.listing-search-btn:hover { border-color: var(--claret); color: var(--claret); }
.listing-search-clear {
  font-size: 0.75rem; color: var(--text-muted); text-decoration: none; white-space: nowrap;
}
.listing-search-clear:hover { color: var(--claret); }


/* ══ 15. PRODUCT DETAIL ════════════════════════════════════════════════════ */

.product-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; padding: 8px 40px 64px; align-items: start; }

/* Gallery */
.gallery { position: sticky; top: 24px; min-width: 0; max-width: 100%; }
.gallery-main {
  position: relative; width: 100%; max-width: 100%;
  height: 628px; aspect-ratio: unset;
  background: var(--surface-dim);
  border-radius: 8px; border: 1px solid var(--wire); overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; color: var(--gray-light); font-style: italic;
  margin-bottom: 12px;
  box-sizing: border-box;
}
.gallery-main img {
  width: 100%; height: 100%; max-width: 100%; max-height: 100%;
  object-fit: contain; display: block; position: relative; z-index: 1;
  min-width: 0; min-height: 0;
}
/* Single-row thumb filmstrip + strip arrows (Gear-style) */
.gallery-thumbs-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 0;
  min-width: 0;
  max-width: 100%;
}
.gallery-thumbs {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* hide bar; arrows + touch still scroll */
  -ms-overflow-style: none;
  flex: 1 1 auto;
  min-width: 0;
  max-height: 76px; /* single row lock — no vertical scrollbar */
  padding: 2px 0;
  box-sizing: border-box;
}
.gallery-thumbs::-webkit-scrollbar { display: none; width: 0; height: 0; }
.gallery-thumb {
  width: 72px; min-width: 72px; height: 72px; flex: 0 0 72px;
  background: var(--surface-dim); border-radius: 6px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.68rem; color: var(--gray-light); font-style: italic;
  cursor: pointer; border: 2px solid transparent; transition: border-color 0.15s;
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; pointer-events: none; }
.gallery-thumb:hover { border-color: var(--wire); }
.gallery-thumb.is-active,
.gallery-thumb.is-active:hover { border-color: var(--outline-copper); }
.gallery-thumb-arrow {
  flex: 0 0 auto;
  width: 36px; height: 36px; min-width: 36px;
  border-radius: 50%;
  background: var(--surface-dim);
  color: var(--text);
  border: 1px solid var(--wire);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center; padding: 0;
  transition: background 0.15s, border-color 0.15s, opacity 0.15s;
}
.gallery-thumb-arrow:hover { border-color: var(--outline-copper); background: rgba(0,0,0,0.25); }
.gallery-thumb-arrow:disabled,
.gallery-thumb-arrow.is-disabled {
  opacity: 0.35; cursor: default; pointer-events: none;
}
.gallery-more { margin-top: 8px; text-align: center; font-size: 0.72rem; color: var(--text-muted); }

/* Product info */
.product-info { padding-top: 8px; }

.consignment-tag {
  display: inline-block; font-size: 0.62rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em;
  padding: 3px 10px; border-radius: 3px;
  border: 1.5px solid var(--text-muted); color: var(--text-muted);
  margin-bottom: 10px;
}
.product-title {
  font-family: 'Cormorant Garamond', serif; font-size: 1.75rem; font-weight: 600;
  color: var(--text); line-height: 1.2; margin-bottom: 8px;
}
/* Staff pick toggle (staff-only) */
.staff-pick-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent; border: 1px solid var(--wire); border-radius: 20px;
  padding: 4px 14px 4px 6px; cursor: pointer; margin-bottom: 10px;
  font-size: 0.78rem; font-weight: 600; color: var(--text-muted);
  transition: all 0.2s; opacity: 0.7;
}
.staff-pick-toggle:hover { opacity: 1; border-color: var(--gold); }
.staff-pick-toggle.is-picked {
  border-color: var(--gold); background: rgba(184,146,46,0.1);
  color: var(--gold); opacity: 1;
}
.staff-pick-pig { width: 24px; height: 24px; }
.staff-login-link { font-size: 0.65rem; color: var(--wire); text-decoration: none; opacity: 0.5; }
.staff-login-link:hover { opacity: 1; }
.staff-indicator { font-size: 0.65rem; color: var(--gold); opacity: 0.7; }

.product-brand {
  display: block; font-size: 0.72rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--claret); margin-bottom: 18px;
  text-decoration: none;
}
.product-brand:hover { text-decoration: underline; }
.product-condition { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 4px; }
.product-condition strong { color: var(--text); font-weight: 600; }
/* Staff pick aside — floats right in product-info, beside condition/stock/price */
.product-pick-aside {
  float: right;
  margin: 0 0 12px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.product-pick-text {
  display: block;
  font-size: 0.82rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--claret); text-decoration: none;
}
.product-pick-text:hover { text-decoration: underline; }
.product-pick-pig {
  display: block;
  position: relative; z-index: 0;
  width: 120px; height: 120px; opacity: 0.85;
  pointer-events: none;
  margin-bottom: 32px;
}
.product-info > .product-title,
.product-info > .product-brand,
.product-info > .product-condition,
.product-info > .product-stock,
.product-info > .product-price,
.product-info > .product-price-note,
.product-info > .product-ctas,
.product-info > .product-description,
.product-info > .product-sku {
  position: relative;
  z-index: 1;
}
.product-pick-aside {
  position: relative;
  z-index: 0;
}
.product-pick-text {
  position: relative;
  z-index: 1;
}
.product-stock { font-size: 0.82rem; color: #4A7A50; font-weight: 500; margin-bottom: 20px; }
[data-theme="dark"] .product-stock { color: #7ABF82; }
.product-price { font-size: 1.9rem; font-weight: 700; color: var(--claret); margin-bottom: 6px; }
.product-price-note { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 24px; }
.product-price-note a {
  color: var(--gold); text-decoration: underline; text-underline-offset: 2px;
}
.product-price-note a:hover { color: var(--claret); }

/* CTAs */
.product-ctas { display: flex; gap: 12px; margin-bottom: 32px; clear: both; align-items: center; }
.cart-add-form { flex: 1; display: flex; }
.cart-add-form .btn-primary { flex: 1; }
.product-ask-link {
  color: var(--gold); font-size: 0.88rem; font-weight: 500;
  text-decoration: underline; text-underline-offset: 3px;
  white-space: nowrap; padding: 0 4px;
}
.product-ask-link:hover { color: var(--claret); }
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--claret); color: #FFF;
  padding: 16px 40px; border-radius: 6px;
  font-size: 0.88rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  border: none; cursor: pointer; font-family: inherit;
  transition: background 0.15s; flex: 1;
}
.btn-primary:hover { background: var(--claret-deep); }
.btn-outline {
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; color: var(--claret);
  padding: 16px 28px; border-radius: 6px;
  font-size: 0.85rem; font-weight: 600; letter-spacing: 0.03em;
  border: 2px solid var(--claret); cursor: pointer; font-family: inherit;
  transition: background 0.15s, color 0.15s;
}
.btn-outline:hover { background: var(--claret); color: #FFF; }

/* Product description */
.product-description { border-top: 1px solid var(--wire); padding-top: 24px; margin-bottom: 20px; }
.product-description p { font-size: 0.92rem; color: var(--text-muted); line-height: 1.8; margin-bottom: 16px; word-wrap: break-word; overflow-wrap: break-word; }
.product-description p:last-of-type { margin-bottom: 0; }
.product-description dl {
  display: grid; grid-template-columns: auto 1fr;
  gap: 5px 24px; margin: 16px 0 20px;
  padding: 16px 20px; background: var(--surface);
  border-radius: 6px; border: 1px solid var(--wire);
}
.product-description dt {
  font-size: 0.72rem; font-weight: 600; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.06em;
  align-self: center; white-space: nowrap;
}
.product-description dd { font-size: 0.85rem; color: var(--text); align-self: center; }
.product-accessories {
  font-size: 0.85rem; color: var(--text); font-weight: 500;
  padding-top: 12px; border-top: 1px solid var(--wire); margin-top: 16px;
}
.product-sku { font-size: 0.72rem; color: var(--gray-light); letter-spacing: 0.04em; margin-top: 16px; }

/* Related products */
.related-section { padding: 0 40px 48px; }
.related-section h2 {
  font-family: 'Cormorant Garamond', serif; font-size: 1.25rem; font-weight: 600;
  color: var(--text); margin-bottom: 20px;
}
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.related-grid .product-card .card-image { aspect-ratio: 4/5; height: auto; }

/* 404 page */
.not-found {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 60vh; padding: 60px 40px; text-align: center; gap: 20px;
}
.not-found-code {
  font-family: 'Cormorant Garamond', serif; font-size: 6rem; font-weight: 600;
  color: var(--wire); line-height: 1;
}
.not-found-title {
  font-family: 'Cormorant Garamond', serif; font-size: 1.75rem; font-weight: 600;
  color: var(--text);
}
.not-found-sub { font-size: 0.92rem; color: var(--text-muted); max-width: 400px; line-height: 1.6; }
.not-found-links { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }
.not-found-links a {
  font-size: 0.85rem; font-weight: 600; color: var(--claret);
  text-decoration: none; padding: 10px 20px; border-radius: 6px;
  border: 1.5px solid rgba(139,26,43,0.40); background: rgba(139,26,43,0.06);
  transition: background 0.15s, border-color 0.15s;
}
.not-found-links a:hover { background: rgba(139,26,43,0.14); border-color: var(--claret); }


/* ══ 16. GALLERY NAVIGATION ════════════════════════════════════════════════ */

.gallery-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(0,0,0,0.5); color: #fff; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center; padding: 0;
  transition: background 0.15s;
}
.gallery-arrow:hover { background: rgba(0,0,0,0.75); }
.gallery-arrow-left { left: 5%; }
.gallery-arrow-right { right: 5%; }
.gallery-counter {
  position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); z-index: 3;
  background: rgba(0,0,0,0.55); color: #fff; padding: 4px 14px; border-radius: 12px;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.04em;
}


/* Lightbox */.lightbox {  display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;  background: rgba(0,0,0,0.92); z-index: 9999;  align-items: center; justify-content: center;}.lightbox.open { display: flex; }.lightbox-img {  max-width: 90vw; max-height: 85vh; object-fit: contain;  user-select: none; -webkit-user-select: none;}.lightbox-close {  position: absolute; top: 16px; right: 16px;  background: none; border: none; color: #fff; font-size: 2.2rem;  cursor: pointer; z-index: 10; padding: 8px; line-height: 1;  opacity: 0.8;}.lightbox-close:hover { opacity: 1; }.lightbox-arrow {  position: absolute; top: 50%; transform: translateY(-50%);  background: rgba(0,0,0,0.5); border: none; color: #fff;  width: 48px; height: 48px; border-radius: 50%; cursor: pointer;  display: flex; align-items: center; justify-content: center;  z-index: 10; opacity: 0.7;}.lightbox-arrow:hover { opacity: 1; background: rgba(0,0,0,0.75); }.lightbox-prev { left: 12px; }.lightbox-next { right: 12px; }.lightbox-counter {  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);  background: rgba(0,0,0,0.55); color: #fff; padding: 6px 18px; border-radius: 14px;  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.04em;}
/* ══ 17. CART PAGE ═════════════════════════════════════════════════════════ */

.cart-page { padding: 32px 40px 56px; }

.cart-empty {
  text-align: center; padding: 80px 20px;
  display: flex; flex-direction: column; align-items: center; gap: 20px;
}
.cart-empty-icon { color: var(--wire); margin-bottom: 4px; }
.cart-empty h2 {
  font-family: 'Cormorant Garamond', serif; font-size: 1.75rem; font-weight: 600;
  color: var(--text);
}
.cart-empty p { font-size: 0.92rem; color: var(--text-muted); }
.cart-empty .btn-primary { display: inline-flex; }

.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 340px); gap: 40px; align-items: start; }
.cart-items-section { min-width: 0; max-width: 100%; }

.cart-heading {
  font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; font-weight: 600;
  color: var(--text); margin-bottom: 24px;
}
.cart-heading-count {
  font-family: 'DM Sans', sans-serif; font-size: 1rem; font-weight: 400;
  color: var(--text-muted);
}

.cart-table { width: 100%; border-collapse: collapse; }
.cart-table-head th {
  font-size: 0.68rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text-muted); padding: 0 12px 12px; text-align: left;
  border-bottom: 2px solid var(--wire);
}
.cart-table-head th:first-child { padding-left: 0; }
.cart-table-head th:last-child { padding-right: 0; }

.cart-item { border-bottom: 1px solid var(--wire); }
.cart-item td { padding: 20px 12px; vertical-align: middle; }
.cart-item td:first-child { padding-left: 0; }
.cart-item td:last-child { padding-right: 0; }

.cart-item-img-cell { width: 90px; }
.cart-item-image {
  width: 80px; height: 80px; object-fit: contain;
  border-radius: 6px; border: 1px solid var(--wire);
  background: var(--surface-dim); display: block;
}
.cart-item-noimg {
  width: 80px; height: 80px; border-radius: 6px;
  border: 1px solid var(--wire); background: var(--surface-dim);
}
.cart-item-name-cell { min-width: 0; }
.cart-item-name {
  display: block; font-size: 0.92rem; font-weight: 600; color: var(--text);
  text-decoration: none; margin-bottom: 4px; line-height: 1.4;
  overflow-wrap: anywhere; word-break: break-word;
}
.cart-item-name:hover { color: var(--claret); }
.cart-item-sku { font-size: 0.68rem; color: var(--gray-light); letter-spacing: 0.04em; }
.cart-item-brand { font-size: 0.82rem; color: var(--text-muted); }
.cart-item-price { font-size: 0.92rem; font-weight: 700; color: var(--claret); white-space: nowrap; }
.cart-item-qty-cell { width: 72px; }
.qty-form { display: flex; }
.cart-qty-input {
  width: 52px; padding: 7px 8px; text-align: center;
  border: 1px solid var(--wire); border-radius: 4px;
  font-size: 0.85rem; font-family: inherit; background: var(--surface); color: var(--text);
}
.cart-item-total { font-size: 0.92rem; font-weight: 600; color: var(--text); white-space: nowrap; }
.cart-item-remove-cell { width: 36px; }
.cart-remove-btn {
  background: none; border: none; padding: 4px; cursor: pointer;
  color: var(--text-muted); display: flex; align-items: center; justify-content: center;
  border-radius: 4px; transition: color 0.15s, background 0.15s;
}
.cart-remove-btn:hover { color: var(--claret); background: rgba(139,26,43,0.08); }

/* Cart summary sidebar */
.cart-summary-section { position: sticky; top: 20px; }
.cart-summary {
  background: var(--surface); border: 1px solid var(--wire); border-radius: 8px;
  padding: 28px 24px; margin-bottom: 16px;
}
.cart-summary-title {
  font-family: 'Cormorant Garamond', serif; font-size: 1.2rem; font-weight: 600;
  color: var(--text); margin-bottom: 20px; padding-bottom: 16px;
  border-bottom: 1px solid var(--wire);
}
.cart-summary-row {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 0.88rem; color: var(--text); margin-bottom: 12px;
}
.cart-summary-note { color: var(--text-muted); font-size: 0.82rem; }
.cart-summary-amount { font-weight: 600; }
.cart-summary-divider { border: none; border-top: 1px solid var(--wire); margin: 16px 0; }
.cart-summary-total { font-size: 1rem; font-weight: 700; margin-bottom: 0; }
.cart-summary-total .cart-summary-amount { color: var(--claret); font-size: 1.1rem; }
.cart-summary-cad { font-size: 0.72rem; color: var(--text-muted); margin: 16px 0; line-height: 1.5; }
.cart-summary-cad a {
  color: var(--gold); text-decoration: underline; text-underline-offset: 2px;
}
.cart-summary-cad a:hover { color: var(--claret); }
.cart-checkout-btn { display: flex; width: 100%; justify-content: center; text-decoration: none; margin-bottom: 12px; }
.cart-transfer-note {
  font-size: 0.72rem; color: var(--text-muted); text-align: center;
  line-height: 1.5; margin-bottom: 16px;
}
.cart-continue-link {
  display: block; text-align: center; font-size: 0.82rem; font-weight: 600;
  color: var(--claret); text-decoration: none;
}
.cart-continue-link:hover { text-decoration: underline; }

.cart-trust {
  background: var(--surface); border: 1px solid var(--wire); border-radius: 8px;
  padding: 16px 20px; display: flex; flex-direction: column; gap: 12px;
}
.cart-trust-item { display: flex; align-items: center; gap: 10px; font-size: 0.78rem; color: var(--text-muted); }
.cart-trust-item svg { flex-shrink: 0; color: var(--claret); }

/* Cart bridge */
.cart-bridge { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--wire); text-align: center; }
.cart-bridge-btn { display: block; width: 100%; text-align: center; text-decoration: none; margin-bottom: 8px; }
.cart-bridge-note { font-size: 0.72rem; color: var(--text-muted); line-height: 1.5; }


/* ══ 18. CHECKOUT PAGE ═════════════════════════════════════════════════════ */

.checkout-page { padding: 32px 40px 64px; }

.checkout-heading {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2rem; font-weight: 600; color: var(--heading);
  margin: 0 0 28px; letter-spacing: 0.01em;
}

.checkout-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 380px); gap: 40px; align-items: start; }
.checkout-form-section, .checkout-summary-section { min-width: 0; max-width: 100%; }

/* Form elements */
.checkout-section-label {
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.13em;
  text-transform: uppercase; color: var(--claret);
  border-bottom: 1px solid var(--wire); padding-bottom: 8px; margin-bottom: 20px;
}
.form-row { margin-bottom: 16px; min-width: 0; }
.form-row-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-row-3 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 120px) minmax(0, 120px); gap: 12px; }
.form-group { display: flex; flex-direction: column; gap: 6px; min-width: 0; max-width: 100%; }
.form-label { font-size: 0.78rem; font-weight: 600; color: var(--text-muted); letter-spacing: 0.03em; }
.req { color: var(--claret); }
.form-input {
  width: 100%; max-width: 100%; min-width: 0; box-sizing: border-box;
  padding: 11px 14px; border: 1px solid var(--wire); border-radius: 6px;
  background: var(--surface); color: var(--text);
  font-size: 0.92rem; font-family: inherit;
  transition: border-color 0.15s; -webkit-appearance: none;
}
.form-input:focus { outline: none; border-color: var(--claret); }
.form-input::placeholder { color: var(--text-muted); opacity: 0.55; }
.form-select { cursor: pointer; }
.form-textarea { resize: vertical; min-height: 72px; }
.form-check-group { flex-direction: row; align-items: center; }
.form-check-label {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.85rem; color: var(--text); cursor: pointer; line-height: 1.5;
}
.form-check {
  margin-top: 2px; flex-shrink: 0; width: 16px; height: 16px;
  cursor: pointer; accent-color: var(--claret);
}
.checkout-submit-row { margin-top: 32px; }
.checkout-submit-btn { width: 100%; padding: 14px; font-size: 1rem; justify-content: center; }

/* Order errors */
.checkout-errors {
  background: rgba(224, 85, 85, 0.12); border: 1px solid rgba(224, 85, 85, 0.4);
  border-radius: 8px; padding: 14px 18px; margin-bottom: 24px;
  font-size: 0.88rem; color: #e07070;
}
.checkout-errors p { margin: 4px 0; }

/* Checkout summary sidebar */
.checkout-summary-section { position: sticky; top: 24px; }
.checkout-summary {
  background: var(--surface); border: 1px solid var(--wire); border-radius: 10px;
  padding: 24px; display: flex; flex-direction: column; gap: 0;
}
.checkout-summary-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.25rem; font-weight: 600; color: var(--heading);
  margin: 0 0 18px;
}
.checkout-summary-items { display: flex; flex-direction: column; gap: 16px; margin-bottom: 16px; }
.co-summary-item { display: flex; align-items: center; gap: 12px; }
.co-summary-thumb {
  width: 80px; height: 80px; object-fit: contain; border-radius: 4px; background: var(--surface);
  border: 1px solid var(--wire); flex-shrink: 0;
}
.co-summary-item-info { flex: 1; min-width: 0; }
.co-summary-item-name {
  font-size: 0.82rem; font-weight: 600; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.co-summary-item-meta { font-size: 0.75rem; color: var(--text-muted); margin-top: 2px; }
.co-summary-item-price { font-size: 0.85rem; font-weight: 600; color: var(--text); white-space: nowrap; }
.checkout-summary-divider { border: none; border-top: 1px solid var(--wire); margin: 14px 0; }
.co-summary-row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.85rem; color: var(--text-muted); margin-bottom: 8px;
}
.co-summary-row:last-child { margin-bottom: 0; }
.co-summary-ship { font-style: italic; font-size: 0.78rem; }
.co-summary-total { font-weight: 700; font-size: 1rem; color: var(--text); }
.co-summary-cad { font-size: 0.72rem; color: var(--text-muted); margin: 12px 0 0; text-align: right; }

/* Payment step */
.payment-order-review {
  background: var(--surface); border: 1px solid var(--wire); border-radius: 8px;
  padding: 16px 18px; margin-bottom: 24px; position: relative;
}
.por-row { display: flex; gap: 12px; margin-bottom: 6px; font-size: 0.84rem; flex-wrap: wrap; min-width: 0; }
.por-value { min-width: 0; overflow-wrap: anywhere; word-break: break-word; }
.por-row:last-of-type { margin-bottom: 0; }
.por-label { color: var(--text-muted); font-weight: 600; min-width: 80px; flex-shrink: 0; }
.por-value { color: var(--text); }
.pickup-badge {
  display: inline-block; font-style: normal; font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  background: rgba(139,26,43, 0.18); color: var(--claret);
  border-radius: 4px; padding: 1px 6px; margin-left: 6px;
}
.por-change-link {
  position: absolute; top: 14px; right: 16px;
  font-size: 0.78rem; font-weight: 600; color: var(--claret); text-decoration: none;
}
.por-change-link:hover { text-decoration: underline; }

.payment-totals { border: 1px solid var(--wire); border-radius: 8px; padding: 16px 18px; margin-bottom: 24px; }
.pt-row {
  display: flex; justify-content: space-between;
  font-size: 0.85rem; color: var(--text-muted); margin-bottom: 8px;
}
.pt-row:last-child { margin-bottom: 0; }
.pt-shipping { font-style: italic; font-size: 0.78rem; }
.pt-total { font-weight: 700; font-size: 1rem; color: var(--text); border-top: 1px solid var(--wire); padding-top: 10px; margin-top: 6px; }

.payment-terms { margin-bottom: 24px; }
.terms-link { color: var(--claret); }

.payment-element-wrapper {
  border: 1px solid var(--wire); border-radius: 8px;
  padding: 20px; margin-bottom: 20px;
  background: #1a1a1a;
}
#payment-element { min-height: 48px; }

.payment-message {
  margin-top: 14px; padding: 12px 16px;
  background: rgba(224, 85, 85, 0.12); border: 1px solid rgba(224, 85, 85, 0.35);
  border-radius: 6px; color: #e07070; font-size: 0.88rem;
}

.checkout-pay-btn { width: 100%; padding: 14px; font-size: 1.05rem; justify-content: center; margin-bottom: 14px; }
.checkout-pay-btn:disabled { opacity: 0.45; cursor: not-allowed; }

.payment-secure-note { font-size: 0.75rem; color: var(--text-muted); text-align: center; margin: 0; }

/* Complete page */
.complete-page { padding: 48px 40px 80px; display: flex; justify-content: center; }
.complete-card {
  max-width: 560px; width: 100%;
  background: var(--surface); border: 1px solid var(--wire); border-radius: 12px;
  padding: 40px; text-align: center;
}
.complete-icon { color: #4a9f6a; margin-bottom: 20px; display: flex; justify-content: center; }
.complete-heading {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2rem; font-weight: 600; color: var(--heading); margin: 0 0 8px;
}
.complete-order-number {
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--claret); margin: 0 0 20px;
}
.complete-message { font-size: 0.92rem; color: var(--text-muted); margin: 0 0 14px; line-height: 1.6; }
.complete-message a { color: var(--claret); }
.complete-actions { display: flex; gap: 12px; justify-content: center; margin-top: 28px; flex-wrap: wrap; }


/* ══ 19. SEARCH PAGE ═══════════════════════════════════════════════════════ */

.search-page { padding: 32px 40px 56px; }
.search-form { display: flex; gap: 12px; margin-bottom: 32px; max-width: 680px; }
.search-input {
  flex: 1; padding: 12px 16px; border: 1px solid var(--wire); border-radius: 6px;
  font-size: 1rem; font-family: inherit; background: var(--surface);
  color: var(--text); transition: border-color 0.15s;
}
.search-input:focus { outline: none; border-color: var(--claret); }
.search-btn { display: flex; align-items: center; gap: 8px; padding: 12px 22px; white-space: nowrap; }
.search-results-header { margin-bottom: 24px; }
.search-results-count { font-size: 0.92rem; color: var(--text-muted); }
.search-results-count strong { color: var(--text); font-weight: 600; }
.search-results-count em { font-style: normal; color: var(--text); }
.search-grid { margin-bottom: 32px; }
.search-no-results { padding: 48px 0; }
.search-no-results-msg { font-size: 1rem; color: var(--text-muted); margin-bottom: 16px; }
.search-suggestions { font-size: 0.88rem; color: var(--text-muted); margin: 0 0 28px 20px; line-height: 2; }
.search-browse-links { display: flex; gap: 12px; flex-wrap: wrap; }
.search-idle { padding: 48px 0; }
.search-idle p { font-size: 0.92rem; color: var(--text-muted); margin-bottom: 24px; }


/* ══ 20. STAFF PICKS PAGE ══════════════════════════════════════════════════ */

.staff-picks-page { max-width: 1100px; margin: 0 auto; padding: 40px 40px 72px; }

.staff-picks-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px 32px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.staff-picks-header { max-width: 640px; margin-bottom: 0; flex: 1 1 280px; }
.staff-pig-card {
  flex: 0 1 360px;
  max-width: 380px;
  margin: 0 0 0 auto;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  align-self: flex-start;
}
.staff-pig-card .gear-pig-tip {
  max-width: none;
  gap: 14px;
}
.staff-pig-card .gear-pig-tip-stamp {
  width: 88px;
  height: 88px;
}
.staff-pig-card .gear-pig-tip-bubble {
  box-shadow: none;
  background: var(--surface);
  border: 1px solid var(--wire);
  border-radius: 14px;
  padding: 12px 14px 12px 16px;
}
.staff-pig-card .gear-pig-tip p {
  font-size: 0.9rem;
  line-height: 1.4;
}
.staff-pig-card .gear-pig-tip p + p {
  margin-top: 0.65em;
}


.staff-picks-header h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem; font-weight: 600; color: var(--text); margin-bottom: 16px;
}
.staff-picks-intro { font-size: 0.92rem; color: var(--text-muted); line-height: 1.8; }

.staff-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px 48px; }
.staff-card {
  display: flex; gap: 24px;
  padding-bottom: 40px; border-bottom: 1px solid var(--wire);
}
.staff-card:nth-last-child(-n+2) { border-bottom: none; padding-bottom: 0; }
.staff-photo-wrap { flex-shrink: 0; }
.staff-photo { width: 140px; height: 140px; border-radius: 8px; object-fit: cover; display: block; }
.staff-info { display: flex; flex-direction: column; gap: 6px; }
.staff-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem; font-weight: 600; color: var(--text); margin: 0; line-height: 1.2;
}
.staff-title { font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--claret); }
.staff-bio { font-size: 0.84rem; color: var(--text-muted); line-height: 1.75; margin: 6px 0 0; }
.staff-picks-btn {
  display: inline-block; margin-top: 14px; padding: 8px 18px;
  font-size: 0.75rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.1em; text-decoration: none;
  color: var(--claret); border: 1px solid var(--claret);
  border-radius: 4px; transition: background 0.15s, color 0.15s;
}
.staff-picks-btn:hover { background: var(--claret); color: #FFF; }

/* Staff picks product grid */
.staff-section { margin-bottom: 48px; padding-bottom: 32px; border-bottom: 1px solid var(--wire); }
.staff-section:last-child { border-bottom: none; }
.staff-picks-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 24px; }
.pick-note { font-size: 0.78rem; color: var(--text-muted); font-style: italic; line-height: 1.5; margin-top: 8px; }
.card-pick-note { font-size: 0.72rem; color: var(--text-muted); font-style: italic; line-height: 1.4; margin-top: 8px; padding-right: 100px; }


/* ══ 21. CONTENT PAGES ═════════════════════════════════════════════════════ */

.content-page { max-width: 800px; margin: 0 auto; padding: 40px 40px 72px; }
.content-page h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem; font-weight: 600; color: var(--text);
  margin-bottom: 20px; line-height: 1.2;
}
.content-page h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem; font-weight: 600; color: var(--text);
  margin-top: 36px; margin-bottom: 12px;
}
.content-page p { font-size: 0.92rem; color: var(--text-muted); line-height: 1.8; margin-bottom: 16px; }
.content-page a { color: var(--claret); text-decoration: none; }
.content-page a:hover { text-decoration: underline; }
.content-page ul.policy-list { margin: 0 0 20px 20px; padding: 0; list-style: disc; }
.content-page ul.policy-list li { font-size: 0.92rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 6px; }
.content-page ul.about-staff-links { list-style: none; margin: 24px 0 0; padding: 0; }
.content-page ul.about-staff-links li a {
  display: inline-block; font-size: 0.88rem; font-weight: 600;
  color: var(--claret); letter-spacing: 0.04em;
}

/* Contact page */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin: 24px 0 32px; }
.contact-block h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem; font-weight: 600; color: var(--text); margin-top: 0; margin-bottom: 16px;
}
.contact-item { display: flex; flex-direction: column; gap: 2px; margin-bottom: 18px; }
.contact-label {
  font-size: 0.7rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--text-muted); opacity: 0.7;
}
.contact-value { font-size: 0.9rem; color: var(--text); line-height: 1.5; text-decoration: none; }
a.contact-value:hover { color: var(--claret); }
.contact-map { margin-top: 8px; }


/* ══ 22. FOOTER ════════════════════════════════════════════════════════════ */

.site-footer { background: var(--slate) url(/assets/images/footer-blotter-desktop.png) center/cover no-repeat; padding: 40px 40px 32px; position: relative; overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 32px; }
.footer-brand .desc { font-size: 0.78rem; color: #999; line-height: 1.6; max-width: 280px; margin-bottom: 12px; }
.footer-brand .address { font-size: 0.75rem; color: #BBB; line-height: 1.6; margin: 8px 0 0 32px; }
.footer-brand .address a { color: #DDD; text-decoration: none; }
.footer-brand .address a:hover { color: #FFF; }
.footer-id { display: inline-flex; flex-direction: column; align-items: center; gap: 6px; margin-bottom: 0; }
.footer-tagline { text-align: center; }
.footer-col h4 { font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gold); margin-bottom: 14px; }
.footer-col ul { list-style: none; margin: 0; padding-left: 8px; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { font-size: 0.78rem; color: #AAA; text-decoration: none; }
.footer-col a:hover { color: #FFF; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08); padding-top: 20px;
  display: flex; justify-content: space-between; font-size: 0.7rem; color: #666;
}
.footer-bottom a { color: var(--gold); text-decoration: none; }

/* Gear pig (footer) */
.footer-pig { position: absolute; pointer-events: none; }


/* ══ 23. THEME TOGGLE ══════════════════════════════════════════════════════ */

.header-theme-btn {
  background: none; border: none; padding: 0; cursor: pointer;
  color: #FFF; opacity: 0.85; transition: opacity 0.15s;
  display: flex; align-items: center;
}
.header-theme-btn:hover { opacity: 1; }
.icon-sun { display: none; }
.icon-moon { display: flex; }
[data-theme="dark"] .icon-sun { display: flex; }
[data-theme="dark"] .icon-moon { display: none; }


/* ══ 24. MOBILE HAMBURGER MENU ═════════════════════════════════════════════ */

.mobile-menu-btn {
  display: none; background: none; border: none; cursor: pointer;
  color: #FFF; opacity: 0.85; align-items: center; justify-content: center;
  min-width: 36px; min-height: 44px; padding: 0;
  transition: opacity 0.15s;
}
.mobile-menu-btn:hover { opacity: 1; }
.mobile-menu-btn .icon-close { display: none; }
.mobile-menu-btn.open .icon-hamburger { display: none; }
.mobile-menu-btn.open .icon-close { display: flex; }


/* ══ 24b. CART / CHECKOUT mid-width — stack before phone landscape overflow ══ */
@media (max-width: 960px) {
  .cart-page { padding: 24px 16px 48px; }
  .cart-layout { grid-template-columns: 1fr; gap: 24px; }
  .cart-items-section { order: 1; }
  .cart-summary-section { position: static; order: 2; }

  .checkout-page { padding: 24px 16px 48px; }
  .checkout-layout { grid-template-columns: 1fr; gap: 24px; }
  .checkout-summary-section { order: -1; position: static; }
  .checkout-form-section { order: 1; }
  .form-row-3 { grid-template-columns: 1fr 1fr; }
  .form-row-3 .form-group-city { grid-column: 1 / -1; }
  .complete-page { padding: 28px 16px 48px; }
}


/* ══ 25. TABLET / MOBILE — max-width: 768px ═════════════════════════════════
   ONE block. All 375px–768px overrides live here.
   ══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {

  /* ── Header ── */
  .header-top { padding: 10px 12px; gap: 8px; }
  .header-icons { gap: 12px; flex-shrink: 0; }
  .header-tagline { display: none; }
  .logo-wordmark { font-size: clamp(1.3rem, 5.5vw, 1.9rem); }
  .header-search.open .header-search-form { width: 120px; margin-left: 6px; }
  .header-search-form input { font-size: 0.82rem; }
  .mobile-menu-btn { display: flex; }
  .header-gm { display: none; }

  /* ── Navigation (mobile drawer) ── */
  .header-nav {
    display: none; flex-direction: column; gap: 0;
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: var(--slate); z-index: 999;
    padding: 60px 0 0 0;
    overflow-y: auto; -webkit-overflow-scrolling: touch;
  }
  .header-nav.open { display: flex; }
  /* BUG-008: pin small top bar while page scrolls (mobile portrait) */
  .site-header {
    position: sticky; top: 0; z-index: 1000;
    background: var(--slate);
  }
  .header-top { position: relative; z-index: 1001; }
  body.menu-open { overflow: hidden; }
  .header-nav a {
    padding: 13px 16px; border-bottom: 1px solid rgba(255,255,255,0.07);
    letter-spacing: 0.08em;
  }
  .header-nav a:last-child { border-bottom: none; }

  /* ── Breadcrumb ── */
  .breadcrumb {
    padding: 10px 16px; font-size: 0.72rem;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }

  /* ── Identity band ── */
  .identity-band { grid-template-columns: 1fr; gap: 12px; padding: 12px; }
  .identity-left { min-height: 220px; padding: 28px 10px; gap: 18px; }
  .identity-right { width: 100%; }
  /* Hero staff-pick: match normal product-card image aspect; keep bling elsewhere */
  .featured-card .card-image {
    height: auto; min-height: 0; aspect-ratio: 4/5;
  }
  .featured-label { font-size: 0.65rem; padding: 5px 10px; }
  /* BUG-007: hero brand spans most of store-bg width on phone portrait */
  .identity-logo { width: 100%; max-width: 100%; gap: 8px; }
  .identity-logo .logo-wordmark {
    font-size: clamp(3.0rem, 14.2vw, 3.7rem);
    white-space: nowrap;
    letter-spacing: 0.01em;
  }
  .identity-logo .logo-byline { font-size: 0.78rem; letter-spacing: 0.16em; gap: 10px; }
  .identity-logo .byline-rule { width: 48px; }
  .identity-subs { width: 100%; gap: 4px; }
  .identity-sub { font-size: 1.08rem; }
  .era-pills { gap: 6px; flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 4px; }
  .era-pill { padding: 6px 12px; font-size: 0.72rem; }
  .budget-pill-hero { flex-shrink: 0; }

  /* ── Home / arrivals ── */
  .arrivals-section { padding: 24px 16px 32px; }
  .arrivals-section .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }

  /* ── Budget strip ── */
  .budget-strip {
    flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch;
    padding-bottom: 4px; gap: 8px; scrollbar-width: none;
  }
  .budget-strip::-webkit-scrollbar { display: none; }
  .budget-label { flex-shrink: 0; }
  .budget-pill { flex-shrink: 0; }

  /* ── Trust bars ── */
  .trust-bar { grid-template-columns: 1fr; gap: 12px; padding: 0 16px 40px; }
  .trust-bar-3 { grid-template-columns: 1fr; gap: 12px; padding: 0 16px 40px; }
  .trust-bar-product { grid-template-columns: 1fr; gap: 12px; padding: 24px 16px 32px; }

  /* ── What's New ── */
  .section { padding: 20px 16px 24px; }
  .section-header { flex-direction: column; align-items: center; gap: 4px; }
  .scroll-hint { padding: 20px 16px 4px; }
  .section-header .era-pills {
    justify-content: flex-start; gap: 6px;
    overflow-x: auto; flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch; width: 100%; scrollbar-width: none;
  }
  .section-header .era-pills::-webkit-scrollbar { display: none; }
  .section-header .era-pill { flex-shrink: 0; }

  /* ── Listing ── */
  .mobile-filter-bar {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 16px; background: var(--surface);
    border-bottom: 1px solid var(--wire); gap: 10px;
  }
  .btn-mobile-filters {
    display: flex; align-items: center; gap: 6px;
    padding: 8px 14px; border: 1px solid var(--wire); border-radius: 6px;
    font-size: 0.82rem; font-weight: 600; color: var(--text);
    background: var(--surface); cursor: pointer; font-family: inherit; min-height: 44px;
  }
  .btn-mobile-filters svg { flex-shrink: 0; }
  .mobile-sort select {
    padding: 8px 10px; border: 1px solid var(--wire); border-radius: 6px;
    font-size: 0.82rem; font-family: inherit; background: var(--surface);
    color: var(--text); min-height: 44px;
  }
  .page-layout { grid-template-columns: 1fr; gap: 0; padding: 0 12px 40px; }
  .sidebar { display: none; padding: 16px; border-bottom: 2px solid var(--wire); background: var(--surface); }
  .sidebar.open { display: block; }
  .listing-area, main { padding: 0 16px; }
  .listing-header { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px; margin: 10px 0 12px; }
  .listing-era-pills { justify-content: flex-start; }
  .listing-sort { display: none; }
  .listing-active-filters { flex: 0 1 auto; order: 0; }
  .listing-filter-pill { font-size: 0.72rem; }
  .listing-area .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }

  /* ── Listing topbar ── */
  .listing-topbar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-bottom: 10px;
    padding-bottom: 10px;
  }
  .listing-breadcrumb.breadcrumb {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }
  .listing-search-bar {
    flex: 1 1 auto;
    max-width: none;
    width: 100%;
    min-width: 0;
  }
  .listing-search-input { max-width: none; width: 100%; }

  /* ── Product detail ── */
  .product-layout { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 0; overflow: hidden; }
  .product-layout > * { min-width: 0; max-width: 100%; box-sizing: border-box; }
  .product-layout * { max-width: 100%; box-sizing: border-box; }
  .gallery { position: static; }
  .gallery-main {
    border-radius: 0; margin: 0 0 0; border-left: none; border-right: none;
    width: 100%; max-width: 100%; height: auto; aspect-ratio: 4/5; min-height: 0;
  }
  .gallery-thumbs-wrap { padding: 8px 8px 8px 4px; gap: 4px; }
  .gallery-thumbs { padding: 2px 4px; gap: 8px; }
  .gallery-thumb { width: 68px; min-width: 68px; height: 68px; flex: 0 0 68px; }
  .gallery-thumb-arrow { width: 32px; height: 32px; min-width: 32px; }
  .gallery-more { padding: 4px 16px; text-align: left; }
  .gallery-arrow { width: 36px; height: 36px; }
  .product-info { padding: 24px 16px 40px; }
  .product-title { font-size: 1.35rem; }
  .product-price { font-size: 1.5rem; }
  .product-ctas { flex-direction: column; }
  .cart-add-form { flex: none; width: 100%; }
  .cart-add-form .btn-primary { width: 100%; }
  .btn-primary, .btn-outline { min-height: 48px; width: 100%; justify-content: center; box-sizing: border-box; }
  .related-section { padding: 0 16px 40px; }
  .related-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }

  /* ── Cart ── */
  .cart-page { padding: 20px 16px 40px; }
  .cart-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .cart-items-section { order: 1; min-width: 0; }
  .cart-summary-section { position: static; order: 2; min-width: 0; }
  .cart-heading { font-size: 1.35rem; }
  .cart-table { display: block; width: 100%; }
  .cart-table thead { display: none; }
  .cart-table tbody { display: block; width: 100%; }
  .cart-table .cart-item {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) auto;
    grid-template-areas:
      "img name remove"
      "img price price"
      "img qty qty";
    gap: 6px 12px;
    padding: 16px 0;
    align-items: start;
  }
  .cart-item-img-cell { grid-area: img; width: auto; }
  .cart-item-name-cell { grid-area: name; min-width: 0; }
  .cart-item-brand { display: none; }
  .cart-item-price { grid-area: price; }
  .cart-item-qty-cell { grid-area: qty; width: auto; }
  .cart-item-total { display: none; }
  .cart-item-remove-cell { grid-area: remove; width: auto; justify-self: end; }
  .cart-item td { padding: 0; display: block; border: none; }
  .cart-item-image { width: 64px; height: 64px; }
  .cart-item-img-cell { width: 72px; }

  /* ── Checkout ── */
  .checkout-page { padding: 20px 16px 48px; max-width: 100%; overflow-x: hidden; }
  .checkout-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .checkout-summary-section { order: -1; position: static; min-width: 0; }
  .checkout-form-section { order: 1; min-width: 0; max-width: 100%; }
  .checkout-heading { font-size: 1.4rem; }
  .form-row-2 { grid-template-columns: minmax(0, 1fr); }
  .form-row-3 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .form-row-3 .form-group-city { grid-column: 1 / -1; }
  .payment-order-review { padding-right: 72px; }
  .complete-page { padding: 28px 16px 48px; }
  .complete-card { padding: 28px 20px; max-width: 100%; }

  /* ── Search ── */
  .search-page { padding: 20px 16px 40px; }
  .search-form { flex-direction: column; max-width: 100%; gap: 8px; }
  .search-input { width: 100%; }
  .search-btn { justify-content: center; }
  .search-browse-links { gap: 8px; }
  .search-browse-links .btn-outline { padding: 8px 14px; font-size: 0.78rem; }
  .search-grid .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }

  /* ── Staff picks ── */
  .staff-picks-page { padding: 24px 16px 48px; }
  .staff-picks-header { margin-bottom: 0; }
  .staff-picks-hero { flex-direction: column; }
  .staff-pig-card { max-width: none; width: 100%; margin: 0; }
  .staff-picks-hero { flex-direction: column; }
  .staff-pig-card { max-width: none; width: 100%; margin: 0; }
  .staff-picks-header h1 { font-size: 1.5rem; }
  .staff-grid { grid-template-columns: 1fr; gap: 32px; }
  .staff-photo { width: 120px; height: 120px; }
  .staff-card:nth-last-child(-n+2) { border-bottom: 1px solid var(--wire); padding-bottom: 32px; }
  .staff-card:last-child { border-bottom: none; padding-bottom: 0; }
  .staff-picks-grid { grid-template-columns: repeat(2, 1fr); }

  /* ── Content pages ── */
  .content-page { padding: 24px 16px 48px; }
  .contact-grid { grid-template-columns: 1fr; gap: 24px; }

  /* ── Footer (mobile: brand + info larger, near full width) ── */
  .site-footer { padding: 36px 12px 28px; background-image: url(/assets/images/footer-blotter-mobile.png); }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; gap: 28px 14px; text-align: left; width: 100%; max-width: none; }
  .footer-brand { grid-column: 1 / -1; display: block; width: 100%; }
  .footer-brand-inner { width: 100%; max-width: none; text-align: center; }
  .footer-id {
    display: flex; flex-direction: column; align-items: center;
    width: 100%; gap: 10px; margin-bottom: 14px;
  }
  .footer-id .logo-lockup { gap: 8px; }
  .footer-id .logo-wordmark {
    font-size: clamp(2.0rem, 9vw, 2.75rem);
    letter-spacing: 0.03em;
  }
  .footer-id .logo-byline { font-size: 0.78rem; letter-spacing: 0.14em; gap: 10px; }
  .footer-id .byline-rule { width: 40px; }
  .footer-tagline { width: 100%; text-align: center; }
  .footer-tagline .tagline-main { font-size: 0.82rem; letter-spacing: 0.12em; }
  .footer-tagline .tagline-sub { font-size: 0.68rem; margin-top: 6px; letter-spacing: 0.12em; }
  .footer-brand .address {
    margin: 0 auto; text-align: center; font-size: 0.95rem; line-height: 1.55;
    max-width: none; width: 100%;
  }
  .footer-brand .desc { max-width: none; font-size: 0.92rem; width: 100%; }
  .footer-col h4 { font-size: 0.9rem; margin-bottom: 12px; text-align: left; }
  .footer-col ul { margin: 0; padding-left: 6px; }
  .footer-col a { font-size: 0.98rem; }
  .footer-col li { margin-bottom: 10px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; font-size: 0.82rem; }

  /* General product grid override */
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }

}


/* ══ 26. NARROW MOBILE — max-width: 480px ═══════════════════════════════════
   Phone-only overrides.
   ══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 480px) {

  /* Product grids: 1 column — match 768 specificity so listing-area wins */
  .product-grid { grid-template-columns: 1fr; }
  .listing-area .product-grid { grid-template-columns: 1fr; gap: 12px; }
  .arrivals-section .product-grid { grid-template-columns: 1fr; }
  .search-grid .product-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .staff-picks-grid { grid-template-columns: 1fr; }

  /* Identity hero: shorter */
  .identity-left { min-height: 160px; }
  .featured-card .card-image {
    height: auto; min-height: 0; aspect-ratio: 4/5;
  }

  /* Card body: tighter */
  .product-card .card-body {
  overflow-x: hidden; padding: 10px 12px 14px;
  display: flex; flex-direction: column; flex: 1 1 auto; }
  .product-card .card-name { font-size: 0.82rem; }

  /* Staff card: stack */
  .staff-card { flex-direction: column; }
  .staff-photo { width: 100%; height: auto; max-height: 280px; border-radius: 8px; object-position: top; }

  /* Cart: smaller image */
  .cart-item-image { width: 56px; height: 56px; }
  .cart-item-img-cell { width: 64px; }

  /* Complete page */
  .complete-page { padding: 20px 16px 40px; }
  .complete-card { padding: 24px 16px; }
  .complete-heading { font-size: 1.5rem; }

  /* Footer phone portrait: still bigger / full-bleed feel */
  .site-footer { padding: 32px 10px 24px; }
  .footer-grid { gap: 24px 10px; }
  .footer-id .logo-wordmark { font-size: clamp(2.15rem, 10vw, 2.9rem); }
  .footer-id .logo-byline { font-size: 0.82rem; }
  .footer-tagline .tagline-main { font-size: 0.88rem; }
  .footer-tagline .tagline-sub { font-size: 0.72rem; }
  .footer-brand .address { font-size: 1.02rem; }
  .footer-col h4 { font-size: 0.95rem; }
  .footer-col a { font-size: 1.02rem; }
  .footer-bottom { font-size: 0.88rem; }

}


/* Listing title row: H1 + count + pills together */
.listing-title-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  flex: 1 1 auto;
  min-width: 0;
}
.listing-count {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 10px;
  min-width: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}
.listing-count strong { color: var(--text); font-weight: 600; }
.listing-h1 {
  font-family: var(--font-display, 'Cormorant Garamond', Georgia, serif);
  font-size: 1.55rem;
  font-weight: 600;
  margin: 0;
  color: var(--text);
  line-height: 1.15;
}
.listing-found {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  white-space: nowrap;
}
.listing-active-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  flex: 0 1 auto;
  min-width: 0;
}
.listing-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 22px;
  margin: 0 0 12px;
  padding: 0 0 12px;
  border-bottom: 1px solid var(--wire);
  flex-wrap: wrap;
}

.listing-intro { margin: 0; padding: 0; border: 0; max-width: none; }

/* Gear Pig says — 2-line bubble in H1/sort row */
.listing-tip-wrap {
  flex: 1 1 220px;
  min-width: 0;
  max-width: 26rem;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gear-pig-tip {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  max-width: 100%;
  background: none;
  border: none;
}
.gear-pig-tip-stamp {
  flex: 0 0 auto;
  width: 66px;
  height: 66px;
  object-fit: contain;
  opacity: 0.95;
}
.gear-pig-tip-bubble {
  position: relative;
  min-width: 0;
  flex: 1 1 auto;
  margin: 0;
  padding: 6px 12px 6px 14px;
  background: var(--surface);
  border: 1px solid var(--wire);
  border-radius: 12px;
  line-height: 1.3;
}
.gear-pig-tip-bubble::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: 9px;
  height: 9px;
  background: var(--surface);
  border-left: 1px solid var(--wire);
  border-bottom: 1px solid var(--wire);
}
.gear-pig-tip-label { display: none; }
.gear-pig-tip p {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.35;
  color: var(--text);
}
.gear-pig-tip a { color: var(--claret); text-decoration: none; }
.gear-pig-tip a:hover { text-decoration: underline; }

.listing-sort { flex: 0 0 auto; margin-left: 22px; padding-left: 0; border-left: none; }

@media (max-width: 900px) {
  .listing-tip-wrap { flex: 1 1 100%; order: 5; max-width: none; justify-content: flex-start; }
  .listing-sort { order: 2; margin-left: 0; }
  .listing-title-group { flex: 1 1 auto; order: 1; }
}
@media (max-width: 768px) {
  .listing-h1 { font-size: 1.35rem; }
  .listing-found { font-size: 0.8rem; }
  .gear-pig-tip-stamp { width: 52px; height: 52px; }
  .gear-pig-tip p { font-size: 0.74rem; }
  .listing-title-group { width: 100%; }
  .listing-header { align-items: flex-start; }
}

.home-h1 {
  font-family: var(--font-display, 'Cormorant Garamond', Georgia, serif);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 600;
  margin: 8px 0 12px;
  color: var(--text);
  line-height: 1.25;
}
.page-header-simple {
  padding: 24px 40px 0;
}
.page-header-simple h1 {
  font-family: var(--font-display, 'Cormorant Garamond', Georgia, serif);
  font-size: 1.75rem;
  margin: 0 0 8px;
}
@media (max-width: 768px) {
  .page-header-simple { padding: 16px 16px 0; }
  .listing-h1 { font-size: 1.35rem; }
}


/* Home / staff Gear Pig tip */
.home-pig-tip-wrap { max-width: 1200px; margin: 0 auto 20px; padding: 0 40px; }
.home-pig-tip-wrap .gear-pig-tip,
@media (max-width: 768px) {
  .home-pig-tip-wrap,
  .staff-pig-tip-wrap { padding: 0 16px; margin-bottom: 14px; }
}

/* What's New hero: H1 + Gear Pig tip */
.whats-new-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px 28px;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto 8px;
  padding: 20px 40px 8px;
}
.whats-new-heading h1 {
  font-family: var(--font-display, 'Cormorant Garamond', Georgia, serif);
  font-size: 1.75rem;
  font-weight: 600;
  margin: 0 0 4px;
  color: var(--text);
  line-height: 1.15;
}
.whats-new-sub {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.whats-new-pig {
  flex: 0 1 400px;
  max-width: 420px;
  margin: 0;
}
.whats-new-pig .gear-pig-tip-stamp {
  width: 66px;
  height: 66px;
}
@media (max-width: 768px) {
  .whats-new-hero {
    padding: 12px 16px 4px;
    flex-direction: column;
    align-items: flex-start;
  }
  .whats-new-pig { max-width: none; width: 100%; }
  .whats-new-heading h1 { font-size: 1.45rem; }
}
