/* ══════════════════════════════════════════════════════════
   /shop — estilos aislados. Reusa los mismos tokens de marca
   que index.html (--ink, --gold, --cream, etc.) para que la
   tienda se sienta parte del mismo sitio.
   ══════════════════════════════════════════════════════════ */

:root {
  --ink: #0A0A0A;
  --ink2: #1A1A1A;
  --ink3: #2A2A2A;
  --gold: #C8963E;
  --gold2: #D4AF37;
  --gold-light: #E8C86A;
  --cream: #FAF7F2;
  --warm: #F0EBE3;
  --stone: #D4C9BB;
  --muted: #8A8078;
  --dim: #6B6258;
  --white: #FFFFFF;
  --border: rgba(200, 150, 62, 0.15);
  --border2: rgba(200, 150, 62, 0.3);
  --fh: 'Montserrat', sans-serif;
  --fd: 'Cormorant Garamond', 'Georgia', serif;
  --fb: 'Inter', sans-serif;
  --error: #D9603A;
  --success: #4A8A5E;

  /* ── "Modern Heritage Workshop" (Fase B) palette ──
     Accent-only gold; ivory/warm-white surfaces for the new editorial
     sections (hero, category cards, editorial band, trust strip). These
     are ADDITIVE tokens — nothing above is removed or renamed, since
     existing rules still depend on --ink/--gold/etc. */
  --mhw-charcoal: #0B0B0B;
  --mhw-ivory: #F7F4ED;
  --mhw-white: #FCFAF6;
  --mhw-gold: #D4A72C;
  --mhw-gold-muted: #A98228;
  --mhw-warm-gray: #E9E4DA;
  --mhw-body: #27241F;
  --mhw-muted: #746E64;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

button, input, select, textarea { font-family: inherit; }

body.shop-body {
  font-family: var(--fb);
  background: var(--ink);
  color: var(--cream);
  line-height: 1.65;
}

img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }

/* ── Reuse the exact header from index.html so the site feels continuous ── */
#hdr {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 140px 0 52px; height: 64px;
  background: rgba(10, 10, 10, 0.96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(20px);
  transition: all .4s ease;
}
.hdr-logo img { height: 42px; width: auto; object-fit: contain; filter: drop-shadow(0 2px 12px rgba(200,150,62,.25)); }
.hdr-nav { display: flex; gap: 28px; align-items: center; }
.hdr-nav a {
  font-family: var(--fh); font-size: 0.62rem; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase; color: rgba(250,247,242,.6);
  transition: color .25s ease;
}
.hdr-nav a:hover, .hdr-nav a.active { color: var(--cream); }
.hdr-cta {
  font-family: var(--fh); font-size: 0.6rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold); border: 1px solid rgba(200,150,62,.4);
  background: transparent;
  padding: 9px 22px; border-radius: 999px; margin-left: 8px;
  transition: all .25s ease;
}
.hdr-cta:hover { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.ham { display: none; }

@media (max-width: 900px) {
  .hdr-nav, .hdr-cta { display: none; }
  .ham {
    display: flex; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer; padding: 8px;
  }
  .ham span { width: 22px; height: 2px; background: var(--cream); }
}

/* ── Shop shell ── */
.shop-main {
  padding: 128px 24px 100px;
  max-width: 1180px;
  margin: 0 auto;
}

.shop-breadcrumb {
  font-family: var(--fh); font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.03em; color: var(--muted);
  margin-bottom: 40px;
}
.shop-breadcrumb a { color: var(--gold); }
.shop-breadcrumb a:hover { text-decoration: underline; }

/* ── States: loading / error / not found ── */
.shop-state {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; text-align: center;
  padding: 100px 20px; gap: 18px;
}
.shop-state h2 {
  font-family: var(--fd); font-size: 1.7rem; font-weight: 600;
  color: var(--cream);
}
.shop-state p { color: var(--muted); max-width: 440px; }
.spinner {
  width: 34px; height: 34px; border-radius: 50%;
  border: 2px solid var(--border2); border-top-color: var(--gold);
  animation: spin 0.85s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.shop-state.error h2 { color: var(--error); }
.retry-btn {
  font-family: var(--fh); font-size: 0.82rem; font-weight: 700;
  background: transparent; color: var(--gold); border: 1px solid var(--border2);
  padding: 10px 22px; border-radius: 3px; cursor: pointer; min-height: 44px;
  transition: all .25s ease;
}
.retry-btn:hover { background: var(--gold); color: var(--ink); }
.shop-state-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.retry-btn-outline { text-decoration: none; display: inline-flex; align-items: center; }

/* ── Product layout ── */
.product-grid {
  display: grid; grid-template-columns: 1.15fr 0.95fr; gap: 56px;
  align-items: start;
}
/* Info column flows in normal document flow — the whole page scrolls as
   one, instead of the info column having its own internal scrollbar.
   The gallery (not this column) is the element that stays sticky — see
   .product-gallery below. */
.product-info {
  position: static; max-height: none; overflow-y: visible;
}
.product-gallery {
  position: sticky; top: 84px;
  /* Caps the sticky gallery's height so it can never grow taller than the
     viewport (which would cut off its own bottom thumbnails/content) —
     it simply scrolls out of view with the page once the info column
     beside it is taller than one screen, rather than overlapping content. */
  max-height: calc(100vh - 104px);
}
@media (max-width: 860px) {
  .product-grid { grid-template-columns: 1fr; gap: 32px; }
  .product-gallery { position: static; max-height: none; }
}

/* ── Product gallery ──────────────────────────────────────
   Universal for every product: 4:5 box, dark neutral backdrop,
   object-fit:contain everywhere so nothing (lids, bases, logos,
   edges) is ever cropped. Desktop: thumbs beside the main image.
   Mobile: swipeable track + dot indicators (main image + thumb
   rail are desktop-only, hidden below 861px). */
.product-gallery {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 14px;
}
.product-gallery-empty {
  aspect-ratio: 4 / 5; border-radius: 4px;
  background: #111111; border: 1px solid var(--border);
  grid-column: 1 / -1;
  display: flex; align-items: center; justify-content: center;
}
.product-gallery-empty .catalog-card-placeholder-img {
  width: 60%; height: 60%; object-fit: contain;
}
.product-gallery-main {
  grid-column: 2; grid-row: 1;
  aspect-ratio: 4 / 5; border-radius: 4px; overflow: hidden;
  background: #111111; border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
}
.product-gallery-main img {
  width: 100%; height: 100%; object-fit: contain; object-position: center;
}
.product-gallery-thumbs {
  grid-column: 1; grid-row: 1;
  display: flex; flex-direction: column; gap: 10px;
  max-height: 100%; overflow-y: auto;
}
.product-gallery-thumbs button {
  width: 100%; aspect-ratio: 1 / 1; border-radius: 3px; overflow: hidden;
  border: 1px solid var(--border); background: #111111; cursor: pointer;
  padding: 0; opacity: 0.6; transition: all .2s ease; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.product-gallery-thumbs button.active,
.product-gallery-thumbs button:hover { opacity: 1; border-color: var(--gold); }
.product-gallery-thumbs img {
  width: 100%; height: 100%; object-fit: contain; object-position: center;
}

/* Mobile swipeable track — hidden on desktop */
.product-gallery-track-wrap { display: none; }

@media (max-width: 860px) {
  .product-gallery { display: block; }
  .product-gallery-main, .product-gallery-thumbs { display: none; }
  .product-gallery-track-wrap { display: block; }

  .product-gallery-track {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch; border-radius: 4px;
    scrollbar-width: none;
  }
  .product-gallery-track::-webkit-scrollbar { display: none; }
  .product-gallery-slide {
    flex: 0 0 100%; scroll-snap-align: center;
    aspect-ratio: 4 / 5; background: #111111; border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    box-sizing: border-box;
  }
  .product-gallery-slide img {
    width: 100%; height: 100%; object-fit: contain; object-position: center;
  }
  .product-gallery-dots {
    display: flex; justify-content: center; gap: 8px; margin-top: 12px;
  }
  .gallery-dot {
    width: 7px; height: 7px; border-radius: 50%; padding: 0; border: none;
    background: var(--border2); cursor: pointer; transition: all .2s ease;
  }
  .gallery-dot.active { background: var(--gold); width: 20px; border-radius: 4px; }
}

/* Skeleton shown while the product (and its gallery) is loading */
.product-gallery-skeleton {
  aspect-ratio: 4 / 5; border-radius: 4px; background: #111111;
  border: 1px solid var(--border); overflow: hidden; position: relative;
}
.product-gallery-skeleton::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(200,150,62,.08), transparent);
  animation: shopSkeletonSweep 1.4s ease-in-out infinite;
}
@keyframes shopSkeletonSweep {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.product-info .tag {
  display: inline-block; font-family: var(--fh); font-size: 0.72rem;
  font-weight: 700; letter-spacing: 0.08em; color: var(--gold);
  border: 1px solid var(--border2); padding: 5px 12px; border-radius: 20px;
  margin-bottom: 18px;
}
.product-info h1 {
  font-family: var(--fd); font-size: clamp(1.9rem, 3vw, 2.6rem);
  font-weight: 600; color: var(--cream); line-height: 1.15; margin-bottom: 14px;
}
.product-price {
  font-family: var(--fh); font-size: 1.5rem; font-weight: 700;
  color: var(--gold-light); margin-bottom: 20px;
}
.product-price .compare-at {
  font-size: 1rem; color: var(--dim); text-decoration: line-through;
  font-weight: 500; margin-left: 10px;
}
.product-desc {
  color: var(--muted); font-size: 0.98rem; line-height: 1.8; margin-bottom: 32px;
}
.product-desc p { margin-bottom: 10px; }

.avail-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--fh); font-size: 0.78rem; font-weight: 600;
  margin-bottom: 24px;
}
.avail-badge .dot { width: 7px; height: 7px; border-radius: 50%; }
.avail-badge.in-stock .dot { background: var(--success); }
.avail-badge.in-stock { color: var(--success); }
.avail-badge.out-stock .dot { background: var(--error); }
.avail-badge.out-stock { color: var(--error); }
.avail-badge.quote-required .dot { background: var(--gold); }
.avail-badge.quote-required { color: var(--gold); }

/* ── Option groups ── */
.opt-group { margin-bottom: 26px; }
.opt-label {
  font-family: var(--fh); font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.02em; color: var(--cream); margin-bottom: 10px;
  display: block;
}
.opt-swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.opt-swatch {
  font-family: var(--fb); font-size: 0.88rem;
  padding: 9px 18px; border-radius: 3px; min-height: 44px;
  border: 1px solid var(--border2); background: transparent; color: var(--stone);
  cursor: pointer; transition: all .2s ease;
}
.opt-swatch:hover { border-color: var(--gold); }
.opt-swatch.selected {
  background: var(--gold); border-color: var(--gold); color: var(--ink); font-weight: 600;
}
.opt-swatch:disabled {
  opacity: 0.35; cursor: not-allowed; text-decoration: line-through;
}

/* ── Personalization fields (driven by metafields) ── */
.custom-field { margin-bottom: 22px; }
.custom-field label {
  font-family: var(--fh); font-size: 0.8rem; font-weight: 700;
  color: var(--cream); display: block; margin-bottom: 8px;
}
.custom-field .hint {
  font-size: 0.82rem; color: var(--muted); margin-top: 6px; line-height: 1.5;
}
.custom-field input[type="text"],
.custom-field textarea {
  width: 100%; background: var(--ink2); border: 1px solid var(--border2);
  border-radius: 3px; padding: 12px 14px; color: var(--cream);
  font-family: var(--fb); font-size: 0.95rem;
}
.custom-field input[type="text"]:focus,
.custom-field textarea:focus {
  outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--gold);
}
.custom-field textarea { min-height: 80px; resize: vertical; }
.char-count { font-size: 0.75rem; color: var(--dim); text-align: right; margin-top: 4px; }

.checkbox-row {
  display: flex; align-items: flex-start; gap: 10px; cursor: pointer;
}
.checkbox-row input[type="checkbox"] {
  width: 18px; height: 18px; margin-top: 2px; accent-color: var(--gold); cursor: pointer;
}
.checkbox-row .cb-text { font-size: 0.92rem; color: var(--stone); }

.file-input {
  display: block; width: 100%; font-family: var(--fb); font-size: 0.88rem;
  color: var(--stone); background: var(--ink2); border: 1px solid var(--border2);
  border-radius: 3px; padding: 10px 12px; cursor: pointer;
}
.file-input::file-selector-button {
  font-family: var(--fh); font-weight: 700; font-size: 0.8rem;
  background: var(--gold); color: var(--ink); border: none;
  border-radius: 3px; padding: 7px 14px; margin-right: 12px; cursor: pointer;
}
.upload-status { font-size: 0.85rem; margin-top: 8px; }
.upload-status.uploading { color: var(--gold-light); }
.upload-status.done { color: var(--success); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.upload-status.error { color: var(--error); }
.upload-replace-btn {
  background: none; border: none; color: var(--gold); text-decoration: underline;
  font-size: 0.8rem; cursor: pointer; padding: 0;
}

/* ── Quantity + add to cart ── */
.qty-add-row { display: flex; gap: 14px; align-items: stretch; margin: 30px 0 16px; }
.qty-stepper {
  display: flex; align-items: center; border: 1px solid var(--border2);
  border-radius: 3px; overflow: hidden;
}
.qty-stepper button {
  background: var(--ink2); border: none; color: var(--cream);
  width: 44px; min-height: 44px; font-size: 1.1rem; cursor: pointer; transition: background .2s ease;
}
.qty-stepper button:hover { background: var(--ink3); }
.qty-stepper input {
  width: 46px; text-align: center; background: var(--ink);
  border: none; border-left: 1px solid var(--border2); border-right: 1px solid var(--border2);
  color: var(--cream); font-family: var(--fb); font-size: 0.95rem; padding: 10px 0;
  align-self: stretch;
}

.btn-add-cart {
  flex: 1; font-family: var(--fh); font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.15em; text-transform: uppercase;
  background: linear-gradient(135deg, var(--gold2) 0%, #E8C84A 50%, var(--gold) 100%);
  color: var(--ink); box-shadow: 0 4px 22px rgba(200,150,62,.28);
  border: none; border-radius: 999px; padding: 15px 32px; cursor: pointer;
  transition: all .3s cubic-bezier(.4,0,.2,1);
}
.btn-add-cart:hover { transform: translateY(-3px); box-shadow: 0 8px 36px rgba(200,150,62,.45); }
.btn-add-cart:active { transform: scale(0.98); }
.btn-add-cart:disabled {
  background: var(--ink3); color: var(--dim); cursor: not-allowed;
}
.btn-add-cart.loading { position: relative; color: transparent; }
.btn-add-cart.loading::after {
  content: ''; position: absolute; top: 50%; left: 50%;
  width: 16px; height: 16px; margin: -8px 0 0 -8px;
  border: 2px solid rgba(10,10,10,.3); border-top-color: var(--ink);
  border-radius: 50%; animation: spin 0.7s linear infinite;
}
.quote-only-cta {
  display: flex; align-items: center; justify-content: center;
  text-decoration: none; width: 100%; box-sizing: border-box;
}
.quote-only-hint {
  font-size: 0.82rem; color: var(--muted); margin-top: 10px; line-height: 1.5;
}

.form-error {
  color: var(--error); font-size: 0.85rem; margin-top: 10px;
}

.meta-note {
  display: flex; gap: 8px; align-items: center;
  font-size: 0.82rem; color: var(--muted); margin-top: 24px;
  padding-top: 18px; border-top: 1px solid var(--border);
}

/* ── Cart drawer ── */
/* Sits inside the header's own vertical space (header is 64px tall,
   z-index 200), and ABOVE the gold ticker band (top: 64px, z-index 190) —
   z-index 210 keeps it above both the header chrome and the ticker without
   needing to exceed the drawer/overlay's own 290/300. Uses the exact same
   premium gold gradient as the site's solid-gold buttons (.btn-add-cart /
   .btn-checkout), never a new gradient. */
.cart-toggle {
  position: fixed; top: 12px; right: 18px; z-index: 210;
  font-family: var(--fh); font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.02em;
  background: linear-gradient(135deg, var(--gold2) 0%, #E8C84A 50%, var(--gold) 100%);
  border: none; color: var(--ink);
  box-shadow: 0 4px 18px rgba(200,150,62,.3);
  padding: 9px 18px; border-radius: 999px; cursor: pointer; min-height: 44px; min-width: 44px;
  display: flex; align-items: center; gap: 8px;
  transition: transform .2s cubic-bezier(.4,0,.2,1), box-shadow .2s ease;
}
.cart-toggle:hover { transform: translateY(-2px); box-shadow: 0 8px 26px rgba(200,150,62,.42); }
.cart-toggle:active { transform: scale(0.96); }
@media (prefers-reduced-motion: reduce) {
  .cart-toggle { transition: none; }
  .cart-toggle:hover { transform: none; }
}
.cart-toggle .cart-count {
  background: var(--ink); color: var(--gold-light); font-size: 0.7rem;
  min-width: 18px; height: 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-weight: 700;
  border: 1px solid rgba(0,0,0,.2);
}
.cart-toggle-icon {
  color: var(--ink); flex-shrink: 0;
}
/* Mobile: upper-right, inside the header area, above the promo/ticker band,
   with iPhone notch/Dynamic Island safety via env(safe-area-inset-top). At
   narrow widths, hide the "Cart" text label and show just the icon + count
   badge so it never crowds the logo/menu. */
@media (max-width: 900px) {
  .cart-toggle {
    top: calc(10px + env(safe-area-inset-top));
    right: 12px;
    padding: 9px 12px;
  }
}
@media (max-width: 420px) {
  .cart-toggle-label { display: none; }
  .cart-toggle { padding: 10px; gap: 0; }
  .cart-toggle .cart-count { margin-left: 2px; }
}

.cart-drawer {
  position: fixed; top: 0; right: -420px; width: 100%; max-width: 400px;
  height: 100%; background: var(--ink2); border-left: 1px solid var(--border2);
  z-index: 300; transition: right .35s cubic-bezier(.4,0,.2,1);
  display: flex; flex-direction: column;
}
.cart-drawer.open { right: 0; }
.cart-drawer-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px 24px; border-bottom: 1px solid var(--border);
}
.cart-drawer-header h3 { font-family: var(--fh); font-size: 1rem; color: var(--cream); }
.cart-drawer-close {
  background: none; border: none; color: var(--muted); font-size: 1.3rem; cursor: pointer;
  width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  margin-right: -10px;
}
.cart-drawer-body { flex: 1; overflow-y: auto; padding: 20px 24px; }
.cart-line {
  display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--border);
}
.cart-line img { width: 56px; height: 56px; border-radius: 3px; object-fit: cover; }
.cart-line-title { font-size: 0.9rem; color: var(--cream); font-weight: 600; }
.cart-line-attrs { font-size: 0.78rem; color: var(--muted); margin-top: 3px; }
.cart-line-price { font-size: 0.85rem; color: var(--gold-light); margin-top: 4px; }
.cart-line-main { flex: 1; }
.cart-line-controls {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 10px;
}
.qty-stepper-sm button {
  width: 40px; height: 40px; font-size: 0.9rem;
}
.qty-stepper-sm .cart-qty-value {
  display: inline-block; width: 30px; text-align: center;
  font-size: 0.85rem; color: var(--cream);
}
.cart-line-remove {
  background: none; border: none; color: var(--dim);
  font-size: 0.78rem; text-decoration: underline; cursor: pointer;
  transition: color .2s ease;
  min-height: 44px; padding: 0 4px;
  display: inline-flex; align-items: center;
}
.cart-line-remove:hover { color: var(--error); }
.cart-line-remove:disabled,
.qty-stepper-sm button:disabled {
  opacity: 0.4; cursor: not-allowed; pointer-events: none;
}
.cart-drawer-footer {
  padding: 20px 24px; border-top: 1px solid var(--border);
}
.cart-subtotal-row {
  display: flex; justify-content: space-between; margin-bottom: 16px;
  font-family: var(--fh); font-weight: 700; color: var(--cream);
}
.btn-checkout {
  display: block; width: 100%; text-align: center;
  font-family: var(--fh); font-weight: 600; font-size: 0.68rem;
  letter-spacing: 0.15em; text-transform: uppercase;
  background: linear-gradient(135deg, var(--gold2) 0%, #E8C84A 50%, var(--gold) 100%);
  color: var(--ink); box-shadow: 0 4px 22px rgba(200,150,62,.28);
  padding: 15px; border-radius: 999px; border: none; cursor: pointer;
  transition: all .3s cubic-bezier(.4,0,.2,1);
}
.btn-checkout:hover { transform: translateY(-3px); box-shadow: 0 8px 36px rgba(200,150,62,.45); }
.btn-checkout.disabled {
  background: var(--ink3); color: var(--dim); pointer-events: none; cursor: not-allowed;
}
.cart-drawer-error {
  margin: 0 24px; padding: 10px 12px; border-radius: 3px;
  background: rgba(217, 96, 58, 0.12); border: 1px solid rgba(217, 96, 58, 0.35);
  color: var(--error); font-size: 0.82rem; line-height: 1.5;
}
.required-mark { color: var(--gold); }
.cart-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 290;
  opacity: 0; pointer-events: none; transition: opacity .3s ease;
}
.cart-overlay.open { opacity: 1; pointer-events: auto; }
.cart-empty { color: var(--muted); text-align: center; padding: 40px 0; font-size: 0.92rem; }

/* ── Catalog grid (Fase 2) ── */
.catalog-header { margin-bottom: 28px; }
.catalog-header h1 {
  font-family: var(--fd); font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 600;
  color: var(--cream); margin-bottom: 8px;
}
.catalog-header p { color: var(--muted); font-size: 0.98rem; }

.catalog-filters {
  display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 32px;
  overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 4px;
}
.catalog-filter-btn {
  font-family: var(--fh); font-size: 0.76rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap;
  background: transparent; color: var(--muted); border: 1px solid var(--border2);
  padding: 10px 18px; border-radius: 999px; cursor: pointer;
  transition: all .25s ease; min-height: 40px;
}
.catalog-filter-btn:hover { color: var(--cream); border-color: var(--gold); }
.catalog-filter-btn.active {
  background: var(--gold); color: var(--ink); border-color: var(--gold);
}

.catalog-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (min-width: 1440px) {
  .catalog-grid { grid-template-columns: repeat(4, 1fr); gap: 26px; }
}
@media (max-width: 1024px) {
  .catalog-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}
@media (max-width: 600px) {
  .catalog-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}
@media (max-width: 420px) {
  .catalog-grid { grid-template-columns: 1fr; gap: 16px; }
}
/* Mobile: keep card height compact so 2-up (or 1-up on very small
   screens) never forces a product to fill nearly the whole viewport —
   tighter padding, smaller title, less vertical rhythm. */
@media (max-width: 600px) {
  .catalog-card-body { padding: 12px 14px; gap: 4px; }
  .catalog-card-title { font-size: 0.92rem; line-height: 1.3; }
  .catalog-card-price { font-size: 0.82rem; }
  .catalog-card-cta { padding-top: 8px; font-size: 0.66rem; }
  .catalog-card-collection { font-size: 0.6rem; }
}

.catalog-card {
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
  background: var(--mhw-ivory); border: 1px solid var(--mhw-warm-gray); border-radius: 6px;
  overflow: hidden; transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
  box-shadow: 0 2px 10px rgba(11,11,11,.06);
}
.catalog-card:hover {
  transform: translateY(-4px); border-color: var(--mhw-gold-muted);
  box-shadow: 0 14px 32px rgba(11,11,11,.14);
}
.catalog-card-image {
  position: relative; aspect-ratio: 4 / 5; background: var(--mhw-warm-gray);
  overflow: hidden;
}
.catalog-card-image img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: opacity .25s ease;
}
.catalog-card-image-empty {
  width: 100%; height: 100%; position: relative;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.catalog-card-placeholder-img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.catalog-badge {
  position: absolute; top: 10px; left: 10px;
  font-family: var(--fh); font-size: 0.62rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 999px;
}
.catalog-badge-gold { background: var(--mhw-gold); color: var(--mhw-charcoal); }
.catalog-badge-outline {
  background: rgba(11,11,11,.78); color: var(--mhw-gold);
  border: 1px solid var(--mhw-gold);
}
.catalog-badge-muted {
  background: rgba(11,11,11,.78); color: #C9C2B4;
  border: 1px solid rgba(255,255,255,.18); top: auto; bottom: 10px; left: 10px;
}
.catalog-badge-made-to-order {
  background: var(--mhw-white); color: var(--mhw-gold-muted);
  border: 1px solid var(--mhw-gold-muted); top: auto; bottom: 10px; left: 10px;
}
.catalog-card-body {
  padding: 18px; display: flex; flex-direction: column; gap: 6px; flex: 1;
  background: var(--mhw-ivory);
}
.catalog-card-collection {
  font-family: var(--fh); font-size: 0.66rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--mhw-gold-muted);
}
.catalog-card-title {
  font-family: var(--fd); font-size: 1.08rem; font-weight: 600;
  color: var(--mhw-body); line-height: 1.35;
}
.catalog-card-price { color: var(--mhw-muted); font-size: 0.9rem; }
.catalog-card-cta {
  margin-top: auto; padding-top: 12px;
  font-family: var(--fh); font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--mhw-gold-muted);
}
.catalog-card-cta-outline { color: var(--mhw-gold); }
.catalog-empty {
  text-align: center; padding: 60px 20px; color: var(--mhw-muted);
}

/* ══════════ Fase B: catalog page surface ══════════
   The catalog view (hero + category cards + editorial band) now sits on
   the same dark charcoal surface as the product detail view and the rest
   of the site (header, gold ticker, footer), instead of a light ivory
   page — the user asked for one consistent dark background throughout,
   not just inside the hero panel. Cards (product cards, category cards,
   the "For Business" block) KEEP their own light ivory/warm-gray
   background — only the page-level text (headings, eyebrows, filters,
   breadcrumb, trust strip, newsletter copy) that sits directly on the
   page background is flipped to a light color here so it stays legible
   on dark. Nothing inside a light card needed to change. */
body.shop-body.catalog-view {
  background: var(--mhw-charcoal);
  color: var(--cream);
}
.catalog-view .catalog-header h1 { color: var(--mhw-white); }
.catalog-view .catalog-header p { color: rgba(247,244,237,.68); }
.catalog-view .catalog-filter-btn {
  color: rgba(247,244,237,.6); border-color: rgba(247,244,237,.2);
}
.catalog-view .catalog-filter-btn:hover { color: var(--mhw-white); border-color: var(--mhw-gold); }
.catalog-view .catalog-filter-btn.active {
  background: var(--mhw-gold); color: var(--mhw-charcoal); border-color: var(--mhw-gold);
}
.catalog-view .catalog-empty { color: rgba(247,244,237,.6); }
.catalog-view .shop-breadcrumb { color: rgba(247,244,237,.55); }
.catalog-view .shop-breadcrumb a { color: var(--mhw-gold); }
.catalog-view .mhw-copy { color: rgba(247,244,237,.68); }
.catalog-view .mhw-eyebrow-onlight { color: var(--mhw-gold); }
.catalog-view .catalog-results-count { color: rgba(247,244,237,.6); }
.catalog-view .favorites-empty { color: rgba(247,244,237,.6); }
.catalog-view .trust-strip-v2 { border-color: rgba(247,244,237,.14); }
.catalog-view .trust-strip-v2-item { color: rgba(247,244,237,.68); }
.catalog-view .catalog-sort {
  background: var(--mhw-white); color: var(--mhw-body); border-color: transparent;
}

/* ══════════ Shop hero (Fase B) ══════════ */
.shop-hero {
  position: relative; overflow: hidden;
  min-height: 360px; max-height: 440px;
  display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center;
  gap: 40px; margin: -8px 0 48px; padding: 48px 44px;
  border-radius: 10px;
  background: linear-gradient(120deg, var(--mhw-charcoal) 0%, #171512 62%, var(--mhw-charcoal) 100%);
  color: var(--mhw-ivory);
}
.shop-hero-copy { position: relative; z-index: 1; }
.shop-hero-eyebrow {
  font-family: var(--fh); font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--mhw-gold);
  margin-bottom: 14px; display: block;
}
.shop-hero-heading {
  font-family: var(--fd); font-size: clamp(1.9rem, 3.2vw, 2.7rem); font-weight: 600;
  line-height: 1.15; color: var(--mhw-white); margin-bottom: 16px;
}
.shop-hero p {
  color: var(--mhw-warm-gray); font-size: 0.98rem; line-height: 1.7;
  max-width: 46ch; margin-bottom: 26px;
}
.shop-hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.shop-hero-cta {
  font-family: var(--fh); font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 13px 24px; border-radius: 999px; cursor: pointer;
  min-height: 44px; display: inline-flex; align-items: center; justify-content: center;
  transition: all .25s ease; border: 1px solid transparent;
}
.shop-hero-cta-primary {
  background: var(--mhw-gold); color: var(--mhw-charcoal);
}
.shop-hero-cta-primary:hover { background: var(--mhw-gold-muted); transform: translateY(-2px); }
.shop-hero-cta-outline {
  background: transparent; color: var(--mhw-ivory); border-color: rgba(247,244,237,.35);
}
.shop-hero-cta-outline:hover { border-color: var(--mhw-gold); color: var(--mhw-gold); transform: translateY(-2px); }

/* CSS-only visual composition — no photos required, ready to swap for a
   real hero image later (see .shop-hero-visual img rule below) without
   further code changes. */
.shop-hero-visual {
  position: relative; z-index: 1; height: 100%; min-height: 260px;
  border-radius: 8px; overflow: hidden;
  background:
    radial-gradient(circle at 30% 20%, rgba(212,167,44,.18), transparent 55%),
    repeating-linear-gradient(45deg, rgba(247,244,237,.035) 0px, rgba(247,244,237,.035) 1px, transparent 1px, transparent 22px),
    linear-gradient(160deg, #17140F 0%, #0B0B0B 60%, #1C1812 100%);
  border: 1px solid rgba(212,167,44,.22);
  display: flex; align-items: center; justify-content: center;
}
.shop-hero-visual::before {
  content: '';
  position: absolute; inset: 18px;
  border: 1px solid rgba(212,167,44,.35); border-radius: 4px;
}
.shop-hero-visual-mark {
  font-family: var(--fd); font-size: 3.2rem; color: var(--mhw-gold);
  opacity: .8; letter-spacing: 0.08em; text-align: center; position: relative; z-index: 1;
}
.shop-hero-visual img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
}
@media (max-width: 860px) {
  .shop-hero {
    grid-template-columns: 1fr; min-height: unset; max-height: unset;
    padding: 36px 26px; gap: 24px; text-align: left;
  }
  .shop-hero-visual { display: none; }
}

/* ══════════ Category cards (Fase B) ══════════ */
.category-cards-section { margin-bottom: 44px; }
.category-cards-heading {
  font-family: var(--fh); font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--mhw-gold-muted);
  margin-bottom: 16px;
}
.category-cards {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px;
}
@media (max-width: 1024px) {
  .category-cards { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .category-cards {
    display: flex; overflow-x: auto; gap: 12px; scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch; padding-bottom: 6px; scrollbar-width: thin;
  }
  .category-card { flex: 0 0 62vw; scroll-snap-align: start; }
}
.category-card {
  display: block; text-align: left; cursor: pointer;
  background: var(--mhw-ivory); border: 1px solid var(--mhw-warm-gray); border-radius: 8px;
  overflow: hidden; padding: 0; font: inherit; color: inherit;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.category-card:hover {
  transform: translateY(-3px); box-shadow: 0 10px 26px rgba(11,11,11,.12);
  border-color: var(--mhw-gold-muted);
}
.category-card-image {
  aspect-ratio: 4 / 3; background: var(--mhw-warm-gray); overflow: hidden; position: relative;
}
.category-card-image img { width: 100%; height: 100%; object-fit: cover; }
.category-card-image-fallback {
  width: 100%; height: 100%;
  background:
    repeating-linear-gradient(60deg, rgba(212,167,44,.10) 0px, rgba(212,167,44,.10) 2px, transparent 2px, transparent 16px),
    linear-gradient(150deg, var(--mhw-warm-gray) 0%, var(--mhw-ivory) 100%);
}
.category-card-body { padding: 14px 16px 18px; }
.category-card-title {
  font-family: var(--fd); font-size: 1rem; font-weight: 600; color: var(--mhw-body);
  margin-bottom: 4px;
}
.category-card-desc { font-size: 0.82rem; color: var(--mhw-muted); line-height: 1.5; }

/* ══════════ Military editorial band (Fase B) ══════════ */
.military-editorial {
  position: relative; overflow: hidden;
  background: linear-gradient(120deg, var(--mhw-charcoal) 0%, #191510 100%);
  color: var(--mhw-ivory); border-radius: 10px;
  padding: 44px 40px; margin: 48px 0; text-align: center;
}
.military-editorial-eyebrow {
  font-family: var(--fh); font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--mhw-gold);
  display: block; margin-bottom: 12px;
}
.military-editorial h2 {
  font-family: var(--fd); font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 600;
  color: var(--mhw-white); margin-bottom: 14px;
}
.military-editorial p {
  color: var(--mhw-warm-gray); max-width: 52ch; margin: 0 auto 24px;
  font-size: 0.96rem; line-height: 1.7;
}
.military-editorial-ctas { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

/* ══════════ Trust strip (Fase B, product detail) ══════════ */
.trust-strip {
  display: flex; flex-wrap: wrap; gap: 10px 18px;
  margin: 22px 0 0; padding: 16px 0 0; border-top: 1px solid var(--border);
}
.trust-strip-item {
  display: flex; align-items: center; gap: 7px;
  font-size: 0.78rem; color: var(--muted);
}
.trust-strip-item::before {
  content: '✓'; color: var(--gold); font-weight: 700; font-size: 0.8rem;
}

/* ══════════ Product process steps (Fase B) ══════════
   Purely visual grouping/labeling of the EXISTING form sections — no new
   fields, no changed logic. */
.process-step-label {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--fh); font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-light);
  margin: 26px 0 12px;
}
.process-step-label:first-child { margin-top: 6px; }
.process-step-num {
  width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0;
  background: var(--gold); color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.72rem; font-weight: 700;
}

/* Accessibility: visible focus ring everywhere in /shop */
.shop-body a:focus-visible,
.shop-body button:focus-visible,
.shop-body input:focus-visible,
.shop-body textarea:focus-visible {
  outline: 2px solid var(--gold); outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .shop-body * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ══════════════════════════════════════════════════════════
   ROUND 2 — "Modern Heritage Workshop", polished/premium pass
   Everything below is ADDITIVE: new classes, new sections, and
   refinements layered on the existing rules above. No existing
   selector above this line is removed or renamed.
   ══════════════════════════════════════════════════════════ */

/* ── Gold ticker band (exact CSS/markup from index.html root,
   reused verbatim, per critical_selectors_inventory.md) ── */
.ticker {
  background: var(--gold2); padding: 10px 0; overflow: hidden; white-space: nowrap;
  border-top: 1px solid rgba(200,150,62,.4); border-bottom: 1px solid rgba(200,150,62,.4);
  position: fixed; top: 64px; left: 0; right: 0; z-index: 190;
}
.ticker-inner { display: inline-flex; animation: ticker 38s linear infinite; }
.ticker-inner span {
  padding: 0 28px; font-family: var(--fh); font-size: .54rem;
  font-weight: 700; letter-spacing: .32em; text-transform: uppercase; color: var(--ink);
}
.tdot { color: rgba(0,0,0,.3) !important; padding: 0 4px !important; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Gap the spec explicitly calls out: the root page's ticker has no
   prefers-reduced-motion handling at all — this /shop copy gets it. */
@media (prefers-reduced-motion: reduce) {
  .ticker-inner { animation: none; }
}

/* shop-main gets extra top padding so page content never sits under the
   fixed header+ticker stack. The cart toggle itself stays inside the
   header's own vertical band (see .cart-toggle above) — it must NOT be
   pushed down to the ticker's offset, or it would sit on top of/behind the
   ticker band instead of above it. */
.shop-main { padding-top: 166px; }
@media (max-width: 900px) {
  /* Header content collapses on mobile but height stays 64px, so no change
     needed to the ticker offset itself. */
}

/* ── Section rhythm shared by the new catalog-view sections ── */
.mhw-section { margin: 56px 0; }
.mhw-eyebrow {
  font-family: var(--fh); font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--mhw-gold);
  display: block; margin-bottom: 14px;
}
.catalog-view .mhw-eyebrow-onlight { color: var(--mhw-gold-muted); }
.mhw-heading {
  font-family: var(--fd); font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 600;
  line-height: 1.18; margin-bottom: 14px;
}
.mhw-copy {
  color: var(--mhw-muted); font-size: 1rem; line-height: 1.75; max-width: 58ch;
}

/* ── Shop hero v2 — more editorial, reserved space for a future photo ── */
.shop-hero-v2 {
  position: relative; overflow: hidden;
  min-height: 420px;
  display: grid; grid-template-columns: 1.05fr 0.95fr; align-items: center;
  gap: 40px; margin: 0 0 4px; padding: 56px 48px;
  border-radius: 12px;
  background: linear-gradient(120deg, var(--mhw-charcoal) 0%, #171310 55%, #1c160f 100%);
  color: var(--mhw-ivory);
  opacity: 0; transform: translateY(14px);
  animation: mhwFadeUp .5s cubic-bezier(.2,.7,.3,1) .05s forwards;
}
/* Background photo — same image used on the main site's hero
   (custom embroidery + laser engraving). Sits behind everything via
   negative z-index, cover-cropped, with a dark scrim on top of it so
   the copy and the visual panel both stay fully legible. */
.shop-hero-v2-bg {
  position: absolute; inset: 0; z-index: 0;
}
.shop-hero-v2-bg img {
  width: 100%; height: 100%; object-fit: cover; object-position: 55% center;
  display: block;
}
.shop-hero-v2-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(100deg,
    rgba(11,11,11,.94) 0%,
    rgba(11,11,11,.86) 38%,
    rgba(11,11,11,.62) 62%,
    rgba(11,11,11,.4) 100%);
}
.shop-hero-v2::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background:
    radial-gradient(circle at 85% 15%, rgba(212,167,44,.14), transparent 45%),
    repeating-linear-gradient(115deg, rgba(247,244,237,.025) 0px, rgba(247,244,237,.025) 1px, transparent 1px, transparent 26px);
}
.shop-hero-v2-copy { position: relative; z-index: 1; }
.shop-hero-v2-eyebrow {
  font-family: var(--fh); font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.24em; text-transform: uppercase; color: var(--mhw-gold);
  margin-bottom: 16px; display: block;
}
.shop-hero-v2-heading {
  font-family: var(--fd); font-size: clamp(2.1rem, 4vw, 3.2rem); font-weight: 600;
  line-height: 1.1; color: var(--mhw-white); margin-bottom: 18px;
}
.shop-hero-v2-heading span { display: block; }
.shop-hero-v2 p.shop-hero-v2-body {
  color: var(--mhw-warm-gray); font-size: 1.02rem; line-height: 1.75;
  max-width: 46ch; margin-bottom: 28px;
}
.shop-hero-v2-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.shop-hero-v2-trust {
  font-size: 0.8rem; color: rgba(247,244,237,.62); letter-spacing: 0.01em;
}
.shop-hero-v2-visual {
  position: relative; z-index: 1; height: 100%; min-height: 300px;
  border-radius: 10px; overflow: hidden;
  background:
    radial-gradient(circle at 30% 20%, rgba(212,167,44,.2), transparent 55%),
    repeating-linear-gradient(45deg, rgba(247,244,237,.035) 0px, rgba(247,244,237,.035) 1px, transparent 1px, transparent 22px),
    linear-gradient(160deg, #17140F 0%, #0B0B0B 60%, #1C1812 100%);
  border: 1px solid rgba(212,167,44,.24);
  display: flex; align-items: center; justify-content: center;
}
.shop-hero-v2-visual::before {
  content: ''; position: absolute; inset: 20px;
  border: 1px solid rgba(212,167,44,.35); border-radius: 4px;
}
.shop-hero-v2-visual-mark {
  font-family: var(--fd); font-size: 3.6rem; color: var(--mhw-gold);
  opacity: .82; letter-spacing: 0.08em; text-align: center; position: relative; z-index: 1;
}
/* Ready to swap for a real photo later with zero code changes */
.shop-hero-v2-visual img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
}
@media (max-width: 860px) {
  .shop-hero-v2 {
    grid-template-columns: 1fr; min-height: unset;
    padding: 40px 24px; gap: 26px;
  }
  .shop-hero-v2-visual { display: none; }
}

@keyframes mhwFadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .shop-hero-v2 { animation: none; opacity: 1; transform: none; }
}

/* ── Scroll-reveal (IntersectionObserver-driven) ── */
.mhw-reveal {
  opacity: 0; transform: translateY(18px);
  transition: opacity .45s cubic-bezier(.2,.7,.3,1), transform .45s cubic-bezier(.2,.7,.3,1);
}
.mhw-reveal.mhw-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .mhw-reveal { opacity: 1; transform: none; transition: none; }
}

/* ── Shop by Craft — editorial category cards v2 ── */
.craft-section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.craft-cards {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px;
}
@media (max-width: 1100px) {
  .craft-cards { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 680px) {
  .craft-cards {
    display: flex; overflow-x: auto; gap: 14px; scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch; padding: 2px 2px 10px;
    scrollbar-width: thin;
  }
  .craft-card { flex: 0 0 68vw; scroll-snap-align: start; }
}
.craft-card {
  display: block; text-align: left; cursor: pointer;
  background: var(--mhw-white); border: 1px solid var(--mhw-warm-gray); border-radius: 10px;
  overflow: hidden; padding: 0; font: inherit; color: inherit;
  box-shadow: 0 2px 10px rgba(11,11,11,.05);
  transition: transform .25s cubic-bezier(.2,.7,.3,1), box-shadow .25s ease, border-color .25s ease;
}
.craft-card:hover {
  transform: translateY(-5px); box-shadow: 0 16px 34px rgba(11,11,11,.14);
  border-color: var(--mhw-gold-muted);
}
.craft-card-image {
  aspect-ratio: 4 / 5; background: var(--mhw-warm-gray); overflow: hidden; position: relative;
}
.craft-card-image img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .5s cubic-bezier(.2,.7,.3,1);
}
.craft-card:hover .craft-card-image img { transform: scale(1.045); }
.craft-card-image-fallback {
  width: 100%; height: 100%; position: relative;
  background:
    repeating-linear-gradient(60deg, rgba(212,167,44,.11) 0px, rgba(212,167,44,.11) 2px, transparent 2px, transparent 16px),
    linear-gradient(150deg, var(--mhw-warm-gray) 0%, var(--mhw-ivory) 100%);
  display: flex; align-items: center; justify-content: center;
}
.craft-card-image-fallback::after {
  content: attr(data-mark);
  font-family: var(--fd); font-size: 2.6rem; color: var(--mhw-gold-muted); opacity: .5;
}
.craft-card-body { padding: 16px 18px 20px; }
.craft-card-title {
  font-family: var(--fd); font-size: 1.12rem; font-weight: 600; color: var(--mhw-body);
  margin-bottom: 5px;
}
.craft-card-desc { font-size: 0.85rem; color: var(--mhw-muted); line-height: 1.55; margin-bottom: 10px; }
.craft-card-cta {
  font-family: var(--fh); font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--mhw-gold-muted);
}

/* ── Customer Favorites (Best Sellers) ──
   Solid dark panel (no background photo) so it reads clean and lets the
   product cards' own light thumbnails stand out, per request. Text inside
   uses the catalog-view "on light" light-text rules further up this file —
   those already assume a dark surface. */
.favorites-section {
  position: relative; overflow: hidden;
  border-radius: 12px; padding: 48px 40px;
  background: linear-gradient(145deg, var(--mhw-charcoal) 0%, #14110d 100%);
  border: 1px solid rgba(247,244,237,.08);
}
.favorites-section-inner { position: relative; z-index: 1; }
@media (max-width: 640px) { .favorites-section { padding: 32px 20px; } }

.favorites-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px;
}
@media (max-width: 1024px) { .favorites-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; } }
@media (max-width: 560px) { .favorites-grid { grid-template-columns: 1fr; gap: 16px; } }
.favorites-empty { color: var(--mhw-muted); padding: 20px 0; font-size: 0.92rem; }

/* ── Explore the Collection: results bar ── */
.catalog-resultsbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; margin: -14px 0 22px;
}
.catalog-results-count { font-size: 0.86rem; color: var(--mhw-muted); }
.catalog-clear-btn {
  font-family: var(--fh); font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.05em; text-transform: uppercase; color: var(--mhw-gold-muted);
  background: none; border: none; cursor: pointer; padding: 6px 4px; min-height: 32px;
  text-decoration: underline; text-underline-offset: 3px;
}
.catalog-clear-btn:hover { color: var(--mhw-charcoal); }
.catalog-sort {
  font-family: var(--fh); font-size: 0.74rem; font-weight: 600;
  color: var(--mhw-body); background: var(--mhw-white); border: 1px solid var(--mhw-warm-gray);
  border-radius: 6px; padding: 8px 12px; min-height: 40px; cursor: pointer;
}
.catalog-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
}

/* Card hover polish (discreet, non-"marketplace-boxy") */
.catalog-card { border-radius: 10px; }
.catalog-card:hover .catalog-card-image img { transform: scale(1.035); }
.catalog-card-image img { transition: transform .45s cubic-bezier(.2,.7,.3,1); }

/* ── For Business block ──
   Dark to match the rest of the catalog-view page background (was a light
   ivory panel before, per request). Card-style children (business-block-
   visual) keep their own treatment; only the panel's own background and
   its directly-owned text (the checklist) needed color updates here — the
   heading/copy/eyebrow already come from .mhw-heading/.mhw-copy/
   .mhw-eyebrow-onlight, whose .catalog-view overrides already resolve to
   light colors. */
.business-block {
  background: linear-gradient(145deg, var(--mhw-charcoal) 0%, #17130f 100%);
  border: 1px solid rgba(247,244,237,.1);
  border-radius: 12px;
  padding: 44px 40px; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 36px; align-items: center;
}
@media (max-width: 860px) { .business-block { grid-template-columns: 1fr; padding: 32px 24px; } }
.business-block-list {
  list-style: none; display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 18px;
  padding: 0;
}
.business-block-list li {
  font-size: 0.86rem; color: rgba(247,244,237,.82); display: flex; align-items: center; gap: 7px;
}
.business-block-list li::before { content: '✓'; color: var(--mhw-gold); font-weight: 700; }
.business-block-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 24px; }
.business-block-visual {
  position: relative; overflow: hidden;
  aspect-ratio: 4/3; border-radius: 8px;
  background: var(--mhw-charcoal);
  border: 1px solid rgba(212,167,44,.24);
  display: flex; align-items: center; justify-content: center;
}
.business-block-visual img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
}
.business-block-visual-mark { font-family: var(--fd); font-size: 2.6rem; color: var(--mhw-gold-muted); opacity: .55; }

/* ── Trust strip v2 (catalog page, light) ── */
.trust-strip-v2 {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px;
  padding: 26px 20px; border-top: 1px solid var(--mhw-warm-gray); border-bottom: 1px solid var(--mhw-warm-gray);
}
.trust-strip-v2-item {
  display: flex; align-items: center; gap: 7px;
  font-size: 0.82rem; color: var(--mhw-muted); font-family: var(--fh); letter-spacing: 0.01em;
}
.trust-strip-v2-item::before { content: '✓'; color: var(--mhw-gold-muted); font-weight: 700; }

/* ── Newsletter (no real email integration yet — links to Instagram, see shop.js) ── */
.newsletter-block {
  text-align: center; max-width: 560px; margin: 0 auto; padding: 8px 20px;
}
.newsletter-social-btn {
  display: inline-block; margin-top: 24px; font-family: var(--fh); font-size: 0.7rem;
  font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  background: var(--mhw-gold); color: var(--mhw-charcoal); border: none;
  padding: 13px 30px; border-radius: 999px; cursor: pointer; min-height: 44px;
  text-decoration: none; transition: all .25s ease;
}
.newsletter-social-btn:hover { background: var(--mhw-gold-muted); transform: translateY(-2px); }
.newsletter-social-btn:focus-visible { outline: 2px solid var(--mhw-gold); outline-offset: 2px; }

/* ── Footer ── */
.shop-footer {
  background: var(--mhw-charcoal); color: rgba(247,244,237,.72);
  margin-top: 64px; padding: 56px 24px 28px;
}
.shop-footer-inner {
  max-width: 1180px; margin: 0 auto;
  display: grid; grid-template-columns: 1.3fr repeat(4, 1fr); gap: 36px;
}
@media (max-width: 900px) { .shop-footer-inner { grid-template-columns: 1fr 1fr 1fr; } }
@media (max-width: 760px) { .shop-footer-inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .shop-footer-inner { grid-template-columns: 1fr; } }
.shop-footer-brand img { height: 34px; margin-bottom: 14px; filter: brightness(0) invert(1) opacity(.9); }
.shop-footer-brand p { font-size: 0.84rem; line-height: 1.6; max-width: 30ch; color: rgba(247,244,237,.55); }
.shop-footer-col h4 {
  font-family: var(--fh); font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--mhw-gold);
  margin-bottom: 14px;
}
.shop-footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 9px; padding: 0; }
.shop-footer-col a { font-size: 0.85rem; color: rgba(247,244,237,.7); transition: color .2s ease; }
.shop-footer-col a:hover { color: var(--mhw-gold); }
.shop-footer-bottom {
  max-width: 1180px; margin: 40px auto 0; padding-top: 22px;
  border-top: 1px solid rgba(247,244,237,.12);
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-size: 0.78rem; color: rgba(247,244,237,.5);
}
.shop-footer-social { display: flex; gap: 14px; }
.shop-footer-social a { color: rgba(247,244,237,.6); font-size: 0.82rem; }
.shop-footer-social a:hover { color: var(--mhw-gold); }

/* ── Product page v2: accordions ── */
.pdp-accordion { border-top: 1px solid var(--border); margin-top: 8px; }
.pdp-accordion-item { border-bottom: 1px solid var(--border); }
.pdp-accordion-trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  background: none; border: none; color: var(--cream); cursor: pointer;
  font-family: var(--fh); font-size: 0.86rem; font-weight: 600;
  padding: 16px 2px; text-align: left; min-height: 44px;
}
.pdp-accordion-trigger .chev { transition: transform .25s ease; color: var(--gold); font-size: 0.8rem; }
.pdp-accordion-item.open .pdp-accordion-trigger .chev { transform: rotate(180deg); }
.pdp-accordion-panel {
  overflow: hidden; max-height: 0; transition: max-height .3s cubic-bezier(.2,.7,.3,1);
}
.pdp-accordion-item.open .pdp-accordion-panel { max-height: 400px; }
.pdp-accordion-panel-inner { padding: 0 2px 18px; color: var(--muted); font-size: 0.9rem; line-height: 1.7; }

/* ── Sticky mobile Add-to-Cart / Quote bar ── */
.pdp-sticky-bar {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 180;
  background: rgba(26,26,26,.97); backdrop-filter: blur(10px);
  border-top: 1px solid var(--border2);
  padding: 12px 16px; padding-bottom: calc(12px + env(safe-area-inset-bottom));
}
@media (max-width: 860px) {
  .pdp-sticky-bar.active { display: block; }
  /* Never overlaps the cart drawer/overlay (both use higher z-index: 290/300)
     or the mobile menu (see index.html root header, not modified here). */
  body.shop-body:not(.catalog-view) { padding-bottom: 84px; }
}
.pdp-sticky-bar .btn-add-cart,
.pdp-sticky-bar .quote-only-cta { width: 100%; }

/* ── Add-to-cart confirmation micro-animation ── */
@keyframes mhwPulse {
  0% { transform: scale(1); }
  40% { transform: scale(1.18); }
  100% { transform: scale(1); }
}
.cart-count.mhw-bump { animation: mhwPulse .35s cubic-bezier(.3,.6,.4,1.4); }
@media (prefers-reduced-motion: reduce) {
  .cart-count.mhw-bump { animation: none; }
}

/* Variant-change transition on price/gallery */
.product-price, .avail-badge { transition: opacity .2s ease; }

/* Utility: visually-hidden but accessible (used for aria-live regions) */
.mhw-sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
