:root {
    --bg: #f5f6f3;
    --surface: #fff;
    --ink: #0f1a15;
    --ink-2: #3a4640;
    --muted: #6b7670;
    --line: #e5e8e3;
    --line-2: #eff1ed;
    --field: #c9d0ca;
    --field-hover: #a7b1aa;
    --field-bg: #f7f8f5;
    --soft: #f1f3ef;
    --brand: #111111;
    --brand-600: #000000;
    --brand-700: #111111;
    --brand-50: #f2f2f2;
    --brand-100: #e4e4e4;
    --mint: #ffffff;
    --accent: #ff6a3d;
    --accent-50: #fff1eb;
    --danger: #d92d20;
    --danger-50: #fef3f2;
    --warn: #b54708;
    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 22px;
    --shadow-sm: 0 1px 2px rgba(15, 26, 21, .05);
    --shadow: 0 1px 2px rgba(15, 26, 21, .04), 0 10px 26px -14px rgba(15, 26, 21, .16);
    --shadow-lg: 0 2px 6px rgba(15, 26, 21, .04), 0 22px 44px -18px rgba(15, 26, 21, .28);
    --ring: 0 0 0 4px rgba(17, 17, 17, .12);
    --max: 1200px;
    --sticky-top: 140px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: "Inter", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
    background: var(--bg);
    color: var(--ink);
    font-size: 15px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -.02em; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
input, select, textarea { font-size: 16px; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid rgba(17, 17, 17, .35); outline-offset: 2px; }
::selection { background: var(--brand-100); }
.icon { flex: none; display: block; }

/* Title Case for interface text and names; sentences, hints and typed input are left as written. */
h1, h2, h3, h4, h5, h6, legend, label, button, select, summary, th, nav a, .btn, .tc,
.brand-name, .chip, .tag, .badge, .crumbs, .stock, .price-from,
.card-variant, .pdp-variant, .option-name, .buy-label, .cart-option, .mini-name, .mini-meta,
.footer-list a, .footer-list span,
.suggest-name, .suggest-meta, .suggest-all, .suggest-empty strong, .kv strong, .bank-row strong, .notice-bad strong,
.cart-bar-text strong, .status-item, .ticket-label, .toast-title,
.adm-link, .adm-env, .adm-back, .adm-user-text strong, .a-tabs a, .a-card-head a, .kpi-label, .status-pill,
.cell-main strong, .o-items strong, .inv-state, .inv-options span, .inv-action-text strong, .pick-text strong,
.r-table .w-item strong, .switch-text strong, .upload-box strong, .r-totals, .kv-list dt { text-transform: capitalize; }
.hint, .mono, label small, label p, .switch-text small, .upload-box small, .upload-box span,
[data-file-label], [data-file-hint], .alert, .notice-bad, input, textarea { text-transform: none; }
.notice-bad strong { text-transform: capitalize; }
.nc { text-transform: none !important; }

.wrap {
    width: min(var(--max), 100% - 32px);
    margin-inline: auto;
    min-width: 0;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip {
    position: absolute;
    left: 12px;
    top: -60px;
    z-index: 100;
    padding: 10px 14px;
    border-radius: 10px;
    background: var(--ink);
    color: #fff;
}
.skip:focus { top: 12px; }

.muted { color: var(--muted); }

/* Top bar */
/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(255, 255, 255, .86);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--line);
}

.header-in {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "brand cart" "search search";
    gap: 10px 12px;
    align-items: center;
    padding: 12px 0 6px;
}

.brand {
    grid-area: brand;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: -.03em;
}
.brand img { height: 38px; width: auto; }
.brand .brand-logo { height: 24px; width: auto; max-width: 100%; object-fit: contain; }
.footer-logo { filter: brightness(0) invert(1); }
@media (min-width: 800px) { .brand .brand-logo { height: 28px; } }
.brand-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brand-mark {
    width: 36px;
    height: 36px;
    flex: none;
    display: grid;
    place-items: center;
    border-radius: 11px;
    color: #fff;
    font-size: 1.05rem;
    font-weight: 800;
    background: linear-gradient(135deg, #2a2a2a 0%, #111111 100%);
    box-shadow: 0 8px 16px -8px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .2);
}

.search { grid-area: search; position: relative; display: flex; align-items: center; min-width: 0; }
.search-icon { position: absolute; left: 15px; color: var(--muted); pointer-events: none; }
.search input[type="search"] {
    width: 100%;
    min-width: 0;
    height: 48px;
    padding: 0 100px 0 44px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: var(--soft);
    -webkit-appearance: none;
    appearance: none;
    transition: background .15s, border-color .15s, box-shadow .15s;
}
.search input[type="search"]::placeholder { color: #8b958f; }
.search input[type="search"]:focus { outline: none; background: #fff; border-color: var(--brand); box-shadow: var(--ring); }
.search-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    bottom: 5px;
    padding: 0 18px;
    border: 0;
    border-radius: 999px;
    background: var(--ink);
    color: #fff;
    font-size: .88rem;
    font-weight: 650;
    transition: background .15s;
}
.search-btn:hover { background: var(--brand); color: #fff; }
.search.is-loading .search-icon { animation: suggest-pulse .8s ease-in-out infinite alternate; }
@keyframes suggest-pulse { to { color: var(--brand); } }

.suggest {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 40;
    max-height: min(70vh, 480px);
    overflow-y: auto;
    padding: 6px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    animation: suggest-in .14s ease-out;
}
@keyframes suggest-in { from { opacity: 0; transform: translateY(-4px); } }
.suggest-item {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 8px 10px 8px 8px;
    border-radius: var(--radius-sm);
    color: var(--ink);
    text-decoration: none;
}
.suggest-item:hover, .suggest-item.is-active { background: var(--brand-50); }
.suggest-item img { width: 44px; height: 44px; border-radius: 10px; object-fit: contain; background: #fff; }
.suggest-text { display: grid; min-width: 0; gap: 2px; }
.suggest-name, .suggest-meta { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.suggest-name { font-weight: 650; font-size: .93rem; }
.suggest-meta { color: var(--muted); font-size: .78rem; }
.suggest-price { font-weight: 700; font-size: .9rem; white-space: nowrap; }
.suggest-item.is-out img { opacity: .5; }
.suggest-item.is-out .suggest-meta { color: var(--danger); }
.suggest-item.is-out .suggest-price { color: var(--muted); }
.suggest-all {
    display: block;
    margin-top: 4px;
    padding: 11px 10px;
    border-top: 1px solid var(--line-2);
    color: var(--brand-700);
    font-weight: 650;
    font-size: .88rem;
    text-align: center;
    text-decoration: none;
}
.suggest-all:hover { background: var(--soft); border-radius: var(--radius-sm); }
.suggest-empty { display: grid; gap: 2px; padding: 16px 12px; text-align: center; }
.suggest-empty span { color: var(--muted); font-size: .85rem; }
@media (prefers-reduced-motion: reduce) { .suggest, .search.is-loading .search-icon { animation: none; } }

.cart-btn {
    grid-area: cart;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 44px;
    padding: 0 14px 0 13px;
    border-radius: 999px;
    background: var(--ink);
    color: #fff;
    font-size: .92rem;
    font-weight: 650;
    transition: background .15s, transform .15s;
}
.cart-btn:hover { background: var(--brand); color: #fff; }
.cart-badge {
    min-width: 21px;
    height: 21px;
    padding: 0 6px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    background: #fff;
    color: var(--ink);
    font-size: .72rem;
    font-weight: 800;
}
@media (max-width: 380px) { .cart-label { display: none; } }

.chips {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 8px 0 12px;
    scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }
.chips.fade-end { -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
.chips.fade-start { -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%); mask-image: linear-gradient(90deg, transparent, #000 15%); }
.chips.fade-start.fade-end { -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.chip, .cats a {
    flex: none;
    display: inline-flex;
    align-items: center;
    height: 36px;
    padding: 0 15px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    color: var(--ink-2);
    font-size: .88rem;
    font-weight: 600;
    white-space: nowrap;
    transition: background .15s, border-color .15s, color .15s;
}
.chip:hover, .cats a:hover { background: var(--brand-50); border-color: var(--brand-100); color: var(--brand-700); }
.chip.active, .cats a.active {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
    box-shadow: 0 8px 16px -10px rgba(0, 0, 0, .35);
}
.cats { display: flex; gap: 8px; overflow-x: auto; margin: 0 0 18px; scrollbar-width: none; }

@media (min-width: 800px) {
    .header-in {
        grid-template-columns: auto minmax(0, 1fr) auto;
        grid-template-areas: "brand search cart";
        gap: 28px;
        padding: 14px 0 4px;
    }
    .search { width: 100%; max-width: 640px; justify-self: center; }
}

/* Page */
.page { padding: 20px 0 56px; min-height: 50vh; }
body.shop { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
body.shop > .page { flex: 1 0 auto; width: 100%; }
body.shop > .site-footer { flex-shrink: 0; }
@media (min-width: 800px) { .page { padding-top: 26px; } }

.alert {
    display: block;
    margin: 0 0 18px;
    padding: 12px 14px;
    border: 1px solid;
    border-radius: 14px;
    font-size: .92rem;
    font-weight: 500;
}
.alert div + div { margin-top: 4px; }
.alert-ok { background: var(--brand-50); border-color: var(--brand-100); color: var(--brand-700); }
.alert-err { background: var(--danger-50); border-color: #fecdca; color: #b42318; }

/* Toast notifications (shop and admin) */
.toaster {
    position: fixed;
    top: max(14px, env(safe-area-inset-top));
    right: 16px;
    left: 16px;
    z-index: 200;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    pointer-events: none;
}
@media (min-width: 640px) { .toaster { top: 20px; right: 20px; left: auto; width: 380px; align-items: stretch; } }
.toast {
    --toast-accent: var(--brand);
    --toast-soft: var(--brand-50);
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
    max-width: 420px;
    overflow: hidden;
    padding: 14px 44px 16px 14px;
    border: 1px solid rgba(15, 26, 21, .08);
    border-radius: 16px;
    background: rgba(255, 255, 255, .97);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    box-shadow: 0 2px 6px rgba(15, 26, 21, .06), 0 22px 48px -18px rgba(15, 26, 21, .4);
    color: var(--ink);
    pointer-events: auto;
    animation: toast-in .38s cubic-bezier(.2, .9, .3, 1.2) both;
}
.toast.is-err { --toast-accent: var(--danger); --toast-soft: var(--danger-50); }
.toast.is-info { --toast-accent: #3538cd; --toast-soft: #eef3ff; }
.toast.is-leaving { animation: toast-out .28s ease-in forwards; }
.toast-icon {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    flex: none;
    border-radius: 11px;
    background: var(--toast-soft);
    color: var(--toast-accent);
}
.toast-media { position: relative; flex: none; }
.toast-media img { width: 56px; height: 56px; border: 1px solid var(--line); border-radius: 12px; object-fit: contain; background: #fff; }
.toast-media-badge {
    position: absolute;
    right: -5px;
    bottom: -5px;
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: var(--toast-accent);
    color: #fff;
}
.toast-body { display: grid; gap: 2px; flex: 1; min-width: 0; padding-top: 1px; }
.toast-title { font-size: .92rem; font-weight: 750; letter-spacing: -.01em; }
.toast-msg { margin: 0; color: var(--ink-2); font-size: .86rem; line-height: 1.45; overflow-wrap: anywhere; }
.toast-list { display: grid; gap: 3px; padding-left: 16px; }
.toast-stage { margin-bottom: 16px; }
.toast-meta { margin: 0; color: var(--muted); font-size: .78rem; }
.toast-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.toast-action {
    display: inline-flex;
    align-items: center;
    height: 34px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    color: var(--ink);
    font-size: .82rem;
    font-weight: 700;
    text-transform: capitalize;
    transition: background .15s, border-color .15s;
}
.toast-action:hover { border-color: #cfd6d1; background: var(--soft); }
.toast-action.is-primary { border-color: var(--ink); background: var(--ink); color: #fff; }
.toast-action.is-primary:hover { border-color: var(--brand-700); background: var(--brand-700); }
.toast-close {
    position: absolute;
    top: 10px;
    right: 10px;
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: none;
    color: var(--muted);
    transition: background .15s, color .15s;
}
.toast-close:hover { background: var(--soft); color: var(--ink); }
.toast-timer {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: var(--toast-accent);
    opacity: .55;
    transform-origin: left;
}
@keyframes toast-in { from { opacity: 0; transform: translateY(-14px) scale(.96); } }
@keyframes toast-out { to { opacity: 0; transform: translateX(24px) scale(.96); } }
@media (max-width: 639px) { @keyframes toast-out { to { opacity: 0; transform: translateY(-14px) scale(.96); } } }
@media (prefers-reduced-motion: reduce) { .toast, .toast.is-leaving { animation-duration: .01ms; } }

.cart-btn.is-bump { animation: cart-bump .5s ease; }
.cart-btn.is-bump .cart-badge { animation: badge-pop .5s ease; }
@keyframes cart-bump { 30% { transform: scale(1.06); } 60% { transform: scale(.98); } }
@keyframes badge-pop { 40% { transform: scale(1.35); } }
.btn.is-busy { opacity: .75; pointer-events: none; }

.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 14px; }
.section-head h1, .section-head h2 { font-size: 1.3rem; font-weight: 800; }
.count { flex: none; color: var(--muted); font-size: .86rem; font-weight: 500; }

/* Product grid */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 960px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; } }
@media (min-width: 1180px) { .grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

.card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 8px;
    background: var(--surface);
    border-radius: 20px;
    box-shadow: 0 1px 2px rgba(15, 26, 21, .04), 0 0 0 1px rgba(15, 26, 21, .045);
    transition: transform .25s ease, box-shadow .25s ease;
}
@media (hover: hover) {
    .card:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(15, 26, 21, .05), 0 18px 36px -20px rgba(15, 26, 21, .32); }
    .card:hover .card-media img { transform: scale(1.04); }
}
.card-media { position: relative; display: block; aspect-ratio: 1; overflow: hidden; border-radius: 14px; background: var(--soft); }
.card-media img { width: 100%; height: 100%; object-fit: contain; transition: transform .45s cubic-bezier(.2, .7, .2, 1); }
.is-out .card-media img, .is-out .pdp-media img { filter: grayscale(1); opacity: .45; }

.tag {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: .7rem;
    font-weight: 750;
    line-height: 1.3;
    letter-spacing: .01em;
    backdrop-filter: blur(6px);
}
.tag-sale { background: var(--accent); color: #fff; }
.tag-low { top: auto; bottom: 8px; background: rgba(255, 255, 255, .92); color: #9a4d00; box-shadow: 0 2px 8px -2px rgba(0, 0, 0, .4); }
.tag-out {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 7px 14px;
    background: var(--ink);
    color: #fff;
    letter-spacing: .1em;
    text-transform: uppercase;
    white-space: nowrap;
}
.tag-options { left: auto; right: 8px; background: rgba(255, 255, 255, .92); color: #1a1a1a; box-shadow: 0 2px 8px -2px rgba(0, 0, 0, .4); }

.card-body { display: flex; flex-direction: column; flex: 1; gap: 4px; padding: 12px 6px 4px; }
@media (min-width: 640px) { .card-body { padding: 14px 8px 6px; } }
.card-title {
    display: -webkit-box;
    overflow: hidden;
    color: var(--ink);
    font-size: .95rem;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: -.005em;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.card-title a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card-title a:focus-visible { outline: none; }
.card:has(.card-title a:focus-visible) { box-shadow: 0 0 0 2px var(--brand), 0 0 0 6px rgba(17, 17, 17, .12); }
.card-variant { margin: 0; overflow: hidden; color: var(--muted); font-size: .8rem; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }

.card-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 12px; }
.card-price { display: flex; flex-direction: column; min-width: 0; line-height: 1.1; }
.price-from { color: var(--muted); font-size: .7rem; font-weight: 600; letter-spacing: .02em; }
.price-was { color: #98a19b; font-size: .76rem; font-variant-numeric: tabular-nums; }
.price-now { color: var(--ink); white-space: nowrap; }
.price-now.is-sale { color: #c2410c; }
.money { display: inline-flex; align-items: baseline; font-variant-numeric: tabular-nums; }
.money-cur { margin-right: 3px; color: var(--muted); font-size: .72rem; font-weight: 700; letter-spacing: .03em; }
.price-now.is-sale .money-cur { color: inherit; opacity: .75; }
.money-int { font-size: 1.32rem; font-weight: 800; letter-spacing: -.03em; }
.money-dec { font-size: .82rem; font-weight: 700; letter-spacing: -.01em; }

.add-btn {
    position: relative;
    z-index: 1;
    display: grid;
    flex: none;
    place-items: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 0;
    border-radius: 14px;
    background: var(--brand);
    color: #fff;
    cursor: pointer;
    box-shadow: 0 8px 16px -10px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .2);
    -webkit-tap-highlight-color: transparent;
    transition: background .15s, transform .15s, box-shadow .15s;
}
.add-btn:hover { background: var(--brand-600); color: #fff; }
.add-btn:active { transform: scale(.94); }
.add-btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.add-btn.is-ghost { background: var(--brand-50); color: var(--brand-700); box-shadow: none; }
.add-btn.is-ghost:hover { background: var(--brand-100); color: var(--brand-700); }
.add-btn.is-busy { opacity: .7; pointer-events: none; }
.add-btn.is-added { background: var(--ink); color: #fff; animation: add-pop .45s ease; }
@keyframes add-pop { 40% { transform: scale(1.12); } }
.card-soldout { flex: none; padding: 6px 10px; border-radius: 10px; background: #f1f2ef; color: #8a948e; font-size: .74rem; font-weight: 700; }
.is-out .card-title, .is-out .money-int, .is-out .money-dec { color: #8a948e; }
@media (max-width: 380px) {
    .money-int { font-size: 1.18rem; }
    .add-btn { width: 38px; height: 38px; border-radius: 12px; }
}

.stock { display: inline-flex; align-items: center; gap: 7px; font-size: .78rem; font-weight: 650; }
.stock::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.stock-in { color: var(--brand-600); }
.stock-in::before { box-shadow: 0 0 0 3px rgba(17, 17, 17, .12); }
.stock-out { color: var(--danger); font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: 12px;
    background: var(--ink);
    color: #fff;
    font-size: .94rem;
    font-weight: 650;
    line-height: 1.1;
    text-align: center;
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
    transition: background .15s, color .15s, border-color .15s, box-shadow .15s, transform .1s;
}
.btn:hover { background: #000; color: #fff; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); box-shadow: 0 10px 20px -12px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .18); }
.btn-primary:hover { background: var(--brand-600); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--soft); color: var(--ink); border-color: #d4dad3; }
.btn-ok { background: var(--brand); }
.btn-ok:hover { background: var(--brand-600); }
.btn-danger { background: var(--danger); }
.btn-danger:hover { background: #b42318; }
.btn-lg { min-height: 52px; padding: 0 22px; border-radius: 14px; font-size: 1rem; }
.btn-sm { min-height: 36px; padding: 0 12px; border-radius: 10px; font-size: .85rem; }
.btn-block { width: 100%; }
.btn:disabled, .btn[disabled] {
    background: #eceeea;
    color: #98a19b;
    border-color: transparent;
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}
.icon-btn {
    width: 38px;
    height: 38px;
    flex: none;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--muted);
    transition: background .15s, color .15s;
}
.icon-btn:hover { background: var(--danger-50); color: var(--danger); }

/* Forms */
label { display: block; margin-bottom: 6px; color: var(--ink-2); font-size: .88rem; font-weight: 650; }
.field { margin-bottom: 16px; }
.hint { color: var(--muted); font-size: .8rem; font-weight: 500; }
.form-grid { display: grid; gap: 0 14px; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } }

input[type="text"],
input[type="password"],
input[type="number"],
input[type="search"],
input[type="tel"],
input[type="date"],
textarea,
select {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 48px;
    padding: 11px 14px;
    border: 1px solid var(--field);
    border-radius: 12px;
    background-color: var(--field-bg);
    box-shadow: inset 0 1px 2px rgba(15, 26, 21, .05);
    color: var(--ink);
    transition: border-color .15s, box-shadow .15s, background-color .15s;
}
input[type="text"]:hover,
input[type="password"]:hover,
input[type="number"]:hover,
input[type="search"]:hover,
input[type="tel"]:hover,
input[type="date"]:hover,
textarea:hover,
select:hover { border-color: var(--field-hover); }
input[aria-invalid="true"], textarea[aria-invalid="true"], select[aria-invalid="true"] { border-color: var(--danger); background-color: var(--danger-50); }
select {
    -webkit-appearance: none;
    appearance: none;
    padding-right: 40px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7670' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--brand); background-color: #fff; box-shadow: var(--ring); }
input::placeholder, textarea::placeholder { color: #8a948e; opacity: 1; }
textarea { min-height: 100px; resize: vertical; line-height: 1.5; }
input[type="file"] { width: 100%; padding: 10px; border: 1px dashed #cfd5ce; border-radius: 12px; background: #fafbf9; font-size: .9rem; }
.check { display: flex; align-items: center; gap: 10px; font-weight: 650; }
.check input { width: 18px; height: 18px; margin: 0; accent-color: var(--brand); }

.stepper {
    display: inline-flex;
    align-items: stretch;
    height: 52px;
    overflow: hidden;
    border: 1px solid var(--field);
    border-radius: 14px;
    background: var(--surface);
}
.stepper input[type="number"] {
    width: 52px;
    min-height: 0;
    height: auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background-color: transparent;
    box-shadow: none;
    text-align: center;
    font-weight: 750;
    -moz-appearance: textfield;
    appearance: textfield;
}
.stepper input::-webkit-outer-spin-button,
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.step {
    width: 44px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--ink-2);
    transition: background .15s, color .15s;
}
.step:hover { background: var(--soft); color: var(--brand-700); }
.step:disabled { opacity: .3; cursor: not-allowed; background: transparent; }
.stepper-sm { height: 40px; border-radius: 12px; }
.stepper-sm .step { width: 36px; }
.stepper-sm input[type="number"] { width: 38px; font-size: .95rem; }

/* Panels */
.panel {
    min-width: 0;
    margin: 0 0 16px;
    padding: 18px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}
.panel h1, .panel h2 { margin: 0 0 14px; font-size: 1.08rem; font-weight: 750; }
.panel > p { margin: 0 0 8px; }
@media (min-width: 800px) { .panel { padding: 22px; } }

.page-title { margin: 0 0 18px; font-size: 1.6rem; font-weight: 800; }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 6px 12px; margin-bottom: 18px; }
.page-head h1 { font-size: clamp(1.5rem, 3.6vw, 2rem); font-weight: 800; letter-spacing: -.03em; }
.back-link { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 8px; color: var(--muted); font-size: .88rem; font-weight: 600; }
.back-link:hover { color: var(--brand-700); }
.spaced { margin-top: 14px; }
.page > .wrap > h2 { margin: 8px 0 12px; font-size: 1.15rem; font-weight: 800; }

.empty-state {
    padding: 52px 20px;
    text-align: center;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
}
.empty-icon {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    margin: 0 auto 16px;
    border-radius: 20px;
    background: var(--brand-50);
    color: var(--brand-700);
}
.empty-state h2 { margin-bottom: 6px; font-size: 1.25rem; font-weight: 800; }
.empty-state p { margin-bottom: 20px; color: var(--muted); }
.empty { padding: 28px 16px; text-align: center; color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }

/* Product page */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 16px; color: var(--muted); font-size: .86rem; }
.crumbs a { color: var(--ink-2); font-weight: 650; }
.crumbs a:hover { color: var(--ink); }
.crumbs [aria-current] { min-width: 0; color: var(--muted); font-weight: 550; }
.crumb-sep { display: inline-flex; color: var(--field); }
.pdp { display: grid; gap: 22px; }
.pdp-gallery { display: grid; gap: 10px; min-width: 0; align-content: start; }
.pdp-thumbs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.pdp-thumbs::-webkit-scrollbar { display: none; }
.pdp-thumb {
    flex: none;
    width: 72px;
    height: 72px;
    padding: 0;
    overflow: hidden;
    border: 2px solid transparent;
    border-radius: 12px;
    background: var(--soft);
    cursor: pointer;
}
.pdp-thumb img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.pdp-thumb.is-active { border-color: #111; }
.pdp-media {
    position: relative;
    overflow: hidden;
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}
.pdp-media img { width: 100%; height: auto; max-height: 72vh; object-fit: contain; background: #fff; }
.pdp-media .tag { top: 16px; left: 16px; padding: 6px 12px; font-size: .8rem; }
.pdp-media .tag-out { top: 50%; left: 50%; }
.pdp-cat {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    padding: 10px 14px 10px 10px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    color: var(--ink);
    text-transform: none;
}
.pdp-cat:hover { border-color: #111; }
.pdp-cat-mark {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: var(--soft);
}
.pdp-cat-copy { display: grid; min-width: 0; line-height: 1.2; }
.pdp-cat-kicker { color: var(--muted); font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.pdp-cat-copy strong { font-size: .95rem; font-weight: 750; }
.pdp-cat-go { margin-left: auto; display: inline-flex; align-items: center; gap: 2px; color: var(--muted); font-size: .8rem; font-weight: 650; white-space: nowrap; }
.pdp-cat:hover .pdp-cat-go { color: var(--ink); }
.pdp-title { margin: 0 0 6px; font-size: clamp(1.65rem, 4vw, 2.4rem); font-weight: 800; letter-spacing: -.035em; }
.pdp-variant { color: var(--muted); font-size: 1rem; }
.pdp-price { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 18px 0 10px; }
.pdp-price .price-now { font-size: 1.85rem; letter-spacing: -.03em; }
.pdp-price .price-was { font-size: 1rem; }
.save { padding: 4px 10px; border-radius: 999px; background: var(--accent-50); color: #c2410c; font-size: .8rem; font-weight: 700; }
.stock-row { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.low-note { color: var(--warn); font-size: .8rem; font-weight: 650; }
.buy-label { margin-top: 22px; }
[hidden] { display: none !important; }
.price-from { color: var(--muted); font-size: .78rem; font-weight: 600; }
.options { margin: 18px 0 0; padding: 0; border: 0; min-width: 0; }
.options legend { padding: 0; margin-bottom: 10px; }
.options legend strong { color: var(--ink); }
.option-list { display: flex; flex-wrap: wrap; gap: 8px; }
.option {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    gap: 2px;
    min-width: 92px;
    margin: 0;
    padding: 10px 14px;
    border: 1.5px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    cursor: pointer;
    transition: border-color .15s, background .15s, box-shadow .15s;
}
.option.has-photo {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    min-width: 148px;
    padding: 8px 12px 8px 8px;
}
.option.is-photo-only {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    min-width: 104px;
    width: 112px;
    padding: 8px;
}
.option input { position: absolute; opacity: 0; pointer-events: none; }
.option-photo {
    position: relative;
    flex: none;
    width: 52px;
    height: 52px;
    overflow: hidden;
    border-radius: 10px;
    background: var(--soft);
}
.option.is-photo-only .option-photo {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
}
.option-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.option-view {
    position: absolute;
    right: 6px;
    bottom: 6px;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: rgba(17, 17, 17, .78);
    color: #fff;
    opacity: .92;
    transition: opacity .15s, transform .15s, background .15s;
}
.option-view:hover { background: #111; transform: scale(1.05); }
.option-view:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) {
    .option-view { opacity: 0; }
    .option:hover .option-view,
    .option:focus-within .option-view,
    .option-view:focus-visible { opacity: 1; }
}
.option-copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.option-name { color: var(--ink); font-size: .9rem; font-weight: 700; }
.option-price { color: var(--muted); font-size: .78rem; font-weight: 600; }
.option.is-photo-only > .option-price {
    display: block;
    text-align: center;
    font-size: .8rem;
    font-weight: 750;
    color: var(--ink);
}
.option:hover { border-color: #cfd6cf; }
.option:has(input:checked) { border-color: var(--brand); background: var(--brand-50); box-shadow: 0 0 0 3px rgba(17, 17, 17, .08); }
.option:has(input:checked) .option-price { color: var(--brand-700); }
.option:has(input:focus-visible) { outline: 2px solid var(--brand); outline-offset: 2px; }
.option.is-out { cursor: not-allowed; opacity: .55; }
.option.is-out .option-name { text-decoration: line-through; }
.option.is-out .option-view { pointer-events: none; }
.cart-option { display: inline-block; margin-top: 4px; padding: 2px 8px; border-radius: 999px; background: var(--soft); color: var(--ink-2); font-size: .74rem; font-weight: 650; }
.buy { display: flex; align-items: stretch; gap: 10px; }
.buy .btn { flex: 1; }
.pdp-desc { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.pdp-desc h2 { margin-bottom: 8px; font-size: 1rem; }
.pdp-desc p { color: var(--ink-2); }
@media (min-width: 800px) {
    .pdp { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; align-items: start; }
    .pdp-gallery { position: sticky; top: var(--sticky-top); }
    .pdp-info { padding-top: 8px; }
}

/* Cart */
.cart-layout { display: grid; gap: 18px; align-items: start; }
.cart-list { display: grid; gap: 12px; }
.cart-item {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 14px;
    padding: 12px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}
.cart-thumb { display: block; aspect-ratio: 1; overflow: hidden; border-radius: 12px; background: var(--soft); }
.cart-thumb img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.cart-main { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.cart-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.cart-name { font-size: 1rem; font-weight: 700; }
.cart-name a:hover { color: var(--brand-700); }
.cart-each { margin-top: 2px; color: var(--muted); font-size: .84rem; }
.cart-each s { margin-left: 4px; }
.cart-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; }
.qty-form { display: flex; align-items: center; gap: 8px; }
.line-total { text-align: right; }
.line-total span { display: block; color: var(--muted); font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.line-total strong { font-size: 1.04rem; white-space: nowrap; }
.js .js-hide { display: none; }
@media (min-width: 640px) { .cart-item { grid-template-columns: 116px minmax(0, 1fr); gap: 18px; padding: 14px; } }

.summary-card {
    padding: 20px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}
.summary-card h2 { margin-bottom: 14px; font-size: 1.12rem; font-weight: 800; }
.totals { display: grid; gap: 10px; min-width: 0; font-size: .94rem; }
.totals .row { display: flex; justify-content: space-between; gap: 12px; color: var(--ink-2); }
.totals .row strong { color: var(--ink); font-weight: 650; white-space: nowrap; }
.totals .save-row strong, .totals .free { color: var(--brand-600); }
.totals .grand { margin-top: 4px; padding-top: 14px; border-top: 1px dashed #d4dad3; color: var(--ink); font-weight: 700; font-size: 1.04rem; align-items: baseline; }
.totals .grand strong { font-size: 1.38rem; font-weight: 800; letter-spacing: -.02em; }
.free-ship {
    margin: 0 0 16px;
    padding: 12px 14px;
    border-radius: 14px;
    background: var(--brand-50);
    color: var(--brand-700);
    font-size: .86rem;
    font-weight: 600;
}
.free-ship.is-done { display: flex; align-items: center; gap: 8px; }
.free-ship progress {
    display: block;
    width: 100%;
    height: 8px;
    margin-top: 9px;
    overflow: hidden;
    border: 0;
    border-radius: 999px;
    background: var(--surface);
    -webkit-appearance: none;
    appearance: none;
}
.free-ship progress::-webkit-progress-bar { background: var(--surface); border-radius: 999px; }
.free-ship progress::-webkit-progress-value { background: #111; border-radius: 999px; }
.free-ship progress::-moz-progress-bar { background: #111; border-radius: 999px; }
.summary-actions { display: grid; gap: 10px; margin-top: 18px; }
@media (min-width: 900px) {
    .cart-layout { grid-template-columns: minmax(0, 1fr) 370px; gap: 28px; }
    .cart-layout .summary-card { position: sticky; top: var(--sticky-top); }
}

/* Checkout */
.checkout-layout { display: grid; gap: 16px; align-items: start; }
.step-panel { margin: 0; }
.checkout-main { display: grid; gap: 16px; min-width: 0; }
.step-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.step-num {
    width: 32px;
    height: 32px;
    flex: none;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: var(--ink);
    color: #fff;
    font-size: .9rem;
    font-weight: 800;
}
.panel .step-head h2 { margin: 0; font-size: 1.08rem; }
.field-label { display: block; margin-bottom: 8px; font-size: .86rem; font-weight: 650; }
.checkout-main .field { min-width: 0; }
.deliv-grid { display: grid; gap: 8px; min-width: 0; }
@media (min-width: 640px) { .deliv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.deliv-card {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    padding: 12px 14px;
    text-align: left;
    border: 1.5px solid var(--line);
    border-radius: 14px;
    background: var(--soft);
    color: inherit;
    cursor: pointer;
    transition: border-color .15s, background .15s, box-shadow .15s;
    box-sizing: border-box;
}
.deliv-card:hover { background: #fff; border-color: #c8cdc9; }
.deliv-card.is-on {
    background: #fff;
    border-color: var(--ink);
    box-shadow: 0 0 0 1px var(--ink);
}
.deliv-top {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    min-width: 0;
}
.deliv-icon {
    width: 22px;
    height: 22px;
    flex: none;
    display: grid;
    place-items: center;
    margin-top: 1px;
    border-radius: 7px;
    background: var(--brand-50);
    color: var(--ink);
}
.deliv-name {
    flex: 1 1 auto;
    min-width: 0;
    font-size: .9rem;
    font-weight: 750;
    line-height: 1.3;
    overflow-wrap: anywhere;
    word-break: break-word;
}
.deliv-fee {
    flex: 0 0 auto;
    max-width: 42%;
    font-size: .78rem;
    font-weight: 750;
    line-height: 1.3;
    text-align: right;
    white-space: normal;
    overflow-wrap: anywhere;
}
.deliv-note {
    color: var(--muted);
    font-size: .76rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
    word-break: break-word;
}
.deliv-panel { display: grid; gap: 8px; margin-top: 12px; min-width: 0; }
.deliv-panel[hidden], .deliv-details[hidden], .pickup-card[hidden] { display: none !important; }
.deliv-details { display: grid; gap: 14px; margin-top: 14px; }
.pickup-card {
    display: grid;
    gap: 14px;
    margin-top: 14px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--soft);
}
.pickup-place {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    align-items: start;
    padding: 12px 14px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .05);
}
.pickup-place-icon {
    width: 40px;
    height: 40px;
    flex: none;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: var(--ink);
    color: #fff;
}
.pickup-place-body { min-width: 0; }
.pickup-place-kicker {
    display: block;
    margin-bottom: 2px;
    color: var(--muted);
    font-size: .68rem;
    font-weight: 750;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.pickup-place-name {
    display: block;
    font-size: 1.02rem;
    font-weight: 800;
    letter-spacing: -.01em;
    line-height: 1.25;
}
.pickup-place-address {
    margin: 6px 0 0;
    color: var(--ink-2);
    font-size: .92rem;
    font-weight: 550;
    line-height: 1.45;
}
.pickup-place-address.is-empty { color: var(--muted); font-style: italic; }
.pickup-meta {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.pickup-meta li {
    display: grid;
    grid-template-columns: 18px 1fr;
    gap: 8px;
    align-items: start;
    color: var(--ink-2);
    font-size: .86rem;
    line-height: 1.4;
}
.pickup-meta li svg { margin-top: 2px; color: var(--muted); }
.pickup-meta a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.pickup-meta a:hover { color: var(--ink); }
.pickup-note {
    margin: 0;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .72);
    color: var(--ink-2);
    font-size: .82rem;
    line-height: 1.4;
}
.pickup-card .field { margin: 0; }
.deliv-pills {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    min-width: 0;
}
@media (min-width: 420px) {
    .deliv-pills { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.deliv-pill {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    min-width: 0;
    max-width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    text-align: left;
    border: 1.5px solid var(--line);
    border-radius: 12px;
    background: var(--soft);
    color: inherit;
    cursor: pointer;
    font-size: .84rem;
    font-weight: 650;
    line-height: 1.3;
    transition: border-color .15s, background .15s, box-shadow .15s;
    box-sizing: border-box;
}
.deliv-pill > span:first-child {
    flex: 1 1 auto;
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}
.deliv-pill small {
    flex: 0 0 auto;
    max-width: 46%;
    color: var(--muted);
    font-size: .72rem;
    font-weight: 750;
    line-height: 1.3;
    text-align: right;
    white-space: normal;
    overflow-wrap: anywhere;
}
.deliv-pill:hover { background: #fff; border-color: #c8cdc9; }
.deliv-pill.is-on {
    background: #fff;
    border-color: var(--ink);
    box-shadow: 0 0 0 1px var(--ink);
}
@media (max-width: 419px) {
    .deliv-card { padding: 11px 12px; }
    .deliv-name { font-size: .86rem; }
    .deliv-fee { max-width: 48%; font-size: .74rem; }
    .deliv-note { font-size: .74rem; }
}

.pay-box {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--soft);
}
.pay-box-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 2px;
}
.pay-heading {
    display: block;
    color: var(--ink);
    font-size: .7rem;
    font-weight: 750;
    letter-spacing: .05em;
    text-transform: uppercase;
}
.pay-account-name {
    display: block;
    margin-top: 2px;
    font-size: .82rem;
    font-weight: 650;
}
.pay-due { text-align: right; }
.pay-due-tag {
    display: block;
    color: var(--muted);
    font-size: .66rem;
    font-weight: 650;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.pay-due-price {
    display: block;
    font-size: .98rem;
    font-weight: 800;
}
.pay-card { display: flex; flex-direction: column; gap: 4px; }
.pay-card-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    font-size: .72rem;
}
.pay-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1px 6px;
    border-radius: 4px;
    background: var(--ink);
    color: #fff;
    font-size: .62rem;
    font-weight: 800;
    letter-spacing: .04em;
}
.pay-pill.is-bml { background: #e11b22; }
.pay-pill.is-mib { background: #008752; }
.pay-bank { color: var(--ink-2); font-size: .76rem; font-weight: 650; }
.pay-holder { color: var(--muted); font-size: .7rem; }
.pay-num {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 6px 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    transition: border-color .15s;
}
.pay-num:hover { border-color: #cbd5e1; }
.pay-digits {
    color: var(--ink);
    font-size: .9rem;
    font-weight: 750;
    letter-spacing: .05em;
    overflow-wrap: anywhere;
}
.pay-copy {
    flex: none;
    padding: 3px 8px;
    border: 1px solid var(--line);
    border-radius: 5px;
    background: var(--soft);
    color: var(--ink);
    font-size: .7rem;
    font-weight: 650;
    cursor: pointer;
    transition: background .15s, color .15s, border-color .15s;
}
.pay-copy:hover {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
}
.pay-copy.copied {
    background: #15803d;
    border-color: #15803d;
    color: #fff;
}
.pay-note { margin: 0; color: var(--muted); font-size: .7rem; line-height: 1.35; }
.bank-card {
    position: relative;
    display: grid;
    gap: 14px;
    overflow: hidden;
    padding: 18px;
    border-radius: 18px;
    color: #fff;
    background:
        radial-gradient(90% 120% at 100% 0%, rgba(255, 255, 255, .08), transparent 55%),
        linear-gradient(160deg, #1a1a1a 0%, #050505 100%);
    border: 1px solid #2a2a2a;
    box-shadow: var(--shadow-lg);
}
.bank-watermark {
    position: absolute;
    right: 18px;
    bottom: 16px;
    width: min(calc(100% - 36px), 340px);
    height: auto;
    filter: brightness(0) invert(1);
    opacity: .07;
    pointer-events: none;
    user-select: none;
}
.bank-row { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.bank-row > span { color: rgba(255, 255, 255, .62); font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.bank-row strong { font-weight: 700; text-align: right; overflow-wrap: anywhere; }
.bank-number { flex-direction: column; align-items: stretch; gap: 6px; padding: 12px 14px; border-radius: 12px; background: rgba(255, 255, 255, .08); }
.copy-wrap { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.copy-wrap strong { text-align: left; }
.mono { font-family: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace; font-size: 1.15rem; letter-spacing: .06em; }
.copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: none;
    height: 32px;
    padding: 0 12px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 999px;
    background: rgba(255, 255, 255, .1);
    color: #fff;
    font-size: .8rem;
    font-weight: 700;
    transition: background .15s, color .15s;
}
.copy-btn:hover { background: rgba(255, 255, 255, .2); }
.copy-btn.copied { background: #fff; border-color: transparent; color: #111; }
.copy-btn-light { border-color: var(--line); background: var(--surface); color: var(--ink); }
.copy-btn-light:hover { background: var(--soft); }
.dropzone {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin: 0;
    padding: 28px 18px;
    text-align: center;
    border: 2px dashed #cbd5ce;
    border-radius: 18px;
    background: #fafbf9;
    color: var(--ink-2);
    font-weight: 500;
    cursor: pointer;
    transition: border-color .15s, background .15s;
}
.dropzone:hover, .dropzone:focus-within, .dropzone.is-drag { border-color: var(--brand); background: var(--brand-50); }
.dropzone.has-file { border-style: solid; border-color: var(--brand); background: var(--brand-50); }
.dropzone.is-error { border-color: var(--danger); background: var(--danger-50); }
.file-input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; clip: rect(0 0 0 0); }
.dz-icon {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    margin-bottom: 8px;
    border-radius: 16px;
    background: var(--surface);
    color: var(--brand-700);
    box-shadow: var(--shadow);
}
.dz-title { color: var(--ink); font-size: 1rem; font-weight: 750; overflow-wrap: anywhere; }
.dz-hint { color: var(--muted); font-size: .82rem; }
.dz-btn {
    display: inline-flex;
    align-items: center;
    height: 36px;
    margin-top: 10px;
    padding: 0 16px;
    border-radius: 999px;
    background: var(--ink);
    color: #fff;
    font-size: .85rem;
    font-weight: 700;
}

.mini-lines { display: grid; gap: 12px; margin: 0 0 16px; padding: 0 0 16px; list-style: none; border-bottom: 1px solid var(--line); }
.mini-lines li { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.mini-thumb { width: 52px; height: 52px; overflow: hidden; border-radius: 12px; background: var(--soft); }
.mini-thumb img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.mini-name { font-size: .92rem; font-weight: 650; line-height: 1.3; }
.mini-meta { color: var(--muted); font-size: .8rem; }
.mini-price { font-size: .92rem; font-weight: 700; white-space: nowrap; }

@media (min-width: 960px) {
    .checkout-layout { grid-template-columns: minmax(0, 1fr) 390px; gap: 28px; }
    .checkout-side { position: sticky; top: var(--sticky-top); }
}

/* Success + tracking */
.narrow { max-width: 640px; margin-inline: auto; }
.success { padding: 32px 20px; text-align: center; }
@media (min-width: 640px) { .success { padding: 40px 36px; } }
.success-icon {
    width: 76px;
    height: 76px;
    display: grid;
    place-items: center;
    margin: 0 auto 20px;
    border-radius: 50%;
    color: #fff;
    background: #111;
    box-shadow: 0 0 0 10px var(--brand-50), 0 18px 30px -12px rgba(0, 0, 0, .35);
    animation: pop .45s cubic-bezier(.2, .9, .3, 1.3) both;
}
@keyframes pop { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.panel .success-title { margin: 0; font-size: 1.75rem; font-weight: 800; }
.lead { margin-top: 6px; color: var(--muted); }
.ticket { margin: 24px 0 18px; padding: 18px; border: 2px dashed #cbd5ce; border-radius: 18px; background: #fafbf9; }
.ticket-label { display: block; color: var(--muted); font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.ticket-num { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; margin: 8px 0 6px; }
.ticket-num strong { font-family: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace; font-size: clamp(1.15rem, 5vw, 1.55rem); letter-spacing: .04em; }
.ticket p { color: var(--muted); font-size: .85rem; }
.status-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; text-align: left; }
.status-item { padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.status-item > span:not(.badge) { display: block; margin-bottom: 8px; color: var(--muted); font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
@media (max-width: 440px) { .status-grid { grid-template-columns: 1fr; } }
.next-steps { display: grid; gap: 10px; margin: 22px 0; padding: 0; list-style: none; text-align: left; counter-reset: step; }
.next-steps li { display: flex; align-items: center; gap: 12px; color: var(--ink-2); font-size: .92rem; }
.next-steps li::before {
    counter-increment: step;
    content: counter(step);
    width: 28px;
    height: 28px;
    flex: none;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: var(--brand-50);
    color: var(--brand-700);
    font-size: .85rem;
    font-weight: 800;
}
.actions-row { display: grid; gap: 10px; }
@media (min-width: 520px) { .actions-row { grid-template-columns: 1fr 1fr; } }

.track-head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.track-icon {
    width: 48px;
    height: 48px;
    flex: none;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: var(--brand-50);
    color: var(--brand-700);
}
.panel .track-head h1, .panel .track-head h2 { margin: 0; }
.track-head p { color: var(--muted); font-size: .88rem; }
.kv { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 18px; }
.kv span:not(.badge) { display: block; margin-bottom: 4px; color: var(--muted); font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.kv strong { font-weight: 700; overflow-wrap: anywhere; }
.sub-title { margin: 20px 0 8px; font-size: .95rem; font-weight: 750; }
.notice-bad { margin: 12px 0; padding: 12px 14px; border-radius: 12px; background: var(--danger-50); color: #b42318; font-size: .9rem; }

.timeline { display: grid; margin: 6px 0 0; padding: 0; list-style: none; }
.timeline li { position: relative; display: flex; align-items: center; gap: 14px; padding-bottom: 18px; color: var(--muted); font-size: .92rem; font-weight: 600; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
    content: "";
    position: relative;
    z-index: 1;
    width: 22px;
    height: 22px;
    flex: none;
    border: 2px solid #d4dad3;
    border-radius: 50%;
    background: var(--surface);
}
.timeline li::after { content: ""; position: absolute; left: 10px; top: 22px; bottom: 0; width: 2px; background: #e3e7e2; }
.timeline li:last-child::after { display: none; }
.timeline li.done, .timeline li.current { color: var(--ink); }
.timeline li.done::before {
    border-color: var(--brand);
    background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5L20 7'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.timeline li.done::after { background: var(--brand); }
.timeline li.current::before { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-100); }

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--soft);
    color: var(--ink-2);
    font-size: .78rem;
    font-weight: 700;
    white-space: nowrap;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-ok { background: #f2f2f2; color: #111; }
.badge-warn { background: #fff4e0; color: #b54708; }
.badge-bad { background: #fef0ef; color: #c4320a; }
.badge-info { background: #eef3ff; color: #3538cd; }

.lines { display: grid; margin: 0; padding: 0; list-style: none; }
.lines li { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-2); min-width: 0; }
.lines li:last-child { border-bottom: 0; }
.lines li > div:last-child { font-weight: 650; white-space: nowrap; }

/* Floating cart bar (mobile) */
.cart-bar {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
    z-index: 40;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px 10px 10px;
    border-radius: 18px;
    background: var(--ink);
    color: #fff;
    box-shadow: 0 18px 40px -12px rgba(15, 26, 21, .6);
    animation: rise .35s ease both;
}
.cart-bar:hover { color: #fff; }
.cart-bar-icon { position: relative; width: 42px; height: 42px; flex: none; display: grid; place-items: center; border-radius: 12px; background: var(--brand); }
.cart-bar-icon .cart-badge { position: absolute; top: -6px; right: -6px; box-shadow: 0 0 0 2px var(--ink); }
.cart-bar-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.cart-bar-text strong { font-size: .95rem; }
.cart-bar-text small { color: rgba(255, 255, 255, .65); font-size: .78rem; }
.cart-bar-total { margin-left: auto; font-weight: 800; white-space: nowrap; }
@keyframes rise { from { transform: translateY(20px); opacity: 0; } }
body.has-cart-bar { padding-bottom: 84px; }
@media (min-width: 800px) {
    .cart-bar { display: none; }
    body.has-cart-bar { padding-bottom: 0; }
}

/* Footer */
.site-footer {
    position: relative;
    overflow: hidden;
    margin-top: 32px;
    padding-top: 22px;
    color: rgba(255, 255, 255, .72);
    font-size: .9rem;
    background: #000;
    border-top: 1px solid #1c1c1c;
}
.site-footer > .wrap { position: relative; }
.footer-watermark {
    position: absolute;
    left: 50%;
    bottom: clamp(10px, 2vw, 22px);
    width: min(94%, 1100px);
    height: auto;
    transform: translateX(-50%);
    filter: brightness(0) invert(1);
    opacity: .05;
    pointer-events: none;
    user-select: none;
}
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 20px; padding: 24px 0 20px; }
.footer-brand { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; }
.footer-brand .brand { color: #fff; font-size: 1.15rem; }
.footer-brand p { flex-basis: 100%; order: 3; max-width: 40ch; margin: 0; color: rgba(255, 255, 255, .62); font-size: .86rem; }
.footer-contact { grid-column: 1 / -1; }
.footer-contact .footer-list { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-footer h4 { margin-bottom: 10px; color: #fff; font-size: .74rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.footer-list { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.footer-list li { display: flex; align-items: flex-start; gap: 10px; }
.footer-list .icon { margin-top: 2px; color: var(--mint); }
.footer-list a { transition: color .15s; }
.footer-list a:hover { color: #fff; }
.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px 16px;
    padding: 14px 0 18px;
    border-top: 1px solid rgba(255, 255, 255, .08);
    color: rgba(255, 255, 255, .5);
    font-size: .8rem;
}
.footer-install {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 34px;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    color: #fff;
    font-size: .8rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s, border-color .15s;
}
.footer-install:hover { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .45); }
.footer-install[hidden] { display: none; }
@media (max-width: 759px) {
    .site-footer { padding-top: 8px; }
    .footer-watermark { display: none; }
    .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 24px 0 22px; }
    .footer-brand { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 10px; text-align: center; }
    .footer-brand .brand { grid-area: auto; }
    .footer-brand .brand-logo { height: 30px; }
    .footer-brand p { order: 0; max-width: 32ch; line-height: 1.55; }
    .footer-help .footer-list {
        gap: 0;
        overflow: hidden;
        border: 1px solid rgba(255, 255, 255, .08);
        border-radius: 14px;
        background: rgba(255, 255, 255, .04);
    }
    .footer-help .footer-list li + li { border-top: 1px solid rgba(255, 255, 255, .07); }
    .footer-help .footer-list a {
        display: flex;
        flex: 1;
        align-items: center;
        justify-content: space-between;
        min-height: 50px;
        padding: 0 14px 0 16px;
        color: rgba(255, 255, 255, .86);
        font-weight: 600;
    }
    .footer-help .footer-list a:active { background: rgba(255, 255, 255, .06); }
    .footer-help .footer-list a .icon { margin: 0; color: rgba(255, 255, 255, .82); }
    .footer-contact { text-align: center; }
    .footer-contact .footer-list { display: grid; justify-items: center; }
    .footer-contact .footer-list li { justify-content: center; line-height: 1.55; }
    .footer-bottom { flex-direction: column; justify-content: center; gap: 6px; padding: 16px 0 20px; text-align: center; }
}
@media (min-width: 760px) {
    .footer-list a .icon { display: none; }
    .footer-grid { grid-template-columns: 2fr 1fr 1fr; gap: 32px; padding: 30px 0 24px; }
    .footer-brand { grid-column: auto; display: block; }
    .footer-brand p { margin-top: 10px; }
    .footer-contact { grid-column: auto; }
    .footer-contact .footer-list { display: grid; gap: 7px; }
}

/* Admin */
.login-wrap {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px 16px;
    background: radial-gradient(60% 50% at 50% 0%, var(--brand-50), transparent), var(--bg);
}
.login-card { width: min(420px, 100%); padding: 28px; box-shadow: var(--shadow-lg); }

.login-page { background: var(--bg); }
.login-shell { min-height: 100vh; display: grid; }
.login-side { display: none; }
.login-main {
    display: grid;
    place-items: center;
    padding: 32px 18px;
    background:
        radial-gradient(70% 45% at 50% 0%, var(--brand-50), transparent 70%),
        var(--bg);
}
.login-main .login-card {
    width: min(410px, 100%);
    padding: 34px 28px 26px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}
.login-logo { display: inline-flex; margin-bottom: 26px; }
.login-logo img { height: 30px; width: auto; }
.login-card h1 { margin: 0; font-size: 1.6rem; letter-spacing: -.03em; }
.login-sub { margin: 6px 0 24px; color: var(--muted); font-size: .94rem; }
.login-card .alert { margin-bottom: 18px; }
.login-card .btn-lg { margin-top: 8px; }

.input-icon { position: relative; }
.input-icon > .icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    pointer-events: none;
    transition: color .15s;
}
.input-icon input { padding-left: 42px; }
.input-icon:focus-within > .icon { color: var(--brand); }
.input-icon:has(.pw-toggle) input { padding-right: 48px; }
.pw-toggle {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
}
.pw-toggle:hover { background: var(--soft); color: var(--ink); }
.pw-toggle[aria-pressed="true"] { color: var(--brand); }

.login-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    font-size: .85rem;
}
.login-foot a, .login-secure { display: inline-flex; align-items: center; gap: 6px; }
.login-foot a { color: var(--ink-2); font-weight: 600; }
.login-foot a:hover { color: var(--brand-700); }
.login-secure { color: var(--muted); }
.login-secure .icon { color: var(--brand); }

@media (min-width: 900px) {
    .login-shell { grid-template-columns: minmax(380px, 1fr) minmax(460px, 1.1fr); }
    .login-side {
        position: relative;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        gap: 40px;
        padding: 48px 56px;
        background: var(--ink);
        color: #fff;
    }
    .login-side::after {
        content: "";
        position: absolute;
        right: -140px;
        bottom: -140px;
        width: 420px;
        height: 420px;
        border: 60px solid rgba(255, 255, 255, .04);
        border-radius: 50%;
    }
    .login-side-logo { position: relative; height: 32px; width: auto; align-self: flex-start; filter: brightness(0) invert(1); }
    .login-side-name { font-size: 1.4rem; font-weight: 800; }
    .login-side-copy { position: relative; max-width: 420px; }
    .login-side-copy .eyebrow {
        display: inline-block;
        margin-bottom: 14px;
        color: var(--mint);
        font-size: .78rem;
        font-weight: 750;
        letter-spacing: .12em;
        text-transform: uppercase;
    }
    .login-side-copy h2 { margin: 0 0 28px; font-size: 2.3rem; line-height: 1.12; letter-spacing: -.035em; }
    .login-points { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
    .login-points li { display: flex; align-items: center; gap: 12px; color: rgba(255, 255, 255, .82); font-weight: 550; }
    .login-points span {
        width: 38px;
        height: 38px;
        display: grid;
        place-items: center;
        border: 1px solid rgba(255, 255, 255, .1);
        border-radius: 11px;
        background: rgba(255, 255, 255, .06);
        color: var(--mint);
    }
    .login-side-foot { position: relative; margin: 0; color: rgba(255, 255, 255, .78); font-size: .82rem; }
    .login-main { background: var(--surface); }
    .login-main .login-card { border: 0; box-shadow: none; padding: 0; }
    .login-main .login-logo { display: none; }
}

.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px 14px; border-bottom: 1px solid var(--line-2); text-align: left; vertical-align: middle; font-size: .9rem; }
th { background: #fafbf9; color: var(--muted); font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
tbody tr:hover { background: #fafbf9; }
tbody tr:last-child td { border-bottom: 0; }
td a { color: var(--brand-700); font-weight: 600; }
.nowrap { white-space: nowrap; }
.thumb-sm { width: 44px; height: 44px; object-fit: contain; border-radius: 10px; background: #fff; }
.filters { display: grid; gap: 0 12px; margin: 0 0 16px; }
.filters .btn { margin-bottom: 16px; }
.inline { display: inline-flex; align-items: center; gap: 8px; margin-left: 8px; }
.pager { display: flex; gap: 8px; margin: 16px 0; }
.receipt-preview { width: 100%; max-width: 280px; margin: 10px 0; border: 1px solid var(--line); border-radius: 12px; }
.split { display: grid; gap: 16px; }
.row-actions { display: grid; gap: 12px; }
.order-no { margin: 0 0 8px; font-size: 1.2rem; font-weight: 800; letter-spacing: .01em; }
.order-no a { color: var(--brand-700); }

a.receipt-frame { cursor: zoom-in; }

.confirm-pop {
    width: min(420px, calc(100vw - 32px));
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--ink);
}
.confirm-pop::backdrop { background: rgba(8, 12, 10, .55); }
.confirm-pop-card {
    overflow: hidden;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .28);
}
.confirm-pop-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 14px 14px 18px;
    border-bottom: 1px solid var(--line);
}
.confirm-pop-kicker {
    margin: 0 0 2px;
    color: var(--muted);
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.confirm-pop-bar strong { display: block; font-size: .98rem; font-weight: 750; }
.confirm-pop-x {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 999px;
    background: var(--soft);
    color: var(--ink);
}
.confirm-pop-x:hover { background: #111; color: #fff; }
.confirm-pop-body {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    align-items: start;
    padding: 18px;
}
.confirm-pop-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: var(--danger-50);
    color: var(--danger);
}
.confirm-pop-body p {
    margin: 0;
    color: var(--ink-2);
    font-size: .92rem;
    line-height: 1.45;
}
.confirm-pop-actions {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 18px 18px;
}
.confirm-pop-ok { min-width: 108px; }

.receipt-pop {
    width: min(860px, calc(100vw - 32px));
    max-height: calc(100vh - 32px);
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--ink);
}
.receipt-pop::backdrop { background: rgba(8, 12, 10, .72); }
.receipt-pop-card {
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 32px);
    overflow: hidden;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .35);
}
.receipt-pop-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 14px 14px 18px;
    border-bottom: 1px solid var(--line);
}
.receipt-pop-kicker {
    margin: 0 0 2px;
    color: var(--muted);
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.receipt-pop-bar strong { display: block; font-size: .98rem; font-weight: 750; letter-spacing: 0; }
.receipt-pop-x {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 999px;
    background: var(--soft);
    color: var(--ink);
}
.receipt-pop-x:hover { background: #111; color: #fff; }
.receipt-pop-stage {
    display: grid;
    place-items: center;
    min-height: 220px;
    overflow: auto;
    background: #111;
}
.receipt-pop-stage img {
    width: 100%;
    max-height: calc(100vh - 120px);
    object-fit: contain;
    background: #111;
}
.receipt-pop-stage iframe {
    width: 100%;
    height: min(78vh, 820px);
    border: 0;
    background: #fff;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
