:root {
    --store-bg: #07090f;
    --store-bg-soft: #0c1119;
    --store-panel: #101620;
    --store-panel-strong: #141c28;
    --store-line: #263244;
    --store-line-soft: #1a2533;
    --store-text: #f6f8fb;
    --store-muted: #aeb8c8;
    --store-subtle: #7e8b9e;
    --store-accent: #6fe7e2;
    --store-accent-strong: #83f3ee;
    --store-accent-dark: #082e34;
    --store-danger: #ff8b96;
}
* { box-sizing: border-box; }
body.store-page {
    margin: 0;
    background: var(--store-bg);
    color: var(--store-text);
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    letter-spacing: 0;
    line-height: 1.6;
}
.store-page a { color: var(--store-accent); text-underline-offset: 3px; }
.store-header {
    min-height: 74px;
    padding: 16px max(22px, calc((100vw - 1200px) / 2));
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 28px;
    border-bottom: 1px solid var(--store-line-soft);
    background: rgba(7, 9, 15, .94);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 10;
}
.store-brand { display: inline-flex; align-items: center; width: 138px; }
.store-brand img { display: block; width: 100%; height: auto; }
.store-header nav { display: flex; align-items: center; gap: 22px; }
.store-header nav a {
    color: var(--store-text);
    text-decoration: none;
    font-size: .95rem;
    font-weight: 700;
}
.store-header nav a:hover { color: var(--store-accent); }
.store-cart-link {
    border: 1px solid rgba(111, 231, 226, .62);
    padding: 7px 13px;
    border-radius: 999px;
}
.store-cart-link span {
    display: inline-grid;
    place-items: center;
    min-width: 22px;
    height: 22px;
    margin-left: 6px;
    border-radius: 50%;
    background: var(--store-accent);
    color: #061013;
}
.store-container { width: min(1200px, calc(100% - 48px)); margin: 0 auto; padding: 62px 0; }
.store-narrow { width: min(840px, calc(100% - 48px)); }
.store-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(420px, .96fr);
    align-items: center;
    gap: clamp(34px, 5vw, 72px);
    min-height: calc(100vh - 74px);
}
.store-product-visual {
    padding: clamp(14px, 2vw, 22px);
    border: 1px solid var(--store-line);
    border-radius: 8px;
    background: linear-gradient(180deg, #151d28 0%, #0b1018 100%);
}
.store-product-visual img {
    display: block;
    width: 100%;
    border-radius: 6px;
}
.store-product-copy { max-width: 620px; }
.store-eyebrow {
    color: var(--store-accent);
    text-transform: uppercase;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .16em;
}
.store-page h1 {
    margin: 10px 0 16px;
    max-width: 640px;
    font-size: clamp(2.25rem, 3.65vw, 3.75rem);
    line-height: 1.06;
    font-weight: 800;
}
.store-page h2 {
    margin: 0 0 14px;
    color: var(--store-text);
    background: none;
    -webkit-text-fill-color: initial;
    font-size: 1.18rem;
    line-height: 1.3;
}
.store-page h3 { color: var(--store-text); }
.store-lede {
    max-width: 590px;
    margin: 0;
    color: #d9dee8;
    font-size: 1.08rem;
}
.store-purchase-panel {
    margin-top: 26px;
    padding: 24px;
    border: 1px solid var(--store-line);
    border-radius: 8px;
    background: var(--store-panel);
}
.store-panel-label {
    display: block;
    margin-bottom: 2px;
    color: var(--store-subtle);
    font-size: .82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
}
.store-price {
    margin: 0 0 6px;
    font-size: clamp(1.85rem, 3vw, 2.35rem);
    line-height: 1.1;
    font-weight: 800;
    color: var(--store-accent-strong);
}
.store-price-note { margin: 0 0 12px; color: var(--store-muted); font-size: .92rem; line-height: 1.45; }
.store-muted { color: var(--store-muted); }
.store-card {
    padding: 24px;
    background: var(--store-panel);
    border: 1px solid var(--store-line-soft);
    border-radius: 8px;
}
.store-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.store-details { padding-top: 0; }
.store-details ul, .policy-content ul, .policy-content ol { padding-left: 20px; }
.store-details li + li { margin-top: 8px; }
.store-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    border: 0;
    border-radius: 6px;
    padding: 12px 20px;
    background: var(--store-accent);
    color: #041014 !important;
    text-decoration: none;
    font-weight: 800;
    cursor: pointer;
}
.store-btn:hover { background: var(--store-accent-strong); }
.store-btn:disabled { cursor: not-allowed; opacity: .45; }
.store-btn-secondary { background: transparent; color: var(--store-text) !important; border: 1px solid var(--store-line); }
.store-btn-secondary:hover { background: rgba(255, 255, 255, .04); }
.store-btn-danger { background: transparent; color: var(--store-danger) !important; border: 1px solid rgba(255, 139, 150, .75); }
.store-btn-danger:hover { background: rgba(255, 139, 150, .08); }
.store-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 24px; }
.store-purchase-actions {
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid var(--store-line-soft);
}
.store-actions input[type=number] { width: 86px; }
.store-alert {
    padding: 14px 18px;
    margin-bottom: 22px;
    border: 1px solid rgba(255, 139, 150, .7);
    border-radius: 8px;
    color: #ffd8dc;
    background: #2c1118;
}
.store-notice {
    padding: 18px 20px;
    border-left: 3px solid var(--store-accent);
    border-radius: 0 8px 8px 0;
    background: var(--store-accent-dark);
    color: var(--store-muted);
}
.cart-row { display: grid; grid-template-columns: 140px 1fr 130px 230px; gap: 22px; align-items: center; }
.cart-row img { width: 140px; border-radius: 8px; border: 1px solid var(--store-line-soft); }
.cart-summary { margin-top: 28px; margin-left: auto; width: min(420px, 100%); }
.summary-line { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; }
.summary-line > :last-child { text-align: right; }
.summary-total { margin-top: 10px; padding-top: 16px; border-top: 1px solid var(--store-line); font-size: 1.25rem; font-weight: 800; }
.checkout-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; align-items: start; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-full { grid-column: 1 / -1; }
.store-page label { display: block; margin-bottom: 6px; color: var(--store-muted); font-weight: 700; }
.store-page input, .store-page textarea, .store-page select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--store-line);
    border-radius: 6px;
    background: #080b12;
    color: var(--store-text);
    font: inherit;
}
.store-page input:focus, .store-page textarea:focus, .store-page select:focus {
    outline: 2px solid rgba(111, 231, 226, .35);
    outline-offset: 2px;
}
.store-page input[type=checkbox] { width: auto; }
.check-line { display: flex; gap: 10px; align-items: start; margin: 12px 0; }
.check-line label { margin: 0; font-weight: 400; }
.policy-content h2 { margin-top: 42px; padding-bottom: 4px; border-bottom: 1px solid var(--store-line); }
.merchant-box { margin-top: 36px; }
.store-footer {
    width: min(1200px, calc(100% - 48px));
    margin: 58px auto 0;
    padding: 28px 0 44px;
    display: flex;
    justify-content: space-between;
    gap: 25px;
    color: var(--store-muted);
    border-top: 1px solid var(--store-line-soft);
    font-size: .9rem;
}
@media (max-width: 980px) {
    .store-hero, .checkout-layout { grid-template-columns: 1fr; }
    .store-hero { min-height: auto; padding-top: 40px; }
    .store-product-copy { max-width: none; }
    .store-page h1 { max-width: 720px; }
}
@media (max-width: 850px) {
    .store-header { align-items: center; gap: 14px; }
    .store-brand { width: 118px; }
    .store-header nav { justify-content: flex-end; flex-wrap: wrap; gap: 12px; }
    .store-header nav a:not(.store-cart-link) { display: none; }
    .store-container, .store-narrow, .store-footer { width: min(100% - 32px, 1200px); }
    .store-hero { padding-top: 30px; gap: 28px; }
    .store-grid { grid-template-columns: 1fr; }
    .cart-row { grid-template-columns: 90px 1fr; }
    .cart-row img { width: 90px; }
    .cart-row > div:last-child { grid-column: 1 / -1; }
    .form-grid { grid-template-columns: 1fr; }
    .form-full { grid-column: auto; }
    .store-footer { display: block; }
    .store-footer > div + div { margin-top: 20px; }
}
@media (max-width: 520px) {
    .store-container { padding: 42px 0; }
    .store-page h1 { font-size: clamp(2.05rem, 12vw, 2.7rem); }
    .store-purchase-panel, .store-card { padding: 20px; }
    .store-purchase-actions { align-items: stretch; }
    .store-purchase-actions label { width: 100%; }
    .store-purchase-actions input[type=number] { flex: 1 1 88px; }
    .store-purchase-actions .store-btn { flex: 2 1 150px; }
}
