:root {
    color-scheme: light;
    --bg: #f5f7fa;
    --bg-deep: #e8edf3;
    --ink: #17202a;
    --muted: #5c6773;
    --line: rgba(23, 32, 42, 0.12);
    --card: #ffffff;
    --copper: #d3541a;
    --copper-deep: #a33d10;
    --pine: #1d4a38;
    --danger: #c62828;
    --on-accent: #ffffff;
    --topbar: #ffffff;
    --topbar-ink: #17202a;
    --panel: #ffffff;
    --panel-ink: #17202a;
    --panel-muted: #5c6773;
    --panel-line: rgba(23, 32, 42, 0.1);
    --logo-bg: #17202a;
    --logo-ink: #ffffff;
    --input-bg: #ffffff;
    --chip-on: #17202a;
    --chip-on-ink: #ffffff;
    --sidebar: #ffffff;
    --sidebar-ink: #17202a;
    --sidebar-hover: rgba(23, 32, 42, 0.06);
    --alert-ok-bg: #e5f2ea;
    --alert-err-bg: #f8e6e2;
    --pill-wait-bg: #f8ead7;
    --pill-wait-ink: #8a4b12;
    --shadow: 0 18px 40px rgba(23, 32, 42, 0.06);
    --radius: 22px;
    --sans: "Outfit", "Segoe UI", sans-serif;
    --serif: "Fraunces", Georgia, serif;
}

html[data-theme="dark"] {
    color-scheme: dark;
    --bg: #10141a;
    --bg-deep: #1b232e;
    --ink: #f4f7fb;
    --muted: #aeb8c4;
    --line: rgba(255, 255, 255, 0.12);
    --card: #18202b;
    --copper: #e07a45;
    --copper-deep: #f0b08a;
    --pine: #8ed0ae;
    --danger: #ef5350;
    --topbar: #0c1016;
    --topbar-ink: #f4f7fb;
    --panel: #18202b;
    --panel-ink: #f4f7fb;
    --panel-muted: #aeb8c4;
    --panel-line: rgba(255, 255, 255, 0.12);
    --logo-bg: #f4f7fb;
    --logo-ink: #10141a;
    --input-bg: #10141a;
    --chip-on: #f4f7fb;
    --chip-on-ink: #10141a;
    --sidebar: #0c1016;
    --sidebar-ink: #f4f7fb;
    --sidebar-hover: rgba(255, 255, 255, 0.08);
    --alert-ok-bg: #163028;
    --alert-err-bg: #3a1e1e;
    --pill-wait-bg: #3a2c16;
    --pill-wait-ink: #f0c48a;
    --shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; scrollbar-width: thin; scrollbar-color: rgba(23, 32, 42, 0.35) transparent; }
*::-webkit-scrollbar { width: 6px; height: 6px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: rgba(23, 32, 42, 0.35); border-radius: 99px; }
html[data-theme="dark"] * { scrollbar-color: rgba(255, 255, 255, 0.28) transparent; }
html[data-theme="dark"] *::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.28); }
html { scroll-behavior: smooth; background: var(--bg); }
body {
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(1200px 500px at 90% -10%, rgba(190, 77, 30, 0.08), transparent 50%),
        var(--bg);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 560; letter-spacing: -0.03em; line-height: 1.05; margin: 0; }
p { margin: 0; }

.wrap { width: min(1140px, calc(100% - 32px)); margin: 0 auto; }
.topbar {
    background: var(--topbar);
    color: var(--topbar-ink);
    border-bottom: 1px solid var(--line);
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    text-align: center;
    padding: 8px 16px;
}
.header {
    --store-header-pad-y: 12px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 22px;
    width: 100%;
    max-width: none;
    margin: 0;
    padding:
        calc(var(--store-header-pad-y) + env(safe-area-inset-top, 0px))
        max(16px, calc((100% - 1140px) / 2))
        10px;
    background: color-mix(in srgb, var(--bg) 97%, transparent);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
}
main.wrap {
    padding-top: calc(88px + env(safe-area-inset-top, 0px));
    padding-bottom: 28px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand .logo {
    width: 44px; height: 44px; border-radius: 14px;
    background: var(--logo-bg); color: var(--logo-ink);
    display: grid; place-items: center;
    font-weight: 700; letter-spacing: -0.04em;
}
.brand > span { display: flex; flex-direction: column; gap: 0; line-height: 1; }
.brand strong { display: block; font-size: 1rem; letter-spacing: -0.03em; line-height: 1.05; }
.brand small { color: var(--muted); font-size: 0.75rem; line-height: 1.1; margin-top: 1px; }
.nav { display: flex; align-items: center; gap: 18px; margin-left: auto; }
.nav a { text-decoration: none; font-weight: 500; }
.nav a:hover, .nav a.active { color: var(--copper-deep); }
.nav a.active { font-weight: 700; }
.search { display: flex; background: var(--card); border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.search input, .nav-search input { border: 0; background: transparent; padding: 10px 14px; width: 180px; outline: none; color: var(--ink); }
.search button { border: 0; background: transparent; padding: 0 14px; cursor: pointer; color: var(--muted); }
.icon-cluster { display: flex; align-items: center; gap: 8px; }
.search-slot { position: relative; }
.nav-search { display: none; position: absolute; top: calc(100% + 8px); right: 0; z-index: 8; background: var(--card); border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow); }
.nav-search.is-open { display: flex; }
.icon-btn {
    width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--line);
    background: var(--card); color: var(--ink); display: inline-grid; place-items: center;
    text-decoration: none; cursor: pointer; font-weight: 700; font-size: 1.05rem; padding: 0;
}
.icon-btn svg, .fav svg { width: 22px; height: 22px; stroke-width: 2.25; }
.card .add-btn, .card .fav, .fav-inline .fav { width: 52px; height: 52px; }
.card .add-btn svg, .card .fav svg, .fav-inline .fav svg { width: 28px; height: 28px; stroke-width: 2.25; }
.fav.on svg { fill: currentColor; }
.icon-sun { display: none; }
html[data-theme="dark"] .icon-moon { display: none; }
html[data-theme="dark"] .icon-sun { display: block; }
.link-leave { background: none; border: 0; color: var(--danger); font-weight: 700; cursor: pointer; padding: 0; font-size: 1rem; }
.icon-link {
    text-decoration: none; font-weight: 600; display: inline-flex; align-items: center; gap: 6px;
}
.cart-link, .icon-link { align-items: flex-start; }
.icon-link sup {
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1;
    color: var(--copper);
    margin-left: 1px;
    position: relative;
    top: -0.15em;
}
.badge {
    background: var(--copper); color: white; border-radius: 999px;
    min-width: 20px; height: 20px; display: inline-grid; place-items: center;
    font-size: 0.72rem; padding: 0 6px;
}
.header-actions { display: none; align-items: center; gap: 8px; margin-left: auto; }
.header-quick.active { color: var(--copper-deep); }
.nav-toggle { display: none; border: 1px solid var(--line); background: var(--card); border-radius: 12px; padding: 8px 12px; }

.hero { display: grid; grid-template-columns: 1.35fr 0.8fr; gap: 28px; padding: 28px 0 10px; align-items: start; }
.kicker { color: var(--copper-deep); font-weight: 650; letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.75rem; font-family: var(--sans); }
.hero h1 { font-size: clamp(2.7rem, 6vw, 5rem); margin: 12px 0 16px; max-width: 11ch; }
.lede { font-size: 1.12rem; color: var(--muted); max-width: 46ch; }
.hero-actions { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.hero-panel {
    background: var(--panel); color: var(--panel-ink); border: 1px solid var(--line); border-radius: 28px; padding: 26px;
    display: flex; flex-direction: column; justify-content: flex-start; gap: 10px;
    box-shadow: var(--shadow);
}
.hero-panel span { color: var(--panel-muted); font-size: 0.85rem; }
.plate { font-family: var(--serif); font-size: 2rem; letter-spacing: 0.08em; margin: 0 0 8px; }
.steps-mini { display: grid; gap: 10px; }
.steps-mini div { display: flex; justify-content: space-between; border-top: 1px solid var(--panel-line); padding-top: 10px; font-size: 0.92rem; }

.section { padding: 34px 0; }
.carousel { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; }
.carousel-track { position: relative; height: 420px; overflow: hidden; }
.carousel-slide {
    position: absolute; top: 0; left: 50%; width: min(340px, 86%); height: 100%;
    display: grid; grid-template-rows: 1fr auto; text-decoration: none;
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
    transition: transform .5s ease, opacity .5s ease;
}
.carousel-slide .visual { min-height: 0; height: 100%; border-radius: 0; }
.carousel-copy { padding: 14px 16px 16px; display: grid; gap: 4px; }
.carousel-copy small { color: var(--muted); }
.carousel-copy strong { font-family: var(--serif); font-size: 1.35rem; letter-spacing: -0.03em; }
@media (min-width: 980px) {
    .carousel-track { height: 460px; }
    .carousel-slide { width: 30%; }
}
.spotlight { display: grid; grid-template-columns: 1.15fr .85fr; gap: 28px; align-items: center; }
.spotlight-photo { min-height: 460px; border-radius: var(--radius); display: block; }
.home-more { text-align: center; color: var(--muted); padding: 22px; }
.shop-more { display: flex; justify-content: center; padding: 28px 0 8px; }
.pay-head { align-items: center; padding-bottom: 28px; }
.pay-title { font-size: 1.2rem; line-height: 1.35; letter-spacing: -0.02em; margin: 0; }
.pay-number { margin: 8px 0 0; font-size: 1.05rem; font-weight: 650; }
.pay-layout { gap: 32px; }
.pay-wait { display: grid; gap: 22px; }
.pay-status { display: flex; gap: 16px; align-items: flex-start; }
.pay-phone {
    width: 72px; height: 72px; flex: 0 0 72px; border-radius: 22px;
    display: grid; place-items: center; background: var(--bg-deep); border: 1px solid var(--line); position: relative;
}
.pay-phone::after {
    content: ""; position: absolute; inset: -8px; border-radius: 28px; border: 2px solid var(--copper);
    animation: pay-pulse 1.6s ease-out infinite;
}
.pay-phone.failed::after { display: none; }
.pay-mark { font-family: var(--serif); font-size: 1.8rem; color: var(--danger); }
@keyframes pay-pulse {
    from { transform: scale(.92); opacity: .55; }
    to { transform: scale(1.12); opacity: 0; }
}
.spin { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--copper); animation: spin .7s linear infinite; }
.btn .spin { width: 18px; height: 18px; border-width: 2px; border-color: rgba(255, 255, 255, .35); border-top-color: #fff; }
@keyframes spin { to { transform: rotate(360deg); } }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 18px; }
.section-head h2 { font-size: 2.1rem; }
.section-head p { color: var(--muted); }

.cats { display: flex; gap: 10px; flex-wrap: wrap; }
.chip, .filters a {
    text-decoration: none; border: 1px solid var(--line); background: var(--card);
    border-radius: 999px; padding: 8px 14px; font-weight: 550;
}
.chip.active, .filters a.active, .chip:hover, .filters a:hover { background: var(--chip-on); color: var(--chip-on-ink); border-color: var(--chip-on); }

.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 520px) {
    .grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 900px) {
    .grid { grid-template-columns: repeat(4, 1fr); gap: 16px; }
}
.card { background: var(--card); border-radius: var(--radius); overflow: hidden; border: 1px solid transparent; box-shadow: 0 1px 0 rgba(255,255,255,.6) inset; position: relative; }
.fav-form { position: absolute; top: 12px; left: 12px; z-index: 3; margin: 0; }
.add-form { position: absolute; top: 12px; right: 12px; z-index: 3; margin: 0; }
.add-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.fav {
    width: 42px; height: 42px; border-radius: 999px; border: 1px solid var(--line);
    background: var(--card); color: var(--ink); display: grid; place-items: center;
    text-decoration: none; cursor: pointer; font-size: 1.15rem; line-height: 1;
}
.fav, .add-btn { overflow: visible; }
.fav svg, .add-btn svg { display: block; pointer-events: none; transform-origin: center; }
.fav.on { color: #fff; background: var(--copper); border-color: var(--copper); }
.fav.on svg, .fav.on svg path { fill: currentColor; stroke: currentColor; }
@keyframes tap {
    0% { transform: scale(1); }
    35% { transform: scale(0.88); }
    100% { transform: scale(1); }
}
.fav.pop, .add-btn.pop { animation: tap .16s ease-out; }
.fav-inline { position: relative; width: 52px; }
.fav-inline .fav-form, .fav-inline .fav { position: static; }
.card:hover { transform: translateY(-3px); transition: 0.2s ease; }
.visual {
    --tone: var(--copper);
    aspect-ratio: 1 / 1.02;
    background:
        linear-gradient(160deg, color-mix(in srgb, var(--tone) 78%, white), color-mix(in srgb, var(--tone) 42%, #1c1915));
    color: white; position: relative; display: flex; flex-direction: column; justify-content: space-between;
    padding: 16px; text-decoration: none;
}
.visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.visual .kicker, .visual .mark { position: relative; z-index: 1; }
.visual .mark { font-family: var(--serif); font-size: 4.5rem; line-height: 0.8; }
.visual em {
    position: absolute; z-index: 1; top: 14px; right: 14px; font-style: normal;
    background: white; color: var(--ink); border-radius: 999px; padding: 4px 8px; font-size: 0.75rem; font-family: var(--sans);
}
.card-body { padding: 14px 14px 16px; display: grid; gap: 6px; }
.card-body h3 { font-family: var(--sans); font-size: 1.05rem; font-weight: 620; letter-spacing: -0.02em; }
.card-body h3 a { text-decoration: none; }
.card-body p { color: var(--muted); font-size: 0.88rem; }
.card-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 6px; flex-wrap: wrap; }
.card-row strong { font-size: 1.02rem; }
.prices { display: grid; line-height: 1.2; }
.prices small { color: var(--muted); font-size: 0.82rem; font-weight: 550; }
.guide { list-style: none; margin: 10px 0 24px; padding: 0; display: grid; gap: 14px; }
.guide li { display: grid; grid-template-columns: 52px 1fr; gap: 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.guide li > span { width: 52px; height: 52px; border-radius: 16px; background: var(--bg-deep); display: grid; place-items: center; font-family: var(--serif); font-size: 1.4rem; }
.guide h2 { font-family: var(--sans); font-size: 1.2rem; margin-bottom: 6px; }
.guide p { color: var(--muted); }

.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.trust article, .panel, .summary, .auth-card, .stat {
    background: var(--card); border-radius: var(--radius); padding: 20px; border: 1px solid var(--line);
}
.trust h3 { font-family: var(--sans); font-size: 1.05rem; margin-bottom: 6px; }
.trust p, .muted { color: var(--muted); }

.btn, button.btn, form button[type="submit"]:not(.icon-btn):not(.fav):not(.link-leave) {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    border-radius: 999px; padding: 12px 18px; text-decoration: none; border: 1px solid transparent;
    cursor: pointer; font-weight: 620; background: var(--copper); color: #fff;
}
.btn-primary, button.btn.btn-primary, a.btn.btn-primary, form button[type="submit"].btn-primary { background: var(--copper); color: #fff; }
.btn-primary:hover, button.btn.btn-primary:hover, form button[type="submit"].btn-primary:hover { background: var(--copper-deep); color: #fff; }
.btn-dark, button.btn.btn-dark, a.btn.btn-dark { background: var(--chip-on); color: var(--chip-on-ink); }
.theme-toggle {
    border: 1px solid var(--line); background: var(--card); color: var(--ink);
    border-radius: 999px; padding: 8px 12px; cursor: pointer; font-weight: 650; font-size: 0.85rem;
}
.btn-ghost, button.btn.btn-ghost, a.btn.btn-ghost { background: var(--card); color: var(--ink); border-color: var(--line); }
.btn-danger, button.btn.btn-danger, a.btn.btn-danger {
    background: #c62828; color: #fff; border-color: #c62828;
}
.btn-danger:hover, button.btn.btn-danger:hover, a.btn.btn-danger:hover {
    background: #9f1f1f; border-color: #9f1f1f; color: #fff;
}
.btn-block { width: 100%; }
.btn[disabled], .btn.disabled { opacity: 0.5; pointer-events: none; }

.profile {
    display: grid;
    gap: 16px;
    align-items: start;
}
.profile-id {
    display: grid;
    gap: 8px;
    align-content: start;
}
.profile-id h2 { font-size: clamp(2rem, 3vw, 2.8rem); }
.profile-facts {
    display: grid;
    gap: 12px;
}
.fact {
    display: grid;
    gap: 4px;
    padding: 16px 18px;
    border-radius: 18px;
    background: var(--bg-deep);
}
.fact dt { color: var(--muted); font-size: 0.78rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 650; }
.fact dd { margin: 0; font-size: 1.15rem; overflow-wrap: anywhere; }
.profile-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.profile-actions .btn sup {
    font-size: 0.72rem;
    margin-left: 4px;
}
@media (min-width: 860px) {
    .profile { grid-template-columns: minmax(240px, 320px) minmax(0, 1fr); }
    .profile-facts { grid-template-columns: 1fr 1fr; }
}
.page-head { padding: 22px 0 8px; display: flex; justify-content: space-between; gap: 16px; align-items: end; }
.page-head h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 18px; }

.product-layout { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 28px; padding: 36px 0 30px; }
.product-copy .qty, .product-copy form[data-buy] { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.buy-form { margin: 0; }
.card-row .btn { padding: 8px 14px; white-space: nowrap; }
.product-copy { display: grid; align-content: start; gap: 14px; }
.price { font-size: 2rem; font-family: var(--serif); }
.qty { display: flex; gap: 10px; align-items: center; }
.qty input, .field input, .field select, .field textarea {
    width: 100%; border: 1px solid var(--line); background: var(--input-bg); color: var(--ink); border-radius: 14px; padding: 12px 14px;
}
.field { display: grid; gap: 6px; }
.field label { font-size: 0.86rem; font-weight: 620; }
.phone-field {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: stretch;
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--input-bg);
    overflow: hidden;
}
.phone-prefix {
    display: grid;
    place-items: center;
    padding: 0 12px;
    border-right: 1px solid var(--line);
    background: var(--bg-deep);
    color: var(--ink);
    font-weight: 700;
    letter-spacing: 0.02em;
    white-space: nowrap;
    user-select: none;
}
.phone-field input[type="tel"] {
    width: 100%;
    min-width: 0;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 12px 14px;
    color: var(--ink);
    outline: none;
}
.phone-field.quick {
    border-radius: 16px;
}
.phone-field.quick .phone-prefix {
    padding: 0 14px;
    font-size: 1.05rem;
}
.phone-field.quick input[type="tel"] {
    padding: 16px 14px;
    font-size: 1.15rem;
}
.quick-field .phone-field {
    margin: 0;
}
.form-grid { display: grid; gap: 12px; }
.identity { display: flex; align-items: start; justify-content: space-between; gap: 16px; }
.identity-lines { display: grid; gap: 10px; min-width: 0; }
.identity-pair { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 28px; row-gap: 6px; }
.identity-lines p { margin: 0; line-height: 1.4; overflow-wrap: anywhere; }
.ship-picks { display: flex; flex-wrap: wrap; gap: 8px; }
.ship-picks label {
    display: inline-flex; align-items: center; gap: 8px; margin: 0;
    border: 1px solid var(--line); border-radius: 999px; padding: 8px 12px; cursor: pointer;
}
.ship-picks input { accent-color: var(--copper); }
.pay-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.pay-actions .btn { flex: 1; }
.check { display: flex; gap: 8px; align-items: center; font-size: 0.92rem; }

.layout-2 { display: grid; grid-template-columns: 1.4fr 0.8fr; gap: 18px; align-items: start; }
[data-cart] .summary {
    position: sticky;
    top: calc(96px + env(safe-area-inset-top, 0px));
    z-index: 20;
    box-shadow: var(--shadow);
}
.line { display: grid; grid-template-columns: 72px 1fr auto; gap: 16px; align-items: start; padding: 16px 0; border-bottom: 1px solid var(--line); }
[data-cart] .line > div:not(.swatch) { display: grid; gap: 14px; align-content: start; }
[data-cart] .line .muted { margin: 0; }
[data-cart] .prices { row-gap: 8px; }
[data-cart] .prices small { line-height: 1.4; }
[data-cart] .line .qty { gap: 8px; }
[data-cart] .line .qty .icon-btn { width: 32px; height: 32px; }
[data-cart] .line .qty .icon-btn svg { width: 16px; height: 16px; }
[data-cart] .line .qty input { width: 56px; height: 32px; padding: 0 8px; border-radius: 12px; text-align: center; }
[data-cart] .qty-moq { font-size: 0.8rem; margin: 0 0 4px; }
.line-side { justify-items: end; text-align: right; }
.line-side .prices { justify-items: end; }
[data-cart] button.btn[data-cart-remove] { padding: 6px 12px; font-size: 0.82rem; }
[data-cart] .summary { display: grid; gap: 16px; align-content: start; }
[data-cart] .summary h2 { margin: 0; }
[data-cart] .summary .btn { padding: 10px 16px; font-size: 0.95rem; }
.swatch { width: 72px; height: 72px; border-radius: 16px; display: grid; place-items: center; overflow: hidden; color: white; font-family: var(--serif); font-size: 1.6rem; }
.order-line { display: flex; align-items: center; gap: 10px; margin: 10px 0; }
.checkout-total {
    margin: 14px 0 0;
    font-family: var(--serif);
    font-size: clamp(1.55rem, 3.2vw, 2.05rem);
    font-weight: 640;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: var(--ink);
}
.order-thumb { width: 52px; height: 52px; border-radius: 12px; font-size: 1.15rem; flex: 0 0 52px; }
.swatch img { width: 100%; height: 100%; object-fit: cover; }
.alert { border-radius: 16px; padding: 12px 14px; margin: 12px 0; transition: opacity .35s ease, transform .35s ease; }
.alert.is-gone { opacity: 0; transform: translateY(-6px); }
.alert-ok { background: var(--alert-ok-bg); color: var(--pine); }
.alert-err { background: var(--alert-err-bg); color: var(--danger); }
.alert ul { margin: 0; padding-left: 18px; }

.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); font-weight: 650; }
.row-actions { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.row-actions .btn-compact { padding: 6px 12px; font-size: 0.82rem; border-radius: 999px; }
.row-actions .btn-danger.btn-compact {
    background: transparent; color: #b42318; border-color: rgba(180, 35, 24, 0.28);
}
.row-actions .btn-danger.btn-compact:hover {
    background: #fef3f2; color: #912018; border-color: rgba(180, 35, 24, 0.4);
}
.order-list-ref { display: inline-flex; align-items: center; gap: 8px; font-weight: 650; }
.pay-dot {
    width: 10px; height: 10px; border-radius: 99px; flex: none;
    background: var(--pine); box-shadow: 0 0 0 3px color-mix(in srgb, var(--pine) 22%, transparent);
}

.pill { display: inline-flex; border-radius: 999px; padding: 4px 10px; background: var(--bg-deep); font-size: 0.8rem; font-weight: 650; }
.pill.ok { background: var(--alert-ok-bg); color: var(--pine); }
.pill.wait { background: var(--pill-wait-bg); color: var(--pill-wait-ink); }
.pill.bad { background: var(--alert-err-bg); color: var(--danger); }

.tracker { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin: 14px 0; }
.tracker-4 {
    display: flex; justify-content: space-between; align-items: stretch; gap: 10px;
    grid-template-columns: none;
}
.tracker-4 li { flex: 1; text-align: center; min-width: 0; }
.order-pay-row {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line);
}
.pay-ok { color: var(--pine); font-weight: 700; }
.pay-bad { color: var(--danger); font-weight: 700; }
.order-items { display: grid; gap: 10px; margin: 14px 0; }
.order-item {
    display: flex; align-items: center; gap: 10px; width: 100%;
    background: none; border: 0; padding: 0; text-align: left; cursor: pointer;
    color: inherit; font: inherit;
}
.order-item:hover span:last-child { color: var(--copper); }
.order-item-modal .swatch {
    width: 100%; height: min(280px, 48vw); border-radius: 18px; margin: 8px 0 14px;
}
.order-item-modal .swatch img { width: 100%; height: 100%; object-fit: cover; }
.order-item-modal .mark { font-size: 4rem; }
.checklist { display: grid; gap: 8px; margin: 12px 0 16px; }
.checklist label { display: flex; gap: 10px; align-items: center; background: var(--bg-deep); border-radius: 12px; padding: 10px 12px; }

.pack-page { display: grid; gap: 16px; width: 100%; max-width: none; }
.pack-title { padding-top: 4px; }
.pack-title h1 { font-size: clamp(1.7rem, 3vw, 2.2rem); }
.pack-meta {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    padding: 14px 16px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 18px;
}
.pack-meta > div { display: grid; gap: 2px; min-width: 0; }
.pack-meta strong { font-size: 0.98rem; line-height: 1.25; }
.pack-meta .muted { font-size: 0.86rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pack-desk { display: grid; gap: 4px; width: 100%; }
.pack-desk h2 { margin: 0; font-size: 1.55rem; }
.pack-desk-head {
    display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
    margin-bottom: 10px;
}
.pack-count {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 64px; padding: 8px 12px; border-radius: 999px;
    background: var(--bg-deep); font-weight: 700; font-size: 0.95rem;
}
.pack-count.ok { background: var(--alert-ok-bg); color: var(--pine); }
.pack-list { display: grid; gap: 10px; margin: 8px 0 4px; width: 100%; }
.pack-row {
    display: grid;
    grid-template-columns: 28px 72px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--bg-deep);
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color .2s ease, background .2s ease, transform .15s ease;
}
.pack-row:not(:has(.pack-check)) {
    grid-template-columns: 72px minmax(0, 1fr);
}
button.pack-row:hover { border-color: color-mix(in srgb, var(--copper) 45%, var(--line)); transform: translateY(-1px); }
.pack-row.done {
    border-color: color-mix(in srgb, var(--pine) 35%, var(--line));
    background: color-mix(in srgb, var(--alert-ok-bg) 55%, var(--card));
}
.pack-row.done .pack-info strong { text-decoration: line-through; opacity: 0.72; }
.pack-check {
    display: grid;
    place-items: center;
    width: 28px;
    min-width: 28px;
}
.pack-check input { width: 18px; height: 18px; accent-color: var(--pine); cursor: pointer; }
.pack-thumb,
.swatch.pack-thumb {
    width: 72px;
    height: 72px;
    min-width: 72px;
    max-width: 72px;
    border-radius: 14px;
    flex: none;
    display: grid;
    place-items: center;
    overflow: hidden;
    position: relative;
    z-index: 0;
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
}
.pack-thumb img,
.swatch.pack-thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.pack-info {
    display: grid;
    gap: 4px;
    min-width: 0;
    overflow: hidden;
}
.pack-info strong {
    font-size: 1.05rem;
    line-height: 1.25;
    overflow-wrap: anywhere;
    word-break: break-word;
}
.pack-info .muted {
    white-space: normal;
    overflow-wrap: anywhere;
}
.pack-actions {
    display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
    margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line);
}
.pack-actions .btn:disabled { opacity: 0.45; cursor: not-allowed; }
.tracker li { list-style: none; background: var(--bg-deep); border-radius: 14px; padding: 10px; font-size: 0.85rem; font-weight: 650; }
.tracker li.done { background: var(--pine); color: white; }
.tracker li.current { background: var(--copper); color: white; }
.bar { height: 8px; background: var(--bg-deep); border-radius: 99px; overflow: hidden; margin-bottom: 16px; }
.bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--copper), var(--pine)); }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.timeline li { display: grid; grid-template-columns: 16px 1fr; gap: 12px; }
.timeline li::before { content: ""; width: 12px; height: 12px; border-radius: 99px; background: var(--copper); margin-top: 4px; }
.timeline li > div { display: grid; gap: 4px; }
.timeline strong { display: block; }
.timeline time, .timeline span { display: block; color: var(--muted); font-size: 0.88rem; }

.code-hero { font-family: var(--serif); font-size: clamp(2rem, 5vw, 3.4rem); letter-spacing: 0.06em; }

.footer {
    margin-top: 48px;
    padding: 36px 0 calc(48px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    gap: 18px;
    color: var(--muted);
}
.footer strong { color: var(--ink); }
@media (min-width: 721px) {
    main.wrap {
        padding-top: calc(96px + env(safe-area-inset-top, 0px));
        padding-bottom: 40px;
    }
    .footer {
        margin-top: 72px;
        padding: 48px 0 80px;
    }
}

.auth-shell { min-height: 100vh; display: grid; place-items: center; padding: 32px 16px; }
.auth-card { width: min(460px, 100%); display: grid; gap: 12px; }
.auth-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.auth-top-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.auth-card h1 { font-size: 2.4rem; }
.auth-switch { text-align: center; }
.otp-boxes { letter-spacing: 0.4em; font-size: 1.4rem; text-align: center; }

.admin {
    min-height: 100vh; display: grid; grid-template-columns: 250px minmax(0, 1fr); align-items: start;
    background: var(--bg); color: var(--ink);
    transition: grid-template-columns 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}
html[data-admin-sidebar="collapsed"] .admin { grid-template-columns: 76px minmax(0, 1fr); }
html:not([data-theme="dark"]) .admin,
html:not([data-theme="dark"]) .admin-main {
    background: #f5f7fa;
    color: #17202a;
}
html:not([data-theme="dark"]) .sidebar {
    background: #ffffff;
    color: #17202a;
}
html:not([data-theme="dark"]) .sidebar .logo {
    background: #d3541a;
    color: #ffffff;
}
.sidebar { position: sticky; top: 0; z-index: 5; height: 100vh; max-height: 100vh; overflow: hidden; align-self: start;
    background: var(--sidebar); color: var(--sidebar-ink); border-right: 1px solid var(--line);
    padding: 22px 16px; display: flex; flex-direction: column; gap: 18px;
    transition: padding 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}
.side-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; transition: gap 0.38s cubic-bezier(0.22, 1, 0.36, 1), flex-direction 0s linear 0.24s; }
.side-head .brand { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 0; }
.side-head .brand > span:not(.logo),
.sidebar .side-nav span,
.side-foot .btn span {
    min-width: 0; overflow: hidden; white-space: nowrap; max-width: 170px; opacity: 1;
    transition: max-width 0.38s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.22s ease, margin 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}
.sidebar a { color: inherit; text-decoration: none; display: block; padding: 10px 12px; border-radius: 12px; }
.sidebar .side-nav a {
    display: flex; align-items: center; gap: 10px;
    transition: padding 0.38s cubic-bezier(0.22, 1, 0.36, 1), gap 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}
.sidebar .side-nav svg { width: 18px; height: 18px; flex: none; }
[data-sidebar-toggle] { display: inline-grid; }
[data-sidebar-toggle] .when-open,
[data-sidebar-toggle] .when-closed { grid-area: 1 / 1; transition: opacity 0.25s ease; }
[data-sidebar-toggle] .when-closed,
.side-foot .when-closed { opacity: 0; }
.side-foot .btn { position: relative; }
.side-foot .when-closed { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
html[data-admin-sidebar="collapsed"] [data-sidebar-toggle] .when-open { opacity: 0; }
html[data-admin-sidebar="collapsed"] [data-sidebar-toggle] .when-closed,
html[data-admin-sidebar="collapsed"] .side-foot .when-closed { opacity: 1; }
html[data-admin-sidebar="collapsed"] .sidebar { padding: 16px 10px; align-items: center; }
html[data-admin-sidebar="collapsed"] .side-head { flex-direction: column; gap: 10px; }
html[data-admin-sidebar="collapsed"] .side-head .brand > span:not(.logo),
html[data-admin-sidebar="collapsed"] .sidebar .side-nav span,
html[data-admin-sidebar="collapsed"] .side-foot .btn span { max-width: 0; opacity: 0; margin: 0; }
html[data-admin-sidebar="collapsed"] .sidebar .side-nav a { justify-content: center; gap: 0; padding: 10px; }
html[data-admin-sidebar="collapsed"] .side-foot { flex-direction: column; }
html[data-admin-sidebar="collapsed"] .sidebar form button.btn.btn-danger {
    width: 40px; height: 40px; padding: 0;
}
@media (prefers-reduced-motion: reduce) {
    .admin, .sidebar, .side-head, .sidebar .side-nav a, .side-head .brand > span:not(.logo), .sidebar .side-nav span, .side-foot .btn, .side-foot .btn span, [data-sidebar-toggle] .when-open, [data-sidebar-toggle] .when-closed {
        transition: none;
    }
}
.sidebar a.active, .sidebar a:hover { background: var(--sidebar-hover); }
.sidebar .brand strong, .sidebar .brand small { color: inherit; }
.side-foot { display: flex; align-items: center; gap: 8px; margin-top: auto; transition: flex-direction 0s linear 0.24s; }
.side-foot form { flex: 1; min-width: 0; }
.side-foot .btn { width: 100%; transition: width 0.38s cubic-bezier(0.22, 1, 0.36, 1), height 0.38s cubic-bezier(0.22, 1, 0.36, 1), padding 0.38s cubic-bezier(0.22, 1, 0.36, 1); }
.side-foot .btn-danger,
html:not([data-theme="dark"]) .sidebar .btn.btn-danger,
html[data-theme="dark"] .sidebar .btn.btn-danger {
    background: #c62828; border-color: #c62828; color: #fff;
}
.side-foot .btn-danger:hover,
html:not([data-theme="dark"]) .sidebar .btn.btn-danger:hover,
html[data-theme="dark"] .sidebar .btn.btn-danger:hover {
    background: #9f1f1f; border-color: #9f1f1f; color: #fff;
}
.side-nav { display: grid; gap: 4px; }
.admin-main { padding: 22px; background: transparent; color: inherit; }
.admin-app { height: 100vh; overflow: hidden; }
.admin-app .admin-main { height: 100vh; min-height: 0; overflow: hidden; display: flex; flex-direction: column; padding: 0; }
.content-head {
    flex: none; padding: 14px 22px; border-bottom: 1px solid var(--line);
    background: var(--bg);
}
.content-tools { display: flex; align-items: center; gap: 14px; }
.content-tools #admin-header { flex: 1; min-width: 0; }
.content-tools .icon-btn { flex: none; }
html:not([data-theme="dark"]) .content-head { background: #f5f7fa; }
.content-head .page-head { padding: 0; align-items: center; }
.content-head .page-head h1 { font-size: 1.7rem; margin: 0; }
.content-head .kicker { margin: 0 0 2px; }
.content-head .hero-actions { margin-top: 0; align-items: center; }
.admin-scroll { flex: 1; min-height: 0; overflow: auto; padding: 18px 22px 32px; }
.settings-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.9fr);
    gap: 16px;
    align-items: start;
    max-width: 1180px;
}
.settings-card {
    min-width: 0;
    width: 100%;
}
.settings-card-head h2 {
    margin: 0 0 4px;
    font-size: clamp(1.2rem, 2vw, 1.45rem);
}
.settings-card-head .muted { margin: 0; }
.settings-fields { display: grid; gap: 14px; }
.settings-group { display: grid; gap: 10px; }
.settings-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}
.settings-row-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.pay-board { margin-bottom: 16px; grid-template-columns: repeat(3, 1fr); }
.pay-board.pay-board-2 { grid-template-columns: repeat(2, minmax(0, 360px)); }
.stat-solde {
    border: 1.5px solid color-mix(in srgb, var(--pine) 45%, var(--line));
    background: color-mix(in srgb, var(--alert-ok-bg) 70%, var(--card));
    display: grid; gap: 8px; align-content: start;
}
.stat-solde .solde-hint { color: var(--pine); font-weight: 650; font-size: 0.82rem; }
.stat-solde .btn { margin-top: 4px; }
.solde-moves { list-style: none; margin: 2px 0 0; padding: 0; display: grid; gap: 4px; }
.solde-moves li {
    display: flex; justify-content: space-between; gap: 10px;
    font-size: 0.78rem; font-weight: 600; color: var(--muted);
}
.solde-moves li.in { color: var(--pine); }
.solde-moves li.out { color: var(--danger); }
.solde-moves time { font-weight: 500; opacity: 0.85; }
.solde-moves .empty-move { justify-content: flex-start; font-weight: 500; }
.payout-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.payout-form input, .payout-form select {
    width: 190px; border: 1px solid var(--line); background: var(--input-bg); color: var(--ink);
    border-radius: 14px; padding: 10px 12px;
}
.stat b { display: block; font-family: var(--serif); font-size: 1.7rem; margin-top: 6px; }
.chart { display: flex; align-items: end; gap: 10px; height: 140px; }
.chart .col { flex: 1; display: flex; flex-direction: column; justify-content: end; align-items: center; height: 100%; gap: 6px; }
.chart .col i { display: block; width: 100%; border-radius: 10px 10px 4px 4px; background: var(--copper); min-height: 4px; }
.chart small { color: var(--muted); font-size: 0.75rem; }
.desk-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.desk-actions button { flex: 1; }
.scan-live { display: grid; gap: 10px; margin-top: 8px; }
.scan-live[hidden] { display: none; }
.scan-live video { width: 100%; max-height: 260px; border-radius: 16px; background: #111; object-fit: cover; }

.pager { display: flex; gap: 12px; align-items: center; margin-top: 16px; }
.pager a { text-decoration: none; font-weight: 650; }
.pager .off { color: var(--muted); }

.label-sheet { width: min(720px, calc(100% - 32px)); margin: 24px auto; background: white; border: 2px solid var(--ink); border-radius: 18px; padding: 24px; }
.bars { display: flex; align-items: end; gap: 3px; height: 70px; margin-top: 12px; }
.bars i { display: block; width: 6px; background: var(--ink); }

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

body.modal-open { overflow: hidden; }
.modal-back {
    position: fixed; inset: 0; z-index: 80; display: grid; place-items: center;
    padding: 16px; background: rgba(16, 20, 26, .46);
}
.modal-back[hidden] { display: none; }
.admin-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.admin-tools .search { margin: 0; }
.admin-tools .search input { width: 220px; }
.prod-name { display: flex; align-items: center; gap: 10px; }
.thumb {
    width: 42px; height: 42px; border-radius: 10px; object-fit: cover; flex: none;
    background: var(--line);
}
.thumb-letter {
    display: inline-grid; place-items: center; font-weight: 700; color: #fff; background: var(--copper);
}
.modal {
    width: min(480px, 100%); max-height: min(92vh, 760px); overflow: auto;
    background: var(--card); color: var(--ink); border-radius: 22px; padding: 22px;
    box-shadow: 0 24px 60px rgba(16, 20, 26, .22);
}
.modal.modal-wide { width: min(680px, 100%); }
.modal-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; }
.modal-head h2 { font-size: 1.7rem; }
.cancel-order { display: inline-flex; }
.modal-confirm { display: grid; gap: 4px; }
.cancel-mark {
    width: 46px; height: 46px; border-radius: 16px; display: grid; place-items: center;
    background: var(--alert-err-bg); color: var(--danger); margin-bottom: 8px;
}
.cancel-facts {
    display: grid; gap: 10px; margin: 16px 0 18px; padding: 14px;
    border: 1px solid var(--line); border-radius: 16px; background: var(--bg-deep);
}
.cancel-facts div { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.cancel-facts dt { color: var(--muted); font-weight: 550; }
.cancel-facts dd { margin: 0; font-weight: 650; text-align: right; }
.cancel-facts .prices { justify-items: end; }
.modal-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.modal-actions .btn { flex: 1; min-width: 140px; }
.quick-switch { margin-top: 14px; }
.quick-switch button {
    background: none; border: 0; padding: 0; color: var(--copper); font-weight: 650; cursor: pointer;
}

@media (max-width: 1100px) {
    .settings-layout { grid-template-columns: 1fr; }
    .settings-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
    .stats, .trust { grid-template-columns: 1fr 1fr; }
    .hero, .product-layout, .layout-2, .spotlight { grid-template-columns: 1fr; }
    [data-cart] .summary { order: -1; }
    .content-head { padding: 12px 14px; }
    .admin-scroll { padding: 14px 14px 28px; }
    .content-head .page-head {
        flex-wrap: wrap;
        gap: 10px;
        align-items: flex-start;
    }
    .content-head .page-head h1 { font-size: 1.35rem; }
    .admin-tools { width: 100%; justify-content: flex-start; }
    .admin-tools .search input { width: min(100%, 220px); }
}
@media (max-width: 900px) {
    .pack-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .settings-row,
    .settings-row-2 { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
    .header {
        flex-wrap: nowrap;
        position: fixed;
    }
    .header-actions { display: inline-flex; }
    .nav-toggle { display: inline-flex; }
    .nav-quick-label { display: none; }
    .nav {
        display: flex;
        position: absolute;
        top: calc(100% + 8px);
        left: 12px;
        right: 12px;
        width: auto;
        flex-basis: auto;
        order: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        z-index: 40;
        margin: 0;
        padding: 0 14px;
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        pointer-events: none;
        border: 1px solid transparent;
        border-radius: 18px;
        background: var(--card);
        box-shadow: var(--shadow);
        transform: translateY(-8px);
        transition:
            max-height 0.38s cubic-bezier(0.22, 1, 0.36, 1),
            opacity 0.28s ease,
            transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
            padding 0.32s ease,
            border-color 0.28s ease;
    }
    .nav.open {
        max-height: 420px;
        opacity: 1;
        pointer-events: auto;
        padding: 14px;
        border-color: var(--line);
        transform: translateY(0);
    }
    .nav.open .icon-cluster { align-self: flex-start; }
    .nav-search.is-open { position: static; width: 100%; margin-top: 8px; }
    .nav-search input { width: 100%; }
    main.wrap {
        padding-top: calc(96px + env(safe-area-inset-top, 0px));
        padding-bottom: 32px;
    }
    .stats, .trust, .tracker:not(.tracker-4) { grid-template-columns: 1fr; }
    .tracker-4 { gap: 6px; }
    .tracker-4 li { padding: 8px 6px; font-size: 0.78rem; }
    .admin-app,
    .admin-app .admin-main { height: 100dvh; }
    .content-tools { gap: 8px; }
    .content-head .page-head h1 { font-size: 1.2rem; }
    .panel { padding: 14px; }
    .modal { width: min(100%, 480px); padding: 16px; border-radius: 18px; }
    .modal-actions .btn { min-width: 0; }
    .row-actions { gap: 6px; }
    .footer {
        flex-direction: column;
        margin-top: 40px;
        padding: 28px 0 calc(40px + env(safe-area-inset-bottom, 0px));
    }
    .line { grid-template-columns: 64px 1fr; }
    .line-side { grid-column: 2; justify-items: start; text-align: left; }
    .line-side .prices { justify-items: start; }
    .pack-meta { grid-template-columns: 1fr; }
    .pack-row {
        grid-template-columns: 24px 64px minmax(0, 1fr);
        gap: 10px;
        padding: 10px 12px;
    }
    .pack-row:not(:has(.pack-check)) {
        grid-template-columns: 64px minmax(0, 1fr);
    }
    .pack-check { width: 24px; min-width: 24px; }
    .pack-thumb,
    .swatch.pack-thumb {
        width: 64px;
        height: 64px;
        min-width: 64px;
        max-width: 64px;
        border-radius: 12px;
    }
}
/* Achat rapide (hors boutique) */
.quick-shell {
    min-height: 100vh;
    background:
        radial-gradient(circle at 12% 0%, rgba(211, 84, 26, 0.12), transparent 36%),
        radial-gradient(circle at 88% 8%, rgba(29, 74, 56, 0.1), transparent 32%),
        linear-gradient(180deg, var(--bg-deep), var(--bg) 42%);
}
.quick-top {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 14px max(16px, calc((100% - 920px) / 2));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: color-mix(in srgb, var(--bg) 97%, transparent);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
}
.quick-top-links {
    display: flex;
    align-items: center;
    gap: 14px;
}
.quick-link {
    color: var(--muted);
    font-weight: 650;
    text-decoration: none;
    font-size: 0.92rem;
}
.quick-main {
    max-width: 920px;
    margin: 0 auto;
    padding: calc(96px + env(safe-area-inset-top, 0px)) 16px 160px;
}
.quick-page {
    padding-bottom: 150px;
}
.quick-page-pay {
    padding-bottom: 240px;
}
.paylink-page.quick-page-pay {
    padding-bottom: 240px;
}
.paylink-hero h1 {
    font-size: clamp(1.55rem, 4.2vw, 2.2rem);
    color: var(--copper);
}
.paylink-price {
    display: inline-flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.paylink-compare {
    color: var(--danger);
    font-weight: 550;
    text-decoration: line-through;
}
.paylink-now {
    color: var(--pine);
}
.quick-field select {
    width: 100%;
    border: 1px solid var(--line);
    background: var(--input-bg);
    color: var(--ink);
    border-radius: 16px;
    padding: 16px 14px;
    font-size: 1.15rem;
}
.admin-cat-bar {
    display: grid;
    gap: 10px;
    margin: 4px 0 14px;
}
.admin-cat-bar .quick-tabs {
    margin-bottom: 0;
    padding-bottom: 0;
}
.admin-cat-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.quick-hero {
    margin: 4px 0 18px;
}
.quick-hero h1 {
    font-family: var(--serif);
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1.05;
    margin: 4px 0 8px;
}
.quick-paylinks {
    margin: 0 0 18px;
}
.quick-paylinks > .kicker {
    margin-bottom: 8px;
}
.quick-paylinks-rail {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    padding: 2px 2px 10px;
    margin: 0 -2px;
}
.quick-paylink-card {
    flex: 0 0 auto;
    width: min(158px, 42vw);
    scroll-snap-align: start;
    text-decoration: none;
    color: inherit;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 18px;
    overflow: hidden;
    display: grid;
    transition: transform 0.18s ease, border-color 0.18s ease;
}
.quick-paylink-card:hover {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--copper) 45%, var(--line));
}
.quick-paylink-photo {
    aspect-ratio: 1;
    background: var(--bg-deep);
    display: grid;
    place-items: center;
    overflow: hidden;
}
.quick-paylink-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.quick-paylink-photo span {
    font-family: var(--serif);
    font-size: 2rem;
    color: var(--copper);
}
.quick-paylink-copy {
    padding: 10px 12px 12px;
    display: grid;
    gap: 2px;
    min-width: 0;
}
.quick-paylink-copy strong {
    font-size: 0.92rem;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.quick-paylink-price {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--pine);
}
.quick-block {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 18px;
    margin-bottom: 14px;
    box-shadow: var(--shadow);
}
.quick-block h2 {
    margin: 0 0 14px;
    font-size: 1.15rem;
}
.quick-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0 2px 12px;
    margin-bottom: 2px;
}
.quick-tabs::-webkit-scrollbar { display: none; }
.quick-tab {
    flex: 0 0 auto;
    border: 1px solid var(--line);
    background: var(--card);
    color: var(--ink);
    border-radius: 999px;
    padding: 10px 16px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    white-space: nowrap;
}
.quick-tab.on {
    background: var(--ink);
    color: var(--logo-ink);
    border-color: var(--ink);
}
.quick-back {
    margin-bottom: 14px;
}
.quick-summary {
    display: grid;
    gap: 10px;
}
.quick-summary > div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: baseline;
}
.quick-summary-total {
    margin-top: 4px;
    padding-top: 10px;
    border-top: 1px solid var(--line);
    font-size: 1.05rem;
}
.quick-products {
    display: grid;
    gap: 10px;
}
.quick-product {
    display: grid;
    grid-template-columns: 72px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: var(--bg-deep);
}
.quick-product.on {
    border-color: color-mix(in srgb, var(--copper) 55%, var(--line));
    background: color-mix(in srgb, var(--copper) 8%, var(--card));
}
.quick-thumb {
    width: 72px;
    height: 72px;
    border-radius: 16px;
    overflow: hidden;
    background: var(--card);
    display: grid;
    place-items: center;
    font-family: var(--serif);
    font-size: 1.6rem;
}
.quick-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.quick-product-body h3 {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.25;
}
.quick-price {
    margin: 4px 0 0;
    font-weight: 750;
    color: var(--copper-deep);
}
.quick-stepper {
    display: grid;
    grid-template-columns: 44px 56px 44px;
    align-items: center;
    gap: 4px;
}
.quick-stepper button {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: var(--card);
    color: var(--ink);
    font-size: 1.4rem;
    font-weight: 700;
    cursor: pointer;
}
.quick-qty {
    width: 56px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--card);
    color: var(--ink);
    text-align: center;
    font-size: 1.1rem;
    font-weight: 750;
    padding: 0;
    -moz-appearance: textfield;
}
.quick-qty::-webkit-outer-spin-button,
.quick-qty::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.quick-fields {
    display: grid;
    gap: 12px;
}
.quick-field {
    display: grid;
    gap: 6px;
}
.quick-field span {
    font-weight: 700;
}
.quick-field input {
    width: 100%;
    border: 1px solid var(--line);
    background: var(--input-bg);
    color: var(--ink);
    border-radius: 16px;
    padding: 16px 14px;
    font-size: 1.15rem;
    scroll-margin-top: calc(100px + env(safe-area-inset-top, 0px));
}
.quick-field small {
    color: var(--muted);
}
.quick-bureaus {
    display: grid;
    gap: 10px;
}
.quick-bureau {
    text-align: left;
    border: 1px solid var(--line);
    background: var(--bg-deep);
    color: var(--ink);
    border-radius: 18px;
    padding: 16px;
    cursor: pointer;
    display: grid;
    gap: 4px;
}
.quick-bureau.on {
    border-color: var(--pine);
    background: color-mix(in srgb, var(--pine) 10%, var(--card));
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--pine) 35%, transparent);
}
.quick-bureau strong {
    font-size: 1.1rem;
}
.quick-bureau span {
    color: var(--muted);
}
.quick-paybar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--card) 92%, transparent);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--line);
    display: grid;
    gap: 10px;
}
.quick-total {
    max-width: 920px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px 14px;
}
.quick-total b {
    font-size: 1.35rem;
}
.quick-total small {
    color: var(--muted);
}
.quick-pay-actions {
    max-width: 920px;
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.quick-pay-btn {
    min-height: 54px;
    font-size: 1.05rem;
    border-radius: 16px;
}
.quick-pin-back {
    z-index: 80;
}
.quick-pin-modal {
    text-align: center;
    display: grid;
    gap: 14px;
    justify-items: center;
    max-width: 380px;
    width: min(92vw, 380px);
    padding: 28px 22px;
}
.quick-pin-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: color-mix(in srgb, var(--pine) 14%, var(--card));
    color: var(--pine);
    font-size: 1.8rem;
    font-weight: 700;
    position: relative;
}
.quick-pin-icon.failed {
    background: color-mix(in srgb, #b42318 14%, var(--card));
    color: #b42318;
}
.quick-pin-icon.success {
    background: color-mix(in srgb, #067647 14%, var(--card));
    color: #067647;
}
.quick-pin-icon.patience {
    background: color-mix(in srgb, var(--pine) 10%, var(--card));
}
.quick-pin-pulse {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 45%, transparent);
    animation: quick-pin-pulse 1.6s ease-out infinite;
}
.quick-pin-actions {
    display: grid;
    gap: 10px;
    margin-top: 8px;
}
.quick-pin-actions .btn {
    width: 100%;
}
.quick-pin-message {
    margin: 0;
    color: var(--muted);
    line-height: 1.45;
    max-width: 30ch;
}
.quick-pin-timer {
    margin: 0;
    display: grid;
    justify-items: center;
}
.quick-pin-count {
    font-size: 2.6rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    letter-spacing: -0.03em;
}
.quick-pin-patience {
    display: grid;
    gap: 10px;
    justify-items: center;
}
.quick-pin-patience small {
    color: var(--muted);
}
.quick-pin-dots {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    height: 14px;
}
.quick-pin-dots i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--pine);
    opacity: 0.35;
    animation: quick-pin-dot 1.2s ease-in-out infinite;
}
.quick-pin-dots i:nth-child(2) { animation-delay: 0.15s; }
.quick-pin-dots i:nth-child(3) { animation-delay: 0.3s; }
@keyframes quick-pin-pulse {
    0% { transform: scale(0.85); box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 40%, transparent); }
    70% { transform: scale(1); box-shadow: 0 0 0 16px transparent; }
    100% { transform: scale(0.85); box-shadow: 0 0 0 0 transparent; }
}
@keyframes quick-pin-dot {
    0%, 80%, 100% { opacity: 0.28; transform: translateY(0); }
    40% { opacity: 1; transform: translateY(-3px); }
}
.quick-hint {
    max-width: 920px;
    margin: 0 auto;
    text-align: center;
    font-size: 0.88rem;
}
@media (min-width: 820px) {
    .quick-products {
        grid-template-columns: 1fr 1fr;
    }
    .quick-bureaus {
        grid-template-columns: 1fr 1fr;
    }
    .quick-paybar {
        padding-left: 24px;
        padding-right: 24px;
    }
}
@media (max-width: 560px) {
    .quick-product {
        grid-template-columns: 64px 1fr;
    }
    .quick-stepper {
        grid-column: 1 / -1;
        justify-content: end;
    }
    .quick-pay-actions {
        grid-template-columns: 1fr;
    }
    .quick-page {
        padding-bottom: 170px;
    }
    .quick-page-pay,
    .paylink-page.quick-page-pay {
        padding-bottom: 300px;
    }
    .quick-main {
        padding-top: calc(96px + env(safe-area-inset-top, 0px));
        padding-bottom: 180px;
    }
}

@media print {
    .topbar, .header, .footer, .no-print { display: none !important; }
    body { background: white; }
}
