/* =====================================================================
   INFINITY GARAGE — Storefront Design System v2
   ---------------------------------------------------------------------
   Type   : Archivo (display, expanded) · Geist (UI/body) · Geist Mono (labels)
   Colour : warm paper neutrals + one signal orange, used sparingly
   Grid   : 4px base, 16px mobile gutter, 1280px max content
   ===================================================================== */

:root {
    /* Neutrals (warm) */
    --ink:        #121314;
    --ink-2:      #2C2E31;
    --ink-3:      #4A4D52;
    --muted:      #6F737A;
    --subtle:     #9B9EA4;
    --line:       #E8E6E1;
    --line-2:     #DAD7D0;
    --bg:         #F4F3EF;
    --bg-2:       #EDEBE6;
    --surface:    #FFFFFF;
    --surface-2:  #FAF9F7;
    --tile:       #F2F1ED;   /* product image well */

    /* Signal */
    --accent:       #FF4F00;
    --accent-hover: #E84800;
    --accent-soft:  #FFF0E8;
    --accent-line:  #FFD3BD;

    /* Status */
    --success:      #11845B;
    --success-soft: #E6F4EE;
    --danger:       #D92D20;
    --danger-soft:  #FDECEA;
    --warning:      #B25E09;
    --warning-soft: #FEF3E2;
    --star:         #F2A20C;

    /* Type */
    --font-display: 'Archivo', 'Geist', system-ui, sans-serif;
    --font-ui:      'Geist', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --font-mono:    'Geist Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

    /* Radius */
    --r-xs: 8px;
    --r-sm: 10px;
    --r:    14px;
    --r-lg: 20px;
    --r-xl: 28px;
    --r-pill: 999px;

    /* Elevation */
    --sh-1: 0 1px 2px rgba(18,19,20,.05);
    --sh-2: 0 1px 2px rgba(18,19,20,.04), 0 6px 20px -6px rgba(18,19,20,.10);
    --sh-3: 0 2px 6px rgba(18,19,20,.06), 0 18px 48px -12px rgba(18,19,20,.22);
    --sh-focus: 0 0 0 3px rgba(255,79,0,.22);

    /* Motion */
    --ease: cubic-bezier(.2,.8,.2,1);
    --ease-out: cubic-bezier(.16,1,.3,1);
    --t-fast: .16s var(--ease);
    --t: .28s var(--ease);

    /* Layout */
    --container: 1280px;
    --gutter: 16px;
    --header-h: 0px;
    --tabbar-h: 64px;

    /* Legacy aliases (kept so older inline styles still resolve) */
    --orange: var(--accent);
    --primary: var(--accent);
    --text-dark: var(--ink);
    --text-body: var(--ink-3);
    --text-muted: var(--muted);
    --border: var(--line);
    --bg-white: var(--surface);
    --bg-main: var(--bg);
    --font-heading: var(--font-display);
    --font-body: var(--font-ui);
    --radius-sm: var(--r-sm);
    --radius-md: var(--r);
    --radius-lg: var(--r-lg);
    --radius-full: var(--r-pill);
    --accent-green: var(--success);
    --accent-red: var(--danger);
}
@media (min-width: 768px) { :root { --gutter: 24px; } }
@media (min-width: 1200px) { :root { --gutter: 32px; } }

/* ── Reset ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; -webkit-tap-highlight-color: transparent; }
body {
    font-family: var(--font-ui);
    font-size: 15px;
    line-height: 1.5;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: "ss01", "cv11";
    overflow-x: hidden;
    min-height: 100vh;
}
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; letter-spacing: -.01em; color: var(--ink); font-stretch: 105%; }
p { color: var(--ink-3); }
strong, b { font-weight: 600; }
::selection { background: var(--ink); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
input[type=number]::-webkit-inner-spin-button, input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
input[type=number] { -moz-appearance: textfield; }
.no-scrollbar, .rail, .chip-row { scrollbar-width: none; -ms-overflow-style: none; }
.no-scrollbar::-webkit-scrollbar, .rail::-webkit-scrollbar, .chip-row::-webkit-scrollbar { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.tnum { font-variant-numeric: tabular-nums; }

/* ── Layout ────────────────────────────────────────────────────────── */
.container, .wrap { width: 100%; max-width: var(--container); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.page { padding: 16px 0 40px; }
@media (min-width: 900px) { .page { padding: 28px 0 72px; } }
.section { padding: 28px 0; }
@media (min-width: 900px) { .section { padding: 48px 0; } }
.stack-8 > * + * { margin-top: 8px; }
.stack-16 > * + * { margin-top: 16px; }

/* ── Type helpers ──────────────────────────────────────────────────── */
.eyebrow {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted);
}
.eyebrow--accent { color: var(--accent); }
.display { font-family: var(--font-display); font-weight: 800; font-stretch: 115%; letter-spacing: -.025em; line-height: 1.02; }
.h1 { font-size: clamp(26px, 5vw, 40px); font-weight: 800; font-stretch: 112%; letter-spacing: -.02em; }
.h2 { font-size: clamp(20px, 3.2vw, 28px); font-weight: 750; font-stretch: 110%; letter-spacing: -.015em; }
.h3 { font-size: 17px; font-weight: 700; }
.lead { font-size: 15px; color: var(--muted); line-height: 1.55; }
.muted { color: var(--muted); }
.price { font-family: var(--font-ui); font-weight: 650; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.mrp { color: var(--subtle); text-decoration: line-through; font-variant-numeric: tabular-nums; }

/* ── Section header ────────────────────────────────────────────────── */
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.sec-head__titles { min-width: 0; }
.sec-head__title { font-family: var(--font-display); font-size: clamp(20px, 3vw, 28px); font-weight: 800; font-stretch: 112%; letter-spacing: -.02em; line-height: 1.1; }
.sec-head__sub { margin-top: 4px; font-size: 13.5px; color: var(--muted); }
.sec-head .eyebrow { display: block; margin-bottom: 6px; }
.sec-head__actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--ink); white-space: nowrap; padding: 6px 0; }
.link-arrow i { font-size: 11px; transition: transform var(--t-fast); }
.link-arrow:hover { color: var(--accent); }
.link-arrow:hover i { transform: translateX(3px); }
@media (min-width: 900px) { .sec-head { margin-bottom: 24px; } }

/* ── Buttons ───────────────────────────────────────────────────────── */
.btn {
    --btn-h: 44px;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: var(--btn-h); padding: 0 20px;
    border-radius: var(--r-sm);
    font-size: 14px; font-weight: 600; letter-spacing: -.005em;
    white-space: nowrap; user-select: none;
    border: 1px solid transparent;
    transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
}
.btn:active { transform: scale(.98); }
.btn:disabled, .btn[aria-disabled=true] { opacity: .45; pointer-events: none; }
.btn i { font-size: .95em; }
.btn-primary, .btn--ink { background: var(--ink); color: #fff; }
.btn-primary:hover, .btn--ink:hover { background: #000; }
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-hover); }
.btn-secondary, .btn--soft { background: var(--bg-2); color: var(--ink); }
.btn-secondary:hover, .btn--soft:hover { background: var(--line-2); }
.btn-outline, .btn--line { background: var(--surface); color: var(--ink); border-color: var(--line-2); }
.btn-outline:hover, .btn--line:hover { border-color: var(--ink); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--bg-2); }
.btn--wa { background: #1FAF55; color: #fff; }
.btn--wa:hover { background: #179447; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-sm, .btn--sm { --btn-h: 36px; padding: 0 14px; font-size: 13px; border-radius: var(--r-xs); }
.btn-lg, .btn--lg { --btn-h: 52px; padding: 0 26px; font-size: 15px; border-radius: var(--r); }
.btn-block, .btn--block { width: 100%; }
.btn--pill { border-radius: var(--r-pill); }

.icon-btn {
    width: 40px; height: 40px; border-radius: var(--r-pill);
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--ink); position: relative; flex-shrink: 0;
    transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.icon-btn:hover { background: var(--bg-2); }
.icon-btn--line { border: 1px solid var(--line-2); background: var(--surface); }
.icon-btn--line:hover { border-color: var(--ink); background: var(--surface); }
.icon-btn--sm { width: 34px; height: 34px; font-size: 13px; }
.icon-btn i { font-size: 17px; }
.icon-btn--sm i { font-size: 13px; }
.icon-btn:disabled { opacity: .35; pointer-events: none; }

.count-badge, .hdr-badge, .app-tab-badge, .badge-count {
    position: absolute; top: 2px; right: 0;
    min-width: 17px; height: 17px; padding: 0 4px;
    border-radius: var(--r-pill);
    background: var(--accent); color: #fff;
    font-size: 10px; font-weight: 700; line-height: 17px; text-align: center;
    font-variant-numeric: tabular-nums;
    box-shadow: 0 0 0 2px var(--surface);
    display: flex; align-items: center; justify-content: center;
}

/* ── Chips / Pills / Tags ──────────────────────────────────────────── */
.chip {
    display: inline-flex; align-items: center; gap: 6px;
    height: 34px; padding: 0 14px;
    border-radius: var(--r-pill);
    background: var(--surface); border: 1px solid var(--line-2);
    font-size: 13px; font-weight: 500; color: var(--ink-2);
    white-space: nowrap; transition: all var(--t-fast);
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.is-active, .chip[aria-pressed=true] { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip-row { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; }
.tag {
    display: inline-flex; align-items: center; gap: 5px;
    height: 22px; padding: 0 8px; border-radius: 6px;
    font-size: 11px; font-weight: 600; letter-spacing: .01em; white-space: nowrap;
    background: var(--bg-2); color: var(--ink-2);
}
.tag--accent { background: var(--accent); color: #fff; }
.tag--soft-accent { background: var(--accent-soft); color: var(--accent-hover); }
.tag--success { background: var(--success-soft); color: var(--success); }
.tag--danger { background: var(--danger-soft); color: var(--danger); }
.tag--warning { background: var(--warning-soft); color: var(--warning); }
.tag--ink { background: var(--ink); color: #fff; }
.tag--mono { font-family: var(--font-mono); font-weight: 500; letter-spacing: .04em; text-transform: uppercase; font-size: 10.5px; }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 6px; font-size: 11px; font-weight: 600; }

/* ── Forms ─────────────────────────────────────────────────────────── */
.form-group, .field { display: block; margin-bottom: 14px; }
.form-label, .field__label {
    display: block; margin-bottom: 6px;
    font-size: 12.5px; font-weight: 600; color: var(--ink-2);
}
.field__label .req, .form-label .req { color: var(--accent); }
.form-control, .form-select, .input, .select, .textarea {
    width: 100%; height: 46px; padding: 0 14px;
    background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-sm);
    font-size: 15px; color: var(--ink);
    transition: border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
    -webkit-appearance: none; appearance: none;
}
textarea.form-control, .textarea { height: auto; min-height: 110px; padding: 12px 14px; resize: vertical; line-height: 1.5; }
.form-select, .select {
    padding-right: 38px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23121314' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 14px center;
}
.form-control::placeholder, .input::placeholder, .textarea::placeholder { color: var(--subtle); }
.form-control:hover, .form-select:hover, .input:hover, .select:hover { border-color: var(--subtle); }
.form-control:focus, .form-select:focus, .input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(18,19,20,.08); }
.input-group { position: relative; }
.input-group > i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--subtle); font-size: 14px; pointer-events: none; }
.input-group > .input, .input-group > .form-control { padding-left: 40px; }
.check { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-2); cursor: pointer; user-select: none; }
.check input { width: 18px; height: 18px; accent-color: var(--ink); cursor: pointer; flex-shrink: 0; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ── Cards & surfaces ──────────────────────────────────────────────── */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.card--pad { padding: 20px; }
@media (min-width: 900px) { .card--pad { padding: 28px; } }
.divider { height: 1px; background: var(--line); border: 0; }
.notice { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: var(--r-sm); font-size: 13.5px; line-height: 1.45; }
.notice i { margin-top: 2px; }
.notice--success { background: var(--success-soft); color: var(--success); }
.notice--danger  { background: var(--danger-soft); color: var(--danger); }
.notice--warning { background: var(--warning-soft); color: var(--warning); }
.notice--info    { background: var(--bg-2); color: var(--ink-2); }
.empty-state { text-align: center; padding: 56px 20px; }
.empty-state__icon { width: 72px; height: 72px; border-radius: 50%; background: var(--bg-2); color: var(--ink-3); display: grid; place-items: center; font-size: 26px; margin: 0 auto 18px; }
.empty-state h3 { font-size: 20px; margin-bottom: 6px; }
.empty-state p { color: var(--muted); max-width: 380px; margin: 0 auto 20px; font-size: 14px; }

/* Breadcrumbs */
.crumbs { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.crumbs::-webkit-scrollbar { display: none; }
.crumbs a:hover { color: var(--ink); }
.crumbs .sep { color: var(--line-2); }
.crumbs .curr { color: var(--ink); font-weight: 500; overflow: hidden; text-overflow: ellipsis; }

/* ── Rails (horizontal scrollers) ──────────────────────────────────── */
.rail {
    display: grid; grid-auto-flow: column;
    grid-auto-columns: var(--rail-col, 46%);
    gap: var(--rail-gap, 12px);
    overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scroll-padding-left: var(--gutter);
    margin: 0 calc(var(--gutter) * -1); padding: 2px var(--gutter) 6px;
}
.rail > * { scroll-snap-align: start; min-width: 0; }
@media (min-width: 600px)  { .rail { --rail-col: 31%; } }
@media (min-width: 900px)  { .rail { --rail-col: calc((100% - 3 * var(--rail-gap, 16px)) / 4); --rail-gap: 16px; margin: 0; padding: 2px 0 6px; scroll-padding-left: 0; } }
@media (min-width: 1200px) { .rail { --rail-col: calc((100% - 4 * var(--rail-gap, 16px)) / 5); } }

/* ── Product card ──────────────────────────────────────────────────── */
.pcard { position: relative; display: flex; flex-direction: column; min-width: 0; background: var(--surface); border-radius: var(--r); border: 1px solid var(--line); overflow: hidden; transition: border-color var(--t), box-shadow var(--t); }
.pcard:hover { border-color: var(--line-2); box-shadow: var(--sh-2); }
.pcard__media { position: relative; aspect-ratio: 1 / 1; background: var(--tile); overflow: hidden; }
.pcard__media > a { position: absolute; inset: 0; display: block; }
.pcard__img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; transition: transform .6s var(--ease-out); }
.pcard:hover .pcard__img { transform: scale(1.04); }
.pcard__badges { position: absolute; top: 8px; left: 8px; display: flex; flex-direction: column; gap: 4px; z-index: 2; pointer-events: none; }
.pcard__wish {
    position: absolute; top: 8px; right: 8px; z-index: 2;
    width: 32px; height: 32px; border-radius: 50%;
    background: rgba(255,255,255,.92); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
    display: grid; place-items: center; color: var(--ink);
    box-shadow: var(--sh-1); transition: transform var(--t-fast), color var(--t-fast);
}
.pcard__wish i { font-size: 13px; }
.pcard__wish:hover { transform: scale(1.08); }
.pcard__wish.active { color: var(--danger); }
.pcard__body { display: flex; flex-direction: column; flex: 1; padding: 10px 12px 12px; gap: 4px; }
.pcard__meta { font-family: var(--font-mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcard__title { font-family: var(--font-ui); font-size: 13.5px; font-weight: 500; line-height: 1.35; color: var(--ink); letter-spacing: -.005em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; font-stretch: 100%; }
.pcard__title a:hover { color: var(--accent); }
.pcard__rating { display: flex; align-items: center; gap: 4px; font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.pcard__rating i { color: var(--star); font-size: 10px; }
.pcard__rating b { color: var(--ink); font-weight: 600; }
.pcard__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 6px; }
.pcard__prices { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
.pcard__price { font-size: 16px; font-weight: 650; font-variant-numeric: tabular-nums; letter-spacing: -.015em; color: var(--ink); }
.pcard__mrp { font-size: 11.5px; color: var(--subtle); text-decoration: line-through; font-variant-numeric: tabular-nums; }
.pcard__add {
    width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0;
    background: var(--ink); color: #fff;
    display: grid; place-items: center; font-size: 14px;
    transition: background var(--t-fast), transform var(--t-fast);
}
.pcard__add:hover { background: var(--accent); }
.pcard__add:active { transform: scale(.92); }
.pcard__add:disabled { background: var(--bg-2); color: var(--subtle); cursor: not-allowed; }
.pcard__add .lbl { display: none; }
.pcard--soldout .pcard__img { opacity: .55; filter: grayscale(.6); }
.pcard__soldout { font-size: 11px; font-weight: 600; color: var(--muted); padding: 6px 0; }
@media (min-width: 900px) {
    .pcard__body { padding: 12px 14px 14px; gap: 5px; }
    .pcard__title { font-size: 14px; }
    .pcard__price { font-size: 17px; }
    .pcard__add { width: auto; padding: 0 12px; gap: 6px; height: 36px; display: inline-flex; align-items: center; font-size: 13px; font-weight: 600; }
    .pcard__add .lbl { display: inline; }
    .pcard__wish { opacity: 0; transform: translateY(-4px); transition: opacity var(--t-fast), transform var(--t-fast), color var(--t-fast); }
    .pcard:hover .pcard__wish, .pcard__wish.active, .pcard__wish:focus-visible { opacity: 1; transform: none; }
}

.pgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 600px)  { .pgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; } }
@media (min-width: 1024px) { .pgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1280px) { .pgrid--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

/* ── Header ────────────────────────────────────────────────────────── */
.site-main-navbar-fixed {
    position: fixed; top: 0; left: 0; right: 0; z-index: 900;
    background: var(--surface);
    transition: box-shadow var(--t), transform var(--t);
}
.site-main-navbar-fixed.is-scrolled { box-shadow: 0 1px 0 var(--line), 0 8px 24px -16px rgba(18,19,20,.25); }
.site-navbar-spacer { display: block; width: 100%; height: 112px; }

/* Announcement */
.ann-bar { background: var(--ink); color: #EDEBE6; height: 34px; overflow: hidden; position: relative; transition: height var(--t), opacity var(--t); }
.ann-viewport { max-width: var(--container); margin: 0 auto; height: 100%; overflow: hidden; position: relative; padding: 0 44px; }
.ann-track { display: flex; height: 100%; transition: transform .6s var(--ease-out); }
.ann-item { flex: 0 0 100%; min-width: 0; max-width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 12px; font-weight: 500; letter-spacing: .01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ann-item i { color: var(--accent); font-size: 11px; }
.ann-item span { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
@media (max-width: 599px) { .ann-viewport { padding: 0 12px; } .ann-nav { display: none; } }
.ann-nav { position: absolute; top: 0; bottom: 0; width: 34px; display: grid; place-items: center; color: #8E9096; font-size: 10px; z-index: 2; }
.ann-nav:hover { color: #fff; }
.ann-nav--prev { left: 4px; } .ann-nav--next { right: 4px; }

/* Desktop bar */
.hdr { display: none; }
.hdr__main { display: flex; align-items: center; gap: 28px; height: 72px; }
.hdr__logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.hdr__logo img { height: 38px; width: auto; max-width: 140px; object-fit: contain; border-radius: 8px; }
.brand-word { font-family: var(--font-display); font-weight: 800; font-stretch: 118%; font-size: 19px; letter-spacing: -.02em; line-height: 1; text-transform: uppercase; color: var(--ink); white-space: nowrap; }
.brand-word span { color: var(--accent); }
.brand-sub { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-top: 4px; white-space: nowrap; }
.brand-mark { width: 38px; height: 38px; border-radius: 10px; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: 17px; flex-shrink: 0; }

.hdr-search-wrap { position: relative; flex: 1; max-width: 640px; }
.hdr-search-form {
    display: flex; align-items: center; height: 46px;
    background: var(--bg); border: 1px solid transparent; border-radius: var(--r-sm);
    padding: 0 6px 0 16px; transition: background var(--t-fast), border-color var(--t-fast), box-shadow var(--t-fast);
}
.hdr-search-form:hover { border-color: var(--line-2); }
.hdr-search-form:focus-within { background: var(--surface); border-color: var(--ink); box-shadow: 0 0 0 3px rgba(18,19,20,.06); }
.hdr-search-icon { color: var(--muted); font-size: 14px; margin-right: 10px; flex-shrink: 0; }
.hdr-search-input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; font-size: 14.5px; color: var(--ink); }
.hdr-search-input::placeholder { color: var(--subtle); }
.hdr-search-kbd { font-family: var(--font-mono); font-size: 11px; color: var(--muted); border: 1px solid var(--line-2); border-radius: 6px; padding: 2px 7px; background: var(--surface); margin-right: 6px; }
.hdr-search-btn { height: 34px; padding: 0 14px; border-radius: 8px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; }
.hdr-search-btn:hover { background: #000; }

.hdr__actions { display: flex; align-items: center; gap: 4px; margin-left: auto; flex-shrink: 0; }
.hdr-deliver { display: flex; align-items: center; gap: 10px; padding: 6px 12px 6px 8px; border-radius: var(--r-sm); transition: background var(--t-fast); max-width: 190px; }
.hdr-deliver:hover { background: var(--bg); }
.hdr-deliver__pin { width: 32px; height: 32px; border-radius: 50%; background: var(--bg); display: grid; place-items: center; color: var(--ink); font-size: 13px; flex-shrink: 0; }
.hdr-deliver:hover .hdr-deliver__pin { background: var(--surface); }
.hdr-deliver__label { font-size: 11px; color: var(--muted); line-height: 1.1; }
.hdr-deliver__city { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.3; }
.hdr-sep { width: 1px; height: 28px; background: var(--line); margin: 0 8px; }
.hdr-icon-btn { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 12px; border-radius: var(--r-sm); font-size: 13.5px; font-weight: 500; color: var(--ink); transition: background var(--t-fast); position: relative; }
.hdr-icon-btn:hover { background: var(--bg); }
.hdr-icon-wrap { position: relative; display: inline-flex; font-size: 18px; }
.hdr-icon-wrap img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }
.hdr-icon-wrap .hdr-badge { top: -6px; right: -9px; }
.hdr-cart-btn { background: var(--ink); color: #fff; padding: 0 16px 0 14px; margin-left: 6px; gap: 12px; }
.hdr-cart-btn:hover { background: #000; }
.hdr-cart-btn .hdr-badge { box-shadow: 0 0 0 2px var(--ink); }

/* Account dropdown */
.hdr-acct-wrap { position: relative; }
.hdr-acct-menu {
    position: absolute; top: calc(100% + 8px); right: 0; min-width: 240px;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
    box-shadow: var(--sh-3); padding: 6px; z-index: 1000;
    opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity var(--t-fast), transform var(--t-fast), visibility var(--t-fast);
}
.hdr-acct-menu::before { content: ''; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.hdr-acct-wrap:hover .hdr-acct-menu, .hdr-acct-wrap:focus-within .hdr-acct-menu { opacity: 1; visibility: visible; transform: none; }
.hdr-acct-hdr { padding: 10px 12px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.hdr-acct-hdr .nm { font-weight: 600; font-size: 14px; }
.hdr-acct-hdr .em { font-size: 12px; color: var(--muted); }
.hdr-acct-menu a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 8px; font-size: 13.5px; color: var(--ink-2); }
.hdr-acct-menu a i { width: 16px; text-align: center; color: var(--muted); font-size: 13px; }
.hdr-acct-menu a:hover { background: var(--bg); color: var(--ink); }
.hdr-acct-menu a.is-danger, .hdr-acct-menu a.is-danger i { color: var(--danger); }
.hdr-acct-divider { border: 0; border-top: 1px solid var(--line); margin: 6px 0; }

/* Secondary nav */
.hdr__nav { border-top: 1px solid var(--line); }
.hdr__nav-inner { display: flex; align-items: center; gap: 4px; height: 46px; }
.hdr-nav-link { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px; border-radius: 8px; font-size: 13.5px; font-weight: 500; color: var(--ink-3); position: relative; transition: color var(--t-fast), background var(--t-fast); white-space: nowrap; }
.hdr-nav-link:hover { color: var(--ink); background: var(--bg); }
.hdr-nav-link.is-active { color: var(--ink); font-weight: 600; }
.hdr-nav-link.is-active::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: -6px; height: 2px; background: var(--accent); border-radius: 2px; }
.hdr-nav-help { margin-left: auto; display: flex; align-items: center; gap: 16px; font-size: 12.5px; color: var(--muted); }
.hdr-nav-help a { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); font-weight: 500; }
.hdr-nav-help a:hover { color: var(--accent); }
.hdr-nav-help .dot { width: 6px; height: 6px; border-radius: 50%; background: #1FAF55; box-shadow: 0 0 0 3px rgba(31,175,85,.18); }

/* Categories mega */
.hdr-cat-wrap { position: relative; margin-right: 8px; }
.hdr-cat-btn { display: inline-flex; align-items: center; gap: 10px; height: 34px; padding: 0 14px 0 12px; border-radius: 8px; background: var(--bg); font-size: 13.5px; font-weight: 600; color: var(--ink); }
.hdr-cat-btn:hover, .hdr-cat-wrap:hover .hdr-cat-btn { background: var(--ink); color: #fff; }
.hdr-cat-btn .cat-chev { font-size: 10px; transition: transform var(--t-fast); }
.hdr-cat-wrap:hover .cat-chev { transform: rotate(180deg); }
.hdr-cat-menu-grid {
    position: absolute; top: calc(100% + 6px); left: 0; width: min(880px, 92vw);
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
    box-shadow: var(--sh-3); padding: 20px; z-index: 1000;
    opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity var(--t-fast), transform var(--t-fast), visibility var(--t-fast);
}
.hdr-cat-menu-grid::before { content: ''; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.hdr-cat-wrap:hover .hdr-cat-menu-grid, .hdr-cat-wrap:focus-within .hdr-cat-menu-grid { opacity: 1; visibility: visible; transform: none; }
.cat-grid-title { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.cat-grid-items { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.cat-grid-card { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: var(--r-sm); transition: background var(--t-fast); }
.cat-grid-card:hover { background: var(--bg); }
.cat-grid-img-wrap { width: 48px; height: 48px; border-radius: 10px; background: var(--tile); overflow: hidden; flex-shrink: 0; }
.cat-grid-img-wrap img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }
.cat-grid-name { font-size: 13px; font-weight: 500; line-height: 1.3; }
.cat-grid-footer { display: flex; justify-content: flex-end; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }

/* Search dropdown */
.hdr-search-dropdown {
    position: absolute; top: calc(100% + 8px); left: 0; right: 0;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
    box-shadow: var(--sh-3); z-index: 1001; max-height: min(480px, 70vh); overflow-y: auto;
    display: none; padding: 6px;
}
.hdr-search-dropdown.is-open { display: block; animation: popIn .18s var(--ease-out); }
@keyframes popIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.sd-item { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 10px; }
.sd-item:hover, .sd-item.is-sel { background: var(--bg); }
.sd-thumb { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; background: var(--tile); flex-shrink: 0; }
.sd-info { flex: 1; min-width: 0; }
.sd-cat { font-family: var(--font-mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.sd-name { font-size: 13.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sd-stock { font-size: 11px; }
.sd-price-col { text-align: right; flex-shrink: 0; }
.sd-price { font-weight: 650; font-size: 14px; font-variant-numeric: tabular-nums; }
.sd-mrp { font-size: 11px; color: var(--subtle); text-decoration: line-through; }
.sd-disc { font-size: 10.5px; color: var(--success); font-weight: 600; }
.sd-footer { padding: 8px; border-top: 1px solid var(--line); margin-top: 4px; text-align: center; }
.sd-view-all { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink); }
.sd-view-all:hover { color: var(--accent); }
.sd-trending { padding: 10px 8px 12px; }
.sd-trending-title { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.sd-trending-title i { display: none; }
.sd-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.sd-pill { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: var(--r-pill); border: 1px solid var(--line-2); font-size: 13px; color: var(--ink-2); }
.sd-pill:hover { border-color: var(--ink); color: var(--ink); }

/* Mobile header */
.mob-header { display: flex; align-items: center; gap: 4px; height: 56px; padding: 0 8px 0 4px; }
.mob-logo-link { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; padding-left: 2px; }
.mob-logo-img { height: 30px; width: auto; max-width: 110px; object-fit: contain; border-radius: 6px; }
.mob-logo-link .brand-word { font-size: 16px; overflow: hidden; text-overflow: ellipsis; }
.mob-logo-link .brand-mark { width: 30px; height: 30px; font-size: 14px; border-radius: 8px; }
.mob-right { display: flex; align-items: center; gap: 0; }
.mob-avatar-photo { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.mob-search-row { padding: 0 var(--gutter) 10px; max-height: 64px; transition: max-height var(--t), padding var(--t), opacity var(--t); }
.mob-search-row .hdr-search-form { height: 44px; background: var(--bg); }
.mob-search-row .hdr-search-btn { display: none; }

@media (min-width: 1024px) {
    .hdr { display: block; }
    .mob-header, .mob-search-row { display: none !important; }
}
@media (max-width: 1023.98px) {
    .site-main-navbar-fixed.is-scrolled .ann-bar { height: 0; opacity: 0; }
    .site-main-navbar-fixed.is-scrolled .mob-search-row:not(.search-active) { max-height: 0; padding-bottom: 0; opacity: 0; overflow: hidden; pointer-events: none; }
    .mob-search-row .hdr-search-dropdown { position: fixed; top: auto; left: var(--gutter); right: var(--gutter); margin-top: 8px; max-height: 62vh; }
}

/* ── Mobile drawer ─────────────────────────────────────────────────── */
.mob-overlay, .sheet-overlay {
    position: fixed; inset: 0; background: rgba(18,19,20,.45);
    backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px);
    z-index: 1100; opacity: 0; visibility: hidden; transition: opacity var(--t), visibility var(--t);
}
.mob-overlay.is-on, .sheet-overlay.is-open { opacity: 1; visibility: visible; }
.mob-drawer {
    position: fixed; top: 0; bottom: 0; left: 0; width: min(88vw, 360px);
    background: var(--surface); z-index: 1101; display: flex; flex-direction: column;
    transform: translateX(-102%); transition: transform .38s var(--ease-out);
    overflow-y: auto; overscroll-behavior: contain;
}
.mob-drawer.is-on { transform: none; box-shadow: var(--sh-3); }
.mob-drawer-head { padding: 16px 16px 18px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--surface); z-index: 2; }
.mob-drawer-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.mob-user-row { display: flex; align-items: center; gap: 12px; }
.mob-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--bg-2); display: grid; place-items: center; font-size: 17px; color: var(--ink-3); overflow: hidden; flex-shrink: 0; font-weight: 600; font-family: var(--font-display); }
.mob-avatar img { width: 100%; height: 100%; object-fit: cover; }
.mob-user-sub { font-size: 12px; color: var(--muted); }
.mob-user-name { font-size: 16px; font-weight: 600; }
.mob-drawer-body { padding: 8px 16px 32px; }
.mob-quick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0 8px; }
.mob-quick-btn { display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 14px; border-radius: var(--r-sm); background: var(--bg); font-size: 13.5px; font-weight: 500; }
.mob-quick-btn i { font-size: 15px; }
.mob-quick-btn--wa i { color: #1FAF55; }
.mob-sec-title { display: flex; justify-content: space-between; align-items: center; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 22px 0 8px; }
.mob-sec-title a { font-family: var(--font-ui); letter-spacing: 0; text-transform: none; font-size: 12.5px; color: var(--ink); font-weight: 600; }
.mob-link { display: flex; align-items: center; gap: 14px; height: 48px; padding: 0 4px; font-size: 15px; font-weight: 500; color: var(--ink); border-bottom: 1px solid var(--line); }
.mob-link i { width: 18px; text-align: center; color: var(--muted); font-size: 15px; }
.mob-link .chev { margin-left: auto; font-size: 11px; width: auto; color: var(--subtle); }
.mob-link.is-active { color: var(--accent); }
.mob-link.is-active i { color: var(--accent); }
.mob-link.is-danger, .mob-link.is-danger i { color: var(--danger); }
.mob-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mob-grid-card { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 10px 4px; border-radius: var(--r-sm); background: var(--bg); }
.mob-grid-img-wrap { width: 52px; height: 44px; display: grid; place-items: center; }
.mob-grid-img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.mob-grid-label { font-size: 11.5px; font-weight: 500; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mob-acc-btn, .mob-acc-content { display: contents; }
.mob-divider { border: 0; border-top: 1px solid var(--line); margin: 16px 0; }

/* ── Bottom tab bar (app nav) ──────────────────────────────────────── */
.app-nav-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 950;
    height: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: rgba(255,255,255,.94); backdrop-filter: saturate(1.6) blur(18px); -webkit-backdrop-filter: saturate(1.6) blur(18px);
    border-top: 1px solid var(--line);
    display: flex; align-items: stretch; justify-content: space-around;
}
.app-tab { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 10.5px; font-weight: 500; color: var(--muted); position: relative; letter-spacing: .01em; }
.app-tab i { font-size: 19px; height: 22px; display: grid; place-items: center; transition: transform var(--t-fast); }
.app-tab .ico { position: relative; }
.app-tab .app-tab-badge { top: -5px; right: -10px; }
.app-tab.is-active { color: var(--ink); font-weight: 600; }
.app-tab.is-active::before { content: ''; position: absolute; top: 0; width: 24px; height: 2px; border-radius: 0 0 2px 2px; background: var(--accent); }
.app-tab:active i { transform: scale(.9); }
@media (min-width: 1024px) { .app-nav-bar { display: none; } }
@media (max-width: 1023.98px) {
    body { padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px)); }
}

/* WhatsApp float */
.whatsapp-float {
    position: fixed; right: 16px; bottom: calc(var(--tabbar-h) + 16px + env(safe-area-inset-bottom, 0px)); z-index: 940;
    width: 48px; height: 48px; border-radius: 50%; background: #1FAF55; color: #fff;
    display: grid; place-items: center; font-size: 24px; box-shadow: 0 8px 24px -6px rgba(31,175,85,.55);
    transition: transform var(--t-fast);
}
.whatsapp-float:hover { transform: scale(1.06); color: #fff; }
.whatsapp-tooltip { position: absolute; right: 60px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 500; padding: 7px 10px; border-radius: 8px; white-space: nowrap; opacity: 0; visibility: hidden; transform: translateX(6px); transition: all var(--t-fast); pointer-events: none; }
.whatsapp-float:hover .whatsapp-tooltip { opacity: 1; visibility: visible; transform: none; }
@media (min-width: 1024px) { .whatsapp-float { bottom: 24px; right: 24px; width: 54px; height: 54px; } }

/* ── Footer ────────────────────────────────────────────────────────── */
.ftr { background: var(--ink); color: #B9BBC0; margin-top: 24px; position: relative; overflow: hidden; }
.ftr a { color: #B9BBC0; transition: color var(--t-fast); }
.ftr a:hover { color: #fff; }
.ftr__trust { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: #26282B; border-bottom: 1px solid #26282B; }
.ftr__trust-item { background: var(--ink); display: flex; align-items: center; gap: 12px; padding: 18px var(--gutter); }
.ftr__trust-item i { font-size: 18px; color: var(--accent); width: 22px; text-align: center; }
.ftr__trust-item b { display: block; color: #fff; font-size: 13.5px; font-weight: 600; }
.ftr__trust-item span { font-size: 12px; color: #8E9096; }
@media (min-width: 900px) { .ftr__trust { grid-template-columns: repeat(4, 1fr); } .ftr__trust-item { padding: 24px 28px; justify-content: center; } }
.ftr__top { display: grid; gap: 28px; padding: 36px 0 28px; }
@media (min-width: 900px) { .ftr__top { grid-template-columns: 1.1fr 1fr; gap: 80px; padding: 64px 0 48px; align-items: end; } }
.ftr__brand .brand-word { color: #fff; font-size: 22px; }
.ftr__mission { margin-top: 14px; font-size: 14px; line-height: 1.6; color: #8E9096; max-width: 440px; }
.ftr__news h3 { font-family: var(--font-display); color: #fff; font-size: 20px; font-weight: 750; font-stretch: 110%; margin-bottom: 6px; }
.ftr__news p { font-size: 13.5px; color: #8E9096; margin-bottom: 14px; }
.ftr__form { display: flex; gap: 8px; }
.ftr__form input { flex: 1; min-width: 0; height: 48px; padding: 0 16px; border-radius: var(--r-sm); background: #1D1F21; border: 1px solid #2E3033; color: #fff; font-size: 14.5px; outline: 0; transition: border-color var(--t-fast); }
.ftr__form input::placeholder { color: #6F737A; }
.ftr__form input:focus { border-color: #6F737A; }
.ftr__form button { height: 48px; padding: 0 20px; border-radius: var(--r-sm); background: var(--accent); color: #fff; font-size: 14px; font-weight: 600; flex-shrink: 0; }
.ftr__form button:hover { background: var(--accent-hover); }
.ftr__cols { display: grid; border-top: 1px solid #26282B; }
.ftr__col { border-bottom: 1px solid #26282B; }
.ftr__col summary { list-style: none; display: flex; align-items: center; justify-content: space-between; padding: 16px 0; cursor: pointer; font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #fff; }
.ftr__col summary::-webkit-details-marker { display: none; }
.ftr__col summary i { font-size: 10px; color: #6F737A; transition: transform var(--t-fast); }
.ftr__col[open] summary i { transform: rotate(45deg); }
.ftr__col ul { padding: 0 0 16px; display: grid; gap: 12px; font-size: 14px; }
.ftr__contact { display: grid; gap: 10px; font-size: 13.5px; }
.ftr__contact a, .ftr__contact div { display: flex; align-items: flex-start; gap: 10px; }
.ftr__contact i { color: #6F737A; width: 14px; margin-top: 3px; }
.ftr__social { display: flex; gap: 8px; margin-bottom: 16px; }
.ftr__social a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid #2E3033; display: grid; place-items: center; font-size: 14px; }
.ftr__social a:hover { border-color: #fff; }
@media (min-width: 900px) {
    .ftr__cols { grid-template-columns: repeat(5, 1fr); gap: 32px; border-top: 1px solid #26282B; padding-top: 40px; }
    .ftr__col { border: 0; }
    .ftr__col summary { pointer-events: none; padding: 0 0 18px; }
    .ftr__col summary i { display: none; }
    .ftr__col ul { padding: 0; }
}
.ftr__wordmark { display: block; width: 100%; height: auto; margin: 32px 0 8px; user-select: none; }
.ftr__wordmark text { font-family: var(--font-display); font-weight: 900; font-stretch: 125%; font-size: 120px; fill: #1C1E20; letter-spacing: -.02em; }
.ftr__bottom { display: flex; flex-direction: column; gap: 6px; padding: 18px 0 24px; border-top: 1px solid #26282B; font-size: 12px; color: #6F737A; }
.ftr__bottom strong { color: #B9BBC0; font-weight: 500; }
@media (min-width: 900px) { .ftr__bottom { flex-direction: row; justify-content: space-between; } }

/* ── Cart drawer (sheet) ───────────────────────────────────────────── */
.cart-drawer-overlay { position: fixed; inset: 0; z-index: 1200; background: rgba(18,19,20,.45); opacity: 0; visibility: hidden; transition: opacity var(--t), visibility var(--t); }
.cart-drawer-overlay.is-open { opacity: 1; visibility: visible; }
.cart-drawer {
    position: absolute; right: 0; bottom: 0; left: 0; height: 92vh; height: 92dvh;
    background: var(--surface); border-radius: var(--r-lg) var(--r-lg) 0 0;
    display: flex; flex-direction: column; overflow: hidden;
    transform: translateY(100%); transition: transform .42s var(--ease-out);
}
.cart-drawer::before { content: ''; position: absolute; top: 8px; left: 50%; width: 36px; height: 4px; margin-left: -18px; border-radius: 4px; background: var(--line-2); z-index: 3; }
.cart-drawer-overlay.is-open .cart-drawer { transform: none; }
@media (min-width: 768px) {
    .cart-drawer { left: auto; top: 0; height: 100%; width: 440px; border-radius: 0; transform: translateX(100%); }
    .cart-drawer::before { display: none; }
}
html.cart-drawer-open, html.cart-drawer-open body { overflow: hidden; }
.drawer-step-view { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.cart-drawer-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 16px 14px; border-bottom: 1px solid var(--line); flex-shrink: 0; }
@media (min-width: 768px) { .cart-drawer-header { padding: 18px 20px; } }
.cart-drawer-title { display: flex; align-items: center; gap: 10px; }
.cart-drawer-title i { display: none; }
.cart-drawer-title h3, .drawer-checkout-heading h3 { font-size: 18px; font-weight: 750; font-stretch: 110%; }
.cart-drawer-count { min-width: 24px; height: 22px; padding: 0 7px; border-radius: var(--r-pill); background: var(--bg-2); font-size: 12px; font-weight: 600; display: grid; place-items: center; font-variant-numeric: tabular-nums; }
.cart-drawer-close { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); font-size: 15px; }
.cart-drawer-close:hover { background: var(--bg-2); }
.drawer-back-btn { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px 0 10px; border-radius: var(--r-pill); background: var(--bg); font-size: 13px; font-weight: 500; }
.drawer-checkout-heading { display: flex; align-items: center; gap: 8px; flex: 1; justify-content: center; }
.drawer-checkout-badge { display: none; }

.cart-drawer-promo { padding: 12px 16px 14px; background: var(--surface-2); border-bottom: 1px solid var(--line); flex-shrink: 0; }
@media (min-width: 768px) { .cart-drawer-promo { padding: 14px 20px; } }
.drawer-promo-text { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 500; color: var(--ink-2); margin-bottom: 8px; }
.drawer-promo-text i { color: var(--accent); }
.drawer-promo-bar, .promo-progress-track { height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.drawer-promo-fill, .promo-progress-fill { height: 100%; border-radius: 4px; background: var(--accent); transition: width .6s var(--ease-out); }
.drawer-promo-milestones, .promo-milestones { display: flex; gap: 6px; margin-top: 10px; overflow-x: auto; scrollbar-width: none; }
.drawer-promo-milestones::-webkit-scrollbar, .promo-milestones::-webkit-scrollbar { display: none; }
.drawer-promo-milestones span, .promo-milestone { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--line); font-size: 11px; font-weight: 500; color: var(--muted); white-space: nowrap; flex-shrink: 0; }
.drawer-promo-milestones span.active, .promo-milestone.active { background: var(--success-soft); border-color: transparent; color: var(--success); }

.cart-drawer-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 8px 16px 16px; }
@media (min-width: 768px) { .cart-drawer-body { padding: 8px 20px 20px; } }
.cart-drawer-items { display: flex; flex-direction: column; }
.drawer-item { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.drawer-item-img { width: 76px; height: 76px; border-radius: var(--r-sm); object-fit: cover; background: var(--tile); flex-shrink: 0; }
.drawer-item-details { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.drawer-item-name { font-size: 13.5px; font-weight: 500; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.drawer-item-variant, .drawer-item-meta { font-size: 11.5px; color: var(--muted); }
.drawer-item-price { font-size: 14.5px; font-weight: 650; font-variant-numeric: tabular-nums; }
.drawer-item-actions { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.drawer-qty-stepper { display: inline-flex; align-items: center; height: 32px; border: 1px solid var(--line-2); border-radius: var(--r-pill); overflow: hidden; }
.drawer-qty-btn { width: 32px; height: 100%; display: grid; place-items: center; font-size: 15px; color: var(--ink); }
.drawer-qty-btn:hover { background: var(--bg); }
.drawer-qty-btn:disabled { color: var(--subtle); }
.drawer-qty-val { min-width: 24px; text-align: center; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.drawer-item-remove { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: var(--subtle); font-size: 13px; }
.drawer-item-remove:hover { color: var(--danger); background: var(--danger-soft); }
.cart-drawer-empty { text-align: center; padding: 48px 12px; }
.empty-icon-wrap { width: 72px; height: 72px; border-radius: 50%; background: var(--bg); display: grid; place-items: center; margin: 0 auto 16px; font-size: 24px; color: var(--ink-3); }
.cart-drawer-empty h4 { font-family: var(--font-display); font-size: 18px; font-weight: 750; margin-bottom: 6px; }
.cart-drawer-empty p { font-size: 13.5px; color: var(--muted); margin-bottom: 20px; }
.btn-drawer-shop { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 20px; border-radius: var(--r-sm); background: var(--ink); color: #fff; font-size: 14px; font-weight: 600; }
.cart-drawer-addons-wrap { margin-top: 20px; }
.drawer-addons-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.drawer-addons-head .title-left { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.drawer-addons-head .title-left i { display: none; }
.badge-optional { font-family: var(--font-mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.drawer-addons-track { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.drawer-addons-track::-webkit-scrollbar { display: none; }
.drawer-addon-card { flex: 0 0 128px; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 8px; display: flex; flex-direction: column; gap: 4px; }
.drawer-addon-card img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; background: var(--tile); }
.drawer-addon-name { font-size: 12px; font-weight: 500; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.drawer-addon-price { font-size: 13px; font-weight: 650; font-variant-numeric: tabular-nums; }
.btn-drawer-addon-add { height: 30px; border-radius: 8px; border: 1px solid var(--line-2); font-size: 12px; font-weight: 600; }
.btn-drawer-addon-add:hover { background: var(--ink); border-color: var(--ink); color: #fff; }

.cart-drawer-footer { flex-shrink: 0; padding: 14px 16px calc(14px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); background: var(--surface); }
@media (min-width: 768px) { .cart-drawer-footer { padding: 16px 20px 20px; } }
.drawer-summary-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 13.5px; color: var(--ink-3); padding: 3px 0; }
.drawer-summary-row strong { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.drawer-summary-row.discount strong { color: var(--success) !important; }
.drawer-summary-row.total { margin-top: 8px; padding-top: 10px; border-top: 1px dashed var(--line-2); font-size: 15px; color: var(--ink); font-weight: 600; }
.drawer-summary-row.total strong { font-size: 19px; color: var(--ink) !important; font-weight: 700; letter-spacing: -.01em; }
.drawer-summary-row.bulky { color: var(--warning) !important; background: var(--warning-soft) !important; border: 0 !important; border-radius: 8px !important; padding: 7px 10px !important; }
.drawer-checkout-box { margin-top: 12px; }
.btn-drawer-checkout { width: 100%; height: 52px; border-radius: var(--r); background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: space-between; padding: 0 20px; font-size: 15px; font-weight: 600; transition: background var(--t-fast); }
.btn-drawer-checkout:hover { background: var(--accent); }
.btn-drawer-checkout:disabled { opacity: .6; }
.drawer-trust-icons { display: flex; justify-content: center; gap: 14px; margin-top: 10px; font-size: 11px; color: var(--muted); flex-wrap: wrap; }
.drawer-trust-icons i { margin-right: 4px; color: var(--ink-3); }

.drawer-section-sublabel { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 10.5px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 6px 0 10px; }
.drawer-section-sublabel i { display: none; }
.drawer-saved-addr-wrap { margin-bottom: 16px; }
.drawer-addr-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.drawer-addr-chips::-webkit-scrollbar { display: none; }
.drawer-addr-chip { flex-shrink: 0; display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; border-radius: var(--r-pill); border: 1px solid var(--line-2); font-size: 13px; font-weight: 500; color: var(--ink-2); background: var(--surface); }
.drawer-addr-chip.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.drawer-addr-chip-add { border-style: dashed; }
.drawer-form-group { margin-bottom: 12px; }
.drawer-form-group label { display: block; font-size: 12px; font-weight: 600; color: var(--ink-2); margin-bottom: 5px; }
.drawer-form-control { width: 100%; height: 44px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--surface); font-size: 15px; outline: 0; transition: border-color var(--t-fast), box-shadow var(--t-fast); }
.drawer-form-control:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(18,19,20,.07); }
.drawer-pay-section { margin: 18px 0 14px; }
.drawer-pay-options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.drawer-pay-card { position: relative; padding: 12px; border: 1px solid var(--line-2); border-radius: var(--r-sm); cursor: pointer; transition: border-color var(--t-fast), background var(--t-fast); }
.drawer-pay-card input { position: absolute; opacity: 0; pointer-events: none; }
.drawer-pay-card.active { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.drawer-pay-head { display: flex; align-items: center; gap: 8px; }
.drawer-pay-radio-dot { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--line-2); flex-shrink: 0; transition: all var(--t-fast); }
.drawer-pay-card.active .drawer-pay-radio-dot { border: 5px solid var(--ink); }
.drawer-pay-title { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; }
.drawer-pay-title i { display: none; }
.drawer-pay-sub { font-size: 12px; color: var(--muted); margin: 3px 0 0 24px; }
.drawer-coupon-box { border: 1px dashed var(--line-2); border-radius: var(--r-sm); padding: 12px; margin-bottom: 14px; }
.drawer-coupon-box label { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 8px; }
.drawer-buy-preview { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: var(--r); background: var(--bg); margin-bottom: 16px; }
.drawer-buy-preview img { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; background: var(--tile); flex-shrink: 0; }

/* ── Login prompt modal / generic modal ────────────────────────────── */
.login-prompt-overlay, .modal-overlay {
    position: fixed; inset: 0; z-index: 1300; background: rgba(18,19,20,.5);
    display: none; align-items: flex-end; justify-content: center; padding: 0;
}
@media (min-width: 600px) { .login-prompt-overlay, .modal-overlay { align-items: center; padding: 20px; } }
.login-prompt-card, .modal-card {
    position: relative; width: 100%; max-width: 440px; background: var(--surface);
    border-radius: var(--r-lg) var(--r-lg) 0 0; padding: 28px 22px calc(22px + env(safe-area-inset-bottom, 0px));
    animation: sheetUp .38s var(--ease-out);
}
@media (min-width: 600px) { .login-prompt-card, .modal-card { border-radius: var(--r-lg); padding: 32px; animation: popIn .22s var(--ease-out); } }
@keyframes sheetUp { from { transform: translateY(100%); } to { transform: none; } }
.login-prompt-close, .modal-close { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 50%; background: var(--bg); display: grid; place-items: center; font-size: 18px; line-height: 1; color: var(--ink-3); }
.login-prompt-icon { width: 52px; height: 52px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-size: 20px; margin-bottom: 18px; }
.login-prompt-icon i { color: var(--accent) !important; }
.login-prompt-card h3 { font-size: 22px; font-weight: 800; font-stretch: 112%; margin-bottom: 6px; }
.login-prompt-card p { font-size: 14px; color: var(--muted); margin-bottom: 22px; }
.login-prompt-actions { display: grid; gap: 8px; }
.btn-prompt-login { display: flex; align-items: center; justify-content: center; gap: 8px; height: 50px; border-radius: var(--r-sm); background: var(--ink); color: #fff; font-weight: 600; font-size: 15px; }
.btn-prompt-login:hover { background: #000; }
.btn-prompt-dismiss { height: 46px; border-radius: var(--r-sm); font-size: 14px; font-weight: 500; color: var(--ink-3); }
.btn-prompt-dismiss:hover { background: var(--bg); }

/* ── Toast ─────────────────────────────────────────────────────────── */
#toast-wrap { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--tabbar-h) + 16px + env(safe-area-inset-bottom, 0px)); z-index: 2000; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; width: max-content; max-width: calc(100vw - 32px); }
@media (min-width: 1024px) { #toast-wrap { bottom: 28px; } }
.toast { display: flex; align-items: center; gap: 10px; padding: 12px 16px 12px 14px; border-radius: var(--r); background: var(--ink); color: #fff; font-size: 13.5px; font-weight: 500; box-shadow: var(--sh-3); animation: toastIn .32s var(--ease-out); pointer-events: auto; }
.toast i { font-size: 14px; }
.toast--success i { color: #4ADE80; }
.toast--danger i { color: #F87171; }
.toast--info i { color: var(--accent); }
.toast.is-leaving { opacity: 0; transform: translateY(8px); transition: all .25s var(--ease); }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }

/* ── Motion helpers (used by main.js) ──────────────────────────────── */
.ig-reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); }
.ig-reveal.is-revealed { opacity: 1; transform: none; }
.ig-reveal-scale { opacity: 0; transform: scale(.98); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); }
.ig-reveal-scale.is-revealed { opacity: 1; transform: none; }
@keyframes heartPop { 0% { transform: scale(1); } 40% { transform: scale(1.3); } 100% { transform: scale(1); } }
.just-added i { animation: heartPop .45s var(--ease-out); }
@keyframes targetIconBounce { 0%,100% { transform: scale(1); } 40% { transform: scale(1.22); } }
.ig-target-bounce { animation: targetIconBounce .5s var(--ease-out); }
.ig-flyer-clone img { mix-blend-mode: multiply; }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
    .ig-reveal, .ig-reveal-scale { opacity: 1; transform: none; }
}

/* ── Sheet (bottom on mobile, side on desktop) — used by filters ───── */
.sheet {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 1101; max-height: 88vh; max-height: 88dvh;
    background: var(--surface); border-radius: var(--r-lg) var(--r-lg) 0 0;
    display: flex; flex-direction: column; transform: translateY(102%); transition: transform .4s var(--ease-out);
}
.sheet.is-open { transform: none; box-shadow: var(--sh-3); }
.sheet__grab { width: 36px; height: 4px; border-radius: 4px; background: var(--line-2); margin: 8px auto 0; flex-shrink: 0; }
.sheet__head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--line); flex-shrink: 0; }
.sheet__title { font-size: 17px; font-weight: 750; font-stretch: 110%; font-family: var(--font-display); }
.sheet__body { overflow-y: auto; overscroll-behavior: contain; padding: 4px 16px 16px; flex: 1; }
.sheet__foot { display: grid; grid-template-columns: 1fr 2fr; gap: 8px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); flex-shrink: 0; }

/* Legacy helpers still referenced by a few templates */
.shop-layout { display: grid; gap: 24px; }
.summary-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 14px; }
.summary-row.total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 12px; font-weight: 700; font-size: 16px; }
.summary-row.discount { color: var(--success); }

/* Single-column grids must never size to content (prevents mobile overflow) */
.cart-grid, .cart-main, .chk-grid, .chk-main, .pdp-top, .pdp-lower, .garage, .why, .hero-grid, .veh-hero, .shop-layout, .acct-grid, .auth-grid { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 767px) {
    #drawerCheckoutFooterSection { padding-top: 10px; }
    #drawerCheckoutFooterSection .drawer-summary-row:not(.total) { font-size: 12.5px; padding: 1px 0; }
    #drawerCheckoutFooterSection .drawer-summary-row.bulky { padding: 4px 8px !important; margin: 2px 0 !important; }
    #drawerCheckoutFooterSection .drawer-summary-row.total { margin-top: 4px; padding-top: 6px; }
    #drawerCheckoutFooterSection .drawer-checkout-box { margin-top: 8px; }
    #drawerCheckoutFooterSection .btn-drawer-checkout { height: 48px; }
}
.rail-arrows { display: none; gap: 6px; }
@media (min-width: 900px) { .rail-arrows { display: inline-flex; } }
