/* =====================================================================
   PrimoHoagies Asset Library — brand layer on Bootstrap 5.3.8
   Bootstrap handles grid, forms, buttons, offcanvas panels, tables,
   carousel and toasts. This file maps the brand onto Bootstrap's
   variables and styles the storefront-specific pieces.
   ===================================================================== */

/* ---------- Brand tokens ---------- */
:root,
[data-bs-theme="light"] {
  --primo-red: #C32228; --primo-green: #1E8943; --primo-white: #FFFFFF;
  --brand: #C32228; --brand-ink: #FFFFFF; --brand-soft: #FBE8E8; --brand-deep: #9C1A1F;
  --signal: #1E8943; --ok: #1E8943; --warn: #A86A00; --danger: #B0262B;
  --bg: #F5F4F1; --surface: #FFFFFF; --surface-2: #EEECE8; --line: #DFDBD4;
  --ink: #1F1A17; --ink-2: #544B45; --ink-3: #766C66;
  --shadow: 0 1px 2px rgba(31,26,23,.06), 0 8px 24px rgba(31,26,23,.09);
  --f-display: "Bungee", ui-sans-serif, "Arial Black", system-ui, sans-serif;
  --f-inline: "Bungee Inline", "Bungee", ui-sans-serif, "Arial Black", sans-serif;
  --f-script: "Yellowtail", "Brush Script MT", cursive;
  --f-body: "Outfit", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --r: 10px;

  /* Bootstrap bridge */
  --bs-body-font-family: var(--f-body);
  --bs-font-monospace: var(--f-mono);
  --bs-body-font-size: .9375rem;
  --bs-body-bg: var(--bg);
  --bs-body-color: var(--ink);
  --bs-emphasis-color: var(--ink);
  --bs-secondary-color: var(--ink-2);
  --bs-tertiary-color: var(--ink-3);
  --bs-secondary-bg: var(--surface-2);
  --bs-tertiary-bg: var(--surface-2);
  --bs-border-color: var(--line);
  --bs-primary: #C32228; --bs-primary-rgb: 195,34,40;
  --bs-success: #1E8943; --bs-success-rgb: 30,137,67;
  --bs-danger: #B0262B;  --bs-danger-rgb: 176,38,43;
  --bs-primary-bg-subtle: var(--brand-soft); --bs-primary-text-emphasis: var(--brand-deep);
  --bs-link-color: var(--brand); --bs-link-color-rgb: 195,34,40;
  --bs-link-hover-color: var(--brand-deep); --bs-link-hover-color-rgb: 156,26,31;
  --bs-focus-ring-color: rgba(195,34,40,.3);
  --bs-border-radius: 8px;
  color-scheme: light;
}
[data-bs-theme="dark"] {
  --brand: #D7363C; --brand-soft: #3B1D1E; --brand-deep: #A9232A;
  --signal: #2E9E55; --ok: #4CC077; --warn: #E6A93A; --danger: #F07D78;
  --bg: #151211; --surface: #1D1918; --surface-2: #28221F; --line: #3B3330;
  --ink: #F3EFEC; --ink-2: #C4BAB4; --ink-3: #988C86;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 28px rgba(0,0,0,.35);
  --bs-body-bg: var(--bg); --bs-body-color: var(--ink); --bs-emphasis-color: var(--ink);
  --bs-secondary-color: var(--ink-2); --bs-tertiary-color: var(--ink-3);
  --bs-secondary-bg: var(--surface-2); --bs-tertiary-bg: var(--surface-2); --bs-border-color: var(--line);
  --bs-primary: #D7363C; --bs-primary-rgb: 215,54,60;
  --bs-primary-bg-subtle: var(--brand-soft); --bs-primary-text-emphasis: #F5A3A6;
  --bs-link-color: #F07D78; --bs-link-color-rgb: 240,125,120; --bs-link-hover-color: #F5A3A6;
  --bs-danger: #F07D78; --bs-danger-rgb: 240,125,120;
  color-scheme: dark;
}

/* ---------- Bootstrap component colors ---------- */
.btn { font-weight: 600; border-radius: 8px; }
.btn-primary {
  --bs-btn-bg: var(--brand); --bs-btn-border-color: var(--brand); --bs-btn-color: #fff;
  --bs-btn-hover-bg: var(--brand-deep); --bs-btn-hover-border-color: var(--brand-deep); --bs-btn-hover-color: #fff;
  --bs-btn-active-bg: var(--brand-deep); --bs-btn-active-border-color: var(--brand-deep);
  --bs-btn-disabled-bg: var(--brand); --bs-btn-disabled-border-color: var(--brand);
  --bs-btn-focus-shadow-rgb: 195,34,40;
}
.btn-success {
  --bs-btn-bg: var(--signal); --bs-btn-border-color: var(--signal);
  --bs-btn-hover-bg: #176B34; --bs-btn-hover-border-color: #176B34;
  --bs-btn-active-bg: #176B34; --bs-btn-active-border-color: #176B34;
}
.btn-outline-primary {
  --bs-btn-color: var(--brand); --bs-btn-border-color: var(--brand);
  --bs-btn-hover-bg: var(--brand); --bs-btn-hover-border-color: var(--brand); --bs-btn-hover-color: #fff;
  --bs-btn-active-bg: var(--brand); --bs-btn-active-border-color: var(--brand);
}
.btn-outline-secondary {
  --bs-btn-color: var(--ink); --bs-btn-border-color: var(--line);
  --bs-btn-hover-bg: var(--surface-2); --bs-btn-hover-color: var(--ink); --bs-btn-hover-border-color: var(--line);
  --bs-btn-active-bg: var(--surface-2); --bs-btn-active-color: var(--ink); --bs-btn-active-border-color: var(--line);
}
.btn-outline-danger {
  --bs-btn-color: var(--danger); --bs-btn-border-color: color-mix(in srgb, var(--danger) 50%, transparent);
  --bs-btn-hover-bg: var(--danger); --bs-btn-hover-border-color: var(--danger);
}
.btn-link { --bs-btn-color: var(--brand); --bs-btn-hover-color: var(--brand-deep); text-decoration: none; font-weight: 600; padding: 0; border: 0; font-size: 13px; }
.btn-link.text-danger { --bs-btn-color: var(--danger); --bs-btn-hover-color: var(--danger); }
.form-control, .form-select { background-color: var(--surface); border-color: var(--line); }
.form-control:focus, .form-select:focus { border-color: var(--brand); box-shadow: 0 0 0 .2rem rgba(var(--bs-primary-rgb), .2); }
.form-check-input:checked { background-color: var(--brand); border-color: var(--brand); }
.form-check-input:focus { border-color: var(--brand); box-shadow: 0 0 0 .2rem rgba(var(--bs-primary-rgb), .2); }
.form-label { font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.form-text { font-size: 12.5px; color: var(--ink-3); }
.nav-pills { --bs-nav-pills-link-active-bg: var(--brand); }
.nav-pills .nav-link { color: var(--ink-2); font-weight: 500; text-align: left; display: flex; justify-content: space-between; gap: 8px; }
.nav-pills .nav-link:hover { background: var(--surface-2); color: var(--ink); }
.nav-pills .nav-link.active small { opacity: .8; }
.table { --bs-table-bg: var(--surface); --bs-table-hover-bg: color-mix(in srgb, var(--surface-2) 55%, transparent); margin: 0; font-size: 14px; }
.table > thead th { font-size: 11.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-3); font-weight: 600; white-space: nowrap; }
.table td { vertical-align: middle; }
.offcanvas { --bs-offcanvas-bg: var(--surface); --bs-offcanvas-width: min(560px, 100vw); }
.offcanvas.panel-wide { --bs-offcanvas-width: min(720px, 100vw); }
.offcanvas-header { border-bottom: 1px solid var(--line); }
.offcanvas-footer { border-top: 1px solid var(--line); padding: 16px 20px; display: flex; flex-direction: column; gap: 12px; }
.offcanvas-body { display: flex; flex-direction: column; gap: 20px; padding: 20px; }
.app-toast { background: var(--ink); color: var(--surface); border-radius: 999px; font-weight: 500; width: auto; max-width: calc(100vw - 32px); }
.app-toast .toast-body { padding: 10px 18px; }
.badge-soft { font-size: 11px; font-weight: 600; padding: 3px 7px; border-radius: 4px; background: var(--surface-2); color: var(--ink-2); }
.badge-soft.ok { background: color-mix(in srgb, var(--ok) 16%, transparent); color: var(--ok); }
.badge-soft.warn { background: color-mix(in srgb, var(--warn) 18%, transparent); color: var(--warn); }
.badge-soft.brand { background: var(--brand-soft); color: var(--brand); }

/* ---------- Base type ---------- */
body { line-height: 1.5; }
h1, h2, h3, .display-font { font-family: var(--f-display); font-weight: 400; text-wrap: balance; line-height: 1.08; letter-spacing: 0; margin: 0; }
.mono { font-family: var(--f-mono); font-size: 12px; letter-spacing: .02em; }
.eyebrow { font-size: 11.5px; text-transform: uppercase; letter-spacing: .09em; font-weight: 600; color: var(--ink-3); }
.script { font-family: var(--f-script); font-size: 22px; line-height: 1; color: var(--brand); }
.hint { font-size: 12.5px; color: var(--ink-3); }
.tri { height: 5px; background: linear-gradient(90deg, var(--primo-green) 0 33.3%, var(--primo-white) 33.3% 66.6%, var(--primo-red) 66.6%); box-shadow: inset 0 1px 0 rgba(0,0,0,.06), inset 0 -1px 0 rgba(0,0,0,.06); }
.empty { grid-column: 1/-1; padding: 48px 20px; text-align: center; color: var(--ink-3); border: 1px dashed var(--line); border-radius: var(--r); }
.empty b { display: block; color: var(--ink); font-size: 16px; margin-bottom: 4px; }
.skeleton { height: 220px; border-radius: 16px; background: linear-gradient(90deg, var(--surface-2), var(--surface), var(--surface-2)); background-size: 200% 100%; animation: sh 1.4s infinite; }
@keyframes sh { to { background-position: -200% 0; } }

/* ---------- Header ---------- */
.site-header { background: var(--surface); z-index: 1020; }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-text b { font-family: var(--f-display); font-weight: 400; font-size: 17px; color: var(--brand); }
.logo-text span { font-family: var(--f-script); font-size: 17px; color: var(--signal); margin-top: 2px; }
.logo-chip { background: #fff; border-radius: 8px; padding: 4px 8px; display: flex; align-items: center; height: 42px; box-shadow: 0 0 0 1px var(--line); }
.logo-chip img { max-height: 34px; width: auto; display: block; }
.logo-mark { width: 30px; height: 30px; border-radius: 7px; background: var(--brand); display: grid; place-items: center; flex: none; }
.logo-mark span { width: 12px; height: 16px; border: 2.5px solid #fff; border-radius: 2px; position: relative; }
.logo-mark span::after { content: ""; position: absolute; left: 2px; right: 2px; top: 3px; height: 2.5px; background: var(--primo-green); border-radius: 1px; }
.search { min-width: 0; }
.search .input-group-text, .search .form-control { background: var(--surface-2); border-color: transparent; }
.search .input-group-text { border-radius: 999px 0 0 999px; color: var(--ink-3); padding-right: 4px; }
.search .form-control { border-radius: 0 999px 999px 0 !important; padding-left: 6px; }
.search:focus-within .input-group-text, .search:focus-within .form-control { border-color: var(--brand); box-shadow: none; }
.loc-pill { line-height: 1.15; padding: 6px 12px; max-width: 220px; }
.loc-pill b { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart-count { background: #fff; color: var(--primo-red); min-width: 22px; font-variant-numeric: tabular-nums; }
#adminBtn[aria-pressed="true"] { background: var(--signal); color: #fff; border-color: var(--signal); }
.cats { overflow-x: auto; scrollbar-width: none; --bs-nav-underline-gap: .25rem; --bs-nav-underline-link-active-color: var(--brand); --bs-nav-underline-border-width: 2.5px; }
.cats::-webkit-scrollbar { display: none; }
.cats .nav-link { color: var(--ink-2); font-weight: 500; white-space: nowrap; padding: 10px 12px 12px; background: none; }
.cats .nav-link:hover { color: var(--ink); }
.cats .nav-link.active { color: var(--brand); font-weight: 700; }
.cats small { color: var(--ink-3); font-family: var(--f-mono); margin-left: 4px; }
.custom-btn { border-width: 1.5px; border-radius: 999px; padding: 6px 14px; font-size: 13.5px; white-space: nowrap; }
.site-footer { background: var(--surface); }
.site-footer .script { font-size: 20px; }

/* ---------- Artwork thumbs & placeholders ---------- */
.thumb { aspect-ratio: 4/3; max-width: 100%; background: var(--surface-2); display: grid; place-items: center; padding: 18px; position: relative; overflow: hidden; }
.thumb img.art { max-width: 100%; max-height: 100%; object-fit: contain; box-shadow: 0 6px 16px rgba(0,0,0,.18); border-radius: 2px; }
.mock { background: var(--m-bg); color: var(--m-fg); box-shadow: 0 6px 16px rgba(0,0,0,.18); display: flex; flex-direction: column; justify-content: space-between; padding: 8%; border-radius: 3px; font-family: var(--f-display); overflow: hidden; position: relative; max-width: 100%; }
.mock.portrait { height: 100%; aspect-ratio: 3/4; }
.mock.landscape { width: 92%; aspect-ratio: 16/9; }
.mock.square { height: 100%; aspect-ratio: 1; }
.mock.card { width: 70%; aspect-ratio: 1.586; border-radius: 8px; }
.mock.banner { width: 96%; aspect-ratio: 4/1; }
.mock .h { font-weight: 400; line-height: 1; overflow-wrap: anywhere; }
.mock .k { font-family: var(--f-mono); font-size: 7px; letter-spacing: .12em; text-transform: uppercase; opacity: .75; }
.mock .bar { height: 4px; width: 40%; background: var(--m-ac); border-radius: 2px; display: block; }
.mock .lines { display: flex; flex-direction: column; gap: 3px; }
.mock .lines i { display: block; height: 3px; background: currentColor; opacity: .3; border-radius: 2px; }
.mock .dot { position: absolute; right: 8%; top: 8%; width: 18%; aspect-ratio: 1; border-radius: 50%; background: var(--m-ac); }

/* ---------- Product cards ---------- */
.art-card { --bs-card-bg: var(--surface); --bs-card-border-color: var(--line); border-radius: var(--r); overflow: hidden; text-align: left; padding: 0; transition: transform .15s, box-shadow .15s; height: 100%; width: 100%; color: inherit; }
.art-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.art-card .card-body { padding: 14px 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.art-card h3 { font-family: var(--f-body); font-size: 15.5px; font-weight: 600; line-height: 1.3; }
.art-card p { margin: 0; color: var(--ink-2); font-size: 13.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 8px; }
.price { font-weight: 700; color: var(--brand); font-variant-numeric: tabular-nums; }
.price small { color: var(--ink-3); font-weight: 400; font-size: 12px; }
.art-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 18px; padding-bottom: 56px; }

/* ---------- Overview band ---------- */
.block { padding-block: 36px 8px; }
.rail-head { display: flex; justify-content: space-between; align-items: end; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.rail-head h2 { font-size: 20px; margin-top: 2px; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 12px; margin: 0 0 16px; flex-wrap: wrap; padding-top: 28px; }
.section-head h2 { font-size: 26px; }
.section-head p { margin: 4px 0 0; color: var(--ink-2); max-width: 60ch; }
.round { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; color: var(--ink); padding: 0; }

.ov-top { --b-bg:#111111; --b-fg:#FFFFFF; --b-muted:rgba(255,255,255,.72); --b-card:#1E1E1E; --b-line:#343434; --b-line2:rgba(255,255,255,.45); --b-script:#E5484E; --b-promo:var(--primo-red); --b-btn:#FFFFFF; --b-btn-ink:#111111;
  background: var(--b-bg); color: var(--b-fg); position: relative; }
.ov-top.c-red { --b-bg:var(--primo-red); --b-card:rgba(0,0,0,.2); --b-line:rgba(255,255,255,.24); --b-script:#FFFFFF; --b-promo:#111111; --b-btn-ink:var(--primo-red); --b-muted:rgba(255,255,255,.86); }
.ov-top.c-green { --b-bg:var(--primo-green); --b-card:rgba(0,0,0,.2); --b-line:rgba(255,255,255,.24); --b-script:#FFFFFF; --b-promo:var(--primo-red); --b-btn-ink:var(--primo-green); --b-muted:rgba(255,255,255,.86); }
.ov-top.c-white { --b-bg:var(--surface); --b-fg:var(--ink); --b-muted:var(--ink-2); --b-card:var(--surface-2); --b-line:var(--line); --b-line2:var(--line); --b-script:var(--brand); --b-promo:var(--primo-red); --b-btn:var(--brand); --b-btn-ink:#FFFFFF; }
.ov-top > .container-xl { padding-block: 28px 40px; display: flex; flex-direction: column; gap: 22px; }
.ov-top::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 8px; background: linear-gradient(90deg, var(--primo-green) 0 33.3%, #FFFFFF 33.3% 66.6%, var(--primo-red) 66.6%); }
.ov-intro .script { color: var(--b-script); font-size: clamp(22px, 2.4vw, 28px); }
.ov-intro h1 { font-family: var(--f-inline); font-size: clamp(24px, 3.2vw, 38px); line-height: 1.06; max-width: 24ch; margin-top: 8px; }
.ov-intro p { margin: 10px 0 0; color: var(--b-muted); max-width: 62ch; }
.ov-grid { display: grid; grid-template-columns: minmax(0,2fr) minmax(0,1fr); gap: 16px; align-items: stretch; }
.side { display: grid; grid-template-rows: auto 1fr; gap: 16px; min-width: 0; }
.side-card { border-radius: 14px; padding: 20px; display: flex; flex-direction: column; gap: 12px; min-width: 0; color: var(--b-fg); }
.side-card.store { background: var(--b-card); border: 1px solid var(--b-line); }
.side-card.store h3 { font-size: 17px; line-height: 1.15; overflow-wrap: anywhere; }
.side-card .muted, .b-muted { color: var(--b-muted) !important; font-size: 13.5px; }
.btn-w { --bs-btn-bg: var(--b-btn); --bs-btn-color: var(--b-btn-ink); --bs-btn-border-color: var(--b-btn); --bs-btn-hover-bg: var(--b-btn); --bs-btn-hover-color: var(--b-btn-ink); --bs-btn-hover-border-color: var(--b-btn); --bs-btn-active-bg: var(--b-btn); --bs-btn-active-color: var(--b-btn-ink); }
.btn-w:hover { filter: brightness(.94); }
.btn-o { --bs-btn-color: var(--b-fg); --bs-btn-border-color: var(--b-line2); --bs-btn-hover-color: var(--b-fg); --bs-btn-hover-bg: rgba(127,127,127,.15); --bs-btn-hover-border-color: var(--b-line2); --bs-btn-active-color: var(--b-fg); }
.side-card.promo { background: var(--b-promo); color: #fff; border: 0; text-align: left; position: relative; overflow: hidden; justify-content: space-between; min-height: 190px; }
.side-card.promo h3 { font-size: 20px; line-height: 1.08; max-width: 12ch; }
.side-card.promo p { margin: 6px 0 0; color: rgba(255,255,255,.88); max-width: 22ch; font-size: 13.5px; }
.side-card.promo .go { font-weight: 600; position: relative; z-index: 1; }
.side-card.promo .mini-art { position: absolute; right: -6%; bottom: -8%; width: 48%; transform: rotate(-7deg); pointer-events: none; }
.side-card.promo .mini-art .mock { width: 100%; height: auto; }
.side-card.promo .mini-art .mock.portrait, .side-card.promo .mini-art .mock.square { width: 70%; height: auto; }
.side-card.promo > div:first-child { position: relative; z-index: 1; }
.ov-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; }
.ov-head .ov-intro { min-width: 0; flex: 1 1 380px; }
.storebar { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; background: var(--b-card); border: 1px solid var(--b-line); border-radius: 12px; padding: 10px 12px 10px 16px; min-width: 0; color: var(--b-fg); }
.storebar .sb-text { display: flex; flex-direction: column; min-width: 0; font-size: 13px; color: var(--b-muted); line-height: 1.35; }
.storebar .sb-text b { color: var(--b-fg); font-size: 14.5px; font-weight: 600; overflow-wrap: anywhere; }
.ov-split { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.55fr); gap: 28px; align-items: center; }
.l-compact .ov-intro h1 { font-size: clamp(20px, 2.4vw, 28px); margin-top: 4px; }
.l-compact .ov-intro .script { font-size: 22px; }
.hdr-tools-bar { background: var(--surface-2); border-bottom: 1px solid var(--line); }
.hdr-tools { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; padding-block: 10px; font-size: 13.5px; color: var(--ink-2); }
.hdr-tools .form-select { width: auto; display: inline-block; }

/* ---------- Seasonal carousel (Bootstrap .carousel) ---------- */
.promo-carousel { border-radius: 14px; overflow: hidden; background: var(--b-card, var(--surface-2)); position: relative; }
.promo-carousel .carousel-inner, .promo-carousel .carousel-item { height: 100%; }
.promo-slide { position: relative; aspect-ratio: 21/8; background: var(--s-bg); color: var(--s-fg); display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,1fr); overflow: hidden; height: 100%; }
.promo-slide.has-img { grid-template-columns: 1fr; }
.promo-slide .bgimg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.promo-slide.has-img .s-copy { background: linear-gradient(90deg, rgba(0,0,0,.62), rgba(0,0,0,.15) 70%, transparent); color: #fff; }
.s-copy { position: relative; padding: clamp(20px,4vw,48px); padding-bottom: clamp(44px,5vw,56px); display: flex; flex-direction: column; justify-content: center; gap: 10px; min-width: 0; }
.s-copy .season { display: inline-flex; align-self: flex-start; font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; border: 1px solid currentColor; border-radius: 999px; padding: 3px 10px; opacity: .85; }
.s-copy h3 { font-size: clamp(24px, 3.4vw, 40px); line-height: 1.02; }
.s-copy p { margin: 0; max-width: 44ch; opacity: .88; }
.s-copy .btn { align-self: flex-start; margin-top: 6px; background: var(--s-ac); color: var(--s-bg); border: 0; }
.promo-slide.has-img .s-copy .btn { color: #111; }
.s-art { position: relative; display: flex; align-items: center; justify-content: center; padding: 24px; }
.s-art .stack { position: relative; height: 84%; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; }
.s-art .stack .mock { max-height: 100%; }
.s-art .ring { position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%; background: var(--s-ac); opacity: .22; right: 4%; top: 8%; }
.promo-carousel .carousel-indicators { justify-content: flex-start; margin: 0 0 16px clamp(20px,4vw,48px); gap: 6px; }
.promo-carousel .carousel-indicators [data-bs-target] { width: 26px; height: 4px; border-radius: 2px; border: 0; margin: 0; background: var(--c-dot, #fff); opacity: .35; transition: width .2s, opacity .2s; }
.promo-carousel .carousel-indicators .active { opacity: 1; width: 40px; }
.car-nav { position: absolute; right: 14px; bottom: 12px; z-index: 3; display: flex; gap: 8px; }
.car-nav .round { background: rgba(0,0,0,.4); border-color: rgba(255,255,255,.4); color: #fff; font-size: 18px; }
.ov-grid .promo-carousel, .ov-grid .promo-slide { min-height: 360px; height: 100%; }
.ov-grid .promo-slide { aspect-ratio: auto; }
.ov-split .promo-slide { aspect-ratio: auto; min-height: 400px; }
@media (min-width: 861px) { .l-compact .promo-slide { aspect-ratio: 3/1; } .l-banner .promo-slide { aspect-ratio: 21/8; } }
.slide-preview { flex-shrink: 0; }
.slide-preview .promo-slide { aspect-ratio: 2/1; height: auto; min-height: 0; }
.offcanvas-body > * { flex-shrink: 0; }
.slide-preview .s-copy h3 { font-size: 24px; }
.slide-preview .s-copy { padding: 20px; }

/* ---------- Featured ---------- */
.feat { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; }
.feat-big { grid-column: span 2; grid-row: span 2; background: #111; color: #fff; border: 1px solid #2A2A2A; border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; text-align: left; padding: 0; position: relative; min-width: 0; }
.feat.trio .feat-big, .feat.duo .feat-big { grid-row: span 1; }
.feat.solo .feat-big { grid-column: 1/-1; grid-row: span 1; }
.fb-art { flex: 1; position: relative; display: grid; place-items: center; padding: 36px 28px 24px; min-height: 280px; background: radial-gradient(ellipse at 50% 58%, rgba(195,34,40,.62), rgba(195,34,40,0) 64%), #111; overflow: hidden; }
.fb-art .mock { transform: rotate(-4deg); transition: transform .35s cubic-bezier(.3,.7,.2,1); box-shadow: 0 18px 40px rgba(0,0,0,.55); }
.fb-art .mock.portrait { height: 240px; } .fb-art .mock.square { height: 210px; }
.fb-art .mock.landscape, .fb-art .mock.card, .fb-art .mock.banner { width: 78%; height: auto; }
.fb-art img.art { max-height: 260px; max-width: 100%; transform: rotate(-3deg); transition: transform .35s; }
.feat-big:hover .fb-art .mock, .feat-big:hover .fb-art img.art { transform: rotate(0) scale(1.04); }
.ftag { position: absolute; left: 16px; top: 16px; z-index: 2; background: var(--primo-green); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; padding: 5px 11px; border-radius: 999px; }
.fb-info { padding: 18px 22px 22px; display: flex; flex-direction: column; gap: 8px; border-top: 1px solid #262626; }
.fb-cat { font-size: 11.5px; text-transform: uppercase; letter-spacing: .09em; font-weight: 600; color: #E5484E; }
.fb-info h3 { font-size: 21px; line-height: 1.1; }
.fb-info p { margin: 0; color: rgba(255,255,255,.72); font-size: 14px; max-width: 52ch; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fb-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.fb-chips span { font-size: 12px; font-weight: 600; border: 1px solid #3A3A3A; border-radius: 999px; padding: 3px 10px; color: rgba(255,255,255,.85); }
.fb-row { display: flex; justify-content: space-between; align-items: end; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
.fb-price { font-family: var(--f-display); font-size: 28px; line-height: 1; font-variant-numeric: tabular-nums; }
.fb-price small { display: block; font-family: var(--f-body); font-size: 12px; color: rgba(255,255,255,.6); margin-bottom: 4px; }
.fb-cta { background: var(--primo-red); color: #fff; border-radius: 8px; padding: 10px 16px; font-weight: 600; transition: background .15s; }
.feat-big:hover .fb-cta { background: #D93A40; }
.feat-sm { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; text-align: left; padding: 0; display: flex; flex-direction: column; min-width: 0; color: inherit; transition: transform .15s, box-shadow .15s, border-color .15s; }
.feat .feat-sm .fs-art { aspect-ratio: auto; }
.feat-sm:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--brand); }
.fs-art { flex: 1; min-height: 170px; aspect-ratio: 4/3; background: var(--surface-2); display: grid; place-items: center; padding: 18px; position: relative; overflow: hidden; }
.fs-art .mock, .fs-art img.art { transition: transform .3s cubic-bezier(.3,.7,.2,1); }
.feat-sm:hover .fs-art .mock, .feat-sm:hover .fs-art img.art { transform: rotate(-4deg) scale(1.06); }
.fs-art img.art { max-height: 100%; max-width: 100%; }
.fs-price { position: absolute; right: 10px; bottom: 10px; background: var(--primo-red); color: #fff; font-weight: 700; font-size: 13px; padding: 4px 10px; border-radius: 999px; font-variant-numeric: tabular-nums; box-shadow: 0 2px 6px rgba(0,0,0,.2); }
.fs-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 3px; }
.fs-cat { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; color: var(--ink-3); }
.fs-body b { font-weight: 600; font-size: 14.5px; line-height: 1.3; }

/* ---------- Shop by section ---------- */
.sec-btns { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; }
.sec-btn { position: relative; border: 0; border-radius: 12px; padding: 20px 52px 20px 20px; text-align: left; color: #fff; display: flex; flex-direction: column; gap: 6px; min-height: 104px; justify-content: center; transition: transform .15s, box-shadow .15s; }
.sec-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); color: #fff; }
.sec-btn.s0 { background: var(--primo-red); } .sec-btn.s1 { background: var(--primo-green); } .sec-btn.s2 { background: #111; }
.sb-name { font-family: var(--f-display); font-size: 17px; line-height: 1.1; }
.sb-meta { font-size: 13px; opacity: .85; }
.sb-go { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 50%; background: #fff; color: #111; display: grid; place-items: center; font-weight: 700; }

/* ---------- Product panel options (Bootstrap .btn-check) ---------- */
.opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.opt-tile { display: flex; flex-direction: column; gap: 2px; border: 1.5px solid var(--line); border-radius: 8px; padding: 10px 12px; cursor: pointer; height: 100%; margin: 0; }
.opt-tile b { font-size: 14px; font-weight: 600; }
.opt-tile span { font-size: 12.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.btn-check:checked + .opt-tile { border-color: var(--brand); background: var(--brand-soft); }
.btn-check:focus-visible + .opt-tile { outline: 2px solid var(--brand); outline-offset: 2px; }
.btn-check:disabled + .opt-tile { opacity: .4; cursor: not-allowed; }
fieldset legend { font-weight: 600; font-size: 14px; margin-bottom: 8px; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; float: none; width: auto; }
fieldset legend span { font-weight: 400; color: var(--ink-3); font-size: 12.5px; }
.qty { width: auto; }
.qty .btn { background: var(--surface-2); border-color: var(--line); color: var(--ink); width: 34px; padding: 0; }
.qty .form-control { width: 56px; flex: none; text-align: center; font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
.qty .form-control::-webkit-inner-spin-button { -webkit-appearance: none; }
.qty-sm .btn { width: 28px; height: 28px; font-size: 14px; }
.qty-sm .form-control { width: 38px; height: 28px; padding: 0; font-size: 13px; }
.pd-thumb .thumb { aspect-ratio: 16/10; padding: 28px; border-radius: var(--r); }
.pd-title h2 { font-size: 21px; line-height: 1.15; margin-top: 4px; }
.pd-title p { color: var(--ink-2); margin: 8px 0 0; }
.specs { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12.5px; color: var(--ink-3); margin-top: 10px; }
.custom-box { background: var(--surface-2); border-radius: 8px; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.total-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.total-row b { font-family: var(--f-display); font-weight: 400; font-size: 21px; font-variant-numeric: tabular-nums; }
.breakdown { font-size: 12.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }

/* ---------- Cart ---------- */
.line { display: grid; grid-template-columns: 72px minmax(0,1fr) auto; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.line .thumb { aspect-ratio: 1; padding: 8px; border-radius: 6px; }
.line .mock .h { font-size: 9px !important; }
.line h4 { margin: 0; font-size: 14.5px; font-weight: 600; }
.line .meta { font-size: 12.5px; color: var(--ink-2); display: flex; flex-direction: column; }
.line .note { font-size: 12px; color: var(--ink-3); background: var(--surface-2); border-radius: 5px; padding: 5px 8px; margin-top: 6px; overflow-wrap: anywhere; }
.line-r { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 8px; }
.notice { background: color-mix(in srgb, var(--warn) 14%, transparent); border-radius: 8px; padding: 10px 12px; font-size: 13.5px; }

/* ---------- Checkout ---------- */
.co-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; min-width: 0; }
.co-card h2 { font-size: 18px; margin-bottom: 16px; }
.summary-line { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; padding-block: 8px; border-bottom: 1px solid var(--line); }
.summary-line > span:last-child { font-variant-numeric: tabular-nums; white-space: nowrap; }
.success { display: flex; gap: 14px; align-items: center; background: var(--brand-soft); border-radius: var(--r); padding: 16px 18px; margin-bottom: 18px; }
.success .tick { width: 38px; height: 38px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; font-weight: 700; flex: none; }
pre.export { background: var(--surface-2); color: var(--ink); border-radius: 8px; padding: 14px; font-size: 12px; max-height: 340px; overflow: auto; margin: 0; white-space: pre; }
.export-tabs .btn.active { background: var(--ink); color: var(--surface); border-color: var(--ink); }

/* ---------- Admin ---------- */
.admin-nav { position: sticky; top: 130px; }
.admin-head { display: flex; justify-content: space-between; align-items: end; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.admin-head h1 { font-size: 26px; }
.admin-head p { margin: 4px 0 0; color: var(--ink-2); }
.tbl-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.tbl-wrap .table > :not(caption) > * > * { padding: 10px 14px; }
.tbl-wrap tr:last-child td { border-bottom: 0; }
.mini { width: 56px; height: 44px; padding: 5px; border-radius: 5px; aspect-ratio: auto; }
.mini .mock .h { font-size: 6px !important; }
.mini .mock .k, .mini .mock .lines { display: none; }
.row-title { font-weight: 600; line-height: 1.3; }
.row-actions { display: flex; gap: 12px; justify-content: flex-end; white-space: nowrap; }
.rep-row { display: grid; grid-template-columns: minmax(0,1fr) 120px 38px; gap: 8px; align-items: center; }
.img-drop { display: flex; gap: 14px; align-items: center; border: 1.5px dashed var(--line); border-radius: 10px; padding: 12px; }
.img-drop .thumb { width: 120px; flex: none; border-radius: 6px; padding: 10px; }
.form-section { display: flex; flex-direction: column; gap: 12px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.form-section:last-of-type { border-bottom: 0; }
.form-section h3 { font-family: var(--f-body); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); font-weight: 600; }
.slide-row { display: grid; grid-template-columns: 150px minmax(0,1fr) auto; gap: 16px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 12px; }
.slide-row .sw { height: 64px; border-radius: 7px; background: var(--s-bg); color: var(--s-fg); display: flex; align-items: end; padding: 8px; font-family: var(--f-display); font-size: 11px; box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; position: relative; }
.slide-row .sw img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; height: 100%; }
.kpi b { font-family: var(--f-display); font-weight: 400; font-size: 22px; display: block; font-variant-numeric: tabular-nums; }
.kpi span { font-size: 12.5px; color: var(--ink-3); }
.confirm-bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; background: color-mix(in srgb, var(--danger) 10%, transparent); border-radius: 8px; padding: 10px 12px; font-size: 13.5px; }
.err-msg { color: var(--danger); font-size: 13px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .feat { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .feat-big, .feat.trio .feat-big { grid-column: 1/-1; grid-row: auto; }
  .feat.duo .feat-big { grid-column: span 2; }
  .sec-btns { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 860px) {
  .ov-grid { grid-template-columns: 1fr; }
  .side { grid-template-rows: auto; grid-template-columns: 1fr 1fr; }
  .ov-grid .promo-carousel, .ov-grid .promo-slide { min-height: 300px; }
  .ov-split { grid-template-columns: 1fr; }
  .ov-split .promo-slide { min-height: 320px; }
  .promo-slide { grid-template-columns: 1fr; aspect-ratio: auto; min-height: 320px; }
  .s-art { display: none; }
  .admin-nav { position: static; flex-direction: row !important; overflow-x: auto; flex-wrap: nowrap; }
  .admin-nav .eyebrow { display: none; }
  .admin-nav .nav-link { white-space: nowrap; }
}
@media (max-width: 560px) {
  .top-row { flex-wrap: wrap; }
  .search { order: 3; flex-basis: 100%; }
  .logo { flex: 1; }
  .side { grid-template-columns: 1fr; }
  .sec-btns { grid-template-columns: 1fr; }
  .slide-row { grid-template-columns: 1fr; }
  .fb-art { min-height: 220px; } .fb-art .mock.portrait { height: 190px; } .fb-price { font-size: 24px; }
  .custom-btn { padding: 6px 11px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ---------- Login ---------- */
.login-body { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; background: var(--bg); }
.login-wrap { flex: 1; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.login-brand { background: #111; color: #fff; position: relative; overflow: hidden; }
.login-brand::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 30% 70%, rgba(195,34,40,.45), rgba(195,34,40,0) 60%); }
.login-brand-inner { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; padding: clamp(28px, 5vw, 64px); }
.login-script { color: #E5484E; font-size: clamp(22px, 2.4vw, 30px); }
.login-headline { font-family: var(--f-inline); font-size: clamp(28px, 4vw, 50px); line-height: 1.04; max-width: 16ch; margin-top: 10px; }
.login-lede { color: rgba(255,255,255,.75); max-width: 44ch; margin: 14px 0 0; font-size: 16px; }
.login-foot { color: rgba(255,255,255,.6); }
.login-panel { display: grid; place-items: center; padding: clamp(24px, 5vw, 64px) 16px; }
.login-card { width: min(400px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: clamp(24px, 4vw, 36px); box-shadow: var(--shadow); }
.login-card h2 { font-size: 24px; }
.login-tri { height: 8px; }
@media (max-width: 860px) {
  .login-wrap { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .login-brand-inner { gap: 20px; padding: 24px 16px 28px; }
  .login-lede, .login-foot { display: none; }
  .login-headline { font-size: 26px; }
}

/* ---------- User menu ---------- */
.user-btn { display: flex; align-items: center; gap: 8px; border-radius: 999px; padding: 4px 12px 4px 4px; }
.user-avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--signal); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 12.5px; flex: none; letter-spacing: .02em; }
.user-btn .user-first { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; }
.dropdown-menu { --bs-dropdown-bg: var(--surface); --bs-dropdown-border-color: var(--line); --bs-dropdown-link-active-bg: var(--brand); box-shadow: var(--shadow); min-width: 240px; }
.role-badge { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
