/* LGL Studios store theme */

:root {
  --font-display: "Oswald", ui-sans-serif, system-ui, sans-serif;
  --font-sans: "Outfit", ui-sans-serif, system-ui, sans-serif;
  --ink: #050506;
  --charcoal: #0b0b0e;
  --panel: #111116;
  --card: #16161c;
  --raised: #1c1c24;
  --line: rgba(255, 255, 255, 0.08);
  --red: #e31b23;
  --red-bright: #ff2d36;
  --red-deep: #7a1016;
  --mist: #b9b4ac;
  --paper: #f4f1ea;
  --radius: 1.4rem;
  --radius-sm: 1rem;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.55;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: 0.6; }
h1, h2, h3, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
[hidden] { display: none !important; }

::selection { background: rgba(227, 27, 35, 0.35); color: #fff; }
:focus-visible { outline: 2px solid var(--red-bright); outline-offset: 3px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  padding: 0.6rem 1rem; border-radius: 999px; background: var(--red); color: #fff;
}
.skip-link:focus { top: 1rem; }

/* ---------- Layout ---------- */

.page-shell {
  overflow-x: hidden;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(227, 27, 35, 0.16), transparent 55%),
    radial-gradient(900px 500px at -10% 20%, rgba(122, 16, 22, 0.2), transparent 50%),
    var(--ink);
}

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 1;
  opacity: 0.045;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.site-main { position: relative; z-index: 2; flex: 1; }

.wrap { width: 100%; max-width: 80rem; margin: 0 auto; padding: 0 1rem; }
.wrap.wide { max-width: 72rem; }
.wrap.medium { max-width: 56rem; }
.wrap.narrow { max-width: 48rem; }
.center { text-align: center; }
.center-row { justify-content: center; }
.page-pad { padding-top: 2.5rem; padding-bottom: 4rem; }
.page-pad-lg { padding-top: 5rem; padding-bottom: 5rem; }
.pad-xl { padding-top: 6rem; padding-bottom: 6rem; }
.page-head { padding-top: 3rem; padding-bottom: 1.5rem; }
.section { margin-top: 4rem; }
.section-sm { margin-top: 2rem; }

.stack { display: grid; gap: 1rem; }
.stack-sm { display: grid; gap: 0.5rem; }
.row-gap { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.row-gap-sm { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; margin-top: 0.75rem; }
.row-between { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 0.75rem; }

.grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
.grid-2-tight { display: grid; gap: 1rem; grid-template-columns: 1fr; }

@media (min-width: 640px) {
  .wrap { padding: 0 1.5rem; }
  .grid-2, .grid-3, .grid-4, .grid-2-tight { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------- Type ---------- */

.display-xl, .display-xl-sm, .display-lg, .display-md, .display-sm, .brand-name, .footer-head {
  font-family: var(--font-display);
  letter-spacing: 0.03em;
  line-height: 1.05;
  font-weight: 600;
}
.display-xl { font-size: clamp(3.5rem, 11vw, 7.5rem); font-weight: 700; line-height: 0.92; margin-top: 0.75rem; }
.display-xl-sm { font-size: clamp(2.4rem, 6vw, 3rem); margin-top: 0.5rem; }
.display-lg { font-size: clamp(2.3rem, 5vw, 3rem); margin-top: 0.5rem; }
.display-md { font-size: 1.875rem; }
.display-sm { font-size: 1.5rem; }

.kicker, .kicker-sm {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
}
.kicker-sm { letter-spacing: 0.18em; }
.lead { margin-top: 1rem; font-size: 1.15rem; color: var(--mist); }
.lead-sm { margin-top: 0.75rem; max-width: 42rem; }
.muted { color: var(--mist); }
.small { font-size: 0.875rem; }
.strong { font-weight: 600; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.8rem; }
.text-red { color: var(--red); }
.text-link { color: var(--red); }
.text-link:hover { text-decoration: underline; }
.muted-link { color: var(--mist); font-size: 0.875rem; }
.muted-link:hover { color: var(--red); }
.break { overflow-wrap: anywhere; word-break: break-word; }
.clamp-2 {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  font-size: 0.875rem;
}
.prose { display: grid; gap: 1rem; margin-top: 1rem; }
.page-pad > .muted, .page-pad-lg > .muted, .page-pad-lg .muted { margin-top: 0.75rem; }
.page-pad-lg .btn { margin-top: 1.5rem; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid transparent;
  transition: background 200ms ease, border-color 200ms ease, backdrop-filter 200ms ease;
}
.site-header.is-scrolled {
  background: rgba(5, 5, 6, 0.82);
  border-bottom-color: var(--line);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 5rem; }
.brand { display: inline-flex; align-items: center; gap: 0.75rem; }
.brand img { width: 56px; height: 56px; border-radius: 0.9rem; object-fit: cover; }
.footer-brand .brand img { width: 48px; height: 48px; }
.brand-text { display: grid; }
.brand-name { font-size: 1.35rem; letter-spacing: 0.08em; }
.brand-sub { font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--mist); }

.nav-links { display: none; align-items: center; gap: 0.25rem; }
.nav-link {
  position: relative;
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  font-size: 0.9rem;
  color: var(--mist);
  transition: color 200ms ease, background 200ms ease;
}
.nav-link:hover { color: var(--paper); }
.nav-link.is-active { color: var(--paper); background: rgba(227, 27, 35, 0.12); }
.count-pill {
  min-width: 1.25rem; height: 1.25rem; padding: 0 0.35rem;
  display: inline-grid; place-items: center;
  border-radius: 999px; background: var(--red); color: #fff;
  font-size: 0.68rem; font-weight: 700;
}

.nav-actions { display: flex; align-items: center; gap: 0.5rem; }
.icon-btn {
  position: relative;
  display: inline-grid; place-items: center;
  width: 2.75rem; height: 2.75rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--paper);
  transition: border-color 200ms ease, background 200ms ease;
}
.icon-btn:hover { border-color: rgba(227, 27, 35, 0.6); background: rgba(227, 27, 35, 0.08); }
.cart-count {
  position: absolute; top: -0.3rem; right: -0.3rem;
  min-width: 1.25rem; height: 1.25rem; padding: 0 0.3rem;
  display: grid; place-items: center;
  border-radius: 999px; background: var(--red); color: #fff;
  font-size: 0.68rem; font-weight: 700;
}
.user-chip {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.25rem 0.75rem 0.25rem 0.25rem;
  border: 1px solid var(--line); border-radius: 999px;
  font-size: 0.85rem;
}
.user-chip img { width: 28px; height: 28px; border-radius: 999px; }
.user-chip span { max-width: 9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.mobile-menu { border-top: 1px solid var(--line); background: rgba(5, 5, 6, 0.95); }
.mobile-menu-inner { display: grid; gap: 0.25rem; padding-top: 1rem; padding-bottom: 1.25rem; }
.mobile-link { padding: 0.75rem 0.5rem; border-radius: 0.75rem; color: var(--mist); }
.mobile-link.is-active, .mobile-link:hover { color: var(--paper); background: rgba(255, 255, 255, 0.04); }
.mobile-menu .btn { margin-top: 0.75rem; }

.show-md { display: inline-grid; }
.hide-md { display: none; }
.hide-sm { display: none; }
@media (min-width: 640px) { .hide-sm { display: inline-flex; } }
@media (min-width: 1024px) {
  .nav-links { display: flex; }
  .show-md { display: none; }
  .hide-md { display: inline-flex; }
  .icon-btn.hide-md { display: inline-grid; }
}

/* ---------- Footer ---------- */

.site-footer { position: relative; z-index: 2; margin-top: 5rem; border-top: 1px solid var(--line); background: rgba(11, 11, 14, 0.7); }
.footer-grid { display: grid; gap: 2.5rem; padding-top: 3rem; padding-bottom: 2rem; }
.footer-brand .muted { margin-top: 1rem; max-width: 22rem; font-size: 0.9rem; }
.footer-head { font-size: 1.1rem; letter-spacing: 0.12em; text-transform: uppercase; }
.footer-list { display: grid; gap: 0.45rem; margin-top: 1rem; font-size: 0.9rem; color: var(--mist); }
.footer-list a:hover { color: var(--red); }
.footer-copy { padding-bottom: 2rem; font-size: 0.8rem; color: var(--mist); }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }

/* ---------- Buttons, badges, inputs ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.04em;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: background 200ms ease, color 200ms ease, box-shadow 200ms ease, transform 200ms ease, border-color 200ms ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:disabled { transform: none; }
.btn-primary {
  background: linear-gradient(180deg, #ff3940, var(--red));
  color: #fff;
  box-shadow: 0 8px 24px rgba(227, 27, 35, 0.32);
}
.btn-primary:hover { background: linear-gradient(180deg, var(--red-bright), #d4141c); box-shadow: 0 10px 28px rgba(255, 45, 54, 0.42); }
.btn-secondary { background: rgba(255, 255, 255, 0.03); color: var(--paper); border-color: var(--line); }
.btn-secondary:hover { border-color: rgba(227, 27, 35, 0.6); background: rgba(227, 27, 35, 0.08); }
.btn-xs { height: 2.25rem; padding: 0 0.75rem; font-size: 0.75rem; }
.btn-sm { height: 2.5rem; padding: 0 1rem; font-size: 0.875rem; }
.btn-md { height: 2.75rem; padding: 0 1.5rem; font-size: 0.9rem; }
.btn-lg { height: 3.25rem; padding: 0 1.75rem; }
.btn-xl { height: 3.5rem; padding: 0 1.5rem; font-size: 0.875rem; letter-spacing: 0.18em; }
.btn-block { width: 100%; }

.badges { position: absolute; top: 0.75rem; left: 0.75rem; display: flex; flex-wrap: wrap; gap: 0.4rem; z-index: 2; }
.badges-static { position: static; }
.badge {
  display: inline-flex; align-items: center;
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  font-size: 0.65rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
}
.badge-sale { background: var(--red); color: #fff; }
.badge-new { background: var(--paper); color: var(--ink); }
.badge-popular { background: rgba(255, 255, 255, 0.1); color: var(--paper); border: 1px solid var(--line); }
.badge-best { background: linear-gradient(90deg, #ff3940, #ff8a3d); color: #fff; }
.badge-owned { background: #0f6b3a; color: #fff; }

.input, .field-input, .select, .textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(5, 5, 6, 0.65);
  color: var(--paper);
}
.input { border-radius: 999px; padding: 0.85rem 1.1rem 0.85rem 2.8rem; }
.input:focus, .field-input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: rgba(227, 27, 35, 0.7);
  box-shadow: 0 0 0 4px rgba(227, 27, 35, 0.12);
}
.search-field { position: relative; display: block; }
.search-field > .icon { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--mist); pointer-events: none; }
.select { border-radius: 999px; padding: 0.8rem 1rem; background-color: var(--ink); }
.textarea { border-radius: 1rem; padding: 0.75rem 1rem; resize: vertical; }

.field { display: grid; gap: 0.35rem; font-size: 0.875rem; color: var(--mist); }
.field-input { border-radius: 1rem; padding: 0.75rem 1rem; background: var(--ink); }
textarea.field-input { min-height: 6rem; resize: vertical; }
.hint { font-size: 0.75rem; line-height: 1.5; color: rgba(185, 180, 172, 0.85); }
.file-input { font-size: 0.85rem; color: var(--mist); }
.file-input::file-selector-button {
  margin-right: 0.75rem; padding: 0.45rem 1rem;
  border: 0; border-radius: 999px;
  background: var(--red); color: #fff;
  font-size: 0.75rem; font-weight: 600; cursor: pointer;
}
.check { display: flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; color: var(--paper); }
.check input, .perm-option input { accent-color: var(--red); width: 1rem; height: 1rem; }
.perm-option { display: flex; align-items: flex-start; gap: 0.75rem; padding: 0.75rem; border: 1px solid var(--line); border-radius: 1rem; }
.perm-option span { display: grid; gap: 0.15rem; }
.upload-preview { width: 6rem; height: 6rem; object-fit: cover; border-radius: 0.75rem; border: 1px solid var(--line); }

/* ---------- Cards and media ---------- */

.card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 40%), var(--card);
  border: 1px solid var(--line);
  border-radius: 1.15rem;
  transition: transform 280ms ease, border-color 280ms ease, box-shadow 280ms ease;
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(227, 27, 35, 0.55);
  box-shadow: 0 0 0 1px rgba(227, 27, 35, 0.15), 0 22px 50px rgba(0, 0, 0, 0.45), 0 0 40px rgba(227, 27, 35, 0.12);
}
.card-link { display: flex; flex-direction: column; height: 100%; }
.card-body { display: grid; gap: 0.6rem; padding: 1.25rem; }
.card-body .btn { margin-top: 0.4rem; }
.card-title { font-family: var(--font-display); font-size: 1.6rem; letter-spacing: 0.03em; line-height: 1.1; overflow-wrap: anywhere; }

.media-box { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--charcoal); }
.media-box .media, .media-box .visual { width: 100%; height: 100%; object-fit: cover; }
.media-box .media { transition: transform 500ms ease; }
.card:hover .media-box .media { transform: scale(1.04); }
.rounded { border-radius: var(--radius-sm); border: 1px solid var(--line); }

.price { display: flex; align-items: baseline; gap: 0.5rem; }
.price s { color: var(--mist); }
.price strong { font-family: var(--font-display); font-weight: 600; color: var(--paper); }
.price-md strong { font-size: 1.35rem; }
.price-md s { font-size: 0.85rem; }
.price-lg strong { font-size: 2rem; }
.price-xl { margin-top: 1.5rem; align-items: flex-end; gap: 0.75rem; }
.price-xl strong { font-size: 3rem; line-height: 1; }
.price-xl s { font-size: 1.25rem; }

.rating { display: flex; align-items: center; gap: 0.4rem; font-size: 0.8rem; color: var(--mist); }
.rating-lg { font-size: 0.95rem; }
.stars { color: var(--red); letter-spacing: 0.08em; }
.countdown { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--red); }
.countdown-lg { margin-top: 0.75rem; font-size: 0.875rem; letter-spacing: 0.16em; }

.category-card { display: flex; align-items: center; gap: 1rem; padding: 1.25rem; }
.category-icon {
  display: grid; place-items: center; flex: none;
  width: 3rem; height: 3rem; border-radius: 1rem;
  background: rgba(227, 27, 35, 0.12); color: var(--red-bright);
  border: 1px solid rgba(227, 27, 35, 0.3);
}
.category-text { display: grid; gap: 0.15rem; }
.category-name { font-family: var(--font-display); font-size: 1.35rem; letter-spacing: 0.03em; font-weight: 600; }

.panel { padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); min-width: 0; overflow: hidden; }
.panel-sm { padding: 1.25rem; }
.panel > .display-md + * { margin-top: 1rem; }
.subpanel { padding: 1rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: rgba(5, 5, 6, 0.4); }
.list-card { padding: 1rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--card); }
.list-card .stack-sm { margin-top: 1rem; }
@media (min-width: 640px) { .panel { padding: 2rem; } }

.empty-state { display: grid; justify-items: center; gap: 0.75rem; padding: 4rem 1rem; text-align: center; border: 1px dashed var(--line); border-radius: var(--radius); }

/* ---------- Animation ---------- */

.reveal { opacity: 0; transform: translateY(18px); animation: rise 700ms ease forwards; }
.delay-1 { animation-delay: 80ms; }
.delay-2 { animation-delay: 160ms; }
.delay-3 { animation-delay: 240ms; }
.delay-4 { animation-delay: 320ms; }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes pulse-glow { 0%, 100% { opacity: 0.45; } 50% { opacity: 0.8; } }
@keyframes drift { 0% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(12px, -18px, 0); } 100% { transform: translate3d(0, 0, 0); } }

.orb { position: absolute; border-radius: 999px; filter: blur(40px); animation: pulse-glow 7s ease-in-out infinite, drift 14s ease-in-out infinite; pointer-events: none; }
.orb-a { width: 28rem; height: 28rem; right: -6rem; top: -8rem; background: rgba(227, 27, 35, 0.25); }
.orb-b { width: 20rem; height: 20rem; left: -6rem; bottom: -6rem; background: rgba(122, 16, 22, 0.35); animation-delay: -3s; }

/* ---------- Home ---------- */

.slash-grid {
  background-image:
    linear-gradient(115deg, transparent 0 46%, rgba(227, 27, 35, 0.07) 46% 47%, transparent 47%),
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 100% 100%, 72px 72px, 72px 72px;
}
.hero { position: relative; overflow: hidden; padding: 3rem 0 4rem; }
.hero-grid { position: relative; display: grid; gap: 3rem; align-items: center; }
.hero-copy .muted { margin-top: 0.75rem; max-width: 36rem; }
.text-red { color: var(--red); }
.hero .display-xl .text-red { display: block; }
.spotlight .card-body .btn { justify-self: start; }
.spotlight-empty { padding: 3rem 2rem; text-align: center; }
@media (min-width: 1024px) {
  .hero { padding: 5rem 0 6rem; }
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; }
}

.live-strip {
  position: relative;
  display: grid; gap: 0.75rem;
  margin-top: 0.5rem;
}
.live-item {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: rgba(17, 17, 22, 0.8);
}
.live-item strong { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; }
.live-dot { width: 0.6rem; height: 0.6rem; border-radius: 999px; background: #2ecc71; box-shadow: 0 0 12px rgba(46, 204, 113, 0.7); }
@media (min-width: 768px) { .live-strip { grid-template-columns: repeat(3, 1fr); } }

.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }

.review-card { display: grid; gap: 0.75rem; padding: 1.5rem; }
.review-card blockquote { font-size: 1.05rem; color: var(--paper); overflow-wrap: anywhere; }
.review-card a { color: var(--red); }

/* ---------- Products ---------- */

.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; font-size: 0.85rem; color: var(--mist); }
.crumbs li { display: inline-flex; align-items: center; gap: 0.4rem; }
.crumbs a:hover { color: var(--red); }
.crumbs [aria-current] { color: var(--paper); }
.crumbs + .kicker, .crumbs + * { margin-top: 1rem; }

.filter-bar { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.filter-bar .grow { flex: 1 1 18rem; }
.select-wrap { flex: 0 1 14rem; }
.pills { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.25rem 0; }
.pill {
  padding: 0.5rem 1rem;
  border: 1px solid var(--line); border-radius: 999px;
  font-size: 0.875rem; color: var(--mist);
  transition: color 200ms ease, border-color 200ms ease;
}
.pill:hover { color: var(--paper); }
.pill.is-active { border-color: var(--red); background: var(--red); color: #fff; }
.pills + .muted { margin-bottom: 1.25rem; }

.product-layout { display: grid; gap: 2.5rem; margin-top: 1.5rem; }
@media (min-width: 1024px) { .product-layout { grid-template-columns: 1.1fr 0.9fr; } }
.product-info { min-width: 0; }
.product-info .kicker-sm { margin-top: 1rem; }
.gallery-stage .media-box { border-radius: var(--radius); border: 1px solid var(--line); }
.gallery-thumbs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; margin-top: 0.75rem; }
.thumb { padding: 0; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; background: none; }
.thumb.is-active { border-color: var(--red); box-shadow: 0 0 20px rgba(227, 27, 35, 0.25); }
.thumb .media-box { display: block; }
.video-box { aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); background: #000; }
.video-box iframe, .video-box video { width: 100%; height: 100%; border: 0; }

.buy-grid { display: grid; gap: 0.75rem; margin-top: 2rem; }
.buy-grid + .muted { margin-top: 0.75rem; }
.buy-gap { margin-top: 2rem; }
@media (min-width: 640px) { .buy-grid { grid-template-columns: 1fr 1fr; } }
.owned-actions { display: grid; gap: 0.75rem; margin-top: 2rem; }
.owned-actions + .muted { margin-top: 1rem; }

.spec-list {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
  margin-top: 2rem; padding: 1.25rem;
  border: 1px solid var(--line); border-radius: 1.5rem; background: var(--panel);
  font-size: 0.875rem;
}
.spec-list dt { color: var(--mist); }
.spec-list dd { margin-top: 0.25rem; color: var(--paper); overflow-wrap: anywhere; }

.check-list { display: grid; gap: 0.75rem; }
.check-list li { display: flex; align-items: flex-start; gap: 0.75rem; }
.check-list .icon { flex: none; margin-top: 0.15rem; color: var(--red); }
.tag-list { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tag-list li { padding: 0.5rem 1rem; border: 1px solid var(--line); border-radius: 999px; font-size: 0.875rem; color: var(--mist); }
.quote { display: grid; gap: 0.5rem; padding: 1rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: rgba(5, 5, 6, 0.4); }
.panel .grid-3 { margin-top: 1.25rem; }

/* ---------- Orders ---------- */

.order-card { display: grid; gap: 0.75rem; padding: 1.25rem; }
.order-card.is-pinged { border-color: rgba(227, 27, 35, 0.4); }
.status-pill { padding: 0.25rem 0.75rem; border: 1px solid var(--line); border-radius: 999px; color: var(--paper); }
.order-card > .btn { justify-self: start; }
.review-form { display: grid; gap: 0.6rem; margin-top: 0.5rem; padding: 1rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: rgba(5, 5, 6, 0.4); }
.review-form .btn { justify-self: start; }
.star-picker { display: flex; gap: 0.25rem; }
.star { padding: 0 0.15rem; border: 0; background: none; font-size: 1.6rem; line-height: 1; color: rgba(255, 255, 255, 0.2); }
.star.is-on { color: var(--red); }

/* ---------- Admin ---------- */

.admin-split { display: grid; gap: 2rem; margin-top: 1rem; }
@media (min-width: 1024px) { .admin-split { grid-template-columns: 1fr 0.9fr; align-items: start; } }
.narrow-form { max-width: 42rem; margin-top: 1rem; }
.qr { width: 12rem; height: 12rem; margin-top: 1.5rem; padding: 0.5rem; border-radius: 1rem; background: #fff; }
.page-pad-lg form.stack { margin-top: 1.5rem; }

/* ---------- Overlays ---------- */

.glass { background: rgba(12, 12, 16, 0.92); border: 1px solid var(--line); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.overlay {
  position: fixed; inset: 0; z-index: 60;
  display: flex; align-items: flex-start; justify-content: center;
  padding: 5rem 1rem 1rem;
  background: rgba(0, 0, 0, 0.65);
}
.modal { width: 100%; max-width: 40rem; padding: 1.5rem; border-radius: var(--radius); display: grid; gap: 1rem; }
.modal-head, .drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.search-results { display: grid; gap: 0.5rem; }
.search-results a {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.75rem 1rem; border: 1px solid var(--line); border-radius: var(--radius-sm);
}
.search-results a:hover { border-color: rgba(227, 27, 35, 0.55); }
.search-results .name { font-weight: 600; }
.search-results .price-tag { font-family: var(--font-display); font-size: 1.15rem; }

.overlay-drawer { justify-content: flex-end; align-items: stretch; padding: 0; }
.drawer { width: 100%; max-width: 28rem; height: 100%; display: flex; flex-direction: column; border-radius: 0; }
.drawer-head { padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--line); }
.drawer-body { flex: 1; overflow-y: auto; padding: 1.25rem 1.5rem 2rem; display: grid; align-content: start; gap: 1rem; }
.cart-line { display: grid; grid-template-columns: 1fr auto; gap: 0.5rem; padding: 0.9rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--card); }
.cart-line .name { font-weight: 600; overflow-wrap: anywhere; }
.qty { display: inline-flex; align-items: center; gap: 0.25rem; }
.qty button { width: 2rem; height: 2rem; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 999px; background: none; }
.qty span { min-width: 1.5rem; text-align: center; }
.link-btn { padding: 0; border: 0; background: none; color: var(--mist); font-size: 0.8rem; }
.link-btn:hover { color: var(--red); }
.code-row { display: flex; gap: 0.5rem; }
.code-row .field-input { border-radius: 999px; padding: 0.6rem 1rem; }
.totals { display: grid; gap: 0.35rem; padding-top: 0.75rem; border-top: 1px solid var(--line); font-size: 0.9rem; }
.totals div { display: flex; justify-content: space-between; gap: 1rem; }
.totals .grand { font-family: var(--font-display); font-size: 1.4rem; color: var(--paper); }
.guard { padding: 0.9rem; border: 1px solid rgba(227, 27, 35, 0.4); border-radius: var(--radius-sm); background: rgba(227, 27, 35, 0.08); font-size: 0.875rem; display: grid; gap: 0.6rem; }
.guard .btn { justify-self: start; }

.toasts { position: fixed; right: 1rem; bottom: 1rem; z-index: 80; display: grid; gap: 0.5rem; max-width: min(24rem, calc(100vw - 2rem)); }
.toast {
  padding: 0.85rem 1.1rem;
  border: 1px solid var(--line); border-left: 3px solid var(--red);
  border-radius: 0.9rem;
  background: rgba(17, 17, 22, 0.96);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  font-size: 0.9rem;
  animation: rise 250ms ease forwards;
}
.toast-success { border-left-color: #2ecc71; }

body.no-scroll { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .orb, .card, .toast { animation: none !important; transition: none !important; opacity: 1; transform: none; }
}
