/* =====================================================================
   Arctic Fantasies — Tebex template
   Standalone stylesheet (does not depend on Exo's base CSS).
   Visual language mirrors arcticfantasies.net: night sky + aurora,
   pixel mountains, frosted glass, chunky 3D ice buttons,
   Lilita One / Outfit / Silkscreen.
   ===================================================================== */

:root {
  /* palette (same as the main website) */
  --ice: #09add3;
  --sky: #139bfd;
  --frost: #bfefff;
  --white: #f4fbff;
  --night: #050b16;
  --deep: #0a1830;
  --ink: #0c1a2e;
  --glass: rgba(10, 24, 48, .55);
  --glass-strong: rgba(10, 24, 48, .86);
  --line: rgba(191, 239, 255, .16);
  --line-strong: rgba(191, 239, 255, .32);
  --muted: #7fb6d6;
  --dim: #6f8aa6;
  --live: #3ef08c;
  --danger: #ff6b6b;

  /* schema-driven (overridden inline from layout.html) */
  --color-primary: var(--ice);
  --color-primary-hover: var(--sky);
  --color-primary-text: #fff;
  --color-primary-text-hover: #fff;
  --color-sale-bg: linear-gradient(90deg, #0b3f7a, var(--color-primary), #0b3f7a);
  --color-sale-text: #fff;

  --radius: 16px;
  --radius-sm: 12px;
  --gap: 24px;
  --wrap: 1240px;
  --gutter: 16px;
  --sidebar: 300px;
  --topbar-h: 68px;

  --font-body: Outfit, system-ui, sans-serif;
  --font-display: "Lilita One", Outfit, sans-serif;
  --font-pixel: Silkscreen, monospace;

  /* Tebex legal footer (injected by Tebex) */
  --tebex-legal-footer-background-color: var(--night);
  --tebex-legal-footer-text-color: var(--dim);
  --tebex-legal-footer-border-color: var(--line);
  --tebex-legal-footer-logo-color: var(--dim);
  --tebex-legal-footer-max-width: var(--wrap);
}
@media (min-width: 600px) { :root { --gutter: 24px; } }

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scrollbar-color: #24507f var(--night); scrollbar-width: thin; }
body {
  min-height: 100vh;
  background: var(--night);
  color: var(--white);
  font: 16px/1.5 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, svg, iframe { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
ul { list-style: none; }
[hidden] { display: none !important; }
::selection { background: rgba(9, 173, 211, .45); color: #fff; }
:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.label { font: 12px/1.2 var(--font-pixel); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 960px) { .desktop-only { display: none !important; } }

/* =====================================================================
   Scene — fixed night sky behind everything
   ===================================================================== */
.scene { position: fixed; inset: 0; overflow: hidden; z-index: 0; pointer-events: none; }
.layer {
  position: absolute; inset: -6%; will-change: transform;
  transform: translate3d(calc(var(--mx, 0) * var(--d, 0) * -1px), calc(var(--my, 0) * var(--d, 0) * -1px), 0);
}
.sky {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 70% at 50% 110%, #123a66 0%, transparent 60%),
    linear-gradient(180deg, #02060e 0%, #061228 45%, #0b2447 80%, #123a66 100%);
}
#stars { --d: 4; }
#stars canvas { width: 100%; height: 100%; }
.aurora { --d: 10; filter: blur(38px); opacity: .75; mix-blend-mode: screen; }
.aurora i { position: absolute; border-radius: 50%; animation: drift 18s ease-in-out infinite alternate; }
.aurora i:nth-child(1) { left: 8%; top: 6%; width: 55%; height: 22%; background: radial-gradient(closest-side, rgba(9,173,211,.9), transparent); }
.aurora i:nth-child(2) { left: 38%; top: 14%; width: 50%; height: 18%; background: radial-gradient(closest-side, rgba(19,155,253,.8), transparent); animation-duration: 23s; animation-delay: -6s; }
.aurora i:nth-child(3) { left: 22%; top: 24%; width: 40%; height: 14%; background: radial-gradient(closest-side, rgba(120,240,220,.45), transparent); animation-duration: 27s; animation-delay: -12s; }
@keyframes drift { 0% { transform: translateX(-6%) scaleY(.8) rotate(-6deg); } 100% { transform: translateX(8%) scaleY(1.2) rotate(4deg); } }
.moon { --d: 6; }
.moon b {
  position: absolute; right: 16%; top: 13%; width: clamp(44px, 6vw, 76px); aspect-ratio: 1; background: #e9f7ff;
  box-shadow: 0 0 40px 10px rgba(191,239,255,.35), 0 0 120px 40px rgba(19,155,253,.18);
  clip-path: polygon(25% 0,75% 0,75% 8%,92% 8%,92% 25%,100% 25%,100% 75%,92% 75%,92% 92%,75% 92%,75% 100%,25% 100%,25% 92%,8% 92%,8% 75%,0 75%,0 25%,8% 25%,8% 8%,25% 8%);
}
.ridge svg { position: absolute; left: 0; bottom: 0; width: 100%; height: 100%; shape-rendering: crispEdges; }
#r1 { --d: 14; } #r2 { --d: 24; } #r3 { --d: 40; }
/* store artwork from the "Banner Artwork" setting */
.banner { --d: 18; inset: -4% -4% auto; height: 760px; background-size: cover; background-position: center top;
  -webkit-mask-image: linear-gradient(#000 45%, transparent); mask-image: linear-gradient(#000 45%, transparent); }
.shade { position: absolute; inset: 0; background:
  radial-gradient(90% 60% at 50% 30%, transparent 0%, rgba(5,11,22,.35) 60%, rgba(5,11,22,.85) 100%),
  linear-gradient(180deg, transparent 40%, rgba(5,11,22,.7) 100%); }
#snow { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }

/* the ridges sit low; on inner pages dim the scene so content reads well */
body:not(.page-index) .scene .ridge { opacity: .55; }
.fx-off .scene .sky { background: linear-gradient(180deg, #02060e 0%, #061228 50%, #0b2447 100%); }

/* =====================================================================
   Page shell
   ===================================================================== */
.site { position: relative; z-index: 2; min-height: 100vh; display: flex; flex-direction: column; }
.site-body { flex: 1; padding-bottom: 64px; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(5, 11, 22, .55);
  backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}
.topbar-inner { display: flex; align-items: center; gap: 16px; min-height: var(--topbar-h); }
.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand-logo { width: 40px; height: 40px; object-fit: contain; filter: drop-shadow(0 4px 12px rgba(19,155,253,.45)); }
.brand-name { font: 400 22px/1 var(--font-display); letter-spacing: .03em;
  background: linear-gradient(180deg, #fff 0%, #dff6ff 45%, #7fd8ff 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }

.topnav { flex: 1; min-width: 0; }
.topnav .menu { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.topnav .menu > li { position: relative; display: flex; align-items: center; }
.topnav .menu > li > a {
  display: block; padding: 10px 14px; border-radius: 10px;
  font: 400 17px/1 var(--font-display); letter-spacing: .06em; text-transform: uppercase; color: #cfe9f7;
  transition: color .2s, background .2s;
}
.topnav .menu > li > a:hover { color: #fff; background: rgba(9,173,211,.14); }
.topnav .menu > li > a.active { color: #fff; background: rgba(9,173,211,.2); box-shadow: inset 0 -2px 0 var(--color-primary); }
.topnav .sub-toggle { display: grid; place-items: center; width: 26px; height: 26px; margin-left: -8px; color: var(--muted); border-radius: 6px; }
.topnav .sub-toggle svg { width: 16px; height: 16px; transition: rotate .2s; }
.topnav .submenu {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 200px; padding: 8px;
  background: var(--glass-strong); backdrop-filter: blur(14px); border: 1px solid var(--line); border-radius: var(--radius-sm);
  box-shadow: 0 18px 40px rgba(0,0,0,.45);
  opacity: 0; visibility: hidden; translate: 0 -6px; transition: all .18s ease;
}
.topnav .has-children:hover .submenu, .topnav .has-children:focus-within .submenu { opacity: 1; visibility: visible; translate: 0 0; }
.topnav .has-children:hover .sub-toggle svg { rotate: 180deg; }
.topnav .submenu a { display: block; padding: 9px 12px; border-radius: 8px; color: #cfe9f7; transition: background .15s, color .15s; }
.topnav .submenu a:hover, .topnav .submenu a.active { color: #fff; background: rgba(9,173,211,.2); }

.topbar-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; flex: none; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--glass);
  font: 13px/1 var(--font-pixel); letter-spacing: .08em; text-transform: uppercase; color: var(--frost);
  transition: border-color .2s, background .2s;
}
.chip-link:hover { border-color: var(--line-strong); background: rgba(9,173,211,.18); }
.user-chip { padding: 0 6px 0 5px; text-transform: none; letter-spacing: .04em; }
.user-avatar { width: 30px; height: 30px; border-radius: 8px; image-rendering: pixelated; }
.user-name { max-width: 14ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-logout { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: var(--muted); transition: color .2s, background .2s; }
.user-logout:hover { color: #fff; background: rgba(255,107,107,.2); }
.user-logout svg { width: 16px; height: 16px; }

.basket-btn {
  position: relative; display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 16px;
  border-radius: var(--radius-sm); color: var(--color-primary-text);
  font: 700 15px/1 var(--font-body);
  background: linear-gradient(180deg, color-mix(in srgb, var(--color-primary) 88%, #fff), var(--color-primary) 55%, color-mix(in srgb, var(--color-primary) 72%, #000));
  box-shadow: 0 3px 0 color-mix(in srgb, var(--color-primary) 45%, #000), inset 0 1px 0 rgba(255,255,255,.4);
  transition: transform .12s, filter .2s;
}
.basket-btn:hover { transform: translateY(-2px); filter: brightness(1.08); }
.basket-btn svg { width: 20px; height: 20px; }
.basket-count {
  position: absolute; top: -7px; right: -7px; min-width: 22px; height: 22px; padding: 0 6px; display: grid; place-items: center;
  border-radius: 999px; background: #fff; color: #072a52; font: 12px/1 var(--font-pixel); box-shadow: 0 2px 8px rgba(0,0,0,.35);
}

.icon-btn { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; color: var(--frost); font-size: 26px; line-height: 1; transition: background .2s, color .2s; }
.icon-btn:hover { background: rgba(191,239,255,.1); color: #fff; }
.icon-btn svg { width: 22px; height: 22px; }
.nav-toggle { display: none; }

@media (max-width: 960px) {
  .topnav { display: none; }
  .nav-toggle { display: grid; margin-left: -8px; }
  .brand-name { font-size: 19px; }
  .user-name { display: none; }
}
@media (max-width: 420px) { .brand-name { font-size: 16px; } .basket-btn { padding: 0 12px; } }

/* ---------- mobile nav ---------- */
.mobile-nav { position: fixed; inset: 0; z-index: 90; background: rgba(2,6,14,.6); backdrop-filter: blur(4px); }
.mobile-nav-panel {
  position: absolute; inset: 0 auto 0 0; width: min(340px, 86vw); padding: 72px 20px 24px; overflow-y: auto;
  background: linear-gradient(180deg, #061228, #0a1830); border-right: 1px solid var(--line);
  animation: slideInLeft .25s ease;
}
@keyframes slideInLeft { from { translate: -100% 0; } }
.mobile-nav-close { position: absolute; top: 14px; right: 14px; }
.mobile-nav .label { margin-bottom: 10px; }
.menu-mobile a, .menu-side a {
  display: block; padding: 11px 12px; border-radius: 10px; color: #cfe9f7;
  font: 400 18px/1.2 var(--font-display); letter-spacing: .05em; text-transform: uppercase;
  transition: background .15s, color .15s;
}
.menu-mobile a:hover, .menu-side a:hover { background: rgba(9,173,211,.14); color: #fff; }
.menu-mobile a.active, .menu-side a.active { background: rgba(9,173,211,.22); color: #fff; box-shadow: inset 3px 0 0 var(--color-primary); }
.menu-mobile .has-children, .menu-side .has-children { display: flex; flex-wrap: wrap; align-items: center; }
.menu-mobile .has-children > a, .menu-side .has-children > a { flex: 1; }
.menu-mobile .sub-toggle, .menu-side .sub-toggle { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 8px; color: var(--muted); }
.menu-mobile .sub-toggle svg, .menu-side .sub-toggle svg { width: 18px; height: 18px; transition: rotate .2s; }
.menu-mobile .expanded > .sub-toggle svg, .menu-side .expanded > .sub-toggle svg { rotate: 180deg; }
.menu-mobile .submenu, .menu-side .submenu { width: 100%; padding-left: 12px; display: none; }
.menu-mobile .expanded > .submenu, .menu-side .expanded > .submenu { display: block; }
.menu-mobile .submenu a, .menu-side .submenu a { font: 500 15px/1.2 var(--font-body); text-transform: none; letter-spacing: 0; padding: 9px 12px; }
.mobile-nav-extra { display: block; margin-top: 20px; padding: 12px; color: var(--muted); font: 13px/1 var(--font-pixel); letter-spacing: .08em; text-transform: uppercase; }

/* ---------- sale banner ---------- */
.sale-banner { margin-top: 16px; }
.sale-banner-inner {
  display: block; padding: 14px 20px; border-radius: var(--radius-sm); text-align: center;
  background: var(--color-sale-bg); color: var(--color-sale-text);
  font: 400 20px/1.3 var(--font-display); letter-spacing: .05em; text-transform: uppercase;
  text-shadow: 0 2px 0 rgba(0,0,0,.25);
  box-shadow: 0 10px 28px rgba(9,173,211,.25), inset 0 1px 0 rgba(255,255,255,.35);
}

/* =====================================================================
   Hero
   ===================================================================== */
.hero { position: relative; text-align: center; }
.hero-big .hero-inner {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding-top: clamp(36px, 6vh, 64px); padding-bottom: clamp(32px, 5vh, 52px);
}
.hero-logo { width: clamp(84px, 12vw, 128px); aspect-ratio: 1; object-fit: contain; margin-bottom: 12px;
  filter: drop-shadow(0 10px 30px rgba(19,155,253,.45)); animation: bob 6s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-8px); } }

.status-pill {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px; padding: 10px 18px;
  font: 15px/1 var(--font-pixel); letter-spacing: .06em; color: var(--frost);
  border: 1px solid var(--line); border-radius: 999px; background: var(--glass); backdrop-filter: blur(8px);
}
.dot { width: 8px; height: 8px; flex: none; border-radius: 50%; background: #6b7a90; }
.dot.live { background: var(--live); animation: ping 2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(62,240,140,.6); } 70% { box-shadow: 0 0 0 8px rgba(62,240,140,0); } 100% { box-shadow: 0 0 0 0 rgba(62,240,140,0); } }

.hero-title { line-height: .82; user-select: none; transform: translate3d(calc(var(--mx, 0) * 6px), calc(var(--my, 0) * 6px), 0); }
.hero-title h1 {
  font: 400 clamp(64px, 14vw, 184px)/.82 var(--font-display); letter-spacing: .02em;
  background: linear-gradient(180deg, #fff 0%, #dff6ff 38%, #7fd8ff 62%, var(--sky) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 6px 0 #0b3f7a) drop-shadow(0 12px 0 #072a52) drop-shadow(0 24px 40px rgba(0,0,0,.55));
}
.hero-sub {
  margin-top: clamp(10px, 1.8vw, 18px); padding-left: .42em;
  font: 400 clamp(18px, 3vw, 32px)/1 var(--font-pixel); letter-spacing: .42em;
  color: var(--frost); text-shadow: 0 0 18px rgba(9,173,211,.8), 0 2px 0 #072a52;
}


.hero-compact .hero-inner { padding-top: 44px; padding-bottom: 36px; text-align: left; }
.hero-crumb a:hover { color: var(--frost); }
.hero-page-title {
  margin-top: 10px; font: 400 clamp(38px, 6vw, 64px)/1 var(--font-display); letter-spacing: .02em;
  background: linear-gradient(180deg, #fff 0%, #dff6ff 45%, #7fd8ff 75%, var(--sky) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 4px 0 #0b3f7a) drop-shadow(0 14px 26px rgba(0,0,0,.5));
}

.reveal { opacity: 0; transform: translateY(14px); animation: in .9s cubic-bezier(.2,.7,.2,1) forwards; }
@keyframes in { to { opacity: 1; transform: none; } }

/* =====================================================================
   Buttons — the website's chunky ice buttons
   ===================================================================== */
.btn {
  --c: var(--color-primary);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; border-radius: var(--radius-sm);
  font: 400 17px/1 var(--font-display); letter-spacing: .08em; text-transform: uppercase; text-align: center;
  color: var(--color-primary-text); text-shadow: 0 2px 0 rgba(0,0,0,.25);
  transition: transform .12s, box-shadow .12s, filter .2s, background .2s, border-color .2s;
}
.btn svg { width: 22px; height: 22px; flex: none; }
.btn-primary {
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 92%, #fff) 0%, var(--c) 55%, color-mix(in srgb, var(--c) 70%, #000) 100%);
  box-shadow: 0 5px 0 color-mix(in srgb, var(--c) 45%, #000), 0 12px 28px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.45);
  margin-top: 4px; /* room for the snow cap */
}
.btn-primary:hover {
  --c: var(--color-primary-hover); color: var(--color-primary-text-hover);
  transform: translateY(-3px); filter: brightness(1.06);
  box-shadow: 0 8px 0 color-mix(in srgb, var(--c) 45%, #000), 0 18px 36px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.45);
}
.btn-primary:active {
  transform: translateY(3px);
  box-shadow: 0 2px 0 color-mix(in srgb, var(--c) 45%, #000), 0 6px 14px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.45);
}
/* pixel snow cap, as on the website buttons */
.btn-primary::before {
  content: ""; position: absolute; left: 8px; right: 8px; top: -4px; height: 10px; pointer-events: none;
  background: linear-gradient(#fff, #dff2ff);
  clip-path: polygon(0 40%,3% 40%,3% 0,97% 0,97% 40%,100% 40%,100% 60%,88% 60%,88% 100%,82% 100%,82% 60%,56% 60%,56% 80%,50% 80%,50% 60%,24% 60%,24% 100%,18% 100%,18% 60%,0 60%);
  filter: drop-shadow(0 1px 0 rgba(0,0,0,.15));
}

.btn-ghost {
  color: var(--white); text-shadow: none;
  border: 1px solid var(--line); background: var(--glass); backdrop-filter: blur(10px);
}
.btn-ghost:hover { border-color: rgba(191,239,255,.45); background: rgba(9,173,211,.18); transform: translateY(-2px); }
.btn-block { width: 100%; }
.btn-lg { min-height: 56px; font-size: 20px; }
.btn-icon { width: 48px; min-width: 48px; padding: 0; }
.btn-icon svg { width: 20px; height: 20px; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none !important; filter: grayscale(.4); pointer-events: none; }

/* =====================================================================
   Content grid + panels
   ===================================================================== */
.content { display: grid; gap: var(--gap); align-items: start; }
@media (min-width: 961px) {
  .content.with-sidebar { grid-template-columns: minmax(0, 1fr) var(--sidebar); }
  .is-sidebar-left .content.with-sidebar { grid-template-columns: var(--sidebar) minmax(0, 1fr); }
  .is-sidebar-left .content.with-sidebar .sidebar { order: -1; }
}
.content-main { min-width: 0; display: grid; gap: var(--gap); align-content: start; }
.content-main.narrow { max-width: 620px; width: 100%; margin: 0 auto; }

.panel, .widget {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 14px 34px rgba(0,0,0,.28);
}
.panel { padding: clamp(18px, 3vw, 32px); }
.panel h2 { font: 400 30px/1.1 var(--font-display); letter-spacing: .02em; margin: 6px 0 10px; }
.panel > p { color: #cfe3f0; margin-bottom: 14px; }
.empty-state { text-align: center; color: var(--muted); }

/* rich text from Tebex (descriptions, CMS pages) */
.text-content { line-height: 1.65; color: #d7e9f5; overflow-wrap: anywhere; }
.text-content > * + * { margin-top: 12px; }
.text-content h1, .text-content h2, .text-content h3, .text-content h4 { font-family: var(--font-display); font-weight: 400; letter-spacing: .02em; color: var(--white); line-height: 1.15; }
.text-content h1 { font-size: 34px; } .text-content h2 { font-size: 28px; } .text-content h3 { font-size: 22px; } .text-content h4 { font-size: 18px; }
.text-content a { color: var(--frost); text-decoration: underline; text-decoration-color: rgba(191,239,255,.4); text-underline-offset: 3px; }
.text-content a:hover { color: #fff; text-decoration-color: var(--color-primary); }
.text-content ul, .text-content ol { padding-left: 1.3em; }
.text-content ul { list-style: none; }
.text-content ul li { position: relative; }
.text-content ul li::before { content: ""; position: absolute; left: -1.05em; top: .62em; width: 6px; height: 6px; background: var(--color-primary); box-shadow: 0 0 8px var(--color-primary); }
.text-content ol { list-style: decimal; }
.text-content img { display: inline-block; height: auto; border-radius: 10px; }
.text-content hr { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }
.text-content code { font-family: var(--font-pixel); font-size: .85em; padding: 2px 6px; border-radius: 6px; background: rgba(5,11,22,.6); color: var(--frost); }
.text-content table { width: 100%; border-collapse: collapse; }
.text-content th, .text-content td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; }

/* ---------- homepage ---------- */
/* category cards replace the top-bar links on the homepage */
.page-index.has-home-cats .topnav { visibility: hidden; }

.home-shop { margin-bottom: 40px; }
.section-label {
  display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 18px;
  font: 400 14px/1 var(--font-pixel); letter-spacing: .2em; text-transform: uppercase; color: var(--frost);
  text-shadow: 0 0 14px rgba(9,173,211,.7);
}
.section-label::before, .section-label::after { content: ""; width: min(120px, 12vw); height: 1px; background: linear-gradient(90deg, transparent, var(--line-strong)); }
.section-label::after { transform: scaleX(-1); }

/* flex so a short last row stays centred */
.home-categories { --cols: 5; --gap-c: 16px; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--gap-c); }
.home-categories > .cat-card { flex: 0 0 calc((100% - (var(--cols) - 1) * var(--gap-c)) / var(--cols)); }
@media (max-width: 1100px) { .home-categories { --cols: 4; } }
@media (max-width: 960px) { .home-categories { --cols: 3; } }
@media (max-width: 560px) { .home-categories { --cols: 2; --gap-c: 10px; } }
.cat-card {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 22px 16px 18px; overflow: hidden; text-align: center;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--glass); backdrop-filter: blur(12px);
  box-shadow: 0 12px 30px rgba(0,0,0,.28);
  transition: transform .2s, border-color .2s, background .2s, box-shadow .2s;
}
.cat-card::before { content: ""; position: absolute; inset: -40% -20% auto; height: 160px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(19,155,253,.28), transparent); transition: opacity .25s; opacity: .7; }
.cat-card:hover { transform: translateY(-5px); border-color: rgba(9,173,211,.65); background: rgba(12,34,64,.72);
  box-shadow: 0 20px 40px rgba(0,0,0,.4), 0 0 0 1px rgba(9,173,211,.2); }
.cat-card:hover::before { opacity: 1; }
.cat-card-art { position: relative; display: grid; place-items: center; width: 96px; height: 96px; }
.cat-card-art img { max-width: 100%; max-height: 100%; object-fit: contain; filter: drop-shadow(0 12px 16px rgba(0,0,0,.45)); transition: transform .3s; }
.cat-card:hover .cat-card-art img { transform: scale(1.08) translateY(-3px); }
.cat-card-icon { width: 72px; height: 72px; border-radius: 18px; background: rgba(9,173,211,.15); position: relative; }
.cat-card-icon::before { content: ""; position: absolute; inset: 18px; background: var(--ice);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2v20M2 12h20M5 5l14 14M19 5 5 19'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2v20M2 12h20M5 5l14 14M19 5 5 19'/%3E%3C/svg%3E") center/contain no-repeat; }
.cat-card-name { position: relative; font: 400 22px/1.1 var(--font-display); letter-spacing: .05em; text-transform: uppercase; }
.cat-card-go { position: relative; font: 11px/1 var(--font-pixel); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); transition: color .2s, letter-spacing .2s; }
.cat-card:hover .cat-card-go { color: var(--frost); letter-spacing: .2em; }

/* welcome + modules: text and small widgets on the left, featured package on the right */
.home-grid { display: grid; gap: 18px; align-items: start; }
.home-grid > .widget-featured { order: 1; }           /* small screens: after goal + payments */
@media (min-width: 700px) {
  .home-grid { grid-template-columns: 1fr 1fr; }
  .home-grid > .home-welcome { grid-column: 1 / -1; }
}
@media (min-width: 700px) and (max-width: 960px) {
  /* tablet: featured spans the row with image beside the details */
  .home-grid > .widget-featured { grid-column: 1 / -1; }
  .home-grid > .widget-featured .product { flex-direction: row; align-items: stretch; }
  .home-grid > .widget-featured .product-media { width: 220px; flex: none; border-bottom: 0; border-right: 1px solid var(--line); }
  .home-grid > .widget-featured .product-body { justify-content: center; }
  .home-grid > .widget-featured .product-actions { align-self: flex-end; }
}
@media (min-width: 961px) {
  .home-grid > .widget-featured .product-media { aspect-ratio: auto; min-height: 150px; }
  .home-grid > .widget-featured .product-media img { max-height: 130px; }
  .home-grid > .widget-goal { display: flex; flex-direction: column; }
  .home-grid > .widget-goal .progress { margin-top: auto; }
  .home-grid > .widget-goal .goal-numbers { margin-bottom: auto; }
  .home-grid { grid-template-columns: 1fr 1fr var(--sidebar); align-items: stretch; }
  .home-grid > .home-welcome { grid-column: 1 / 3; grid-row: 1; }
  .home-grid > .widget-featured { grid-column: 3; grid-row: 1 / span 2; align-self: stretch; display: flex; flex-direction: column; }
  .home-grid > .widget-featured .product { flex: 1; }
  .home-grid > .widget-featured .product-media { flex: 1; }
}
.home-welcome { padding: clamp(20px, 3vw, 34px); }
.home-welcome h2:first-child { font-size: clamp(26px, 3vw, 34px); }

/* ---------- products ---------- */
.products-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.products-list { display: grid; gap: 12px; }

.product {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--glass); backdrop-filter: blur(12px);
  box-shadow: 0 12px 30px rgba(0,0,0,.28);
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.product:hover { transform: translateY(-4px); border-color: rgba(9,173,211,.55); box-shadow: 0 20px 40px rgba(0,0,0,.4), 0 0 0 1px rgba(9,173,211,.15); }
.product-media {
  position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3; padding: 18px;
  background: radial-gradient(80% 80% at 50% 35%, rgba(19,155,253,.22), transparent 70%), linear-gradient(180deg, rgba(5,11,22,.2), rgba(5,11,22,.55));
  border-bottom: 1px solid var(--line);
}
.product-media img { max-height: 100%; object-fit: contain; filter: drop-shadow(0 12px 18px rgba(0,0,0,.45)); transition: transform .3s; }
.product:hover .product-media img { transform: scale(1.05) translateY(-3px); }
.product-placeholder { width: 64px; height: 64px; border-radius: 16px; background: rgba(9,173,211,.15); position: relative; }
.product-placeholder::before { content: ""; position: absolute; inset: 16px; background: var(--ice);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 2 3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4z'/%3E%3Cpath d='M3 6h18'/%3E%3Cpath d='M16 10a4 4 0 0 1-8 0'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 2 3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4z'/%3E%3Cpath d='M3 6h18'/%3E%3Cpath d='M16 10a4 4 0 0 1-8 0'/%3E%3C/svg%3E") center/contain no-repeat; }
.product-badge {
  position: absolute; top: 12px; left: 12px; padding: 6px 9px; border-radius: 8px;
  background: linear-gradient(180deg, #ff8a8a, #e14b4b); color: #fff;
  font: 12px/1 var(--font-pixel); letter-spacing: .06em; box-shadow: 0 3px 0 #8f2222;
}
.product-badge.inline { position: static; display: inline-block; margin-right: 6px; vertical-align: middle; }
.product-body { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 6px; }
.product-title { font: 400 21px/1.15 var(--font-display); letter-spacing: .03em; }
.product-title a:hover { color: var(--frost); }
.price { margin-top: auto; color: var(--muted); font-size: 14px; }
.price strong { color: var(--white); font: 700 22px/1 var(--font-body); }
.price del { margin-right: 6px; color: var(--danger); opacity: .85; }
.price-note { color: var(--frost); }
.currency { font-family: var(--font-pixel); font-size: 11px; letter-spacing: .1em; }
.countdown { display: inline-flex; align-items: center; gap: 6px; width: fit-content; padding: 4px 8px; border-radius: 6px;
  background: rgba(255,107,107,.14); color: #ffb3b3; font: 11px/1 var(--font-pixel); letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.countdown::before { content: ""; width: 11px; height: 11px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round'%3E%3Ccircle cx='12' cy='13' r='8'/%3E%3Cpath d='M12 9v4l2 2M9 2h6'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round'%3E%3Ccircle cx='12' cy='13' r='8'/%3E%3Cpath d='M12 9v4l2 2M9 2h6'/%3E%3C/svg%3E") center/contain no-repeat; }
.product-actions { display: flex; gap: 10px; padding: 12px 18px 18px; }
.product-actions .btn { min-height: 46px; font-size: 16px; white-space: nowrap; padding-inline: 14px; }
.widget .product-actions .btn { font-size: 15px; letter-spacing: .05em; }
.product-actions .btn-block { flex: 1; width: auto; }

/* list layout */
.products-list .product { flex-direction: row; align-items: center; }
.products-list .product:hover { transform: translateY(-2px); }
.products-list .product-media { width: 110px; aspect-ratio: 1; padding: 12px; border-bottom: 0; border-right: 1px solid var(--line); flex: none; }
.products-list .product-body { flex-direction: row; align-items: center; gap: 16px; padding: 14px 18px; }
.products-list .product-title { flex: 1; }
.products-list .price { margin-top: 0; text-align: right; white-space: nowrap; }
.products-list .product-actions { padding: 14px 18px 14px 0; flex: none; }
.products-list .product-actions .btn-block { min-width: 170px; }
@media (max-width: 700px) {
  .products-list .product { flex-wrap: wrap; }
  .products-list .product-media { width: 84px; }
  .products-list .product-body { flex: 1; flex-direction: column; align-items: flex-start; gap: 6px; }
  .products-list .price { text-align: left; }
  .products-list .product-actions { width: 100%; padding: 0 14px 14px; }
}

/* ---------- package page ---------- */
.package-full { display: grid; gap: 24px; padding: 0; overflow: hidden; }
.package-gallery { padding: 18px 18px 0; }
.gallery-stage { position: relative; display: grid; place-items: center; min-height: 260px; border-radius: var(--radius-sm); overflow: hidden;
  background: radial-gradient(80% 80% at 50% 35%, rgba(19,155,253,.22), transparent 70%), rgba(5,11,22,.45); border: 1px solid var(--line); }
.gallery-slide { width: 100%; display: grid; place-items: center; padding: 20px; }
.gallery-slide img { max-height: 420px; object-fit: contain; filter: drop-shadow(0 14px 22px rgba(0,0,0,.45)); }
.gallery-slide iframe { width: 100%; aspect-ratio: 16/9; border-radius: 10px; }
.gallery-thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.gallery-thumb { position: relative; width: 76px; height: 76px; padding: 6px; border-radius: 10px; border: 1px solid var(--line); background: rgba(5,11,22,.5); opacity: .6; transition: opacity .2s, border-color .2s; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: contain; }
.gallery-thumb.active, .gallery-thumb:hover { opacity: 1; border-color: var(--color-primary); }
.thumb-play { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; text-shadow: 0 2px 6px #000; }
.package-info { padding: 0 clamp(18px, 3vw, 32px); display: grid; gap: 14px; }
.package-buybar {
  position: sticky; bottom: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding: 16px clamp(18px, 3vw, 32px);
  background: rgba(6, 18, 40, .88); backdrop-filter: blur(10px); border-top: 1px solid var(--line);
}
.package-buybar .price { margin: 0 auto 0 0; }
.package-buybar .price strong { font-size: 28px; }
.package-buybar .product-actions { padding: 0; min-width: min(100%, 280px); }

/* ---------- tiers ---------- */
.tiers { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.tier { display: flex; flex-direction: column; gap: 12px; padding: 22px; text-align: center;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--glass); backdrop-filter: blur(12px); }
.tier.is-current { border-color: var(--color-primary); box-shadow: 0 0 0 1px var(--color-primary), 0 0 40px rgba(9,173,211,.25); }
.tier-image { margin: 0 auto; max-height: 120px; object-fit: contain; }
.tier-title { font: 400 26px/1.1 var(--font-display); letter-spacing: .03em; }
.tier .price { margin: 0; }
.tier-descr { flex: 1; padding: 12px 0; border-block: 1px solid var(--line); text-align: left; font-size: 15px; }
.tier .product-actions { padding: 0; }

/* =====================================================================
   Sidebar widgets
   ===================================================================== */
.sidebar { display: grid; gap: 18px; align-content: start; min-width: 0; }
@media (min-width: 961px) {
  .sidebar { position: sticky; top: calc(var(--topbar-h) + 18px); }
}
/* Recent Payments + Goal widgets are homepage-only; the sidebar on inner pages keeps Featured Package etc. */
body:not(.page-index) .sidebar .widget-payments,
body:not(.page-index) .sidebar .widget-goal { display: none; }
.widget { padding: 20px; }
.widget-title {
  display: flex; align-items: center; gap: 10px; margin-bottom: 14px;
  font: 13px/1.2 var(--font-pixel); letter-spacing: .14em; text-transform: uppercase; color: var(--frost);
  text-shadow: 0 0 14px rgba(9,173,211,.7);
}
.widget-title::before { content: ""; width: 8px; height: 8px; background: var(--color-primary); box-shadow: 0 0 10px var(--color-primary); flex: none; }
.widget-empty { color: var(--muted); font-size: 14px; }
.widget-nav { padding: 14px; }
.widget-nav .widget-title { margin: 6px 6px 10px; }

.server-row { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.server-state { font: 13px/1 var(--font-pixel); letter-spacing: .08em; text-transform: uppercase; color: var(--frost); }
.server-players { margin-left: auto; font: 700 18px/1 var(--font-body); }

.payments { display: grid; gap: 10px; }
.payment { display: flex; align-items: center; gap: 10px; }
.payment-head { width: 36px; height: 36px; border-radius: 8px; image-rendering: pixelated; flex: none; }
.payment-info { display: flex; flex-direction: column; min-width: 0; flex: 1; font-size: 14px; }
.payment-info strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.payment-pkg { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.payment-price { font: 12px/1 var(--font-pixel); color: var(--frost); white-space: nowrap; }

.top-donor { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.top-donor-skin { height: 150px; object-fit: contain; image-rendering: pixelated; filter: drop-shadow(0 10px 20px rgba(0,0,0,.5)); }
.top-donor-name { font: 400 22px/1 var(--font-display); letter-spacing: .03em; }
.top-donor-total { font: 700 16px/1 var(--font-body); color: var(--frost); }

.progress { height: 14px; border-radius: 999px; overflow: hidden; background: rgba(5,11,22,.7); border: 1px solid var(--line); }
.progress-bar { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--ice), var(--sky)); box-shadow: 0 0 14px rgba(9,173,211,.6); }
.progress-bar.striped { background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.22) 0 8px, transparent 8px 16px), linear-gradient(90deg, var(--ice), var(--sky)); background-size: 22px 100%, 100% 100%; }
.progress-bar.animated { animation: stripes 1s linear infinite; }
@keyframes stripes { to { background-position: 22px 0, 0 0; } }
.goal-numbers { margin-top: 10px; text-align: center; color: var(--muted); }
.goal-numbers strong { color: var(--white); font-size: 18px; }
.goal-image { margin: 0 auto 10px; max-height: 90px; object-fit: contain; }
.goal-descr { margin-bottom: 12px; color: #cfe3f0; font-size: 14px; text-align: center; }

.widget-featured .product { box-shadow: none; }
.widget-featured .product:hover { transform: none; }

.giftcard-form { display: grid; gap: 10px; }
.giftcard-result { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: rgba(62,240,140,.1); }
.giftcard-result.is-void { background: rgba(255,107,107,.12); color: #ffb3b3; }

/* =====================================================================
   Forms
   ===================================================================== */
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 8px; }
.field-label { font: 12px/1.2 var(--font-pixel); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.field-note { color: #cfe3f0; }
.input {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: rgba(5,11,22,.7); color: var(--white);
  transition: border-color .2s, box-shadow .2s;
}
.input::placeholder { color: #5f7c98; }
.input:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(9,173,211,.2); }
select.input { appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237fb6d6' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; }
select.input option { background: var(--deep); color: var(--white); }
.input-affix { position: relative; display: block; }
.input-affix .affix { position: absolute; right: 14px; top: 50%; translate: 0 -50%; font: 12px/1 var(--font-pixel); color: var(--muted); }
.form-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px; margin-top: 6px; }
.login-field { display: flex; align-items: center; gap: 12px; }
.login-head { width: 50px; height: 50px; border-radius: 10px; image-rendering: pixelated; flex: none; background: rgba(5,11,22,.6); }
.login-panel, .checkout-panel { text-align: center; }
.login-panel .form { margin-top: 18px; text-align: left; }
.checkout-panel .basket-total { justify-content: center; gap: 14px; margin: 18px 0; }

/* =====================================================================
   Basket drawer
   ===================================================================== */
.drawer { position: fixed; inset: 0; z-index: 100; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(2,6,14,.6); backdrop-filter: blur(4px); animation: fadeIn .2s ease; }
@keyframes fadeIn { from { opacity: 0; } }
.drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(440px, 100vw); display: flex; flex-direction: column;
  background: linear-gradient(180deg, #061228 0%, #0a1830 100%); border-left: 1px solid var(--line);
  box-shadow: -30px 0 60px rgba(0,0,0,.5); animation: slideInRight .28s cubic-bezier(.2,.7,.2,1);
}
@keyframes slideInRight { from { translate: 100% 0; } }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 20px 16px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font: 400 30px/1 var(--font-display); letter-spacing: .04em; text-transform: uppercase;
  background: linear-gradient(180deg, #fff, #7fd8ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.drawer-user { display: flex; align-items: center; gap: 10px; padding: 12px 20px; font-size: 14px; color: #cfe3f0; background: rgba(9,173,211,.08); border-bottom: 1px solid var(--line); }
.drawer-user img { width: 28px; height: 28px; border-radius: 6px; image-rendering: pixelated; }
.drawer-body { flex: 1; overflow-y: auto; padding: 18px 20px; }
.basket-items { display: grid; gap: 10px; }
.basket-item { display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--glass); }
.basket-item-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.basket-item-name { font: 400 18px/1.15 var(--font-display); letter-spacing: .03em; }
.basket-item-meta { color: var(--muted); font-size: 14px; }
.basket-remove { width: 38px; height: 38px; color: var(--muted); }
.basket-remove:hover { color: #fff; background: rgba(255,107,107,.2); }
.basket-remove svg { width: 18px; height: 18px; }
.basket-empty { display: grid; justify-items: center; gap: 14px; padding: 60px 10px; text-align: center; color: var(--muted); }
.basket-empty-icon { width: 72px; height: 72px; border-radius: 20px; background: rgba(9,173,211,.12); position: relative; }
.basket-empty-icon::before { content: ""; position: absolute; inset: 18px; background: var(--ice);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 2 3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4z'/%3E%3Cpath d='M3 6h18'/%3E%3Cpath d='M16 10a4 4 0 0 1-8 0'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 2 3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4z'/%3E%3Cpath d='M3 6h18'/%3E%3Cpath d='M16 10a4 4 0 0 1-8 0'/%3E%3C/svg%3E") center/contain no-repeat; }
.drawer-foot { padding: 18px 20px calc(22px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: rgba(5,11,22,.5); }
.basket-total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 16px; color: var(--muted); }
.basket-total strong { color: var(--white); font: 700 26px/1 var(--font-body); }
.basket-coupons { margin-bottom: 10px; }

/* =====================================================================
   Footer + toasts
   ===================================================================== */
.site-footer { position: relative; z-index: 2; border-top: 1px solid var(--line); background: rgba(5,11,22,.72); backdrop-filter: blur(10px); }
.site-footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px; padding-top: 26px; padding-bottom: 26px; }
.footer-brand { display: flex; align-items: center; gap: 10px; font: 400 20px/1 var(--font-display); letter-spacing: .03em; }
.footer-brand img { width: 34px; height: 34px; object-fit: contain; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; font: 12px/1 var(--font-pixel); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.footer-links a:hover { color: var(--frost); }
.fine { width: 100%; font-size: 14px; color: var(--dim); }
@media (max-width: 700px) { .site-footer-inner { flex-direction: column; text-align: center; } }

.toaster { position: fixed; left: 50%; top: 84px; z-index: 120; translate: -50% 0; display: grid; gap: 10px; width: min(460px, calc(100vw - 32px)); pointer-events: none; }
.toast {
  display: flex; align-items: center; gap: 12px; padding: 13px 14px 13px 18px; pointer-events: auto;
  border: 1px solid rgba(9,173,211,.5); border-radius: var(--radius-sm); background: #0e2a4a;
  box-shadow: 0 12px 30px rgba(0,0,0,.45); animation: toastIn .3s ease;
}
@keyframes toastIn { from { opacity: 0; translate: 0 -12px; } }
.toast-error, .toast-danger { border-color: rgba(255,107,107,.6); background: #3a1420; }
.toast-success { border-color: rgba(62,240,140,.55); background: #0f3326; }
.toast-warning { border-color: rgba(255,210,90,.6); background: #3a3010; }
.toast-close { margin-left: auto; width: 28px; height: 28px; border-radius: 6px; font-size: 22px; line-height: 1; opacity: .6; }
.toast-close:hover { opacity: 1; background: rgba(255,255,255,.1); }

/* =====================================================================
   Responsive + motion
   ===================================================================== */
@media (max-width: 560px) {
  .cat-card { padding: 16px 10px 14px; }
  .cat-card-art { width: 64px; height: 64px; }
  .cat-card-name { font-size: 18px; }
  .products-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
