:root {
    --bg: #f4f1eb;
    --surface: #fff;
    --ink: #141820;
    --muted: #667085;
    --line: #e6e1d8;
    --cta: #e85d04;
    --navy: #121820;
    --ok: #157a45;
    --danger: #b42318;
    --radius: 18px;
    --shadow: 0 16px 40px rgba(18, 24, 32, 0.06);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: "Segoe UI", system-ui, sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.5;
    padding-bottom: 76px;
}
img { max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button, .cta, .card button, .filter-open {
    min-height: 44px;
    border-radius: 12px;
    border: 0;
    background: var(--cta);
    color: #fff;
    padding: 0 16px;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}
button.text { background: transparent; color: var(--muted); padding: 0; min-height: 32px; font-weight: 600; }
button:disabled { opacity: .45; cursor: not-allowed; }
input, select, textarea {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 10px 12px;
    background: #fff;
    font-size: 16px;
}
textarea { min-height: 96px; }
:focus-visible { outline: 3px solid var(--cta); outline-offset: 2px; }
.sr-only, .hp {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}
.skip { position: absolute; left: 8px; top: -40px; background: #fff; padding: 8px; z-index: 5; }
.skip:focus { top: 8px; }
.announce { background: var(--navy); color: #f6f1e8; text-align: center; padding: 9px 16px; font-size: 13px; letter-spacing: .01em; }
.shell { width: min(1180px, calc(100% - 32px)); margin-inline: auto; }
.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 8px 24px rgba(18, 24, 32, .04);
}
.header-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
}
.logo { display: flex; gap: 10px; align-items: center; text-decoration: none; margin-right: auto; }
.logo img { width: 44px; height: 44px; display: block; }
.logo strong { display: block; font-size: 17px; letter-spacing: -0.03em; line-height: 1.1; }
.logo small { color: var(--muted); font-size: 12px; }
.search { position: relative; flex: 1 1 100%; order: 3; }
.search input {
    border: 0;
    background: #efeae3;
    border-radius: 999px;
    min-height: 48px;
    padding: 0 92px 0 18px;
}
.search button {
    position: absolute;
    right: 6px;
    top: 6px;
    min-height: 36px;
    height: 36px;
    border-radius: 999px;
    background: var(--navy);
    padding: 0 16px;
}
.cart-link {
    order: 2;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    background: var(--navy);
    color: #fff;
    border-radius: 999px;
    padding: 8px 10px 8px 12px;
    font-weight: 700;
    font-size: 14px;
}
.cart-link svg { width: 18px; height: 18px; }
.cart-link b {
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--cta);
    display: grid;
    place-items: center;
    font-size: 12px;
}
.main-nav { display: none; background: #fff; border-top: 1px solid var(--line); }
.nav-row { display: flex; gap: 2px; align-items: stretch; }
.nav-item { position: relative; }
.nav-item > a { text-decoration: none; font-weight: 650; padding: 14px 12px; display: inline-block; font-size: 14px; }
.nav-item > a:hover { color: var(--cta); }
.nav-sub {
    display: none;
    position: absolute;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    min-width: 220px;
    padding: 8px;
    box-shadow: var(--shadow);
    z-index: 30;
}
.nav-sub a { display: block; padding: 8px 10px; text-decoration: none; border-radius: 8px; }
.nav-sub a:hover { background: #f6f3ee; }
.nav-item:hover .nav-sub, .nav-item:focus-within .nav-sub { display: block; }
main.shell { padding-top: 22px; padding-bottom: 56px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.03em; }
.hero {
    display: grid;
    gap: 22px;
    background: #121820;
    color: #fff;
    border-radius: 28px;
    padding: 28px 22px;
    margin-bottom: 8px;
}
.eyebrow { letter-spacing: .14em; text-transform: uppercase; font-size: 12px; margin: 0 0 10px; color: #f0b48a; }
.hero h1 { font-size: 36px; margin: 0 0 12px; font-weight: 750; }
.hero-copy > p:last-of-type { margin: 0; color: #d5dbe3; max-width: 38ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.cta.ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.35); }
.hero-shot {
    display: grid;
    background: #f6f3ee;
    color: var(--ink);
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
}
.hero-shot img { width: 100%; aspect-ratio: 1.15; object-fit: contain; background: #f6f3ee; }
.hero-shot span { display: grid; gap: 2px; padding: 14px 16px 16px; }
.hero-shot small { color: var(--muted); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }
.hero-shot strong { font-size: 15px; line-height: 1.3; }
.hero-shot b { color: var(--cta); font-size: 18px; margin-top: 4px; }
.band { margin: 34px 0; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 0 0 14px; }
.section-head h2 { margin: 0; font-size: 26px; }
.section-head a { color: var(--cta); font-weight: 700; text-decoration: none; font-size: 14px; white-space: nowrap; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tile {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    min-height: 112px;
    padding: 16px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 6px;
    box-shadow: var(--shadow);
}
.tile strong { font-size: 16px; letter-spacing: -0.02em; }
.tile span { color: var(--muted); font-size: 13px; }
.scale-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.scale-row a {
    text-decoration: none;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 650;
}
.grid, .trust, .cat-list { display: grid; gap: 14px; }
.grid { grid-template-columns: 1fr 1fr; }
.card {
    background: var(--surface);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--line);
}
@media (hover: hover) {
    .card, .tile, .hero-shot { transition: transform .2s ease, box-shadow .2s ease; }
    .card:hover, .tile:hover { transform: translateY(-3px); box-shadow: 0 18px 36px rgba(18, 24, 32, .1); }
}
.card-media { position: relative; background: #f7f4ef; aspect-ratio: 1; display: grid; place-items: center; }
.card-media img { width: 100%; height: 100%; object-fit: contain; }
.card-body { padding: 12px 12px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card h3 { font-size: 14px; margin: 0; min-height: 2.6em; font-weight: 650; }
.card h3 a {
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.card .brand { text-transform: uppercase; letter-spacing: .08em; font-size: 11px; font-weight: 750; }
.brand, .meta, .sku, .note, .fine, .count { color: var(--muted); margin: 0; font-size: 13px; }
.meta i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 6px; background: var(--ok); vertical-align: middle; }
.meta i.out { background: var(--danger); }
.price { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; margin: 0; }
.price strong { font-size: 16px; letter-spacing: -0.02em; }
.price s { color: var(--muted); }
.badge { position: absolute; top: 10px; left: 10px; background: var(--navy); color: #fff; border-radius: 999px; padding: 4px 8px; font-size: 12px; font-weight: 700; }
.badge.sale { left: auto; right: 10px; background: var(--cta); }
.card form { margin-top: auto; display: flex; gap: 8px; align-items: center; }
.card form input[type="number"] { width: 52px; text-align: center; padding: 0 4px; border-radius: 12px; }
.card form button { flex: 1; border-radius: 12px; }
.ph { display: grid; place-items: center; width: 100%; height: 100%; font-weight: 700; }
.trust { grid-template-columns: 1fr 1fr; margin: 8px 0 12px; }
.trust article { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
.trust strong { display: block; margin-bottom: 4px; }
.trust span { color: var(--muted); font-size: 13px; }
.listing { display: grid; gap: 16px; }
.filters { display: none; background: #fff; border-radius: var(--radius); padding: 16px; border: 1px solid var(--line); }
.filter-toggle { position: absolute; opacity: 0; }
.filter-toggle:checked ~ .filters, .filter-toggle:focus ~ .filters { display: grid; }
.filter-open { margin-bottom: 8px; background: #fff; color: var(--ink); border: 1px solid var(--line); }
.filters label, .stack label, .login label { display: grid; gap: 6px; margin-bottom: 10px; }
.filters fieldset { border: 0; padding: 0; margin: 0 0 10px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; color: var(--muted); font-size: 13px; margin-bottom: 14px; }
.crumbs a { text-decoration: none; }
.product { display: grid; gap: 18px; }
.gallery { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 12px; display: grid; gap: 12px; }
.gallery-viewport { position: relative; overflow: hidden; border-radius: 18px; background: #f7f4ef; }
.gallery-track { display: flex; transition: transform .35s ease; touch-action: pan-y; }
.gallery-track img { width: 100%; flex: 0 0 100%; aspect-ratio: 1; object-fit: contain; background: #f7f4ef; }
.gallery-nav {
    position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; padding: 0;
    border-radius: 999px; background: #fff; color: var(--navy); box-shadow: var(--shadow);
}
.gallery-nav svg { width: 22px; height: 22px; }
.gallery-prev { left: 10px; }
.gallery-next { right: 10px; }
.gallery-status {
    position: absolute; left: 12px; bottom: 12px; margin: 0; background: rgba(18, 24, 32, .78);
    color: #fff; border-radius: 999px; padding: 4px 10px; font-size: 13px;
}
.gallery-thumbs { display: flex; gap: 8px; overflow-x: auto; }
.gallery-thumb { width: 76px; height: 76px; padding: 4px; background: #f7f4ef; border: 2px solid transparent; border-radius: 14px; flex: 0 0 auto; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: contain; }
.gallery-thumb[aria-current="true"] { border-color: var(--navy); }
.buy {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 22px 20px 18px;
    box-shadow: var(--shadow);
}
.buy-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.buy .brand { color: var(--cta); text-decoration: none; text-transform: uppercase; letter-spacing: .1em; font-size: 12px; font-weight: 750; }
.buy h1 { font-size: 28px; margin: 10px 0 8px; }
.buy .price { margin: 14px 0 16px; }
.buy .price strong { font-size: 32px; }
.stock { margin: 0; font-size: 12px; font-weight: 750; background: #e7f6ee; color: var(--ok); padding: 5px 10px; border-radius: 999px; }
.stock.out { background: #fdecec; color: var(--danger); }
.buy-form, .stack, .line form { display: flex; gap: 8px; align-items: end; }
.buy-form { display: grid; gap: 12px; }
.buy-form label { display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
.buy-form input[type="number"] { max-width: 120px; }
.buy-form .cta { width: 100%; min-height: 52px; border-radius: 14px; font-size: 16px; }
.buy .note { margin-top: 12px; }
.drawer[hidden] { display: none; }
.drawer { position: fixed; inset: 0; z-index: 60; background: rgba(18, 24, 32, .46); display: grid; justify-content: end; }
.drawer-panel {
    width: min(420px, 100%); height: 100%; background: #fff; padding: 20px;
    display: flex; flex-direction: column; gap: 16px; box-shadow: -16px 0 40px rgba(18, 24, 32, .18);
}
.drawer-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.drawer-head h2 { margin: 0; font-size: 20px; }
.drawer-close { background: var(--navy); }
.drawer-body { flex: 1; overflow: auto; }
.drawer-item { display: grid; grid-template-columns: 96px 1fr; gap: 12px; align-items: center; }
.drawer-item img { width: 96px; height: 96px; object-fit: contain; background: #f7f4ef; border-radius: 14px; }
.drawer-item p, .drawer-total { margin: 4px 0 0; color: var(--muted); }
.drawer-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.drawer-secondary {
    min-height: 48px; border-radius: 14px; border: 1px solid var(--line); display: grid; place-items: center;
    text-decoration: none; background: #fff; font-weight: 700;
}
body.drawer-open { overflow: hidden; }
.copy, .summary, .success { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 20px; }
article.product ~ section { margin-top: 28px; }
article.product ~ section > h2, .copy h2, .summary h2 { margin: 0 0 12px; font-size: 22px; }
.copy p { max-width: 72ch; }
.copy img { border-radius: 12px; }
details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; margin: 0 0 8px; }
details summary { cursor: pointer; font-weight: 700; }
.specs { width: 100%; border-collapse: collapse; background: #fff; border-radius: 16px; overflow: hidden; }
.specs th, .specs td, table th, table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs th { width: 34%; color: var(--muted); font-weight: 650; }
table { width: 100%; border-collapse: collapse; background: #fff; }
.banner { background: #e7f6ee; border-radius: 12px; padding: 12px; }
.banner.error, .error { color: var(--danger); }
.empty { padding: 12px 0; }
.page-head h1 { margin: 0; font-size: 36px; }
.page-head p { margin: 6px 0 18px; color: var(--muted); }
.empty-cart { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 28px 20px; }
.cart-layout { display: grid; gap: 16px; align-items: start; }
.line {
    display: grid;
    grid-template-columns: 112px 1fr;
    gap: 14px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 12px;
    margin-bottom: 12px;
}
.line-photo { background: #f7f4ef; border-radius: 14px; display: grid; place-items: center; min-height: 112px; }
.line img, .line-photo img { width: 100%; height: 112px; object-fit: contain; }
.line h2 { font-size: 16px; margin: 2px 0 6px; }
.line h2 a { text-decoration: none; }
.line .brand { text-transform: uppercase; letter-spacing: .08em; font-size: 11px; font-weight: 750; }
.line .price strong { font-size: 18px; }
.line-actions { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin-top: 10px; }
.line-actions input { width: 72px; text-align: center; }
.line-actions button:not(.text) { background: var(--navy); }
.summary { position: sticky; top: 132px; }
.summary dl { margin: 0; }
.summary dl div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; font-weight: 700; }
.summary .total { display: flex; justify-content: space-between; align-items: baseline; margin: 14px 0 8px; font-size: 15px; }
.summary .total strong { font-size: 26px; letter-spacing: -0.03em; }
.summary .cta { width: 100%; min-height: 52px; margin-top: 8px; border-radius: 14px; }
.summary ul { padding-left: 18px; }
.pay-form {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 6px 22px 22px;
}
.pay-form section { padding: 18px 0 6px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.pay-form h2, .pay-form legend { font-size: 18px; margin: 0 0 14px; padding: 0; }
.pay-form fieldset { border: 0; margin: 0; padding: 0; }
.pay-form > label, .pay-form section > label { display: grid; gap: 6px; margin: 0 0 12px; font-size: 13px; font-weight: 650; color: var(--muted); }
.addr-grid { display: grid; gap: 0 12px; }
.pay-choice {
    display: flex !important;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 12px 14px;
    color: var(--ink);
    font-size: 15px;
    font-weight: 650;
}
.pay-choice input { width: 18px; height: 18px; }
.pay-form .check { margin: 10px 0; color: var(--ink); font-size: 14px; font-weight: 500; }
.pay-form .cta { width: 100%; min-height: 52px; margin-top: 8px; border-radius: 14px; }
.summary-lines { display: grid; gap: 12px; margin-bottom: 4px; }
.summary-line { display: grid; grid-template-columns: 64px 1fr; gap: 10px; align-items: center; text-decoration: none; }
.summary-line img { width: 64px; height: 64px; object-fit: contain; background: #f7f4ef; border-radius: 12px; }
.summary-line strong { display: block; font-size: 13px; line-height: 1.35; }
.summary-line small { color: var(--muted); }
@media (min-width: 800px) {
    .addr-grid { grid-template-columns: 1fr 1fr; }
}
.site-footer { background: #121820; color: #c9d0d8; padding: 36px 0 28px; }
.footer-grid { display: grid; gap: 18px; }
.footer-brand { display: flex; gap: 12px; align-items: center; }
.footer-brand strong { color: #fff; display: block; }
.footer-brand p { margin: 2px 0; }
.footer-logo { width: 40px; height: 40px; display: block; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.footer-links a { color: #fff; text-decoration: none; }
.fine { font-size: 12px; color: #8b95a3; max-width: 70ch; }
.tabbar {
    position: fixed; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(4, 1fr);
    background: #fff; border-top: 1px solid var(--line); z-index: 30; padding-bottom: env(safe-area-inset-bottom);
}
.tabbar a { min-height: 56px; text-decoration: none; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 12px; }
.check { display: flex !important; grid-template-columns: none; align-items: flex-start; gap: 8px; }
.check input { width: 20px; height: 20px; margin-top: 4px; }
.pager { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.pager a { min-width: 44px; min-height: 44px; display: grid; place-items: center; background: #fff; border-radius: 10px; text-decoration: none; }
.pager a[aria-current="page"] { background: var(--navy); color: #fff; }
@media (min-width: 800px) {
    body { padding-bottom: 0; }
    .main-nav { display: block; }
    .tabbar { display: none; }
    .header-bar { display: grid; grid-template-columns: auto minmax(240px, 520px) auto; }
    .logo, .search, .cart-link { order: 0; margin-right: 0; }
    .logo { margin-right: 0; }
    .search { justify-self: center; width: 100%; }
    .hero { grid-template-columns: 1.15fr .85fr; align-items: center; padding: 42px 40px; min-height: 420px; }
    .hero h1 { font-size: 56px; }
    .grid { grid-template-columns: repeat(4, 1fr); }
    .tiles { grid-template-columns: repeat(4, 1fr); }
    .trust { grid-template-columns: repeat(4, 1fr); }
    .listing { grid-template-columns: 260px 1fr; align-items: start; }
    .filter-open { display: none; }
    .filters { display: grid; position: sticky; top: 108px; }
    .product { grid-template-columns: 1.15fr .85fr; align-items: start; }
    .buy { position: sticky; top: 132px; }
    .cart-layout { grid-template-columns: 1.3fr .7fr; }
    .line { grid-template-columns: 148px 1fr; }
    .line-photo, .line img, .line-photo img { height: 148px; }
    .footer-grid { grid-template-columns: 1.2fr 1fr; }
    .fine { grid-column: 1 / -1; }
}
@media (max-width: 799px) {
    .buy-form { position: sticky; bottom: 64px; background: #fff; padding: 10px 0 0; z-index: 15; }
}
