/* ═══════════════════════════════════════════════════════════════
   HEISER BROS STOREFRONT — comic-issue layout, site-theme skin
   Owns ALL .hb-* styling (app.css's legacy block removed in Task 6).
   Canonical visual reference: public/mockup-heiser-melt-c.html
   (dark storefront hero + paper body; Outfit type, dashed borders).
   Theme sections are painted via CSS vars set inline per section:
   --t-bg --t-accent --t-text --t-card --t-border
   ═══════════════════════════════════════════════════════════════ */

.hb-wrap {
    --paper: #f0e8d8; --cream: #faf6ee; --ink: #1a1a1a; --ink-soft: rgba(44,32,22,.65);
    --brown-dark: #2c2016; --brown-darker: #0A0902;
    --gold: #d4a843; --red: #c0392b; --rust: #b8442c;
    background: var(--paper);
    color: var(--ink);
    font-family: 'Outfit', system-ui, sans-serif;
    overflow-x: hidden;
    position: relative;
}
.hb-wrap * { box-sizing: border-box; }
/* newsprint grain — vintage paper, not comic */
.hb-wrap::before {
    content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.13  0 0 0 0 0.09  0 0 0 0 0.05  0 0 0 0.05 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
    mix-blend-mode: multiply;
}
.hb-wrap > * { position: relative; z-index: 2; }

/* ── Admin notice ── */
.hb-admin-bar {
    background: var(--brown-dark); color: var(--gold); text-align: center;
    font-weight: 600; font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
    padding: 8px 14px; border-bottom: 1px dashed rgba(212,168,67,.3);
}

/* ── Hero: the dark storefront sign ── */
.hb-hero { background: var(--brown-darker); padding: 70px 20px 60px; text-align: center; position: relative; overflow: hidden; }
.hb-hero::before {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background:
        repeating-linear-gradient(0deg, transparent 0 40px, rgba(255,255,255,.015) 40px 41px),
        repeating-linear-gradient(90deg, transparent 0 40px, rgba(255,255,255,.015) 40px 41px);
}
.hb-storefront { max-width: 800px; margin: 0 auto; position: relative; z-index: 1; }
.hb-open-sign {
    display: inline-block; border: 1px dashed var(--gold); color: var(--gold);
    padding: 6px 24px; font-size: 11px; font-weight: 700; letter-spacing: 4px; text-transform: uppercase;
    margin-bottom: 24px; animation: hbFlicker 3s infinite;
}
@keyframes hbFlicker {
    0%, 95%, 100% { opacity: 1; }
    96% { opacity: .4; }
    97% { opacity: 1; }
    98% { opacity: .3; }
}
.hb-storefront-sign { border: 2px dashed rgba(212,168,67,.4); padding: 38px 50px 42px; position: relative; }
.hb-storefront-sign::before {
    content: 'EST. MMXXIV'; position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
    background: var(--brown-darker); padding: 0 16px;
    font-size: 10px; font-weight: 700; letter-spacing: 4px; color: var(--gold); opacity: .6;
}
.hb-storefront-sign::after {
    content: 'A RAPID ARTIST MERCH ESTABLISHMENT'; position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%);
    background: var(--brown-darker); padding: 0 16px;
    font-size: 9px; font-weight: 600; letter-spacing: 4px; color: rgba(255,255,255,.3);
    text-transform: uppercase; white-space: nowrap;
}
.hb-hero h1 {
    font-size: clamp(44px, 8vw, 84px); font-weight: 900; text-transform: uppercase; letter-spacing: 10px;
    color: var(--cream); line-height: 1; margin: 0 0 10px; text-shadow: 3px 3px 0 rgba(0,0,0,.4);
}
.hb-amp { display: block; font-size: clamp(16px, 3vw, 24px); color: var(--gold); letter-spacing: 6px; font-weight: 300; margin-top: 8px; text-transform: uppercase; }
.hb-subtitle { font-size: clamp(13px, 2vw, 15px); color: rgba(255,255,255,.5); font-style: italic; margin: 22px 0 0; }

/* ── Spine-tab nav (keeps .hb-theme-tab for the existing JS) ── */
.hb-rack { position: sticky; top: 0; z-index: 30; background: var(--brown-dark); padding: 12px 20px 0; }
.hb-rack-in {
    max-width: 1180px; margin: 0 auto; display: flex; gap: 6px; align-items: flex-end;
    overflow-x: auto; overflow-y: hidden; padding-top: 2px; scrollbar-width: none;
}
.hb-rack-in::-webkit-scrollbar { display: none; }
.hb-theme-tab {
    font-family: 'Outfit', sans-serif; font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1.5px;
    color: rgba(250,246,238,.65); background: rgba(255,255,255,.06);
    border: 1px dashed rgba(250,246,238,.3); border-bottom: none; border-radius: 8px 8px 0 0;
    padding: 11px 20px 9px; min-height: 44px; display: inline-flex; align-items: center;
    transform: translateY(2px); transition: all .15s;
    white-space: nowrap; cursor: pointer;
}
.hb-theme-tab:hover { color: var(--cream); background: rgba(255,255,255,.12); }
.hb-theme-tab.active { background: var(--gold); color: var(--brown-darker); border-color: var(--gold); border-style: solid; transform: translateY(0); }

/* ── Issue divider ── */
.hb-divider {
    max-width: 1180px; margin: 44px auto 0; padding: 0 20px;
    display: flex; align-items: center; gap: 14px;
    font-weight: 800; letter-spacing: 3px; font-size: 11px; text-transform: uppercase; color: rgba(44,32,22,.55);
}
.hb-divider::before, .hb-divider::after { content: ''; flex: 1; border-top: 1px dashed rgba(44,32,22,.4); }
.hb-divider .hb-star { color: var(--rust); font-size: 14px; }

/* ── Issue section frame (keeps .hb-theme-section for the JS) ── */
.hb-theme-section { max-width: 1180px; margin: 18px auto 0; padding: 0 20px 26px; display: none; }
.hb-theme-section.active { display: block; }
.hb-issue-frame {
    background: var(--t-bg); color: var(--t-text);
    border: 1px dashed var(--t-border); box-shadow: 0 3px 16px rgba(44,32,22,.14);
    position: relative; padding: clamp(20px, 3vw, 36px);
}
.hb-issue-frame.has-texture { background-blend-mode: overlay; background-size: 300px; background-repeat: repeat; }
/* Banner lead: full-bleed image fading into the theme bg (gradient layer is
   painted inline by _section.blade.php so it can use the theme's bg color). */
.hb-issue-frame.has-banner {
    background-repeat: no-repeat;
    background-size: auto, 100% auto;
    background-position: top center;
}
/* Let the banner breathe before the first product card */
.hb-issue-frame.has-banner { padding-top: clamp(160px, 24vw, 280px); }
.hb-issue-frame.has-char:not(.has-banner) { padding-top: clamp(36px, 4.5vw, 52px); }
.hb-issue-frame.has-char { padding-bottom: clamp(70px, 10vw, 120px); }
.hb-issue-frame.char-left { padding-left: clamp(48px, 7vw, 110px); }
.hb-issue-frame.char-right { padding-right: clamp(48px, 7vw, 110px); }

/* ── Lead: kicker + headline (shared by all four leads) ── */
.hb-kicker {
    display: inline-block; border: 1px dashed var(--t-accent); color: var(--t-accent);
    font-weight: 700; font-size: 10px; letter-spacing: 3px; text-transform: uppercase;
    padding: 6px 14px; margin: 0 0 16px;
}
.hb-issue-title {
    font-weight: 900; text-transform: uppercase; letter-spacing: 3px;
    font-size: clamp(28px, 4.6vw, 46px); line-height: 1.05;
    color: var(--t-accent);
    margin: 0 0 14px;
}

/* ── Lead: plaque label (front-page section-label style) ── */
.hb-plaque {
    position: absolute; top: -18px; left: 50%; transform: translateX(-50%);
    background: var(--brown-dark); color: var(--cream);
    font-size: clamp(14px, 2vw, 18px); font-weight: 800; letter-spacing: 3px; text-transform: uppercase;
    padding: 11px 28px; margin: 0; border-radius: 3px;
    box-shadow: 0 3px 12px rgba(0,0,0,.35);
    z-index: 7; white-space: nowrap; max-width: 88%; overflow: hidden; text-overflow: ellipsis;
}
/* Subtitle rides inside the plaque as a second, quieter line */
.hb-plaque small {
    display: block; font-size: 10px; font-weight: 600; letter-spacing: 2px;
    color: var(--gold); margin-top: 6px; overflow: hidden; text-overflow: ellipsis;
}

/* ── Lead: character cutout pinned to a bottom corner, bleeding past the card ── */
.hb-charcut {
    position: absolute; bottom: -26px; z-index: 6;
    width: clamp(200px, 24vw, 330px); height: auto;
    filter: drop-shadow(0 10px 18px rgba(0,0,0,.35));
    pointer-events: none;
}
.char-left .hb-charcut { left: -56px; }
.char-right .hb-charcut { right: -56px; }
/* Cover+character: shrink the cutout further so the spotlight/cover art
   stays visible (mobile block below keeps its own sizing) */
@media (min-width: 821px) {
    .has-banner.char-left .hb-charcut, .has-banner.char-right .hb-charcut { width: clamp(170px, 18vw, 250px); }
    /* Character-led keeps the bigger figure, so reserve real room on his side —
       slides the spotlight/grid clear of the cutout instead of under it */
    .hb-issue-frame.char-left:not(.has-banner) { padding-left: clamp(110px, 17vw, 240px); }
    .hb-issue-frame.char-right:not(.has-banner) { padding-right: clamp(110px, 17vw, 240px); }
}

/* ── Spotlight (≤2 products) ── */
.hb-spotlight {
    display: grid; grid-template-columns: minmax(200px, 300px) 1fr; gap: 24px;
    background: var(--t-card); border: 1px dashed var(--t-border);
    padding: 20px; position: relative; margin: 30px auto 0;
    max-width: 920px;
    cursor: pointer; transition: border-color .15s;
}
.hb-spotlight:hover { border-color: var(--t-accent); }
.hb-ribbon {
    position: absolute; top: -12px; left: 18px;
    background: var(--t-accent); color: var(--cream);
    font-size: 10px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase;
    padding: 5px 14px; z-index: 3;
}
.hb-spot-art { position: relative; padding: 14px 6px 6px; align-self: start; }
/* halftone glow bleeding out behind the print */
.hb-spot-art::before, .hb-product-image::before {
    content: ''; position: absolute; inset: -6px -18px -16px -6px;
    background-image: radial-gradient(color-mix(in srgb, var(--t-accent) 24%, transparent) 1.2px, transparent 1.3px);
    background-size: 9px 9px;
    -webkit-mask-image: radial-gradient(ellipse at 30% 30%, #000 0%, transparent 68%);
    mask-image: radial-gradient(ellipse at 30% 30%, #000 0%, transparent 68%);
    pointer-events: none;
}
/* ── Taped print: art as a physical object — cream mat, tape, tilt, caption ── */
.hb-print {
    position: relative; background: var(--cream); padding: 9px 9px 28px;
    transform: rotate(-1.8deg); box-shadow: 0 16px 30px rgba(0,0,0,.5);
}
.hb-print::before, .hb-print::after { /* tape strips */
    content: ''; position: absolute; width: 80px; height: 22px; top: -9px;
    background: rgba(243,236,221,.28);
    border-left: 1px solid rgba(255,255,255,.12); border-right: 1px solid rgba(255,255,255,.12);
}
.hb-print::before { left: -24px; transform: rotate(-38deg); }
.hb-print::after { right: -24px; transform: rotate(38deg); }
.hb-print-img {
    aspect-ratio: 1/1; background: #211a13; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
}
.hb-print-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hb-print-cap {
    position: absolute; bottom: 7px; left: 0; right: 0; text-align: center;
    font-size: 9px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase;
    color: rgba(26,22,20,.55);
}
.hb-art-fallback {
    font-size: 11px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase;
    color: rgba(250,246,238,.35); text-align: center; padding: 0 14px;
}
.hb-spot-info { display: flex; flex-direction: column; min-width: 0; }
.hb-spot-name {
    font-weight: 900; text-transform: uppercase; letter-spacing: 2px;
    font-size: clamp(20px, 3vw, 30px);
    color: var(--t-text); line-height: 1.05; margin: 0;
}
.hb-bubble {
    font-style: italic; font-size: 13.5px; font-weight: 500;
    color: var(--t-text); opacity: .6;
    border-left: 2px dashed var(--t-accent); padding-left: 12px;
    margin: 14px 0 16px; max-width: 420px; align-self: flex-start;
}
/* ── Format pills: icon + name + price in a compact rail ── */
.hb-fmt-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.hb-fmt {
    border: 1px dashed var(--t-border); color: var(--t-text);
    background: rgba(0,0,0,.18); border-radius: 999px;
    font-size: 10.5px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase;
    padding: 7px 14px 7px 10px;
    display: inline-flex; align-items: center; gap: 7px;
    transition: border-color .12s;
}
.hb-fmt:hover { border-color: var(--t-accent); }
.hb-fmt b { color: var(--t-accent); font-size: 12.5px; }
.hb-fmt-name { font-size: 10.5px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; }
.hb-fmt .hb-fmt-text { opacity: .9; }
.hb-buyrow { margin-top: auto; display: flex; align-items: center; justify-content: flex-end; gap: 22px; flex-wrap: wrap; }
/* From-price as a slanted dashed ticket (pairs with the taped print) */
.hb-burst {
    line-height: 1; transform: rotate(-2.5deg);
    border: 1px dashed var(--t-accent); background: var(--t-bg); padding: 9px 14px;
}
.hb-burst .hb-from { display: block; font-size: 9px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; opacity: .55; margin-bottom: 4px; }
.hb-burst .hb-amt { display: block; font-weight: 900; font-size: 26px; color: var(--t-accent); }
.hb-product-btn {
    font-family: 'Outfit', sans-serif; font-size: 13px; font-weight: 800;
    text-transform: uppercase; letter-spacing: 2px;
    background: var(--red); color: #fff; border: none;
    padding: 14px 28px; min-height: 48px; cursor: pointer;
    transition: background .15s;
}
.hb-product-btn:hover { background: var(--brown-dark); }

/* ── Grid (≥3 products; keeps .hb-product-card for the JS) ── */
.hb-product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(225px, 1fr)); gap: 30px 22px; margin-top: 30px; }
.hb-product-card {
    background: var(--t-card); border: 1px dashed var(--t-border);
    position: relative; cursor: pointer;
    transition: transform .18s, border-color .18s, box-shadow .18s;
}
.hb-product-card:hover { transform: translateY(-4px); border-color: var(--t-accent); box-shadow: 0 8px 18px rgba(44,32,22,.18); }
.hb-product-image { position: relative; padding: 12px 10px 4px; }
/* card-scale taped print */
.hb-product-card .hb-print { padding: 6px 6px 20px; transform: rotate(-1.4deg); box-shadow: 0 10px 20px rgba(0,0,0,.45); }
.hb-product-card .hb-print::before, .hb-product-card .hb-print::after { width: 56px; height: 16px; top: -7px; }
.hb-product-card .hb-print::before { left: -18px; }
.hb-product-card .hb-print::after { right: -18px; }
.hb-product-card .hb-print-cap { bottom: 4px; font-size: 7px; letter-spacing: 2px; }
/* card-scale pills */
.hb-product-card .hb-fmt-row { gap: 6px; margin-bottom: 12px; }
.hb-product-card .hb-fmt { padding: 5px 11px 5px 8px; gap: 5px; font-size: 9px; }
.hb-product-card .hb-fmt b { font-size: 11px; }
.hb-product-card .hb-fmt .hb-fmt-name { font-size: 9px; }
.hb-product-card .hb-fmt .hb-fmt-icon { width: 14px; height: 14px; }
.hb-flash {
    position: absolute; top: -10px; left: -8px; z-index: 3;
    background: var(--gold); color: var(--brown-darker); border: none;
    font-size: 10px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase;
    padding: 5px 10px; transform: rotate(-2deg); box-shadow: 2px 3px 6px rgba(0,0,0,.25);
}
.hb-product-info { padding: 16px 14px; }
.hb-product-name { font-weight: 800; text-transform: uppercase; letter-spacing: 1px; font-size: 14.5px; line-height: 1.2; color: var(--t-text); margin: 0 0 6px; }
.hb-product-tagline { font-size: 11.5px; color: var(--t-text); opacity: .6; font-style: italic; margin: 0 0 10px; }
.hb-product-card .hb-product-btn { width: 100%; font-size: 11px; padding: 11px; min-height: 44px; }

/* ── Empty theme state ── */
.hb-empty-theme {
    margin-top: 18px; background: var(--t-card); color: var(--t-text);
    border: 1px dashed var(--t-border);
    font-weight: 600; font-style: italic; font-size: 13px; padding: 12px 16px;
    display: inline-block;
}

/* ── Endcap ── */
.hb-endcap { max-width: 1180px; margin: 46px auto 70px; padding: 0 20px; text-align: center; }
.hb-endcap .hb-inkline { display: inline-block; font-style: italic; font-size: 14px; color: rgba(44,32,22,.65); border-top: 1px dashed rgba(44,32,22,.4); padding-top: 16px; }

/* ── Bottom CTA (existing section, site skin) ── */
.hb-bottom-cta { max-width: 1180px; margin: 56px auto 0; padding: 0 20px 10px; text-align: center; }
.hb-bottom-cta h2 { font-weight: 900; text-transform: uppercase; letter-spacing: 3px; font-size: clamp(22px, 4vw, 34px); color: var(--brown-dark); margin: 0 0 10px; }
.hb-bottom-cta p { max-width: 540px; margin: 0 auto 22px; color: rgba(44,32,22,.65); font-size: 14px; line-height: 1.7; }
.hb-cta-btn {
    display: inline-block; font-size: 13px; font-weight: 800;
    text-transform: uppercase; letter-spacing: 2px;
    background: var(--red); color: #fff; text-decoration: none;
    padding: 14px 30px; min-height: 48px; transition: background .15s;
}
.hb-cta-btn:hover { background: var(--brown-dark); }

/* ── Coming Soon teaser ── */
.hb-teaser { min-height: 60vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 70px 20px; }
.hb-issuebox {
    border: 1px dashed rgba(44,32,22,.55); background: var(--cream); padding: 8px 14px;
    font-size: 10px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
    line-height: 1.5; color: var(--brown-dark);
}
.hb-teaser .hb-issuebox { margin-bottom: 22px; }
.hb-wordmark {
    font-weight: 900; text-transform: uppercase;
    font-size: clamp(34px, 7vw, 64px); line-height: .95; letter-spacing: 6px;
    color: var(--brown-dark); margin: 0;
}
.hb-wordmark small {
    display: block; font-weight: 600; font-size: 11px;
    letter-spacing: 5px; color: var(--rust); margin-top: 10px; text-transform: uppercase;
}
.hb-teaser-text { max-width: 520px; margin: 22px auto 26px; font-weight: 500; color: rgba(44,32,22,.7); line-height: 1.65; }

/* ── Product modal (Create Merch popup styling) ── */
.hb-modal-overlay {
    position: fixed; inset: 0; z-index: 200; display: none;
    background: rgba(10,9,2,.78); align-items: center; justify-content: center; padding: 20px;
}
.hb-modal-overlay.open { display: flex; }
.hb-modal {
    background: var(--cream); color: var(--ink); width: min(880px, 100%);
    max-height: 92vh; overflow-y: auto;
    box-shadow: 0 12px 48px rgba(0,0,0,.45); position: relative;
}
.hb-modal-header {
    position: sticky; top: 0; z-index: 5;
    background: var(--brown-dark); color: var(--cream);
    padding: 18px 24px; display: flex; align-items: center; justify-content: space-between; gap: 14px;
}
.hb-modal-header h3 { font-size: 20px; font-weight: 800; text-transform: uppercase; letter-spacing: 2px; margin: 0; min-width: 0; }
.hb-modal-close {
    background: none; border: 1px dashed rgba(255,255,255,.4); color: var(--cream);
    font-family: 'Outfit', sans-serif; font-size: 13px; font-weight: 700;
    padding: 8px 16px; min-height: 40px; cursor: pointer; transition: all .15s; flex: 0 0 auto;
}
.hb-modal-close:hover { background: rgba(255,255,255,.15); }
.hb-modal-body {
    display: grid; grid-template-columns: minmax(220px, 360px) 1fr; gap: 26px; padding: 24px;
}
.hb-modal-left { display: flex; flex-direction: column; min-width: 0; }
.hb-modal-image {
    aspect-ratio: 1/1; border: 1px dashed rgba(44,32,22,.4); background: #211a13;
    display: flex; align-items: center; justify-content: center; overflow: hidden;
    color: rgba(250,246,238,.4); font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
}
.hb-modal-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hb-modal-details { display: flex; flex-direction: column; min-width: 0; }
.hb-modal-tagline { font-style: italic; font-weight: 500; color: var(--ink-soft); margin-top: 12px; }
.hb-modal-price { font-weight: 900; font-size: 26px; color: var(--rust); margin-top: 6px; }
.hb-modal-field { margin-bottom: 22px; }
.hb-modal-section-label {
    font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px;
    color: var(--brown-mid, #5c4a3a); margin-bottom: 12px; padding-bottom: 8px;
    border-bottom: 1.5px dashed #bfb5a3;
}
.hb-modal-select, .hb-modal-qty {
    width: 100%; border: 1px dashed #b8a88e; background: #fff; color: var(--ink);
    font-family: 'Outfit', sans-serif; font-weight: 600; font-size: 14px;
    padding: 10px 12px; min-height: 44px;
}
.hb-modal-select:focus, .hb-modal-qty:focus { outline: none; border-style: solid; border-color: var(--brown-dark); }

/* Color tiles — same look as the Create Merch picker, single-select */
.hb-color-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.hb-color-tile {
    position: relative; aspect-ratio: 1; background: #f5f0e6; border-radius: 4px;
    cursor: pointer; overflow: hidden; border: 1.5px solid transparent;
    transition: transform .15s, border-color .15s;
}
.hb-color-tile:hover { border-color: #8b7355; }
.hb-color-tile.sel { border-color: var(--brown-dark); }
.hb-color-tile img { width: 100%; height: 100%; object-fit: contain; display: block; }
.hb-color-fill { position: absolute; inset: 0; }
.hb-color-tile-name {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: rgba(0,0,0,.7); color: #fff;
    font-size: 8px; text-align: center; padding: 2px 0;
    font-weight: 600; text-transform: uppercase; letter-spacing: .5px;
}
.hb-color-check {
    position: absolute; top: 4px; right: 4px; width: 18px; height: 18px; border-radius: 50%;
    background: #fff; border: 1.5px solid #8b7355;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; color: transparent; font-weight: 900; z-index: 2;
}
.hb-color-tile.sel .hb-color-check { background: var(--brown-dark); border-color: var(--brown-dark); color: #fff; }
.hb-color-tile.sel .hb-color-check::before { content: '\2713'; }

.hb-modal-add-btn {
    width: 100%; margin-top: 4px;
    font-family: 'Outfit', sans-serif; font-size: 13px; font-weight: 800;
    text-transform: uppercase; letter-spacing: 2px;
    background: var(--red); color: #fff; border: none;
    padding: 14px; min-height: 48px; cursor: pointer;
    transition: background .15s;
}
.hb-modal-add-btn:hover { background: var(--brown-dark); }

/* Size chart link + overlay */
.hb-sc-link {
    float: right; background: none; border: none; cursor: pointer;
    font-family: 'Outfit', sans-serif; font-size: 10px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1.5px; color: var(--rust);
    padding: 0; text-decoration: underline dashed; text-underline-offset: 3px;
}
.hb-sc-link:hover { color: var(--brown-dark); }
.hb-sc-overlay {
    position: fixed; inset: 0; z-index: 210; display: none;
    background: rgba(10,9,2,.6); align-items: center; justify-content: center; padding: 20px;
}
.hb-sc-overlay.open { display: flex; }
.hb-sc-box {
    background: var(--cream); width: min(560px, 100%); max-height: 85vh; overflow-y: auto;
    box-shadow: 0 12px 48px rgba(0,0,0,.45);
}
.hb-sc-body { padding: 20px 24px 24px; }
.hb-sc-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.hb-sc-table th {
    text-align: left; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px;
    color: var(--brown-mid, #5c4a3a); padding: 8px 10px; border-bottom: 1.5px dashed #bfb5a3;
}
.hb-sc-table td { padding: 8px 10px; border-bottom: 1px dashed rgba(44,32,22,.2); font-weight: 500; }
.hb-sc-table td:first-child { font-weight: 800; }
.hb-sc-footnote { font-size: 11.5px; font-style: italic; color: var(--ink-soft); margin: 14px 0 0; }

/* ── Keyboard focus ── */
.hb-theme-tab:focus-visible, .hb-product-btn:focus-visible, .hb-cta-btn:focus-visible,
.hb-modal-close:focus-visible, .hb-modal-add-btn:focus-visible {
    outline: 3px solid var(--gold); outline-offset: 2px;
}
.hb-color-tile:focus-visible { outline: 3px solid var(--rust); outline-offset: 2px; }

/* ── Cart drawer harmonization (shop-cart.js markup, shop-only in practice) ── */
.shop-cart-item { border-bottom: 2px dashed rgba(26,22,20,.25); }
.shop-cart-name { font-weight: 800; }

/* ── Responsive ── */
@media (max-width: 820px) {
    .hb-spotlight { grid-template-columns: 1fr; }
    .hb-spot-art { max-width: 320px; margin: 0 auto; }
    .hb-modal-body { grid-template-columns: 1fr; }
    .hb-modal-header h3 { font-size: 16px; }
    .hb-charcut { width: clamp(150px, 32vw, 260px); bottom: -18px; }
    .char-left .hb-charcut { left: -16px; }
    .char-right .hb-charcut { right: -16px; }
    .hb-issue-frame.char-left, .hb-issue-frame.char-right { padding-left: clamp(20px, 3vw, 36px); padding-right: clamp(20px, 3vw, 36px); }
}
@media (max-width: 480px) {
    .hb-hero h1 { letter-spacing: 5px; }
    .hb-storefront-sign { padding: 30px 22px 34px; }
    .hb-product-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 24px 14px; }
    .hb-issue-title { font-size: 26px; }
    .hb-plaque { letter-spacing: 2px; padding: 9px 18px; }
}

/* ── Format icons ── */
.hb-fmt-icon { width: 28px; height: 28px; display: inline-block; vertical-align: middle; margin-right: 6px; }
.hb-fmt .hb-fmt-icon { width: 18px; height: 18px; margin-right: 0; color: var(--t-accent); flex: none; }
.hb-fmt-text { font-size: 10px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; }
