/* ================================================================
   SLANG SERVICE — v3
   Premium, minimal, distinct. Slang-red kept as single accent.
   Display: Space Grotesk · UI: Geist · Mono: JetBrains Mono
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Geist:wght@300;400;500;600;700&family=Space+Grotesk:wght@500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* === DESIGN TOKENS === */
:root {
  /* Surfaces — deep cool charcoal, not warm */
  --bg:           #0A0B0F;
  --surface-1:    #0F1117;
  --surface-2:    #14171F;
  --surface-3:    #1A1E27;
  --surface-4:    #232733;

  /* Borders */
  --b1:           rgba(255, 255, 255, 0.06);
  --b2:           rgba(255, 255, 255, 0.10);
  --b3:           rgba(255, 255, 255, 0.16);

  /* Text */
  --t1:           #F5F7FB;
  --t2:           rgba(245, 247, 251, 0.62);
  --t3:           rgba(245, 247, 251, 0.40);
  --t4:           rgba(245, 247, 251, 0.22);

  /* Accent — Slang red, vivid but not glowing */
  --r:            #FF2E3D;
  --r-hi:         #FF4D5A;
  --r-soft:       rgba(255, 46, 61, 0.10);
  --r-soft-hi:    rgba(255, 46, 61, 0.18);
  --r-ring:       rgba(255, 46, 61, 0.32);

  --success:      #34D399;
  --warning:      #F59E0B;

  /* Tebex bridges */
  --color-primary:           var(--r);
  --color-primary-hover:     var(--r-hi);
  --color-primary-text:      #ffffff;
  --color-primary-text-hover:#ffffff;
  --color-secondary:         var(--surface-2);
  --color-secondary-hover:   var(--surface-3);
  --color-secondary-text:    var(--t1);
  --color-secondary-text-hover: var(--t1);
  --color-tertiary-hover:    rgba(255, 255, 255, 0.04);
  --color-bg:                var(--bg);
  --color-text:              var(--t1);
  --color-text-darker:       var(--t2);
  --color-text-secondary:    var(--t2);
  --color-sale-banner-bg:    var(--r);
  --color-sale-banner-text:  #ffffff;
  --bg-image:                none;

  /* Motion */
  --eo:    cubic-bezier(0.23, 1, 0.32, 1);
  --eio:   cubic-bezier(0.4, 0, 0.2, 1);

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

  /* Shadows */
  --sh-1: 0 1px 2px rgba(0, 0, 0, 0.40), 0 4px 12px rgba(0, 0, 0, 0.20);
  --sh-2: 0 8px 24px rgba(0, 0, 0, 0.45), 0 2px 6px rgba(0, 0, 0, 0.30);
  --sh-h: 0 14px 36px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}

/* === BASE === */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-weight: 400;
  font-size: 15px;
  line-height: 1.55;
  background: var(--bg);
  color: var(--t1);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Atmospheric background — soft, diffuse red bloom (no hard edges) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 90% 70% at 50% -20%, rgba(255, 46, 61, 0.18) 0%, transparent 70%),
    radial-gradient(ellipse 70% 80% at -10% 40%, rgba(255, 46, 61, 0.10) 0%, transparent 70%),
    radial-gradient(ellipse 70% 80% at 110% 60%, rgba(255, 46, 61, 0.10) 0%, transparent 70%),
    radial-gradient(ellipse 70% 50% at 50% 120%, rgba(255, 46, 61, 0.06) 0%, transparent 70%),
    var(--bg);
}

::selection { color: #fff; background-color: rgba(255, 46, 61, 0.40); }

/* === SCROLLBAR === */
html { scrollbar-color: rgba(255, 255, 255, 0.16) transparent; scrollbar-width: thin; }
*::-webkit-scrollbar { width: 6px; height: 6px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.10);
  border-radius: var(--r-pill);
  transition: background 180ms var(--eo);
}
*::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.20); }

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', 'Geist', sans-serif;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--t1);
  margin: 0;
}
h1 { font-size: clamp(2.6rem, 5vw, 4rem); line-height: 1.02; }
h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); line-height: 1.1; }
h3 { font-size: 1.4rem; line-height: 1.2; }
h4 { font-size: 1.1rem; line-height: 1.3; font-weight: 600; }

p { margin: 0 0 0.85em; }
a { color: var(--t1); text-decoration: none; transition: color 160ms var(--eo); }

/* === BUTTONS === */
.btn-primary,
.btn-secondary,
.btn-tertiary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Geist', sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: -0.005em;
  padding: 10px 16px;
  border-radius: var(--r-md);
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  transition:
    background-color 200ms var(--eo),
    border-color 200ms var(--eo),
    color 200ms var(--eo),
    box-shadow 200ms var(--eo),
    transform 140ms var(--eo);
}
.btn-primary:active,
.btn-secondary:active,
.btn-tertiary:active { transform: scale(0.97); }

.btn-primary {
  background: var(--r) !important;
  border: 1px solid transparent;
  color: #ffffff !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 4px 14px rgba(255, 46, 61, 0.24);
}
.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--r-hi) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 6px 22px rgba(255, 46, 61, 0.36);
}

.btn-secondary {
  background: var(--surface-2) !important;
  border: 1px solid var(--b2);
  color: var(--t1) !important;
}
.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: var(--surface-3) !important;
  border-color: var(--b3);
}

.btn-tertiary {
  background: transparent !important;
  border: 1px solid transparent;
  color: var(--t2) !important;
  padding: 9px 14px;
}
.btn-tertiary:hover,
.btn-tertiary:focus-visible {
  background: var(--surface-1) !important;
  color: var(--t1) !important;
}

.btn-glyph,
.btn-icon {
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: var(--r-md);
}

/* === QUANTITY FIELD === */
.quantity-field {
  display: inline-flex;
  align-items: center;
  background: var(--surface-2);
  border: 1px solid var(--b2);
  border-radius: var(--r-md);
  overflow: hidden;
}
.quantity-field input[type=number] {
  background: transparent;
  border: none;
  color: var(--t1);
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
  font-size: 14px;
  padding: 8px 4px;
  text-align: center;
  width: 48px;
  -moz-appearance: textfield;
  outline: none;
}
.quantity-field input[type=number]::-webkit-inner-spin-button,
.quantity-field input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.quantity-field .adjust {
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  color: var(--t2);
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  transition: color 160ms var(--eo), background 160ms var(--eo);
}
.quantity-field .adjust:hover { color: var(--t1); background: rgba(255, 255, 255, 0.04); }

/* === HEADER ===
   shared.css forces a 355px tall header with absolute positioning;
   we override aggressively to get a compact, modern bar. */
.site-header {
  background: transparent !important;
  border-bottom: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 900 !important;
}
.site-header-inner {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 16px !important;
  height: auto !important;
  min-height: 64px !important;
  padding: 10px 0 !important;
  position: relative !important;
}
.site-header-inner::after { display: none !important; }

/* Reset all children from absolute to static, kill enforced widths/insets */
.site-header-inner > * {
  position: static !important;
  inset: auto !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  line-height: normal !important;
  font-size: 14px;
}

.site-header-inner .actions { order: 0 !important; flex: 0 0 auto !important; }
.site-header-inner .toggle-navigation { display: none !important; }

.site-header-inner .site-title {
  order: 1 !important;
  display: flex !important;
  align-items: center !important;
  flex: 0 0 auto !important;
  font-size: 0 !important;
  text-align: left !important;
  font-weight: 700 !important;
}
.site-header-inner .site-title a {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--t1);
  transition: opacity 160ms var(--eo);
}
.site-header-inner .site-title a:hover { opacity: 0.85; }
.site-header-inner .site-title img {
  height: 44px !important;
  max-height: none !important;
  width: auto !important;
  margin: 0 !important;
  object-fit: contain !important;
  filter:
    drop-shadow(0 0 14px rgba(255, 46, 61, 0.55))
    drop-shadow(0 0 28px rgba(255, 46, 61, 0.25));
  transition: filter 220ms var(--eo), transform 220ms var(--eo);
}
.site-header-inner .site-title a:hover img {
  filter:
    drop-shadow(0 0 20px rgba(255, 46, 61, 0.75))
    drop-shadow(0 0 40px rgba(255, 46, 61, 0.40));
  transform: scale(1.04);
}
.site-header-inner .site-title .logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--r) 0%, #B81620 100%);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.04em;
  color: #fff;
  box-shadow: 0 0 18px rgba(255, 46, 61, 0.40), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.site-header-inner .info { order: 2; }
.site-header-inner .info .title {
  font-family: 'Space Grotesk', sans-serif;
  color: var(--t1);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.015em;
}
.site-header-inner .info .action {
  font-size: 11px;
  color: var(--t3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}
.site-header-inner .info:hover .action { color: var(--r-hi); }
.site-header-inner .info .value { color: var(--t2); font-family: 'JetBrains Mono', monospace; }
.site-header-inner .info .image { filter: brightness(0.9); }

.site-header-inner .user-actions,
.site-header-inner > .log-in {
  margin-left: auto !important;
  order: 99 !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  flex: 0 0 auto !important;
}

.log-in.btn-tertiary {
  border-radius: var(--r-pill);
  padding: 9px 18px;
  background: var(--surface-1) !important;
  border: 1px solid var(--b2) !important;
  color: var(--t1) !important;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.005em;
}
.log-in.btn-tertiary:hover {
  background: var(--surface-2) !important;
  border-color: var(--b3) !important;
}

.btn-secondary.user-name {
  border-radius: var(--r-pill);
  padding: 8px 14px;
  font-size: 13px;
}

/* === SALE BANNER === */
.site-sale-banner {
  font-family: 'Geist', sans-serif;
  font-weight: 600;
  letter-spacing: -0.005em;
  text-align: center;
  padding: 11px 16px;
  font-size: 13px;
  border-radius: var(--r-md);
  margin: 16px 0 0;
  background: var(--r-soft);
  color: var(--r-hi);
  border: 1px solid var(--r-ring);
}

/* === HORIZONTAL NAV === */
.site-header .navigation-horizontal {
  order: 2;
  flex: 1;
  margin: 0 8px;
}
.navigation-horizontal .menu {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
  background: transparent !important;
}
.navigation-horizontal .menu > li > a {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 500;
  color: var(--t2);
  transition: background 160ms var(--eo), color 160ms var(--eo);
}
.navigation-horizontal .menu > li > a:hover {
  color: var(--t1);
  background: var(--surface-1);
}
.navigation-horizontal .menu > li > a.link-active,
.navigation-horizontal .menu > li.active > a {
  color: var(--t1);
  font-weight: 600;
  background: transparent;
}
.navigation-horizontal .has-children > ul {
  background: var(--surface-2);
  border: 1px solid var(--b2);
  border-radius: var(--r-md);
  box-shadow: var(--sh-2);
  padding: 6px;
  min-width: 200px;
}
.navigation-horizontal li li a {
  display: block;
  padding: 8px 12px;
  border-radius: var(--r-sm);
  font-size: 14px;
  color: var(--t2);
}
.navigation-horizontal li li a:hover,
.navigation-horizontal li li a.link-active {
  background: var(--surface-3);
  color: var(--t1);
}

/* Discord nav link */
.nav-discord .discord-nav-link {
  margin-left: 8px;
  background: var(--surface-1);
  border: 1px solid var(--b2);
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px;
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 600;
  color: #B8C0FF !important;
  transition: background 160ms var(--eo), border-color 160ms var(--eo);
}
.nav-discord .discord-nav-link svg { color: #5865F2; }
.nav-discord .discord-nav-link:hover {
  background: rgba(88, 101, 242, 0.12);
  border-color: rgba(88, 101, 242, 0.45);
  color: #ffffff !important;
}

/* === VERTICAL NAV === */
.navigation-vertical .menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.navigation-vertical .menu li a {
  display: block;
  padding: 9px 12px;
  border-radius: var(--r-md);
  font-size: 14px;
  font-weight: 500;
  color: var(--t2);
  transition: background 160ms var(--eo), color 160ms var(--eo);
}
.navigation-vertical .menu li a:hover { background: var(--surface-2); color: var(--t1); }
.navigation-vertical .menu li.active > a,
.navigation-vertical .menu li a.link-active {
  background: var(--surface-3);
  color: var(--t1);
}
.navigation-vertical .menu li li a {
  padding-left: 24px;
  font-size: 13px;
  color: var(--t3);
}

/* === HERO ====================================================== */
.hero {
  max-width: 1280px;
  margin: 32px auto 0;
  padding: 0 16px;
  position: relative;
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  padding: 56px 0 64px;
  position: relative;
}
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 32px; padding: 40px 0; }
}

.hero-copy { position: relative; z-index: 2; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 8px;
  border-radius: var(--r-pill);
  background: var(--r-soft);
  border: 1px solid var(--r-ring);
  font-family: 'Geist', sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: var(--r-hi);
  letter-spacing: -0.005em;
  margin-bottom: 22px;
}
.hero-eyebrow-dot {
  width: 6px; height: 6px;
  background: var(--r);
  border-radius: 999px;
  box-shadow: 0 0 8px rgba(255, 46, 61, 0.7);
  animation: hero-pulse 2.4s ease-in-out infinite;
}
@keyframes hero-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.6; transform: scale(0.85); }
}

.hero-headline {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(2rem, 3.6vw, 2.9rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--t1);
  margin: 0 0 16px;
}
.hero-headline-accent {
  background: linear-gradient(135deg, var(--r) 0%, var(--r-hi) 60%, #FFB3BB 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-style: italic;
  font-weight: 600;
}

.hero-sub {
  font-family: 'Geist', sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--t2);
  max-width: 540px;
  margin: 0 0 28px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 36px;
}
.hero-cta .btn-primary,
.hero-cta .btn-secondary {
  padding: 12px 20px;
  font-size: 14px;
  border-radius: var(--r-md);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--b1);
  padding-top: 22px;
  max-width: 540px;
}
@media (max-width: 540px) {
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 16px 0; }
}
.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-right: 16px;
  border-right: 1px solid var(--b1);
}
.hero-stat:last-child { border-right: none; padding-right: 0; }
.hero-stat-num {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.025em;
  color: var(--t1);
  line-height: 1;
}
.hero-stat-label {
  font-family: 'Geist', sans-serif;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--t3);
  margin-top: 4px;
}

/* === HERO VISUAL — floating cards on a grid === */
.hero-visual {
  position: relative;
  height: 380px;
  z-index: 1;
}
@media (max-width: 900px) {
  .hero-visual { height: 280px; }
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 36px 36px;
  border-radius: var(--r-xl);
  border: 1px solid var(--b1);
  background-color: var(--surface-1);
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, #000 30%, transparent 80%);
}
.hero-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 46, 61, 0.30), transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(255, 46, 61, 0.18), transparent 50%);
  filter: blur(20px);
  opacity: 0.7;
}

.hero-card {
  position: absolute;
  background: var(--surface-2);
  border: 1px solid var(--b2);
  border-radius: var(--r-md);
  padding: 14px 16px;
  min-width: 220px;
  box-shadow: var(--sh-2);
  z-index: 3;
  transition: transform 320ms var(--eo);
}
.hero-card:hover { transform: translateY(-3px); }

.hero-card-tag {
  font-family: 'Geist', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--r-hi);
  margin-bottom: 6px;
}
.hero-card-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.015em;
  color: var(--t1);
  margin-bottom: 4px;
}
.hero-card-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--t3);
}

.hero-card-1 { top: 30px; left: 8%; transform: rotate(-3deg); }
.hero-card-1:hover { transform: rotate(-3deg) translateY(-3px); }
.hero-card-2 { top: 130px; right: 6%; transform: rotate(2deg); }
.hero-card-2:hover { transform: rotate(2deg) translateY(-3px); }
.hero-card-3 { bottom: 30px; left: 22%; transform: rotate(-1deg); }
.hero-card-3:hover { transform: rotate(-1deg) translateY(-3px); }

.hero-card-3 .hero-card-tag { color: #34D399; }

@media (max-width: 900px) {
  .hero-card { min-width: 180px; padding: 10px 12px; }
  .hero-card-1 { top: 0; left: 0; }
  .hero-card-2 { top: 80px; right: 0; }
  .hero-card-3 { bottom: 0; left: 30%; }
}

/* === HOME CATEGORY GRID — clean chip-style cards ===
   We override Tebex's default tiny icon and render our own. */
.site-home-categories {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 180px));
  gap: 10px;
  padding: 28px 0 24px;
  margin-top: 8px;
  position: relative;
}

.site-home-categories .category {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 4px;
  padding: 14px 16px;
  min-height: 90px;
  border-radius: var(--r-lg);
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(255, 46, 61, 0.10) 0%, transparent 50%),
    linear-gradient(180deg, var(--surface-2), var(--surface-1));
  border: 1px solid var(--b1);
  color: var(--t1);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.025em;
  overflow: hidden;
  transition:
    border-color 220ms var(--eo),
    transform 220ms var(--eo),
    box-shadow 220ms var(--eo);
}

/* Hide Tebex default 'package' SVG and any image-fill */
.site-home-categories .category .image-default,
.site-home-categories .category .image {
  display: none !important;
}

/* Custom decorative shape: a corner accent rectangle that flips on hover */
.site-home-categories .category::after {
  content: "";
  position: absolute;
  top: 18px; left: 22px;
  width: 28px; height: 28px;
  border-radius: 8px;
  background: var(--r-soft);
  border: 1px solid var(--r-ring);
  transition: transform 280ms var(--eo), background 220ms var(--eo);
  z-index: 1;
}
.site-home-categories .category::after {
  /* Stylized symbol via mask */
  background-color: var(--r-soft);
  background-image: linear-gradient(135deg, var(--r) 0 50%, transparent 50% 100%);
  background-size: 60% 60%;
  background-position: 4px 4px;
  background-repeat: no-repeat;
  opacity: 0.85;
}

/* Browse → tag */
.site-home-categories .category::before {
  content: "Browse →";
  position: absolute;
  top: 20px; right: 20px;
  z-index: 2;
  font-family: 'Geist', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--b2);
  color: var(--t3);
  transition: background 220ms var(--eo), color 220ms var(--eo), border-color 220ms var(--eo);
}

@media (hover: hover) and (pointer: fine) {
  .site-home-categories .category:hover {
    border-color: var(--b3);
    transform: translateY(-3px);
    box-shadow: var(--sh-h);
  }
  .site-home-categories .category:hover::before {
    background: var(--r-soft);
    border-color: var(--r-ring);
    color: var(--r-hi);
  }
  .site-home-categories .category:hover::after {
    transform: rotate(-12deg) scale(1.08);
  }
}
.site-home-categories .category:active { transform: scale(0.99); }

/* === CONTENT === */
.site-content { padding-top: 8px; padding-bottom: 56px; }

/* === STORE TEXT BLOCK (welcome) — magazine style === */
.store-text,
.text-content {
  color: var(--t2);
  font-size: 16px;
  line-height: 1.7;
}
.store-text {
  background: transparent;
  border: none;
  padding: 8px 0 0;
  position: relative;
}
.store-text > p:first-of-type::first-line {
  /* keep natural */
}
.store-text > p:first-of-type {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  line-height: 1.4;
  color: var(--t1);
  font-weight: 500;
  letter-spacing: -0.015em;
  margin-bottom: 1.25em;
  padding-bottom: 1.25em;
  border-bottom: 1px solid var(--b1);
}
.store-text h1, .store-text h2 {
  font-family: 'Space Grotesk', sans-serif;
  color: var(--t1);
  letter-spacing: -0.025em;
  margin-top: 1.4em;
  margin-bottom: 0.5em;
}
.store-text h3 {
  color: var(--t1);
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: 'Geist', sans-serif;
  font-weight: 600;
  margin-top: 1.6em;
  margin-bottom: 0.4em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.store-text h3::before {
  content: "";
  width: 4px; height: 4px;
  background: var(--r);
  border-radius: 999px;
  display: inline-block;
}
.store-text strong { color: var(--t1); font-weight: 600; }
.store-text a { color: var(--r-hi); }
.store-text a:hover { color: var(--r); text-decoration: underline; }

/* === CATEGORY BANNER (compact, refined) === */
.category-banner {
  position: relative;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  padding: 18px 22px;
  margin: 4px 0 18px;
  background:
    radial-gradient(ellipse 60% 80% at 0% 100%, rgba(255, 46, 61, 0.10) 0%, transparent 70%),
    var(--surface-1);
  border: 1px solid var(--b1);
  border-radius: var(--r-lg);
}
.category-banner-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  background: var(--surface-2);
  border: 1px solid var(--b2);
  color: var(--t2);
  font-family: 'Geist', sans-serif;
  font-size: 12px;
  font-weight: 500;
  transition: background 160ms var(--eo), border-color 160ms var(--eo), color 160ms var(--eo);
}
.category-banner-back:hover {
  background: var(--r-soft);
  border-color: var(--r-ring);
  color: var(--r-hi);
}
.category-banner-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(1.4rem, 2.2vw, 1.8rem);
  letter-spacing: -0.025em;
  color: var(--t1);
  margin: 0;
  flex: 1;
}
.category-banner-meta {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 5px 12px;
  background: var(--r-soft);
  border: 1px solid var(--r-ring);
  border-radius: var(--r-pill);
  white-space: nowrap;
}
.category-banner-count {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -0.02em;
  color: var(--r-hi);
  line-height: 1;
}
.category-banner-count-label {
  font-family: 'Geist', sans-serif;
  font-size: 10px;
  font-weight: 500;
  color: var(--r-hi);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* === CATEGORY DESCRIPTION === */
.category-description {
  color: var(--t2);
  font-size: 15px;
  line-height: 1.6;
  padding: 8px 0 24px;
}
.category-description h1,
.category-description h2 {
  color: var(--t1);
  margin: 0 0 0.4em;
}

/* === PACKAGE SEARCH BAR === */
.package-search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface-1);
  border: 1px solid var(--b1);
  border-radius: var(--r-pill);
  padding: 4px 18px 4px 16px;
  margin: 0 0 28px;
  max-width: 480px;
  transition: border-color 180ms var(--eo), background 180ms var(--eo);
}
.package-search-bar:focus-within {
  border-color: var(--b3);
  background: var(--surface-2);
}
.package-search-bar svg {
  color: var(--t3);
  flex-shrink: 0;
  width: 16px; height: 16px;
}
.package-search-bar input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--t1);
  font-family: 'Geist', sans-serif;
  font-weight: 400;
  font-size: 14px;
  padding: 11px 0;
  outline: none;
}
.package-search-bar input::placeholder { color: var(--t3); }
.search-count {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--t3);
  white-space: nowrap;
}

/* === PRODUCT GRID === */
.store-products {}
.store-products-list,
.store-products-images {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}

/* === PRODUCT CARDS === */
.store-products-list .store-product,
.store-products-images .store-product {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface-1);
  border: 1px solid var(--b1);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition:
    border-color 220ms var(--eo),
    transform 220ms var(--eo),
    box-shadow 220ms var(--eo);
}
.store-products-list .store-product::before,
.store-products-images .store-product::before { display: none; }

@media (hover: hover) and (pointer: fine) {
  .store-products-list .store-product:hover,
  .store-products-images .store-product:hover {
    border-color: var(--b3);
    transform: translateY(-3px);
    box-shadow: var(--sh-2);
  }
}

.store-product .image-link {
  display: block !important;
  position: relative;
  aspect-ratio: 16 / 10;
  width: 100% !important;
  margin: 0 !important;
  background: var(--surface-2);
  overflow: hidden;
}
.store-products-images .store-product .image-link { display: block !important; }
.store-product .image {
  margin: 0 !important;
  max-width: 100% !important;
}
.store-product .image-link::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.55) 100%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 220ms var(--eo);
}
@media (hover: hover) and (pointer: fine) {
  .store-product:hover .image-link::after { opacity: 1; }
}
.store-product .image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 260ms var(--eo);
}
.store-product .image-default {
  width: 100% !important;
  height: 100% !important;
  aspect-ratio: auto !important;
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(255, 46, 61, 0.12), transparent 60%),
    repeating-linear-gradient(45deg, rgba(255,255,255,0.025) 0 1px, transparent 1px 18px),
    var(--surface-2);
}
.store-product .image-default::before {
  content: none !important;
}
@media (hover: hover) and (pointer: fine) {
  .store-product:hover .image { transform: scale(1.04); }
}

.store-product .product-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--t1);
  margin: 0;
  padding: 16px 16px 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.store-product .product-title a { color: inherit; transition: color 160ms var(--eo); }
.store-product .product-title a:hover { color: var(--r-hi); }

.store-product .product-title .countdown {
  font-family: 'Geist', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: var(--r-pill);
  background: var(--r-soft);
  border: 1px solid var(--r-ring);
  color: var(--r-hi);
}

.store-product .actions,
.store-product .product-actions {
  padding: 6px 16px 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.store-product .price {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  margin: 0;
  flex: 1;
  min-width: 100px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--t2);
  font-weight: 500;
}
.store-product .price strong {
  color: var(--t1);
  font-size: 18px;
  font-weight: 700;
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: -0.02em;
}
.store-product .price .discount {
  color: var(--t4);
  font-size: 12px;
  text-decoration: line-through;
}
.store-product .actions .btn-primary,
.store-product .actions .add,
.store-product .actions .subscribe {
  font-size: 13px;
  padding: 9px 14px;
  border-radius: var(--r-md);
}
.store-product .actions .wide { flex: 1 0 100%; }
.store-product .actions .half { flex: 1 1 calc(50% - 5px); }

/* Stagger entry */
.store-products-images .store-product,
.store-products-list .store-product {
  opacity: 0;
  transform: translateY(8px) scale(0.97);
  animation: enter 300ms var(--eo) forwards;
}
.store-products-images .store-product:nth-child(1),
.store-products-list .store-product:nth-child(1)  { animation-delay: 0ms; }
.store-products-images .store-product:nth-child(2),
.store-products-list .store-product:nth-child(2)  { animation-delay: 30ms; }
.store-products-images .store-product:nth-child(3),
.store-products-list .store-product:nth-child(3)  { animation-delay: 60ms; }
.store-products-images .store-product:nth-child(4),
.store-products-list .store-product:nth-child(4)  { animation-delay: 90ms; }
.store-products-images .store-product:nth-child(5),
.store-products-list .store-product:nth-child(5)  { animation-delay: 120ms; }
.store-products-images .store-product:nth-child(6),
.store-products-list .store-product:nth-child(6)  { animation-delay: 150ms; }
.store-products-images .store-product:nth-child(7),
.store-products-list .store-product:nth-child(7)  { animation-delay: 180ms; }
.store-products-images .store-product:nth-child(8),
.store-products-list .store-product:nth-child(8)  { animation-delay: 210ms; }
.store-products-images .store-product:nth-child(n+9),
.store-products-list .store-product:nth-child(n+9){ animation-delay: 240ms; }
@keyframes enter { to { opacity: 1; transform: translateY(0) scale(1); } }

/* === FULL PACKAGE PAGE === */
.store-product-full {
  background: var(--surface-1);
  border: 1px solid var(--b1);
  border-radius: var(--r-xl);
  padding: clamp(24px, 4vw, 40px);
  display: grid;
  gap: 24px;
}
.store-product-full .product-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--t1);
  padding: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.store-product-full .image,
.store-product-full .media-slider .slider {
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--b1);
}
.store-product-full .descr {
  position: relative;
  padding-top: 24px;
  border-top: 1px solid var(--b1);
  font-size: 15px;
  line-height: 1.7;
  color: var(--t2);
}
.store-product-full .descr::before { display: none; }
.store-product-full .descr h1, .store-product-full .descr h2,
.store-product-full .descr h3, .store-product-full .descr h4,
.store-product-full .descr h5, .store-product-full .descr h6 {
  color: var(--t1);
  letter-spacing: -0.02em;
  margin-top: 1em;
}
.store-product-full .descr strong { color: var(--t1); font-weight: 600; }
.store-product-full .descr ul,
.store-product-full .descr ol { padding-left: 18px; }
.store-product-full .descr li {
  position: relative;
  padding-left: 18px;
  margin: 4px 0;
  list-style: none;
}
.store-product-full .descr li::before {
  content: "";
  position: absolute;
  left: 2px; top: 0.7em;
  width: 6px; height: 6px;
  background: var(--r);
  border-radius: 999px;
}
.store-product-full .descr a { color: var(--r-hi); }
.store-product-full .descr a:hover { color: var(--r); text-decoration: underline; }

.store-product-full .actions,
.store-product-full .product-actions {
  background: var(--surface-2);
  border: 1px solid var(--b1);
  border-radius: var(--r-lg);
  padding: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.store-product-full .actions::before { display: none; }
.store-product-full .price { font-size: 15px; }
.store-product-full .price strong {
  color: var(--t1);
  font-size: 26px;
  font-weight: 700;
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: -0.025em;
}

.store-product-popup-content { background: var(--bg); }

/* === EMPTY STATES === */
.no-products {
  text-align: center;
  padding: 64px 16px;
  color: var(--t3);
  font-size: 14px;
}
.no-products svg {
  display: block;
  margin: 0 auto 14px;
  width: 36px; height: 36px;
  stroke: var(--t3);
  opacity: 0.5;
}

/* === SIDEBAR / WIDGETS — minimal, dividers, eyebrow labels === */
.store-sidebar {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.widget {
  background: transparent;
  border: none;
  padding: 0;
  border-bottom: 1px solid var(--b1);
  padding-bottom: 24px;
}
.widget:last-child { border-bottom: none; padding-bottom: 0; }
.widget:first-child { padding-top: 8px; }

.widget-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  font-family: 'Geist', sans-serif;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--t3);
}
.widget-title::before {
  content: "";
  width: 4px; height: 4px;
  background: var(--r);
  border-radius: 999px;
}
.widget-text-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.widget-text-header .widget-title { margin: 0; }
.widget-text-icon { color: var(--t3); flex-shrink: 0; width: 14px; height: 14px; }

/* The first widget if it's the navigation — it has its own treatment */
.store-sidebar > .site-navigation.widget {
  border-bottom: 1px solid var(--b1);
  padding-bottom: 24px;
}

/* Top donator / recent payments items */
.widget-top-donator .avatar,
.widget-recent .avatar {
  width: 36px;
  height: 36px;
  border-radius: var(--r-sm);
  object-fit: cover;
  border: 1px solid var(--b1);
  background: var(--surface-2);
  flex-shrink: 0;
}
.widget-top-donator .username,
.widget-recent .username {
  font-family: 'Geist', sans-serif;
  font-weight: 600;
  font-size: 13px;
  color: var(--t1);
  margin: 0 0 2px;
  letter-spacing: -0.005em;
}

.widget-top-donator .widget-content {
  display: flex;
  align-items: center;
  gap: 12px;
}
.widget-top-donator p { margin: 0; font-size: 12px; color: var(--t2); }
.widget-top-donator p strong { color: var(--r-hi); font-family: 'JetBrains Mono', monospace; }

.widget-recent .purchases {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.widget-recent .purchase {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
}
.widget-recent .purchase + .purchase { border-top: 1px solid var(--b1); }
.widget-recent .purchase .info { flex: 1; min-width: 0; }
.widget-recent p, .widget-recent time {
  font-size: 11px;
  color: var(--t3);
  margin: 0;
  display: block;
  font-family: 'Geist', sans-serif;
}
.widget-recent .price { font-family: 'JetBrains Mono', monospace; }
.widget-recent .sep { opacity: 0.5; margin: 0 4px; }

.widget-content p.empty,
.widget p.empty {
  color: var(--t3);
  font-style: normal;
  font-size: 13px;
  text-align: center;
  margin: 4px 0;
  padding: 12px 0;
}

/* Goals progress */
.widget-community-goal .progress,
.widget-goal .progress {
  background: var(--surface-3);
  border-radius: var(--r-pill);
  overflow: hidden;
  height: 6px;
  margin: 8px 0;
}
.widget-community-goal .progress-bar,
.widget-goal .progress-bar {
  background: var(--r);
  height: 100%;
  border-radius: var(--r-pill);
}

/* Discord widget */
.widget-text { background: transparent; }
.widget-text .widget-content { font-size: 13px; color: var(--t2); }
.widget-text .widget-content a {
  display: inline-block;
  padding: 9px 12px;
  margin-top: 4px;
  background: var(--surface-2);
  border: 1px solid var(--b1);
  border-radius: var(--r-md);
  color: var(--t1);
  font-size: 12px;
  font-family: 'JetBrains Mono', monospace;
  word-break: break-all;
  transition: background 160ms var(--eo), border-color 160ms var(--eo);
}
.widget-text .widget-content a:hover {
  background: var(--surface-3);
  border-color: var(--b3);
}

/* Gift card */
.widget-gift-card .gift-card-input {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--b1);
  border-radius: var(--r-md);
  color: var(--t1);
  font-family: 'Geist', sans-serif;
  padding: 10px 12px;
  font-size: 13px;
  outline: none;
  transition: border-color 160ms var(--eo);
}
.widget-gift-card .gift-card-input:focus { border-color: var(--b3); }

/* Server status */
.widget-server-status .widget-content {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Geist', sans-serif;
  font-size: 13px;
  color: var(--t2);
}

/* === DISCORD HEADER BUTTON — icon only === */
.discord-btn {
  order: 50 !important;
  flex: 0 0 auto !important;
  width: 36px !important;
  height: 36px !important;
  padding: 0 !important;
  border-radius: 50% !important;
  background: rgba(88, 101, 242, 0.10) !important;
  border: 1px solid rgba(88, 101, 242, 0.25) !important;
  color: #7289DA !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: background 160ms var(--eo), border-color 160ms var(--eo);
}
.discord-btn span { display: none !important; }
.discord-btn .discord-icon { width: 18px; height: 18px; color: #7289DA; }
.discord-btn:hover {
  background: rgba(88, 101, 242, 0.22) !important;
  border-color: rgba(88, 101, 242, 0.50) !important;
  color: #fff !important;
}
.discord-btn:hover .discord-icon { color: #fff; }

/* Hide sidebar nav — nav lives in header now */
.store-sidebar .navigation-vertical,
.store-sidebar .site-navigation { display: none !important; }
.nav-discord { display: none !important; }

/* Hide sidebar Discord text widget */
.store-sidebar .widget-text { display: none !important; }

/* === SIDEBAR TOP SELLER ROTATOR === */
.sidebar-seller {
  margin-top: 20px;
  border-top: 1px solid var(--b1);
  padding-top: 16px;
}
.sidebar-seller-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--t3);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.sidebar-seller-label::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--r);
  flex-shrink: 0;
}
.sidebar-seller-track {
  position: relative;
  min-height: 80px;
}
.sidebar-seller-item {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  background: linear-gradient(135deg, var(--surface-2), var(--surface-1));
  border: 1px solid var(--b1);
  border-radius: var(--r-md);
  text-decoration: none;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 400ms var(--eo), transform 400ms var(--eo);
  pointer-events: none;
}
.sidebar-seller-item.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.sidebar-seller-item:hover { border-color: var(--b3); }
.sidebar-seller-tag {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--r);
}
.sidebar-seller-name {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 13px;
  color: var(--t1);
  letter-spacing: -0.01em;
}
.sidebar-seller-price {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--t2);
}

/* === POPUP / BASKET === */
.popup-content {
  position: relative;
  background:
    radial-gradient(ellipse 90% 50% at 50% -5%, rgba(255, 46, 61, 0.18) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(255, 46, 61, 0.10) 0%, transparent 70%),
    var(--surface-1);
  border: 1px solid var(--b2);
  border-radius: var(--r-xl);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 46, 61, 0.10);
  color: var(--t1);
}
.popup-content::before {
  content: "";
  position: absolute;
  top: -1px; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--r), transparent);
  pointer-events: none;
  border-radius: var(--r-xl) var(--r-xl) 0 0;
}

.popup-close {
  position: absolute !important;
  top: 14px !important; right: 14px !important;
  background: var(--surface-2) !important;
  border: 1px solid var(--b2) !important;
  color: var(--t2) !important;
  border-radius: var(--r-md) !important;
  width: 36px !important; height: 36px !important;
  opacity: 1 !important;
  cursor: pointer;
  font-size: 0;
  line-height: 0;
  z-index: 10;
  transition: background 160ms var(--eo), border-color 160ms var(--eo), color 160ms var(--eo), transform 140ms var(--eo);
}
/* Override Tebex's close icon — replace with two crossed lines */
.popup-close::before {
  content: "" !important;
  position: absolute !important;
  width: 14px !important;
  height: 1.5px !important;
  background: currentColor !important;
  background-color: currentColor !important;
  mask: none !important;
  -webkit-mask: none !important;
  border-radius: 1px !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) rotate(45deg) !important;
  display: block !important;
}
.popup-close::after {
  content: "" !important;
  position: absolute !important;
  width: 14px !important;
  height: 1.5px !important;
  background: currentColor !important;
  background-color: currentColor !important;
  border-radius: 1px !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) rotate(-45deg) !important;
  display: block !important;
}
.popup-close:hover {
  background: var(--r-soft) !important;
  border-color: var(--r-ring) !important;
  color: var(--r-hi) !important;
}
.popup-close:active { transform: scale(0.92) !important; }

.basket-popup-content {
  background: var(--surface-1);
  border-left: 1px solid var(--b2);
}
.basket-popup-content .popup-close {
  background: var(--surface-2);
  border-color: var(--b2);
}
.basket-popup-content .popup-close:hover { background: var(--surface-3); }

.basket .basket-header {
  padding: 18px 22px;
  border-bottom: 1px solid var(--b1);
}
.basket .basket-header::after { display: none; }
.basket .basket-title {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.025em;
  color: var(--t1);
  margin: 0;
}
.basket .basket-title::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--r);
  border-radius: 999px;
}

.basket .basket-second-header {
  background: transparent;
  border-bottom: 1px solid var(--b1);
  padding: 10px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.basket .basket-second-header .count { color: var(--t3); font-size: 13px; }
.basket .basket-second-header .total { color: var(--t2); font-size: 13px; }
.basket .basket-second-header .total strong {
  color: var(--t1);
  font-family: 'JetBrains Mono', monospace;
}

.basket-items { padding: 14px 18px; }
.basket .basket-content { background: transparent; }

.basket-item {
  background: var(--surface-2);
  border: 1px solid var(--b1);
  border-radius: var(--r-md);
  padding: 14px;
  margin-bottom: 10px;
  display: grid;
  gap: 8px;
  transition: border-color 160ms var(--eo);
}
.basket-item::before { display: none; }
.basket-item:hover { border-color: var(--b3); }
.basket-item .title { font-family: 'Geist', sans-serif; font-weight: 600; font-size: 14px; margin: 0; }
.basket-item .title a { color: var(--t1); }
.basket-item .title a:hover { color: var(--r-hi); }
.basket-item .options { color: var(--t3); font-size: 12px; }
.basket-item .price {
  color: var(--t2);
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
}
.basket-item .price strong {
  color: var(--t1);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
}
.basket-item .quantity-field { margin: 0; }
.basket-item .remove {
  background: transparent;
  border: 1px solid var(--b1);
  color: var(--t3);
  border-radius: var(--r-sm);
  width: 32px; height: 32px;
  cursor: pointer;
  transition: background 160ms var(--eo), color 160ms var(--eo), border-color 160ms var(--eo);
}
.basket-item .remove:hover {
  background: var(--r-soft);
  border-color: var(--r-ring);
  color: var(--r-hi);
}

.basket .basket-checkout {
  padding: 20px 22px 24px;
  background: var(--surface-2);
  border-top: 1px solid var(--b1);
}
.basket .basket-checkout::before { display: none; }
.basket .basket-checkout h3 {
  font-family: 'Geist', sans-serif;
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: var(--t3);
  margin: 0 0 8px;
}
.basket .basket-checkout .total {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 14px;
  color: var(--t2);
}
.basket .basket-checkout .total strong {
  color: var(--t1);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.025em;
}
.basket .basket-checkout .checkout {
  display: block;
  width: 100%;
  background: var(--r) !important;
  color: #fff !important;
  border: none;
  padding: 14px 18px;
  border-radius: var(--r-md);
  font-family: 'Geist', sans-serif;
  font-weight: 600;
  font-size: 15px;
  text-align: center;
  cursor: pointer;
  transition: background 200ms var(--eo), box-shadow 200ms var(--eo), transform 140ms var(--eo);
  box-shadow: 0 4px 14px rgba(255, 46, 61, 0.24);
}
.basket .basket-checkout .checkout:hover {
  background: var(--r-hi) !important;
  box-shadow: 0 8px 24px rgba(255, 46, 61, 0.36);
}
.basket .basket-checkout .checkout:active { transform: scale(0.99); }

.basket .basket-empty {
  text-align: center;
  padding: 64px 24px;
  color: var(--t3);
  font-size: 14px;
}

/* === TOAST === */
.toast {
  background: var(--surface-2);
  border: 1px solid var(--b2);
  border-radius: var(--r-md);
  box-shadow: var(--sh-2);
  font-family: 'Geist', sans-serif;
  font-weight: 500;
  font-size: 14px;
  color: var(--t1);
  padding: 12px 16px;
}
.toast.toast-warning { border-color: rgba(245, 158, 11, 0.40); }
.toast.toast-error   { border-color: rgba(255, 46, 61, 0.40); }
.toast.toast-success { border-color: rgba(52, 211, 153, 0.40); }
.toast-close {
  background: transparent;
  border: none;
  color: var(--t3);
  cursor: pointer;
  padding: 4px;
  border-radius: var(--r-sm);
}
.toast-close:hover { color: var(--t1); background: rgba(255, 255, 255, 0.04); }

/* === TIERED CATEGORY === */
.store-category-tiered {
  background: var(--surface-1);
  border: 1px solid var(--b1);
  border-radius: var(--r-xl);
  padding: clamp(24px, 4vw, 40px);
}
.store-category-tiered-header h1, .store-category-tiered-header h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  letter-spacing: -0.025em;
}
.store-product-tiered {
  background: var(--surface-2);
  border: 1px solid var(--b1);
  border-radius: var(--r-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 220ms var(--eo), transform 220ms var(--eo);
}
.store-product-tiered:hover { border-color: var(--b3); transform: translateY(-2px); }
.store-product-tiered.store-product-cta {
  background: linear-gradient(180deg, rgba(255, 46, 61, 0.08), transparent);
  border-color: var(--r-ring);
}
.store-product-tiered .product-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
  color: var(--t1);
  margin: 0;
}
.store-product-tiered .price strong {
  color: var(--t1);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 30px;
  letter-spacing: -0.025em;
}

/* === MEDIA SLIDER === */
.media-slider .slider,
.media-slider .thumb {
  border-radius: var(--r-md);
  border: 1px solid var(--b1);
  background: var(--surface-2);
}
.media-slider .open-lightbox {
  background: var(--surface-2);
  border: 1px solid var(--b2);
  color: var(--t1);
  border-radius: var(--r-sm);
  padding: 6px 10px;
  font-size: 12px;
}

/* === FORMS === */
.store-form input[type=text],
.store-form input[type=password],
.store-form input[type=email],
.store-form input[type=number],
.store-form input[type=search],
.store-form input[type=url],
.store-form input[type=tel],
.store-form input[type=date],
.store-form select,
.store-form textarea {
  background: var(--surface-2);
  border: 1px solid var(--b1);
  border-radius: var(--r-md);
  color: var(--t1);
  font-family: 'Geist', sans-serif;
  font-weight: 400;
  font-size: 14px;
  padding: 11px 14px;
  width: 100%;
  outline: none;
  transition: border-color 160ms var(--eo), background 160ms var(--eo);
}
.store-form input:focus,
.store-form select:focus,
.store-form textarea:focus {
  border-color: var(--b3);
  background: var(--surface-3);
}
.store-form label {
  font-family: 'Geist', sans-serif;
  font-weight: 500;
  font-size: 13px;
  color: var(--t2);
  display: block;
  margin-bottom: 6px;
}
.store-form input::placeholder, .store-form textarea::placeholder { color: var(--t3); }

/* === FOOTER === */
.site-footer {
  margin-top: 72px;
  padding: 36px 0 44px;
  border-top: 1px solid var(--b1);
}
.site-footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.site-footer .we-accept {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
  filter: brightness(0.85) saturate(0.85);
  opacity: 0.65;
}
.site-footer .we-accept li img { height: 20px; }
.site-footer .copyright {
  text-align: center;
  font-size: 12px;
  color: var(--t3);
  margin: 0;
}

tebex-footer { color: var(--t3); font-size: 12px; }

/* === ACCESSIBILITY === */
:focus-visible {
  outline: 2px solid var(--r-ring);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .store-products-images .store-product,
  .store-products-list .store-product {
    animation: none;
    opacity: 1;
    transform: none;
  }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* === MOBILE === */
@media (max-width: 768px) {
  .site-header-inner { min-height: 60px; gap: 12px; }
  .site-header-inner .toggle-navigation {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
  }
  .site-header .navigation-horizontal { display: none; }
  .site-home-categories {
    grid-template-columns: 1fr 1fr;
    padding: 24px 0 24px;
    gap: 10px;
  }
  .site-home-categories .category { min-height: 130px; padding: 16px; font-size: 15px; }
  .store-text > p:first-of-type { font-size: 17px; }
}

/* === SCROLL-AWARE NAV (Emil: nav should feel part of the page, not always opaque) === */
.site-header {
  transition:
    background 260ms var(--eo),
    backdrop-filter 260ms var(--eo),
    -webkit-backdrop-filter 260ms var(--eo),
    border-color 260ms var(--eo) !important;
}
.site-header.nav-scrolled {
  background: rgba(10, 11, 15, 0.86) !important;
  backdrop-filter: blur(24px) saturate(160%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(160%) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07) !important;
}

/* === HERO STAGGERED ENTRY (Emil: stagger 50-80ms, ease-out, transform+opacity only) === */
.hero-eyebrow  { animation: heroFadeUp 560ms var(--eo)  60ms both; }
.hero-headline { animation: heroFadeUp 600ms var(--eo) 130ms both; }
.hero-sub      { animation: heroFadeUp 580ms var(--eo) 200ms both; }
.hero-cta      { animation: heroFadeUp 540ms var(--eo) 270ms both; }
.hero-stats    { animation: heroFadeUp 520ms var(--eo) 340ms both; }
.hero-card-1   { animation: heroCardIn 620ms var(--eo) 400ms both; }
.hero-card-2   { animation: heroCardIn 620ms var(--eo) 530ms both; }
.hero-card-3   { animation: heroCardIn 620ms var(--eo) 660ms both; }

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes heroCardIn {
  from { opacity: 0; transform: translateY(24px) scale(0.95); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}

/* === PREFERS-REDUCED-MOTION (Emil: always respect this) === */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0.01ms !important;
  }
}
