:root {
    --navy: #0b1f3a;
    --navy-2: #16325c;
    --ink: #1a1d21;
    --muted: #5c6670;
    --gold: #c6a15b;
    --gold-2: #e8d3a2;
    --gold-dark: #a8863f;
    --brand: #0b1f3a;
    --brand-dark: #061426;
    --accent: #c6a15b;
    --accent-soft: #f5efe3;
    --red: #0b1f3a;
    --red-dark: #061426;
    --bg: #f3f4f6;
    --line: #e3e6eb;
    --card: #fff;
    --green: #0e7a43;
    --shadow: 0 8px 24px rgba(11, 31, 58, 0.08);
    --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { overflow-x: hidden; }
body {
    font-family: var(--font);
    color: var(--ink);
    background: #fff;
    font-size: 14px;
    line-height: 1.5;
    overflow-x: hidden;
    max-width: 100%;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font-family: inherit; }
.wrap { width: min(1180px, calc(100% - 32px)); margin: 0 auto; max-width: 100%; }

.topbar {
    background: var(--gold);
    color: #1a1408;
    font-size: 12px;
    font-weight: 700;
    overflow: hidden;
    white-space: nowrap;
    line-height: 1;
}
.topbar-track {
    display: flex;
    width: max-content;
    align-items: center;
    padding: 9px 0;
    animation: topbar-marquee 28s linear infinite;
}
.topbar:hover .topbar-track { animation-play-state: paused; }
.topbar-group {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    padding-right: 18px;
}
.topbar-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: inherit;
    white-space: nowrap;
}
.topbar-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(26, 20, 8, 0.35);
    flex: none;
}
@keyframes topbar-marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
    .topbar-track { animation: none; }
}

.wa-float {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 60;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    display: grid;
    place-items: center;
    box-shadow: 0 10px 28px rgba(11, 31, 58, 0.28);
    transition: transform .15s ease, background .15s ease;
}
.wa-float:hover {
    background: #1ebe57;
    color: #fff;
    transform: translateY(-2px) scale(1.04);
}
.wa-float svg { display: block; }

.mast {
    background: var(--brand-dark);
    border-bottom: 0;
}
.mast .wrap {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 12px 0;
}
.nav-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #fff;
    place-items: center;
    cursor: pointer;
    padding: 0;
}
.nav-toggle:hover { background: rgba(255, 255, 255, 0.08); }
.brand { display: inline-flex; align-items: center; }
.brand img {
    height: 64px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
    image-rendering: auto;
}
.search {
    display: flex;
    align-items: center;
    height: 44px;
    border: 0;
    border-radius: 10px;
    background: #fff;
    padding: 0 0 0 12px;
    overflow: hidden;
}
.search select {
    border: 0;
    background: transparent;
    font-weight: 700;
    font-size: 13px;
    color: #222;
    max-width: 110px;
    outline: none;
    padding-right: 6px;
}
.search input {
    flex: 1;
    border: 0;
    padding: 0 12px;
    font-size: 14px;
    outline: none;
    min-width: 0;
    color: #222;
    background: transparent;
}
.search input::placeholder { color: #9aa0a8; }
.search button {
    width: 48px;
    height: 44px;
    border: 0;
    border-radius: 0;
    background: var(--gold);
    color: #1a1408;
    display: grid;
    place-items: center;
    cursor: pointer;
    flex: none;
}
.search button:hover { background: var(--gold-2); color: var(--navy); }
.search button svg { width: 18px; height: 18px; }
.mast-actions { display: flex; gap: 2px; }
.icon-btn {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
    min-width: 56px; color: #fff; font-size: 11px; font-weight: 500; position: relative; line-height: 1.1;
}
.icon-btn:hover { color: var(--gold-2); }
.icon-btn svg { width: 22px; height: 22px; }
.cart-count {
    position: absolute; top: 0; right: 8px; background: var(--gold); color: var(--navy);
    border-radius: 99px; min-width: 16px; height: 16px; font-size: 10px; font-weight: 800;
    display: grid; place-items: center; padding: 0 4px;
}

.catbar {
    background: var(--navy);
    border-bottom: 0;
    max-width: 100%;
}
.catbar .wrap {
    display: flex;
    gap: 0;
    overflow-x: auto;
    align-items: center;
    scrollbar-width: none;
    max-width: 100%;
    min-width: 0;
    width: min(1180px, calc(100% - 32px));
}
.catbar .wrap::-webkit-scrollbar { display: none; }
.catbar a {
    padding: 12px 14px;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.92);
    white-space: nowrap;
    border-bottom: 2px solid transparent;
}
.catbar a.all { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: #fff; }
.catbar a:hover,
.catbar a.is-active {
    color: #fff;
    border-bottom-color: var(--gold);
}

.nav-scrim {
    position: fixed;
    inset: 0;
    background: rgba(6, 20, 38, 0.45);
    z-index: 40;
}
.site-drawer {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(300px, 86vw);
    background: var(--brand-dark);
    color: #fff;
    z-index: 50;
    transform: translateX(-105%);
    transition: transform 0.22s ease;
    box-shadow: 8px 0 28px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
}
body.nav-open .site-drawer { transform: none; }
body.nav-open { overflow: hidden; }
.site-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 16px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.site-drawer-close {
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}
.site-drawer-nav {
    display: flex;
    flex-direction: column;
    padding: 8px 0;
    overflow-y: auto;
}
.site-drawer-nav a {
    padding: 12px 18px;
    color: rgba(255, 255, 255, 0.92);
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.site-drawer-nav a:hover { background: rgba(255, 255, 255, 0.06); color: var(--gold-2); }

.hero {
    background:
        radial-gradient(circle at 85% 20%, rgba(198, 161, 91, 0.28), transparent 28%),
        linear-gradient(110deg, #071526 0%, #0b1f3a 48%, #1a3d6e 100%);
    color: #fff;
}
.hero .wrap { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 30px; align-items: center; padding: 48px 0; }
.eyebrow { color: var(--gold-2); letter-spacing: 0.16em; text-transform: uppercase; font-size: 12px; font-weight: 700; margin: 0 0 10px; }
.hero h1 { font-size: 46px; line-height: 1.05; margin: 0 0 12px; font-weight: 800; letter-spacing: -0.03em; }
.hero p { margin: 0; max-width: 520px; color: #d5dbe3; font-size: 16px; }
.hero-actions { display: flex; gap: 10px; margin-top: 22px; }
.hero-mark { background: rgba(255,255,255,0.96); border-radius: 18px; padding: 14px; box-shadow: var(--shadow); }
.hero-mark img { width: 100%; height: auto; }

.section { padding: 28px 0 8px; }
.section-head { display: flex; justify-content: space-between; align-items: end; margin-bottom: 14px; }
.section-head h2 { margin: 0; font-size: 22px; letter-spacing: -0.02em; }
.section-head a { color: var(--red); font-weight: 700; font-size: 13px; }
.cats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.cat {
    border: 1px solid var(--line); border-radius: 8px; padding: 14px 12px; background: #fff; min-height: 86px;
}
.cat:hover { border-color: var(--gold); box-shadow: var(--shadow); }
.cat strong { display: block; color: var(--navy); }
.cat span { color: var(--muted); font-size: 12px; }

.grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.pcard { position: relative; background: #fff; border: 1px solid #f0f0f0; border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; min-height: 100%; }
.pcard-link { color: inherit; display: flex; flex-direction: column; flex: 1; }
.pcard:hover { box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08); }
.pcard-media { position: relative; aspect-ratio: 1; background: #fafafa; }
.pcard-media img, .visual { width: 100%; height: 100%; object-fit: cover; }
.visual { display: grid; place-items: center; }
.visual svg { width: 42%; height: 42%; }
.visual-cookware { background: linear-gradient(160deg, #0b1f3a, #24548f); color: #fff; }
.visual-cutlery { background: linear-gradient(160deg, #8a6830, #e8d3a2); color: #fff; }
.visual-bakeware { background: linear-gradient(160deg, #f8f3ea, #e7d3a1); color: var(--navy); }
.visual-appliances { background: linear-gradient(160deg, #0b1f3a, #16325c); color: #fff; }
.visual-storage { background: linear-gradient(160deg, #1b2836, #5c738b); color: #fff; }
.visual-utensils { background: linear-gradient(160deg, #0b1f3a, #c6a15b); color: #fff; }
.visual-navy { background: linear-gradient(160deg, #0b1f3a, #24548f); color: #fff; }
.visual-cream { background: linear-gradient(165deg, #f7f1e6, #e7d3a8); color: #1f3a6e; }
.visual-gold { background: linear-gradient(160deg, #8a6830, #f0ddb4); color: #fff; }
.visual-graphite { background: linear-gradient(160deg, #1c1c1c, #5c5c5c); color: #fff; }
.visual-blush { background: linear-gradient(160deg, #0b1f3a, #c6a15b); color: #fff; }
.visual-slate { background: linear-gradient(160deg, #1b2836, #7d91a6); color: #fff; }
.deal { position: absolute; top: 8px; left: 8px; background: var(--gold); color: var(--navy); font-size: 12px; font-weight: 800; border-radius: 3px; padding: 2px 6px; }
.pcard-body { padding: 10px 12px 12px; }
.pcard-body h3 { margin: 0 0 8px; font-size: 13px; font-weight: 400; line-height: 1.35; min-height: 36px; color: #222; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.price { color: #1a1a1a; font-size: 18px; font-weight: 700; letter-spacing: -0.02em; }
.was { color: var(--muted); text-decoration: line-through; font-size: 12px; }
.meta { color: var(--muted); font-size: 12px; margin-top: 4px; }
.meta.ok { color: var(--green); }
.meta.bad { color: var(--red); }

.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding: 22px 0 36px; }
.trust article { background: #faf8f3; border: 1px solid #efe6d4; border-radius: 8px; padding: 14px; }
.trust strong { display: block; color: var(--navy); margin-bottom: 4px; }
.trust span { color: var(--muted); font-size: 12px; }

.prefooter { background: #fff; padding: 36px 0 18px; }
.brand-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.brand-head h2 { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -0.03em; }
.brand-head a { color: #667085; font-size: 14px; }
.brand-head a:hover { color: #111; }
.brand-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; overflow-x: auto; padding: 2px 2px 14px; }
.brand-mark {
    flex: none; width: 78px; height: 78px; border-radius: 50%; background: #fff;
    box-shadow: 0 1px 3px rgba(16, 24, 40, 0.08), 0 0 0 1px #eef0f3;
    display: grid; place-items: center; color: #111;
}
.brand-mark span { display: block; max-width: 64px; text-align: center; line-height: 1.05; font-weight: 800; font-size: 11px; letter-spacing: -0.03em; }
.brand-mark svg { width: 42px; height: 42px; }
.mark-heritage span { font-size: 9px; letter-spacing: 0.08em; font-weight: 800; }
.mark-goldrim span { font-family: Georgia, "Times New Roman", serif; font-weight: 500; font-style: italic; font-size: 13px; }
.mark-enamel span { color: #1d4ed8; letter-spacing: 0.04em; font-size: 10px; }
.mark-acacia span { color: var(--gold); font-size: 10px; letter-spacing: 0.02em; }
.mark-marble span { color: var(--gold-dark); font-family: Georgia, "Times New Roman", serif; font-style: italic; font-weight: 600; font-size: 14px; }
.mark-steel span { letter-spacing: 0.14em; font-size: 10px; font-weight: 700; }
.mark-bake span { color: #1d4ed8; letter-spacing: 0.08em; font-size: 12px; }
.mark-cast span { color: #15803d; font-family: Georgia, "Times New Roman", serif; font-style: italic; font-weight: 600; font-size: 15px; }
.mark-stock span { letter-spacing: 0.06em; font-size: 11px; }
.mark-kitchen { background: #15803d; color: #fff; box-shadow: none; }
.mark-kitchen span { color: #fff; font-size: 11px; letter-spacing: 0.04em; }
.promise { margin-top: 8px; background: var(--accent-soft); border-radius: 10px; display: grid; grid-template-columns: repeat(4, 1fr); padding: 28px 6px; }
.promise article { position: relative; text-align: center; padding: 6px 16px; }
.promise article + article::before { content: ""; position: absolute; left: 0; top: 16px; bottom: 16px; width: 1px; background: #f5c5cb; }
.promise-icon { width: 68px; height: 68px; margin: 0 auto 12px; border-radius: 50%; background: #fff; display: grid; place-items: center; color: var(--navy); }
.promise-icon svg { width: 28px; height: 28px; }
.promise p { margin: 0; color: #7a1524; font-size: 14px; line-height: 1.4; }
.info-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 22px 0 8px; }
.info-card { display: block; border: 1px solid #e6e8ec; border-radius: 10px; background: #fff; text-align: center; padding: 28px 16px 22px; color: #111; }
.info-card:hover { border-color: #c5d0de; box-shadow: 0 8px 18px rgba(16, 24, 40, 0.05); }
.info-card svg { width: 34px; height: 34px; color: var(--navy); margin: 0 auto; }
.info-card:hover svg { color: var(--brand-dark); }
.info-card strong { display: block; margin: 12px 0 4px; font-size: 16px; }
.info-card span { color: #667085; font-size: 14px; }
.prose { max-width: 760px; }
.prose h1 { margin: 0 0 12px; font-size: 28px; letter-spacing: -0.03em; }
.prose p { color: #344054; font-size: 15px; }
.contact-form { margin-top: 8px; }
.contact-map {
    margin: 0 0 18px;
    padding: 0;
    overflow: hidden;
    border-radius: 12px;
}
.contact-map iframe {
    display: block;
    width: 100%;
    height: 320px;
    border: 0;
}

.site-footer { background: linear-gradient(180deg, #0b1f3a 0%, #081628 100%); color: #d5dbe3; margin-top: 12px; border-top: 3px solid #c6a15b; }
.site-footer .footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 32px; padding: 44px 0 28px; }
.site-footer h3 { color: #c6a15b; margin: 0 0 14px; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; }
.site-footer .footer-col a { display: block; padding: 5px 0; color: #d5dbe3; font-size: 14px; line-height: 1.45; transition: color .15s ease; }
.site-footer .footer-col a:hover { color: #fff; }
.footer-brand img { height: 88px; width: auto; background: #fff; border-radius: 12px; padding: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.18); object-fit: contain; }
.footer-note { max-width: 300px; margin: 14px 0 0; color: #b7c0cc; font-size: 14px; line-height: 1.55; }
.footer-contact { display: grid; gap: 4px; margin-top: 16px; }
.footer-contact a, .footer-contact span { display: block; color: #e8edf3; font-size: 13.5px; line-height: 1.45; }
.footer-contact a:hover { color: #c6a15b; }
.footer-base { border-top: 1px solid rgba(255,255,255,0.08); background: rgba(0,0,0,.12); }
.footer-base-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 16px 0 18px; }
.legal { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; width: 100%; padding: 0; font-size: 12px; color: #9aa6b4; }
.legal > span { display: block; }
.legal-links {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    column-gap: 28px;
    row-gap: 6px;
    width: auto;
    min-width: 240px;
}
.legal-col { display: flex; flex-direction: column; gap: 6px; }
.legal-links a,
.legal-col a { display: block; color: #c9d2dc; text-decoration: none; white-space: nowrap; }
.legal-links a:hover,
.legal-col a:hover { color: #fff; text-decoration: underline; text-underline-offset: 2px; }

.page { padding: 22px 0 40px; }
.page-title { display: flex; justify-content: space-between; gap: 12px; align-items: end; margin-bottom: 16px; }
.page-title h1 { margin: 0; font-size: 26px; letter-spacing: -0.03em; }
.muted { color: var(--muted); }

.shop-layout { display: grid; grid-template-columns: 220px 1fr; gap: 18px; }
.filters { border: 1px solid var(--line); border-radius: 8px; padding: 12px; background: #fff; height: fit-content; }
.filters h2 { font-size: 14px; margin: 0 0 8px; }
.filters a { display: flex; justify-content: space-between; padding: 7px 4px; border-radius: 4px; }
.filters a.is-active, .filters a:hover { color: var(--red); }
.sortbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; gap: 10px; }
.sortbar select, .field input, .field select, .field textarea {
    width: 100%; border: 1px solid #cfd5dd; border-radius: 4px; padding: 10px 12px; background: #fff; color: var(--ink);
}
.sortbar select { width: auto; }

.product-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr) 270px; gap: 22px; align-items: start; }
.buy { display: flex; gap: 8px; margin-top: 16px; }
.buy input { width: 72px; }
.sku { color: var(--muted); font-size: 12px; letter-spacing: 0.04em; }

.cart-table, .table { width: 100%; border-collapse: collapse; background: #fff; }
.cart-table th, .cart-table td, .table th, .table td { padding: 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.table th { font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); background: #fafbfc; }
.table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.num { text-align: right; }

.checkout-grid, .split { display: grid; grid-template-columns: 1.4fr 0.8fr; gap: 18px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 16px; }
.card h2 { margin: 0 0 12px; font-size: 16px; }
.field { margin-bottom: 12px; }
.field label { display: block; font-weight: 600; font-size: 12px; margin-bottom: 5px; color: var(--navy); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.summary-line, .total-line { display: flex; justify-content: space-between; padding: 6px 0; }
.total-line { font-size: 18px; font-weight: 800; color: var(--navy); border-top: 1px solid var(--line); margin-top: 8px; padding-top: 10px; }
.check { display: flex; gap: 8px; align-items: center; margin: 8px 0; }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    border: 0; border-radius: 4px; padding: 10px 16px; font-weight: 700; cursor: pointer; font-size: 14px;
}
.btn-red { background: var(--navy); color: #fff; }
.btn-red:hover { background: var(--navy-2); color: var(--gold-2); }
.btn-gold { background: var(--gold); color: #1a1408; }
.btn-gold:hover { background: #b8924d; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-2); }
.btn-ghost { background: #fff; color: var(--navy); border: 1px solid #cfd5dd; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }

.alert { padding: 10px 12px; border-radius: 6px; margin-bottom: 12px; font-weight: 600; }
.alert-success { background: #e8f7ee; color: #0e7a43; }
.alert-error { background: var(--accent-soft); color: var(--brand-dark); }
.errors { background: var(--accent-soft); color: var(--brand-dark); border-radius: 6px; padding: 10px 12px 10px 28px; margin-bottom: 12px; }

.auth-wrap { min-height: 70vh; display: grid; place-items: center; background: linear-gradient(180deg, #f7f4ee, #fff); padding: 30px 16px; }
.auth-card { width: min(440px, 100%); background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 22px; box-shadow: var(--shadow); }
.auth-card img { height: 92px; margin: 0 auto 8px; }
.auth-card h1 { text-align: center; margin: 0 0 6px; font-size: 24px; }
.auth-card .field-error { color: var(--red); font-size: 12.5px; font-weight: 600; margin-top: 6px; }
.auth-card .small { font-size: 12px; margin-top: 4px; }
.captcha-field input { max-width: 140px; }
.hp {
    position: absolute !important;
    left: -10000px !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}
.center { text-align: center; }

.pager { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 16px; }
.pager-link { border: 1px solid var(--line); background: #fff; border-radius: 4px; padding: 6px 10px; font-weight: 600; }
.pager-link.is-current { background: var(--navy); color: #fff; border-color: var(--navy); }
.pager-link.is-disabled { color: #9aa3ad; }

.empty { padding: 28px; text-align: center; color: var(--muted); }

.shell { min-height: 100vh; display: block; background: var(--bg); }
.side {
    background: var(--navy);
    color: #d5dbe3;
    display: flex;
    flex-direction: column;
    padding: 16px 12px;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 252px;
    z-index: 30;
    overflow: hidden;
}
.side img { height: 72px; width: auto; background: #fff; border-radius: 10px; margin-bottom: 14px; }
.side nav { display: flex; flex-direction: column; gap: 2px; flex: 1; min-height: 0; overflow-y: auto; }
.side a { padding: 9px 10px; border-radius: 6px; font-weight: 600; color: #e7edf5; }
.side a:hover, .side a.is-active { background: rgba(198, 161, 91, 0.18); color: var(--gold-2); }
.side-user { margin-top: auto; padding-top: 12px; border-top: 1px solid rgba(255,255,255,0.08); flex: none; }
.side-user strong { color: #fff; display: block; }
.shell-main { min-width: 0; margin-left: 252px; min-height: 100vh; width: auto; }
.shell-top { background: #fff; border-bottom: 1px solid var(--line); padding: 14px 22px; display: flex; justify-content: space-between; align-items: center; }
.shell-top h1 { margin: 0; font-size: 20px; letter-spacing: -0.02em; }
.shell-body { padding: 18px 22px 40px; }
.menu-btn { display: none; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 14px; }
.stat span { color: var(--muted); font-size: 12px; font-weight: 600; }
.stat b { display: block; margin-top: 4px; font-size: 22px; letter-spacing: -0.03em; color: var(--navy); }
.stat em { font-style: normal; color: var(--red); font-weight: 700; font-size: 12px; }
.bars { display: flex; align-items: end; gap: 10px; height: 140px; }
.bar { flex: 1; background: linear-gradient(180deg, var(--gold), var(--navy)); border-radius: 4px 4px 0 0; min-height: 4px; position: relative; }
.bar span { position: absolute; bottom: -20px; left: 0; right: 0; text-align: center; font-size: 11px; color: var(--muted); }
.chart-card { padding-bottom: 28px; }

.badge { display: inline-flex; align-items: center; border-radius: 99px; padding: 2px 8px; font-size: 12px; font-weight: 700; background: #eef1f4; color: #334; }
.badge-paid, .badge-received, .badge-delivered, .badge-approved, .badge-refunded { background: #e7f6ee; color: var(--green); }
.badge-unpaid, .badge-pending, .badge-requested { background: #f8f1e3; color: #8a5a10; }
.badge-processing, .badge-packed, .badge-shipped, .badge-out_for_delivery { background: #e7eef8; color: #1d4e89; }
.badge-attention, .badge-failed, .badge-return_requested, .badge-rejected { background: var(--accent-soft); color: var(--red); }
.badge-cancelled, .badge-void, .badge-returned { background: #eceff3; color: #667; }

.account-hero { display: flex; justify-content: space-between; gap: 16px; align-items: end; margin-bottom: 18px; flex-wrap: wrap; }
.account-hero h1 { margin: 4px 0 6px; font-size: 28px; letter-spacing: -0.03em; }
.account-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.account-stats article { background: #fff; border: 1px solid #eee; border-radius: 12px; padding: 14px 16px; }
.account-stats strong { display: block; font-size: 24px; letter-spacing: -0.03em; }
.account-stats span { color: #667085; font-size: 13px; }
.account-grid { align-items: start; }
.order-list { display: grid; gap: 10px; }
.order-row { display: flex; justify-content: space-between; gap: 12px; align-items: center; background: #fff; border: 1px solid #eee; border-radius: 12px; padding: 14px 16px; }
.order-row:hover { border-color: var(--gold-2); }
.order-row-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.track-card h2 { margin: 0 0 12px; font-size: 16px; }
.track-meta { margin: 0 0 14px; }
.track-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.track-steps li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: start; position: relative; padding: 0 0 16px; color: #98a2b3; font-weight: 600; }
.track-steps li:not(:last-child)::before { content: ""; position: absolute; left: 8px; top: 16px; bottom: 0; width: 2px; background: #e4e7ec; }
.track-steps .dot { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #d0d5dd; background: #fff; display: inline-block; }
.track-steps li.is-done { color: #0e7a43; }
.track-steps li.is-done .dot { background: #0e7a43; border-color: #0e7a43; }
.track-steps li.is-current { color: var(--navy); }
.track-steps li.is-current .dot { border-color: var(--navy); box-shadow: 0 0 0 4px rgba(198, 161, 91, 0.28); }
.track-steps li.is-done:not(:last-child)::before, .track-steps li.is-current:not(:last-child)::before { background: #0e7a43; }
.return-block + .return-block { margin-top: 12px; padding-top: 12px; border-top: 1px solid #eee; }
.return-admin-block + .return-admin-block { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
@media (max-width: 760px) {
    .account-stats { grid-template-columns: repeat(2, 1fr); }
}
.low { color: var(--red); font-weight: 800; }

.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.inline { display: inline; }

.pos { display: grid; grid-template-columns: 1.4fr 0.8fr; gap: 14px; align-items: start; }
.pos-tools { display: flex; gap: 8px; margin-bottom: 10px; }
.pos-tools input { flex: 1; }
.pos-products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; max-height: calc(100vh - 180px); overflow: auto; }
.pos-item { text-align: left; border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 10px; cursor: pointer; }
.pos-item:hover { border-color: var(--gold); }
.pos-item b { display: block; }
.pos-item.disabled { opacity: 0.45; cursor: not-allowed; }
.pos-cart { position: sticky; top: 12px; }
.pos-line { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.pos-line input { width: 58px; }

.doc { width: min(860px, 100%); margin: 0 auto; background: #fff; }
.doc-head { display: flex; justify-content: space-between; gap: 20px; border-bottom: 3px solid var(--navy); padding-bottom: 16px; }
.doc-head img { height: 84px; }
.gold-rule { height: 3px; background: var(--gold); margin-top: 3px; }
.doc-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 18px 0; }

body.store { background: #f5f6f8; color: #222; }
.store main { padding-bottom: 28px; }

.home-cats { display: none; }
.cat-carousel { margin-top: 18px; }
.cat-carousel .section-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.cat-carousel .section-head h2 { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -0.03em; }
.cat-carousel-nav { display: flex; gap: 8px; }
.cat-carousel-nav button {
    width: 36px; height: 36px; border-radius: 50%; border: 1px solid #e5e7eb; background: #fff;
    color: #111; font-size: 22px; line-height: 1; cursor: pointer; display: grid; place-items: center;
}
.cat-carousel-nav button:hover { border-color: var(--navy); color: var(--navy); }
.cat-track {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 2px 2px 10px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.cat-track::-webkit-scrollbar { display: none; }
.cat-card {
    flex: 0 0 clamp(132px, 18vw, 168px);
    scroll-snap-align: start;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 14px;
    padding: 8px 8px 12px;
    text-align: center;
    color: #222;
    font-size: 13px;
    font-weight: 700;
    transition: border-color .15s ease, transform .15s ease;
}
.cat-card:hover { border-color: var(--gold-2); color: var(--navy); transform: translateY(-2px); }
.cat-card-media {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    border-radius: 10px;
    overflow: hidden;
    background: #f3f4f6;
    margin-bottom: 8px;
}
.cat-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cat-card-media.is-icon {
    display: grid;
    place-items: center;
    background: transparent;
    overflow: visible;
}
.cat-icon {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    background: var(--cat-tone, #f8fafc);
    color: #334155;
    display: grid;
    place-items: center;
}
.cat-icon svg { width: 46%; height: 46%; }
.cat-card:hover .cat-icon { color: var(--gold-dark); }
.cat-card-name { display: block; }

.hot-deal { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 28px; align-items: center; background: #fff; border: 1px solid #eee; border-radius: 16px; margin-top: 16px; padding: 16px; }
.hot-deal-media { position: relative; display: block; border-radius: 14px; overflow: hidden; background: #f6f1ee; min-height: 320px; }
.hot-deal-media img, .hot-deal-media .visual { width: 100%; height: 360px; object-fit: cover; }
.hot-deal-copy { padding: 8px 12px 8px 4px; }
.hot-kicker { margin: 0; color: var(--navy); font-size: 12px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
.hot-deal h2 { margin: 8px 0 8px; font-size: 32px; letter-spacing: -0.03em; }
.hot-note { margin: 14px 0 0; color: #8a6a32; font-size: 13px; font-weight: 700; }
.countdown { display: flex; gap: 10px; margin: 10px 0 16px; }
.countdown div { min-width: 72px; background: #111; color: #fff; border-radius: 10px; text-align: center; padding: 10px 8px; }
.countdown strong { display: block; font-size: 24px; letter-spacing: -0.03em; }
.countdown span { display: block; margin-top: 2px; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: #f3e2b8; }
.hot-ended { color: var(--navy); font-weight: 700; }
.hot-deal .btn-buy { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.home-board {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 250px);
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
    margin-top: 16px;
    width: 100%;
    max-width: 100%;
}
.cat-rail { padding: 16px 8px 16px 16px; border-right: 1px solid #f2f2f2; }
.cat-rail h2 { margin: 0 0 8px; font-size: 16px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.cat-rail a { display: block; padding: 7px 8px; border-radius: 6px; color: #333; font-size: 14px; }
.cat-rail a:hover { background: var(--accent-soft); color: var(--navy); }
.cat-rail .more { color: #2563eb; font-weight: 600; margin-top: 4px; }
.stage { padding: 16px; min-width: 0; }
.banner {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 12px;
    background: linear-gradient(180deg, #f7f8fa, #f3f4f6);
    border-radius: 12px;
    min-height: 280px;
    padding: 28px 22px;
    align-items: center;
}
.banner h1 { margin: 0 0 18px; font-size: 40px; line-height: 1.05; font-weight: 800; letter-spacing: -0.035em; color: #111; }
.banner .btn-pill { display: inline-flex; background: #fff; color: #222; border: 1px solid #e5e5e5; border-radius: 999px; padding: 8px 16px; font-weight: 600; }
.banner .btn-pill:hover { border-color: var(--navy); color: var(--navy); }
.mosaic { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mosaic a { display: block; background: #fff; border-radius: 12px; overflow: hidden; aspect-ratio: 1; border: 1px solid #f0f0f0; }
.mosaic .visual, .pick-thumb .visual { height: 100%; }
.shop-layout .grid { grid-template-columns: repeat(4, 1fr); }
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 14px; }
.services a { text-align: center; font-size: 13px; font-weight: 600; color: #222; padding: 8px 4px; }
.services a span { display: grid; place-items: center; width: 42px; height: 42px; margin: 0 auto 6px; border-radius: 10px; background: #f6f7f9; color: #0b1f3a; }
.services svg { width: 22px; height: 22px; }
.suggest { padding: 16px; border-left: 1px solid #f2f2f2; }
.suggest h2 { margin: 0 0 10px; font-size: 16px; }
.pick { display: grid; grid-template-columns: 54px 1fr; gap: 10px; align-items: center; padding: 8px 0; }
.pick-thumb { width: 54px; height: 54px; border-radius: 8px; overflow: hidden; background: #fafafa; }
.pick-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pick strong { display: block; font-size: 13px; font-weight: 600; }
.pick em { font-style: normal; color: #888; font-size: 12px; }
.suggest .btn-request { display: block; text-align: center; margin-top: 12px; background: #111; color: #fff; border-radius: 999px; padding: 10px 12px; font-weight: 700; }
.panel { background: #fff; border: 1px solid #eee; border-radius: 12px; padding: 18px 16px 8px; margin-top: 16px; }
.panel h2 { margin: 0 0 14px; font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }
.trend-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px 12px; padding-bottom: 12px; }
.trend { text-align: center; color: #333; font-size: 13px; }
.trend-orb { width: 112px; height: 112px; margin: 0 auto 8px; border-radius: 50%; overflow: hidden; background: #f3f4f6; }
.trend-orb .visual, .trend-orb img { width: 100%; height: 100%; object-fit: cover; }
.shop-page { background: transparent; }
.shop-layout { align-items: start; }
.filters { background: #fff; border: 1px solid #eee; border-radius: 12px; }
.filters a { font-size: 14px; color: #333; }
.catalog-head { background: #fff; border: 1px solid #eee; border-radius: 12px; padding: 12px 14px; margin-bottom: 12px; }
.catalog-head h1 { font-size: 18px; font-weight: 700; }
.off { color: var(--navy); font-size: 12px; font-weight: 700; }

@media (max-width: 1100px) {
    .home-board { grid-template-columns: 1fr; }
    body.is-home .suggest { display: none; }
}

@media (max-width: 980px) {
    .grid, .cats, .trust, .stats, .trend-grid { grid-template-columns: repeat(2, 1fr); }
    .home-board, .banner { grid-template-columns: 1fr; }
    .banner h1 { font-size: 32px; }
    .trend-orb { width: 92px; height: 92px; }
    .suggest { border-left: 0; border-top: 1px solid #f0f0f0; }
    .hero .wrap, .product-layout, .shop-layout, .checkout-grid, .split, .pos { grid-template-columns: 1fr; }
    .site-footer .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 28px 20px;
    }
    .site-footer .footer-brand { grid-column: 1 / -1; }
    .mast .wrap {
        grid-template-columns: auto auto 1fr auto;
        grid-template-areas:
            "toggle brand actions"
            "search search search";
        gap: 10px 8px;
        padding: 10px 0 12px;
    }
    .nav-toggle { display: grid; grid-area: toggle; }
    .brand { grid-area: brand; }
    .brand img { height: 56px; max-width: 140px; }
    .search { grid-area: search; }
    .search select { display: none; }
    .mast-actions { grid-area: actions; justify-content: flex-end; }
    .mast-hide-sm { display: none !important; }
    .shell { display: block; }
    .side { position: fixed; z-index: 30; transform: translateX(-110%); width: 264px; transition: transform 0.2s ease; }
    body.nav-open .side { transform: none; }
    .shell-main { margin-left: 0; }
    .menu-btn { display: inline-flex; }
    .pos-products { grid-template-columns: repeat(2, 1fr); max-height: none; }
    .hero h1 { font-size: 34px; }
    .hero .wrap { padding: 28px 0; }
}

.wish-form { position: absolute; top: 8px; right: 8px; z-index: 2; }
.wish, .wish-lg { border: 1px solid #e6e6e6; background: #fff; color: #444; cursor: pointer; }
.wish { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; }
.wish.is-on, .wish-lg.is-on { color: var(--navy); border-color: var(--gold-2); }
.flag { position: absolute; left: 8px; bottom: 8px; background: #0b1f3a; color: #f3e2b8; font-size: 11px; font-weight: 700; border-radius: 3px; padding: 2px 6px; }

.hero-slider {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    aspect-ratio: 16 / 7.2;
    min-height: 260px;
    max-height: 420px;
    background: linear-gradient(105deg, #061426 0%, #0b1f3a 40%, #c6a15b 100%);
    box-shadow: 0 12px 32px rgba(11, 31, 58, 0.16);
}
.slides { position: relative; height: 100%; min-height: inherit; }
.slide {
    position: absolute;
    inset: 0;
    display: block;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.55s ease;
    background: linear-gradient(105deg, #061426 0%, #0b1f3a 42%, #c6a15b 100%);
}
.slide.is-on { opacity: 1; visibility: visible; }
.slide-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center right;
    z-index: 0;
    display: block;
}
.slide-shade {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(6, 20, 38, 0.92) 0%, rgba(6, 20, 38, 0.72) 34%, rgba(6, 20, 38, 0.22) 58%, transparent 74%),
        linear-gradient(0deg, rgba(6, 20, 38, 0.28) 0%, transparent 42%);
}
.slide-copy {
    position: relative;
    z-index: 3;
    height: 100%;
    max-width: min(48%, 460px);
    padding: clamp(22px, 4.5%, 40px) 20px clamp(40px, 6%, 56px) clamp(20px, 4%, 40px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    pointer-events: none;
}
.slide-copy > * { pointer-events: auto; }
.slide-kicker {
    margin: 0 0 10px;
    color: var(--gold);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}
.slide-copy h1 {
    margin: 0 0 12px;
    font-size: clamp(24px, 3.2vw, 40px);
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.035em;
    color: #fff !important;
    max-width: 16ch;
}
.slide-lead {
    margin: 0 0 20px;
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(13px, 1.35vw, 15px);
    line-height: 1.45;
    max-width: 34ch;
}
.slide-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    align-self: flex-start;
    background: var(--gold);
    color: var(--navy);
    border: 0;
    border-radius: 10px;
    padding: 12px 18px;
    font-weight: 800;
    font-size: 14px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
}
.slide-cta:hover { background: var(--gold-2); color: var(--navy); }
.slide-cta svg { flex: none; }
.admin-thumb { width: 72px; height: 48px; object-fit: cover; border-radius: 6px; background: #f4f4f4; display: block; margin-bottom: 8px; }
.admin-thumb.wide { width: min(360px, 100%); height: auto; }
.brand-mark img { width: 62%; height: 62%; object-fit: contain; }
.slide-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 36px; height: 36px; border-radius: 50%; border: 0;
    background: rgba(255,255,255,0.16); color: #fff; font-size: 22px; cursor: pointer; z-index: 4;
    backdrop-filter: blur(6px);
}
.slide-nav:hover { background: rgba(255,255,255,0.28); }
.slide-nav.prev { left: 12px; }
.slide-nav.next { right: 12px; }
.slide-dots {
    position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%);
    display: flex; gap: 8px; z-index: 4; align-items: center;
}
.slide-dots .dot {
    width: 8px; height: 8px; border-radius: 50%; border: 0;
    background: rgba(255,255,255,0.55); cursor: pointer; padding: 0; transition: width .2s ease, background .2s ease;
}
.slide-dots .dot.is-on { background: var(--gold); width: 28px; border-radius: 999px; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-in { opacity: 1; transform: none; }

.gallery-stage { position: relative; background: #f7f2ef; border-radius: 16px; min-height: 460px; overflow: hidden; }
.frame { position: absolute; inset: 0; opacity: 0; transition: opacity 0.35s ease; }
.frame.is-on { opacity: 1; }
.frame img, .frame .visual { width: 100%; height: 100%; object-fit: contain; }
.thumbs { display: flex; gap: 8px; margin-top: 12px; }
.thumb { width: 72px; height: 72px; padding: 0; border-radius: 10px; overflow: hidden; border: 2px solid transparent; background: #fff; cursor: pointer; }
.thumb.is-on { border-color: #111; }
.thumb img, .thumb .visual { width: 100%; height: 100%; object-fit: cover; }
.gallery-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 36px; height: 36px; border-radius: 50%; border: 0; cursor: pointer; font-size: 22px; }
.gallery-nav.prev { left: 12px; background: #fff; color: #222; }
.gallery-nav.next { right: 12px; background: #3d9a4a; color: #fff; }
.buybox h1 { margin: 6px 0 8px; font-size: 30px; letter-spacing: -0.03em; }
.rating-row { display: flex; gap: 14px; color: #8a8f98; font-size: 13px; margin-bottom: 10px; }
.price-row { display: flex; align-items: baseline; gap: 10px; }
.price-row .price { font-size: 28px; }
.compare { color: #9aa0a6; text-decoration: line-through; font-size: 16px; }
.option-label { font-size: 14px; font-weight: 700; margin: 16px 0 8px; }
.variant-select { width: 100%; max-width: 320px; }
.variant-select.is-enhanced { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }
.swatches, .sizes { display: flex; gap: 8px; flex-wrap: wrap; }
.swatch { width: 28px; height: 28px; border-radius: 50%; border: 2px solid #fff; outline: 1px solid #ddd; cursor: pointer; padding: 0; }
.swatch.is-on { outline: 2px solid #111; }
.size-btn { border: 1px solid #ddd; background: #fff; border-radius: 8px; padding: 8px 14px; cursor: pointer; }
.size-btn.is-on { background: #111; color: #fff; border-color: #111; }
.size-btn:disabled { opacity: 0.35; cursor: default; }
.stepper { display: inline-flex; align-items: center; border: 1px solid #e4e4e4; border-radius: 8px; overflow: hidden; }
.stepper button { width: 36px; height: 40px; border: 0; background: #fff; cursor: pointer; font-size: 18px; }
.stepper input { width: 52px; height: 40px; border: 0; text-align: center; font-size: 15px; }
.purchase { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: end; }
.buy-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.btn-buy, .btn-cart, .wish-lg { border-radius: 8px; font-weight: 700; cursor: pointer; }
.btn-buy, .btn-cart { border: 0; min-width: 132px; padding: 12px 18px; color: #fff; }
.btn-buy { background: var(--navy); }
.btn-buy:hover { background: var(--navy-2); color: var(--gold-2); }
.btn-cart { background: var(--gold); color: var(--navy); }
.btn-cart:hover { background: var(--gold-dark); color: #fff; }
.btn-buy:disabled, .btn-cart:disabled { opacity: 0.45; cursor: default; }
.wish-lg { height: 46px; min-width: 72px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 0 12px; }
.wish-side { margin: 0 0 0; }
.detail-side { display: grid; gap: 14px; }
.assurance { list-style: none; margin: 0; padding: 4px 0; background: #fff; border: 1px solid #eee; border-radius: 12px; }
.assurance li { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid #f2f2f2; color: #333; font-size: 14px; }
.assurance li:last-child { border-bottom: 0; }
.assurance svg { width: 20px; height: 20px; color: #667085; flex: none; }
.store-card { background: #fff; border: 1px solid #eee; border-radius: 12px; padding: 22px 18px 18px; text-align: center; }
.store-card img { height: 72px; width: auto; margin: 0 auto 12px; display: block; }
.store-card h2 { margin: 0 0 16px; font-size: 18px; line-height: 1.25; letter-spacing: -0.02em; }
.store-stats { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 16px; }
.store-stats div { padding: 4px 8px; }
.store-stats div + div { border-left: 1px solid #eee; }
.store-stats strong { display: block; font-size: 16px; }
.store-stats span { color: #667085; font-size: 13px; }
.visit-store { display: flex; align-items: center; justify-content: center; gap: 8px; background: #111; color: #fff; border-radius: 8px; padding: 12px 14px; font-weight: 700; }
.visit-store:hover { background: #000; color: #fff; }
.more-store { background: #fff; border: 1px solid #e7eef8; border-radius: 12px; padding: 14px; }
.more-store h2 { margin: 0 0 10px; font-size: 18px; letter-spacing: -0.02em; }
.more-row { display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: center; padding: 10px 4px; border-top: 1px solid #f3f3f3; color: inherit; }
.more-thumb { width: 64px; height: 64px; border-radius: 8px; overflow: hidden; background: #fafafa; }
.more-thumb .visual, .more-thumb img { width: 100%; height: 100%; object-fit: cover; }
.more-row strong { display: block; font-size: 14px; font-weight: 600; line-height: 1.35; }
.more-row em { display: block; margin-top: 4px; font-style: normal; font-weight: 700; }

@media (max-width: 980px) {
    .promise { grid-template-columns: repeat(2, 1fr); gap: 8px 0; }
    .promise article:nth-child(odd)::before { display: none; }
    .info-cards { grid-template-columns: 1fr; }
    .home-cats { grid-template-columns: repeat(3, 1fr); }
    .hot-deal { grid-template-columns: 1fr; }
    .hot-deal-media, .hot-deal-media img, .hot-deal-media .visual { min-height: 220px; height: 240px; }
    .slide-copy { padding: 24px 14px 48px 22px; max-width: 52%; }
    .slide-copy h1 { font-size: 24px; max-width: 14ch; color: #fff !important; }
    .slide-lead { font-size: 13px; margin-bottom: 14px; }
    .hero-slider { aspect-ratio: 16 / 8; min-height: 240px; }
    .gallery-stage { min-height: 320px; }
    .purchase { grid-template-columns: 1fr auto; }
    .footer-base .wrap { align-items: flex-start; }
    .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
    body.is-home .cat-trends { display: none; }
    .suggest { display: none; }
    .home-board {
        margin-top: 8px;
        border-radius: 10px;
    }
    .stage { padding: 8px 4px; }
    .wrap { width: min(1180px, calc(100% - 20px)); }
    .mast .wrap,
    .catbar .wrap {
        width: min(1180px, calc(100% - 20px));
    }
    .catbar { display: none; }
    .cat-carousel { margin-top: 14px; }
    .cat-carousel .section-head h2 { font-size: 18px; }
    .cat-card { flex: 0 0 42vw; max-width: 160px; }
    .hero-slider {
        border-radius: 12px;
        aspect-ratio: 16 / 11;
        min-height: 230px;
        max-height: 340px;
    }
    .slides { min-height: 100%; }
    .slide {
        position: absolute;
        inset: 0;
        display: block;
        opacity: 0;
        visibility: hidden;
    }
    .slide.is-on { opacity: 1; visibility: visible; }
    .slide:not(.is-on) { pointer-events: none; }
    .slide-bg {
        object-position: 70% center;
    }
    .slide-shade {
        display: block;
        background:
            linear-gradient(90deg, rgba(6, 20, 38, 0.94) 0%, rgba(6, 20, 38, 0.82) 28%, rgba(6, 20, 38, 0.4) 48%, rgba(6, 20, 38, 0.08) 68%, transparent 84%),
            linear-gradient(0deg, rgba(6, 20, 38, 0.4) 0%, transparent 48%);
    }
    .slide-copy {
        max-width: min(68%, 240px);
        padding: 18px 12px 48px 40px;
        justify-content: center;
        background: transparent;
        width: auto;
        height: 100%;
        order: 0;
    }
    .slide-kicker { margin-bottom: 6px; font-size: 11px; }
    .slide-copy h1 {
        font-size: 20px;
        margin-bottom: 8px;
        max-width: none;
        color: #fff !important;
        line-height: 1.15;
    }
    .slide-lead {
        font-size: 12px;
        margin-bottom: 12px;
        max-width: none;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .slide-cta { padding: 10px 14px; font-size: 12px; border-radius: 8px; gap: 8px; }
    .slide-nav {
        top: 50%;
        bottom: auto;
        transform: translateY(-50%);
        width: 28px;
        height: 28px;
        font-size: 16px;
    }
    .slide-nav.prev { left: 8px; }
    .slide-nav.next { right: 8px; }
    .slide-dots { left: 50%; bottom: 12px; transform: translateX(-50%); }
    .services { grid-template-columns: repeat(2, 1fr); }
    .icon-btn { min-width: 40px; font-size: 0; color: #fff; }
    .icon-btn svg { width: 22px; height: 22px; }
    .cart-count { right: 0; top: -2px; font-size: 10px; }
    .brand { min-width: 0; }
    .brand img {
        height: 52px;
        max-width: min(140px, 42vw);
        width: auto;
    }
    .mast .wrap { gap: 8px; padding: 8px 0 10px; }
    .mast-actions { gap: 2px; flex-shrink: 0; }
    .catbar a { padding: 10px 12px; font-size: 13px; }
    .topbar { font-size: 11px; }
    .topbar-track { padding: 8px 0; animation-duration: 22s; }
    .topbar-group { gap: 14px; padding-right: 14px; }
    .search { height: 42px; border-radius: 8px; }
    .search button { width: 46px; height: 42px; }
    .wa-float { right: 14px; bottom: 14px; width: 52px; height: 52px; }
    .legal {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    .legal-links {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        width: 100%;
        min-width: 0;
        column-gap: 20px;
    }
    .site-footer .footer-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 26px 18px;
        padding: 32px 0 22px;
    }
    .site-footer .footer-brand { grid-column: 1 / -1; }
    .site-footer .footer-col h3 { margin-bottom: 10px; }
    .site-footer .footer-col a { padding: 4px 0; font-size: 13.5px; }
    .search select { max-width: 88px; font-size: 12px; }
    .grid, .shop-layout .grid, .trend-grid { grid-template-columns: repeat(2, 1fr); }
    .filters { display: flex; gap: 8px; overflow-x: auto; align-items: center; padding: 10px; }
    .filters h2 { display: none; }
    .filters a { flex: none; border: 1px solid #eee; border-radius: 999px; padding: 7px 12px; white-space: nowrap; }
    .catalog-head, .sortbar, .page-title { flex-wrap: wrap; align-items: flex-start; }
    .gallery-stage { min-height: 240px; }
    .buybox h1 { font-size: 24px; }
    .btn-buy, .btn-cart { width: 100%; }
    .thumbs { overflow-x: auto; }
    .panel h2, .hot-deal h2 { font-size: 24px; }
    .brand-row { justify-content: flex-start; }
    .brand-mark { width: 68px; height: 68px; }
    .promise { padding: 18px 8px; }
    .countdown div { min-width: 64px; padding: 8px 6px; }
    .countdown strong { font-size: 20px; }
    .wrap { width: min(1180px, calc(100% - 20px)); }
}

@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; }
    .slide, .frame { transition: none; }
}

@media print {
    .shell-top, .side, .no-print, .wa-float { display: none !important; }
    .shell { display: block; background: #fff; }
    .shell-body { padding: 0; }
    body { background: #fff; }
}

/* ---------- Back office ---------- */
[hidden] { display: none !important; }
body.admin { background: var(--bg); }
.ico { flex: none; display: inline-block; vertical-align: middle; }
.shell { display: block; }
.side { padding: 14px 12px; gap: 6px; background: linear-gradient(180deg, #0b1f3a 0%, #0a1a31 100%); }
.side-brand { display: flex; align-items: center; gap: 10px; padding: 6px 6px 14px !important; margin-bottom: 4px; border-bottom: 1px solid rgba(255,255,255,0.07); border-radius: 0 !important; background: none !important; }
.side .side-brand img { height: 44px; width: 44px; object-fit: contain; border-radius: 10px; margin: 0; padding: 2px; }
.side-brand span { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.side-brand strong { color: #fff; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-brand em { font-style: normal; color: var(--gold); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; }
.side nav { gap: 1px; padding-right: 2px; flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.15) transparent; }
.side-group { margin: 14px 10px 6px; color: #7f8ea3; font-size: 10.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.side nav a { display: flex; align-items: center; gap: 11px; padding: 9px 10px; color: #c9d3df; font-weight: 600; font-size: 13.5px; position: relative; }
.side nav a .ico { color: #8797ad; }
.side nav a:hover { background: rgba(255,255,255,0.05); color: #fff; }
.side nav a:hover .ico { color: #fff; }
.side nav a.is-active { background: rgba(198,161,91,0.16); color: var(--gold-2); }
.side nav a.is-active .ico { color: var(--gold); }
.side nav a.is-active::before { content: ""; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--gold); }
.side-user { display: flex; align-items: center; gap: 10px; padding: 12px 6px 2px; }
.side-user > div { flex: 1; min-width: 0; line-height: 1.25; }
.side-user strong { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-user span:not(.avatar) { color: #8797ad; font-size: 12px; }
.avatar { flex: none; width: 34px; height: 34px; border-radius: 50%; display: inline-grid; place-items: center; font-weight: 800; font-size: 14px; color: var(--navy); background: linear-gradient(135deg, var(--gold-2), var(--gold)); }
.icon-only { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; border: 0; background: transparent; color: inherit; cursor: pointer; font-size: 20px; line-height: 1; }
.icon-only:hover { background: rgba(127,142,163,0.16); }
.side .icon-only { color: #9fb0c5; }

.shell-top { position: sticky; top: 0; z-index: 10; padding: 12px 24px; gap: 12px; backdrop-filter: saturate(1.4) blur(6px); background: rgba(255,255,255,0.94); }
.shell-title { display: flex; align-items: center; gap: 10px; min-width: 0; }
.shell-title h1 { font-size: 19px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shell-tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.shell-tools .btn { padding: 8px 13px; font-size: 13px; border-radius: 8px; }
.shell-body { padding: 20px 24px 48px; }
.admin .btn { border-radius: 8px; }
.admin .card { border-radius: 12px; box-shadow: 0 1px 2px rgba(11,31,58,0.04); }
.admin .table-wrap { border-radius: 12px; }
.admin input:not([type=checkbox]):not([type=radio]), .admin select, .admin textarea {
    width: 100%; border: 1px solid #d5dbe3; border-radius: 8px; padding: 9px 11px; font-size: 14px; background: #fff; color: var(--ink);
}
.admin input:focus, .admin select:focus, .admin textarea:focus { outline: 2px solid rgba(198,161,91,0.45); outline-offset: 0; border-color: var(--gold); }
.admin form.actions input, .admin form.actions select { width: auto; min-width: 180px; }
.admin .field-error { color: var(--red); font-weight: 600; margin: 6px 0 0; }
.page-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.page-head p { margin: 0; max-width: 720px; }
.card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 14px; }
.card-head h2 { margin: 0 !important; }
.card-head p { margin: 2px 0 0; font-size: 12.5px; }
.card-head a { color: var(--navy-2); font-weight: 700; font-size: 13px; }
.card-head a:hover { color: var(--red); }
.table-wrap.flat { border: 0; border-radius: 0; margin: 0 -16px -16px; }
.table-wrap.flat .table th:first-child, .table-wrap.flat .table td:first-child { padding-left: 16px; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 99px; font-size: 12px; font-weight: 700; background: #eef1f6; color: var(--navy-2); }
.pill-red { display: inline-flex; padding: 1px 8px; border-radius: 99px; background: var(--accent-soft); color: var(--red); font-size: 12px; font-weight: 800; }
.small { font-size: 12.5px; }
.form-row.three { grid-template-columns: repeat(3, 1fr); }
.form-foot { display: flex; justify-content: flex-end; gap: 8px; border-top: 1px solid var(--line); margin: 18px -16px -16px; padding: 14px 16px; background: #fafbfc; border-radius: 0 0 12px 12px; }
.btn-lg { padding: 14px 18px; font-size: 15px; }
.who { display: flex; align-items: center; gap: 10px; }

.welcome { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; background: linear-gradient(120deg, var(--navy) 0%, #16325c 70%, #20437a 100%); color: #fff; border-radius: 16px; padding: 22px 24px; margin-bottom: 16px; position: relative; overflow: hidden; }
.welcome::after { content: ""; position: absolute; right: -60px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(198,161,91,0.35), transparent 70%); }
.welcome h2 { margin: 2px 0 4px; font-size: 24px; letter-spacing: -0.02em; }
.welcome .muted { color: #b8c4d4; margin: 0; }
.eyebrow-dark { margin: 0; color: var(--gold); font-size: 11.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.quick { display: flex; gap: 10px; flex-wrap: wrap; position: relative; z-index: 1; }
.quick a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-width: 96px; padding: 12px 10px; border-radius: 12px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12); color: #fff; font-weight: 700; font-size: 12.5px; transition: background .15s, transform .15s; }
.quick a:hover { background: rgba(198,161,91,0.25); transform: translateY(-1px); }
.quick a .ico { color: var(--gold-2); }

.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
.kpi { display: flex; gap: 14px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.kpi p { margin: 0; color: var(--muted); font-size: 12.5px; font-weight: 600; }
.kpi b { display: block; font-size: 22px; letter-spacing: -0.03em; color: var(--navy); margin: 2px 0; white-space: nowrap; }
.kpi em { font-style: normal; font-size: 12px; color: var(--muted); font-weight: 600; }
.kpi em.up { color: var(--green); }
.kpi em.down { color: var(--red); }
.kpi-ico { flex: none; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; }
.k-navy { background: #e8eef7; color: var(--navy-2); }
.k-gold { background: #f7efdf; color: #9a7433; }
.k-red { background: var(--accent-soft); color: var(--red); }
.k-green { background: #e6f5ec; color: var(--green); }

.dash-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 16px; margin-bottom: 16px; }
.dash-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bars2 { display: flex; align-items: flex-end; gap: 6px; height: 210px; padding-bottom: 22px; border-bottom: 1px dashed var(--line); }
.bar2 { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; position: relative; }
.bar2 i { display: block; width: 100%; max-width: 30px; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, var(--gold) 0%, #a88443 100%); transition: filter .15s; }
.bar2:last-child i { background: linear-gradient(180deg, var(--red) 0%, var(--red-dark) 100%); }
.bar2:hover i { filter: brightness(1.12); }
.bar2 span { position: absolute; bottom: -22px; font-size: 10.5px; color: var(--muted); white-space: nowrap; }
.bar2:nth-child(even) span { visibility: hidden; }
.bar2:last-child span { visibility: visible; font-weight: 700; color: var(--navy); }
.mix { margin-bottom: 12px; }
.mix-top { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 5px; }
.mix-top b { color: var(--navy); }
.mix-bar { height: 8px; background: #eef1f5; border-radius: 99px; overflow: hidden; }
.mix-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--navy-2), var(--gold)); border-radius: 99px; }
.mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
.mini-stats.two { grid-template-columns: 1fr 1fr; }
.mini-stats div { background: #f6f7f9; border-radius: 10px; padding: 10px; }
.mini-stats span { display: block; font-size: 11.5px; color: var(--muted); font-weight: 600; }
.mini-stats b { color: var(--navy); font-size: 14px; }
.rank { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid #f0f2f5; }
.rank:last-of-type { border-bottom: 0; }
.rank > div { flex: 1; min-width: 0; }
.rank strong { display: block; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank em { font-style: normal; color: var(--muted); font-size: 12px; }
.rank > b { color: var(--navy); font-size: 13.5px; white-space: nowrap; }
.rank-n { flex: none; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: #eef1f6; color: var(--navy-2); font-weight: 800; font-size: 12px; }
.rank:first-of-type .rank-n:not(.warn) { background: var(--gold); color: #fff; }
.rank-n.warn { background: var(--accent-soft); color: var(--red); }
.progress { height: 8px; border-radius: 99px; background: #eef1f5; overflow: hidden; margin-bottom: 10px; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--green), #34b36f); }
.todo { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-size: 13.5px; }
.todo a { color: var(--navy-2); font-weight: 700; text-decoration: underline; text-decoration-color: rgba(22,50,92,0.25); text-underline-offset: 3px; }
.todo.done span:last-child { color: var(--muted); text-decoration: line-through; }
.todo-dot { flex: none; width: 20px; height: 20px; border-radius: 50%; border: 2px solid #cfd5dd; display: grid; place-items: center; }
.todo.done .todo-dot { background: var(--green); border-color: var(--green); color: #fff; }

/* Settings */
.settings { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 16px; align-items: start; }
.settings-nav { display: flex; flex-direction: column; gap: 2px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 8px; position: sticky; top: 76px; }
.settings-nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; font-weight: 600; color: #445; }
.settings-nav a:hover { background: #f5f6f8; }
.settings-nav a.is-active { background: var(--navy); color: #fff; }
.settings-nav a.is-active .ico { color: var(--gold); }
.settings-nav a:nth-child(5) { margin-top: 8px; border-top: 1px solid var(--line); border-radius: 0 0 8px 8px; padding-top: 14px; }
.settings-body h2 { font-size: 17px !important; margin-top: 8px !important; }
.settings-body h2 + .muted { margin-top: -6px; }
.settings-body > h2:not(:first-of-type) { margin-top: 24px !important; padding-top: 18px; border-top: 1px solid var(--line); }
.logo-row { display: flex; gap: 16px; align-items: center; margin-bottom: 14px; }
.logo-preview { width: 96px; height: 96px; object-fit: contain; border: 1px solid var(--line); border-radius: 12px; padding: 6px; background: #fff; }
.preview-line { background: #f6f7f9; border-radius: 8px; padding: 10px 12px; }
.preview-line b { font-family: ui-monospace, Menlo, monospace; color: var(--navy); }
.switch { display: flex; align-items: center; gap: 12px; margin: 10px 0; cursor: pointer; font-weight: 600; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch span { flex: none; width: 42px; height: 24px; border-radius: 99px; background: #cfd5dd; position: relative; transition: background .15s; }
.switch span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,0.2); transition: transform .15s; }
.switch input:checked + span { background: var(--green); }
.switch input:checked + span::after { transform: translateX(18px); }
.switch input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }

/* Roles, staff, shipping */
.role-grid, .zone-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.role-card, .zone { display: flex; flex-direction: column; gap: 12px; }
.role-card header, .zone header { display: flex; align-items: center; gap: 12px; }
.role-card header > div, .zone header > div { flex: 1; min-width: 0; }
.role-card h3, .zone h3 { margin: 0; font-size: 15.5px; }
.role-card footer, .zone footer { margin-top: auto; display: flex; gap: 8px; align-items: center; justify-content: flex-end; border-top: 1px solid var(--line); padding-top: 12px; }
.perm-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 13px; }
.perm-list li { display: flex; align-items: center; gap: 7px; }
.perm-list li.on .ico { color: var(--green); }
.perm-list li.off { color: #a0a8b3; }
.perm-groups { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 8px; }
.perm-group { border: 1px solid var(--line); border-radius: 12px; padding: 8px 14px 6px; margin: 0; }
.perm-group legend { font-weight: 800; color: var(--navy); padding: 0 6px; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; }
.role-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.role-pick label { display: flex !important; flex-direction: column; gap: 3px; padding: 12px; border: 2px solid var(--line); border-radius: 12px; cursor: pointer; margin: 0 !important; }
.role-pick label.is-on { border-color: var(--gold); background: #fdf9f0; }
.role-pick input { position: absolute; opacity: 0; }
.role-pick .ico { color: var(--gold); }
.zone.is-off { opacity: 0.6; }
.zone-fee { font-size: 18px; color: var(--navy); white-space: nowrap; }
.area-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.area-tags span { background: #f1f3f6; border-radius: 6px; padding: 2px 8px; font-size: 12px; color: #445; }
.zone p { margin: 0; }

/* Quote & invoice builder */
.doc-builder { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, 1fr); gap: 16px; align-items: start; }
.builder-side { display: grid; gap: 14px; position: sticky; top: 76px; }
.picker { position: relative; display: flex; align-items: center; gap: 8px; border: 1.5px solid #d5dbe3; border-radius: 10px; padding: 0 12px; margin-bottom: 12px; background: #fff; }
.picker:focus-within { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(198,161,91,0.2); }
.picker .ico { color: var(--muted); }
.admin .picker input { border: 0 !important; outline: 0 !important; padding: 12px 0 !important; font-size: 15px !important; }
.picker-list { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 30; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 6px; max-height: 360px; overflow: auto; }
.picker-list button { width: 100%; display: flex; align-items: center; gap: 10px; border: 0; background: none; padding: 8px; border-radius: 8px; text-align: left; cursor: pointer; }
.picker-list button:hover, .picker-list button:focus { background: #f5f6f8; outline: 0; }
.picker-list img, .picker-list .ph { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; background: #f1f3f6; flex: none; }
.picker-list span { flex: 1; min-width: 0; }
.picker-list strong { display: block; font-size: 13.5px; }
.picker-list em { font-style: normal; font-size: 12px; color: var(--muted); }
.picker-list b { color: var(--navy); white-space: nowrap; }
.picker-list p { padding: 10px; margin: 0; }
.lines td { padding: 10px 8px !important; }
.lines .qty { width: 136px; }
.line-name { display: flex; align-items: center; gap: 10px; }
.line-name img { width: 42px; height: 42px; border-radius: 8px; object-fit: cover; }
.line-name strong { font-size: 13.5px; }
.stepper { display: inline-flex; align-items: center; border: 1px solid #d5dbe3; border-radius: 10px; overflow: hidden; }
.stepper button { width: 36px; height: 38px; border: 0; background: #f5f6f8; font-size: 18px; font-weight: 700; color: var(--navy); cursor: pointer; }
.stepper button:active { background: var(--gold-2); }
.admin .stepper input { width: 50px !important; border: 0 !important; border-radius: 0 !important; text-align: center; padding: 8px 2px !important; -moz-appearance: textfield; }
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }
.admin .price-in { width: 110px !important; text-align: right; }
.empty-lines { text-align: center; color: var(--muted); padding: 22px; border: 2px dashed var(--line); border-radius: 12px; margin: 10px 0 0; }
.empty-lines.shake { animation: shake .4s; border-color: var(--red); color: var(--red); }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.seg-input { display: flex; gap: 8px; }
.seg { display: inline-flex; border: 1px solid #d5dbe3; border-radius: 8px; overflow: hidden; flex: none; }
.seg label { display: grid !important; place-items: center; min-width: 48px; margin: 0 !important; padding: 0 12px; cursor: pointer; font-weight: 800; color: var(--muted); font-size: 14px !important; }
.seg input { position: absolute; opacity: 0; }
.seg label:has(input:checked) { background: var(--navy); color: #fff; }
.zone-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: -4px 0 12px; }
.chip-btn { border: 1px solid #d5dbe3; background: #fff; border-radius: 99px; padding: 5px 10px; font-size: 12px; font-weight: 600; cursor: pointer; color: #445; }
.chip-btn:hover { border-color: var(--gold); color: var(--navy); }
.totals { background: #f7f8fa; border-radius: 10px; padding: 10px 14px; }
.totals div { display: flex; justify-content: space-between; padding: 4px 0; font-size: 13.5px; }
.totals .grand { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 10px; font-size: 18px; color: var(--navy); font-weight: 800; }
.pay-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.pay-pick label { display: flex !important; align-items: center; gap: 8px; border: 1px solid #d5dbe3; border-radius: 8px; padding: 9px 10px; margin: 0 !important; font-size: 13px !important; cursor: pointer; color: var(--ink) !important; }
.pay-pick label:has(input:checked) { border-color: var(--navy); background: #eef2f8; }

/* Printed documents */
.doc { padding: 32px !important; }
.doc-company { display: flex; gap: 14px; align-items: center; }
.doc-company img { height: 76px !important; width: auto; }
.doc-company div { display: flex; flex-direction: column; font-size: 13px; color: #445; }
.doc-company strong { font-size: 17px; color: var(--navy); }
.doc-title { text-align: right; }
.doc-title .eyebrow { color: var(--gold); margin: 0; }
.doc-title h2 { margin: 2px 0 6px; font-size: 26px; color: var(--navy); }
.doc-title div { font-size: 13px; }
.doc-title div span { color: var(--muted); }
.doc-meta strong { color: var(--navy); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; }
.doc-meta p { margin: 4px 0 10px; }
.doc-foot { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; margin-top: 16px; }
.doc-notes strong { display: block; color: var(--navy); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; }
.doc-notes p { margin: 4px 0 14px; font-size: 13px; color: #445; }
.doc-footer { margin: 26px 0 0; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12.5px; text-align: center; }
.quote-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.quote-bar .convert { display: inline-flex; gap: 8px; align-items: center; padding-left: 10px; border-left: 1px solid var(--line); }
.admin .quote-bar .convert select { width: auto; }
.badge-q-draft { background: #eceff3; color: #556; }
.badge-q-sent { background: #e7eef8; color: #1d4e89; }
.badge-q-accepted, .badge-q-converted { background: #e7f6ee; color: var(--green); }
.badge-q-declined { background: var(--accent-soft); color: var(--red); }

.nav-scrim { display: none; }

@media (max-width: 1180px) {
    .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dash-grid.three { grid-template-columns: 1fr 1fr; }
    .doc-builder { grid-template-columns: 1fr; }
    .builder-side { position: static; }
}

@media (max-width: 980px) {
    .side { width: 264px; box-shadow: 10px 0 30px rgba(0,0,0,0.25); }
    body.nav-open .nav-scrim { display: block; position: fixed; inset: 0; z-index: 15; background: rgba(8,18,34,0.45); }
    .dash-grid, .dash-grid.three, .settings, .perm-groups { grid-template-columns: 1fr; }
    .settings-nav { position: static; flex-direction: row; overflow-x: auto; }
    .settings-nav a { white-space: nowrap; }
    .settings-nav a:nth-child(5) { margin-top: 0; border-top: 0; padding-top: 10px; }
    .shell-top { padding: 10px 14px; }
    .shell-body { padding: 14px 14px 40px; }
    .shell-tools .btn span, .shell-tools .btn { font-size: 0; gap: 0; padding: 8px 10px; }
    .shell-tools .btn .ico { width: 18px; height: 18px; }
}

@media (max-width: 640px) {
    .kpis { grid-template-columns: 1fr; }
    .form-row, .form-row.three { grid-template-columns: 1fr; gap: 0; }
    .quick { width: 100%; }
    .quick a { flex: 1; min-width: 0; }
    .doc-head, .doc-foot, .doc-meta { grid-template-columns: 1fr; flex-direction: column; }
    .doc-title { text-align: left; }
    .doc { padding: 18px !important; }
}

@media print {
    .shell-top, .side, .no-print, .nav-scrim { display: none !important; }
    .admin .card { box-shadow: none; border: 0; }
    .doc { padding: 0 !important; width: 100%; }
    body.admin { background: #fff; }
}

/* ---------- Touch POS ---------- */
body.pos-mode .shell { display: block; }
body.pos-mode .side { position: fixed; z-index: 30; width: 264px; transform: translateX(-110%); transition: transform .2s ease; box-shadow: 10px 0 30px rgba(0,0,0,0.25); }
body.pos-mode.nav-open .side { transform: none; }
body.pos-mode.nav-open .nav-scrim { display: block; position: fixed; inset: 0; z-index: 15; background: rgba(8,18,34,0.45); }
body.pos-mode .shell-main { margin-left: 0; }
body.pos-mode .menu-btn { display: inline-flex; }
body.pos-mode .shell-top { padding: 8px 14px; background: var(--navy); border: 0; }
body.pos-mode .shell-top h1 { color: #fff; font-size: 17px; }
body.pos-mode .shell-top .btn-ghost { background: rgba(255,255,255,0.08); color: #fff; border-color: rgba(255,255,255,0.16); }
body.pos-mode .shell-body { padding: 12px 14px; }
body.pos-mode .alert-success { display: none; }
.count-dot { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 99px; background: var(--red); color: #fff; font-size: 11px; }

.pos2 { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 14px; height: calc(100vh - 78px); height: calc(100dvh - 78px); -webkit-user-select: none; user-select: none; touch-action: manipulation; }
.pos2 input { -webkit-user-select: text; user-select: text; }
.pos-catalog { display: flex; flex-direction: column; min-height: 0; gap: 10px; }
.pos-scan { display: flex; align-items: center; gap: 10px; background: #fff; border: 2px solid var(--line); border-radius: 14px; padding: 0 14px; }
.pos-scan:focus-within { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(198,161,91,0.2); }
.pos-scan .ico { color: var(--navy); }
.admin .pos-scan input { border: 0 !important; outline: 0 !important; font-size: 17px !important; padding: 14px 0 !important; background: transparent; }
.pos-cats { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; flex: none; }
.pos-cats::-webkit-scrollbar { display: none; }
.pos-cats button { flex: none; min-height: 44px; padding: 0 18px; border-radius: 99px; border: 1px solid var(--line); background: #fff; font-weight: 700; font-size: 14px; color: #445; cursor: pointer; }
.pos-cats button.is-on { background: var(--navy); color: #fff; border-color: var(--navy); }
.pos-grid { flex: 1; min-height: 0; overflow-y: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; align-content: start; padding: 2px 4px 12px 2px; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.pos-grid .tile { position: relative; display: flex; flex-direction: column; gap: 6px; text-align: left; background: #fff; border: 2px solid transparent; border-radius: 14px; padding: 8px; cursor: pointer; box-shadow: 0 1px 3px rgba(11,31,58,0.08); transition: transform .08s, border-color .12s; }
.pos-grid .tile:hover { border-color: var(--gold-2); }
.pos-grid .tile:active { transform: scale(0.97); border-color: var(--gold); }
.pos-grid .tile.is-out { opacity: 0.5; }
.pos-grid .tile-img { display: block; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: linear-gradient(135deg, #f1ece2, #e7ebf1); }
.pos-grid .tile-img img { width: 100%; height: 100%; object-fit: cover; }
.pos-grid .tile-initial { display: grid; place-items: center; height: 100%; font-size: 34px; font-weight: 800; color: var(--gold); }
.pos-grid .tile-name { font-weight: 700; font-size: 13.5px; line-height: 1.25; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 34px; }
.pos-grid .tile-foot { display: flex; justify-content: space-between; align-items: baseline; gap: 4px; }
.pos-grid .tile-foot b { color: var(--navy); font-size: 14.5px; }
.pos-grid .tile-foot em { font-style: normal; font-size: 11.5px; color: var(--muted); font-weight: 600; }
.pos-grid .tile-foot em.low { color: #b26b00; }
.pos-grid .tile-foot em.out { color: var(--red); }
.pos-grid .tile-qty { position: absolute; top: 4px; right: 4px; z-index: 1; min-width: 28px; height: 28px; padding: 0 6px; border-radius: 99px; background: var(--red); color: #fff; font-weight: 800; display: grid; place-items: center; box-shadow: 0 2px 6px rgba(11, 31, 58, 0.35); }
.pos-grid .tile-opts {
    position: absolute; top: 4px; left: 4px; z-index: 1;
    background: rgba(11, 31, 58, 0.88); color: #fff;
    font-size: 10px; font-weight: 700; letter-spacing: 0.02em;
    border-radius: 999px; padding: 3px 8px;
}

.variant-dialog { text-align: left; }
.variant-modal-product {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 12px;
    align-items: center;
    margin-bottom: 14px;
}
.variant-modal-thumb {
    width: 72px; height: 72px; border-radius: 12px; overflow: hidden;
    background: #f3f4f6; display: grid; place-items: center;
}
.variant-modal-thumb img { width: 100%; height: 100%; object-fit: cover; }
.variant-option-list { display: grid; gap: 8px; max-height: min(50vh, 360px); overflow: auto; }
.variant-option {
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
    width: 100%; text-align: left; border: 1.5px solid var(--line); background: #fff;
    border-radius: 12px; padding: 12px 14px; cursor: pointer;
}
.variant-option:hover { border-color: var(--gold); }
.variant-option.is-on { border-color: var(--navy); background: #f5f8fc; box-shadow: inset 0 0 0 1px var(--navy); }
.variant-option.is-out { opacity: 0.45; cursor: not-allowed; }
.variant-option-main { display: grid; gap: 2px; min-width: 0; }
.variant-option-main strong { font-size: 14px; }
.variant-option-main em { font-style: normal; color: var(--muted); font-size: 12px; }
.variant-option-meta { text-align: right; display: grid; gap: 2px; }
.variant-option-meta b { color: var(--navy); }
.variant-option-meta em { font-style: normal; font-size: 12px; color: var(--muted); }
.pos-empty { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 40px; }

.pos-ticket { display: flex; flex-direction: column; min-height: 0; background: #fff; border-radius: 16px; border: 1px solid var(--line); overflow: hidden; box-shadow: 0 4px 18px rgba(11,31,58,0.06); }
.ticket-head { padding: 10px 12px; border-bottom: 1px solid var(--line); background: #fafbfc; }
.ticket-customer { display: flex; align-items: center; gap: 8px; }
.ticket-customer .ico { color: var(--muted); flex: none; }
.admin .ticket-customer select { min-height: 44px; font-weight: 600; }
.ticket-new { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.admin .ticket-new input { min-height: 42px; }
.ticket-lines { flex: 1; min-height: 80px; overflow-y: auto; padding: 4px 12px; overscroll-behavior: contain; }
.ticket-empty { height: 100%; display: grid; place-content: center; text-align: center; color: #9aa3ad; }
.ticket-empty span { display: grid; place-items: center; }
.ticket-empty p { margin: 8px 0 0; }
.tline { display: grid; grid-template-columns: minmax(0, 1fr) auto auto 30px; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid #f0f2f5; }
.tline.flash { animation: flash .6s; }
@keyframes flash { from { background: #fff4d6; } to { background: transparent; } }
.tline-info strong { display: block; font-size: 13.5px; line-height: 1.25; }
.tline-info span { font-size: 12px; color: var(--muted); }
.tline-step { display: inline-flex; align-items: center; background: #f2f4f7; border-radius: 12px; }
.tline-step button { width: 40px; height: 40px; border: 0; background: none; font-size: 22px; font-weight: 700; color: var(--navy); cursor: pointer; border-radius: 12px; }
.tline-step button:active { background: var(--gold-2); }
.tline-step b { min-width: 26px; text-align: center; font-size: 15px; }
.tline-amt { font-size: 14px; color: var(--navy); white-space: nowrap; }
.tline-x { width: 30px; height: 30px; border: 0; border-radius: 8px; background: none; color: #a0a8b3; font-size: 22px; cursor: pointer; }
.tline-x:hover { background: var(--accent-soft); color: var(--red); }

.ticket-sum { padding: 8px 14px; border-top: 1px solid var(--line); background: #fafbfc; }
.sum-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13.5px; padding: 3px 0; }
.sum-row em { font-style: normal; color: var(--muted); }
.sum-row.disc > span { flex: none; }
.disc-in { display: flex; gap: 6px; flex: 1; justify-content: flex-end; }
.admin .disc-in input { width: 86px !important; padding: 6px 8px !important; text-align: right; }
.small-seg label { min-width: 36px !important; padding: 0 8px !important; font-size: 13px !important; }
.sum-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 4px; padding-top: 6px; border-top: 1px dashed var(--line); }
.sum-total span { font-weight: 700; }
.sum-total b { font-size: 26px; letter-spacing: -0.03em; color: var(--navy); }

.pay-methods { display: grid; grid-template-columns: repeat(auto-fit, minmax(88px, 1fr)); gap: 8px; }
.pay-methods button { display: flex; flex-direction: column; align-items: center; gap: 3px; min-height: 60px; border: 2px solid var(--line); background: #fff; border-radius: 12px; font-weight: 700; font-size: 13px; color: #445; cursor: pointer; }
.pay-methods button.is-on { border-color: var(--navy); background: var(--navy); color: #fff; }
.pay-methods button.is-on .ico { color: var(--gold); }
.paystack-hint { margin: 8px 0 0; font-size: 12px; }
.tender { margin-top: 10px; }
.tender.is-hidden { display: none; }
.tender-top { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; }
.tender-top label { font-weight: 700; font-size: 12.5px; color: var(--navy); }
.admin .tender-top input { font-size: 20px !important; font-weight: 800; text-align: right; padding: 8px 10px !important; }
.change { font-size: 12px; color: var(--muted); text-align: right; line-height: 1.2; }
.change b { display: block; font-size: 16px; color: var(--green); }
.change.short b { color: var(--red); }
.quick-cash { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-top: 8px; }
.quick-cash:empty { display: none; }
.quick-cash button { min-height: 40px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border: 1px solid #d5dbe3; background: #fff; border-radius: 10px; font-weight: 700; font-size: 13px; cursor: pointer; padding: 0 4px; }
.quick-cash button:first-child { background: #eef5f0; border-color: #bfe3cc; color: var(--green); }
.keypad { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin-top: 8px; }
.keypad button { min-height: 42px; border: 0; border-radius: 10px; background: #f2f4f7; font-size: 18px; font-weight: 700; color: var(--navy); cursor: pointer; }
.keypad button:active { background: var(--gold-2); }

.pay-dialog { width: min(480px, 100%); text-align: left; padding: 22px; }
.pay-dialog .card-head { margin-bottom: 8px; }
.pay-dialog .card-head h2 { margin: 0; font-size: 22px; text-align: left; }
.pay-due { background: #0b1f3a; color: #fff; border-radius: 14px; padding: 16px 18px; margin: 10px 0 12px; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.pay-due span { font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: #c9d4e4; }
.pay-due b { font-size: 30px; letter-spacing: -0.03em; color: #f5d76e; }
#pay-customer-label { margin: 0 0 12px; min-height: 1.2em; }
.pay-dialog .pay-methods { margin-bottom: 4px; }
.pay-dialog .tender { margin-top: 12px; }
.pay-dialog .keypad { grid-template-columns: repeat(3, 1fr); }
.pay-dialog .keypad button { min-height: 52px; font-size: 20px; }
.pay-confirm-row { grid-template-columns: 1fr 1.6fr; margin-top: 14px; }
.pay-confirm-row #pay-confirm { display: flex; justify-content: space-between; gap: 10px; padding: 0 16px; }
.pay-confirm-row #pay-confirm b { font-weight: 800; }

.paystack-dialog { width: min(520px, 100%); max-height: min(92vh, 860px); text-align: left; padding: 16px 16px 18px; display: flex; flex-direction: column; }
.paystack-dialog .card-head { margin-bottom: 6px; }
.paystack-dialog .card-head h2 { margin: 0; font-size: 20px; text-align: left; }
.paystack-frame-wrap { flex: 1; min-height: 420px; height: min(62vh, 560px); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #f4f6f9; }
.paystack-frame-wrap iframe { width: 100%; height: 100%; border: 0; display: block; background: #fff; }
.paystack-actions { grid-template-columns: 1fr 1fr 1.2fr; margin-top: 12px; }
@media (max-width: 560px) {
    .paystack-dialog { width: 100%; max-height: 96vh; border-radius: 16px; }
    .paystack-frame-wrap { min-height: 360px; height: 55vh; }
    .paystack-actions { grid-template-columns: 1fr; }
}
.pos-ticket .alert { margin: 8px 12px 0; }
.ticket-actions { display: grid; grid-template-columns: 64px 64px 1fr; gap: 8px; padding: 10px 12px 12px; }
.ticket-actions .btn { min-height: 58px; border-radius: 12px; }
.ticket-actions .btn-ghost { flex-direction: column; gap: 2px; font-size: 11.5px; padding: 0; }
.pay-btn { display: flex; justify-content: space-between; font-size: 16px; padding: 0 16px; white-space: nowrap; }
.pay-btn b { font-size: 17px; }
.cart-fab { display: none; }

.pos-modal { position: fixed; inset: 0; z-index: 50; background: rgba(8,18,34,0.55); display: grid; place-items: center; padding: 16px; }
.pos-modal[hidden] { display: none; }
.pos-dialog { width: min(440px, 100%); background: #fff; border-radius: 20px; padding: 26px; text-align: center; box-shadow: 0 30px 60px rgba(0,0,0,0.3); animation: pop .18s ease-out; }
.pos-dialog.wide { width: min(560px, 100%); text-align: left; }
@keyframes pop { from { transform: scale(0.94); opacity: 0; } }
.done-ico { display: inline-grid; place-items: center; width: 68px; height: 68px; border-radius: 50%; background: #e6f5ec; color: var(--green); }
.pos-dialog h2 { margin: 12px 0 2px; font-size: 22px; }
.done-figs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 18px 0; }
.done-figs div { background: #f6f7f9; border-radius: 12px; padding: 12px; }
.done-figs span { display: block; font-size: 12px; color: var(--muted); font-weight: 600; }
.done-figs b { font-size: 22px; color: var(--navy); }
.done-figs div:last-child b { color: var(--green); }
.done-actions { display: grid; gap: 8px; }
.done-actions .btn { min-height: 54px; border-radius: 12px; }
.held-row { display: flex; align-items: center; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.held-row > div { flex: 1; }
.held-row strong { display: block; }
.held-row span { font-size: 12.5px; color: var(--muted); }

@media (max-width: 1180px) {
    .pos2 { grid-template-columns: minmax(0, 1fr) 380px; }
}

@media (max-width: 860px) {
    .pos2 { grid-template-columns: 1fr; height: auto; }
    .pos-grid { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); overflow: visible; padding-bottom: 90px; }
    .pos-ticket { position: fixed; inset: auto 0 0 0; z-index: 40; max-height: 92vh; max-height: 92dvh; border-radius: 20px 20px 0 0; transform: translateY(105%); transition: transform .22s ease; }
    body.ticket-open .pos-ticket { transform: none; }
    .cart-fab { display: flex; align-items: center; gap: 10px; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 41; min-height: 58px; padding: 0 18px; border: 0; border-radius: 16px; background: var(--red); color: #fff; font-weight: 700; font-size: 15px; box-shadow: 0 10px 24px rgba(11, 31, 58, 0.28); }
    .cart-fab b { margin-left: auto; font-size: 17px; }
    body.ticket-open .cart-fab { background: var(--navy); bottom: auto; top: 8px; left: auto; width: auto; min-height: 40px; box-shadow: none; }
    body.ticket-open .cart-fab span, body.ticket-open .cart-fab b { display: none; }
    body.pos-mode .shell-tools .btn:not([data-held-open]) { display: none; }
}

/* ---------- Store: live search, checkout zones, policies ---------- */
.search { position: relative; }
.suggest-box { position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 60; background: #fff; border: 1px solid #eee; border-radius: 14px; box-shadow: 0 18px 40px rgba(0,0,0,0.14); padding: 6px; max-height: min(70vh, 520px); overflow: auto; }
.suggest-box a { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 10px; color: #222; }
.suggest-box a:hover, .suggest-box a.is-active { background: #fff3f5; }
.suggest-box mark { background: none; color: var(--navy); font-weight: 800; }
.suggest-cats { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 4px 8px; border-bottom: 1px solid #f2f2f2; margin-bottom: 4px; }
.suggest-cats a { padding: 5px 10px; border: 1px solid #eee; border-radius: 99px; font-size: 12.5px; }
.suggest-item img, .suggest-item .ph { width: 46px; height: 46px; border-radius: 8px; object-fit: cover; background: #f4f4f4; flex: none; }
.s-text { flex: 1; min-width: 0; }
.s-text strong { display: block; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s-text em { font-style: normal; font-size: 12px; color: #888; }
.s-price { text-align: right; white-space: nowrap; }
.s-price b { display: block; color: #111; }
.s-price s { font-size: 12px; color: #999; }
.suggest-all { justify-content: center; font-weight: 700; color: var(--navy) !important; border-top: 1px solid #f2f2f2; border-radius: 0 0 10px 10px !important; margin-top: 4px; }
.suggest-empty { margin: 0; padding: 14px; color: #777; text-align: center; }
@media (max-width: 760px) { .suggest-box { position: fixed; left: 10px; right: 10px; top: 148px; } }

.zone-options { display: grid; gap: 8px; margin-bottom: 14px; }
.zone-option { display: flex; align-items: center; gap: 12px; border: 1.5px solid var(--line); border-radius: 10px; padding: 12px 14px; cursor: pointer; transition: border-color .12s, background .12s; }
.zone-option:hover { border-color: #d7c39a; }
.zone-option:has(input:checked) { border-color: var(--navy); background: #f5f8fc; box-shadow: inset 0 0 0 1px var(--navy); }
.zone-option input { accent-color: var(--navy); width: 18px; height: 18px; flex: none; }
.zone-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.zone-body strong { font-size: 14px; }
.zone-body em { font-style: normal; font-size: 12.5px; color: var(--muted); }
.zone-body small { color: #8a6a32; font-weight: 700; font-size: 12px; }
.zone-price { text-align: right; white-space: nowrap; display: flex; flex-direction: column; }
.zone-price b { color: var(--navy); }
.zone-price b.free { color: var(--green); }
.zone-price s, .zone-price small { font-size: 11.5px; color: var(--muted); }
.summary-line.sub { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 10px; }

.policy-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; align-items: start; padding: 20px 0 10px; }
.policy-nav { display: flex; flex-direction: column; gap: 2px; background: #fff; border: 1px solid #eee; border-radius: 12px; padding: 8px; position: sticky; top: 12px; }
.policy-nav a { padding: 10px 12px; border-radius: 8px; font-weight: 600; color: #444; }
.policy-nav a:hover { background: #f6f6f6; }
.policy-nav a.is-active { background: #0b1f3a; color: #fff; }
.policy-body { background: #fff; border: 1px solid #eee; border-radius: 12px; padding: 28px 32px; max-width: none; box-shadow: 0 8px 24px rgba(11, 31, 58, 0.04); }
.policy-body h1 { margin-top: 0; }
.policy-kicker { margin: 0 0 6px; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: #c6a15b; font-weight: 700; }
.policy-cta { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 24px; padding-top: 18px; border-top: 1px solid #eee; }
.policy-cta .muted { margin: 0; }
.faq-list { display: grid; gap: 10px; margin-top: 18px; }
.faq-list details { border: 1px solid #e6e8ec; border-radius: 12px; background: #fafbfc; padding: 14px 16px; transition: border-color .15s ease, background .15s ease; }
.faq-list details[open] { background: #fff; border-color: #c6a15b; }
.faq-list summary { cursor: pointer; font-weight: 700; color: #111; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; float: right; color: #c6a15b; font-weight: 700; }
.faq-list details[open] summary::after { content: "–"; }
.faq-list details p { margin: 10px 0 0; color: #445; }
.legal a { text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 760px) {
    .policy-layout { grid-template-columns: 1fr; gap: 12px; }
    .policy-nav { position: static; flex-direction: row; overflow-x: auto; }
    .policy-nav a { white-space: nowrap; }
    .policy-body { padding: 18px; }
}

.seg label, .role-pick label { position: relative; }
.seg input, .role-pick input { position: absolute; inset: 0; width: 100% !important; height: 100% !important; margin: 0; opacity: 0; cursor: pointer; }
.switch { position: relative; }
.switch input { width: 1px !important; height: 1px !important; margin: 0; }
.doc-builder > *, .form-row > *, .settings > * { min-width: 0; }
.doc-builder { grid-template-columns: minmax(0, 1fr) 360px; }
.lines td.num, .lines th.num { white-space: nowrap; }
.lines .qty { width: 128px; }
.admin .price-in { width: 96px !important; }
.lines td:first-child { min-width: 200px; }
@media (max-width: 1180px) { .doc-builder { grid-template-columns: 1fr; } }
.pos-catalog, .pos-ticket, .ticket-customer select { min-width: 0; }
@media (max-width: 860px) { .pos2 { grid-template-columns: minmax(0, 1fr); } }

/* POS register + customer modal */
.register-chip.is-open { background: #e6f5ec !important; color: var(--green) !important; border-color: #bfe3cc !important; }
.register-chip.is-closed { background: var(--accent-soft) !important; color: var(--red) !important; border-color: var(--gold-2) !important; }
body.pos-mode .shell-top .register-chip { font-size: 13px; }
.modal-form { text-align: left; }
.modal-form .done-actions { margin-top: 8px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pos-dialog .card-head { margin-bottom: 12px; }
.pos-dialog .card-head h2 { margin: 0; font-size: 20px; text-align: left; }
.register-summary { margin-bottom: 14px; }
.register-figs { grid-template-columns: 1fr 1fr; }
.register-figs div:nth-child(5), .register-figs div:nth-child(6) { background: #eef2f8; }
.register-figs div:nth-child(6) b { color: var(--navy); }
@media (max-width: 860px) {
    body.pos-mode .shell-tools .btn:not([data-held-open]):not([data-register-btn]) { display: none; }
    body.pos-mode .shell-tools .register-chip span { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

.viewed-strip { margin: 28px auto 48px; padding-top: 8px; }
.viewed-head { margin-bottom: 14px; }
.viewed-head h2 { margin: 0 0 4px; font-size: 1.45rem; }
.viewed-head p { margin: 0; color: #667085; }
.viewed-grid { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .viewed-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .viewed-grid { grid-template-columns: 1fr 1fr; gap: 10px; } }

/* ---------- Admin DataTables ---------- */
.order-detail-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; flex-wrap: wrap; }

.admin .table-wrap:has(.dataTables_wrapper) {
    overflow: visible;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(11, 31, 58, 0.04);
}

.admin .dataTables_wrapper {
    padding: 0;
    clear: both;
}

.admin .dataTables_wrapper .dataTables_length,
.admin .dataTables_wrapper .dataTables_filter,
.admin .dataTables_wrapper .dataTables_info,
.admin .dataTables_wrapper .dataTables_paginate {
    font-size: 13px;
    color: var(--muted);
    box-sizing: border-box;
}

.admin .dataTables_wrapper .dataTables_length,
.admin .dataTables_wrapper .dataTables_filter {
    float: none;
    margin: 0;
}

.admin .dataTables_wrapper .dataTables_length {
    float: left;
    padding: 16px 18px 12px;
}

.admin .dataTables_wrapper .dataTables_filter {
    float: right;
    padding: 16px 18px 12px;
}

.admin .dataTables_wrapper .dataTables_length label,
.admin .dataTables_wrapper .dataTables_filter label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-weight: 600;
    color: #667085;
}

.admin .dataTables_wrapper .dataTables_filter input {
    min-width: 240px;
    min-height: 40px;
    padding: 8px 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #f8fafc;
    color: var(--ink);
    font-size: 14px;
    font-weight: 500;
    transition: border-color .15s, box-shadow .15s, background .15s;
}

.admin .dataTables_wrapper .dataTables_filter input:focus {
    outline: 0;
    background: #fff;
    border-color: var(--navy);
    box-shadow: 0 0 0 3px rgba(11, 31, 58, 0.1);
}

.admin .dataTables_wrapper .dataTables_length select {
    min-height: 40px;
    margin: 0 6px;
    padding: 6px 28px 6px 10px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #f8fafc;
    color: var(--ink);
    font-weight: 600;
}

.admin .dataTables_wrapper table.dataTable {
    margin: 0 !important;
    border-collapse: collapse !important;
    width: 100% !important;
    border: 0 !important;
    clear: both;
}

.admin .dataTables_wrapper table.dataTable.no-footer {
    border-bottom: 0 !important;
}

.admin .dataTables_wrapper table.dataTable thead th {
    padding: 12px 18px !important;
    border-bottom: 1px solid var(--line) !important;
    border-top: 1px solid var(--line) !important;
    background: #f8fafc !important;
}

.admin .dataTables_wrapper table.dataTable thead th.sorting,
.admin .dataTables_wrapper table.dataTable thead th.sorting_asc,
.admin .dataTables_wrapper table.dataTable thead th.sorting_desc {
    background-image: none !important;
    position: relative;
    padding-right: 28px !important;
}

.admin .dataTables_wrapper table.dataTable thead th.sorting:after,
.admin .dataTables_wrapper table.dataTable thead th.sorting_asc:after,
.admin .dataTables_wrapper table.dataTable thead th.sorting_desc:after {
    content: "";
    position: absolute;
    right: 12px;
    top: 50%;
    width: 0;
    height: 0;
    margin-top: -2px;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid #98a2b3;
    opacity: .55;
}

.admin .dataTables_wrapper table.dataTable thead th.sorting_asc:after {
    border-top: 0;
    border-bottom: 5px solid var(--navy);
    opacity: 1;
    margin-top: -6px;
}

.admin .dataTables_wrapper table.dataTable thead th.sorting_desc:after {
    border-top-color: var(--navy);
    opacity: 1;
}

.admin .dataTables_wrapper table.dataTable tbody td {
    padding: 14px 18px !important;
    border-top: 0 !important;
    border-bottom: 1px solid #eef1f5 !important;
    vertical-align: middle;
}

.admin .dataTables_wrapper table.dataTable tbody tr:last-child td {
    border-bottom: 0 !important;
}

.admin .dataTables_wrapper table.dataTable tbody tr:hover {
    background: #fafbfc;
}

.admin .dataTables_wrapper .dataTables_info {
    clear: both;
    float: left;
    padding: 14px 18px 16px;
    font-weight: 600;
}

.admin .dataTables_wrapper .dataTables_paginate {
    float: right;
    padding: 10px 14px 14px;
}

.admin .dataTables_wrapper .dataTables_paginate .paginate_button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    min-height: 36px;
    padding: 6px 12px !important;
    margin: 0 3px !important;
    border-radius: 10px !important;
    border: 1px solid var(--line) !important;
    background: #fff !important;
    color: var(--ink) !important;
    font-weight: 600 !important;
    box-shadow: none !important;
    cursor: pointer;
}

.admin .dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: #f5f7fa !important;
    border-color: #d0d5dd !important;
    color: var(--navy) !important;
}

.admin .dataTables_wrapper .dataTables_paginate .paginate_button.current,
.admin .dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    background: var(--navy) !important;
    border-color: var(--navy) !important;
    color: #fff !important;
}

.admin .dataTables_wrapper .dataTables_paginate .paginate_button.disabled,
.admin .dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover {
    opacity: .45;
    cursor: default;
    background: #fff !important;
    color: var(--muted) !important;
}

.admin .dataTables_wrapper:after {
    content: "";
    display: table;
    clear: both;
}

.admin .table-wrap .actions .btn {
    white-space: nowrap;
}

.admin .table-actions {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.admin .table-actions .btn {
    min-height: 34px;
    padding: 6px 12px;
    font-size: 13px;
}

.admin .table-actions form.inline {
    display: inline-flex;
    margin: 0;
}

@media (max-width: 720px) {
    .admin .dataTables_wrapper .dataTables_length,
    .admin .dataTables_wrapper .dataTables_filter,
    .admin .dataTables_wrapper .dataTables_info,
    .admin .dataTables_wrapper .dataTables_paginate {
        float: none;
        width: 100%;
        text-align: left;
        padding-left: 14px;
        padding-right: 14px;
    }

    .admin .dataTables_wrapper .dataTables_filter input {
        min-width: 0;
        width: 100%;
    }

    .admin .dataTables_wrapper table.dataTable thead th,
    .admin .dataTables_wrapper table.dataTable tbody td {
        padding-left: 14px !important;
        padding-right: 14px !important;
    }
}

/* ---------- Product detail: description, video, reviews ---------- */
.product-lede { margin: 0 0 4px; color: #445; line-height: 1.5; }
.stars { display: inline-flex; align-items: center; gap: 2px; color: #d0d5dd; font-size: 14px; }
.stars i.on { color: #e6a700; }
.stars strong { margin-left: 6px; color: var(--ink); }
.stars a { margin-left: 4px; color: var(--navy); font-weight: 600; }
.product-panels { display: grid; grid-template-columns: 1.2fr 0.9fr; gap: 18px; margin: 28px auto 40px; }
.product-panel { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; }
.product-panel h2 { margin: 0 0 12px; font-size: 1.35rem; }
.product-panel h3 { margin: 18px 0 10px; font-size: 1.05rem; }
.product-copy { color: #344054; line-height: 1.65; white-space: pre-wrap; }
.product-video { margin-top: 18px; }
.product-video video, .video-frame { width: 100%; border-radius: 12px; background: #0b1f3a; overflow: hidden; }
.product-video video { max-height: 420px; display: block; }
.video-frame { position: relative; padding-top: 56.25%; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.review-head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; flex-wrap: wrap; margin-bottom: 8px; }
.review-head h2 { margin: 0; }
.review-card { padding: 14px 0; border-bottom: 1px solid #eef1f5; }
.review-card:last-of-type { border-bottom: 0; }
.review-card h3 { margin: 6px 0; font-size: 1rem; }
.review-card p { margin: 0; color: #445; line-height: 1.55; }
.review-meta { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.review-form { margin-top: 16px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: #fafbfc; box-shadow: none; }
.review-form h3 { margin: 0 0 12px; }
@media (max-width: 900px) {
    .product-panels { grid-template-columns: 1fr; }
}

/* ---------- Admin product gallery ---------- */
.admin-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; margin: 12px 0; }
.admin-gallery-item { margin: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fafbfc; }
.admin-gallery-item img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; background: #eee; }
.admin-gallery-item figcaption { display: flex; justify-content: space-between; align-items: center; gap: 6px; padding: 8px; font-size: 12px; }
.admin-gallery-item .btn { min-height: 30px; padding: 4px 8px; font-size: 12px; }

/* ---------- Product photo previews ---------- */
.photo-preview-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.photo-preview-card { position: relative; margin: 0; width: 112px; height: 112px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: #f2f4f7; }
.photo-preview-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-preview-card .gallery-fallback { display: grid; place-items: center; width: 100%; height: 100%; padding: 8px; text-align: center; font-size: 12px; }
.photo-remove {
    position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border: 0; border-radius: 50%;
    background: var(--navy); color: var(--gold); font-size: 18px; line-height: 1; cursor: pointer;
    display: grid; place-items: center; box-shadow: 0 2px 6px rgba(11, 31, 58, 0.28); padding: 0;
}
.photo-remove:hover { background: var(--navy-2); color: var(--gold-2); }
.admin-gallery .photo-preview-card { width: 140px; height: 140px; }
.admin-gallery .photo-preview-card form { margin: 0; }

/* ---------- Product variation setup ---------- */
.var-title { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; }
.var-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 14px; }
.var-col label { display: block; font-weight: 700; margin-bottom: 8px; }
.var-switch-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.var-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; min-height: 8px; }
.var-tag {
    display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px;
    background: #eef2f8; color: var(--navy); font-size: 13px; font-weight: 700;
}
.var-tag-x {
    width: 18px; height: 18px; border: 0; border-radius: 50%; background: var(--navy); color: #fff;
    font-size: 14px; line-height: 1; cursor: pointer; display: grid; place-items: center; padding: 0;
}
.var-attr-fields { display: grid; gap: 12px; margin-top: 14px; }
.var-choice-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.var-preview { margin: 14px 0; padding: 12px; border: 1px dashed var(--line); border-radius: 12px; background: #fafbfc; }
.var-preview-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.var-preview-chip { padding: 6px 10px; border-radius: 8px; background: #fff; border: 1px solid var(--line); font-size: 13px; font-weight: 600; }
.var-swatch { display: inline-block; width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(0,0,0,.15); margin-right: 8px; vertical-align: middle; }
@media (max-width: 720px) {
    .var-grid { grid-template-columns: 1fr; }
}

/* Searchable selects (Select2) */
.admin .select2-container { width: 100% !important; font: inherit; }
.admin .select2-container--default .select2-selection--single {
    min-height: 42px;
    border: 1px solid #cfd5dd;
    border-radius: 4px;
    background: #fff;
    padding: 4px 8px;
}
.admin .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: var(--ink);
    line-height: 32px;
    padding-left: 4px;
}
.admin .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 40px;
}
.admin .select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: var(--muted);
}
.admin .select2-container--default .select2-selection--single .select2-selection__clear {
    height: 32px; margin-right: 18px; font-size: 16px; color: var(--muted);
}
.admin .select2-dropdown {
    border: 1px solid #cfd5dd;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(17, 24, 39, 0.12);
}
.admin .select2-search--dropdown .select2-search__field {
    border: 1px solid #cfd5dd;
    border-radius: 4px;
    padding: 8px 10px;
}
.admin .select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
    background: var(--navy);
}
.admin .ticket-customer .select2-container { min-width: 0; flex: 1; }
.admin .ticket-customer .select2-container--default .select2-selection--single {
    min-height: 44px;
    font-weight: 600;
}

/* ---------- Product gallery: centred photo, scrolling thumbnails ---------- */
.gallery, .buybox { min-width: 0; }
.buybox .sku, .buybox h1 { overflow-wrap: anywhere; }
.thumbs { position: relative; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; scrollbar-width: thin; padding-bottom: 6px; }
.thumb { flex: 0 0 72px; scroll-snap-align: center; }
.thumb:first-child { margin-left: auto; }
.thumb:last-child { margin-right: auto; }
@media (max-width: 1100px) {
    .product-layout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
    .gallery-stage { min-height: 0; aspect-ratio: 1 / 1; }
    .thumb { flex-basis: 64px; height: 64px; }
}

/* Back office: keep sign-out reachable on phones and tablets */
.top-logout { display: none; margin: 0; }
@media (max-width: 980px) {
    .top-logout { display: inline-flex; }
    .shell-top { gap: 8px; }
    .shell-title { flex: 1 1 auto; }
    .shell-title .menu-btn { flex: none; }
    .shell-tools { flex: none; flex-wrap: nowrap; gap: 6px; }
    .shell-tools .top-logout .btn { font-size: 13px; gap: 5px; padding: 8px 10px; color: #b42318; border-color: #f1c4bf; white-space: nowrap; }
    body.pos-mode .shell-top .shell-tools .top-logout .btn { display: inline-flex; color: #fecaca; border-color: rgba(254,202,202,0.35); }
    .side { height: 100vh; height: 100dvh; bottom: auto; padding-bottom: calc(14px + env(safe-area-inset-bottom)); }
}
@media (max-width: 400px) {
    .shell-title h1 { font-size: 16px; }
    .shell-title .menu-btn { padding: 7px 10px; }
}
