/* ==========================================================================
   Law Marketplace — storefront (clean, Shopify-style)
   ========================================================================== */
:root {
  --ink: #f3f2f7;
  --ink-2: rgba(243, 242, 247, 0.72);
  --ink-3: rgba(243, 242, 247, 0.5);
  --on-ink: #0d0c12;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.18);
  --soft: #17151f;
  --surface: #131119;
  --bg: #0b0a10;
  --brand: #a78bfa;
  --shop: #5a31f4;
  --green: #3ddc97;
  --amber: #f5b544;
  --red: #f26d6d;
  --r: 6px;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 16px/1.6 var(--font); letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.01em; line-height: 1.2; }
p { margin: 0; }
[hidden] { display: none !important; }
svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
::selection { background: rgba(124, 77, 255, 0.4); }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.muted { color: var(--ink-3); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 28px; border-radius: var(--r);
  font-size: 15px; font-weight: 500; letter-spacing: 0.02em; white-space: nowrap;
  transition: background 0.15s, box-shadow 0.15s, color 0.15s, transform 0.1s;
}
.btn:active { transform: scale(0.99); }
.btn-dark { background: var(--ink); color: var(--on-ink); }
.btn-dark:hover { background: #ffffff; }
.btn-outline { box-shadow: inset 0 0 0 1px var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { box-shadow: inset 0 0 0 2px var(--ink); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.45; pointer-events: none; }

/* Placeholder until Shopify's real accelerated checkout button is embedded */
.btn-shop { background: var(--shop); color: #fff; font-weight: 500; gap: 6px; }
.btn-shop:hover { background: #4b22e0; }
.btn-shop b { font-weight: 800; font-style: italic; font-size: 19px; letter-spacing: -0.02em; line-height: 1; }

.link { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; color: var(--ink-2); font-size: 14px; }
.link:hover { color: var(--ink); text-decoration-thickness: 2px; }

/* ---------- Announcement + header ---------- */
.announce { background: #1c1530; color: #d9ccff; border-bottom: 1px solid var(--line); text-align: center; font-size: 13px; letter-spacing: 0.04em; padding: 10px 16px; }

/* The JS-rendered wrapper must not trap the sticky header inside it */
#chrome-top { display: contents; }
.header { position: sticky; top: 0; z-index: 40; background: rgba(11, 10, 16, 0.88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { height: 76px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; justify-self: start; }
.brand img { width: 38px; height: 38px; border-radius: 9px; box-shadow: 0 0 0 1px var(--line); }
.brand-word { font: italic 800 18px/1 var(--font); letter-spacing: 0.01em; display: flex; align-items: baseline; gap: 6px; }
.brand-word span { font: 500 10.5px/1 var(--font); font-style: normal; letter-spacing: 0.22em; color: var(--ink-3); }
.nav { display: flex; gap: 4px; }
.nav a { padding: 8px 14px; font-size: 15px; color: var(--ink-2); }
.nav a:hover, .nav a[aria-current] { color: var(--ink); text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.header-icons { display: flex; align-items: center; gap: 2px; justify-self: end; }
.icon-btn { position: relative; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: var(--ink); transition: background 0.15s; }
.icon-btn:hover { background: var(--soft); }
.icon-btn svg { width: 22px; height: 22px; }
.cart-count {
  position: absolute; right: 4px; bottom: 6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
  display: grid; place-items: center; font-size: 11px; font-weight: 600; background: #7c4dff; color: #fff;
}
.cart-count:empty { display: none; }

/* search bar */
.search-bar { border-bottom: 1px solid var(--line); background: var(--bg); }
.search-bar .container { display: flex; align-items: center; gap: 12px; height: 76px; }
.search-field { flex: 1; display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 16px; border-radius: var(--r); box-shadow: inset 0 0 0 1px var(--line-2); }
.search-field:focus-within { box-shadow: inset 0 0 0 2px var(--ink); }
.search-field input { flex: 1; border: 0; outline: 0; background: none; font-size: 16px; }
.search-results { max-width: 1200px; margin: 0 auto; padding: 0 32px 20px; display: grid; gap: 4px; }
.search-item { display: grid; grid-template-columns: 80px 1fr auto; gap: 14px; align-items: center; padding: 8px; border-radius: var(--r); }
.search-item:hover { background: var(--soft); }
.search-item .tile { border-radius: 6px; }
.search-item b { font-weight: 500; font-size: 15px; }
.search-empty { padding: 4px 8px 8px; color: var(--ink-3); font-size: 14px; }

/* ---------- Home ---------- */
.banner { background: radial-gradient(70% 120% at 50% 0%, rgba(124, 77, 255, 0.22), transparent 70%), var(--bg); border-bottom: 1px solid var(--line); }
.banner-inner { padding: 96px 0 104px; text-align: center; display: grid; justify-items: center; gap: 18px; }
.banner-eyebrow { font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brand); font-weight: 600; }
.banner h1 { font-size: clamp(34px, 5vw, 52px); font-weight: 600; letter-spacing: -0.02em; max-width: 16em; }
.banner p { font-size: 18px; color: var(--ink-2); max-width: 32em; }
.banner .btn { margin-top: 10px; }

.section { padding: 72px 0; }
.section + .section { padding-top: 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.section-head h2 { font-size: 28px; }

.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tab { height: 36px; padding: 0 16px; border-radius: 999px; font-size: 14px; color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); transition: 0.15s; }
.tab:hover { color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.tab.active { background: var(--ink); color: var(--on-ink); box-shadow: none; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 24px; }
.collection + .collection { margin-top: 80px; }
.collection-title {
  text-align: center; margin-bottom: 32px;
  font-size: clamp(28px, 3.6vw, 42px); font-weight: 700; letter-spacing: -0.025em;
}
.grid-empty { padding: 48px 0; text-align: center; color: var(--ink-3); }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { padding: 28px; border-radius: 10px; background: var(--soft); }
.feature-icon { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(124, 77, 255, 0.14); color: var(--brand); margin-bottom: 18px; }
.feature h3 { font-size: 17px; }
.feature p { margin-top: 6px; color: var(--ink-2); font-size: 15px; }

/* collapsible rows (FAQ + product details) */
.collapsibles { border-top: 1px solid var(--line); }
.collapsibles details { border-bottom: 1px solid var(--line); }
.collapsibles summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 18px 2px;
  font-size: 15px; font-weight: 500;
}
.collapsibles summary::-webkit-details-marker { display: none; }
.collapsibles summary > svg:first-child { width: 20px; height: 20px; color: var(--ink-2); }
.collapsibles summary .chev { margin-left: auto; width: 16px; height: 16px; transition: transform 0.2s var(--ease); }
.collapsibles details[open] .chev { transform: rotate(180deg); }
.collapsibles .content { padding: 0 2px 20px; color: var(--ink-2); font-size: 15px; line-height: 1.7; }
.collapsibles .content ul { margin: 0; padding-left: 18px; }
.faq { max-width: 760px; margin: 0 auto; }
.faq-title { text-align: center; font-size: 28px; margin-bottom: 28px; }

/* Discord */
svg.fill { fill: currentColor; stroke: none; }
.nav-discord { display: inline-flex; align-items: center; gap: 7px; }
.nav-discord svg { width: 17px; height: 17px; }
.discord-icon { color: #8b9cff; display: none !important; }
.btn-discord { background: #5865f2; color: #fff; gap: 10px; }
.btn-discord:hover { background: #4752c4; }
.btn-discord svg { width: 20px; height: 20px; }
.discord-band {
  display: flex; align-items: center; gap: 24px; padding: 32px 36px; border-radius: 14px; flex-wrap: wrap;
  background: radial-gradient(80% 140% at 0% 0%, rgba(88, 101, 242, 0.28), transparent 60%), var(--soft);
  box-shadow: inset 0 0 0 1px rgba(88, 101, 242, 0.3);
}
.discord-mark { width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center; background: #5865f2; color: #fff; flex: none; }
.discord-mark svg { width: 32px; height: 32px; }
.discord-copy { flex: 1; min-width: 220px; }
.discord-copy h2 { font-size: 24px; }
.discord-copy p { margin-top: 4px; color: var(--ink-2); }

/* claim screen */
.order-id-box { margin-top: 22px; display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 18px; border-radius: 10px; background: var(--soft); box-shadow: inset 0 0 0 1px var(--line-2); }
.order-id-box span { font-size: 13px; color: var(--ink-3); }
.order-id-box code { flex: 1; font: 600 20px/1 var(--mono); letter-spacing: 0.04em; }
.claim-steps { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 12px; counter-reset: step; }
.claim-steps li { display: grid; grid-template-columns: 30px 1fr; gap: 0 12px; counter-increment: step; }
.claim-steps li::before { content: counter(step); grid-row: span 2; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; font-weight: 600; background: rgba(124, 77, 255, 0.18); color: var(--brand); }
.claim-steps b { font-size: 15px; font-weight: 600; }
.claim-steps span { font-size: 14px; color: var(--ink-3); }

/* payment methods + Cash App */
.field-label { font-size: 14px; color: var(--ink-2); }
.pay-methods { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.pay-method { position: relative; display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--r); cursor: pointer; box-shadow: inset 0 0 0 1px var(--line-2); transition: box-shadow 0.15s, background 0.15s; }
.pay-method input { position: absolute; opacity: 0; pointer-events: none; }
.pay-method b { font-weight: 500; font-size: 15px; }
.pay-method:hover { box-shadow: inset 0 0 0 1px var(--ink-3); }
.pay-method:has(input:checked) { box-shadow: inset 0 0 0 2px var(--ink); background: var(--soft); }
.pay-method:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; }
.pay-icon { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--soft); color: var(--ink-2); flex: none; }
.pay-icon svg { width: 18px; height: 18px; }
.pay-cashapp { background: #00d64f; color: #fff; }
.btn-cash { background: #00d64f; color: #04130a; gap: 10px; font-weight: 600; }
.btn-cash:hover { background: #00c046; }
.btn-cash .dollar { font-size: 18px; }
.done-check.cash { background: #00d64f; color: #fff; }
.cash-box { margin-top: 20px; border-radius: 10px; background: var(--soft); box-shadow: inset 0 0 0 1px var(--line-2); }
.cash-row { display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 16px; border-top: 1px solid var(--line); min-height: 56px; }
.cash-row:first-child { border-top: 0; }
.cash-row span { width: 44px; font-size: 13px; color: var(--ink-3); }
.cash-row b { flex: 1; font-size: 17px; font-weight: 600; }
.cash-row .mono-id { font-family: var(--mono); letter-spacing: 0.03em; }
.dollar { font-weight: 800; font-size: 1.1em; line-height: 1; }
.done-check.cash .dollar { font-size: 28px; }
.claim-steps code { font-family: var(--mono); color: var(--ink); }

/* pay page */
.pay-page { padding: 48px 0 72px; display: grid; justify-items: center; }
.pay-card { width: 100%; max-width: 520px; display: grid; gap: 16px; padding: 32px; border-radius: 14px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2); }
.pay-head h1 { margin-top: 6px; font-size: 28px; }
.pay-head p:not(.vendor) { margin-top: 6px; color: var(--ink-3); }
.pay-amount { display: grid; gap: 4px; padding: 18px; border-radius: 10px; text-align: center; background: var(--soft); }
.pay-amount span { font-size: 13px; color: var(--ink-3); }
.pay-amount b { font-size: 38px; font-weight: 700; letter-spacing: -0.02em; }
.pay-card .cash-box { margin-top: 0; }
.pay-hint { font-size: 13px; color: var(--ink-3); text-align: center; margin-top: -6px; }
.pay-divider { height: 1px; background: var(--line); margin: 4px 0; }
.pay-proof-form { display: grid; gap: 10px; }
.pay-proof-form label { display: grid; gap: 2px; }
.pay-proof-form label b { font-size: 16px; font-weight: 600; }
.pay-proof-form label span { font-size: 14px; color: var(--ink-3); }
.pay-help summary { cursor: pointer; font-size: 13px; color: var(--ink-3); text-decoration: underline; text-underline-offset: 3px; list-style: none; }
.pay-help summary::-webkit-details-marker { display: none; }
.pay-help .content { margin-top: 8px; font-size: 13px; line-height: 1.6; color: var(--ink-2); }
.pay-state { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; align-items: center; padding: 16px; border-radius: 10px; background: rgba(61, 220, 151, 0.08); box-shadow: inset 0 0 0 1px rgba(61, 220, 151, 0.25); }
.pay-state svg { grid-row: span 2; width: 22px; height: 22px; color: var(--green); stroke-width: 2.4; }
.pay-state b { font-size: 15px; }
.pay-state span { grid-column: 2; font-size: 14px; color: var(--ink-2); line-height: 1.5; }
.pay-state.bad { grid-template-columns: 1fr; background: rgba(242, 109, 109, 0.08); box-shadow: inset 0 0 0 1px rgba(242, 109, 109, 0.25); }
.pay-state.bad span { grid-column: 1; }
.pay-check { display: grid; gap: 6px; padding: 16px; border-radius: 10px; background: var(--soft); box-shadow: inset 0 0 0 1px var(--line-2); }
.pay-check-head { display: flex; align-items: center; gap: 12px; }
.pay-check-head b { font-size: 15px; }
.pay-check-time { font-size: 13px; color: var(--ink-3); padding-left: 44px; }
.pulse-dots { display: inline-flex; gap: 5px; width: 32px; }
.pulse-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); animation: dotPulse 1.2s ease-in-out infinite; }
.pulse-dots i:nth-child(2) { animation-delay: 0.15s; }
.pulse-dots i:nth-child(3) { animation-delay: 0.3s; }
@keyframes dotPulse { 0%, 80%, 100% { opacity: 0.25; transform: scale(0.8); } 40% { opacity: 1; transform: scale(1.15); } }
.pay-miss { display: grid; gap: 4px; padding: 14px 16px; border-radius: 10px; background: rgba(245, 181, 68, 0.07); box-shadow: inset 0 0 0 1px rgba(245, 181, 68, 0.22); }
.pay-miss b { font-size: 14px; color: #f8cc7a; }
.pay-miss span { font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.pay-miss code { font-family: var(--mono); color: var(--ink); }
.pay-proof { font-size: 13px; color: var(--ink-3); word-break: break-all; }
.pay-proof code { font-family: var(--mono); color: var(--ink-2); }
.pay-summary { border-top: 1px solid var(--line); padding-top: 12px; display: grid; gap: 6px; }
.pay-line { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--ink-2); }
.pay-line.total { margin-top: 4px; font-weight: 600; color: var(--ink); font-size: 15px; }
@media (max-width: 600px) { .pay-card { padding: 22px 18px; } .pay-page { padding: 24px 0 56px; } }

/* policy pages */
.policy { max-width: 760px; margin: 0 auto; padding: 56px 0 80px; }
.policy h1 { margin-top: 8px; font-size: clamp(30px, 4vw, 40px); }
.policy-updated { margin-top: 8px; font-size: 13px; color: var(--ink-3); }
.policy h2 { margin: 36px 0 10px; font-size: 19px; }
.policy p, .policy li { font-size: 15px; line-height: 1.75; color: var(--ink-2); }
.policy p + p { margin-top: 12px; }
.policy ul { margin: 10px 0; padding-left: 20px; display: grid; gap: 6px; }
.policy a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.policy b { color: var(--ink); font-weight: 600; }
.policy-nav { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); }
.policy-nav a { font-size: 14px; color: var(--ink-3); }
.co-legal a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* loading skeleton */
.pcard.skeleton .tile { animation: pulse 1.4s ease-in-out infinite; }
.sk-line { height: 12px; margin-top: 14px; border-radius: 6px; background: var(--soft); width: 80%; animation: pulse 1.4s ease-in-out infinite; }
.sk-line.short { width: 40%; margin-top: 8px; }
@keyframes pulse { 50% { opacity: 0.55; } }

/* ---------- Footer ---------- */
.footer { margin-top: 40px; border-top: 1px solid var(--line); padding: 48px 0 28px; }
.footer-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer-top p { margin-top: 12px; color: var(--ink-3); font-size: 14px; max-width: 28em; }
.footer-cols { display: flex; gap: 64px; }
.footer-cols div { display: grid; gap: 8px; align-content: start; }
.footer-cols h4 { margin: 0 0 4px; font-size: 14px; font-weight: 600; }
.footer-cols a { font-size: 14px; color: var(--ink-3); }
.footer-cols a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.footer-base { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 12px; color: var(--ink-3); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---------- Product page ---------- */
.breadcrumbs { padding: 20px 0 0; font-size: 13px; color: var(--ink-3); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.breadcrumbs a:hover { color: var(--ink); text-decoration: underline; }
.breadcrumbs svg { width: 12px; height: 12px; }
.product { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 64px; padding: 28px 0 72px; align-items: start; }
.product-media { position: sticky; top: 100px; }
.product-media .tile { border-radius: 10px; }
.product-media .tile-icon { height: 30%; }
.product-info { max-width: 480px; }
.vendor { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); }
.product-title { margin-top: 10px; font-size: clamp(28px, 3.4vw, 38px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
.product-price { margin-top: 16px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 20px; }
.product-price s { font-size: 17px; color: var(--ink-3); }
.sale-badge { padding: 3px 12px; border-radius: 999px; background: var(--ink); color: var(--on-ink); font-size: 13px; letter-spacing: 0.03em; }
.product-note { margin-top: 6px; font-size: 13px; color: var(--ink-3); }
.product-tagline { margin-top: 18px; color: var(--ink-2); }

.opt-label { display: block; margin: 28px 0 10px; font-size: 14px; color: var(--ink-2); }
.addon {
  position: relative; display: grid; grid-template-columns: 20px 1fr auto; gap: 14px; align-items: center;
  padding: 14px 16px; border-radius: var(--r); cursor: pointer; box-shadow: inset 0 0 0 1px var(--line-2);
  transition: box-shadow 0.15s, background 0.15s;
}
.addon + .addon { margin-top: 8px; }
.addon:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.addon input { position: absolute; opacity: 0; pointer-events: none; }
.addon-box { width: 20px; height: 20px; border-radius: 4px; box-shadow: inset 0 0 0 1.5px var(--line-2); display: grid; place-items: center; transition: 0.15s; }
.addon-box svg { width: 13px; height: 13px; stroke-width: 3; color: var(--on-ink); opacity: 0; }
.addon:has(input:checked) { box-shadow: inset 0 0 0 2px var(--ink); background: var(--soft); }
.addon:has(input:checked) .addon-box { background: var(--ink); box-shadow: none; }
.addon:has(input:checked) .addon-box svg { opacity: 1; }
.addon:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; }
.addon b { display: block; font-weight: 500; font-size: 15px; }
.addon span { display: block; font-size: 13px; color: var(--ink-3); }
.addon em { font-style: normal; font-size: 15px; }

.qty { display: inline-flex; align-items: center; height: 48px; border-radius: var(--r); box-shadow: inset 0 0 0 1px var(--line-2); }
.qty button { width: 46px; height: 100%; display: grid; place-items: center; color: var(--ink-2); }
.qty button:hover { color: var(--ink); }
.qty button[disabled] { opacity: 0.3; pointer-events: none; }
.qty button svg { width: 14px; height: 14px; }
.qty output { min-width: 32px; text-align: center; font-size: 15px; font-variant-numeric: tabular-nums; }

.stock-line { margin-top: 22px; display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); }
.stock-line i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(31, 138, 76, 0.15); }
.stock-line.low i { background: var(--amber); box-shadow: 0 0 0 3px rgba(178, 107, 0, 0.15); }
.stock-line.out i { background: var(--red); box-shadow: 0 0 0 3px rgba(196, 48, 43, 0.15); }

.buy-buttons { margin-top: 16px; display: grid; gap: 10px; }
.more-pay { text-align: center; margin-top: 4px; }
.product-desc { margin-top: 32px; color: var(--ink-2); font-size: 15px; line-height: 1.75; }
.product-desc p + p { margin-top: 12px; }
.product-info .collapsibles { margin-top: 28px; }

.not-found { padding: 120px 0; text-align: center; display: grid; gap: 14px; justify-items: center; }

/* ---------- Overlays (cart drawer, checkout) ---------- */
.overlay { position: fixed; inset: 0; z-index: 100; background: rgba(0, 0, 0, 0.6); display: grid; place-items: center; padding: 24px; overflow-y: auto; animation: fade 0.2s var(--ease); }
.overlay.closing { animation: fadeOut 0.18s var(--ease) forwards; }
@keyframes fade { from { opacity: 0; } }
@keyframes fadeOut { to { opacity: 0; } }

.drawer-overlay { place-items: stretch end; padding: 0; }
.drawer { width: min(420px, 100vw); height: 100%; background: var(--surface); border-left: 1px solid var(--line); display: flex; flex-direction: column; animation: slideIn 0.3s var(--ease); }
.drawer-overlay.closing .drawer { animation: slideOut 0.2s var(--ease) forwards; }
@keyframes slideIn { from { transform: translateX(100%); } }
@keyframes slideOut { to { transform: translateX(100%); } }
.drawer:focus, .modal:focus { outline: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 20px; font-weight: 600; }
.drawer-body { flex: 1; overflow-y: auto; padding: 0 24px; }
.drawer-foot { padding: 20px 24px 24px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.total-row { display: flex; justify-content: space-between; align-items: baseline; font-size: 16px; font-weight: 600; }
.total-row span:last-child { font-size: 18px; }
.foot-note { font-size: 13px; color: var(--ink-3); margin-bottom: 6px; }

.line { display: grid; grid-template-columns: 104px 1fr; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.line:last-child { border-bottom: 0; }
.line .tile { border-radius: 6px; }
.line-title { font-size: 15px; font-weight: 500; line-height: 1.35; }
.line-title:hover { text-decoration: underline; text-underline-offset: 3px; }
.line-meta { margin-top: 2px; font-size: 13px; color: var(--ink-3); }
.line-price { margin-top: 4px; font-size: 14px; color: var(--ink-2); }
.line-actions { margin-top: 10px; display: flex; align-items: center; gap: 8px; }
.line .qty { height: 40px; }
.line .qty button { width: 38px; }
.line-remove { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; color: var(--ink-3); }
.line-remove:hover { color: var(--ink); background: var(--soft); }
.line-remove svg { width: 17px; height: 17px; }

.cart-empty { height: 100%; display: grid; place-content: center; justify-items: center; gap: 18px; text-align: center; padding: 40px 0; }
.cart-empty h3 { font-size: 22px; font-weight: 500; }

/* added-to-cart popup */
.added {
  position: fixed; top: 88px; right: max(16px, calc((100vw - 1200px) / 2 + 32px)); z-index: 90; width: 380px; max-width: calc(100vw - 32px);
  background: var(--surface); border-radius: 10px; padding: 18px 20px 20px;
  box-shadow: 0 0 0 1px var(--line-2), 0 20px 50px -12px rgba(0, 0, 0, 0.7);
  animation: drop 0.28s var(--ease);
}
.added.out { animation: dropOut 0.2s var(--ease) forwards; }
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } }
@keyframes dropOut { to { opacity: 0; transform: translateY(-8px); } }
.added-head { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); }
.added-head svg { width: 16px; height: 16px; color: var(--green); stroke-width: 2.4; }
.added-head button { margin-left: auto; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; color: var(--ink-3); }
.added-head button:hover { background: var(--soft); color: var(--ink); }
.added-item { display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: center; margin: 14px 0 16px; }
.added-item b { font-weight: 500; font-size: 15px; }
.added-item span { display: block; font-size: 13px; color: var(--ink-3); }
.added-actions { display: grid; gap: 8px; }
.added-actions .btn { min-height: 44px; }

/* checkout (demo) */
.modal { position: relative; width: 100%; max-width: 480px; background: var(--surface); border-radius: 12px; box-shadow: 0 0 0 1px var(--line), 0 30px 80px -20px rgba(0, 0, 0, 0.8); animation: pop 0.25s var(--ease); }
.overlay.closing .modal { animation: popOut 0.18s var(--ease) forwards; }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(0.98); } }
@keyframes popOut { to { opacity: 0; transform: translateY(6px); } }
.modal-close { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: var(--ink-3); }
.modal-close:hover { background: var(--soft); color: var(--ink); }
.co { padding: 32px; }
.co h2 { font-size: 22px; }
.co-sub { margin-top: 4px; color: var(--ink-3); font-size: 14px; }
.co-summary { margin-top: 22px; border-radius: 8px; background: var(--soft); padding: 4px 16px; }
.co-row { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; font-size: 14px; border-bottom: 1px solid var(--line); }
.co-row:last-child { border-bottom: 0; font-weight: 600; font-size: 15px; }
.co-row small { display: block; color: var(--ink-3); font-size: 13px; }
.field { margin-top: 20px; display: grid; gap: 8px; }
.field label { font-size: 14px; color: var(--ink-2); }
.input { height: 48px; padding: 0 14px; border-radius: var(--r); border: 0; box-shadow: inset 0 0 0 1px var(--line-2); font-size: 15px; outline: 0; background: var(--bg); }
.input:focus { box-shadow: inset 0 0 0 2px var(--ink); }
.input.invalid { box-shadow: inset 0 0 0 2px var(--red); }
.demo-note { margin: 18px 0; padding: 12px 14px; border-radius: 8px; background: rgba(245, 181, 68, 0.1); color: #f8cc7a; font-size: 13px; line-height: 1.5; }
.co-legal { margin-top: 12px; text-align: center; font-size: 12px; color: var(--ink-3); }

.co-loading { padding: 72px 32px; display: grid; justify-items: center; gap: 14px; text-align: center; color: var(--ink-2); }
.spinner { width: 36px; height: 36px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--ink); animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.done-head { text-align: center; display: grid; justify-items: center; gap: 6px; }
.done-check { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: rgba(61, 220, 151, 0.12); color: var(--green); margin-bottom: 6px; }
.done-check svg { width: 24px; height: 24px; stroke-width: 2.4; }
.done-head p { color: var(--ink-3); font-size: 14px; }
.done-head code { font-family: var(--mono); font-size: 13px; color: var(--ink); }
.deliveries { margin-top: 22px; display: grid; gap: 10px; max-height: 40vh; overflow-y: auto; }
.delivery { border-radius: 8px; box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.delivery-head { display: flex; justify-content: space-between; padding: 10px 14px; font-size: 13px; font-weight: 600; background: var(--soft); }
.delivery-head span { color: var(--ink-3); font-weight: 400; }
.delivery-item { display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 14px; }
.delivery-item + .delivery-item { border-top: 1px solid var(--line); }
.delivery-item code { flex: 1; min-width: 0; font: 13px/1.5 var(--mono); white-space: pre-wrap; word-break: break-all; }
.delivery-item.pending code { font-family: var(--font); color: var(--amber); }
.copy-btn { flex: none; height: 32px; padding: 0 12px; border-radius: 6px; font-size: 13px; font-weight: 500; box-shadow: inset 0 0 0 1px var(--line-2); display: inline-flex; align-items: center; gap: 6px; }
.copy-btn:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.copy-btn svg { width: 14px; height: 14px; }
.copy-btn.done { color: var(--green); }
.delivery-msg { margin-top: 14px; padding: 14px 16px; border-radius: 8px; background: var(--soft); font-size: 14px; line-height: 1.65; color: var(--ink-2); white-space: pre-wrap; }

/* toast */
.toasts { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 300; display: grid; gap: 8px; justify-items: center; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 10px; padding: 12px 18px 12px 14px; border-radius: 8px; background: var(--ink); color: var(--on-ink); font-size: 14px; box-shadow: 0 14px 40px -10px rgba(0, 0, 0, 0.4); animation: drop 0.25s var(--ease); }
.toast.out { animation: dropOut 0.2s var(--ease) forwards; }
.toast-icon { display: grid; }
.toast-icon svg { width: 16px; height: 16px; stroke-width: 2.4; }

/* ---------- Responsive ---------- */
@media (max-width: 990px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .product { grid-template-columns: 1fr; gap: 32px; }
  .product-media { position: static; max-width: 560px; }
  .product-info { max-width: none; }
}
@media (max-width: 750px) {
  .container { padding: 0 16px; }
  .announce { font-size: 12px; letter-spacing: 0.02em; }
  .header-inner { height: 64px; grid-template-columns: auto 1fr auto; }
  .nav { display: none; }
  .discord-icon { display: grid !important; }
  .brand-word span { display: none; }
  .banner-inner { padding: 64px 0 72px; }
  .banner p { font-size: 16px; }
  .section { padding: 52px 0; }
  .collection + .collection { margin-top: 56px; }
  .collection-title { margin-bottom: 22px; }
  .grid { grid-template-columns: 1fr; gap: 28px; }
  .features { grid-template-columns: 1fr; }
  .footer-cols { gap: 40px; }
  .search-results { padding: 0 16px 16px; }
  .search-bar .container { height: 64px; }
  .co { padding: 26px 20px; }
  .overlay { padding: 12px; }
  .drawer-overlay { padding: 0; }
  .added { top: 72px; right: 16px; }
  .pcard-title { font-size: 14px; }
  .pcard-price { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
