:root {
    color-scheme: dark;
    --bg: #050608;
    --panel: #15171b;
    --panel-2: #1c1f24;
    --line: rgba(255, 255, 255, .1);
    --text: #f6f7fb;
    --muted: #9aa3ad;
    --accent: #08a6ff;
    --cyan: #1fc7d4;
    --gold: #f5c84b;
    --green: #36d278;
    --danger: #ff5574;
    --radius: 8px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    min-width: 320px;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }

.container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.narrow { width: min(860px, calc(100% - 32px)); }

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(12, 14, 17, .9);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
}

.nav-wrap { height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: 0; }
.brand img { width: 34px; height: 34px; object-fit: contain; border-radius: 8px; }
.brand span { padding: 8px 14px; border: 1px solid rgba(75, 168, 255, .35); border-radius: 999px; background: rgba(45, 110, 255, .08); }
.top-nav { display: flex; align-items: center; gap: 8px; }
.top-nav a { color: var(--muted); padding: 10px 12px; border-radius: 8px; transition: color .2s, background .2s; }
.top-nav a:hover { color: var(--text); background: rgba(255, 255, 255, .07); }
.cart-nav {
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, .06);
    color: var(--muted);
    cursor: pointer;
    min-height: 38px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.cart-nav:hover { color: var(--text); background: rgba(255, 255, 255, .09); }
.cart-nav span {
    min-width: 20px;
    height: 20px;
    border-radius: 999px;
    display: inline-grid;
    place-items: center;
    background: rgba(8, 166, 255, .18);
    color: #9ee6ff;
    font-size: 12px;
    font-weight: 900;
}

.hero {
    min-height: clamp(340px, 36vw, 520px);
    background-color: #071018;
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid var(--line);
    display: grid;
    align-items: center;
}
.hero-inner { padding: 74px 0; animation: riseIn .45s ease both; }
.hero h1 { max-width: 720px; margin: 16px 0 12px; font-size: clamp(36px, 5vw, 72px); line-height: 1.05; letter-spacing: 0; }
.hero p { max-width: 680px; margin: 0 0 28px; color: #dce8f3; font-size: clamp(16px, 1.8vw, 22px); line-height: 1.75; }

.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: #f7fbff; font-size: 13px; font-weight: 800; }
.eyebrow span { width: 8px; height: 8px; border-radius: 999px; background: var(--green); box-shadow: 0 0 18px var(--green); }
.eyebrow.muted { color: var(--muted); text-transform: uppercase; }
.eyebrow.danger { color: var(--danger); }

.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.btn, .icon-btn {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, .08);
    color: var(--text);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    font-weight: 800;
    transition: transform .2s, border-color .2s, background .2s;
}
.btn:hover, .icon-btn:hover { transform: translateY(-1px); border-color: rgba(255,255,255,.24); }
.btn.primary { background: linear-gradient(135deg, #0e8bff, #19c9c3); border-color: rgba(31, 199, 212, .35); color: #fff; }
.btn.secondary { background: #242930; }
.btn.ghost { background: transparent; color: var(--muted); }
.icon-btn { width: 42px; padding: 0; font-size: 20px; }

.notice-bar { border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .025); }
.notice-bar .container { padding: 12px 0; }
.notice-bar-button {
    width: 100%;
    border: 1px solid rgba(75, 168, 255, .24);
    border-radius: var(--radius);
    background: rgba(17, 21, 27, .88);
    color: var(--text);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 46px;
    padding: 0 14px;
    text-align: left;
}
.notice-bar-button strong { font-size: 15px; }
.notice-bar-button em { margin-left: auto; color: var(--muted); font-style: normal; font-size: 13px; }
.notice-dot {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    background: rgba(31, 199, 212, .18);
    border: 1px solid rgba(31, 199, 212, .35);
    color: #8cf2ff;
    font-weight: 900;
}
.notice-modal { position: fixed; inset: 0; z-index: 80; display: none; align-items: center; justify-content: center; padding: 18px; }
.notice-modal.is-open { display: flex; }
.notice-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .66); backdrop-filter: blur(8px); }
.notice-dialog {
    position: relative;
    width: min(560px, 100%);
    max-height: min(760px, calc(100vh - 36px));
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 18px;
    background: #1b1d21;
    box-shadow: 0 28px 90px rgba(0, 0, 0, .58);
    overflow: hidden;
}
.notice-dialog-head { display: flex; align-items: center; gap: 14px; padding: 20px 20px 16px; }
.notice-dialog-head h2 { margin: 0; font-size: 20px; line-height: 1.3; }
.notice-close {
    margin-left: auto;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, .48);
    border-radius: 999px;
    background: transparent;
    color: var(--text);
    cursor: pointer;
    font-size: 28px;
    line-height: 1;
}
.notice-dialog-body { overflow: auto; padding: 0 20px 18px; }
.notice-rich-text { display: grid; gap: 14px; }
.notice-rich-text h1,
.notice-rich-text h2,
.notice-rich-text h3 {
    margin: 0;
    border-radius: 4px;
    padding: 14px 16px;
    background: rgba(255, 85, 116, .12);
    border-left: 4px solid var(--danger);
    color: #fff;
    font-size: 16px;
    line-height: 1.6;
}
.notice-rich-text h3:nth-of-type(2n) { background: rgba(8, 166, 255, .12); border-left-color: var(--accent); }
.notice-rich-text h3:nth-of-type(3n) { background: rgba(245, 200, 75, .12); border-left-color: var(--gold); }
.notice-rich-text p,
.notice-rich-text li { color: #e2e7ee; line-height: 1.8; }
.notice-rich-text p { margin: 0; }
.notice-rich-text ul,
.notice-rich-text ol { margin: 0; padding-left: 24px; }
.notice-dialog-foot {
    border-top: 1px solid var(--line);
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.notice-dialog-foot .btn { margin-left: auto; }
.notice-muted-btn { border: 0; background: transparent; color: var(--muted); cursor: pointer; padding: 8px 0; }
.notice-muted-btn:hover { color: var(--text); }

.banner-section { padding: 28px 0 8px; }
.banner-card {
    position: relative;
    min-height: clamp(220px, 25vw, 360px);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: var(--radius);
    background-color: #071018;
    background-size: calc(100% + 18px) calc(100% + 18px);
    background-position: center;
    overflow: hidden;
    display: flex;
    align-items: center;
}
.banner-card::before {
    content: "";
    position: absolute;
    inset: -3px;
    border-radius: inherit;
    background:
        linear-gradient(90deg, rgba(5, 6, 8, .92) 0%, rgba(5, 6, 8, .78) 32%, rgba(5, 6, 8, .20) 68%, rgba(5, 6, 8, .04) 100%),
        linear-gradient(180deg, rgba(5, 6, 8, .22) 0, rgba(0, 0, 0, .05) 18%, rgba(0, 0, 0, .18) 100%);
    box-shadow:
        inset 0 12px 0 rgba(5, 6, 8, .24),
        inset 16px 0 0 rgba(5, 6, 8, .32);
    pointer-events: none;
}
.banner-copy {
    position: relative;
    z-index: 1;
    width: min(600px, 58%);
    padding: clamp(24px, 4.2vw, 46px);
    animation: riseIn .45s ease both;
}
.banner-copy:empty { display: none; }
.banner-copy h1 {
    max-width: 580px;
    margin: 0 0 14px;
    font-size: clamp(28px, 3.2vw, 44px);
    line-height: 1.16;
    letter-spacing: 0;
    overflow-wrap: normal;
    word-break: keep-all;
    text-shadow: 0 2px 16px rgba(0, 0, 0, .45);
}
.banner-copy p {
    max-width: 560px;
    margin: 0 0 22px;
    color: #e6edf6;
    font-size: clamp(15px, 1.25vw, 17px);
    line-height: 1.75;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .42);
}

.notice-strip { border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .03); }
.notice-strip .container { display: flex; gap: 14px; align-items: center; padding: 14px 0; color: var(--muted); }
.notice-strip span { color: var(--gold); font-weight: 800; }
.notice-strip p { margin: 0; }

.page-section { padding: 64px 0; }
.compact-section { min-height: calc(100vh - 145px); display: grid; align-items: center; }
.section-head { display: flex; justify-content: space-between; gap: 24px; align-items: end; margin-bottom: 24px; }
.section-head.simple { align-items: center; }
.section-head h1, .section-head h2 { margin: 8px 0 8px; font-size: clamp(28px, 4vw, 42px); line-height: 1.1; }
.section-head p, .lead { color: var(--muted); line-height: 1.7; }

.search-box { display: grid; gap: 8px; min-width: 240px; color: var(--muted); }
input, select, textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #0f1115;
    color: var(--text);
    min-height: 44px;
    padding: 0 14px;
    outline: none;
}
textarea { min-height: 150px; padding: 14px; resize: vertical; line-height: 1.7; }
input:focus, select:focus, textarea:focus { border-color: rgba(31, 199, 212, .65); box-shadow: 0 0 0 3px rgba(31, 199, 212, .12); }

.category-tabs { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 16px; }
.category-tabs button, .pay-option {
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #111419;
    color: var(--muted);
    padding: 9px 14px;
    cursor: pointer;
    white-space: nowrap;
}
.category-tabs button.active, .pay-option.active { color: #fff; border-color: rgba(8, 166, 255, .55); background: rgba(8, 166, 255, .16); }

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 18px; align-items: stretch; }
.product-card {
    min-width: 0;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 360px;
    transition: transform .22s, border-color .22s;
}
.product-card:hover { transform: translateY(-3px); border-color: rgba(31, 199, 212, .34); }
.product-image {
    display: block;
    flex: 0 0 auto;
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
    background: #0d1117;
    overflow: hidden;
}
.product-image img {
    width: 100% !important;
    height: 100% !important;
    max-width: none;
    object-fit: cover;
    transition: transform .35s;
}
.product-card:hover .product-image img { transform: scale(1.04); }
.product-image.placeholder {
    display: block;
    background:
        radial-gradient(circle at 18% 18%, rgba(8,166,255,.24), transparent 28%),
        radial-gradient(circle at 86% 20%, rgba(245,200,75,.16), transparent 24%),
        linear-gradient(135deg, #121821, #090c10);
}
.product-image-fallback {
    height: 100%;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: var(--text);
}
.product-image-fallback span { color: var(--muted); font-size: 13px; }
.product-image-fallback strong { font-size: clamp(20px, 2.2vw, 28px); line-height: 1.2; overflow-wrap: anywhere; }
.product-image-fallback em { width: fit-content; font-style: normal; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; color: var(--cyan); font-weight: 900; }
.product-body { flex: 1 1 auto; padding: 16px; display: flex; flex-direction: column; min-height: 184px; }
.meta-line { color: var(--muted); font-size: 13px; }
.product-card h3 { margin: 8px 0 12px; min-height: 48px; font-size: 18px; line-height: 1.35; overflow-wrap: anywhere; }
.tags { display: flex; gap: 8px; flex-wrap: wrap; min-height: 28px; }
.tag { display: inline-flex; align-items: center; border-radius: 999px; padding: 4px 9px; font-size: 12px; font-weight: 800; color: #d6dbe4; background: rgba(255, 255, 255, .08); border: 1px solid var(--line); }
.tag.blue { color: #9ee6ff; background: rgba(8, 166, 255, .14); border-color: rgba(8, 166, 255, .35); }
.tag.amber { color: #ffe4a0; background: rgba(245, 200, 75, .14); border-color: rgba(245, 200, 75, .32); }
.tag.green { color: #b7ffd5; background: rgba(54, 210, 120, .12); border-color: rgba(54, 210, 120, .3); }
.card-bottom { border-top: 1px solid var(--line); margin-top: auto; padding-top: 14px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.card-bottom small { display: block; color: var(--muted); margin-bottom: 4px; }
.card-bottom strong, .price { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.card-actions { display: flex; gap: 8px; }
.cart-add-btn { font-size: 18px; line-height: 1; }

.buy-layout { display: grid; grid-template-columns: minmax(260px, 420px) minmax(0, 1fr); gap: 28px; align-items: start; }
.product-preview, .buy-panel, .panel, .description-panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.product-preview { position: sticky; top: 96px; overflow: hidden; }
.product-preview img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: #0b0f14; transition: opacity .16s ease; }
.product-preview img.is-loading { opacity: .48; }
.preview-tags { display: flex; gap: 8px; flex-wrap: wrap; padding: 16px; }
.buy-panel, .panel, .description-panel { padding: clamp(20px, 3vw, 34px); }
.back-link { color: var(--muted); font-weight: 700; }
.buy-panel h1, .panel h1 { font-size: clamp(30px, 4vw, 48px); margin: 14px 0 8px; line-height: 1.1; }
.discount-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0; }
.discount-row span { color: #ffe7a5; background: rgba(245, 200, 75, .1); border: 1px solid rgba(245, 200, 75, .28); border-radius: 999px; padding: 7px 11px; font-size: 13px; }
.buy-form { display: grid; gap: 22px; margin-top: 24px; }
.field-group { display: grid; gap: 10px; color: var(--muted); }
.sku-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.sku-option { text-align: left; min-height: 82px; border: 1px solid var(--line); border-radius: var(--radius); background: #101319; color: var(--text); padding: 13px; cursor: pointer; }
.sku-option span { display: block; color: #fff; margin-bottom: 8px; }
.sku-option strong { color: var(--cyan); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.sku-option.active { border-color: rgba(31, 199, 212, .65); background: rgba(31, 199, 212, .12); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-grid label, .mini-form label { display: grid; gap: 8px; color: var(--muted); }
.captcha-field div { display: flex; gap: 10px; }
.captcha-field img { height: 44px; border-radius: 8px; cursor: pointer; }
.pay-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.buy-summary { display: flex; justify-content: space-between; gap: 16px; align-items: center; border-top: 1px solid var(--line); padding-top: 18px; }
.buy-summary span { display: block; color: var(--muted); }
.buy-summary strong { font-size: 24px; color: #fff; }
.buy-actions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.buy-actions .btn { min-width: 118px; }
.description-panel { margin-top: 28px; }
.description-panel h2 { margin: 0 0 14px; }
.rich-text { color: #d7dee8; line-height: 1.8; overflow-wrap: anywhere; }

.detail-list { display: grid; gap: 10px; margin: 22px 0; }
.detail-list.two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.detail-list div { display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); padding: 11px 0; }
.detail-list span { color: var(--muted); }
.detail-list strong { text-align: right; overflow-wrap: anywhere; }
.order-panel { margin-bottom: 18px; }
.order-title { display: flex; justify-content: space-between; gap: 16px; align-items: start; }
.order-title span:first-child { color: var(--muted); }
.order-title h2 { margin: 6px 0 0; font-size: 22px; overflow-wrap: anywhere; }
.status { border-radius: 999px; padding: 6px 10px; background: rgba(31, 199, 212, .14); color: #aff7ff; font-weight: 800; }
.status.success { background: rgba(54, 210, 120, .14); color: #c1ffd8; }
.status.danger { background: rgba(255, 85, 116, .14); color: #ffc5d0; }
.status.muted { background: rgba(255, 255, 255, .08); color: var(--muted); }
.card-secret { display: grid; gap: 8px; color: var(--muted); margin-bottom: 14px; }
.query-grid { display: grid; gap: 14px; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 22px; }
.mini-form { background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: grid; gap: 14px; align-content: start; }
.mini-form h2 { margin: 0; font-size: 18px; }
.mini-form p { color: var(--muted); margin: 0; line-height: 1.6; }

.pay-panel { text-align: center; }
.pay-panel .eyebrow { justify-content: center; }
.qr-box { width: 260px; height: 260px; display: grid; place-items: center; margin: 24px auto 14px; background: #fff; border-radius: 8px; padding: 18px; }
.qr-box img { width: 220px; height: 220px; }
.qr-price { display: block; font-size: 28px; color: var(--gold); margin-bottom: 22px; }

.toast-note { position: fixed; right: 24px; bottom: 24px; z-index: 30; width: min(380px, calc(100% - 32px)); padding: 18px; border-radius: var(--radius); border: 1px solid rgba(245, 200, 75, .35); background: #161613; box-shadow: 0 20px 60px rgba(0,0,0,.4); }
.toast-note button { position: absolute; right: 10px; top: 8px; border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 20px; }
.toast-note strong { color: var(--gold); }
.toast-note div { color: #e6dcc6; line-height: 1.7; margin-top: 8px; }
.empty-state { grid-column: 1 / -1; border: 1px dashed var(--line); border-radius: var(--radius); padding: 64px; text-align: center; color: var(--muted); }

.cart-drawer { position: fixed; inset: 0; z-index: 75; display: none; }
.cart-drawer.is-open { display: block; }
.cart-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.58); backdrop-filter: blur(7px); }
.cart-panel {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: min(420px, 100%);
    background: #15171b;
    border-left: 1px solid var(--line);
    box-shadow: -24px 0 70px rgba(0,0,0,.48);
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
}
.cart-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px; border-bottom: 1px solid var(--line); }
.cart-head h2 { margin: 6px 0 0; font-size: 26px; }
.cart-items { overflow: auto; padding: 16px; display: grid; gap: 12px; align-content: start; }
.cart-item { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 12px; border: 1px solid var(--line); border-radius: var(--radius); background: #101319; padding: 10px; }
.cart-item img { width: 76px; height: 76px; object-fit: cover; border-radius: 6px; background: #0b0f14; }
.cart-item h3 { margin: 0 0 4px; font-size: 15px; line-height: 1.35; }
.cart-item p { margin: 0 0 8px; color: var(--muted); font-size: 13px; }
.cart-item-row { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.cart-item-row strong { color: var(--cyan); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.qty-control { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.qty-control button { width: 30px; height: 28px; border: 0; background: rgba(255,255,255,.06); color: var(--text); cursor: pointer; }
.qty-control button:disabled { opacity: .42; cursor: not-allowed; }
.qty-control span { min-width: 32px; height: 28px; display: inline-grid; place-items: center; color: var(--text); }
.cart-item-meta { display: flex; flex-wrap: wrap; gap: 6px; min-height: 24px; }
.cart-item-meta span { border: 1px solid var(--line); border-radius: 999px; padding: 3px 8px; background: rgba(255, 255, 255, .05); color: var(--muted); }
.cart-item-actions { display: flex; gap: 8px; margin-top: 10px; }
.cart-item-actions a,
.cart-item-actions button {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255,255,255,.06);
    color: var(--text);
    min-height: 34px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}
.cart-empty { margin: 16px; padding: 42px 16px; }
.cart-foot { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 18px 22px; border-top: 1px solid var(--line); }
.cart-foot span { display: block; color: var(--muted); font-size: 13px; }
.cart-foot strong { color: #fff; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.cart-foot-actions { display: flex; gap: 10px; align-items: center; }
.cart-checkout { min-width: 118px; }
.cart-checkout:disabled { opacity: .48; cursor: not-allowed; transform: none; }

.sku-picker { position: fixed; inset: 0; z-index: 85; display: none; align-items: center; justify-content: center; padding: 18px; }
.sku-picker.is-open { display: flex; }
.sku-picker-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.66); backdrop-filter: blur(8px); }
.sku-picker-dialog {
    position: relative;
    width: min(620px, 100%);
    max-height: min(760px, calc(100vh - 36px));
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: var(--radius);
    background: #15171b;
    box-shadow: 0 28px 90px rgba(0,0,0,.58);
    overflow: hidden;
}
.sku-picker-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px; border-bottom: 1px solid var(--line); }
.sku-picker-head h2 { margin: 6px 0 0; font-size: 24px; line-height: 1.25; overflow-wrap: anywhere; }
.sku-picker-body { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; padding: 18px 20px; overflow: auto; }
.sku-picker-body img { width: 150px; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--radius); background: #0b0f14; }
.sku-picker-main { display: grid; gap: 14px; align-content: start; min-width: 0; }
.sku-picker-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.sku-picker-option {
    min-height: 84px;
    text-align: left;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #101319;
    color: var(--text);
    padding: 12px;
    cursor: pointer;
}
.sku-picker-option span { display: block; margin-bottom: 7px; font-weight: 800; overflow-wrap: anywhere; }
.sku-picker-option strong { display: block; color: var(--cyan); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.sku-picker-option em { display: block; margin-top: 6px; color: var(--muted); font-style: normal; font-size: 12px; }
.sku-picker-option.active { border-color: rgba(31, 199, 212, .65); background: rgba(31, 199, 212, .12); }
.sku-picker-option:disabled { opacity: .45; cursor: not-allowed; }
.sku-picker-qty { display: grid; gap: 8px; color: var(--muted); }
.sku-picker-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 20px; border-top: 1px solid var(--line); }
.sku-picker-foot span { display: block; color: var(--muted); font-size: 13px; }
.sku-picker-foot strong { display: block; color: #fff; font-size: 22px; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.sku-picker-foot em { display: block; margin-top: 3px; color: var(--muted); font-style: normal; font-size: 13px; }

.site-footer { border-top: 1px solid var(--line); color: var(--muted); padding: 26px 0; text-align: center; }

@keyframes riseIn {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 980px) {
    .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .buy-layout { grid-template-columns: 1fr; }
    .product-preview { position: static; }
    .query-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .site-header { background: rgba(8, 10, 13, .92); }
    .nav-wrap {
        width: min(1180px, calc(100% - 24px));
        height: 62px;
        padding: 8px 0;
        align-items: center;
        gap: 10px;
    }
    .brand { flex: 0 0 auto; gap: 7px; }
    .brand img { width: 28px; height: 28px; border-radius: 7px; }
    .brand span {
        min-height: 42px;
        max-width: 92px;
        padding: 0 12px;
        display: inline-flex;
        align-items: center;
        border-radius: 22px;
        font-size: 18px;
        line-height: 1.08;
        overflow-wrap: anywhere;
    }
    .top-nav {
        flex: 1 1 auto;
        min-width: 0;
        flex-wrap: nowrap;
        justify-content: flex-start;
        gap: 4px;
        overflow-x: auto;
        padding: 2px 0;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 18px), transparent 100%);
    }
    .top-nav::-webkit-scrollbar { display: none; }
    .top-nav a,
    .cart-nav {
        flex: 0 0 auto;
        min-height: 36px;
        padding: 0 10px;
        border-radius: 999px;
        font-size: 15px;
        line-height: 1;
        white-space: nowrap;
    }
    .top-nav a {
        display: inline-flex;
        align-items: center;
    }
    .cart-nav {
        order: -1;
        gap: 6px;
        background: rgba(255, 255, 255, .08);
    }
    .cart-nav span { min-width: 18px; height: 18px; font-size: 11px; }
    .hero-inner { padding: 52px 0; }
    .banner-section { padding-top: 16px; }
    .banner-card { min-height: 220px; }
    .banner-copy { padding: 24px; }
    .notice-dialog-foot { align-items: stretch; flex-wrap: wrap; }
    .notice-dialog-foot .btn { margin-left: 0; width: 100%; }
    .cart-foot { grid-template-columns: 1fr; }
    .cart-foot-actions { width: 100%; }
    .cart-foot-actions .btn { flex: 1 1 0; }
    .notice-strip .container, .section-head, .buy-summary, .order-title, .sku-picker-foot { display: grid; align-items: start; }
    .search-box { min-width: 0; }
    .product-grid, .form-grid, .sku-grid, .detail-list.two-col, .sku-picker-body, .sku-picker-options { grid-template-columns: 1fr; }
    .buy-actions { justify-content: stretch; width: 100%; }
    .buy-actions .btn, .sku-picker-foot .btn { width: 100%; }
    .sku-picker-body img { width: 100%; max-height: 220px; }
    .product-card h3 { min-height: 0; }
    .detail-list div { display: grid; }
    .detail-list strong { text-align: left; }
}
