/* ============================================================
   STUDIOWORKS v2 - Tebex Webstore Template
   Ink black · violet #8B27E8 · crown gold #FFC81E
   Anton / Barlow / JetBrains Mono · display skew -6deg
   Replaces shared.css/generic.css of the Exo base template and keeps
   every functional hook of Tebex' main.js intact.
   Build: tools/css/build.sh (foundation + ported contracts + visual)
   ============================================================ */

/* ------------------------------------------------------------
   1 · TOKENS
   ------------------------------------------------------------ */
:root {
  /* Brand palette (accent + gold are overridable via head.twig config) */
  --sw-accent: #8B27E8;
  --sw-accent-hover: #9B3DFF;
  --sw-accent-press: #6E14C2;
  --sw-gold: #FFC81E;
  --sw-gold-light: #FFDD66;
  --sw-gold-dark: #F0AF00;

  --sw-purple-100: #E7D6FF;
  --sw-purple-200: #C79BFF;
  --sw-purple-300: #AE6BFF;

  /* Ink - near-black with a violet cast, never pure grey */
  --sw-ink-1000: #05030A;
  --sw-ink-950: #07040C;
  --sw-ink-900: #0B0613;
  --sw-ink-850: #100A1A;
  --sw-ink-800: #160E24;
  --sw-ink-700: #1F1430;
  --sw-ink-600: #2A1B40;
  --sw-ink-500: #3A2755;
  --sw-ink-400: #584176;
  --sw-ink-300: #8574A3;
  --sw-ink-200: #B6A9CC;
  --sw-ink-100: #DCD4E8;

  --sw-success: #2BE88C;
  --sw-warning: #FFC81E;
  --sw-danger: #FF3B5C;
  --sw-info: #3DA5FF;
  --sw-discord: #5865F2;

  /* Surfaces */
  --surface-page: var(--sw-ink-950);
  --surface-raised: var(--sw-ink-900);
  --surface-card: var(--sw-ink-850);
  --surface-card-hover: var(--sw-ink-800);
  --surface-inset: var(--sw-ink-800);
  --surface-overlay: rgba(7, 4, 12, .86);
  --surface-glass: rgba(22, 14, 36, .58);
  --surface-accent-soft: rgba(139, 39, 232, .14);
  --surface-gold-soft: rgba(255, 200, 30, .12);

  /* Text */
  --text-display: #F2ECFB;
  --text-body: #C8BEDA;
  --text-muted: var(--sw-ink-300);
  --text-faint: #7A6A96;   /* >= 4.3:1 on the page - faint, but still readable */
  --text-accent: var(--sw-purple-300);
  --text-gold: var(--sw-gold);
  --text-on-light: #1E1530;

  /* Lines */
  --border-subtle: rgba(180, 150, 255, .09);
  --border-default: rgba(180, 150, 255, .16);
  --border-strong: rgba(180, 150, 255, .30);
  --border-accent: rgba(155, 61, 255, .55);
  --focus-ring: 0 0 0 2px #07040C, 0 0 0 4px #AE6BFF;

  /* Gradients */
  --grad-brand: linear-gradient(135deg, var(--sw-accent-hover) 0%, var(--sw-accent-press) 100%);
  --grad-gold: linear-gradient(135deg, var(--sw-gold-light), var(--sw-gold-dark));
  --grad-text: linear-gradient(92deg, #C69BFF 0%, #A55BFF 38%, var(--sw-accent) 62%, #E9A9FF 100%);
  --grad-protect: linear-gradient(180deg, rgba(7, 4, 12, 0) 0%, rgba(7, 4, 12, .72) 62%, var(--sw-ink-950) 100%);

  /* Type */
  --font-display: "Anton", "Barlow Condensed", Impact, sans-serif;
  --font-ui: "Barlow", "Helvetica Neue", Arial, sans-serif;
  --font-condensed: "Barlow Condensed", "Barlow", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --display-skew: -6deg;

  /* Radii */
  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --radius-pill: 999px;

  /* Shadows & glow */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .6);
  --shadow-md: 0 8px 22px rgba(0, 0, 0, .5);
  --shadow-lg: 0 22px 54px rgba(0, 0, 0, .62);
  --shadow-card-hover: 0 26px 60px rgba(0, 0, 0, .6), 0 0 0 1px rgba(155, 61, 255, .38), 0 0 46px rgba(139, 39, 232, .2);
  --glow-accent: 0 0 0 1px rgba(155, 61, 255, .55), 0 10px 34px rgba(139, 39, 232, .45);
  --glow-gold: 0 0 0 1px rgba(255, 200, 30, .55), 0 10px 30px rgba(255, 200, 30, .3);
  --inner-hairline: inset 0 1px 0 rgba(255, 255, 255, .07);

  /* Motion */
  --ease-out: cubic-bezier(.22, .9, .28, 1);
  --ease-spring: cubic-bezier(.34, 1.4, .5, 1);
  --dur-fast: 140ms;
  --dur-base: 220ms;
  --dur-slow: 420ms;

  /* Layout */
  --container-max: 1320px;
  --content-padding: 32px;
  --widget-padding: 24px;
  --header-h: 72px;
  --sw-logo-h: 40px;

  /* Buy buttons (html[data-cta] switches them) */
  --cta-bg: var(--grad-brand);
  --cta-fg: #FFFFFF;
  --cta-glow: var(--glow-accent);

  /* Exo/main.js bridge (Tebex checkout modal reads primary + secondary) */
  --color-primary: var(--sw-accent);
  --color-primary-hover: var(--sw-accent-hover);
  --color-secondary: var(--sw-ink-600);
  --color-bg: var(--surface-page);
  --color-brighter-bg: var(--surface-card);
  --color-text: var(--text-body);
  --color-text-secondary: var(--text-muted);
  --color-tertiary-text: var(--text-muted);
  --color-tertiary-text-hover: var(--text-display);
}

html[data-cta="gold"] {
  --cta-bg: var(--grad-gold);
  --cta-fg: var(--text-on-light);
  --cta-glow: var(--glow-gold);
}
html[data-cta="white"] {
  --cta-bg: linear-gradient(180deg, #FFFFFF, #E9E2F5);
  --cta-fg: var(--text-on-light);
  --cta-glow: 0 0 0 1px rgba(255, 255, 255, .6), 0 10px 30px rgba(255, 255, 255, .16);
}

/* ------------------------------------------------------------
   2 · BASE
   ------------------------------------------------------------ */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scrollbar-width: thin;
  scrollbar-color: var(--sw-ink-500) var(--surface-page);
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  scrollbar-gutter: stable;   /* overlays lock scrolling without a layout jump */
  background: var(--surface-page);
}

html.no-scroll { overflow: hidden; }

body {
  position: relative;
  background:
    radial-gradient(1200px 700px at 85% -10%, rgba(139, 39, 232, .16) 0%, rgba(7, 4, 12, 0) 60%),
    radial-gradient(1000px 800px at -10% 40%, rgba(139, 39, 232, .10) 0%, rgba(7, 4, 12, 0) 60%),
    radial-gradient(1100px 900px at 110% 85%, rgba(139, 39, 232, .10) 0%, rgba(7, 4, 12, 0) 60%),
    var(--surface-page);
  color: var(--text-body);
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow-x: hidden;
}

/* film grain over the whole page - kills the flat "hole" feel */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 140px 140px;
  opacity: .045;
  mix-blend-mode: screen;
}

.site { position: relative; z-index: 1; min-height: 100vh; display: flex; flex-direction: column; }

::selection { background: var(--sw-accent); color: #fff; }

img { max-width: 100%; display: block; }

a {
  color: var(--text-accent);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out);
}
a:hover { color: var(--sw-purple-200); }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

input, select, textarea { font: inherit; color: inherit; }

[hidden] { display: none !important; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: var(--radius-xs);
}

.js-only { display: none; }
body.sw-js .js-only { display: flex; }

.mobile-only { display: none; }

/* ------------------------------------------------------------
   3 · TYPE UTILITIES
   ------------------------------------------------------------ */
.sw-display {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  line-height: .96;
  letter-spacing: .01em;
  color: var(--text-display);
}

.sw-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: 11px;
  color: var(--text-accent);
}
.sw-eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad-gold);
}

.sw-label {
  font-family: var(--font-ui);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 11px;
}

/* ------------------------------------------------------------
   4 · BUTTONS
   ------------------------------------------------------------ */
.sw-btn,
.btn-primary,
.btn-secondary,
.btn-tertiary,
.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .07em;
  text-transform: uppercase;
  line-height: 1.1;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  text-decoration: none;
  transition:
    filter var(--dur-fast) var(--ease-out),
    background var(--dur-fast) var(--ease-out),
    border-color var(--dur-base) var(--ease-out),
    box-shadow var(--dur-base) var(--ease-out),
    transform var(--dur-fast) var(--ease-out),
    color var(--dur-fast) var(--ease-out);
}

.sw-btn svg, .btn-primary svg, .btn-secondary svg, .btn-tertiary svg, .btn-gold svg {
  width: 17px; height: 17px; flex: none;
}

.sw-btn-lg { min-height: 54px; padding: 0 28px; font-size: 14px; border-radius: 14px; }
.sw-btn-lg svg { width: 19px; height: 19px; }

.sw-btn-gold, .btn-gold {
  background: var(--grad-gold);
  color: var(--text-on-light);
  box-shadow: var(--shadow-sm), var(--inner-hairline), 0 8px 28px rgba(255, 200, 30, .22);
}
.sw-btn-gold:hover, .btn-gold:hover { color: var(--text-on-light); filter: brightness(1.06); box-shadow: var(--glow-gold); transform: translateY(-1px); }

.sw-btn-violet, .btn-primary {
  background: var(--grad-brand);
  color: #fff;
  box-shadow: var(--shadow-sm), var(--inner-hairline);
}
.sw-btn-violet:hover, .btn-primary:hover { color: #fff; filter: brightness(1.12); box-shadow: var(--glow-accent); transform: translateY(-1px); }

.sw-btn-glass {
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .12);
  color: var(--text-display);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.sw-btn-glass:hover { color: #fff; background: rgba(139, 39, 232, .2); border-color: var(--border-accent); }

.sw-btn-ghost, .btn-secondary {
  background: transparent;
  border-color: var(--border-default);
  color: var(--text-body);
}
.sw-btn-ghost:hover, .btn-secondary:hover {
  color: var(--text-display);
  background: var(--surface-accent-soft);
  border-color: var(--border-accent);
}

.sw-btn-discord {
  background: var(--sw-discord);
  color: #fff;
  box-shadow: 0 10px 30px rgba(88, 101, 242, .35);
}
.sw-btn-discord:hover { color: #fff; filter: brightness(1.1); transform: translateY(-1px); }

.btn-tertiary { background: transparent; color: var(--text-muted); }
.btn-tertiary:hover { color: var(--text-display); background: rgba(255, 255, 255, .06); }

.sw-btn:active, .btn-primary:active, .btn-secondary:active, .btn-tertiary:active, .btn-gold:active { transform: scale(.97); }

/* buttons carry their own shadows, so keyboard focus uses an outline */
.sw-btn:focus-visible,
.btn-primary:focus-visible,
.btn-secondary:focus-visible,
.btn-gold:focus-visible,
.sw-card-view:focus-visible,
.sw-basket-btn:focus-visible,
.sw-login:focus-visible {
  outline: 2px solid var(--sw-gold);
  outline-offset: 3px;
}

/* product buy buttons follow the "Kauf-Button-Stil" option */
.product-actions .btn-primary.sw-buy,
.product-actions a.btn-primary {
  background: var(--cta-bg);
  color: var(--cta-fg);
}
.product-actions .btn-primary.sw-buy:hover,
.product-actions a.btn-primary:hover {
  color: var(--cta-fg);
  box-shadow: var(--cta-glow);
}

[disabled], .btn-primary[disabled], .btn-secondary[disabled], a[disabled] {
  opacity: .42;
  pointer-events: none;
}

.wide { width: 100%; }
.half { width: calc(50% - 4px); }

.link-text {
  font-size: 13px;
  color: var(--text-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* small square glyph buttons (quantity +/- etc.) */
.btn-glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  min-height: 0;
  padding: 0;
  border-radius: var(--radius-sm);
  font-weight: 700;
  color: var(--text-muted);
  background: var(--surface-inset);
  border: 1px solid var(--border-subtle);
  transition: all var(--dur-fast) var(--ease-out);
}
.btn-glyph:hover { color: var(--text-display); border-color: var(--border-strong); }

/* small pill tag */
.sw-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--border-default);
  color: var(--text-body);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: all var(--dur-fast) var(--ease-out);
}
a.sw-tag:hover { color: #fff; border-color: var(--border-accent); background: var(--surface-accent-soft); }

/* pulsing "live" dot */
.sw-live-dot {
  position: relative;
  display: inline-block;
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sw-success);
  box-shadow: 0 0 0 0 rgba(43, 232, 140, .55);
  animation: sw-pulse 2.2s ease-out infinite;
}
@keyframes sw-pulse {
  0% { box-shadow: 0 0 0 0 rgba(43, 232, 140, .55); }
  70% { box-shadow: 0 0 0 9px rgba(43, 232, 140, 0); }
  100% { box-shadow: 0 0 0 0 rgba(43, 232, 140, 0); }
}

/* ------------------------------------------------------------
   5 · LAYOUT
   ------------------------------------------------------------ */
.sw-container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--content-padding);
  padding-right: var(--content-padding);
}

.site-content {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 40px var(--content-padding) 0;
  flex: 1;
}
.site-content.sw-container { padding-top: 32px; }

/* the sidebar concept is retired - kept default pages still include
   sidebar.twig (it renders empty); this keeps them single-column */
.site-content-widgets { display: block; }
.store-sidebar { display: none; }

.sw-section { margin-top: 96px; }

.sw-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.sw-section-head .sw-eyebrow { margin-bottom: 12px; }
.sw-section-head-center { justify-content: center; text-align: center; }
.sw-section-sub {
  max-width: 620px;
  margin-top: 14px;
  color: var(--text-muted);
  font-size: 16px;
}
.sw-section-head-center .sw-section-sub { margin-left: auto; margin-right: auto; }

.sw-section-title {
  font-size: clamp(32px, 3.6vw, 46px);
  transform: skewX(var(--display-skew));
  transform-origin: left bottom;
}
.sw-section-head-center .sw-section-title { transform-origin: center bottom; }
.sw-hero-title .accent,
.sw-promo-title .accent {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: .06em;
}
/* ============================================================
   CONTRACT LAYER - markup owned by Tebex main.js / Exo partials
   (media slider, basket drawer, popups, toasts, sidebar widgets,
   forms, text content, lightbox). Ported unchanged from v1.
   ============================================================ */

/* ------------------------------------------------------------
   14 · MEDIA SLIDER (contract markup from package-media.twig)
   ------------------------------------------------------------ */
.media-slider {
  --slider-spacing: 10px;
  --thumbs-size: 64px;
  --thumb-padding: 5px;
  position: relative;
  width: 100%;
  overflow: hidden;
}

@media (width > 960px) { .media-slider { --thumbs-size: 78px; } }

.media-slider .slider {
  width: 100%;
  min-height: 200px;
  overflow: hidden;
  margin-bottom: var(--slider-spacing);
  background: var(--sw-ink-900);
  border-radius: var(--radius-lg);
}

.media-slider .slider::part(container) {
  --swiper-navigation-size: 22px;
  --swiper-theme-color: #fff;
}
.media-slider .slider::part(button-prev),
.media-slider .slider::part(button-next) {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(5, 2, 8, .6);
  backdrop-filter: blur(4px);
  border: 1px solid var(--border-default);
}
.media-slider .slider::part(wrapper) { align-items: center; }

.media-slider .slide { align-content: center; }
.media-slider .slide-image {
  margin: auto;
  max-width: 100%;
  min-height: 200px;
  max-height: 100%;
  object-fit: contain;
}
.media-slider .slide-frame {
  display: block;
  margin: auto;
  width: 100%;
  max-height: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
}

.media-slider .thumbs {
  display: flex;
  gap: var(--slider-spacing);
  align-items: stretch;
  flex-wrap: wrap;
  list-style: none;
  padding: 0 2px 2px;
}

.media-slider .thumb {
  display: block;
  width: var(--thumbs-size);
  height: var(--thumbs-size);
  padding: var(--thumb-padding);
  background: var(--surface-inset);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease-out);
}
.media-slider .thumb.active { border-color: var(--sw-accent); box-shadow: 0 0 0 1px var(--sw-accent); }

.media-slider .thumb-image,
.media-slider .thumb-youtube {
  width: calc(var(--thumbs-size) - var(--thumb-padding) * 2 - 2px);
  height: calc(var(--thumbs-size) - var(--thumb-padding) * 2 - 2px);
  transition: opacity var(--dur-base) var(--ease-out);
  border-radius: var(--radius-xs);
  overflow: hidden;
}
.media-slider .thumb:not(.active) .thumb-image,
.media-slider .thumb:not(.active) .thumb-youtube { opacity: .5; }
.media-slider .thumb-image { object-fit: cover; }

.media-slider .thumb-youtube { position: relative; align-content: center; }
.media-slider .thumb-youtube img { width: 100%; height: 100%; object-fit: cover; }
.media-slider .thumb-youtube::after {
  content: "";
  display: block;
  position: absolute;
  inset: 0;
  margin: auto;
  width: 24px;
  height: 24px;
  background-color: #fff;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5.14v13.72a1 1 0 0 0 1.52.85l11-6.86a1 1 0 0 0 0-1.7l-11-6.86A1 1 0 0 0 8 5.14Z'/%3E%3C/svg%3E") center center / contain no-repeat;
}

.media-slider .open-lightbox {
  position: absolute;
  right: var(--slider-spacing);
  bottom: calc(var(--thumbs-size) + var(--slider-spacing) * 2);
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(5, 2, 8, .6);
  backdrop-filter: blur(4px);
  border: 1px solid var(--border-default);
  visibility: hidden;
  line-height: 0;
  font-size: 0;
  color: transparent;
  opacity: 0;
  transition: all var(--dur-fast) var(--ease-out);
}
.media-slider .open-lightbox::before {
  content: "";
  display: block;
  margin: auto;
  width: 16px;
  height: 16px;
  background-color: var(--text-body);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 3H5a2 2 0 0 0-2 2v3M21 8V5a2 2 0 0 0-2-2h-3M3 16v3a2 2 0 0 0 2 2h3M16 21h3a2 2 0 0 0 2-2v-3'/%3E%3C/svg%3E") center center / contain no-repeat;
}
.media-slider .slider:hover ~ .open-lightbox,
.media-slider .open-lightbox:hover,
.media-slider .open-lightbox:focus {
  opacity: 1;
  visibility: visible;
}
.media-slider .open-lightbox:hover { border-color: var(--border-strong); }


/* ------------------------------------------------------------
   15 · BASKET (drawer content - contract markup)
   ------------------------------------------------------------ */
.site-content .basket { display: none; }   /* page itself redirects into the drawer */

.basket-popup .popup-scroll-cont {
  padding: 0;
  align-items: stretch;
  justify-content: flex-end;
}

.basket-popup-content.basket {
  display: flex;
  flex-direction: column;
  width: min(460px, 94vw);
  max-width: none;
  min-height: 100dvh;
  margin-left: auto;
  padding: 0;
  border-radius: 0;
  border-left: 1px solid var(--border-default);
  background: var(--surface-raised);
}

.basket .basket-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px var(--widget-padding) 16px;
}

.basket .basket-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 24px;
  text-transform: uppercase;
  color: var(--text-display);
}
.basket .basket-title::before {
  content: "";
  display: block;
  width: 24px;
  height: 24px;
  background-color: var(--text-accent);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E") center center / contain no-repeat;
}

.basket .basket-second-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px var(--widget-padding);
  background: var(--surface-card);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  font-family: var(--font-condensed);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.basket .basket-second-header .total strong {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-display);
  letter-spacing: 0;
}

.basket .basket-content {
  flex: 1;
  overflow: hidden auto;
  scrollbar-width: thin;
  scrollbar-color: var(--sw-ink-500) transparent;
}

.basket .basket-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: var(--widget-padding);
}

.basket .basket-item {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 16px;
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--inner-hairline);
}

.basket .basket-item .info { margin-right: auto; min-width: 0; }
.basket .basket-item .title { font-size: 14px; font-weight: 700; }
.basket .basket-item .title a { color: var(--text-display); }
.basket .basket-item .title a:hover { color: var(--sw-purple-200); }

.basket .basket-item .options {
  list-style: none;
  padding: 4px 0 0;
  font-size: 12px;
  color: var(--text-faint);
}
.basket .basket-item .options strong { color: var(--text-muted); font-weight: 600; }

.basket .basket-item .price { margin-top: 6px; }
.basket .basket-item .price strong {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 14px;
  color: var(--text-display);
}

.basket .basket-item .remove {
  order: 5;
  font-size: 0;
  min-width: 34px;
  height: 34px;
  padding: 0;
  border-radius: var(--radius-xs);
  border: 1px solid transparent;
  color: var(--text-faint);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--dur-fast) var(--ease-out);
}
.basket .basket-item .remove::before {
  content: "";
  display: block;
  width: 15px;
  height: 15px;
  background-color: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M18 6 6 18M6 6l12 12'/%3E%3C/svg%3E") center center / contain no-repeat;
}
.basket .basket-item .remove:hover {
  color: var(--sw-danger);
  border-color: rgba(255, 59, 92, .4);
  background: rgba(255, 59, 92, .08);
}

.basket .basket-empty {
  margin: auto;
  padding: 60px 24px;
  text-align: center;
  font-size: 15px;
  color: var(--text-faint);
}

.basket .basket-checkout {
  padding: var(--widget-padding);
  border-top: 1px solid var(--border-default);
  background: var(--surface-card);
}

.basket .basket-checkout h3 {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 16px;
  font-family: var(--font-condensed);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.basket .basket-checkout .total { display: inline-block; }
.basket .basket-checkout .total strong {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 30px;
  letter-spacing: .01em;
  color: var(--text-display);
  transform: skewX(var(--display-skew));
  display: inline-block;
}

.basket .basket-checkout .checkout {
  width: 100%;
  padding: 15px 22px;
  border-radius: var(--radius-sm);
  background: var(--grad-gold);
  color: var(--text-on-light);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: .1em;
  text-transform: uppercase;
  box-shadow: var(--shadow-sm), var(--inner-hairline);
  transition: filter var(--dur-fast) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.basket .basket-checkout .checkout:hover { filter: brightness(1.08); box-shadow: var(--glow-gold); }
.basket .basket-checkout .checkout:active { transform: scale(.97); }

/* ------------------------------------------------------------
   16 · POPUP SYSTEM (mechanics ported from Exo, restyled)
   ------------------------------------------------------------ */
.popup {
  --fade-duration: 300ms;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 100vw;
  z-index: 1000;
  overflow: hidden scroll;
  scrollbar-width: thin;
  scrollbar-color: var(--sw-ink-500) transparent;
  background: rgba(5, 2, 8, .78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background-color var(--fade-duration) ease, opacity var(--fade-duration) ease-in-out, display var(--fade-duration) allow-discrete;
}

@starting-style { .popup { opacity: 0; } }

.popup.drawer { user-select: none; }
.popup.may-close { user-select: none; background: rgba(5, 2, 8, .4); }

.popup[hidden] { opacity: 0; display: none; }

.popup-scroll-cont {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  padding: calc(var(--content-padding) / 2);
  overscroll-behavior: none;
}
@media (width > 600px) { .popup-scroll-cont { padding: var(--content-padding); } }
@media (pointer: coarse) {
  .popup:not(.basket-popup) .popup-scroll-cont { align-items: flex-end; padding-bottom: 0; }
}

.popup-content {
  position: relative;
  width: 100%;
  max-width: 550px;
  padding: var(--widget-padding);
  background: var(--surface-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg), var(--inner-hairline);
  transition: translate var(--fade-duration) ease, opacity var(--fade-duration) ease;
}
@starting-style { .popup-content { translate: 0 20px; } }
@media (pointer: coarse) {
  .popup:not(.basket-popup) .popup-content {
    padding-bottom: calc(var(--widget-padding) * 2);
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
  }
}

.popup.touching .popup-content {
  transition: opacity var(--fade-duration) ease, scale var(--fade-duration) ease;
}

.popup.may-close .popup-content,
.popup.drawer[hidden] .popup-content { opacity: .8; scale: .95; }

.popup.drawer-up[hidden] .popup-content { translate: 0 -100%; }
.popup.drawer-down[hidden] .popup-content { translate: 0 100%; }
.popup.drawer-right[hidden] .popup-content { translate: 100% 0; }
.popup.drawer-left[hidden] .popup-content { translate: -100% 0; }
.popup:not(.drawer)[hidden] .popup-content { translate: 0 20px; }

.popup.popup-loading .popup-content { min-height: 180px; }
.popup.popup-loading .popup-content::before {
  content: "";
  display: block;
  position: absolute;
  inset: 0;
  margin: auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, .14);
  border-top-color: var(--sw-accent-hover);
  animation: sw-spin .7s linear infinite;
}

/* drag handles */
.drawer-up .popup-content::after,
.drawer-down .popup-content::after,
.drawer-left .popup-content::after,
.drawer-right .popup-content::after {
  content: "";
  display: block;
  position: absolute;
  background: rgba(180, 150, 255, .28);
  border-radius: 2px;
  pointer-events: none;
}
.drawer-up .popup-content::after,
.drawer-down .popup-content::after {
  left: 0; right: 0;
  margin-inline: auto;
  height: 4px; width: 90px;
}
.drawer-up .popup-content::after { bottom: 7px; }
.drawer-down .popup-content::after { top: 7px; }
.drawer-left .popup-content::after,
.drawer-right .popup-content::after {
  top: 0; bottom: 0;
  margin-block: auto;
  width: 4px; height: 90px;
}
.drawer-left .popup-content::after { right: 7px; }
.drawer-right .popup-content::after { left: 7px; }

.popup-close {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 20;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  opacity: .6;
  line-height: 0;
  font-size: 0;
  color: transparent;
  transition: all var(--dur-fast) var(--ease-out);
}
.popup-close::before {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background-color: var(--text-body);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M18 6 6 18M6 6l12 12'/%3E%3C/svg%3E") center center / 18px no-repeat;
}
.popup-close:hover { opacity: 1; background: rgba(255, 255, 255, .08); }

.store-product-popup-content { max-width: 860px; }
.product-options-popup .popup-content { max-width: 480px; }
.login-popup { z-index: 1002; }
.login-popup-content { max-width: 440px; }
.basket { position: relative; z-index: 1001; }

.gift-form-popup .popup-content { max-width: 440px; }
.gift-form-popup .popup-content h3 { margin-bottom: 12px; }
.gift-form-popup .popup-content .actions { position: relative; margin-top: 14px; display: flex; gap: 10px; }

.store-quote-popup .popup-content { max-width: 460px; }
.store-quote .actions { display: flex; gap: 10px; margin-top: 18px; }

/* ------------------------------------------------------------
   17 · TOASTS (markup generated by main.js)
   ------------------------------------------------------------ */
.toaster {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: min(380px, calc(100vw - 40px));
}

.toast {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 40px 14px 18px;
  background: var(--surface-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg), var(--inner-hairline);
  font-size: 13px;
  color: var(--text-body);
  overflow: hidden;
  animation: sw-toast-in var(--dur-base) var(--ease-out);
}
@keyframes sw-toast-in {
  from { opacity: 0; translate: 0 10px; }
  to { opacity: 1; translate: 0 0; }
}

.toast::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--sw-info);
}
.toast-success::before { background: var(--sw-success); }
.toast-error::before { background: var(--sw-danger); }
.toast-warning::before { background: var(--sw-warning); }
.toast-info::before { background: var(--sw-info); }

.toast p { margin: 0; }

.toast-close {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 26px;
  height: 26px;
  border-radius: var(--radius-xs);
  font-size: 0;
  color: transparent;
  opacity: .55;
  transition: opacity var(--dur-fast) var(--ease-out);
}
.toast-close::before {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background-color: var(--text-body);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M18 6 6 18M6 6l12 12'/%3E%3C/svg%3E") center center / 12px no-repeat;
}
.toast-close:hover { opacity: 1; }

/* ------------------------------------------------------------
   18 · SIDEBAR WIDGETS (Tebex modules)
   ------------------------------------------------------------ */
.widget {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md), var(--inner-hairline);
  overflow: hidden;
}

.widget-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-subtle);
  font-family: var(--font-condensed);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-accent);
}

.widget-content { padding: 18px; font-size: 13px; }
.widget-content .empty { color: var(--text-faint); }

/* featured package widget reuses the product card */
.widget-featured .widget-content { padding: 0; }
.widget-featured .store-product {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.widget-featured .store-product:hover { transform: none; box-shadow: none; }
.widget-featured .widget-title {
  background: var(--surface-gold-soft);
  color: var(--sw-gold);
  border-bottom-color: rgba(255, 200, 30, .25);
}

/* progress bars (goal / community goal) */
.progress {
  width: 100%;
  height: 12px;
  border-radius: var(--radius-pill);
  background: var(--surface-inset);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  margin-bottom: 10px;
}
.progress-bar {
  height: 100%;
  border-radius: var(--radius-pill);
  background: var(--grad-brand);
  transition: width var(--dur-slow) var(--ease-out);
}
.progress-bar.striped {
  background-image:
    linear-gradient(45deg, rgba(255, 255, 255, .18) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .18) 50%, rgba(255, 255, 255, .18) 75%, transparent 75%, transparent),
    var(--grad-brand);
  background-size: 16px 16px, 100% 100%;
}
.progress-bar.animated { animation: sw-stripes 1s linear infinite; }
@keyframes sw-stripes { to { background-position: 16px 0; } }

.widget .goal-image { border-radius: var(--radius-sm); margin-bottom: 12px; }
.widget .descr { margin-bottom: 12px; color: var(--text-muted); }

/* recent payments */
.purchases { display: flex; flex-direction: column; gap: 12px; }
.purchase { display: flex; align-items: center; gap: 10px; }
.purchase .avatar {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  flex: none;
}
.purchase .info { min-width: 0; }
.purchase .username {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-display);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.purchase p { font-size: 12px; color: var(--text-faint); }
.purchase .price { font-family: var(--font-mono); color: var(--text-muted); }
.purchase .sep { margin: 0 3px; }
.purchase time { font-family: var(--font-mono); font-size: 10px; color: var(--text-faint); }

/* top donator */
.widget-top-donator .widget-content { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; align-items: center; }
.widget-top-donator .avatar {
  grid-row: span 2;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-default);
}
.widget-top-donator .username { font-size: 14px; font-weight: 700; color: var(--text-display); }
.widget-top-donator p { font-size: 12px; color: var(--text-faint); }
.widget-top-donator .empty { grid-column: 1 / -1; }

/* server status */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: var(--radius-xs);
  font-family: var(--font-condensed);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.badge-success { background: rgba(43, 232, 140, .14); color: var(--sw-success); border: 1px solid rgba(43, 232, 140, .35); }
.badge-danger { background: rgba(255, 59, 92, .12); color: var(--sw-danger); border: 1px solid rgba(255, 59, 92, .35); }

.widget-server-status h6 {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-display);
  cursor: pointer;
  margin-bottom: 4px;
}
.widget-server-status h6:hover { color: var(--sw-gold); }
.widget-server-status p { color: var(--text-faint); font-size: 12px; }

/* gift card widget */
.widget-gift-card .widget-content { display: flex; flex-wrap: wrap; gap: 8px; }
.widget-gift-card .gift-card-input { flex: 1; min-width: 0; }
.widget-gift-card p { width: 100%; margin: 4px 0 0; }

/* generic alert paragraphs (giftcard module etc.) */
.alert {
  position: relative;
  padding: 10px 14px 10px 17px;
  border-radius: var(--radius-md);
  background: var(--surface-inset);
  border: 1px solid var(--border-subtle);
  font-size: 13px;
  overflow: hidden;
}
.alert::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--sw-info);
}
.alert-danger::before { background: var(--sw-danger); }
.alert-warning::before { background: var(--sw-warning); }
.alert-success::before { background: var(--sw-success); }

/* ------------------------------------------------------------
   19 · FORMS (login / options / gift / quote)
   ------------------------------------------------------------ */
.store-form input[type="text"],
.store-form input[type="number"],
.store-form input[type="search"],
.store-form input[type="email"],
.store-form select,
.store-form textarea,
.gift-form-popup input[type="text"],
.widget-gift-card .gift-card-input {
  width: 100%;
  padding: 11px 14px;
  background: var(--surface-inset);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  color: var(--text-display);
  font-size: 14px;
  transition: border-color var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.store-form input:focus,
.store-form select:focus,
.store-form textarea:focus,
.gift-form-popup input:focus,
.widget-gift-card .gift-card-input:focus {
  outline: none;
  border-color: var(--sw-accent);
  box-shadow: var(--focus-ring);
}
.store-form input::placeholder { color: var(--text-faint); }

.store-form select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238574A3' stroke-width='2' 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: 14px;
  padding-right: 38px;
  cursor: pointer;
}
.store-form select option { background: var(--sw-ink-800); color: var(--text-body); }

.store-form .field { margin-bottom: 16px; }
.store-form .field > p { margin-bottom: 8px; font-size: 13px; color: var(--text-muted); }
.store-form .field-inline { display: flex; align-items: center; gap: 10px; }

.store-form .actions { display: flex; flex-wrap: wrap; gap: 10px; }

.store-product-options .product-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 24px;
  text-transform: uppercase;
  line-height: 1.05;
  color: var(--text-display);
  margin-bottom: 18px;
  padding-right: 34px;
  transform: skewX(var(--display-skew));
  transform-origin: left bottom;
}

/* login page/popup */
.store-form h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 26px;
  text-transform: uppercase;
  color: var(--text-display);
  margin-bottom: 16px;
  transform: skewX(var(--display-skew));
  transform-origin: left bottom;
}
.login-popup-content form.field,
.store-form form.field { display: flex; gap: 10px; }
.login-popup-content form.field input { flex: 1; }

/* ------------------------------------------------------------
   20 · TEXT CONTENT (CMS pages, descriptions, homepage content)
   ------------------------------------------------------------ */
.text-content { line-height: 1.65; color: var(--text-body); }

.text-content h1,
.text-content h2 {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 1.02;
  color: var(--text-display);
  margin: 1.4em 0 .5em;
}
.text-content h1 { font-size: 34px; }
.text-content h2 { font-size: 28px; }
.text-content h3, .text-content h4, .text-content h5, .text-content h6 {
  font-weight: 700;
  color: var(--text-display);
  margin: 1.3em 0 .45em;
}
.text-content h3 { font-size: 19px; }
.text-content h4 { font-size: 16px; }
.text-content > :first-child, .text-content > h1:first-child, .text-content > h2:first-child { margin-top: 0; }

.text-content p { margin: 0 0 1em; }
.text-content ul, .text-content ol { margin: 0 0 1em; padding-left: 1.3em; }
.text-content li { margin-bottom: .35em; }
.text-content li::marker { color: var(--sw-accent-hover); }

.text-content img { border-radius: var(--radius-lg); margin: 1em 0; }

.text-content hr {
  border: 0;
  height: 1px;
  background: var(--border-default);
  margin: 2em 0;
}

.text-content blockquote {
  margin: 1.2em 0;
  padding: 14px 18px;
  background: var(--surface-inset);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-style: italic;
}

.text-content code {
  font-family: var(--font-mono);
  font-size: .88em;
  background: var(--surface-inset);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  padding: .1em .4em;
}
.text-content pre {
  background: var(--sw-ink-900);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  overflow-x: auto;
  margin: 0 0 1em;
}
.text-content pre code { background: none; border: 0; padding: 0; }

.text-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.2em;
  font-size: 14px;
}
.text-content th, .text-content td {
  padding: 10px 12px;
  border: 1px solid var(--border-subtle);
  text-align: left;
}
.text-content th {
  background: var(--surface-inset);
  font-family: var(--font-condensed);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.store-text { min-width: 0; }


/* ---------------------------------------------------------------
   34 - MEDIA LIGHTBOX (markup generated by main.js)
   Big picture on top, thumbnail rail underneath - main.js already
   emits .slider + ul.thumbs, this gives them a layout.
   --------------------------------------------------------------- */
.popup.popup-media-slider {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px 22px 18px;
  overflow: hidden;
  background: rgba(4, 2, 7, .97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.popup-media-slider .slider {
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  height: auto;
  aspect-ratio: auto;
  background: none;
  border-radius: 0;
  margin: 0;
}
.popup-media-slider .slider::part(container) {
  height: 100%;
  --swiper-navigation-size: 26px;
  --swiper-theme-color: #fff;
}
.popup-media-slider .slider::part(wrapper) { height: 100%; align-items: center; }
.popup-media-slider .slider::part(button-prev),
.popup-media-slider .slider::part(button-next) {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  background: rgba(15, 8, 25, .72);
  border: 1px solid var(--border-default);
  backdrop-filter: blur(6px);
}

.popup-media-slider .slide {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.popup-media-slider .slide-image {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  min-height: 0;
  object-fit: contain;
  margin: auto;
  border-radius: var(--radius-md);
}
.popup-media-slider .slide-frame {
  width: min(100%, 168vh);
  height: auto;
  max-height: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: var(--radius-md);
  margin: auto;
}

/* thumbnail rail */
.popup-media-slider .thumbs {
  flex: none;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin: 0;
  padding: 4px;
  list-style: none;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--sw-ink-500) transparent;
}
.popup-media-slider .thumbs::-webkit-scrollbar { height: 6px; }

.popup-media-slider .thumb {
  flex: none;
  display: block;
  width: 84px;
  height: 62px;
  padding: 3px;
  border-radius: var(--radius-sm);
  background: var(--surface-inset);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.popup-media-slider .thumb-image,
.popup-media-slider .thumb-youtube {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  border-radius: var(--radius-xs);
  opacity: .45;
  transition: opacity var(--dur-fast) var(--ease-out);
}
.popup-media-slider .thumb-youtube { position: relative; overflow: hidden; }
.popup-media-slider .thumb-youtube img { width: 100%; height: 100%; object-fit: cover; }
.popup-media-slider .thumb-youtube::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 22px;
  height: 22px;
  background-color: #fff;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5.14v13.72a1 1 0 0 0 1.52.85l11-6.86a1 1 0 0 0 0-1.7l-11-6.86A1 1 0 0 0 8 5.14Z'/%3E%3C/svg%3E") center center / contain no-repeat;
}
.popup-media-slider .thumb:hover { border-color: var(--border-strong); }
.popup-media-slider .thumb:hover .thumb-image,
.popup-media-slider .thumb:hover .thumb-youtube { opacity: .8; }
.popup-media-slider .thumb.active {
  border-color: var(--sw-accent);
  box-shadow: 0 0 0 1px var(--sw-accent), var(--glow-accent);
}
.popup-media-slider .thumb.active .thumb-image,
.popup-media-slider .thumb.active .thumb-youtube { opacity: 1; }

.popup-media-slider .popup-close {
  position: fixed;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(15, 8, 25, .72);
  border: 1px solid var(--border-default);
  opacity: 1;
}
.popup-media-slider .popup-close:hover { background: rgba(30, 18, 48, .9); border-color: var(--border-strong); }

@media (max-width: 640px) {
  .popup.popup-media-slider { padding: 14px 12px 12px; }
  .popup-media-slider .thumb { width: 66px; height: 50px; }
  .popup-media-slider .thumbs { justify-content: flex-start; }
}
/* ============================================================
   VISUAL LAYER (v2)
   ============================================================ */

/* ------------------------------------------------------------
   20 · ANNOUNCEMENT BAR
   studioworks.js sets data-layout: "row" = every message side by side,
   "rotate" = one message at a time (with arrows), "marquee" = endless loop.
   Before it runs, auto/rotate show what they will most likely end up as.
   ------------------------------------------------------------ */
.sw-announce {
  position: relative;
  z-index: 60;
  height: 38px;
  overflow: hidden;
  background:
    radial-gradient(42% 180% at 50% 0%, rgba(155, 61, 255, .34), transparent 72%),
    linear-gradient(90deg, #12061E 0%, #280B4D 50%, #12061E 100%);
  border-bottom: 1px solid rgba(155, 61, 255, .32);
  color: #EFE7FF;
  font-family: var(--font-condensed);
  font-weight: 700;
  font-size: 12.5px;
  line-height: 1;
  letter-spacing: .12em;
  text-transform: uppercase;
}
/* gold hairline on top - the crown accent of the brand */
.sw-announce::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent 10%, rgba(255, 200, 30, .5) 50%, transparent 90%);
  pointer-events: none;
}

.sw-announce-box {
  display: flex;
  align-items: center;
  height: 100%;
  margin: 0 auto;
}
.sw-announce-viewport {
  position: relative;
  flex: 1;
  min-width: 0;
  height: 100%;
  overflow: hidden;
}
.sw-announce-track { display: flex; height: 100%; }
.sw-announce-list {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  min-width: 100%;
  height: 100%;
  padding: 0 var(--content-padding);
}

.sw-announce-item {
  display: flex;
  flex: none;
  align-items: center;
  height: 100%;
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
}
.sw-announce-inner {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 8px;
}
.sw-announce-icon {
  flex: none;
  width: 14px;
  height: 14px;
  color: var(--sw-gold);
  filter: drop-shadow(0 0 6px rgba(255, 200, 30, .45));
}
.sw-announce-tag {
  flex: none;
  padding: 4px 7px 3px;
  border-radius: 3px;
  background: var(--sw-gold);
  color: #170A24;
  font-size: 10.5px;
  letter-spacing: .1em;
  transform: skewX(var(--display-skew));
  box-shadow: 0 0 16px rgba(255, 200, 30, .35);
}
.sw-announce-tag.is-soft {
  padding: 3px 6px 2px;
  border: 1px solid rgba(255, 200, 30, .6);
  background: transparent;
  color: var(--sw-gold);
  box-shadow: none;
}
.sw-announce-arrow {
  flex: none;
  width: 13px;
  height: 13px;
  opacity: .6;
  transition: translate .2s ease, opacity .2s ease;
}
a.sw-announce-item:hover .sw-announce-text {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: rgba(255, 200, 30, .8);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
a.sw-announce-item:hover .sw-announce-arrow,
a.sw-announce-item:focus-visible .sw-announce-arrow { translate: 3px 0; opacity: 1; }
a.sw-announce-item:focus-visible { outline: none; }
a.sw-announce-item:focus-visible .sw-announce-inner {
  outline: 2px solid var(--sw-gold);
  outline-offset: 4px;
  border-radius: 2px;
}

/* row: thin divider in front of every visible message but the first */
.sw-announce-item:not([hidden]) ~ .sw-announce-item::before {
  content: "";
  flex: none;
  width: 1px;
  height: 14px;
  margin: 0 24px;
  background: rgba(239, 231, 255, .2);
}

/* arrows - only while messages rotate */
.sw-announce-nav {
  display: grid;
  flex: none;
  place-items: center;
  width: 34px;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: rgba(239, 231, 255, .55);
  cursor: pointer;
  transition: color .2s ease;
}
.sw-announce-nav:hover { color: #fff; }
.sw-announce-nav:focus-visible { outline: 2px solid var(--sw-gold); outline-offset: -7px; border-radius: 8px; }
.sw-announce-nav svg { width: 15px; height: 15px; }

/* rotate: one message at a time, the next one slides in from below */
.sw-announce[data-layout="rotate"] .sw-announce-box { max-width: 760px; }
.sw-announce[data-layout="rotate"] .sw-announce-viewport {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 14px, #000 calc(100% - 14px), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 14px, #000 calc(100% - 14px), transparent);
}
.sw-announce[data-layout="rotate"] .sw-announce-list { position: relative; display: block; padding: 0; }
.sw-announce[data-layout="rotate"] .sw-announce-item {
  position: absolute;
  inset: 0;
  justify-content: center;
  padding: 0 14px;
  opacity: 0;
  visibility: hidden;
  translate: 0 85%;
  transition: opacity .35s ease, translate .5s cubic-bezier(.2, .7, .2, 1), visibility 0s linear .5s;
}
.sw-announce[data-layout="rotate"] .sw-announce-item.is-active {
  opacity: 1;
  visibility: visible;
  translate: 0 0;
  transition: opacity .35s ease .1s, translate .5s cubic-bezier(.2, .7, .2, 1), visibility 0s;
}
.sw-announce[data-layout="rotate"] .sw-announce-item.is-leaving { translate: 0 -85%; }
.sw-announce[data-layout="rotate"] .sw-announce-item::before { content: none; }
/* wider than the bar: pans to the end and back so it can be read in full */
.sw-announce[data-layout="rotate"] .sw-announce-item.is-long { justify-content: flex-start; }
.sw-announce[data-layout="rotate"] .sw-announce-item.is-long.is-active .sw-announce-inner {
  animation: sw-announce-pan var(--ann-pan-dur, 6s) ease-in-out .6s infinite alternate;
}
@keyframes sw-announce-pan {
  0%, 15% { translate: 0 0; }
  85%, 100% { translate: var(--ann-pan, 0px) 0; }
}

/* marquee: endless loop, gold diamonds between the messages */
.sw-announce[data-layout="marquee"] .sw-announce-viewport {
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}
.sw-announce[data-layout="marquee"] .sw-announce-track {
  width: max-content;
  animation: sw-marquee var(--marquee-dur, 40s) linear infinite;
}
.sw-announce[data-layout="marquee"]:hover .sw-announce-track { animation-play-state: paused; }
.sw-announce[data-layout="marquee"] .sw-announce-list { min-width: 0; padding: 0; justify-content: flex-start; }
.sw-announce[data-layout="marquee"] .sw-announce-item::before { content: none; }
.sw-announce[data-layout="marquee"] .sw-announce-item::after {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  margin: 0 26px;
  rotate: 45deg;
  background: var(--sw-gold);
  box-shadow: 0 0 10px rgba(255, 200, 30, .6);
}

/* before studioworks.js has measured: show only the first message where
   messages will rotate, so nothing jumps once the script takes over */
.sw-announce[data-sw-announce="rotate"]:not([data-layout]) .sw-announce-item:not(.is-active) { display: none; }

.sw-announce.is-measuring .sw-announce-item,
.sw-announce.is-measuring .sw-announce-inner,
html[data-anims="off"] .sw-announce-item,
html[data-anims="off"] .sw-announce-inner { transition: none !important; animation: none !important; }

@keyframes sw-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ------------------------------------------------------------
   21 · HEADER
   ------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  height: var(--header-h);
  isolation: isolate;
}
/* glass lives on ::before - backdrop-filter on the header itself would
   become the containing block of the fixed mobile nav drawer */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(9, 5, 16, .72);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--border-subtle);
  transition: background var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.sw-scrolled .site-header::before {
  background: rgba(9, 5, 16, .9);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .45);
}
.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(155, 61, 255, .55), rgba(255, 200, 30, .4), rgba(155, 61, 255, .55), transparent);
  opacity: 0;
  transition: opacity var(--dur-slow) var(--ease-out);
}
.sw-scrolled .site-header::after { opacity: 1; }

.site-header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 28px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  flex: none;
}
.site-logo img {
  height: var(--sw-logo-h);
  max-height: 64px;
  width: auto;
  max-width: 280px;
  object-fit: contain;
  transition: transform var(--dur-base) var(--ease-spring), filter var(--dur-base) var(--ease-out);
}
.site-logo:hover img { transform: rotate(-3deg) scale(1.04); filter: drop-shadow(0 0 14px rgba(155, 61, 255, .6)); }

.site-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex: none;
}

.sw-icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--border-subtle);
  color: var(--text-body);
  transition: all var(--dur-fast) var(--ease-out);
}
.sw-icon-btn svg { width: 19px; height: 19px; }
.sw-icon-btn:hover {
  color: #fff;
  background: var(--surface-accent-soft);
  border-color: var(--border-accent);
}

.sw-count,
.site-header .basket-count {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: var(--radius-pill);
  background: var(--sw-gold);
  color: var(--text-on-light);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  line-height: 19px;
  text-align: center;
  box-shadow: 0 0 0 2px var(--sw-ink-950);
}
.sw-pop { animation: sw-pop .42s var(--ease-spring); }
@keyframes sw-pop { 0% { transform: scale(.4); } 100% { transform: scale(1); } }

.toggle-navigation { display: none; }

/* chips: server, currency, language */
.sw-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 42px;
  padding: 0 13px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--border-subtle);
  color: var(--text-body);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out);
}
.sw-chip:hover, .sw-chip:focus-within { color: #fff; border-color: var(--border-accent); }
.sw-chip .chip-caret, .sw-chip .chip-globe { width: 15px; height: 15px; opacity: .7; }
.sw-chip-server .chip-label { max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.sw-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 700;
  min-width: 150px;
  max-height: 340px;
  overflow: auto;
  padding: 6px;
  list-style: none;
  background: var(--surface-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg), var(--inner-hairline);
  opacity: 0;
  visibility: hidden;
  translate: 0 -6px;
  transition: opacity var(--dur-fast) var(--ease-out), translate var(--dur-fast) var(--ease-out), visibility 0s linear .2s;
}
.sw-dropdown::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 12px;
}
.sw-dropdown:hover .sw-dropdown-menu,
.sw-dropdown:focus-within .sw-dropdown-menu {
  opacity: 1;
  visibility: visible;
  translate: 0 0;
  transition-delay: 0s;
}
.sw-dropdown-menu a {
  display: block;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-body);
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
}
.sw-dropdown-menu a:hover { background: var(--surface-accent-soft); color: #fff; }
.sw-dropdown-menu a.active { color: #fff; background: rgba(139, 39, 232, .22); }

/* login + user */
.sw-login {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 42px;
  padding: 0 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--border-default);
  color: var(--text-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: all var(--dur-fast) var(--ease-out);
}
.sw-login svg { width: 15px; height: 15px; }
.sw-chip .chip-caret { margin-left: -2px; }
.sw-login:hover { color: #fff; border-color: var(--border-accent); background: var(--surface-accent-soft); }

.sw-user {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 42px;
  padding: 0 14px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--border-subtle);
  color: var(--text-display);
  font-size: 13px;
  font-weight: 700;
}
.sw-user svg { width: 16px; height: 16px; color: var(--text-accent); }
.sw-user .text-inner { display: grid; }
.sw-user .text, .sw-user .text-hover { grid-area: 1 / 1; transition: opacity var(--dur-fast) var(--ease-out), translate var(--dur-fast) var(--ease-out); }
.sw-user .text-hover { opacity: 0; translate: 0 6px; color: var(--sw-danger); }
.sw-user:hover { color: #fff; border-color: rgba(255, 59, 92, .4); }
.sw-user:hover .text { opacity: 0; translate: 0 -6px; }
.sw-user:hover .text-hover { opacity: 1; translate: 0 0; }

/* basket - the strongest element in the bar */
.sw-basket-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 44px;
  padding: 0 18px;
  border-radius: var(--radius-md);
  background: var(--grad-brand);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  box-shadow: var(--inner-hairline), 0 8px 26px rgba(139, 39, 232, .4);
  transition: filter var(--dur-fast) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.sw-basket-btn svg { width: 18px; height: 18px; }
.sw-basket-btn:hover { filter: brightness(1.12); box-shadow: var(--glow-accent); transform: translateY(-1px); }
.sw-basket-btn .basket-count { top: -7px; right: -7px; }

/* ------------------------------------------------------------
   22 · NAVIGATION
   ------------------------------------------------------------ */
.site-navigation { --fade-duration: 220ms; min-width: 0; flex: 1 1 auto; }

.site-navigation .menu {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.site-navigation .menu > li { position: relative; flex: none; }

.site-navigation .menu a {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 42px;
  padding: 0 14px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}
.site-navigation .menu a:hover { color: var(--text-display); }

.site-navigation .menu > li > a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad-brand);
  box-shadow: 0 0 12px rgba(155, 61, 255, .8);
  transform: scaleX(0);
  transition: transform var(--dur-base) var(--ease-out);
}
.site-navigation .menu > li > a:hover::after { transform: scaleX(.4); }
.site-navigation .menu a.link-active { color: #fff; }
.site-navigation .menu > li > a.link-active::after { transform: scaleX(1); }

.site-navigation .toggle {
  min-width: 26px;
  height: 26px;
  background: transparent;
  border: 0;
  font-size: 0;
  color: var(--text-muted);
}
.site-navigation .toggle::before {
  content: "";
  display: block;
  width: 14px;
  height: 14px;
  margin: auto;
  background-color: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center center / contain no-repeat;
  transition: rotate var(--dur-fast) var(--ease-out);
}

.site-navigation .close-navigation { display: none; }

.sw-nav-docs a svg { width: 13px; height: 13px; margin-left: 6px; opacity: .7; }

@media (width > 960px) {
  .site-navigation .has-children { display: flex; align-items: center; }
  .site-navigation .has-children > a { padding-right: 4px; }
  .site-navigation .has-children > a::after { right: 4px; }
  .site-navigation .has-children > .toggle { pointer-events: none; margin-right: 6px; }
  .site-navigation .has-children:hover > .toggle::before { rotate: 180deg; }

  /* hover bridge across the gap below the menu item */
  .site-navigation .has-children::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 14px;
  }
  .site-navigation .has-children > ul {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    z-index: 600;
    min-width: 230px;
    padding: 8px;
    list-style: none;
    background: var(--surface-card);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg), var(--inner-hairline);
    opacity: 0;
    visibility: hidden;
    translate: 0 -6px;
    pointer-events: none;
    transition: opacity var(--dur-fast) var(--ease-out), translate var(--dur-fast) var(--ease-out), visibility 0s linear .25s;
  }
  .site-navigation .has-children:hover > ul,
  .site-navigation .has-children:focus-within > ul {
    opacity: 1;
    visibility: visible;
    translate: 0 0;
    pointer-events: auto;
    transition-delay: 0s;
  }
  .site-navigation .has-children > ul a {
    display: flex;
    width: 100%;
    height: auto;
    padding: 10px 12px;
    font-size: 12px;
  }
  .site-navigation .has-children > ul a:hover,
  .site-navigation .has-children > ul a.link-active { background: var(--surface-accent-soft); color: #fff; }
}

/* ------------------------------------------------------------
   23 · HERO
   ------------------------------------------------------------ */
.sw-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: clamp(600px, calc(100vh - var(--header-h) - 38px), 860px);
  padding: 72px 0 96px;
  overflow: hidden;
  text-align: center;
}

.sw-hero-art {
  position: absolute;
  inset: 0;
  z-index: -3;
  background-size: cover;
  background-position: center 30%;
  opacity: .28;
  filter: saturate(1.15);
  -webkit-mask-image: radial-gradient(ellipse 85% 75% at 50% 42%, #000 20%, transparent 80%);
  mask-image: radial-gradient(ellipse 85% 75% at 50% 42%, #000 20%, transparent 80%);
}

.sw-hero-canvas {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.sw-hero-canvas.is-ready { opacity: 1; }

.sw-hero-vignette {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(42% 38% at 50% 44%, rgba(139, 39, 232, .30) 0%, rgba(139, 39, 232, 0) 100%),
    radial-gradient(30% 24% at 50% 30%, rgba(255, 200, 30, .07) 0%, rgba(255, 200, 30, 0) 100%),
    linear-gradient(180deg, rgba(7, 4, 12, .25) 0%, rgba(7, 4, 12, 0) 30%, rgba(7, 4, 12, 0) 70%, var(--surface-page) 100%);
}

.sw-hero-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sw-hero-emblem {
  width: 104px;
  height: 104px;
  object-fit: contain;
  margin-bottom: 22px;
  filter: drop-shadow(0 0 28px rgba(155, 61, 255, .65)) drop-shadow(0 12px 22px rgba(0, 0, 0, .6));
  animation: sw-float 6s ease-in-out infinite;
}
@keyframes sw-float {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-10px) rotate(2deg); }
}

.sw-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: rgba(255, 200, 30, .1);
  border: 1px solid rgba(255, 200, 30, .38);
  color: var(--sw-gold);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  box-shadow: 0 0 30px rgba(255, 200, 30, .12);
}
.sw-hero-badge-gem {
  width: 8px;
  height: 8px;
  rotate: 45deg;
  background: var(--sw-gold);
  box-shadow: 0 0 10px rgba(255, 200, 30, .8);
}

.sw-hero-title {
  margin-top: 26px;
  font-size: clamp(46px, 7.6vw, 108px);
  line-height: .9;
  letter-spacing: .005em;
  transform: skewX(var(--display-skew));
  text-shadow: 0 10px 40px rgba(0, 0, 0, .55);
}
.sw-hero-title .line { display: block; text-wrap: balance; }
.sw-hero-title .accent {
  text-shadow: none;
  filter: drop-shadow(0 6px 26px rgba(139, 39, 232, .5));
}

.sw-hero-sub {
  max-width: 660px;
  margin-top: 26px;
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.6;
  color: var(--text-body);
}

.sw-hero-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 36px;
}

.sw-online-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-left: 4px;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  background: rgba(43, 232, 140, .12);
  border: 1px solid rgba(43, 232, 140, .3);
  color: #CFFBE6;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0;
  text-transform: none;
}
.sw-online-pill .sw-live-dot { width: 7px; height: 7px; }

.sw-hero-points {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 28px;
  margin-top: 34px;
  list-style: none;
}
.sw-hero-points li {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-condensed);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-display);
}
.sw-hero-points svg {
  width: 22px;
  height: 22px;
  padding: 4px;
  border-radius: 50%;
  background: rgba(139, 39, 232, .25);
  color: var(--sw-purple-200);
  box-shadow: 0 0 0 1px rgba(155, 61, 255, .45);
}

.sw-hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 28px;
  translate: -50% 0;
  width: 26px;
  height: 42px;
  border-radius: 14px;
  border: 2px solid rgba(255, 255, 255, .22);
  transition: border-color var(--dur-fast) var(--ease-out);
}
.sw-hero-scroll span {
  position: absolute;
  left: 50%;
  top: 8px;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--sw-gold);
  animation: sw-scroll 1.8s ease-in-out infinite;
}
.sw-hero-scroll:hover { border-color: var(--border-accent); }
.sw-hero:has(+ .sw-home-modules .sw-ticker) .sw-hero-scroll { display: none; }
@keyframes sw-scroll {
  0% { opacity: 0; transform: translateY(0); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: translateY(14px); }
}

/* load sequence */
.sw-hero-emblem, .sw-hero-badge, .sw-hero-title, .sw-hero-sub, .sw-hero-ctas, .sw-hero-points {
  animation-fill-mode: both;
}
.sw-hero-badge { animation: sw-rise .7s var(--ease-out) .05s both; }
.sw-hero-title { animation: sw-rise-skew .8s var(--ease-out) .15s both; }
.sw-hero-sub { animation: sw-rise .8s var(--ease-out) .28s both; }
.sw-hero-ctas { animation: sw-rise .8s var(--ease-out) .38s both; }
.sw-hero-points { animation: sw-rise .8s var(--ease-out) .5s both; }
@keyframes sw-rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes sw-rise-skew { from { opacity: 0; transform: translateY(26px) skewX(var(--display-skew)); } to { opacity: 1; transform: skewX(var(--display-skew)); } }

/* ------------------------------------------------------------
   24 · TICKER + MODULES ("Recent Payments" et al.)
   ------------------------------------------------------------ */
.sw-home-modules:not(:has(*)),
.sw-footer-modules:not(:has(*)) { display: none; }

.sw-home-modules { position: relative; z-index: 2; margin-top: -34px; }
.sw-footer-modules { margin-top: 72px; }

.sw-home-modules,
.sw-footer-modules {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}
.sw-home-modules > .widget,
.sw-footer-modules > .widget { flex: 1 1 300px; max-width: 420px; }

.sw-ticker {
  flex: 1 1 100%;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  min-height: 64px;
  background: rgba(16, 10, 26, .72);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-md), var(--inner-hairline);
}

.sw-ticker-label {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
  padding: 0 22px;
  border-right: 1px solid var(--border-default);
  background: linear-gradient(90deg, rgba(139, 39, 232, .2), rgba(139, 39, 232, 0));
  color: var(--text-display);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  white-space: nowrap;
}

.sw-ticker-viewport {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
}

.sw-ticker-track {
  display: flex;
  flex: none;
  width: max-content;
  animation: sw-marquee var(--marquee-dur, 38s) linear infinite;
}
.sw-ticker:hover .sw-ticker-track { animation-play-state: paused; }
.sw-ticker-static .sw-ticker-viewport { -webkit-mask-image: none; mask-image: none; padding: 0 12px; }
.sw-ticker-static .sw-ticker-track { animation: none; flex-wrap: wrap; width: auto; }
.sw-ticker-group { display: flex; flex: none; gap: 12px; padding-right: 12px; }

.sw-ticker-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 8px 16px 8px 8px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, .035);
  border: 1px solid var(--border-subtle);
  white-space: nowrap;
}
.sw-ticker-item .avatar {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex: none;
}
.sw-ticker-item .avatar-letter {
  display: grid;
  place-items: center;
  background: var(--grad-brand);
  color: #fff;
  font-weight: 800;
}
.sw-ticker-text { display: flex; flex-direction: column; line-height: 1.25; }
.sw-ticker-text .buyer { color: var(--text-display); font-size: 14px; font-weight: 700; }
.sw-ticker-text .meta { color: var(--text-muted); font-size: 12px; }
.sw-ticker-text .meta strong { color: var(--sw-gold); font-weight: 700; }
.sw-ticker-text time { color: var(--text-faint); font-family: var(--font-mono); font-size: 10.5px; }

/* ------------------------------------------------------------
   25 · PRODUCT ROWS (home) - one swipeable row per category
   ------------------------------------------------------------ */
.sw-collections { display: flex; flex-direction: column; gap: 72px; }

.sw-row-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 16px;
  margin-bottom: 22px;
}
.sw-row-title {
  font-size: clamp(30px, 3vw, 42px);
  transform: skewX(var(--display-skew));
  transform-origin: left bottom;
}
.sw-row-title a { color: inherit; }
.sw-row-title a:hover { color: var(--sw-purple-100); }
.sw-row-deals .sw-row-title { color: var(--sw-gold); }
.sw-row-deals { scroll-margin-top: calc(var(--header-h, 80px) + 24px); }

.sw-row-count {
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
}

.sw-row-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  color: var(--text-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.sw-row-all svg { width: 16px; height: 16px; transition: transform var(--dur-fast) var(--ease-out); }
.sw-row-all:hover { color: #fff; }
.sw-row-all:hover svg { transform: translateX(3px); }

.sw-row-nav { display: flex; gap: 8px; }
.sw-row-deals .sw-row-nav { margin-left: auto; }
.sw-row-nav .sw-icon-btn[disabled] { opacity: .3; pointer-events: none; }

/* track: real scroll container (touch swipe + snap), buttons page through it */
.sw-row-track {
  --per-view: 4;
  --row-gap: 22px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - (var(--per-view) - 1) * var(--row-gap)) / var(--per-view));
  gap: var(--row-gap);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  /* room for the hover lift and glow inside the scroll box */
  padding: 8px 4px 22px;
  margin: -8px -4px -22px;
}
.sw-row-track::-webkit-scrollbar { display: none; }
.sw-row-track > * { scroll-snap-align: start; }

.sw-soon {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 18px 22px;
  border: 1px dashed var(--border-default);
  border-radius: var(--radius-lg);
}
.sw-soon-label {
  margin-right: 6px;
  color: var(--sw-gold);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.sw-card-skeleton {
  min-height: 330px;
  border-radius: 18px;
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  position: relative;
}
.sw-card-skeleton span {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0) 30%, rgba(180, 150, 255, .08) 50%, rgba(255, 255, 255, 0) 70%);
  background-size: 200% 100%;
  animation: sw-shimmer 1.4s linear infinite;
}
@keyframes sw-shimmer { from { background-position: 150% 0; } to { background-position: -50% 0; } }

/* ------------------------------------------------------------
   26 · PRODUCT CARD (one component: category grid, home rows, related)
   ------------------------------------------------------------ */
.store-products-grid,
.sw-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.store-products-grid.sw-cols-4,
.sw-card-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.store-products-list { display: flex; flex-direction: column; gap: 18px; }

.sw-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 18px;
  background: linear-gradient(180deg, #130C1F 0%, #0E0917 100%);
  border: 1px solid rgba(255, 255, 255, .07);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .35);
  isolation: isolate;
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}
.sw-card:hover {
  transform: translateY(-4px);
  border-color: rgba(155, 61, 255, .7);
  box-shadow: 0 16px 38px rgba(0, 0, 0, .5), 0 0 0 1px rgba(155, 61, 255, .3), 0 0 30px rgba(139, 39, 232, .3);
}

.sw-card-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--sw-ink-900);
  border-bottom: 1px solid rgba(255, 255, 255, .05);
}
.sw-card-media .image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease-out);
}
.sw-card:hover .sw-card-media .image { transform: scale(1.045); }

.sw-card-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .45);
}
.sw-card-sale { background: var(--sw-gold); color: var(--text-on-light); }
.sw-card-sub { background: var(--grad-brand); color: #fff; }

.sw-card-body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 8px;
  padding: 20px 20px 18px;
}
.sw-card-cat {
  color: var(--text-accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.sw-card-title {
  font-family: var(--font-ui);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.25;
  color: #fff;
}
.sw-card-title a { color: inherit; }
.sw-card-title a:hover { color: var(--sw-purple-100); }
.sw-card-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-wrap: balance;
}
.sw-card-title a:focus-visible { box-shadow: none; outline: 2px solid var(--sw-gold); outline-offset: 2px; border-radius: 4px; }

.sw-card-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 14px;
}
.sw-card-price { display: flex; flex-direction: column; gap: 3px; min-width: 0; line-height: 1.1; }
.sw-card-price del { color: var(--text-faint); font-size: 13px; text-decoration-color: rgba(255, 255, 255, .45); }
.sw-card-now { color: var(--text-muted); font-size: 13px; font-weight: 600; white-space: nowrap; }
.sw-card-now strong,
.sw-card-price > strong {
  color: #fff;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -.01em;
}
.sw-card[data-sale] .sw-card-now strong { color: var(--sw-gold); }
.sw-card-note { color: var(--text-body); font-size: 13px; font-weight: 600; }

.sw-card-view {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  min-width: 78px;
  height: 40px;
  padding: 0 18px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .09);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  transition: background var(--dur-fast) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
.sw-card:hover .sw-card-view,
.sw-card-view:hover {
  color: #fff;
  background: var(--grad-brand);
  border-color: transparent;
  box-shadow: 0 8px 22px rgba(139, 39, 232, .45);
}

/* young categories (peds, weapons ...) start with 1-2 products - don't leave the row empty */
@media (width > 900px) {
  .store-products-grid:has(> .sw-card:only-child) { grid-template-columns: minmax(0, 1040px); }
  .store-products-grid > .sw-card:only-child { flex-direction: row; }
  .store-products-grid > .sw-card:only-child .sw-card-media { flex: 0 0 58%; aspect-ratio: 16 / 9; border-bottom: 0; border-right: 1px solid rgba(255, 255, 255, .05); }
  .store-products-grid > .sw-card:only-child .sw-card-body { justify-content: center; gap: 14px; padding: 32px; }
  .store-products-grid > .sw-card:only-child .sw-card-title { font-size: 26px; }
  .store-products-grid > .sw-card:only-child .sw-card-foot { margin-top: 10px; }
  .store-products-grid:has(> .sw-card:nth-child(2):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* list display type */
.store-products-list .sw-card { flex-direction: row; }
.store-products-list .sw-card-media { width: 38%; flex: none; aspect-ratio: auto; border-bottom: 0; }

.image-default {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 160px;
  background:
    radial-gradient(60% 60% at 50% 45%, rgba(139, 39, 232, .35), rgba(139, 39, 232, 0)),
    var(--sw-ink-900);
}
.image-default::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 34%;
  height: 60%;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  opacity: .55;
}

/* sale badge on the product page media */
.product-badge {
  padding: 6px 11px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .45);
}
.product-badge-sale { background: var(--sw-gold); color: var(--text-on-light); }

.product-countdown {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(7, 4, 12, .76);
  border: 1px solid rgba(255, 200, 30, .4);
  backdrop-filter: blur(6px);
  color: var(--sw-gold);
  font-size: 12px;
  font-weight: 700;
}
.product-countdown svg { width: 14px; height: 14px; }

/* wishlist heart */
.sw-wish {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text-body);
  transition: all var(--dur-fast) var(--ease-out);
}
body.sw-js .sw-wish { display: inline-flex; }
.sw-wish svg { width: 18px; height: 18px; transition: transform var(--dur-base) var(--ease-spring); }
.sw-card .sw-wish {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 4;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(7, 4, 12, .72);
  border: 1px solid rgba(255, 255, 255, .14);
  backdrop-filter: blur(6px);
}
.sw-card .sw-wish svg { width: 17px; height: 17px; }
.sw-wish:hover,
.sw-card .sw-wish:hover { color: #fff; border-color: var(--border-accent); }
.sw-wish:hover svg { transform: scale(1.12); }
.sw-wish[aria-pressed="true"] { color: var(--sw-gold); }
.sw-wish[aria-pressed="true"] svg { fill: currentColor; }
.sw-wish.sw-pop svg { animation: sw-pop .42s var(--ease-spring); }

/* description excerpt (optional): flattened + clamped, the description itself stays untouched */
.product-excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--text-muted);
  font-size: 13.5px;
  line-height: 1.55;
}
.product-excerpt * {
  display: inline;
  margin: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
}
.product-excerpt img, .product-excerpt iframe, .product-excerpt video, .product-excerpt hr { display: none; }
.product-excerpt p::after, .product-excerpt li::after, .product-excerpt h2::after, .product-excerpt h3::after { content: " "; }
.product-excerpt li::before { content: none; }

/* ------------------------------------------------------------
   27 · BUY ACTIONS (contract markup of package-actions.twig, product page)
   ------------------------------------------------------------ */
.product-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 6px;
}
.product-actions.updating { opacity: .55; pointer-events: none; }

.product-actions .price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 10px;
  width: 100%;
  margin-bottom: 6px;
  color: var(--text-display);
}
.product-actions .price strong {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 28px;
  letter-spacing: .02em;
  line-height: 1;
  color: var(--text-display);
}
.product-actions .price .discount { color: var(--text-faint); font-size: 14px; text-decoration-color: rgba(255, 255, 255, .45); }
.product-actions .price-off {
  padding: 3px 8px;
  border-radius: var(--radius-xs);
  background: var(--sw-gold);
  color: var(--text-on-light);
  font-size: 11.5px;
  font-weight: 800;
}
.product-actions .price-note { color: var(--text-body); font-size: 14px; font-weight: 600; }

.product-actions .btn-primary,
.product-actions .btn-secondary {
  min-height: 46px;
  font-size: 12.5px;
}
.product-actions .gift {
  width: auto;
  min-width: 46px;
  height: 46px;
  padding: 0 14px;
  gap: 8px;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* quantity stepper (shown once the package is in the basket) */
.quantity-field {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 46px;
  padding: 4px;
  border-radius: var(--radius-md);
  background: var(--surface-inset);
  border: 1px solid var(--border-accent);
}
.quantity-field .adjust { min-width: 36px; height: 36px; font-size: 16px; }
.quantity-field .open-basket {
  flex: 1;
  height: 36px;
  border-radius: var(--radius-sm);
  color: var(--text-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.quantity-field .open-basket:hover { background: var(--surface-accent-soft); }
.quantity-field input.quantity {
  width: 42px;
  height: 36px;
  border: 0;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .05);
  text-align: center;
  font-family: var(--font-mono);
  font-weight: 700;
  -moz-appearance: textfield;
}
.quantity-field input.quantity::-webkit-outer-spin-button,
.quantity-field input.quantity::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.open-basket-cta { border-color: var(--border-accent); color: var(--text-display); }

/* ------------------------------------------------------------
   28 · PAGE HEAD (category) + TOOLBAR
   ------------------------------------------------------------ */
.sw-page-head {
  position: relative;
  padding: 48px 0 36px;
  border-bottom: 1px solid var(--border-subtle);
  background: linear-gradient(180deg, rgba(19, 12, 31, .85), rgba(7, 4, 12, 0));
}
.sw-page-head-inner { position: relative; }

.sw-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-faint);
}
.sw-breadcrumb a { color: var(--text-muted); }
.sw-breadcrumb a:hover { color: #fff; }
.sw-breadcrumb [aria-current] { color: var(--text-display); }
.sw-breadcrumb .sep { color: var(--sw-ink-500); }
.sw-crumb-cat { display: inline-flex; align-items: center; gap: 8px; }
.sw-pending { visibility: hidden; min-width: 78px; }

.sw-page-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.sw-page-head-text {
  position: relative;
  padding-left: 20px;
}
.sw-page-head-text::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 4px;
  border-radius: 4px;
  background: var(--sw-accent);
}
.sw-page-title {
  font-size: clamp(40px, 5vw, 64px);
  transform: skewX(var(--display-skew));
  transform-origin: left bottom;
}
.sw-page-meta {
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 15px;
}
.sw-page-meta strong { color: var(--text-display); }

.sw-catalog-toolbar { align-items: center; gap: 10px; flex-wrap: wrap; }

.sw-search-inline,
.sw-select {
  position: relative;
  display: flex;
  align-items: center;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(16, 10, 26, .8);
  border: 1px solid var(--border-default);
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.sw-search-inline:focus-within,
.sw-select:focus-within { border-color: var(--border-accent); box-shadow: var(--focus-ring); }
.sw-search-inline { width: 320px; padding: 0 14px; gap: 10px; }
.sw-search-inline svg { width: 18px; height: 18px; color: var(--text-muted); flex: none; }
.sw-search-inline input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  background: none;
  outline: none;
  font-size: 14px;
}
.sw-search-inline input::placeholder { color: var(--text-muted); }
.sw-select select {
  height: 100%;
  padding: 0 40px 0 16px;
  border: 0;
  background: none;
  outline: none;
  appearance: none;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.sw-select select option { background: var(--surface-card); color: var(--text-body); }
.sw-select svg { position: absolute; right: 14px; width: 16px; height: 16px; pointer-events: none; color: var(--text-muted); }

.sw-subnav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }

.page-category .store-products { padding-top: 8px; }
.category-description { margin-bottom: 32px; max-width: 900px; }

.sw-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 72px 24px;
  text-align: center;
  color: var(--text-muted);
  border: 1px dashed var(--border-default);
  border-radius: var(--radius-xl);
}
.sw-empty img { width: 72px; opacity: .6; }
.sw-empty[data-no-results] { border-color: var(--border-strong); }

/* ------------------------------------------------------------
   29 · PRODUCT DETAIL PAGE
   ------------------------------------------------------------ */
.store-product-full.sw-pdp {
  display: block;
  background: none;
  border: 0;
  box-shadow: none;
  overflow: visible;
}
.sw-pdp > .sw-breadcrumb { margin-bottom: 24px; }

.sw-pdp-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 410px;
  grid-template-areas:
    "media buy"
    "descr buy";
  gap: 36px 32px;
  align-items: start;
}

.sw-pdp-media { grid-area: media; position: relative; min-width: 0; }
.sw-pdp-media > .image,
.sw-pdp-media > .image-default {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-default);
}
.sw-pdp-media .media-slider .slider {
  aspect-ratio: 16 / 9;
  min-height: 0;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-default);
  box-shadow: var(--shadow-lg);
  cursor: zoom-in;
}
.sw-pdp-media .media-slider .slide { height: 100%; }
.sw-pdp-media .media-slider .slide-image {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;   /* phone screenshots and other formats stay whole */
  background: radial-gradient(120% 90% at 50% 0%, rgba(139, 39, 232, .16), transparent 60%), #0B0712;
}
.sw-pdp-media .media-slider .slide-frame { height: 100%; }
.sw-pdp-media .media-slider .thumbs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.sw-pdp-media .media-slider .thumb { flex: 1 0 0; min-width: 96px; width: auto; height: auto; aspect-ratio: 16 / 9; border-radius: var(--radius-md); }
.sw-pdp-media .media-slider .thumb-image { object-fit: contain; background: #0B0712; }
.sw-pdp-media .media-slider .thumb:not(.active) .thumb-image,
.sw-pdp-media .media-slider .thumb:not(.active) .thumb-youtube { opacity: .7; }
@media (hover: none) {
  .media-slider .open-lightbox { opacity: 1; visibility: visible; }
  .sw-pdp-media .media-slider .slider::part(button-prev),
  .sw-pdp-media .media-slider .slider::part(button-next) { display: none; }
}
.sw-pdp-media .media-slider .thumb-image,
.sw-pdp-media .media-slider .thumb-youtube { width: 100%; height: 100%; border-radius: var(--radius-sm); }
.sw-pdp-media .media-slider .open-lightbox { bottom: calc(64px + var(--slider-spacing) * 2 + 10px); right: 14px; }
.sw-pdp-sale { position: absolute; top: 16px; left: 16px; z-index: 3; font-size: 13px; padding: 7px 12px; }

.sw-pdp-buy { grid-area: buy; align-self: stretch; }
.sw-pdp-card {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 28px;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(120% 60% at 100% 0%, rgba(139, 39, 232, .16), rgba(139, 39, 232, 0) 60%),
    var(--surface-card);
  border: 1px solid var(--border-default);
  box-shadow: var(--shadow-lg), var(--inner-hairline);
}
.sw-pdp-cat { align-self: flex-start; }
.sw-pdp-title {
  font-size: clamp(30px, 2.6vw, 40px);
  line-height: .98;
  text-wrap: balance;
  transform: skewX(var(--display-skew));
  transform-origin: left bottom;
}
.sw-pdp-countdown {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  background: rgba(255, 200, 30, .1);
  border: 1px solid rgba(255, 200, 30, .38);
  color: var(--sw-gold);
  font-family: var(--font-mono);
  font-size: 12px;
}
.sw-pdp-countdown svg { width: 15px; height: 15px; }

.sw-pdp-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.sw-chip-fw {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  background: rgba(139, 39, 232, .14);
  border: 1px solid rgba(155, 61, 255, .4);
  color: var(--sw-purple-100);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
}
.sw-chip-fw::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--sw-accent-hover); }

.sw-pdp-card .product-actions { margin-top: 2px; padding-top: 18px; border-top: 1px solid var(--border-subtle); }
.sw-pdp-card .product-actions .price { margin-bottom: 10px; }
.sw-pdp-card .product-actions .price strong { font-size: 46px; }
.sw-pdp-card .product-actions .btn-primary,
.sw-pdp-card .product-actions .btn-secondary,
.sw-pdp-card .quantity-field { min-height: 56px; height: 56px; font-size: 13.5px; }
.sw-pdp-card .product-actions .gift { width: 100%; height: 48px; }

.sw-wish-inline {
  align-self: stretch;
  height: 44px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-default);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.sw-wish-inline .sw-wish-label-saved { display: none; }
.sw-wish-inline[aria-pressed="true"] { border-color: rgba(255, 200, 30, .45); background: rgba(255, 200, 30, .08); }
.sw-wish-inline[aria-pressed="true"] .sw-wish-label-add { display: none; }
.sw-wish-inline[aria-pressed="true"] .sw-wish-label-saved { display: inline; }

.sw-buy-notes { display: flex; flex-direction: column; gap: 10px; list-style: none; }
.sw-buy-notes li { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--text-body); }
.sw-buy-notes svg {
  width: 30px;
  height: 30px;
  flex: none;
  padding: 7px;
  border-radius: var(--radius-sm);
  background: rgba(139, 39, 232, .14);
  color: var(--sw-purple-200);
}

.sw-pay { padding-top: 16px; border-top: 1px solid var(--border-subtle); }
.sw-pay-label {
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}
.we-accept { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; list-style: none; }
.we-accept li {
  display: grid;
  place-items: center;
  width: 50px;
  height: 32px;
  border-radius: var(--radius-xs);
  background: #fff;   /* Apple/Google Pay assets ship with white, so all chips match */
}
.we-accept img { max-width: 38px; max-height: 22px; }
.we-accept img[alt="Visa"] { filter: invert(1); }   /* the Visa asset is white lettering */

.sw-pdp-links { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.sw-pdp-links a { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--text-muted); }
.sw-pdp-links a:hover { color: #fff; }
.sw-pdp-links svg { width: 16px; height: 16px; }

.sw-pdp-descr {
  grid-area: descr;
  min-width: 0;
  border-radius: var(--radius-xl);
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
}
.sw-pdp-descr-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 30px;
  border-bottom: 1px solid var(--border-subtle);
  background: linear-gradient(90deg, rgba(139, 39, 232, .12), rgba(139, 39, 232, 0));
}
.sw-pdp-descr-head h2 { font-size: 26px; transform: skewX(var(--display-skew)); }
.sw-pdp-descr .descr { padding: 30px; font-size: 15.5px; line-height: 1.75; }
.sw-pdp-descr .descr h2 { font-size: 24px; }
.sw-pdp-descr .descr > p,
.sw-pdp-descr .descr > ul,
.sw-pdp-descr .descr > ol,
.sw-cms > p,
.sw-cms > ul,
.sw-about-text > * { max-width: 72ch; }
.text-content > :last-child { margin-bottom: 0; }
.text-content a { text-decoration: underline; text-decoration-color: rgba(174, 107, 255, .45); text-underline-offset: 3px; }
.text-content code { -webkit-box-decoration-break: clone; box-decoration-break: clone; }

/* short laptop screens: keep the whole buy card inside the viewport */
@media (max-height: 800px) and (width > 1100px) {
  .sw-pdp-card { gap: 12px; padding: 22px; }
  .sw-pdp-card .product-actions .price strong { font-size: 38px; }
  .sw-pdp-card .product-actions .btn-primary,
  .sw-pdp-card .product-actions .btn-secondary,
  .sw-pdp-card .quantity-field { min-height: 50px; height: 50px; }
}

.sw-related { margin-top: 80px; }

/* mobile buy bar */
.sw-buybar {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 800;
  display: none;
  align-items: center;
  gap: 12px;
  padding: 10px 10px 10px 18px;
  border-radius: var(--radius-lg);
  background: rgba(16, 10, 26, .92);
  border: 1px solid var(--border-accent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .6);
  translate: 0 140%;
  transition: translate var(--dur-slow) var(--ease-out);
}
.sw-buybar.is-visible { translate: 0 0; }
.sw-buybar-info { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.25; }
.sw-buybar-info strong { color: var(--text-display); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sw-buybar-price { color: var(--sw-gold); font-family: var(--font-mono); font-size: 13px; font-weight: 700; }
.sw-buybar-price strong { color: inherit; font-size: inherit; }
.sw-buybar .sw-btn { min-height: 46px; flex: none; }

/* ------------------------------------------------------------
   30 · FEATURES / ABOUT / REVIEWS / PROMO
   ------------------------------------------------------------ */
.sw-feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.sw-feature {
  position: relative;
  padding: 32px 26px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(22, 14, 36, .9), rgba(16, 10, 26, .9));
  border: 1px solid var(--border-subtle);
  text-align: center;
  transition: transform var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.sw-feature::after {
  content: "";
  position: absolute;
  left: 30%;
  right: 30%;
  top: -1px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad-brand);
  box-shadow: 0 0 16px rgba(155, 61, 255, .8);
  opacity: 0;
  transition: opacity var(--dur-base) var(--ease-out);
}
.sw-feature:hover { border-color: var(--border-accent); }
.sw-feature:hover::after { opacity: 1; }
.sw-feature-icon {
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: radial-gradient(circle at 30% 25%, rgba(155, 61, 255, .55), rgba(110, 20, 194, .25));
  border: 1px solid rgba(155, 61, 255, .5);
  color: #fff;
  box-shadow: 0 10px 30px rgba(139, 39, 232, .35);
}
.sw-feature-icon svg { width: 24px; height: 24px; }
.sw-feature h3 { margin-top: 20px; font-size: 18px; font-weight: 700; color: var(--text-display); }
.sw-feature p { margin-top: 8px; font-size: 14.5px; color: var(--text-muted); text-wrap: pretty; }
.sw-section-title, .sw-section-sub, .sw-hero-sub, .sw-discord-text p { text-wrap: pretty; }

.sw-about-card {
  display: block;
  padding: 48px 56px;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(50% 80% at 0% 50%, rgba(139, 39, 232, .2), rgba(139, 39, 232, 0)),
    var(--surface-card);
  border: 1px solid var(--border-subtle);
}

.sw-review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.sw-review {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
}
.sw-review-quote { width: 30px; height: 30px; color: var(--sw-accent-hover); opacity: .8; }
.sw-review blockquote { flex: 1; color: var(--text-body); font-size: 15px; font-style: italic; line-height: 1.7; }
.sw-review figcaption { display: flex; align-items: center; gap: 12px; }
.sw-review figcaption strong { display: block; color: var(--text-display); font-size: 14px; }
.sw-review figcaption small { display: block; color: var(--text-muted); font-size: 12px; }
.sw-review-avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--grad-brand);
  color: #fff;
  font-weight: 800;
}

.sw-promo {
  position: relative;
  overflow: hidden;
  min-height: 300px;
  display: flex;
  align-items: center;
  border-radius: var(--radius-xl);
  background-size: cover;
  background-position: center;
  border: 1px solid var(--border-default);
}
.sw-promo-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7, 4, 12, .95) 0%, rgba(7, 4, 12, .72) 45%, rgba(7, 4, 12, .1) 100%); }
.sw-promo-gold { border-color: rgba(255, 200, 30, .4); }
.sw-promo-inner { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; max-width: 620px; padding: 48px; }
.sw-promo-kicker { font-family: var(--font-mono); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--sw-gold); }
.sw-promo-title { font-size: clamp(36px, 4.4vw, 60px); transform: skewX(var(--display-skew)); transform-origin: left bottom; }
.sw-promo-gold .sw-promo-title .accent { background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; }
.sw-promo-sub { color: var(--text-body); font-size: 16px; }

/* ------------------------------------------------------------
   31 · DISCORD BAND
   ------------------------------------------------------------ */
.sw-discord-band { margin-top: 110px; }
.sw-discord-inner {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 40px 48px;
  border-radius: var(--radius-xl);
  background: linear-gradient(115deg, #2A0B4D 0%, #170A2B 52%, #100A1A 100%);
  border: 1px solid rgba(155, 61, 255, .4);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, .06);
}
.sw-discord-glow {
  position: absolute;
  width: 420px;
  height: 420px;
  left: -120px;
  top: -160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(155, 61, 255, .45), rgba(155, 61, 255, 0) 70%);
  pointer-events: none;
}
.sw-discord-mark { position: relative; width: 104px; height: 104px; flex: none; object-fit: contain; filter: drop-shadow(0 10px 26px rgba(139, 39, 232, .6)); }
.sw-discord-text { position: relative; flex: 1; min-width: 0; }
.sw-discord-text h2 { margin-top: 10px; font-size: clamp(30px, 3.2vw, 42px); transform: skewX(var(--display-skew)); transform-origin: left bottom; }
.sw-discord-text > p:not(.sw-eyebrow) { margin-top: 10px; color: var(--text-body); }
.sw-discord-stats { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 14px !important; font-family: var(--font-mono); font-size: 12.5px; color: var(--text-muted) !important; }
.sw-discord-stats span { display: inline-flex; align-items: center; gap: 8px; }
.sw-discord-stats strong { color: var(--text-display); }
.sw-discord-inner .sw-btn { position: relative; min-height: 56px; padding: 0 30px; font-size: 14px; }
.sw-discord-inner .sw-btn svg { width: 22px; height: 22px; }

/* ------------------------------------------------------------
   32 · FOOTER
   ------------------------------------------------------------ */
.site-footer {
  position: relative;
  margin-top: 96px;
  padding: 72px 0 34px;
  background: linear-gradient(180deg, rgba(5, 3, 10, 0), var(--sw-ink-1000) 120px);
  border-top: 1px solid var(--border-subtle);
}
.site-footer::before {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  top: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(155, 61, 255, .6), rgba(255, 200, 30, .4), rgba(155, 61, 255, .6), transparent);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-logo { display: inline-flex; align-items: center; gap: 14px; }
.footer-logo img { width: 52px; height: 52px; object-fit: contain; }
.footer-logo .sw-display { font-size: 28px; transform: skewX(var(--display-skew)); }
.footer-blurb { max-width: 360px; margin-top: 18px; color: var(--text-muted); font-size: 14px; }
.footer-social { display: flex; gap: 8px; margin-top: 22px; }
.social-btn {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--border-subtle);
  color: var(--text-body);
  transition: all var(--dur-fast) var(--ease-out);
}
.social-btn svg { width: 18px; height: 18px; }
.social-btn:hover { color: #fff; background: var(--grad-brand); border-color: transparent; transform: translateY(-2px); }

.footer-title {
  margin-bottom: 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-display);
}
.footer-links { display: flex; flex-direction: column; gap: 10px; list-style: none; }
.footer-links a { color: var(--text-muted); font-size: 14px; }
.footer-links a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 56px;
  padding-top: 26px;
  border-top: 1px solid var(--border-subtle);
}
.copyright { color: var(--text-muted); font-size: 13px; }

/* ------------------------------------------------------------
   33 · SEARCH OVERLAY
   ------------------------------------------------------------ */
.sw-search {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 12vh 16px 16px;
}
.sw-search-field input:focus-visible,
.sw-search-inline input:focus-visible,
.sw-select select:focus-visible { box-shadow: none; }
.sw-search-backdrop,
.sw-wishlist-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 3, 10, .72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: sw-fade .2s ease both;
}
.sw-search-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(720px, 100%);
  max-height: 76vh;
  border-radius: var(--radius-xl);
  background: var(--surface-card);
  border: 1px solid var(--border-accent);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .7), 0 0 60px rgba(139, 39, 232, .2);
  overflow: hidden;
  animation: sw-drop .28s var(--ease-out) both;
}
@keyframes sw-fade { from { opacity: 0; } }
@keyframes sw-drop { from { opacity: 0; transform: translateY(-14px) scale(.98); } }

.sw-search-field {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 22px;
  height: 66px;
  border-bottom: 1px solid var(--border-subtle);
}
.sw-search-field svg { width: 22px; height: 22px; color: var(--text-accent); flex: none; }
.sw-search-field input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: none;
  background: none;
  color: var(--text-display);
  font-size: 18px;
}
.sw-search-field input::placeholder { color: var(--text-muted); }
.sw-search-close {
  display: none;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  color: var(--text-body);
}
.sw-search-close svg { width: 20px; height: 20px; }
.sw-search-field input::-webkit-search-cancel-button { display: none; }
kbd {
  padding: 3px 8px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-default);
  background: rgba(255, 255, 255, .04);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 11px;
}

.sw-search-body { overflow: auto; padding: 16px; }
.sw-search-cats { display: flex; flex-wrap: wrap; gap: 8px; padding: 2px 4px 14px; }
.sw-search-results { display: flex; flex-direction: column; gap: 4px; list-style: none; }
.sw-search-results a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px;
  border-radius: var(--radius-md);
  color: var(--text-body);
  border: 1px solid transparent;
}
.sw-search-results a:hover,
.sw-search-results a.is-active { background: var(--surface-accent-soft); border-color: var(--border-accent); color: #fff; }
.sw-search-results img { width: 96px; height: 54px; flex: none; object-fit: cover; border-radius: var(--radius-sm); background: var(--sw-ink-900); }
.sw-search-results .sw-sr-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sw-search-results .sw-sr-name { color: var(--text-display); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sw-search-results .sw-sr-cat { color: var(--text-accent); font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; }
.sw-search-results .sw-sr-price { color: var(--text-display); font-family: var(--font-mono); font-weight: 700; font-size: 13px; white-space: nowrap; }
.sw-search-results mark { background: none; color: var(--sw-gold); }
.sw-search-empty, .sw-search-loading { padding: 26px 8px; text-align: center; color: var(--text-muted); }

/* ------------------------------------------------------------
   34 · WISHLIST DRAWER
   ------------------------------------------------------------ */
.sw-wishlist { position: fixed; inset: 0; z-index: 2000; }
.sw-wishlist-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  width: min(420px, 94vw);
  background: var(--surface-raised);
  border-left: 1px solid var(--border-default);
  box-shadow: -30px 0 80px rgba(0, 0, 0, .6);
  animation: sw-slide-in .32s var(--ease-out) both;
}
@keyframes sw-slide-in { from { transform: translateX(100%); } }
.sw-wishlist-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px;
  border-bottom: 1px solid var(--border-subtle);
}
.sw-wishlist-head h3 { font-size: 26px; transform: skewX(var(--display-skew)); }
.sw-wishlist-items { flex: 1; overflow: auto; display: flex; flex-direction: column; gap: 10px; padding: 18px; list-style: none; }
.sw-wishlist-count {
  display: inline-grid;
  place-items: center;
  min-width: 26px;
  height: 26px;
  margin-left: 6px;
  padding: 0 7px;
  border-radius: var(--radius-pill);
  background: var(--sw-gold);
  color: var(--text-on-light);
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 800;
  vertical-align: middle;
  transform: skewX(6deg);
}
.sw-wl-view {
  flex: none;
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .06);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}
.sw-wl-view:hover { color: #fff; background: var(--grad-brand); }
.sw-wishlist-items li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: var(--radius-md);
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
}
.sw-wishlist-items img { width: 88px; height: 50px; object-fit: cover; border-radius: var(--radius-sm); flex: none; background: var(--sw-ink-900); }
.sw-wishlist-items .sw-wl-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sw-wishlist-items .sw-wl-text a { color: var(--text-display); font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sw-wishlist-items .sw-wl-text span { color: var(--text-muted); font-family: var(--font-mono); font-size: 12px; }
.sw-wishlist-items button { width: 34px; height: 34px; border-radius: var(--radius-sm); color: var(--text-muted); flex: none; }
.sw-wishlist-items button:hover { color: var(--sw-danger); background: rgba(255, 59, 92, .1); }
.sw-wishlist-items button svg { width: 16px; height: 16px; }
.sw-wishlist-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-block: auto;
  padding: 40px 32px;
  text-align: center;
  color: var(--text-muted);
}
.sw-wishlist-empty[hidden] { display: none; }
.sw-wishlist-empty-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 200, 30, .1);
  border: 1px solid rgba(255, 200, 30, .35);
  color: var(--sw-gold);
}
.sw-wishlist-empty-icon svg { width: 28px; height: 28px; }
.sw-wishlist-empty-title { color: var(--text-display); font-size: 18px; font-weight: 800; }
.sw-wishlist-empty .sw-btn { margin-top: 8px; }

/* ------------------------------------------------------------
   35 · MODULE CARDS + TIERED + CMS PAGES
   ------------------------------------------------------------ */
.sw-home-modules .widget,
.sw-footer-modules .widget {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
}

.store-products-tiered {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  align-items: stretch;
}
.store-products-tiered .store-product-tiered > .image,
.store-products-tiered .store-product-tiered > .image-default { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; min-height: 0; }
.store-products-tiered .store-product-tiered .product-body { display: flex; flex-direction: column; flex: 1; gap: 12px; padding: 20px; }
.store-products-tiered .store-product-tiered .product-title { font-size: 20px; font-weight: 800; line-height: 1.25; color: #fff; }
.store-products-tiered .store-product-tiered .descr { font-size: 13.5px; color: var(--text-muted); }
.store-products-tiered .store-product-tiered .product-actions { margin-top: 0; }
.store-products-tiered .descr.is-collapsed {
  max-height: 220px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(#000 60%, transparent);
  mask-image: linear-gradient(#000 60%, transparent);
}
.sw-collapse-toggle {
  align-self: flex-start;
  margin-top: -4px;
  color: var(--text-accent);
  font-size: 13px;
  font-weight: 700;
}
.sw-collapse-toggle:hover { color: #fff; }
.store-products-tiered .store-product-tiered .descr h2,
.store-products-tiered .store-product-tiered .descr h3 { font-size: 15px; }
.store-products-tiered .store-product-tiered.subscribed { border-color: var(--sw-accent); box-shadow: var(--glow-accent); }

/* default Tebex pages (cms/page.html, username, options ...) */
.site-content > .store-text,
.site-content > main.store-text {
  max-width: 920px;
  margin: 0 auto;
  padding: 44px;
  border-radius: var(--radius-xl);
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
}
.site-content > .store-text > h2:first-child {
  margin-bottom: 24px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(36px, 4vw, 54px);
  text-transform: uppercase;
  line-height: 1;
  color: var(--text-display);
  transform: skewX(var(--display-skew));
  transform-origin: left bottom;
}

.page-cms .site-content > main.sw-cms { max-width: 920px; margin: 0; }

/* Store menu (from 4 categories on) lists subcategories indented */
.sw-nav-store .sw-nav-sub a { padding-left: 26px !important; font-size: 12px; color: var(--text-muted); }

/* back to top */
.sw-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 700;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  background: rgba(16, 10, 26, .85);
  border: 1px solid var(--border-default);
  backdrop-filter: blur(10px);
  color: var(--text-body);
  opacity: 0;
  translate: 0 12px;
  pointer-events: none;
  transition: all var(--dur-base) var(--ease-out);
}
.sw-top svg { width: 20px; height: 20px; }
.sw-top-visible { opacity: 1; translate: 0 0; pointer-events: auto; }
.sw-top:hover { color: #fff; border-color: var(--border-accent); background: var(--surface-accent-soft); }

/* ------------------------------------------------------------
   36 · MOTION LAYER
   ------------------------------------------------------------ */
/* reveals use the independent `translate` property, so they never fight
   with hover transforms; studioworks.js drops both classes once done */
.sw-reveal {
  opacity: 0;
  translate: 0 26px;
  transition: opacity .7s var(--ease-out), translate .7s var(--ease-out);
  transition-delay: calc(var(--reveal-i, 0) * 70ms);
}
.sw-reveal.sw-revealed { opacity: 1; translate: 0 0; }

html[data-anims="off"] .sw-reveal { opacity: 1 !important; translate: none !important; }
html[data-anims="off"] .sw-hero-emblem,
html[data-anims="off"] .sw-hero-badge,
html[data-anims="off"] .sw-hero-title,
html[data-anims="off"] .sw-hero-sub,
html[data-anims="off"] .sw-hero-ctas,
html[data-anims="off"] .sw-hero-points { animation: none !important; }
html[data-anims="off"] .sw-hero-title { transform: skewX(var(--display-skew)); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .sw-reveal { opacity: 1 !important; translate: none !important; }
  .sw-announce-track, .sw-ticker-track { animation: none !important; }
  .sw-ticker-viewport { overflow-x: auto; }
}

/* ------------------------------------------------------------
   37 · RESPONSIVE
   ------------------------------------------------------------ */
@media (width <= 1280px) {
  .sw-top { width: 40px; height: 40px; right: 12px; bottom: 12px; }
  .footer-bottom { padding-right: 52px; }
  .site-header-inner { gap: 18px; padding: 0 22px; }
  .site-navigation .menu a { padding: 0 11px; font-size: 12px; }
  .sw-row-track { --per-view: 3; }
  .sw-card-grid,
  .store-products-grid.sw-cols-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sw-feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sw-pdp-grid { grid-template-columns: minmax(0, 1fr) 380px; }
  .sw-basket-btn .basket-label { display: none; }
  .sw-basket-btn { width: 44px; padding: 0; justify-content: center; }
}

@media (width <= 1180px) {
  .sw-hide-compact { display: none !important; }
}

@media (width <= 1100px) {
  .sw-row-track { --per-view: 2.5; }
  /* tablets keep the buy card next to the gallery (narrower), like desktop */
  .sw-pdp-grid { grid-template-columns: minmax(0, 1fr) 330px; gap: 28px 24px; }
  .sw-pdp-card { padding: 22px; }
  .sw-about-card { padding: 36px; }
}

@media (width <= 900px) {
  .store-products-grid,
  .store-products-grid.sw-cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* short laptop screens (1366x768 & co.): the hero must fit the first screen */
@media (width > 960px) and (max-height: 820px) {
  .sw-hero { min-height: 0; padding: 44px 0 72px; }
  .sw-hero-emblem { width: 76px; height: 76px; margin-bottom: 12px; }
  .sw-hero-title { font-size: clamp(46px, min(7.6vw, 11.5vh), 108px); margin-top: 18px; }
  .sw-hero-sub { margin-top: 18px; }
  .sw-hero-ctas { margin-top: 26px; }
  .sw-hero-points { margin-top: 22px; }
}

@media (width > 960px) and (width <= 1100px) {
  .footer-grid { grid-template-columns: 1.3fr repeat(3, 1fr); gap: 28px; }
}

/* the nav turns into Exo's drawer (main.js matches width > 960px) */
@media (width <= 960px) {
  :root { --header-h: 64px; --content-padding: 20px; }

  .mobile-only { display: block; }
  .sw-hide-mobile { display: none !important; }
  .toggle-navigation { display: inline-flex; }

  .site-header-inner { gap: 10px; padding: 0 14px; }
  .site-logo img { height: min(var(--sw-logo-h), 34px); max-width: 170px; }
  .site-header-actions { gap: 6px; }
  .sw-icon-btn, .sw-login, .sw-basket-btn { height: 40px; }
  .sw-icon-btn { width: 40px; }
  .sw-login-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .sw-login { width: 40px; padding: 0; justify-content: center; }
  .site-logo img { height: min(var(--sw-logo-h), 40px); }

  .sw-pdp-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "media" "buy" "descr"; gap: 28px; }
  .sw-pdp-card { position: relative; top: 0; }
  .page-package .site-footer { padding-bottom: calc(34px + 84px + env(safe-area-inset-bottom)); }
  .sw-buybar { bottom: calc(12px + env(safe-area-inset-bottom)); }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .sw-search-inline input, .sw-sort-select { font-size: 16px; }

  .site-navigation {
    position: fixed;
    inset: 0;
    z-index: 100000;
    padding: 0;
    background: rgba(5, 3, 10, .7);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: opacity var(--fade-duration) ease;
  }
  body:not(.show-navigation) .site-navigation { visibility: hidden; opacity: 0; }
  .site-navigation.drawer { user-select: none; }

  .site-navigation .menu {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    position: absolute;
    inset: 0 auto 0 0;
    width: min(340px, calc(100vw - 56px));
    padding: 22px 18px 24px;
    background: var(--surface-raised);
    border-right: 1px solid var(--border-default);
    overflow: hidden auto;
    transition: opacity var(--fade-duration) ease, scale var(--fade-duration) ease, translate var(--fade-duration) ease;
  }
  body:not(.show-navigation) .site-navigation .menu { translate: -100% 0; opacity: .8; scale: .96; }
  .site-navigation.touching .menu { transition: opacity var(--fade-duration) ease, scale var(--fade-duration) ease; }
  .site-navigation.may-close .menu { opacity: .8; }

  .site-navigation .menu a { display: flex; width: 100%; height: 50px; padding: 0 14px; font-size: 14px; border-radius: var(--radius-md); }
  .site-navigation .menu > li > a::after { left: 0; right: auto; top: 12px; bottom: 12px; width: 3px; height: auto; transform: scaleY(0); }
  .site-navigation .menu > li > a.link-active { background: var(--surface-accent-soft); }
  .site-navigation .menu > li > a.link-active::after { transform: scaleY(1); }

  .sw-nav-brand {
    display: flex !important;
    align-items: center;
    gap: 12px;
    padding: 0 6px 18px;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--border-subtle);
    font-family: var(--font-display);
    font-size: 22px;
    text-transform: uppercase;
    color: var(--text-display);
  }
  .sw-nav-brand img { width: 40px; height: 40px; object-fit: contain; }

  .site-navigation .has-children { display: flex; align-items: center; flex-wrap: wrap; }
  .site-navigation .has-children > a { flex: 1 1 auto; width: auto; }
  .site-navigation .has-children > ul { display: none; width: 100%; list-style: none; padding-left: 14px; }
  .site-navigation .has-children.expanded > ul { display: block; }
  .site-navigation .has-children.expanded > .toggle::before { rotate: 180deg; }
  .site-navigation .toggle { width: 44px; height: 44px; }

  .sw-nav-extra { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border-subtle); }
  .sw-nav-switches { display: flex !important; flex-direction: column; gap: 10px; margin-top: 10px; }
  .sw-nav-switch { display: flex; flex-wrap: wrap; gap: 6px; }
  .site-navigation .sw-nav-switch a {
    width: auto;
    height: 36px;
    padding: 0 12px;
    border: 1px solid var(--border-default);
    font-family: var(--font-mono);
    font-size: 12px;
  }
  .site-navigation .sw-nav-switch a.active { background: var(--grad-brand); color: #fff; border-color: transparent; }
  .site-navigation .log-out { margin-top: auto; padding-top: 14px; }

  .site-navigation .close-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 16px;
    left: min(350px, calc(100vw - 46px));
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: var(--surface-card);
    border: 1px solid var(--border-default);
    font-size: 0;
    color: var(--text-body);
  }
  .site-navigation .close-navigation::before {
    content: "";
    display: block;
    width: 18px;
    height: 18px;
    background-color: currentColor;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M18 6 6 18M6 6l12 12'/%3E%3C/svg%3E") center center / contain no-repeat;
  }
  body:not(.show-navigation) .site-navigation .close-navigation { opacity: 0; }

  .sw-announce { height: 34px; font-size: 11.5px; letter-spacing: .1em; }
  .sw-announce[data-sw-announce="auto"]:not([data-layout]) .sw-announce-item:not(.is-active) { display: none; }

  .sw-hero { min-height: 0; padding: 56px 0 88px; }
  .sw-hero-emblem { width: 84px; height: 84px; }
  .sw-hero-points { gap: 10px 18px; }
  .sw-hero-points li { font-size: 13px; }

  .sw-section { margin-top: 72px; }
  .sw-ticker { flex-direction: column; }
  .sw-ticker-label { padding: 12px 16px; border-right: 0; border-bottom: 1px solid var(--border-subtle); }
  .sw-ticker-viewport { padding: 10px 0; }

  .sw-collections { gap: 56px; }
  .sw-row-track { --per-view: 2.15; --row-gap: 14px; }
  .sw-row-nav { display: none !important; }
  .sw-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }

  .sw-page-head { padding: 34px 0 28px; }
  .sw-catalog-toolbar { width: 100%; }
  .sw-search-inline { flex: 1; width: auto; }

  .sw-buybar { display: flex; }
  .page-package .sw-top { bottom: 92px; }

  .sw-about-card { padding: 28px 22px; }

  .sw-discord-inner { flex-direction: column; align-items: flex-start; padding: 30px 26px; gap: 20px; }
  .sw-discord-mark { width: 80px; height: 80px; }
  .sw-discord-inner .sw-btn { width: 100%; }
}

@media (width <= 640px) {
  .sw-row-track { --per-view: 1.18; }
  .sw-row-title { font-size: 30px; }

  .store-products-grid,
  .store-products-grid.sw-cols-4,
  .sw-card-grid { grid-template-columns: minmax(0, 1fr); }
  .store-products-list .sw-card { flex-direction: column; }
  .store-products-list .sw-card-media { width: 100%; aspect-ratio: 16 / 9; }

  .sw-feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .sw-feature { padding: 20px 14px; }
  .sw-feature-icon { width: 44px; height: 44px; border-radius: 12px; }
  .sw-feature-icon svg { width: 20px; height: 20px; }
  .sw-feature h3 { margin-top: 12px; font-size: 15px; }
  .sw-feature p { font-size: 13px; }
  .site-content > .store-text,
  .site-content > main.store-text { padding: 26px 20px; }
  .sw-select { flex: 1 1 100%; }
  .sw-sort-select { width: 100%; }
  .sw-search-close { display: grid; }
  .sw-search-results .sw-sr-name { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .sw-hero-ctas { flex-direction: column; align-items: stretch; width: 100%; }
  .sw-hero-ctas .sw-btn { width: 100%; }

  .sw-section-head { margin-bottom: 22px; }

  .sw-pdp-card { padding: 22px; }
  .sw-pdp-descr .descr { padding: 22px; }
  .sw-pdp-descr-head { padding: 18px 22px; }
  .sw-pdp-media .media-slider .thumb { width: 84px; height: 48px; }

  .sw-promo-inner { padding: 30px 24px; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }

  .sw-search { padding-top: 8px; }
  .sw-search-results img { width: 72px; height: 40px; }
  .sw-search-field kbd { display: none; }
}
