/* ==========================================================
   Storefront — phone layout on every screen (desktop shows the same phone-width view with the bottom bar).
   Generated from app.css: all desktop (min-width > 480px) media queries are disabled. app.css itself stays for the admin panel.
   No inline styles are used anywhere (Content-Security-Policy).
   ========================================================== */
:root {
    --bg-1: #eef2ff;
    --bg-2: #ecfdf5;
    --text: #0f172a;
    --muted: #475569;
    --glass: rgba(255, 255, 255, .58);
    --glass-strong: rgba(255, 255, 255, .86);
    --glass-border: rgba(255, 255, 255, .75);
    --line: rgba(15, 23, 42, .10);
    --shadow: 0 10px 34px rgba(49, 46, 129, .13);
    --primary: #4f46e5;
    --primary-grad: linear-gradient(135deg, #4f46e5 0%, #0891b2 60%, #10b981 100%);
    --danger: #e11d48;
    --warn: #b45309;
    --ok: #047857;
    --info: #1d4ed8;
    --radius: 20px;
    --radius-sm: 12px;
    --bottom-h: 68px;
    --font-en: 'Anek Bangla', 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Noto Sans Bengali', sans-serif;
    --font-bn: 'Anek Bangla', 'Noto Sans Bengali', 'Hind Siliguri', 'Kalpurush', system-ui, sans-serif;
    --font-num: 'Anek Bangla', 'Noto Sans Bengali', 'Hind Siliguri', 'Inter', system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg-1: #0b1020;
        --bg-2: #062a24;
        --text: #e5e7eb;
        --muted: #9ca3af;
        --glass: rgba(30, 41, 59, .55);
        --glass-strong: rgba(30, 41, 59, .88);
        --glass-border: rgba(255, 255, 255, .10);
        --line: rgba(255, 255, 255, .12);
        --shadow: 0 10px 34px rgba(0, 0, 0, .45);
        --primary: #818cf8;
        --danger: #fb7185;
        --warn: #fbbf24;
        --ok: #34d399;
        --info: #93c5fd;
    }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--font-en);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: linear-gradient(135deg, var(--bg-1), var(--bg-2)) fixed;
    position: relative;
    isolation: isolate;
    padding-bottom: calc(var(--bottom-h) + env(safe-area-inset-bottom));
}
body.lang-bn { font-family: var(--font-bn); font-variant-numeric: lining-nums; }

/* soft colored blobs behind the glass */
body::before, body::after {
    content: "";
    position: fixed;
    z-index: -1;
    width: 46vmax;
    height: 46vmax;
    border-radius: 50%;
    filter: blur(70px);
    opacity: .35;
    pointer-events: none;
}
body::before { top: -14vmax; left: -12vmax; background: radial-gradient(circle, #6366f1, transparent 70%); }
body::after  { bottom: -16vmax; right: -12vmax; background: radial-gradient(circle, #10b981, transparent 70%); }

img, svg { max-width: 100%; }
a { color: var(--primary); text-decoration: none; }

/* pictures and links: no long-press menu / drag / selection on the storefront */
body:not(.admin) img, body:not(.admin) a {
    -webkit-touch-callout: none;
    -webkit-user-drag: none;
}
body:not(.admin) img { -webkit-user-select: none; user-select: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5rem; }
p { margin: 0 0 1rem; }
.muted { color: var(--muted); }

:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; border-radius: 6px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1.25em; height: 1.25em; flex-shrink: 0; vertical-align: middle; }
.skip-link {
    position: absolute; left: 12px; top: -60px; z-index: 100;
    background: var(--primary); color: #fff; padding: .6rem 1rem; border-radius: 10px;
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.main { min-height: 60vh; }
.section { padding: 16px 0; }

/* ---------- glass ---------- */
.glass {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow);
    border-radius: var(--radius);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    backdrop-filter: blur(18px) saturate(160%);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .glass { background: var(--glass-strong); }
}

/* ---------- buttons & forms ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    min-height: 46px; padding: .7rem 1.4rem;
    border: 1px solid transparent; border-radius: 999px;
    font: inherit; font-weight: 600; cursor: pointer; text-decoration: none;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--primary-grad); color: #fff; box-shadow: 0 8px 20px rgba(79, 70, 229, .3); }
.btn-ghost { background: var(--glass); border-color: var(--glass-border); color: var(--text); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }

.input, .select, .textarea {
    width: 100%; min-height: 46px; padding: .7rem 1rem;
    font: inherit; font-size: 16px; color: var(--text);
    background: var(--glass-strong); border: 1px solid var(--line); border-radius: var(--radius-sm);
}
.textarea { min-height: 110px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { outline: 3px solid rgba(79, 70, 229, .35); border-color: var(--primary); }
.field { margin-bottom: 1rem; }
.label { display: block; margin-bottom: .35rem; font-weight: 600; font-size: .92rem; }

.chip {
    display: inline-block; padding: .3rem .9rem; margin-bottom: 1rem;
    font-size: .85rem; font-weight: 600; color: var(--primary);
    background: rgba(79, 70, 229, .12); border-radius: 999px;
}
.badge {
    position: absolute; top: -4px; right: -4px;
    min-width: 20px; height: 20px; padding: 0 5px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: .72rem; font-weight: 700; line-height: 1; color: #fff;
    background: var(--danger); border-radius: 999px;
}

.alert {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    margin: 12px 0 0; padding: .8rem 1rem; border-radius: var(--radius-sm);
    border: 1px solid var(--line); background: var(--glass-strong);
}
.alert-success { border-color: var(--ok); color: var(--ok); }
.alert-error   { border-color: var(--danger); color: var(--danger); }
.alert-warning { border-color: var(--warn); color: var(--warn); }
.alert-info    { border-color: var(--info); color: var(--info); }
.alert-close { background: none; border: 0; color: inherit; font-size: 1.4rem; line-height: 1; cursor: pointer; padding: 0 .25rem; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; padding: 10px 0 0; }
.header-inner {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 10px 14px;
}
.site-header.is-scrolled .header-inner { box-shadow: 0 14px 40px rgba(49, 46, 129, .22); }

.brand { display: inline-flex; align-items: center; gap: 10px; min-width: 0; color: var(--text); font-weight: 700; font-size: 1.15rem; }
.brand:hover { text-decoration: none; }
.brand-mark {
    display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
    width: 40px; height: 40px; border-radius: 12px; color: #fff; font-weight: 700;
    background: var(--primary-grad);
}
.brand-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.header-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.icon-btn {
    position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    min-height: 44px; min-width: 44px; padding: 0 .85rem;
    color: var(--text); font: inherit; font-weight: 500; cursor: pointer;
    background: var(--glass-strong); border: 1px solid var(--line); border-radius: 999px;
}
.icon-btn:hover { text-decoration: none; border-color: var(--primary); }
.icon-btn.icon-only { padding: 0; }
.hide-mobile { display: none; }

.search-panel { margin-top: 8px; padding: 8px; }
.search-panel[hidden] { display: none; }
.search { position: relative; display: flex; align-items: center; gap: 8px; margin: 0; }
.search > .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search-input {
    flex: 1; min-width: 0; min-height: 44px; padding: .6rem 1rem .6rem 2.6rem;
    font: inherit; font-size: 16px; color: var(--text);
    background: var(--glass-strong); border: 1px solid var(--line); border-radius: 999px;
}
.search-input:focus { outline: 3px solid rgba(79, 70, 229, .35); border-color: var(--primary); }

/* ---------- bottom navigation (mobile) ---------- */
.bottom-nav {
    position: fixed; left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 60;
    display: flex; justify-content: space-around; align-items: stretch;
    height: calc(var(--bottom-h) - 8px); padding: 6px; border-radius: 24px;
}
.bottom-link {
    position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
    color: var(--muted); font-size: .72rem; font-weight: 600; border-radius: 18px;
}
.bottom-link:hover { text-decoration: none; }
.bottom-link .icon { width: 1.4em; height: 1.4em; }
.bottom-link.is-active { color: #fff; background: var(--primary-grad); }
.bottom-link .badge { top: 2px; right: calc(50% - 26px); }

/* ---------- product feed ---------- */
.result-title { font-size: 1.15rem; margin: 4px 2px 14px; }
.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.product-card {
    position: relative; display: flex; flex-direction: column; overflow: hidden; color: var(--text);
    background: var(--glass-strong); border: 1px solid var(--glass-border);
    border-radius: 18px; box-shadow: 0 4px 14px rgba(49, 46, 129, .10);
    transition: transform .15s ease, box-shadow .15s ease;
}
.product-card:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(49, 46, 129, .20); }
.product-media {
    position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden;
    aspect-ratio: 1 / 1; background: linear-gradient(135deg, rgba(79, 70, 229, .08), rgba(16, 185, 129, .10));
    color: var(--muted);
}
.product-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.product-card:hover .product-media img { transform: scale(1.04); }
.ph { width: 2.2rem; height: 2.2rem; opacity: .45; }
.has-img > .ph { display: none; }
.has-img.is-broken > .ph { display: block; }
.has-img.is-broken > img { display: none; }
.product-card.is-out .product-media img { opacity: .5; }
.tag {
    position: absolute; top: 6px; left: 6px; z-index: 1; padding: 1px 8px;
    font-size: .68rem; font-weight: 800; line-height: 1.6; color: #fff; border-radius: 999px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
}
.tag-off { background: linear-gradient(135deg, #e11d48, #f97316); }
.tag-out { background: #475569; }
.product-body { display: flex; flex-direction: column; gap: 4px; padding: 12px 12px 14px; }
.product-name {
    min-height: 2.5em; font-size: .84rem; font-weight: 700; line-height: 1.25;
    display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.product-unit { font-size: .7rem; color: var(--muted); }
.price-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 6px; margin-top: 2px; }
.price { font-size: 1.02rem; font-weight: 800; color: var(--primary); }
.price-old { font-size: .72rem; color: var(--muted); }
.stock-low { font-size: .68rem; font-weight: 700; color: var(--warn); }
.card-btn {
    margin-top: 6px; padding: 6px 8px; text-align: center; font-size: .76rem; font-weight: 700; color: #fff;
    background: var(--primary-grad); border-radius: 999px; box-shadow: 0 4px 12px rgba(79, 70, 229, .28);
}
.product-card.is-out .card-btn { background: #94a3b8; box-shadow: none; }

/* ---------- money (taka sign + clear digits, no letter-spacing) ---------- */
.money { display: inline-flex; align-items: baseline; gap: .1em; white-space: nowrap; letter-spacing: 0; font-family: var(--font-num); }
.money .cur { font-size: .8em; font-weight: 700; }
.money .amt { font-variant-numeric: lining-nums tabular-nums; font-feature-settings: "lnum" 1, "tnum" 1; }

/* cut-off (old) price: a red slash through the number */
.pd-old .money, .price-old .money { position: relative; }
.pd-old .money::after, .price-old .money::after {
    content: ""; position: absolute; left: -3px; right: -3px; top: 50%; height: 2px;
    background: var(--danger); border-radius: 2px; transform: rotate(-7deg); opacity: .9;
}
.price-old .money::after { height: 1.5px; }

/* ---------- product detail ---------- */
.pdp { padding-bottom: 110px; }
.back-link {
    display: inline-flex; align-items: center; gap: 8px; min-height: 42px; margin: 4px 0 14px; padding: 0 18px 0 8px;
    font-size: .95rem; font-weight: 700; color: var(--text); background: var(--glass-strong);
    border: 1px solid var(--glass-border); border-radius: 999px; box-shadow: 0 4px 14px rgba(49, 46, 129, .12);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    transition: transform .15s ease, box-shadow .15s ease;
}
.back-link:hover { text-decoration: none; transform: translateX(-2px); box-shadow: 0 8px 20px rgba(49, 46, 129, .2); }
.back-link:active { transform: scale(.97); }
.back-link:focus-visible { outline: 3px solid rgba(79, 70, 229, .45); outline-offset: 2px; }
.back-ic { position: relative; display: inline-block; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--primary-grad); box-shadow: 0 3px 8px rgba(79, 70, 229, .35); }
.back-ic::before {
    content: ""; position: absolute; top: 50%; left: 50%; width: 8px; height: 8px;
    border-left: 2.5px solid #fff; border-bottom: 2.5px solid #fff; border-radius: 1px;
    transform: translate(-30%, -50%) rotate(45deg);
}
.pd { display: grid; gap: 14px; }
.pd-media {
    position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden;
    aspect-ratio: 1 / 1; border-radius: 24px; border: 1px solid var(--glass-border); box-shadow: var(--shadow);
    background: #fff; color: var(--muted);
}
.pd-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 14px; display: block; }
.pd-media .ph { width: 4rem; height: 4rem; }
.pd-media .tag { top: 14px; left: 14px; font-size: .85rem; padding: 3px 14px; }
.pd-info { padding: 20px 18px; }
.pd-title { margin: 0 0 10px; font-size: 1.4rem; font-weight: 800; line-height: 1.3; letter-spacing: 0; }
.pd-price-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.pd-price { font-size: 2rem; font-weight: 800; line-height: 1.15; color: var(--primary); }
.pd-old { font-size: 1.05rem; color: var(--muted); }
.pd-off { padding: 3px 12px; font-size: .8rem; font-weight: 800; color: #fff; border-radius: 999px; background: linear-gradient(135deg, #e11d48, #f97316); box-shadow: 0 4px 12px rgba(225, 29, 72, .28); }
.pd-save { margin: 6px 0 0; font-size: .9rem; font-weight: 700; color: var(--ok); }
.pd-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; }
.badge-pill {
    display: inline-flex; align-items: center; padding: 4px 14px; font-size: .82rem; font-weight: 700;
    color: var(--text); background: var(--glass-strong); border: 1px solid var(--line); border-radius: 999px;
}
.badge-ok { color: var(--ok); border-color: var(--ok); }
.badge-low { color: var(--warn); border-color: var(--warn); }
.badge-out { color: var(--danger); border-color: var(--danger); }

.pd-buy { margin-top: 16px; padding: 12px 14px; border-radius: 16px; background: var(--glass-strong); border: 1px solid var(--line); }
.pd-buy-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; }
.pd-total-row { justify-content: space-between; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); }
.pd-label { font-weight: 700; }
.pd-hint { font-size: .78rem; color: var(--muted); }
.pd-total { font-size: 1.35rem; font-weight: 800; color: var(--primary); }
.qty { display: inline-flex; align-items: center; margin-left: auto; border: 1px solid var(--line); border-radius: 999px; background: var(--glass-strong); overflow: hidden; }
.qty-btn {
    width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
    font: inherit; font-size: 1.4rem; font-weight: 700; line-height: 1; color: var(--primary);
    background: none; border: 0; cursor: pointer; touch-action: manipulation;
}
.qty-btn:hover { background: rgba(79, 70, 229, .10); }
.qty-btn:active { background: rgba(79, 70, 229, .20); }
.qty-btn[disabled] { opacity: .35; cursor: not-allowed; background: none; }
.qty-btn:focus-visible { outline: 3px solid rgba(79, 70, 229, .35); outline-offset: -3px; }
.qty-val { min-width: 2.6rem; text-align: center; font-size: 1.1rem; font-weight: 800; font-family: var(--font-num); }

.trust { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; }
.trust-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: var(--glass-strong); border: 1px solid var(--line); }
.trust-ic { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 12px; color: #fff; background: var(--primary-grad); }
.trust-ic .icon { width: 1.15rem; height: 1.15rem; }
.trust-tx { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.trust-tx strong { font-size: .92rem; font-weight: 700; }
.trust-tx small { font-size: .78rem; color: var(--muted); }

.pd-sub { margin: 20px 0 6px; font-size: 1.05rem; font-weight: 800; }
.pd-desc { margin: 0; line-height: 1.75; color: var(--text); overflow-wrap: anywhere; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
    padding: 5px 14px; font-size: .84rem; font-weight: 600; color: var(--primary);
    background: var(--glass-strong); border: 1px solid var(--line); border-radius: 999px;
}
.chip:hover { text-decoration: none; border-color: var(--primary); }

/* floating action buttons: no background panel, only the two buttons */
.pd-bar {
    position: fixed; z-index: 55; left: 14px; right: 14px; margin: 0 auto; max-width: 560px;
    bottom: calc(var(--bottom-h) + 14px + env(safe-area-inset-bottom));
    display: flex; gap: 10px; pointer-events: none;
}
.pd-bar .btn {
    pointer-events: auto; flex: 1 1 0; min-width: 0; min-height: 52px; padding: 0 10px; gap: .45rem;
    font-size: clamp(.8rem, 3.7vw, 1rem); font-weight: 800; white-space: nowrap; border-radius: 16px;
    position: relative; overflow: hidden; touch-action: manipulation;
}
.pd-bar .btn > span { overflow: hidden; text-overflow: ellipsis; }
.pd-bar .icon { flex: none; width: 1.3em; height: 1.3em; }
.btn-cart {
    color: var(--primary); background: #fff; border: 2px solid var(--primary);
    box-shadow: 0 10px 24px rgba(15, 23, 42, .22);
}
.btn-cart:hover { background: #f5f3ff; }
.btn-buy { border: 0; box-shadow: 0 10px 26px rgba(79, 70, 229, .45); }
.btn-buy::after {
    content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .35), transparent);
    transform: skewX(-20deg); animation: btn-shine 3.4s ease-in-out infinite;
}
@keyframes btn-shine { 0%, 60% { left: -60%; } 100% { left: 140%; } }
.pd-bar .btn.is-loading { opacity: .75; pointer-events: none; }
.pd-bar .btn.is-done { background: var(--ok); border-color: var(--ok); color: #fff; }
.pd-bar .btn[disabled] { filter: grayscale(.7); box-shadow: none; animation: none; }
.pd-bar .btn[disabled]::after { display: none; }
.btn:focus-visible { outline: 3px solid rgba(79, 70, 229, .45); outline-offset: 2px; }

.badge.is-bump { animation: badge-bump .35s ease; }
@keyframes badge-bump { 40% { transform: scale(1.4); } }

.toast {
    position: fixed; z-index: 90; left: 50%; bottom: calc(var(--bottom-h) + 82px + env(safe-area-inset-bottom));
    transform: translate(-50%, 12px); max-width: calc(100vw - 32px); padding: 10px 18px;
    font-size: .9rem; font-weight: 600; color: #fff; background: rgba(15, 23, 42, .92);
    border-radius: 999px; box-shadow: 0 8px 24px rgba(0, 0, 0, .3); opacity: 0; pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
}
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }
.toast.is-error { background: rgba(190, 18, 60, .95); }
.toast.is-ok { background: rgba(4, 120, 87, .95); }

.related { margin-top: 26px; }
.related-title { margin: 0 2px 12px; font-size: 1.1rem; font-weight: 800; }

.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; margin: 22px 0 6px; }

.empty-box { max-width: 460px; margin: 40px auto; padding: 36px 24px; text-align: center; }
.empty-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 64px; height: 64px; margin-bottom: 14px; border-radius: 20px; color: #fff;
    background: var(--primary-grad);
}
.empty-icon .icon { width: 1.8rem; height: 1.8rem; }
.empty-title { font-size: 1.2rem; }

/* ---------- login / register / verify ---------- */
.auth-wrap { max-width: 440px; margin: 8px auto 0; }
.auth-card { padding: 26px 20px; }
.auth-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 52px; height: 52px; margin-bottom: 12px; border-radius: 16px; color: #fff;
    background: var(--primary-grad);
}
.auth-title { font-size: 1.5rem; margin-bottom: .25rem; }
.auth-sub { margin-bottom: 1.25rem; }
.btn-google { background: #fff; color: #1f2937; border-color: rgba(15, 23, 42, .15); box-shadow: 0 2px 8px rgba(15, 23, 42, .08); }
.btn-google .icon { width: 1.3em; height: 1.3em; }
.divider { display: flex; align-items: center; gap: 12px; margin: 1.1rem 0; color: var(--muted); font-size: .9rem; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.input-icon { position: relative; }
.input-icon > .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.input-icon .input { padding-left: 2.7rem; }
.input-icon .input.has-toggle { padding-right: 3rem; }
.pw-toggle {
    position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; color: var(--muted); background: none; border: 0; border-radius: 999px; cursor: pointer;
}
.pw-toggle:hover { color: var(--text); }
.hint { display: block; margin-top: .3rem; font-size: .82rem; }
.code-input { text-align: center; font-size: 1.7rem; font-weight: 600; letter-spacing: .45em; padding-left: 1rem; }
.resend-form { margin-top: .75rem; }
.form-foot { margin: 1.25rem 0 0; text-align: center; font-size: .95rem; }

/* ---------- profile ---------- */
.account-wrap { max-width: 560px; margin: 0 auto; }
.profile-head { display: flex; align-items: center; gap: 14px; padding: 18px; }
.avatar {
    display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
    width: 56px; height: 56px; border-radius: 18px; color: #fff; font-size: 1.4rem; font-weight: 700;
    background: var(--primary-grad);
}
.profile-info { min-width: 0; }
.profile-name { font-size: 1.25rem; margin: 0; overflow-wrap: anywhere; }
.profile-sub { margin: 0; overflow-wrap: anywhere; }
.profile-guest { padding: 24px 20px; text-align: center; }
.guest-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 1rem; }
.panel { margin-top: 12px; padding: 16px; }
.panel-title { display: flex; align-items: center; gap: 8px; margin-bottom: .75rem; font-size: 1rem; }
.seg { display: flex; gap: 8px; }
.seg-item {
    flex: 1; padding: .7rem 1rem; text-align: center; font-weight: 600; color: var(--text);
    background: var(--glass-strong); border: 1px solid var(--line); border-radius: 999px;
}
.seg-item:hover { text-decoration: none; border-color: var(--primary); }
.seg-item.is-active { color: #fff; background: var(--primary-grad); border-color: transparent; }
.info-row { display: flex; align-items: flex-start; gap: 10px; margin: 0; padding: 6px 0; color: var(--text); }
.info-row .icon { margin-top: .2em; color: var(--muted); }
.logout-form { margin: 12px 0 0; }
.copyright { margin: 20px 0 0; text-align: center; font-size: .88rem; }

/* ---------- error page ---------- */
.error-box { max-width: 520px; margin: 40px auto; padding: 36px 24px; text-align: center; }
.error-code {
    margin: 0; font-size: 4.5rem; font-weight: 700; line-height: 1.1;
    background: var(--primary-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.error-title { font-size: 1.5rem; }

/* ---------- cart page ---------- */
.cartp { padding-bottom: 110px; }
.cart-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 4px 2px 14px; }
.cart-title { margin: 0; font-size: 1.6rem; font-weight: 800; line-height: 1.2; letter-spacing: 0; }
.cart-count { display: inline-block; margin-top: 4px; padding: 2px 12px; font-size: .8rem; font-weight: 700; color: var(--primary); background: var(--glass-strong); border: 1px solid var(--line); border-radius: 999px; }
.cart-clear {
    display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; font: inherit; font-size: .85rem; font-weight: 700;
    color: var(--danger); background: var(--glass-strong); border: 1px solid var(--line); border-radius: 999px; cursor: pointer; touch-action: manipulation;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.cart-clear .icon { width: 1.05em; height: 1.05em; }
.cart-clear:hover { border-color: var(--danger); }
.cart-clear.is-armed { color: #fff; background: var(--danger); border-color: var(--danger); }
.cart-clear:focus-visible { outline: 3px solid rgba(225, 29, 72, .35); outline-offset: 2px; }

.cart-grid { display: grid; gap: 14px; }
.cart-list { display: grid; gap: 10px; align-content: start; }
.cart.is-busy .cart-list { opacity: .7; }

.ci {
    position: relative; display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 12px; padding: 12px;
    background: var(--glass-strong); border: 1px solid var(--glass-border); border-radius: 18px; box-shadow: 0 6px 18px rgba(49, 46, 129, .10);
    transition: opacity .2s ease, transform .2s ease;
}
.ci.is-gone { opacity: 0; transform: translateX(24px); }
.ci-media {
    position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; width: 92px; height: 92px;
    border-radius: 14px; border: 1px solid var(--line); background: #fff; color: var(--muted);
}
.ci-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 6px; display: block; }
.ci-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding-right: 34px; }
.ci-name {
    font-size: .95rem; font-weight: 700; line-height: 1.3; color: var(--text);
    display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ci-name:hover { text-decoration: none; color: var(--primary); }
.ci-unit { font-size: .75rem; color: var(--muted); }
.ci-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 8px; margin-top: 2px; }
.ci-now { font-size: 1rem; font-weight: 800; color: var(--primary); }
.ci-old { font-size: .78rem; color: var(--muted); }
.ci-old .money, .ci-now .money { position: relative; }
.ci-old .money::after {
    content: ""; position: absolute; left: -3px; right: -3px; top: 50%; height: 1.5px;
    background: var(--danger); border-radius: 2px; transform: rotate(-7deg); opacity: .9;
}
.ci-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.ci-line { font-size: 1.05rem; font-weight: 800; color: var(--text); }
.ci-remove {
    position: absolute; top: 8px; right: 8px; width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center;
    color: var(--muted); background: none; border: 0; border-radius: 50%; cursor: pointer; touch-action: manipulation;
    transition: background .15s ease, color .15s ease;
}
.ci-remove .icon { width: 1.1rem; height: 1.1rem; }
.ci-remove:hover { color: var(--danger); background: rgba(225, 29, 72, .10); }
.ci-remove:focus-visible { outline: 3px solid rgba(225, 29, 72, .35); outline-offset: 0; }
.qty-sm { margin-left: 0; }
.qty-sm .qty-btn { width: 38px; height: 38px; font-size: 1.25rem; }
.qty-sm .qty-val { min-width: 2.2rem; font-size: 1rem; }

.cs { padding: 18px; }
.cs-title { margin: 0 0 12px; font-size: 1.1rem; font-weight: 800; }
.cs-rows { margin: 0; }
.cs-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 8px 0; }
.cs-row[hidden] { display: none; }
.cs-row dt { font-size: .92rem; color: var(--muted); font-weight: 600; }
.cs-row dd { margin: 0; font-weight: 700; }
.cs-note { font-size: .82rem; color: var(--muted); font-weight: 600; text-align: right; }
.cs-save dt, .cs-save dd { color: var(--ok); }
.cs-total { margin-top: 4px; padding-top: 12px; border-top: 1px dashed var(--line); }
.cs-total dt { font-size: 1rem; color: var(--text); font-weight: 800; }
.cs-total dd { font-size: 1.5rem; font-weight: 800; color: var(--primary); }
.cs-cta { display: none; width: 100%; margin-top: 14px; }
.cs-continue { display: block; margin-top: 12px; text-align: center; font-size: .92rem; font-weight: 700; color: var(--primary); }
.trust-sm { margin-top: 16px; }
.trust-sm .trust-item { padding: 8px 10px; }
.trust-sm .trust-ic { width: 34px; height: 34px; }

.btn-checkout { min-height: 54px; border: 0; border-radius: 16px; font-size: 1.02rem; font-weight: 800; box-shadow: 0 10px 26px rgba(79, 70, 229, .42); touch-action: manipulation; }
.btn-checkout .icon { width: 1.2em; height: 1.2em; }
.btn-checkout:focus-visible { outline: 3px solid rgba(79, 70, 229, .45); outline-offset: 2px; }

/* stock status chip (dot + text) */
.stock-chip {
    align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; padding: 2px 10px 2px 8px;
    font-size: .74rem; font-weight: 700; line-height: 1.6; border-radius: 999px; border: 1px solid currentColor; background: var(--glass-strong);
}
.stock-chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.stock-chip.is-in { color: var(--ok); }
.stock-chip.is-low { color: var(--warn); }
.stock-chip.is-out { color: var(--danger); }
.ci.is-out .ci-media img { opacity: .45; filter: grayscale(.8); }
.ci.is-out .ci-now { color: var(--muted); }

/* details button inside the cart item */
.btn-details {
    align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; margin-top: 10px; padding: 0 8px 0 16px;
    font-size: .88rem; font-weight: 700; color: #fff; background: var(--primary-grad); border-radius: 999px;
    box-shadow: 0 6px 16px rgba(79, 70, 229, .32); touch-action: manipulation;
    transition: transform .15s ease, box-shadow .15s ease;
}
.btn-details:hover { text-decoration: none; transform: translateY(-1px); box-shadow: 0 10px 22px rgba(79, 70, 229, .4); }
.btn-details:active { transform: scale(.97); }
.btn-details:focus-visible { outline: 3px solid rgba(79, 70, 229, .45); outline-offset: 2px; }
.btn-details-ic { position: relative; width: 26px; height: 26px; border-radius: 50%; background: rgba(255, 255, 255, .25); }
.btn-details-ic::before {
    content: ""; position: absolute; top: 50%; left: 50%; width: 7px; height: 7px;
    border-right: 2.2px solid #fff; border-top: 2.2px solid #fff; transform: translate(-65%, -50%) rotate(45deg);
}

/* floating checkout button (phones) */
.cart-bar {
    position: fixed; z-index: 55; left: 14px; right: 14px; margin: 0 auto; max-width: 560px;
    bottom: calc(var(--bottom-h) + 14px + env(safe-area-inset-bottom)); pointer-events: none;
}
.cart-bar .btn { pointer-events: auto; width: 100%; justify-content: space-between; padding: 0 18px; gap: .6rem; }
.cart-bar-label { flex: 1; text-align: left; margin-left: .2rem; }
.cart-bar-total { padding: 4px 12px; font-size: .98rem; background: rgba(255, 255, 255, .22); border-radius: 999px; }

/* empty cart */
.cart-empty { max-width: 460px; margin: 28px auto; padding: 34px 24px 30px; text-align: center; }
.cart-empty-art { display: block; width: 170px; height: 170px; margin: 0 auto 6px; }
.cart-empty-title { margin: 0 0 6px; font-size: 1.4rem; font-weight: 800; }
.cart-empty-text { margin: 0 auto 20px; max-width: 320px; color: var(--muted); }
.cart-empty-btn { min-height: 52px; padding: 0 28px; border-radius: 16px; font-weight: 800; box-shadow: 0 10px 26px rgba(79, 70, 229, .4); }

/* ---------- utilities ---------- */
.text-center { text-align: center; }
.mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: .5rem; } .mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; }

/* ---------- tablet & desktop ---------- */
@media (min-width: 99999px) {
    .pd { grid-template-columns: minmax(0, 420px) minmax(0, 1fr); align-items: start; gap: 20px; }
    .pd-gallery { position: sticky; top: 92px; }
    .trust { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .trust-item { flex-direction: column; align-items: flex-start; }
}
@media (min-width: 99999px) {
    .hide-mobile { display: inline-flex; }
    .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
}
@media (min-width: 99999px) {
    body { padding-bottom: 0; }
    .pd-bar { bottom: calc(18px + env(safe-area-inset-bottom)); }
    .toast { bottom: calc(92px + env(safe-area-inset-bottom)); }
    .bottom-nav { display: none !important; }
    .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .auth-card { padding: 32px 28px; }
}
@media (min-width: 99999px) {
    .product-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (min-width: 99999px) {
    .product-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

@media (min-width: 99999px) {
    .cart-grid { grid-template-columns: minmax(0, 1fr) 380px; align-items: start; gap: 22px; }
    .cs { position: sticky; top: 92px; }
    .cs-cta { display: inline-flex; }
    .cart-bar { display: none; }
    .cartp { padding-bottom: 32px; }
    .ci { grid-template-columns: 120px minmax(0, 1fr); padding: 16px; }
    .ci-media { width: 120px; height: 120px; }
}

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ---------- checkout + order received (step 14) ---------- */
.co-title { margin: 0 2px 14px; }
.co-main { display: grid; gap: 12px; align-content: start; min-width: 0; }
.co-panel { padding: 16px; }
.co-h { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; font-size: 1.05rem; font-weight: 800; line-height: 1.3; letter-spacing: 0; }
.co-h .icon { flex: none; width: 1.25em; height: 1.25em; color: var(--primary); }
.co-form .field.co-last { margin-bottom: 0; }
.co-form .textarea { min-height: 84px; }
.co-form .textarea.co-note { min-height: 64px; }
.co-form .btn.is-loading { opacity: .7; pointer-events: none; }
.co-eta { color: var(--muted); }
.co-eta strong { color: var(--ok); font-weight: 800; }
.co-eta[hidden] { display: none; }
.co-secure { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 12px 0 0; font-size: .82rem; font-weight: 600; color: var(--muted); }
.co-secure .icon { flex: none; width: 1.1em; height: 1.1em; color: var(--ok); }
.cs-note-row { padding-top: 0; }
.cs-note-row dt { flex: 1; text-align: right; }

/* payment choice */
.pay-list { display: grid; gap: 10px; }
.pay-opt { position: relative; display: block; cursor: pointer; }
.pay-radio { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.pay-card {
    display: flex; align-items: center; gap: 12px; padding: 12px 14px;
    background: var(--glass-strong); border: 2px solid var(--line); border-radius: 16px;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.pay-ic { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 12px; color: #fff; background: var(--primary-grad); }
.pay-ic .icon { width: 1.2rem; height: 1.2rem; }
.pay-tx { display: flex; flex-direction: column; flex: 1; min-width: 0; line-height: 1.35; }
.pay-tx strong { font-size: .98rem; font-weight: 800; }
.pay-tx small { font-size: .8rem; color: var(--muted); }
.pay-check { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; color: #fff; background: var(--primary); opacity: 0; transform: scale(.7); transition: opacity .15s ease, transform .15s ease; }
.pay-check .icon { width: 1rem; height: 1rem; }
.pay-radio:checked + .pay-card { border-color: var(--primary); box-shadow: 0 6px 18px rgba(79, 70, 229, .22); }
.pay-radio:checked + .pay-card .pay-check { opacity: 1; transform: scale(1); }
.pay-radio:focus-visible + .pay-card { outline: 3px solid rgba(79, 70, 229, .45); outline-offset: 2px; }

.pay-box { margin-top: 12px; padding: 14px; border-radius: 16px; background: var(--glass-strong); border: 1px dashed var(--primary); }
.pay-box[hidden] { display: none; }
.pay-send { margin: 0 0 4px; font-size: .9rem; font-weight: 600; color: var(--muted); }
.pay-number { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-size: 1.35rem; font-weight: 800; letter-spacing: .02em; color: var(--primary); }
.pay-number .icon { flex: none; width: 1.1em; height: 1.1em; }
.pay-amount { margin: 0 0 14px; font-size: .92rem; font-weight: 700; }
.pay-amt { color: var(--primary); font-weight: 800; }

/* order received */
.od-wrap { max-width: 640px; margin: 8px auto 0; display: grid; gap: 12px; }
.od-hero { padding: 26px 20px; text-align: center; }
.od-ok { display: inline-flex; align-items: center; justify-content: center; width: 74px; height: 74px; margin-bottom: 10px; border-radius: 50%; color: #fff; background: var(--primary-grad); box-shadow: 0 10px 26px rgba(16, 185, 129, .35); }
.od-ok .icon { width: 2.2rem; height: 2.2rem; stroke-width: 3; }
.od-title { margin: 0 0 6px; font-size: 1.5rem; font-weight: 800; letter-spacing: 0; }
.od-text { margin: 0 auto 14px; max-width: 420px; }
.od-no { margin: 0 0 12px; font-size: 1rem; }
.od-no strong { display: inline-block; padding: 3px 14px; font-size: 1.1rem; font-weight: 800; letter-spacing: .04em; color: var(--primary); background: var(--glass-strong); border: 1px dashed var(--primary); border-radius: 999px; }
.od-items { list-style: none; margin: 0 0 6px; padding: 0; }
.od-item { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.od-item-name { min-width: 0; font-weight: 600; overflow-wrap: anywhere; }
.od-item-sum { flex: none; font-weight: 800; }
.od-sum { margin-top: 4px; }
.od-line { margin: 0 0 4px; overflow-wrap: anywhere; }
.od-help { margin: 4px 0 0; text-align: center; font-size: .92rem; }
.od-btn { min-height: 52px; border-radius: 16px; font-weight: 800; }

@media (min-width: 99999px) {
    .co .cs-cta { margin-top: 14px; }
}

/* ---------- compact order buttons + saved-address note (step 15) ---------- */
.pd-bar { max-width: 400px; gap: 8px; }
.pd-bar .btn { min-height: 44px; padding: 0 12px; gap: .4rem; font-size: clamp(.78rem, 3.4vw, .92rem); border-radius: 14px; letter-spacing: .01em; }
.pd-bar .icon { width: 1.15em; height: 1.15em; }
.btn-cart { border-width: 1.5px; box-shadow: 0 6px 16px rgba(15, 23, 42, .16); }
.btn-buy {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 55%, #7c3aed 100%);
    box-shadow: 0 6px 16px rgba(79, 70, 229, .38), inset 0 1px 0 rgba(255, 255, 255, .28);
}
.btn-checkout { min-height: 46px; padding: 0 20px; border-radius: 14px; font-size: .95rem; box-shadow: 0 6px 16px rgba(79, 70, 229, .36), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn-checkout .icon { width: 1.1em; height: 1.1em; }
@media all {
    .cart-bar { display: flex; justify-content: center; }
    .cart-bar .btn { width: auto; min-width: min(290px, 100%); max-width: 100%; padding: 0 12px 0 18px; }
    .cart-bar-total { padding: 3px 11px; font-size: .9rem; }
}
.co-saved {
    display: flex; align-items: flex-start; gap: 8px; margin: -2px 0 14px; padding: 9px 12px;
    font-size: .84rem; font-weight: 600; line-height: 1.5; color: var(--ok);
    background: var(--glass-strong); border: 1px dashed currentColor; border-radius: 12px;
}
.co-saved .icon { flex: none; width: 1.1em; height: 1.1em; margin-top: .2em; }


/* ============ profile page (professional design) + right-side menu ============ */
.pf-wrap { max-width: 600px; }

/* top bar: title on the left, three-line menu button on the right */
.pf-bar {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 8px 8px 8px 14px; margin-bottom: 12px; border-radius: 18px;
}
.pf-bar-title { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.05rem; min-width: 0; }
.pf-bar-ic {
    display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px;
    border-radius: 11px; color: #fff; background: var(--primary-grad);
}
.pf-menu-btn {
    display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
    width: 46px; height: 46px; border-radius: 14px; cursor: pointer; color: var(--text);
    background: var(--glass-strong); border: 1px solid var(--line);
    transition: transform .15s ease, border-color .15s ease, background .15s ease;
}
.pf-menu-btn .icon { width: 1.6em; height: 1.6em; }
.pf-menu-btn:hover { border-color: var(--primary); }
.pf-menu-btn:active { transform: scale(.94); }
.pf-menu-btn:focus-visible, .pf-close:focus-visible { outline: 3px solid rgba(79, 70, 229, .45); outline-offset: 2px; }

/* hero card */
.pf-hero { overflow: hidden; padding: 0; }
.pf-cover { height: 96px; background: var(--primary-grad); position: relative; }
.pf-cover::after {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(circle at 85% 20%, rgba(255, 255, 255, .35), transparent 55%),
                radial-gradient(circle at 10% 110%, rgba(255, 255, 255, .22), transparent 50%);
}
.pf-hero-body { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 18px 16px; margin-top: -44px; position: relative; }
.pf-avatar {
    display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
    width: 88px; height: 88px; border-radius: 28px; color: #fff; font-size: 2.1rem; font-weight: 800;
    background: var(--primary-grad); border: 4px solid var(--glass-strong);
    box-shadow: 0 10px 26px rgba(79, 70, 229, .35);
}
.pf-avatar .icon { width: 1.1em; height: 1.1em; }
.pf-avatar-sm { width: 48px; height: 48px; border-radius: 16px; font-size: 1.2rem; border-width: 2px; box-shadow: none; }
.pf-avatar-guest { margin: 0 auto 6px; }
.pf-name { margin: 10px 0 2px; font-size: 1.35rem; overflow-wrap: anywhere; }
.pf-email { margin: 0; color: var(--muted); font-size: .95rem; overflow-wrap: anywhere; }
.pf-chip {
    display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; padding: 5px 12px;
    font-size: .82rem; font-weight: 600; color: var(--ok); border: 1px solid var(--ok); border-radius: 999px;
    background: var(--glass-strong);
}
.pf-chip .icon { width: 1.05em; height: 1.05em; }
.pf-stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.pf-stat { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 14px 6px; }
.pf-stat + .pf-stat { border-left: 1px solid var(--line); }
.pf-stat strong { font-size: 1.3rem; line-height: 1.2; font-family: var(--font-num); }
.pf-stat .pf-stat-sm { font-size: .95rem; padding-top: .3rem; }
.pf-stat span { font-size: .82rem; color: var(--muted); }

/* quick links */
.pf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.pf-quick {
    display: flex; align-items: center; gap: 10px; padding: 14px; color: var(--text); font-weight: 600;
    transition: transform .15s ease, border-color .15s ease;
}
.pf-quick:hover { text-decoration: none; transform: translateY(-2px); border-color: var(--primary); }
.pf-quick-ic {
    display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px;
    border-radius: 13px; color: var(--primary); background: var(--glass-strong); border: 1px solid var(--line);
}

/* info cards */
.pf-card { margin-top: 12px; padding: 16px; }
.pf-card-title { display: flex; align-items: center; gap: 8px; margin: 0 0 .5rem; font-size: 1rem; }
.pf-card-title .icon { color: var(--primary); }
.pf-rows { list-style: none; margin: 0; padding: 0; }
.pf-row { display: flex; align-items: flex-start; gap: 12px; padding: 10px 0; }
.pf-row + .pf-row { border-top: 1px solid var(--line); }
.pf-row-ic {
    display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
    width: 36px; height: 36px; border-radius: 12px; color: var(--muted);
    background: var(--glass-strong); border: 1px solid var(--line);
}
.pf-row-tx { display: flex; flex-direction: column; min-width: 0; }
.pf-row-tx small { color: var(--muted); font-size: .8rem; }
.pf-row-tx strong { font-weight: 600; overflow-wrap: anywhere; }
.pf-empty { margin: 0; padding: 4px 0 2px; color: var(--muted); font-size: .95rem; }
.pf-guest { padding: 28px 20px; text-align: center; }
.pf-logout { color: var(--danger); }

/* right-side menu (drawer) */
.pf-overlay {
    position: fixed; inset: 0; z-index: 110; background: rgba(15, 23, 42, .5);
    opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s ease;
}
.pf-drawer {
    position: fixed; top: 0; right: 0; bottom: 0; z-index: 120;
    width: min(86vw, 340px); display: flex; flex-direction: column; gap: 4px;
    padding: calc(14px + env(safe-area-inset-top)) 16px calc(16px + env(safe-area-inset-bottom));
    overflow-y: auto; overscroll-behavior: contain;
    background: var(--glass-strong); border-left: 1px solid var(--glass-border);
    -webkit-backdrop-filter: blur(22px) saturate(160%); backdrop-filter: blur(22px) saturate(160%);
    box-shadow: -14px 0 40px rgba(15, 23, 42, .28);
    border-radius: 24px 0 0 24px;
    transform: translateX(105%); visibility: hidden;
    transition: transform .3s cubic-bezier(.22, .8, .3, 1), visibility .3s;
}
.pf-drawer:focus { outline: none; }
body.drawer-open { overflow: hidden; }
body.drawer-open .pf-overlay { opacity: 1; visibility: visible; }
body.drawer-open .pf-drawer { transform: translateX(0); visibility: visible; }

.pf-drawer-head { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.pf-drawer-who { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.pf-drawer-who strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-drawer-who small { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-close {
    display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
    width: 40px; height: 40px; border-radius: 12px; cursor: pointer; color: var(--text);
    background: var(--glass); border: 1px solid var(--line);
}
.pf-drawer-nav { display: flex; flex-direction: column; gap: 4px; padding: 12px 0; }
.pf-link {
    display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px;
    color: var(--text); font-weight: 600; border: 1px solid transparent;
}
.pf-link:hover { text-decoration: none; background: var(--glass); border-color: var(--line); }
.pf-link .icon { color: var(--muted); }
.pf-link.is-active { color: #fff; background: var(--primary-grad); }
.pf-link.is-active .icon { color: #fff; }
.pf-link-badge {
    margin-left: auto; min-width: 22px; padding: 1px 7px; border-radius: 999px; text-align: center;
    font-style: normal; font-size: .78rem; font-weight: 700; color: #fff; background: var(--danger);
}
.pf-drawer-block { padding: 12px 0; border-top: 1px solid var(--line); }
.pf-drawer-title { display: flex; align-items: center; gap: 8px; margin: 0 0 .6rem; font-size: .95rem; }
.pf-drawer-title .icon { color: var(--primary); }
.pf-drawer-foot { display: flex; flex-direction: column; gap: 10px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); }

@media (min-width: 99999px) {
    .pf-cover { height: 120px; }
    .pf-hero-body { margin-top: -50px; }
}
@media (prefers-reduced-motion: reduce) {
    .pf-drawer, .pf-overlay { transition: none !important; }
}


/* ============ profile photo: avatar, language button, photo editor ============ */
.pf-avatar { overflow: hidden; }
.pf-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pf-avatar-wrap { position: relative; display: inline-block; }
.pf-avatar-edit {
    position: absolute; right: -6px; bottom: -6px; width: 36px; height: 36px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
    color: #fff; background: var(--primary-grad); border: 3px solid var(--glass-strong);
    box-shadow: 0 6px 16px rgba(79, 70, 229, .4);
}
.pf-avatar-edit .icon { width: 1.05em; height: 1.05em; }
.pf-avatar-edit:active { transform: scale(.92); }
.pf-avatar-edit:focus-visible { outline: 3px solid rgba(79, 70, 229, .45); outline-offset: 2px; }

.pf-lang-btn {
    display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px 14px; cursor: pointer;
    font: inherit; font-weight: 600; color: var(--text); text-align: left;
    background: var(--glass); border: 1px solid var(--line); border-radius: 14px;
}
.pf-lang-btn .icon { color: var(--primary); }
.pf-lang-cur { margin-left: auto; font-style: normal; font-weight: 500; font-size: .85rem; color: var(--muted); }
.pf-chev {
    width: 9px; height: 9px; margin-left: 4px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
    transform: rotate(45deg) translateY(-2px); transition: transform .2s ease;
}
.pf-lang-btn[aria-expanded="true"] .pf-chev { transform: rotate(-135deg) translateY(-2px); }
.pf-lang-panel { margin-top: 10px; }
.pf-lang-panel[hidden] { display: none; }

/* photo editor (full-screen dialog) */
.ed {
    position: fixed; inset: 0; z-index: 140; display: flex; align-items: center; justify-content: center;
    padding: 12px; background: rgba(15, 23, 42, .65);
}
.ed[hidden] { display: none; }
.ed-box {
    width: 100%; max-width: 420px; max-height: 96vh; overflow-y: auto; overscroll-behavior: contain;
    padding: 14px 14px calc(14px + env(safe-area-inset-bottom));
    background: var(--glass-strong); border: 1px solid var(--glass-border); border-radius: 24px;
    -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px); box-shadow: var(--shadow);
}
.ed-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.ed-title { margin: 0; font-size: 1.05rem; }
.ed-stage { position: relative; width: min(100%, 320px); margin: 0 auto; border-radius: 20px; overflow: hidden; background: #fff; }
.ed-stage::after {
    content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, .85);
    background:
        linear-gradient(to right, transparent 33%, rgba(255, 255, 255, .45) 33%, rgba(255, 255, 255, .45) calc(33% + 1px), transparent calc(33% + 1px), transparent 66%, rgba(255, 255, 255, .45) 66%, rgba(255, 255, 255, .45) calc(66% + 1px), transparent calc(66% + 1px)),
        linear-gradient(to bottom, transparent 33%, rgba(255, 255, 255, .45) 33%, rgba(255, 255, 255, .45) calc(33% + 1px), transparent calc(33% + 1px), transparent 66%, rgba(255, 255, 255, .45) 66%, rgba(255, 255, 255, .45) calc(66% + 1px), transparent calc(66% + 1px));
}
#ed-canvas { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; touch-action: none; cursor: grab; }
#ed-canvas:active { cursor: grabbing; }
.ed-hint { margin: 8px 0 4px; text-align: center; font-size: .82rem; }
.ed-tools { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.ed-tools.is-locked { opacity: .5; pointer-events: none; }
.ed-row { display: flex; align-items: center; gap: 8px; }
.ed-btn {
    flex-shrink: 0; width: 40px; height: 40px; border-radius: 12px; cursor: pointer; font: inherit; font-size: 1.25rem; line-height: 1;
    color: var(--text); background: var(--glass); border: 1px solid var(--line);
}
.ed-btn:active { transform: scale(.94); }
.ed-range { flex: 1; width: 100%; min-width: 0; accent-color: var(--primary); }
.ed-chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
.ed-chip {
    flex-shrink: 0; padding: 7px 14px; border-radius: 999px; cursor: pointer; font: inherit; font-size: .88rem; font-weight: 600;
    color: var(--text); background: var(--glass); border: 1px solid var(--line);
}
.ed-chip.is-active { color: #fff; background: var(--primary-grad); border-color: transparent; }
.ed-slider { display: flex; align-items: center; gap: 10px; font-size: .88rem; font-weight: 600; }
.ed-slider > span { flex: 0 0 92px; }
.ed-progress { margin-top: 12px; }
.ed-progress[hidden] { display: none; }
.ed-bar { height: 12px; border-radius: 999px; overflow: hidden; background: var(--line); }
.ed-bar > span { display: block; width: 0; height: 100%; border-radius: 999px; background: var(--primary-grad); transition: width .2s ease; }
.ed-bar.is-done > span { background: var(--ok); }
.ed-prog-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 6px; font-size: .9rem; }
.ed-prog-row strong { font-family: var(--font-num); }
.ed-prog-row.is-error { color: var(--danger); }
.ed-actions { display: flex; gap: 8px; margin-top: 14px; }
.ed-actions .btn { flex: 1; padding: .7rem .6rem; min-height: 44px; }
.ed-actions .btn[disabled] { opacity: .55; }

body.ed-open { overflow: hidden; }


/* ============ home page: auto-scrolling product rows (3 per screen, image + price only) ============ */
.hrow { margin: 0 0 16px; padding: 22px 0 26px 14px; overflow: hidden; }
.hrow-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-right: 14px; margin-bottom: 16px; }
.hrow-title { margin: 0; font-size: 1.25rem; font-weight: 800; letter-spacing: -.01em; }
.hrow-flash { background: var(--primary-grad); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.hrow-all { margin: 22px 2px 12px; }
.hrow-more { flex-shrink: 0; font-size: .88rem; font-weight: 600; color: var(--primary); white-space: nowrap; }
.hrow-more:hover { text-decoration: none; }
.hrow-track {
    display: flex; gap: 10px; overflow-x: auto; padding: 0 14px 4px 0;
    scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; scrollbar-width: none;
}
.hrow-track::-webkit-scrollbar { display: none; }
.hcard {
    flex: 0 0 calc((100% - 20px) / 3.2); min-width: 0; display: flex; flex-direction: column; gap: 10px;
    color: var(--text); scroll-snap-align: start;
}
.hcard:hover { text-decoration: none; }
.hcard-media {
    position: relative; display: block; width: 100%; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 16px;
    background: var(--glass-strong); border: 1px solid var(--line); box-shadow: 0 6px 16px rgba(49, 46, 129, .10);
}
.hcard-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.hcard:hover .hcard-media img { transform: scale(1.05); }
.hcard-media .ph { position: absolute; inset: 0; margin: auto; width: 34%; height: 34%; color: var(--muted); opacity: .6; }
.hcard-media.has-img .ph { display: none; }
.hcard-media.is-broken img { display: none; }
.hcard-media.is-broken .ph { display: block; }
.hcard.is-out .hcard-media img { opacity: .5; }
.hcard-foot { display: flex; justify-content: center; padding: 0 2px; min-width: 0; }
.hcard-price { font-size: 1.05rem; font-weight: 800; color: var(--primary); white-space: nowrap; }
.hrow-top .hcard-price, .hrow-daily .hcard-price { color: var(--text); }
@media (min-width: 99999px) { .hcard { flex-basis: calc((100% - 40px) / 4.2); } }
@media (min-width: 99999px) { .hcard { flex-basis: calc((100% - 60px) / 6.2); } }

/* ============ free delivery + coupon ============ */
.tag-free {
    display: flex; align-items: center; justify-content: center; gap: 5px; top: auto; bottom: 0; left: 0; right: 0;
    padding: 5px 8px; font-size: .72rem; line-height: 1.4; border-radius: 0; box-shadow: none; white-space: nowrap;
    background: linear-gradient(135deg, #059669, #10b981);
}
.pd-media .tag.tag-free { top: auto; bottom: 0; left: 0; right: 0; padding: 8px 14px; font-size: .9rem; border-radius: 0; }
.hcard-media .tag-free { font-size: .62rem; padding: 4px 4px; gap: 3px; }
.tag-free .icon { width: 1.25em; height: 1.25em; flex: none; }
.free-pill {
    display: inline-flex; align-items: center; gap: 5px; align-self: flex-start; margin-top: 4px; padding: 3px 10px 3px 8px;
    font-size: .72rem; font-weight: 700; color: #047857; background: rgba(16, 185, 129, .13); border-radius: 999px;
}
.free-pill .icon { width: 1.2em; height: 1.2em; flex: none; }
.free-note {
    display: flex; align-items: center; gap: 12px; margin: 14px 0 0; padding: 12px 14px; border-radius: 16px;
    background: linear-gradient(135deg, rgba(16, 185, 129, .16), rgba(16, 185, 129, .06)); border: 1px solid rgba(16, 185, 129, .38);
}
.free-note-ic {
    flex: none; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%;
    color: #fff; background: linear-gradient(135deg, #059669, #10b981); box-shadow: 0 4px 12px rgba(16, 185, 129, .35);
}
.free-note-ic .icon { width: 1.3rem; height: 1.3rem; }
.free-note-tx { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.free-note-tx strong { font-size: 1rem; color: #047857; }
.free-note-tx small { font-size: .82rem; color: var(--muted); }
.free-word { color: var(--ok); font-weight: 800; }
.cs-disc dt, .cs-disc dd { color: var(--ok); }
.coupon-row { display: flex; gap: 10px; align-items: stretch; }
.coupon-input { flex: 1; min-width: 0; text-transform: uppercase; letter-spacing: .04em; }
.coupon-btn { flex: none; min-height: 44px; padding: .6rem 1.2rem; }
.coupon-msg { margin: .6rem 0 0; font-size: .88rem; font-weight: 700; }
.coupon-msg.is-ok { color: var(--ok); }
.coupon-msg.is-error { color: var(--danger); }

/* ---------- product gallery: photos, zoom, dots, video ---------- */
.pd-gallery { display: grid; gap: 10px; min-width: 0; }
.is-hidden { display: none !important; }
.g-tabs {
    display: inline-flex; justify-self: start; gap: 4px; padding: 4px; border-radius: 999px;
    background: var(--glass-strong); border: 1px solid var(--glass-border); box-shadow: var(--shadow);
}
.g-tab {
    display: inline-flex; align-items: center; gap: 6px; padding: 7px 16px; border: 0; border-radius: 999px;
    background: transparent; color: var(--muted); font: inherit; font-weight: 700; font-size: .9rem; cursor: pointer;
}
.g-tab .icon { width: 1rem; height: 1rem; }
.g-tab.is-on { background: var(--primary-grad); color: #fff; box-shadow: 0 3px 10px rgba(79, 70, 229, .35); }
.g-tab:focus-visible { outline: 3px solid rgba(79, 70, 229, .45); outline-offset: 2px; }

.g-view { position: absolute; inset: 0; overflow: hidden; touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: grab; outline: none; }
.g-view:active { cursor: grabbing; }
.pd-media.is-zoomed .g-view { touch-action: none; cursor: move; }
.g-track { display: flex; height: 100%; will-change: transform; }
.g-slide { position: relative; flex: 0 0 100%; min-width: 0; height: 100%; overflow: hidden; }
.g-slide img { transform-origin: 50% 50%; will-change: transform; pointer-events: none; -webkit-user-drag: none; }

.g-btn {
    display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; padding: 0;
    border: 1px solid var(--glass-border); border-radius: 50%; background: var(--glass-strong); color: var(--text);
    box-shadow: 0 3px 10px rgba(15, 23, 42, .2); cursor: pointer;
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.g-btn .icon { width: 1.15rem; height: 1.15rem; }
.g-btn:disabled { opacity: .4; cursor: default; }
.g-btn:focus-visible { outline: 3px solid rgba(79, 70, 229, .45); outline-offset: 2px; }
.g-zoom { position: absolute; top: 12px; right: 12px; z-index: 2; display: flex; flex-direction: column; gap: 8px; }
.g-nav { position: absolute; top: 50%; z-index: 2; margin-top: -19px; }
.g-prev { left: 10px; }
.g-next { right: 10px; }

.g-dots { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; padding: 4px 0 2px; }
.g-dot {
    position: relative; width: 10px; height: 10px; padding: 0; border: 0; border-radius: 50%;
    background: rgba(71, 85, 105, .35); cursor: pointer; transition: background .2s, transform .2s, box-shadow .2s;
}
.g-dot::before { content: ""; position: absolute; inset: -8px; }
.g-dot.is-on { background: var(--primary); transform: scale(1.35); box-shadow: 0 0 0 3px rgba(79, 70, 229, .22); }
.g-dot:focus-visible { outline: 3px solid rgba(79, 70, 229, .45); outline-offset: 3px; }

.pd-video {
    position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 24px; background: #000;
    border: 1px solid var(--glass-border); box-shadow: var(--shadow);
}
.pd-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- product photo: tap = full screen viewer ---------- */
.g-view { cursor: zoom-in; }
.pd-media.is-zoomed .g-view { cursor: move; }

.lb {
    position: fixed; inset: 0; z-index: 1000; display: flex; flex-direction: column;
    background: rgba(2, 6, 23, .95); color: #fff; user-select: none; -webkit-user-select: none;
    animation: lb-in .18s ease;
}
@keyframes lb-in { from { opacity: 0; } to { opacity: 1; } }
.lb-bar {
    position: absolute; top: 0; left: 0; right: 0; z-index: 3; display: flex; align-items: center; justify-content: space-between;
    padding: calc(12px + env(safe-area-inset-top, 0px)) 14px 14px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, .55), rgba(0, 0, 0, 0));
    pointer-events: none;
}
.lb-bar > * { pointer-events: auto; }
.lb-count {
    padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, .16);
    font-weight: 800; font-size: .95rem; font-variant-numeric: tabular-nums;
}
.lb-tools { display: flex; gap: 10px; }
.lb-btn {
    display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0;
    border: 1px solid rgba(255, 255, 255, .28); border-radius: 50%; background: rgba(255, 255, 255, .16); color: #fff; cursor: pointer;
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.lb-btn .icon { width: 1.3rem; height: 1.3rem; }
.lb-btn:disabled { opacity: .35; cursor: default; }
.lb-btn:focus-visible { outline: 3px solid rgba(255, 255, 255, .7); outline-offset: 2px; }
.lb-view { position: relative; flex: 1 1 auto; min-height: 0; overflow: hidden; touch-action: none; cursor: grab; outline: none; }
.lb.is-zoomed .lb-view { cursor: move; }
.lb-track { display: flex; height: 100%; will-change: transform; }
.lb-slide { position: relative; flex: 0 0 100%; min-width: 0; height: 100%; overflow: hidden; }
.lb-slide img {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block;
    transform-origin: 50% 50%; will-change: transform; pointer-events: none; -webkit-user-drag: none;
}
.lb-nav { position: absolute; top: 50%; z-index: 3; margin-top: -22px; }
.lb-prev { left: 12px; }
.lb-next { right: 12px; }


/* ---------- product colors + sizes (product page, cart, checkout, order) ---------- */
.gset-off { display: none !important; }
.opt { margin-top: 16px; padding: 12px 14px; border-radius: 16px; background: var(--glass-strong); border: 1px solid var(--line); }
.opt + .opt { margin-top: 10px; }
.opt.is-missing { border-color: var(--danger); animation: opt-shake .45s ease; }
@keyframes opt-shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.opt-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.opt-pick { font-size: .85rem; font-weight: 600; color: var(--muted); text-align: right; }
.opt-pick.is-set { color: var(--primary); font-weight: 800; }
.opt-list { display: flex; flex-wrap: wrap; gap: 10px; }
.opt-color {
    position: relative; display: inline-flex; flex-direction: column; align-items: center; gap: 4px; width: 76px; padding: 6px 4px 7px;
    font: inherit; color: var(--text); background: var(--glass); border: 2px solid var(--line); border-radius: 14px; cursor: pointer; touch-action: manipulation;
    transition: border-color .15s, transform .15s, box-shadow .15s;
}
.opt-color:hover { border-color: rgba(79, 70, 229, .45); }
.opt-color.is-on { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(79, 70, 229, .18); transform: translateY(-1px); }
.opt-color:focus-visible, .opt-size:focus-visible { outline: 3px solid rgba(79, 70, 229, .35); outline-offset: 2px; }
.opt-thumb { display: block; width: 60px; height: 60px; border-radius: 10px; overflow: hidden; background: rgba(79, 70, 229, .08); }
.opt-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.opt-dot { position: absolute; top: 4px; right: 4px; width: 14px; height: 14px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(15, 23, 42, .25); }
.opt-name { max-width: 100%; font-size: .78rem; font-weight: 700; line-height: 1.2; text-align: center; overflow-wrap: anywhere; }
.opt-size {
    min-width: 48px; height: 44px; padding: 0 14px; font: inherit; font-weight: 800; color: var(--text);
    background: var(--glass); border: 2px solid var(--line); border-radius: 12px; cursor: pointer; touch-action: manipulation;
    transition: border-color .15s, background .15s, color .15s;
}
.opt-size:hover { border-color: rgba(79, 70, 229, .45); }
.opt-size.is-on { color: #fff; background: var(--primary); border-color: var(--primary); }
.ci-opts { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 2px; }
.ci-opt { font-size: .8rem; color: var(--muted); }
.ci-opt strong { color: var(--text); font-weight: 700; }
.od-item-name .ci-opts { display: flex; }

.opt-color.is-na, .opt-size.is-na { opacity: .4; cursor: not-allowed; }
.opt-size.is-na { text-decoration: line-through; }
.opt-color.is-na .opt-name { text-decoration: line-through; }

/* shop page (/products): category filter chips */
.cat-chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 12px; margin: 0 -2px 6px; scrollbar-width: none; }
.cat-chips::-webkit-scrollbar { display: none; }
.cat-chip {
    flex: 0 0 auto; padding: 6px 16px; font-size: .88rem; font-weight: 600; color: var(--text);
    background: var(--glass-strong); border: 1px solid var(--line); border-radius: 999px; white-space: nowrap;
}
.cat-chip:hover { text-decoration: none; border-color: var(--primary); }
.cat-chip.is-on { color: #fff; background: var(--primary-grad); border-color: transparent; }
.shop-count { margin: 0 2px 12px; font-size: .9rem; }

/* ===== profile: orders button, stat links, recent orders ===== */
.pf-stat { color: var(--text); }
a.pf-stat:hover { text-decoration: none; background: rgba(79, 70, 229, .06); }
.pf-orders-btn {
    display: flex; align-items: center; gap: 14px; margin-top: 12px; padding: 14px 16px; color: #fff;
    background: var(--primary-grad); border-radius: var(--radius); box-shadow: 0 12px 28px rgba(79, 70, 229, .32);
    transition: transform .15s ease, box-shadow .15s ease;
}
.pf-orders-btn:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 16px 34px rgba(79, 70, 229, .4); }
.pf-orders-btn:active { transform: scale(.985); }
.pf-orders-ic { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 46px; height: 46px; border-radius: 15px; background: rgba(255, 255, 255, .22); }
.pf-orders-ic .icon { width: 1.4em; height: 1.4em; }
.pf-orders-tx { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.35; }
.pf-orders-tx strong { font-size: 1.1rem; font-weight: 800; }
.pf-orders-tx small { font-size: .85rem; opacity: .9; }
.pf-orders-go { flex: none; width: 1.4em; height: 1.4em; opacity: .9; }
.pf-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: .6rem; }
.pf-card-head .pf-card-title { margin: 0; }
.pf-see-all { font-size: .88rem; font-weight: 700; white-space: nowrap; }
.pf-mini .pf-row { padding: 8px 0; }
.pf-mini .pf-row-ic { width: 32px; height: 32px; border-radius: 10px; }
.pf-mini .pf-row-tx strong { font-size: .93rem; }
.pf-drawer-foot .copyright { margin: 4px 0 0; text-align: center; font-size: .78rem; }

/* ===== My orders ===== */
.mo-wrap { max-width: 640px; margin: 4px auto 0; }
.mo-head { display: flex; align-items: center; gap: 12px; margin: 4px 2px 14px; }
.mo-back {
    display: inline-flex; align-items: center; justify-content: center; flex: none; width: 42px; height: 42px;
    color: var(--text); background: var(--glass-strong); border: 1px solid var(--line); border-radius: 14px;
}
.mo-back:hover { text-decoration: none; border-color: var(--primary); }
.mo-title { margin: 0; font-size: 1.4rem; font-weight: 800; letter-spacing: 0; }
.mo-tabs { position: relative; display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 12px; scrollbar-width: none; }
.mo-tabs::-webkit-scrollbar { display: none; }
.mo-tab {
    flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; white-space: nowrap;
    font-size: .88rem; font-weight: 700; color: var(--text);
    background: var(--glass-strong); border: 1px solid var(--line); border-radius: 999px;
}
.mo-tab:hover { text-decoration: none; border-color: var(--primary); }
.mo-tab.is-on { color: #fff; background: var(--primary-grad); border-color: transparent; box-shadow: 0 6px 16px rgba(79, 70, 229, .28); }
.mo-tab-n { min-width: 22px; padding: 0 6px; font-size: .75rem; line-height: 20px; text-align: center; border-radius: 999px; background: rgba(100, 116, 139, .18); }
.mo-tab.is-on .mo-tab-n { background: rgba(255, 255, 255, .25); }
.mo-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.mo-card {
    display: flex; align-items: center; gap: 12px; padding: 12px; color: var(--text);
    background: var(--glass-strong); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow);
    transition: transform .15s ease, border-color .15s ease;
}
.mo-card:hover { text-decoration: none; transform: translateY(-2px); border-color: var(--primary); }
.mo-thumb {
    position: relative; display: flex; align-items: center; justify-content: center; flex: none; width: 66px; height: 66px;
    overflow: hidden; border-radius: 14px; color: var(--muted);
    background: linear-gradient(135deg, rgba(79, 70, 229, .08), rgba(16, 185, 129, .10));
}
.mo-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mo-thumb .ph { opacity: .45; }
.mo-thumb.has-img .ph { display: none; }
.mo-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.mo-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.mo-no { font-weight: 800; font-size: .95rem; letter-spacing: .02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mo-name { font-size: .9rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mo-name em { font-style: normal; font-weight: 700; color: var(--primary); }
.mo-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: .85rem; color: var(--muted); }
.mo-meta strong { color: var(--text); font-weight: 800; }
.mo-go { flex: none; width: 1.2em; height: 1.2em; color: var(--muted); }
.ost { flex: none; display: inline-block; padding: 1px 10px; font-size: .74rem; font-weight: 800; line-height: 1.7; border-radius: 999px; white-space: nowrap; }
.ost-new        { color: #1d4ed8; background: rgba(29, 78, 216, .13); }
.ost-confirmed  { color: #6d28d9; background: rgba(109, 40, 217, .13); }
.ost-packing    { color: var(--warn); background: rgba(180, 83, 9, .14); }
.ost-on_the_way { color: #0e7490; background: rgba(14, 116, 144, .14); }
.ost-delivered  { color: var(--ok); background: rgba(4, 120, 87, .13); }
.ost-cancelled  { color: var(--danger); background: rgba(225, 29, 72, .12); }
@media (prefers-color-scheme: dark) {
    .ost-new { color: #93c5fd; }
    .ost-confirmed { color: #c4b5fd; }
    .ost-on_the_way { color: #67e8f9; }
}

/* ===== order tracker (order page) ===== */
.trk { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); }
.trk-step { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.trk-step::before {
    content: ''; position: absolute; top: 13px; right: 50%; width: 100%; height: 3px; background: var(--line);
}
.trk-step:first-child::before { display: none; }
.trk-step.is-done::before, .trk-step.is-now::before { background: var(--primary); }
.trk-dot {
    position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center;
    width: 28px; height: 28px; border-radius: 50%; color: #fff; background: var(--glass-strong); border: 3px solid var(--line);
}
.trk-dot .icon { width: .85em; height: .85em; stroke-width: 3.2; }
.trk-step.is-done .trk-dot { background: var(--primary); border-color: var(--primary); }
.trk-step.is-now .trk-dot { background: #fff; border-color: var(--primary); box-shadow: 0 0 0 5px rgba(79, 70, 229, .18); }
.trk-label { font-size: .72rem; line-height: 1.3; font-weight: 600; color: var(--muted); }
.trk-step.is-done .trk-label, .trk-step.is-now .trk-label { color: var(--text); font-weight: 800; }
.trk-cancel { margin: 0; padding: 12px 14px; font-weight: 700; color: var(--danger); background: rgba(225, 29, 72, .1); border-radius: 14px; }


/* ============ profile redesign: status buttons, services, order progress, logo ============ */
.brand-mark.has-logo { padding: 3px; background: #fff; border: 1px solid var(--line); overflow: hidden; }
.brand-mark.has-logo img { display: block; width: 100%; height: 100%; object-fit: contain; border-radius: 9px; }

/* hero */
.pf-cover { height: 112px; }
.pf-hero-body { margin-top: -48px; padding-bottom: 18px; }
.pf-since {
    display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; padding: 4px 12px;
    font-size: .78rem; font-weight: 600; color: var(--muted); background: var(--glass-strong);
    border: 1px solid var(--line); border-radius: 999px;
}
.pf-since .icon { width: 1em; height: 1em; color: var(--ok); }
.pf-wrap > * + * { margin-top: 14px; }
.pf-wrap > .pf-card, .pf-wrap > .pf-guest { margin-top: 14px; }
.pf-card { padding: 16px 14px; }
.pf-card-title { font-weight: 800; }
.pf-note { margin: 10px 0 0; font-size: .82rem; color: var(--muted); }

/* order status buttons (Daraz style) */
.pf-ord .pf-card-head { margin-bottom: 14px; }
.pf-st { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.pf-st-item {
    display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 6px 2px 4px;
    color: var(--text); border-radius: 14px; transition: transform .15s ease, background .15s ease;
}
.pf-st-item:hover { text-decoration: none; background: rgba(79, 70, 229, .06); }
.pf-st-item:active { transform: scale(.94); }
.pf-st-ic, .pf-svc-ic {
    position: relative; display: inline-flex; align-items: center; justify-content: center;
    width: 50px; height: 50px; border-radius: 17px; color: var(--st, var(--primary));
    background: var(--st-bg, rgba(79, 70, 229, .12));
}
.pf-st-ic .icon { width: 1.5em; height: 1.5em; }
.pf-st-tx { font-size: .78rem; font-weight: 700; line-height: 1.25; text-align: center; overflow-wrap: anywhere; }
.pf-st-n {
    position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px;
    font-style: normal; font-size: .72rem; font-weight: 800; line-height: 20px; text-align: center;
    color: #fff; background: var(--danger); border: 2px solid var(--glass-strong); border-radius: 999px;
    box-sizing: content-box; box-shadow: 0 3px 8px rgba(225, 29, 72, .35);
}
.pf-st-processing { --st: #4f46e5; --st-bg: rgba(79, 70, 229, .13); }
.pf-st-packing    { --st: #d97706; --st-bg: rgba(217, 119, 6, .15); }
.pf-st-on_the_way { --st: #0891b2; --st-bg: rgba(8, 145, 178, .15); }
.pf-st-delivered  { --st: #059669; --st-bg: rgba(5, 150, 105, .15); }
.pf-st-cancelled  { --st: #e11d48; --st-bg: rgba(225, 29, 72, .12); }
.pf-ord-empty { margin: 14px 0 0; padding-top: 12px; text-align: center; font-size: .88rem; color: var(--muted); border-top: 1px dashed var(--line); }

/* services grid */
.pf-ord + .pf-card .pf-card-title, .pf-svc-wrap .pf-card-title { margin-bottom: 12px; }
.pf-svc { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pf-svc-item {
    display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 6px 12px;
    color: var(--text); background: var(--glass-strong); border: 1px solid var(--line); border-radius: 18px;
    transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.pf-svc-item:hover { text-decoration: none; transform: translateY(-2px); border-color: var(--st, var(--primary)); box-shadow: 0 10px 22px rgba(49, 46, 129, .12); }
.pf-svc-item:active { transform: scale(.96); }
.pf-svc-ic { width: 46px; height: 46px; border-radius: 15px; }
.pf-svc-ic .icon { width: 1.35em; height: 1.35em; }
.pf-svc-tx { font-size: .82rem; font-weight: 700; line-height: 1.3; text-align: center; overflow-wrap: anywhere; }
.pf-svc-cart { --st: #4f46e5; --st-bg: rgba(79, 70, 229, .13); }
.pf-svc-shop { --st: #0891b2; --st-bg: rgba(8, 145, 178, .15); }
.pf-svc-edit { --st: #7c3aed; --st-bg: rgba(124, 58, 237, .13); }
.pf-svc-pass { --st: #d97706; --st-bg: rgba(217, 119, 6, .15); }
.pf-svc-addr { --st: #e11d48; --st-bg: rgba(225, 29, 72, .12); }
.pf-svc-help { --st: #059669; --st-bg: rgba(5, 150, 105, .15); }
.pf-svc-ic .pf-st-n { top: -7px; right: -7px; }
#pf-address { scroll-margin-top: 90px; }

/* my orders: tabs with icons + progress strip in every order card */
.mo-tab { gap: 6px; padding: 8px 14px; }
.mo-tab .icon { width: 1.1em; height: 1.1em; }
.mo-tab-processing .icon { color: #4f46e5; }
.mo-tab-packing .icon { color: #d97706; }
.mo-tab-on_the_way .icon, .mo-tab-active .icon { color: #0891b2; }
.mo-tab-delivered .icon { color: #059669; }
.mo-tab-cancelled .icon { color: #e11d48; }
.mo-tab.is-on .icon { color: #fff; }
.mo-prog { display: flex; gap: 4px; margin-top: 4px; }
.mo-prog i { flex: 1; height: 4px; border-radius: 4px; background: var(--line); }
.mo-prog-1 i:nth-child(-n+1), .mo-prog-2 i:nth-child(-n+2), .mo-prog-3 i:nth-child(-n+3), .mo-prog-4 i:nth-child(-n+4) { background: var(--primary-grad); }
.mo-prog-4 i { background: var(--ok); }

/* edit profile page */
.ae-card { padding: 18px 16px; }
.ae-card + .ae-card { margin-top: 14px; }
.ae-card .pf-card-title { margin-bottom: 16px; }
.ae-card .input:disabled { opacity: .65; cursor: not-allowed; }
#password { scroll-margin-top: 90px; }

@media (min-width: 99999px) {
    .pf-st-ic { width: 56px; height: 56px; }
    .pf-st-tx { font-size: .85rem; }
    .pf-svc { grid-template-columns: repeat(3, 1fr); gap: 12px; }
}
@media (max-width: 359px) {
    .pf-st-ic { width: 44px; height: 44px; border-radius: 14px; }
    .pf-st-tx { font-size: .72rem; }
}


/* ============ home slider (16:7, any number of slides, dots) ============ */
.hs { position: relative; margin: 0 0 18px; padding: 0; overflow: hidden; border-radius: var(--radius); }
.hs-track {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
    scrollbar-width: none; overscroll-behavior-x: contain;
}
.hs-track::-webkit-scrollbar { display: none; }
.hs-slide {
    position: relative; display: block; flex: 0 0 100%; width: 100%; aspect-ratio: 16 / 7;
    scroll-snap-align: start; scroll-snap-stop: always; overflow: hidden; background: rgba(79, 70, 229, .08);
}
.hs-slide:hover { text-decoration: none; }
.hs-slide img { display: block; width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none; }
.hs-dots {
    position: absolute; left: 0; right: 0; bottom: 8px; z-index: 2;
    display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; padding: 0 12px; pointer-events: none;
}
.hs-dot {
    pointer-events: auto; position: relative; width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; cursor: pointer;
    background: rgba(255, 255, 255, .6); box-shadow: 0 0 0 1px rgba(15, 23, 42, .18);
    transition: width .25s ease, background-color .25s ease;
}
.hs-dot::after { content: ''; position: absolute; inset: -8px -4px; } /* bigger tap area */
.hs-dot.is-on { width: 22px; background: var(--primary); box-shadow: 0 0 0 1px rgba(255, 255, 255, .85); }
.hs-dot:focus-visible { outline: 3px solid rgba(79, 70, 229, .5); outline-offset: 2px; }
@media (min-width: 99999px) { .hs-dots { bottom: 12px; gap: 8px; } .hs-dot { width: 10px; height: 10px; } .hs-dot.is-on { width: 28px; } }
@media (prefers-reduced-motion: reduce) { .hs-dot { transition: none; } }


/* ============ home: category strip (3 per screen, auto slide right-to-left + hand scroll) ============ */
.hcat { margin: 0 0 18px; padding: 16px 14px 18px; border-radius: var(--radius); overflow: hidden; }
.hcat-title { margin: 0 0 14px; padding-bottom: 12px; font-size: 1.2rem; font-weight: 800; letter-spacing: -.01em; border-bottom: 1px solid var(--line); }
.hcat-track {
    display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 6px;
    scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; scrollbar-width: none;
}
.hcat-track::-webkit-scrollbar { display: none; }
.hcat-card {
    flex: 0 0 calc((100% - 20px) / 3); min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 8px;
    padding: 10px 6px 12px; color: var(--text); background: var(--glass-strong); border: 1px solid var(--line); border-radius: 18px;
    scroll-snap-align: start; -webkit-tap-highlight-color: transparent; transition: border-color .2s ease, box-shadow .2s ease;
}
.hcat-card:hover, .hcat-card:active, .hcat-card:focus-visible { text-decoration: none; border-color: var(--danger); box-shadow: 0 0 0 1px var(--danger); }
.hcat-card:focus-visible { outline: none; }
.hcat-img { display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 1 / 1; overflow: hidden; border-radius: 12px; color: var(--muted); }
.hcat-img img { display: block; width: 100%; height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.hcat-img .icon { width: 42%; height: 42%; opacity: .55; }
.hcat-name { display: block; width: 100%; font-size: .92rem; font-weight: 600; line-height: 1.4; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (min-width: 99999px) { .hcat-card { flex-basis: calc((100% - 40px) / 5); } }
@media (min-width: 99999px) { .hcat-card { flex-basis: calc((100% - 60px) / 7); } }


/* ============ home: Hot Deals (one banner per row, top to bottom; banner 16:7; label | timer | details) ============ */
.hot { display: flex; flex-direction: column; gap: 14px; margin: 0 0 18px; }
.hot-card { overflow: hidden; border-radius: var(--radius); }
.hot-card.is-hidden { display: none; }
.hot-banner { display: block; width: 100%; aspect-ratio: 16 / 7; overflow: hidden; background: rgba(79, 70, 229, .08); }
.hot-banner:hover { text-decoration: none; }
.hot-banner img { display: block; width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none; }
.hot-bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; padding: 10px 12px; }
.hot-label { justify-self: start; font-size: 1.02rem; font-weight: 800; color: var(--danger); white-space: nowrap; }
.hot-time { justify-self: center; font-family: var(--font-num); font-size: .92rem; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--text); }
.hot-btn {
    justify-self: end; display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding: .35rem 1rem;
    font-size: .9rem; font-weight: 700; color: #fff; white-space: nowrap; background: var(--primary-grad); border-radius: 999px;
    box-shadow: 0 6px 16px rgba(79, 70, 229, .28); -webkit-tap-highlight-color: transparent;
}
.hot-btn:hover { text-decoration: none; color: #fff; }
@media (max-width: 359px) { .hot-bar { padding: 8px; gap: 4px; } .hot-label { font-size: .9rem; } .hot-time { font-size: .8rem; } .hot-btn { padding: .3rem .7rem; font-size: .82rem; } }


/* ---------------- Product reviews (step 29) ---------------- */
/* Stars: grey row underneath, gold row on top; the gold row width (sw-N = N x 5%) shows the rating. */
.stars { position: relative; display: inline-flex; flex: none; vertical-align: middle; font-size: 1rem; line-height: 1; }
.stars-bg, .stars-fg { display: flex; }
.stars-bg { color: rgba(148, 163, 184, .45); }
.stars-fg { position: absolute; left: 0; top: 0; overflow: hidden; white-space: nowrap; color: #f59e0b; }
.stars .icon { width: 1em; height: 1em; flex: none; }
.stars-lg { font-size: 1.35rem; }
.stars-xl { font-size: 2.3rem; }
.sw-0 { width: 0%; }
.sw-1 { width: 5%; }
.sw-2 { width: 10%; }
.sw-3 { width: 15%; }
.sw-4 { width: 20%; }
.sw-5 { width: 25%; }
.sw-6 { width: 30%; }
.sw-7 { width: 35%; }
.sw-8 { width: 40%; }
.sw-9 { width: 45%; }
.sw-10 { width: 50%; }
.sw-11 { width: 55%; }
.sw-12 { width: 60%; }
.sw-13 { width: 65%; }
.sw-14 { width: 70%; }
.sw-15 { width: 75%; }
.sw-16 { width: 80%; }
.sw-17 { width: 85%; }
.sw-18 { width: 90%; }
.sw-19 { width: 95%; }
.sw-20 { width: 100%; }

.pd-rate { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; color: var(--text); font-size: .92rem; }
.pd-rate:hover { text-decoration: none; }
.pd-rate strong { font-weight: 800; }

.product-rate { display: inline-flex; align-items: center; gap: 3px; margin-top: 2px; font-size: .78rem; color: var(--muted); }
.product-rate .icon { width: .95em; height: .95em; color: #f59e0b; }
.product-rate strong { color: var(--text); font-weight: 700; }

.mo-rate { display: inline-flex; align-items: center; gap: 5px; align-self: flex-start; margin-top: 2px; padding: 2px 10px; font-size: .78rem; font-weight: 700; color: #b45309; background: rgba(245, 158, 11, .16); border-radius: 999px; }
.mo-rate .icon { width: .95em; height: .95em; color: #f59e0b; }

/* Reviews block on the product page */
.rv { margin-top: 22px; padding: 18px 16px; }
.rv-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.rv-title { margin: 0; font-size: 1.1rem; font-weight: 800; }
.rv-empty { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 18px 8px; text-align: center; }
.rv-empty p { margin: 0; font-size: .9rem; }
.rv-empty-ic { display: inline-flex; align-items: center; justify-content: center; width: 54px; height: 54px; margin-bottom: 6px; border-radius: 50%; color: #f59e0b; background: rgba(245, 158, 11, .14); }
.rv-empty-ic .icon { width: 1.6rem; height: 1.6rem; }
.rv-sum { display: grid; gap: 16px; padding: 14px; margin-bottom: 8px; border-radius: 16px; background: var(--glass-strong); border: 1px solid var(--line); }
.rv-avg { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.rv-avg-n { font-family: var(--font-num); font-size: 2.6rem; font-weight: 800; line-height: 1.1; }
.rv-avg-c { font-size: .85rem; }
.rv-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.rv-bar-row { display: flex; align-items: center; gap: 8px; font-size: .82rem; }
.rv-bar-l { display: inline-flex; align-items: center; gap: 2px; width: 2.2rem; flex: none; font-weight: 700; }
.rv-bar-l .icon { width: .9em; height: .9em; color: #f59e0b; }
.rv-bar { flex: 1; height: 8px; overflow: hidden; border-radius: 8px; background: var(--line); }
.rv-bar i { display: block; height: 100%; border-radius: 8px; background: #f59e0b; }
.rv-bar-n { width: 2.2rem; flex: none; text-align: right; color: var(--muted); }
.rv-list { list-style: none; margin: 0; padding: 0; }
.rv-item { padding: 14px 2px; border-top: 1px solid var(--line); }
.rv-item:first-child { border-top: 0; }
.rv-head { display: flex; align-items: center; gap: 10px; }
.rv-av { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; overflow: hidden; border-radius: 50%; font-weight: 800; color: #fff; background: var(--primary-grad); }
.rv-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rv-who { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.3; }
.rv-who strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .95rem; }
.rv-who small { font-size: .78rem; }
.rv-text { margin: 8px 0 0; font-size: .95rem; line-height: 1.6; overflow-wrap: anywhere; }
.rv-reply { margin: 10px 0 0; padding: 10px 12px; border-radius: 12px; background: rgba(79, 70, 229, .08); border-left: 3px solid var(--primary); }
.rv-reply strong { font-size: .82rem; color: var(--primary); }
.rv-reply p { margin: 4px 0 0; font-size: .92rem; line-height: 1.55; overflow-wrap: anywhere; }

/* Review form on the order page */
.rv-box { padding: 14px 0; border-top: 1px solid var(--line); }
.rv-box:first-of-type { border-top: 0; padding-top: 4px; }
.rv-box-head { display: flex; flex-direction: column; gap: 2px; margin-bottom: 10px; }
.rv-box-name { font-weight: 800; font-size: 1rem; line-height: 1.35; color: var(--text); }
.rv-form .field { margin: 12px 0; }
.rv-label { display: block; margin-bottom: 6px; font-weight: 700; font-size: .9rem; }
.rate { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 6px; border-radius: 14px; background: var(--glass-strong); border: 1px solid var(--line); }
.rate:focus-visible { outline: 3px solid rgba(79, 70, 229, .35); }
.rate-area { display: inline-block; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.rate-text { font-size: .9rem; font-weight: 700; color: var(--muted); }
.rate-text.is-set { color: #b45309; }
.rv-check { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 14px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--glass-strong); cursor: pointer; }
.rv-check input { flex: none; width: 20px; height: 20px; margin-top: 2px; accent-color: var(--danger); }
.rv-check span { display: flex; flex-direction: column; gap: 2px; font-size: .92rem; }
.rv-check small { font-size: .8rem; line-height: 1.4; }
.rv-mine { display: flex; align-items: center; gap: 10px; }
.rv-mine-n { font-weight: 800; }
.rv-flags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.rv-flag { padding: 2px 10px; font-size: .76rem; font-weight: 700; border-radius: 999px; }
.rv-flag-problem { color: var(--danger); background: rgba(225, 29, 72, .12); }
.rv-flag-returned { color: var(--warn); background: rgba(180, 83, 9, .14); }

@media (min-width: 99999px) {
    .rv-sum { grid-template-columns: 200px 1fr; align-items: center; }
}

.od-cancel .od-line { margin: 0 0 10px; }
.od-cancel > .od-line:last-child { margin-bottom: 0; }
.btn-cancel { color: var(--danger); border-color: var(--danger); }


/* ============ slim edge-to-edge layout (v2): minimal side gaps, cleaner professional look ============ */
:root { --radius: 16px; --radius-sm: 10px; --gutter: 8px; --shadow: 0 6px 22px rgba(49, 46, 129, .10); }

.container { max-width: 1320px; padding-left: var(--gutter); padding-right: var(--gutter); }
.section { padding: 8px 0 12px; }

/* header */
.site-header { padding-top: 6px; }
.header-inner { padding: 8px 10px; border-radius: 16px; }
.brand { font-size: 1.1rem; }
.brand-mark { width: 38px; height: 38px; border-radius: 11px; }

/* bottom navigation + fixed bars: align with the slim gutter */
.bottom-nav { left: var(--gutter); right: var(--gutter); border-radius: 20px; }
.pd-bar { left: var(--gutter); right: var(--gutter); }
.cart-bar { left: var(--gutter); right: var(--gutter); }

/* home blocks */
.hs, .hcat, .hot { margin-bottom: 12px; }
.hot { gap: 10px; }
.hs, .hot-card { border-radius: 16px; }
.hcat { padding: 12px 10px 12px; border-radius: 16px; }
.hcat-title { margin-bottom: 10px; padding-bottom: 10px; font-size: 1.1rem; }
.hcat-track { gap: 8px; padding: 2px 0 4px; }
.hcat-card { flex-basis: calc((100% - 16px) / 3); border-radius: 14px; padding: 8px 4px 10px; }
.hot-bar { padding: 8px 10px; }
@media (min-width: 99999px) { .hcat-card { flex-basis: calc((100% - 32px) / 5); } }
@media (min-width: 99999px) { .hcat-card { flex-basis: calc((100% - 48px) / 7); } }

/* product feed */
.product-grid { gap: 8px; }
.product-card { border-radius: 14px; }
.product-body { padding: 10px 10px 12px; }
.result-title { margin: 2px 2px 10px; }
.hrow-title { margin-left: 2px; margin-right: 2px; }

/* product page */
.pd { gap: 10px; }
.pd-media { border-radius: 16px; }
.pd-info { padding: 14px 12px; }
.pd-buy { padding: 10px 12px; }

/* cart / checkout / account / auth / orders */
.cart-grid { gap: 10px; }
.cs { padding: 14px 12px; }
.co-panel { padding: 14px 12px; }
.co-main { gap: 10px; }
.pf-card { padding: 14px 12px; margin-top: 10px; }
.pf-grid { gap: 10px; margin-top: 10px; }
.pf-hero-body { padding-left: 12px; padding-right: 12px; }
.pf-wrap, .od-wrap { max-width: 100%; }
.od-wrap { gap: 10px; }
.auth-card { padding: 22px 16px; }
.empty-box { padding: 30px 18px; }
.alert { margin-top: 8px; }

@media (min-width: 99999px) { :root { --gutter: 12px; } .product-grid { gap: 10px; } }
@media (min-width: 99999px) { :root { --gutter: 20px; } .product-grid { gap: 12px; } }
@media (min-width: 99999px) {
    .pf-wrap { max-width: 720px; }
    .od-wrap { max-width: 760px; }
    .auth-card { padding: 28px 24px; }
}


/* ============ welcome pop-up (notice / offer picture, opens once per visit) ============ */
.wp {
    position: fixed; inset: 0; z-index: 120;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: calc(12px + env(safe-area-inset-top)) 12px calc(12px + env(safe-area-inset-bottom));
    background: rgba(8, 6, 24, .72);
    -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
    animation: wp-fade .25s ease both;
}
.wp[hidden], .wp-item[hidden] { display: none; }
.wp-item { display: flex; align-items: center; justify-content: center; max-width: 100%; animation: wp-pop .38s cubic-bezier(.2, .9, .3, 1.2) both; }
.wp-pic { display: block; max-width: 100%; -webkit-tap-highlight-color: transparent; }
.wp-pic:hover { text-decoration: none; }
.wp-pic img {
    display: block; width: auto; height: auto; max-width: min(94vw, 560px); max-height: 74vh; max-height: 74dvh;
    object-fit: contain; user-select: none; -webkit-user-drag: none;
    filter: drop-shadow(0 14px 30px rgba(0, 0, 0, .45));
}
.wp-close {
    flex: none; display: inline-flex; align-items: center; justify-content: center;
    width: 46px; height: 46px; margin-top: 14px; padding: 0; color: #fff; cursor: pointer;
    background: rgba(15, 23, 42, .45); border: 2px solid rgba(255, 255, 255, .9); border-radius: 50%;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .35); -webkit-tap-highlight-color: transparent;
    animation: wp-pop .45s .12s cubic-bezier(.2, .9, .3, 1.2) both;
}
.wp-close .icon { width: 22px; height: 22px; }
.wp-close:hover { background: rgba(15, 23, 42, .7); }
.wp-close:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
html.wp-lock, html.wp-lock body { overflow: hidden; }
@keyframes wp-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes wp-pop { from { opacity: 0; transform: scale(.82) translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .wp, .wp-item, .wp-close { animation: none; } }


/* price that depends on the picked size / amount */
.price-from, .pd-from { font-size: .78rem; font-weight: 700; color: var(--muted); white-space: nowrap; }
.pd-from { font-size: .9rem; align-self: flex-end; padding-bottom: 6px; }
.hcard-foot .price-from { margin-left: 4px; font-size: .7rem; }
.opt-size { line-height: 1.25; }
.opt-size .opt-price { display: block; margin-top: 2px; font-size: .74rem; font-weight: 700; opacity: .8; }
.opt-size.is-on .opt-price { opacity: 1; }


/* ============ floating offer badge (small draggable picture, slides in from the right) ============ */
.fb {
    position: fixed; z-index: 95; left: 0; top: 0; width: 64px; height: 72px;
    touch-action: none; user-select: none; -webkit-user-select: none; cursor: grab;
    -webkit-tap-highlight-color: transparent; transition: opacity .25s ease, transform .25s ease;
}
.fb[hidden] { display: none; }
.fb.is-drag { cursor: grabbing; }
.fb.is-drag .fb-stage { transform: scale(1.06); }
.fb.is-gone { opacity: 0; transform: translateX(40px) scale(.8); pointer-events: none; }
.fb-stage { position: absolute; inset: 0; overflow: hidden; transition: transform .15s ease; }
.fb-item {
    position: absolute; inset: 0; display: block;
    transform: translateX(160%); opacity: 0;
    transition: transform .6s cubic-bezier(.22, .8, .3, 1), opacity .45s ease;
}
.fb-item.is-in { transform: none; opacity: 1; }
.fb-item.is-out { transform: translateX(-160%); opacity: 0; }
.fb-item:hover { text-decoration: none; }
.fb-item img {
    display: block; width: 100%; height: 100%; object-fit: contain; pointer-events: none;
    -webkit-user-drag: none; filter: drop-shadow(0 4px 7px rgba(0, 0, 0, .35));
}
.fb-close {
    position: absolute; top: -4px; right: -4px; z-index: 2; display: inline-flex; align-items: center; justify-content: center;
    width: 20px; height: 20px; padding: 0; color: #fff; cursor: pointer;
    background: rgba(15, 23, 42, .72); border: 1px solid rgba(255, 255, 255, .85); border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .3);
}
.fb-close .icon { width: 11px; height: 11px; }
.fb-close:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .fb-item, .fb, .fb-stage { transition: none; } }


/* ============ PWA: install banner + offline page ============ */
.pwa-bar {
    position: fixed; z-index: 85; left: var(--gutter, 8px); right: var(--gutter, 8px);
    bottom: calc(96px + env(safe-area-inset-bottom)); margin: 0 auto; max-width: 520px;
    display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 12px;
    background: rgba(255, 255, 255, .92); border: 1px solid var(--line, rgba(79, 70, 229, .15)); border-radius: 18px;
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    box-shadow: 0 12px 34px rgba(49, 46, 129, .22); animation: pwa-up .4s cubic-bezier(.2, .9, .3, 1.1) both;
}
.pwa-bar[hidden] { display: none; }
.pwa-bar-icon { flex: none; width: 44px; height: 44px; border-radius: 12px; object-fit: contain; background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .12); }
.pwa-bar-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.pwa-bar-text strong { font-size: .95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pwa-bar-text small { font-size: .78rem; color: var(--muted, #64748b); }
.pwa-go {
    flex: none; padding: 9px 16px; border: 0; border-radius: 12px; cursor: pointer; font: inherit; font-weight: 800; font-size: .88rem; color: #fff;
    background: linear-gradient(135deg, #4f46e5, #0ea5a4); box-shadow: 0 6px 16px rgba(79, 70, 229, .32);
}
.pwa-go[hidden] { display: none; }
.pwa-x { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%; cursor: pointer; color: var(--muted, #64748b); background: rgba(100, 116, 139, .12); }
.pwa-x .icon { width: 15px; height: 15px; }
@keyframes pwa-up { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .pwa-bar { animation: none; } }

.offline-page { min-height: 100vh; min-height: 100dvh; display: flex; }
.offline-wrap { flex: 1; display: flex; align-items: center; justify-content: center; padding: 20px 12px; }
.offline-card { width: 100%; max-width: 380px; padding: 30px 22px; text-align: center; border-radius: 22px; }
.offline-icon { display: inline-flex; align-items: center; justify-content: center; width: 76px; height: 76px; margin-bottom: 12px; border-radius: 50%; color: var(--primary, #4f46e5); background: rgba(79, 70, 229, .1); }
.offline-title { margin: 0 0 6px; font-size: 1.3rem; }
.offline-text { margin: 0 0 18px; color: var(--muted, #64748b); }
.offline-btn { padding: 11px 26px; border: 0; border-radius: 14px; cursor: pointer; font: inherit; font-weight: 800; color: #fff; background: linear-gradient(135deg, #4f46e5, #0ea5a4); box-shadow: 0 8px 20px rgba(79, 70, 229, .3); }

/* site logo: only the logo itself, no white box behind it */
.brand-mark.has-logo { padding: 0; background: none; border: 0; box-shadow: none; overflow: visible; border-radius: 0; }
.brand-mark.has-logo img { border-radius: 0; mix-blend-mode: multiply; }   /* a logo saved with a white background blends into the page */

.brand-mark.has-logo img { mix-blend-mode: normal; }   /* the white is removed from the picture itself now */

/* installed app (PWA): no pinch / double-tap zoom */
@media (display-mode: standalone), (display-mode: fullscreen), (display-mode: minimal-ui) {
    html, body { touch-action: pan-x pan-y; -webkit-text-size-adjust: 100%; }
}

/* ============ privacy policy page + small legal links ============ */
.vh { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.legal { padding: 14px 0 28px; }
.legal-card { max-width: 820px; margin: 0 auto; padding: 22px 20px 20px; border-radius: var(--radius); }
.legal-head { display: flex; align-items: center; gap: 14px; padding-bottom: 16px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.legal-ic { flex: none; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; color: #fff; background: var(--primary-grad); box-shadow: 0 8px 20px rgba(79, 70, 229, .28); }
.legal-ic .icon { width: 28px; height: 28px; }
.legal-title { margin: 0; font-size: 1.35rem; line-height: 1.3; }
.legal-sub { margin: 2px 0 0; font-size: .86rem; }
.legal-body { font-size: 1rem; line-height: 1.85; overflow-wrap: anywhere; }
.legal-body h2 { position: relative; margin: 1.6rem 0 .5rem; padding-left: 14px; font-size: 1.1rem; line-height: 1.4; }
.legal-body h2::before { content: ""; position: absolute; left: 0; top: .2em; bottom: .2em; width: 4px; border-radius: 4px; background: var(--primary-grad); }
.legal-body p { margin: 0 0 .8rem; }
.legal-body ul { margin: 0 0 .9rem; padding-left: 1.2rem; }
.legal-body li { margin: .3rem 0; }
.legal-body strong { color: var(--text); }
.legal-foot { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); }
.pf-legal { margin: 12px 0 0; text-align: center; font-size: .9rem; }
.pf-legal a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.pf-legal .icon { width: 16px; height: 16px; }
.legal-note { margin: 14px 0 0; text-align: center; font-size: .82rem; }
@media (min-width: 99999px) {
    .legal-card { padding: 30px 34px 26px; }
    .legal-title { font-size: 1.6rem; }
}

/* out-of-stock product: can still be kept in the cart */
.opt-color.is-na, .opt-size.is-na { cursor: pointer; }
.pd-outnote { margin: 0 0 12px; padding: 10px 14px; font-size: .92rem; font-weight: 600; color: #92400e; background: #fef3c7; border-radius: 12px; }
.ci-outnote { display: block; margin: 6px 0 0; font-size: .85rem; color: #92400e; }

/* notification permission pop-up (assets/js/push.js) */
.pa-wrap { position: fixed; inset: 0; z-index: 1500; display: flex; align-items: flex-end; justify-content: center; padding: 16px; background: rgba(15, 23, 42, .45); opacity: 0; transition: opacity .25s ease; }
.pa-wrap.is-on { opacity: 1; }
.pa-card { width: 100%; max-width: 400px; padding: 26px 22px 18px; text-align: center; background: #fff; color: #1f2937; border-radius: 22px; box-shadow: 0 20px 60px rgba(0, 0, 0, .28); transform: translateY(30px) scale(.97); transition: transform .3s cubic-bezier(.22, .8, .3, 1); }
.pa-wrap.is-on .pa-card { transform: none; }
.pa-ic { display: inline-flex; align-items: center; justify-content: center; width: 68px; height: 68px; margin-bottom: 10px; border-radius: 50%; color: #fff; background: var(--primary-grad, linear-gradient(135deg, #10b981, #059669)); box-shadow: 0 10px 24px rgba(16, 185, 129, .35); animation: pa-ring 1.6s ease-in-out 3; }
.pa-title { margin: 0 0 8px; font-size: 1.25rem; font-weight: 800; letter-spacing: 0; }
.pa-text { margin: 0 0 18px; font-size: .95rem; line-height: 1.6; color: #4b5563; }
.pa-allow { display: block; width: 100%; min-height: 50px; border-radius: 14px; font-weight: 800; }
.pa-later { display: block; width: 100%; margin-top: 6px; padding: 12px; border: 0; background: transparent; color: #6b7280; font: inherit; font-weight: 600; cursor: pointer; }
.pa-card.is-done .pa-title { margin-bottom: 14px; color: #047857; }
@keyframes pa-ring { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(14deg); } 40% { transform: rotate(-12deg); } 60% { transform: rotate(8deg); } 80% { transform: rotate(-4deg); } }
@media (min-width: 99999px) { .pa-wrap { align-items: center; } }

/* Delivery man number card (order page, from packing until delivered) */
.dm-card { position: relative; overflow: hidden; border: 1px solid rgba(79, 70, 229, .28); animation: dm-in .6s cubic-bezier(.2, .8, .2, 1) both; }
.dm-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--primary-grad); background-size: 200% 100%; animation: dm-bar 3s linear infinite; }
.dm-body { display: flex; align-items: center; gap: 16px; margin: 6px 0 4px; }
.dm-ring { position: relative; flex: none; display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; }
.dm-pulse { position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(79, 70, 229, .55); opacity: 0; animation: dm-pulse 2.2s ease-out infinite; }
.dm-pulse-2 { animation-delay: 1.1s; }
.dm-ic { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 50px; height: 50px; color: #fff; background: var(--primary-grad); border-radius: 50%; box-shadow: 0 8px 20px rgba(79, 70, 229, .35); animation: dm-ring 2.4s ease-in-out infinite; }
.dm-ic .icon { width: 24px; height: 24px; }
.dm-info { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.dm-name { font-weight: 700; color: var(--muted); }
.dm-num { display: inline-block; text-decoration: none; }
.dm-num:hover { text-decoration: none; }
.dm-digits { display: inline-flex; flex-wrap: nowrap; font-family: var(--font-num); font-size: 1.7rem; font-weight: 800; line-height: 1.2; letter-spacing: .02em; white-space: nowrap; font-variant-numeric: lining-nums tabular-nums; background: linear-gradient(90deg, #4f46e5, #0891b2, #10b981, #4f46e5); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; animation: dm-shine 4s linear infinite; }
.dm-d { display: inline-block; opacity: 0; transform: translateY(14px); animation: dm-digit .5s cubic-bezier(.2, .8, .2, 1) forwards; }
.dm-d:nth-child(1) { animation-delay: .15s; } .dm-d:nth-child(2) { animation-delay: .22s; } .dm-d:nth-child(3) { animation-delay: .29s; }
.dm-d:nth-child(4) { animation-delay: .36s; } .dm-d:nth-child(5) { animation-delay: .43s; } .dm-d:nth-child(6) { animation-delay: .5s; }
.dm-d:nth-child(7) { animation-delay: .57s; } .dm-d:nth-child(8) { animation-delay: .64s; } .dm-d:nth-child(9) { animation-delay: .71s; }
.dm-d:nth-child(10) { animation-delay: .78s; } .dm-d:nth-child(11) { animation-delay: .85s; } .dm-d:nth-child(12) { animation-delay: .92s; }
.dm-d:nth-child(n+13) { animation-delay: 1s; }
.dm-note { margin: 8px 0 12px; font-size: .92rem; }
.dm-call .icon { margin-right: 6px; }
@keyframes dm-in { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes dm-bar { to { background-position: 200% 0; } }
@keyframes dm-pulse { 0% { transform: scale(.7); opacity: .7; } 100% { transform: scale(1.35); opacity: 0; } }
@keyframes dm-ring { 0%, 55%, 100% { transform: rotate(0); } 10%, 30% { transform: rotate(-14deg); } 20%, 40% { transform: rotate(14deg); } 48% { transform: rotate(-6deg); } }
@keyframes dm-digit { to { opacity: 1; transform: none; } }
@keyframes dm-shine { to { background-position: 250% 0; } }
@media (prefers-reduced-motion: reduce) {
    .dm-card, .dm-card::before, .dm-pulse, .dm-ic, .dm-digits { animation: none; }
    .dm-d { animation: none; opacity: 1; transform: none; }
}

/* Profile: notice for new admin replies to the customer's reviews */
.pf-rn { border: 1px solid rgba(79, 70, 229, .35); }
.pf-rn-n { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; height: 24px; padding: 0 7px; font-style: normal; font-size: .78rem; font-weight: 800; color: #fff; border-radius: 999px; background: var(--danger); }
.pf-rn-list { display: grid; gap: 8px; list-style: none; margin: 8px 0 0; padding: 0; }
.pf-rn-item { display: flex; align-items: center; gap: 10px; padding: 8px; color: var(--text); border-radius: 14px; background: var(--glass-strong); border: 1px solid var(--line); }
.pf-rn-item:hover { text-decoration: none; border-color: var(--primary); }
.pf-rn-img { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; object-fit: cover; border-radius: 10px; background: var(--line); }
.pf-rn-img .icon { width: 1.3rem; height: 1.3rem; opacity: .5; }
.pf-rn-tx { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.35; }
.pf-rn-tx strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .92rem; }
.pf-rn-tx small { font-size: .78rem; font-weight: 700; color: var(--primary); }
.pf-rn-go { flex: none; width: 1.1rem; height: 1.1rem; color: var(--muted); }


/* ============ phone frame: on laptops / desktops the site is shown like on a phone ============ */
:root { --frame: 480px; --frame-bg: #d9e0ee; }
@media (prefers-color-scheme: dark) { :root { --frame-bg: #03050b; } }
@media (min-width: 521px) {
    html { background: var(--frame-bg); }
    body {
        max-width: var(--frame); margin: 0 auto; overflow-x: clip;
        box-shadow: 0 0 0 1px var(--line), 0 0 60px rgba(15, 23, 42, .22);
        padding-bottom: calc(var(--bottom-h) + env(safe-area-inset-bottom));
    }
    body::before, body::after { display: none; }
    /* fixed bars: stay inside the phone column */
    .bottom-nav, .pd-bar, .cart-bar, .pwa-bar {
        left: max(var(--gutter, 8px), calc((100% - var(--frame)) / 2 + var(--gutter, 8px)));
        right: max(var(--gutter, 8px), calc((100% - var(--frame)) / 2 + var(--gutter, 8px)));
    }
    .bottom-nav { display: flex !important; }
    .pf-drawer { right: max(0px, calc((100% - var(--frame)) / 2)); }
    .toast { max-width: calc(var(--frame) - 32px); }
}
