/* Solar Studios storefront */

:root {
    --bg: #07060b;
    --panel: #0f0d15;
    --panel-2: #16131f;
    --line: rgba(255, 255, 255, .08);
    --line-2: rgba(255, 255, 255, .15);
    --ink: #f4f2f8;
    --mute: rgba(232, 228, 242, .64);
    --dim: rgba(232, 228, 242, .4);

    --violet: #8a3dff;
    --violet-hi: #b98cff;
    --violet-rgb: 138, 61, 255;
    --red: #e03a4e;
    --green: #2fbf7a;
    --good: #3ddc97;

    --wrap: 1240px;
    --gut: clamp(16px, 4vw, 40px);
    --r: 14px;
    --ease: cubic-bezier(.22, 1, .36, 1);

    --sans: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
    --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0; min-height: 100vh;
    background: var(--bg); color: var(--ink);
    font: 400 16px/1.6 var(--sans);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
input { font: inherit; color: inherit; }
::selection { background: var(--violet); color: #fff; }
[hidden] { display: none !important; }
.mono { font-family: var(--mono); }
.mute { color: var(--mute); }
.xs { font-size: 12.5px; }
.center { text-align: center; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }

/* ---------- type ---------- */
h1, h2, h3 { font-stretch: 110%; letter-spacing: -.015em; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 600 13px/1 var(--sans); color: var(--violet-hi); }
.h2 { font-weight: 800; font-size: clamp(26px, 3.2vw, 40px); line-height: 1.1; margin: 10px 0 0; }
.lede { font-size: 17px; color: var(--mute); max-width: 54ch; }

/* ---------- buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    height: 48px; padding: 0 22px; border-radius: 12px; border: 1px solid var(--line-2);
    background: transparent; color: var(--ink); font: 600 15px/1 var(--sans); white-space: nowrap;
    transition: background .2s, border-color .2s, transform .2s var(--ease), color .2s;
}
.btn:hover { border-color: var(--ink); }
.btn:active { transform: scale(.98); }
.btn-solid { background: var(--violet); border-color: var(--violet); color: #fff; }
.btn-solid:hover { background: #9b57ff; border-color: #9b57ff; }
.btn-light { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.btn-light:hover { background: #fff; }
.btn-sm { height: 40px; padding: 0 16px; font-size: 14px; border-radius: 10px; }
.btn-block { width: 100%; }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.btn.is-disabled { pointer-events: none; opacity: .55; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.link-btn { background: none; border: 0; padding: 6px; color: var(--mute); text-decoration: underline; text-underline-offset: 3px; }
.icon-btn {
    position: relative; display: grid; place-items: center; width: 40px; height: 40px;
    border-radius: 10px; border: 1px solid transparent; background: transparent; color: var(--mute);
    transition: color .2s, background .2s;
}
.icon-btn:hover { color: var(--ink); background: rgba(255,255,255,.06); }

/* ---------- announcement bar ---------- */
.bar {
    position: relative; z-index: 61;
    display: flex; align-items: center; justify-content: center; gap: 12px 22px; flex-wrap: wrap;
    min-height: 44px; padding: 7px 16px; font-size: 14px;
    background: linear-gradient(90deg, #3a0d16, #1a0a25 50%, #0e1d17);
    border-bottom: 1px solid var(--line);
}
.bar strong { font-weight: 700; }
.bar .code {
    display: inline-flex; align-items: center; gap: 8px; padding: 3px 3px 3px 10px; border-radius: 8px;
    border: 1px dashed rgba(255,255,255,.35); font: 600 13px/1 var(--mono); letter-spacing: .08em;
}
.bar .code button { height: 24px; padding: 0 9px; border: 0; border-radius: 6px; background: var(--ink); color: var(--bg); font: 600 12px/1 var(--sans); }
.count { display: inline-flex; gap: 10px; font: 600 14px/1 var(--mono); }
.count span { display: grid; justify-items: center; gap: 2px; min-width: 28px; }
.count small { font: 500 9px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }

/* ---------- header that folds into a pill on scroll ---------- */
.nav { position: sticky; top: 0; z-index: 60; height: 76px; pointer-events: none; }
.nav-inner {
    pointer-events: auto;
    display: flex; align-items: center; gap: 22px;
    max-width: 100%; height: 76px; margin: 0 auto; padding: 0 var(--gut);
    border: 1px solid transparent; border-radius: 0;
    transition: max-width .6s var(--ease), height .5s var(--ease), margin .5s var(--ease), padding .5s var(--ease),
        border-radius .5s var(--ease), background .4s, border-color .4s, box-shadow .4s;
}
.nav.folded .nav-inner {
    max-width: 920px; height: 58px; margin-top: 10px; padding: 0 10px 0 16px;
    border-radius: 16px; border-color: var(--line-2);
    background: rgba(15, 13, 21, .82); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4);
    box-shadow: 0 18px 40px -18px rgba(0,0,0,.8);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; font-stretch: 105%; white-space: nowrap; }
.brand img { width: 32px; height: 32px; transition: width .5s var(--ease), height .5s var(--ease); }
.nav.folded .brand img { width: 28px; height: 28px; }
.brand .word { transition: opacity .3s, max-width .5s var(--ease); max-width: 160px; overflow: hidden; }
.nav-links { display: flex; gap: 2px; margin: 0 auto; }
.nav-links a { padding: 8px 13px; border-radius: 9px; font-size: 15px; font-weight: 500; color: var(--mute); transition: color .2s, background .2s; }
.nav-links a:hover { color: var(--ink); background: rgba(255,255,255,.05); }
.nav-links a.active { color: var(--ink); }
.nav-right { display: flex; align-items: center; gap: 6px; }
.cur { display: flex; padding: 3px; border-radius: 10px; border: 1px solid var(--line-2); }
.cur button { height: 30px; padding: 0 9px; border: 0; border-radius: 7px; background: none; color: var(--mute); font: 600 12.5px/1 var(--mono); }
.cur button.on { background: var(--ink); color: var(--bg); }
.badge {
    position: absolute; top: 1px; right: 1px; min-width: 17px; height: 17px; padding: 0 4px;
    display: grid; place-items: center; border-radius: 999px; background: var(--red); color: #fff; font: 700 10.5px/1 var(--mono);
}
.badge.bump { animation: bump .5s var(--ease); }
@keyframes bump { 40% { transform: scale(1.4); } }
.user-chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--good); }
.menu-btn { display: none; }

/* ---------- reveal (subtle) ---------- */
.js .rv { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0ms); }
.js .rv.in { opacity: 1; transform: none; }

/* ---------- hero ---------- */
.hero { position: relative; padding: clamp(40px, 7vw, 90px) 0 clamp(50px, 7vw, 90px); overflow: hidden; }
.hero::before { /* winter glow */
    content: ""; position: absolute; inset: -10% -10% auto; height: 120%; pointer-events: none; z-index: -1;
    background:
        radial-gradient(40% 50% at 80% 30%, rgba(var(--violet-rgb), .22), transparent 70%),
        radial-gradient(30% 40% at 10% 10%, rgba(224, 58, 78, .12), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.hero h1 { font-weight: 800; font-size: clamp(38px, 5.4vw, 70px); line-height: 1.02; margin: 18px 0 18px; }
.hero h1 .hl { color: var(--violet-hi); }
.hero .lede { margin: 0 0 30px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255,255,255,.03); font-size: 13.5px; color: var(--mute); }
.chip b { padding: 3px 8px; border-radius: 999px; background: var(--red); color: #fff; font-size: 11.5px; font-weight: 700; letter-spacing: .02em; }
.hero-card { position: relative; display: block; border-radius: 18px; overflow: hidden; border: 1px solid var(--line-2); background: var(--panel); aspect-ratio: 16 / 10; }
.hero-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.hero-card:hover img { transform: scale(1.03); }
.hero-card .cap {
    position: absolute; left: 14px; right: 14px; bottom: 14px; display: flex; justify-content: space-between; align-items: center; gap: 12px;
    padding: 12px 14px; border-radius: 12px; background: rgba(7,6,11,.78); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--line);
}
.hero-card .cap b { font-size: 15px; line-height: 1.3; }
.hero-card .cap span { font: 600 15px/1 var(--mono); white-space: nowrap; }
.hero-card.skel { background: linear-gradient(100deg, var(--panel) 30%, var(--panel-2) 50%, var(--panel) 70%) 0 0 / 300% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { background-position: -300% 0; } }

/* ---------- perks row ---------- */
.perks-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; padding: 30px 0; border-block: 1px solid var(--line); }
.perk { display: flex; gap: 14px; align-items: flex-start; }
.perk svg { flex: none; width: 38px; height: 38px; padding: 9px; border-radius: 10px; background: rgba(var(--violet-rgb), .14); color: var(--violet-hi); }
.perk b { display: block; font-size: 15px; }
.perk span { font-size: 14px; color: var(--mute); line-height: 1.45; }

/* ---------- sections ---------- */
.sec { padding: clamp(60px, 8vw, 100px) 0; }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; margin-bottom: 30px; }
.sec-head .lede { margin: 8px 0 0; }

/* ---------- product cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 20px; }
.card {
    position: relative; display: flex; flex-direction: column; border-radius: 16px; overflow: hidden;
    background: var(--panel); border: 1px solid var(--line); transition: border-color .25s, transform .3s var(--ease);
}
.card:hover { border-color: rgba(var(--violet-rgb), .55); transform: translateY(-3px); }
.card-media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--panel-2); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card-media img { transform: scale(1.04); }
.card-body { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px 18px; flex: 1; }
.card-body .kind { font-size: 12.5px; font-weight: 600; color: var(--violet-hi); }
.card-body h3 { margin: 0; font-size: 17px; font-weight: 700; line-height: 1.3; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 14px; }
.pr { font: 600 17px/1 var(--mono); white-space: nowrap; }
.pr s { color: var(--dim); font-size: 13px; margin-right: 6px; font-weight: 400; }
/* bottom corner: product banners usually have their title top-left */
.card-media .tag { top: auto; bottom: 12px; left: auto; right: 12px; }
.card-media .tag-incart { top: 12px; bottom: auto; }
.tag { position: absolute; top: 12px; left: 12px; z-index: 2; padding: 5px 9px; border-radius: 7px; font-size: 12px; font-weight: 700; }
.tag-sale { background: var(--red); color: #fff; }
.tag-xmas { background: rgba(7,6,11,.8); color: #fff; border: 1px solid rgba(255,255,255,.2); backdrop-filter: blur(6px); }
.tag-incart { left: auto; right: 12px; background: var(--ink); color: var(--bg); }
.card.skel { min-height: 330px; background: linear-gradient(100deg, var(--panel) 30%, var(--panel-2) 50%, var(--panel) 70%) 0 0 / 300% 100%; animation: shimmer 1.4s linear infinite; }
.fallback { display: grid; place-items: center; width: 100%; height: 100%; }
.fallback img { width: 56px !important; height: 56px !important; opacity: .5; }
.empty-search { padding: 50px 0; text-align: center; color: var(--mute); }

/* ---------- docs strip ---------- */
.strip {
    display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
    padding: clamp(24px, 4vw, 40px); border-radius: 18px; border: 1px solid var(--line-2);
    background: linear-gradient(120deg, rgba(var(--violet-rgb), .16), rgba(255,255,255,.02) 60%);
}
.strip .h2 { margin: 6px 0 6px; font-size: clamp(22px, 2.6vw, 30px); }
.strip p { margin: 0; color: var(--mute); max-width: 56ch; }

/* ---------- shop ---------- */
.page-head { padding: clamp(36px, 6vw, 70px) 0 26px; }
.page-head h1 { font-weight: 800; font-size: clamp(34px, 5vw, 56px); line-height: 1.05; margin: 10px 0 0; }
.page-head h1 small { font: 500 16px/1 var(--mono); color: var(--dim); margin-left: 8px; letter-spacing: 0; }
.page-head .lede { margin: 12px 0 0; }
.shop-tools { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 26px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips a { padding: 8px 14px; border-radius: 10px; border: 1px solid var(--line-2); font-size: 14px; color: var(--mute); transition: all .2s; }
.chips a:hover { color: var(--ink); }
.chips a.on { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.search { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 14px; min-width: 260px; border-radius: 12px; border: 1px solid var(--line-2); color: var(--dim); transition: border-color .2s; }
.search:focus-within { border-color: var(--violet); }
.search input { flex: 1; border: 0; outline: 0; background: none; font-size: 15px; color: var(--ink); }

/* ---------- product ---------- */
.crumbs { display: flex; align-items: center; gap: 8px; padding: 26px 0 22px; font-size: 14px; color: var(--dim); }
.crumbs a { color: var(--mute); }
.crumbs a:hover { color: var(--ink); }
.crumbs b { color: var(--ink); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.product { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(26px, 4vw, 56px); align-items: start; padding-bottom: 80px; }
.product-media { position: sticky; top: 90px; }
.frame { border-radius: 18px; overflow: hidden; background: var(--panel); border: 1px solid var(--line); aspect-ratio: 16 / 10; }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.product-info .kind { font-size: 14px; font-weight: 600; color: var(--violet-hi); }
.product-info h1 { font-weight: 800; font-size: clamp(28px, 3.2vw, 42px); line-height: 1.08; margin: 10px 0 18px; }
.price-big { display: flex; align-items: baseline; gap: 10px; margin-bottom: 22px; font: 600 30px/1 var(--mono); }
.price-big s { font-size: 17px; color: var(--dim); font-weight: 400; }
.price-big small { font-size: 13px; color: var(--dim); font-weight: 500; }
.approx { font: 400 12.5px/1.4 var(--sans); color: var(--dim); margin: -12px 0 20px; }
.buy-row { display: flex; gap: 10px; margin-bottom: 18px; }
.buy-row .btn:first-child { flex: 1; height: 52px; }
.buy-row .icon-btn { width: 52px; height: 52px; border-color: var(--line-2); }
.ticks { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 9px; font-size: 14.5px; color: var(--mute); }
.ticks li { display: flex; align-items: center; gap: 10px; }
.ticks svg { color: var(--green); flex: none; }
.ticks b { color: var(--ink); font-family: var(--mono); font-weight: 600; }
.extra-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.prose { color: var(--mute); font-size: 15.5px; line-height: 1.75; border-top: 1px solid var(--line); padding-top: 24px; overflow-wrap: anywhere; }
.prose h1, .prose h2, .prose h3, .prose h4 { color: var(--ink); line-height: 1.25; margin: 1.5em 0 .5em; }
.prose h1 { font-size: 22px; } .prose h2 { font-size: 19px; } .prose h3, .prose h4 { font-size: 16px; }
.prose a { color: var(--violet-hi); text-decoration: underline; text-underline-offset: 3px; }
.prose img { border-radius: 12px; margin: 14px 0; }
.prose ul { padding-left: 20px; }
.prose li::marker { color: var(--violet); }
.prose strong, .prose b { color: var(--ink); }
.related { padding: 70px 0 100px; border-top: 1px solid var(--line); }

/* ---------- cart ---------- */
.cart-grid { display: grid; grid-template-columns: 1fr 380px; gap: 28px; align-items: start; padding-bottom: 100px; }
.cart-items { display: grid; gap: 12px; }
.cart-row { display: grid; grid-template-columns: 96px 1fr auto 40px; gap: 16px; align-items: center; padding: 12px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); transition: opacity .3s, transform .3s var(--ease); }
.cart-row.gone { opacity: 0; transform: translateX(20px); }
.cart-thumb { width: 96px; aspect-ratio: 16 / 10; border-radius: 9px; overflow: hidden; background: var(--panel-2); }
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-name { font-weight: 700; font-size: 16px; line-height: 1.3; }
.cart-name:hover { color: var(--violet-hi); }
.cart-meta { display: grid; gap: 4px; }
.cart-meta span { font-size: 13px; color: var(--dim); }
.cart-price { font: 600 16px/1 var(--mono); }
.summary { position: sticky; top: 90px; padding: 24px; border-radius: 16px; border: 1px solid var(--line-2); background: var(--panel); display: grid; gap: 14px; }
.summary h3 { margin: 0; font-size: 18px; font-weight: 800; }
.sub-line { display: flex; justify-content: space-between; font-size: 14.5px; }
.total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 14px; border-top: 1px solid var(--line); }
.total b { font: 600 24px/1 var(--mono); }
.total small { font-size: 12px; color: var(--dim); }
.coupon-form { display: flex; gap: 8px; }
.coupon-form input { flex: 1; min-width: 0; height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line-2); background: transparent; outline: 0; font-size: 14px; }
.coupon-form input:focus { border-color: var(--violet); }
.coupons { display: flex; flex-wrap: wrap; gap: 8px; }
.coupon { display: inline-flex; align-items: center; gap: 6px; padding: 5px 6px 5px 11px; border-radius: 999px; background: rgba(61,220,151,.12); color: var(--good); font: 500 13px/1 var(--mono); }
.coupon button { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; border: 0; background: none; color: inherit; padding: 0; }
.welcome-apply { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px dashed rgba(47,191,122,.6); background: rgba(47,191,122,.08); text-align: left; font-size: 14px; transition: background .2s; }
.welcome-apply:hover { background: rgba(47,191,122,.15); }
.welcome-apply b { font-family: var(--mono); color: var(--good); }
#cartBox.busy { opacity: .5; pointer-events: none; transition: opacity .2s; }
.empty { display: grid; justify-items: center; gap: 6px; padding: 60px 20px 100px; text-align: center; }
.empty svg { color: var(--violet-hi); margin-bottom: 8px; }
.empty h3 { margin: 0; font-weight: 800; font-size: clamp(22px, 2.6vw, 30px); }
.empty p { margin: 0 0 20px; }

/* ---------- auth + cms ---------- */
.auth { min-height: calc(100vh - 360px); display: grid; place-items: center; padding: 50px 0 90px; }
.auth-card { width: 100%; max-width: 430px; padding: 38px 32px; border-radius: 18px; border: 1px solid var(--line-2); background: var(--panel); text-align: center; display: grid; justify-items: center; gap: 12px; }
.auth-card img { width: 64px; }
.auth-card h1 { margin: 4px 0 0; font-weight: 800; font-size: 28px; }
.auth-card p { margin: 0 0 6px; }
.cms { padding-bottom: 100px; }
.cms .prose { border-top: 0; padding-top: 0; max-width: 760px; }

/* ---------- toast + modal ---------- */
.toast {
    position: fixed; left: 50%; bottom: 24px; z-index: 95; display: flex; align-items: center; gap: 12px;
    padding: 12px 12px 12px 18px; border-radius: 12px; background: var(--ink); color: var(--bg); font-weight: 600; font-size: 14.5px;
    transform: translate(-50%, 0); animation: toast-in .45s var(--ease); box-shadow: 0 20px 50px rgba(0,0,0,.5);
}
.toast::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--violet); }
.toast-success::before { background: #18a96a; }
.toast-error::before { background: #e0464b; }
.toast button { width: 26px; height: 26px; border: 0; border-radius: 7px; background: rgba(0,0,0,.08); color: inherit; }
.toast.out { opacity: 0; transform: translate(-50%, 16px); transition: all .35s var(--ease); }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 20px); } }
.modal { position: fixed; inset: 0; z-index: 96; display: grid; place-items: center; padding: 20px; background: rgba(0,0,0,.8); }
.video-card { position: relative; width: min(960px, 100%); }
.video-frame { aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #000; }
.video-frame iframe { width: 100%; height: 100%; border: 0; }
.modal-x { position: absolute; top: -48px; right: 0; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line-2); background: none; font-size: 22px; line-height: 1; }

/* ---------- footer ---------- */
.footer { margin-top: 30px; border-top: 1px solid var(--line); background: #050408; }
.foot-cols { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 28px; padding: 54px 0 40px; }
.foot-cols h4 { margin: 0 0 14px; font-size: 13px; font-weight: 600; color: var(--ink); }
.foot-cols a, .foot-cols span { display: block; width: fit-content; padding: 4px 0; color: var(--mute); font-size: 14.5px; transition: color .2s; }
.foot-cols a:hover { color: var(--ink); }
.foot-cols .foot-about .brand { display: inline-flex; color: var(--ink); font-size: 17px; }
.foot-about p { color: var(--mute); max-width: 34ch; margin: 14px 0 18px; font-size: 14.5px; }
.socials { display: flex; gap: 8px; }
.socials a { display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border-radius: 10px; border: 1px solid var(--line-2); }
.socials a:hover { border-color: var(--ink); }
.foot-legal { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding: 22px 0 28px; border-top: 1px solid var(--line); font-size: 13px; color: var(--dim); }
.foot-legal p { margin: 0; max-width: 70ch; line-height: 1.55; }
.foot-legal a { text-decoration: underline; text-underline-offset: 2px; }
.foot-legal a:hover { color: var(--ink); }
.foot-legal .powered { text-decoration: none; }
.powered { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 10px; border: 1px solid var(--line-2); color: var(--mute); font-size: 12.5px; white-space: nowrap; }
.powered img { height: 18px; width: auto; }
.powered:hover { border-color: var(--ink); color: var(--ink); }

/* ---------- Christmas ---------- */
.snow { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 50; }
.holiday .hero::after { /* frost line under the hero */
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent);
}
.holiday .chip b { background: var(--red); }
.xmas-only { display: none !important; }
.holiday .xmas-only { display: inline-flex !important; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
    .perks-row { grid-template-columns: repeat(2, 1fr); }
    .foot-cols { grid-template-columns: repeat(2, 1fr); }
    .foot-about { grid-column: 1 / -1; }
    .cart-grid { grid-template-columns: 1fr; }
    .summary { position: static; }
}
@media (max-width: 860px) {
    .hero-grid, .product { grid-template-columns: 1fr; }
    .product-media { position: static; }
    .nav-links {
        position: fixed; left: 12px; right: 12px; top: 76px; z-index: 5; margin: 0;
        flex-direction: column; gap: 2px; padding: 10px; border-radius: 16px;
        background: var(--panel); border: 1px solid var(--line-2); box-shadow: 0 30px 60px -20px rgba(0,0,0,.8);
        opacity: 0; transform: translateY(-8px) scale(.98); pointer-events: none; transition: opacity .25s, transform .3s var(--ease);
    }
    .nav.folded .nav-links { top: 76px; }
    .nav.open .nav-links { opacity: 1; transform: none; pointer-events: auto; }
    .nav-links a { padding: 12px 14px; font-size: 16px; }
    .menu-btn { display: grid; }
    .hide-sm { display: none !important; }
    .nav.folded .nav-inner { margin: 10px 12px 0; max-width: calc(100% - 24px); }
    .nav.folded .brand .word { max-width: 0; opacity: 0; }
    /* blur on the pill would make the fixed menu position against it */
    .nav.open .nav-inner { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--panel); }
}
@media (max-width: 600px) {
    .perks-row { grid-template-columns: 1fr; }
    .bar { font-size: 12.5px; gap: 8px 12px; }
    .bar .count { display: none; }
    .search { min-width: 0; width: 100%; }
    .cart-row { grid-template-columns: 72px 1fr 36px; }
    .cart-thumb { width: 72px; grid-row: 1 / span 2; }
    .cart-price { grid-column: 2; grid-row: 2; font-size: 14px; }
    .cart-row .icon-btn { grid-row: 1 / span 2; grid-column: 3; }
    .nav-right .btn-sm .lbl { display: none; }
    .nav-right .btn-sm { width: 40px; padding: 0; }
    .brand .word { display: none; }
    .nav-inner { gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
    .js .rv { opacity: 1; transform: none; }
}
