/* ==========================================================================
   FIVEM DARK THEME — navbar + hero + siatka w tle + niebieski akcent
   Nakładka na shared.css (ładuje się po nim i nadpisuje wygląd).
   Współpracuje z przebudowanym header.twig (navbar .site-topbar + .site-hero).
   ========================================================================== */
@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Inter:wght@400;500;600;700&display=swap");

:root {
  /* Kolor przewodni — niebieski */
  --color-primary: #3b82f6;
  --color-primary-hover: #60a5fa;
  --color-primary-text: #ffffff;
  --color-primary-text-hover: #ffffff;

  /* Tła i teksty */
  --color-bg: #090c11;
  --color-brighter-bg: #10151d;
  --color-text: #edf1f7;
  --color-text-darker: #cdd5e0;
  --color-text-secondary: #8b99ad;

  /* Przyciski drugorzędne */
  --color-secondary: #151c28;
  --color-secondary-hover: #1e2735;
  --color-secondary-text: #e2e8f0;
  --color-secondary-text-hover: #ffffff;
  --color-tertiary-hover: rgb(59 130 246 / 14%);

  /* Baner promocji */
  --color-sale-banner-bg: linear-gradient(90deg, #1d4ed8, #3b82f6, #38bdf8, #3b82f6, #1d4ed8);
  --color-sale-banner-text: #ffffff;

  /* Panele */
  --panel-bg: #0f141c;
  --panel-bg-soft: rgb(17 23 33 / 82%);
  --panel-border: 1px solid rgb(148 163 184 / 09%);
  --panel-border-hover: rgb(96 145 255 / 45%);
  --panel-shadow: 0 10px 30px rgb(0 0 0 / 40%);
  --glow-primary: 0 10px 32px rgb(59 130 246 / 35%);
  --radius: 16px;
  --radius-sm: 12px;
  --ease-pop: cubic-bezier(0.22, 1, 0.36, 1);
  --page-transition-duration: 0.35s;
  --bg-image: none;

  /* Stopka Tebex */
  --tebex-legal-footer-background-color: #0a0e15;
  --tebex-legal-footer-border-color: rgb(148 163 184 / 08%);
  --tebex-legal-footer-text-color: #64748b;
}

/* ==========================================================================
   TYPOGRAFIA I TŁO (siatka + niebieska poświata)
   ========================================================================== */
body {
  font-family: Inter, "Segoe UI", sans-serif;
  background: var(--color-bg);
}

h1, h2, h3, h4, h5, h6,
.btn-primary,
.btn-secondary,
.btn-tertiary,
.widget-title,
.product-title,
.price,
.brand-name,
.hero-title {
  font-family: Outfit, Inter, "Segoe UI", sans-serif;
}

/* Kropkowana siatka + dwie dryfujące poświaty (aurora) */
body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 100vh;
  max-height: none;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(rgb(148 163 184 / 14%) 1.2px, transparent 1.2px) 0 0/34px 34px,
    radial-gradient(720px 460px at 18% 160px, rgb(37 99 235 / 22%), transparent 68%),
    radial-gradient(640px 420px at 88% 60px, rgb(34 211 238 / 10%), transparent 70%),
    var(--bg-image) center top/cover no-repeat;
  mask-image: linear-gradient(rgb(0 0 0 / 90%) 45%, transparent);
}

::selection {
  color: #fff;
  background-color: rgb(59 130 246 / 80%);
}

html {
  scrollbar-color: #1e3a8a var(--color-bg);
}
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--color-bg);
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #1d4ed8, #1e3a8a);
  border-radius: 10px;
}

/* ==========================================================================
   ANIMACJE
   ========================================================================== */
/* Animacje wejścia używają właściwości `translate` (nie `transform`),
   żeby nie kolidowały z transformacjami na hover i animacją unoszenia */
@keyframes riseIn {
  from { opacity: 0; translate: 0 22px; }
  to { opacity: 1; translate: 0 0; }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes dropIn {
  from { opacity: 0; translate: 0 -16px; }
  to { opacity: 1; translate: 0 0; }
}
@keyframes shimmer {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}
@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgb(74 222 128 / 55%); }
  70% { box-shadow: 0 0 0 7px rgb(74 222 128 / 0%); }
}

/* ==========================================================================
   PRZYCISKI
   ========================================================================== */
.btn-primary,
.btn-secondary,
.btn-tertiary {
  border-radius: var(--radius-sm);
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: all 0.2s var(--ease-pop);
}

.btn-primary {
  background-image: linear-gradient(135deg, #2563eb 0%, #3b82f6 55%, #38bdf8 100%);
  background-size: 170% 170%;
  background-position: 0% 50%;
  box-shadow: 0 4px 18px rgb(37 99 235 / 30%), inset 0 1px 0 rgb(255 255 255 / 16%);
}
.btn-primary:hover,
.btn-primary:focus {
  background-image: linear-gradient(135deg, #2563eb 0%, #3b82f6 55%, #38bdf8 100%);
  background-position: 95% 50%;
  transform: translateY(-2px);
  box-shadow: var(--glow-primary), inset 0 1px 0 rgb(255 255 255 / 20%);
}
.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  border: 1px solid rgb(148 163 184 / 16%);
}
.btn-secondary:hover,
.btn-secondary:focus {
  border-color: rgb(96 145 255 / 45%);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgb(37 99 235 / 16%);
}

.btn-tertiary {
  border: 1px solid transparent;
}
.btn-tertiary:hover,
.btn-tertiary:focus {
  border-color: rgb(96 145 255 / 25%);
}

.quantity-field {
  border-radius: 10px;
  border: 1px solid rgb(148 163 184 / 18%);
  background: rgb(9 12 17 / 85%);
  transition: border-color 0.2s ease;
}
.quantity-field:focus-within {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgb(59 130 246 / 15%);
}

/* ==========================================================================
   NAVBAR (.site-topbar w header.twig)
   ========================================================================== */
.site-topbar {
  --btn-size: 42px;
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
  padding: 10px 14px;
  border-radius: var(--radius);
  background: rgb(13 18 26 / 92%);
  border: var(--panel-border);
  box-shadow: 0 12px 34px rgb(0 0 0 / 45%);
  animation: dropIn 0.5s var(--ease-pop) both;
}

.site-topbar .toggle-navigation {
  --btn-icon: url("https://template-assets.tebex.io/images/burger.svg");
}
@media (width > 960px) {
  .site-topbar .toggle-navigation {
    display: none;
  }
}

.topbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
  min-width: 0;
}
.brand-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 10px;
}
.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.brand-name {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand-tagline {
  font-size: 12px;
  color: var(--color-text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (width <= 600px) {
  .brand-tagline {
    display: none;
  }
}

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

/* Ikonki społecznościowe w navbarze (Discord, YouTube) */
.topbar-socials {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-right: 6px;
}
.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  color: var(--color-text-secondary);
  transition: all 0.2s var(--ease-pop);
}
.social-link svg {
  width: 20px;
  height: 20px;
}
.social-link:hover {
  color: #fff;
  background: rgb(59 130 246 / 14%);
  translate: 0 -2px;
}
@media (width <= 600px) {
  .topbar-socials {
    display: none;
  }
}
.site-topbar .open-basket {
  --btn-icon: url("https://template-assets.tebex.io/images/checkout.svg");
}

/* Nazwa gracza — podmiana tekstu na "Wyloguj" na hover */
.site-topbar .user-name {
  contain: paint;
}
.site-topbar .user-name .text-inner {
  display: block;
  overflow: hidden;
}
.site-topbar .user-name .text,
.site-topbar .user-name .text-hover {
  display: block;
  transition: visibility 0.15s ease-in-out, opacity 0.15s ease-in-out;
}
.site-topbar .user-name .text-hover {
  margin-top: calc(var(--btn-size) * -1);
}
.site-topbar .user-name:not(:hover):not(:focus-within) .text-hover {
  visibility: hidden;
  opacity: 0;
}
.site-topbar .user-name:hover .text,
.site-topbar .user-name:focus-within .text {
  visibility: hidden;
  opacity: 0;
}
@media (width <= 960px) {
  .site-topbar .user-name {
    display: none;
  }
}

/* --- Nawigacja pozioma wewnątrz navbara --- */
@media (width > 960px) {
  .site-topbar .navigation-horizontal {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    justify-content: center;
  }
  .navigation-horizontal .menu {
    padding: 0;
    background: transparent;
    gap: 4px;
    font-size: 15px;
    font-weight: 600;
    line-height: 20px;
    border-radius: 0;
  }
  .navigation-horizontal .menu > li > a {
    position: relative;
    padding: 10px 16px;
    border-radius: 10px;
    color: var(--color-text-secondary);
    transition: all 0.2s var(--ease-pop);
  }
  .navigation-horizontal .menu > li.has-children > a {
    padding-right: 10px;
  }
  .navigation-horizontal .menu > li > a:hover {
    color: #fff;
  }
  /* Aktywna zakładka: gradientowe podkreślenie zamiast wypełnienia */
  .navigation-horizontal .menu > li > a::after {
    content: "";
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 4px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, #3b82f6, #22d3ee);
    opacity: 0;
    transform: scaleX(0.4);
    transition: opacity 0.2s ease, transform 0.25s var(--ease-pop);
  }
  .navigation-horizontal .menu > li > a:hover::after {
    opacity: 0.55;
    transform: scaleX(1);
  }
  .navigation-horizontal .menu > li > a.link-active {
    color: #fff;
  }
  .navigation-horizontal .menu > li > a.link-active::after {
    opacity: 1;
    transform: scaleX(1);
  }

  /* Rozwijane podmenu */
  .navigation-horizontal .has-children > ul {
    top: calc(100% + 10px);
    padding: 8px;
    border-radius: var(--radius-sm);
    border: var(--panel-border);
    background: rgb(15 20 28 / 92%);
    backdrop-filter: blur(16px);
    box-shadow: var(--panel-shadow);
  }
  .navigation-horizontal li li a {
    padding: 9px 12px;
    border-radius: 8px;
  }
  .navigation-horizontal li li a:hover,
  .navigation-horizontal li li a.link-active {
    color: #fff !important;
    background-color: rgb(59 130 246 / 85%) !important;
  }

  /* Nawigacja pionowa (jeśli włączona w ustawieniach) */
  .navigation-vertical a {
    border-radius: 10px;
    transition: all 0.2s var(--ease-pop);
  }
  .navigation-vertical a:hover {
    color: #fff;
    background: rgb(59 130 246 / 10%);
  }
  .navigation-vertical a.link-active {
    color: #fff;
    background: rgb(59 130 246 / 16%);
    box-shadow: inset 0 0 0 1px rgb(59 130 246 / 30%);
  }
}

/* Mobilna szuflada menu */
@media (width <= 960px) {
  .site-navigation .menu {
    background: #0c1017;
    border-right: 1px solid rgb(148 163 184 / 10%);
  }
}

/* ==========================================================================
   HERO (strona główna) — układ dwukolumnowy, wyrównany do lewej
   ========================================================================== */
.site-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
  padding: clamp(52px, 10vh, 120px) 8px 0;
}
@media (width > 960px) {
  .site-hero {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    padding-inline: 20px;
  }
  /* Gdy są widgety (np. Recent Payments): hero wychodzi na pełną szerokość
     ekranu — widgety dosunięte do samej lewej krawędzi okna, a główny blok
     i chipy zachowują swój dotychczasowy układ w środku */
  .site-hero:has(.hero-widgets) {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    padding-inline: clamp(20px, 3vw, 56px);
    grid-template-columns: minmax(240px, 320px) minmax(0, 1.2fr) minmax(240px, 340px);
    gap: clamp(28px, 4vw, 72px);
  }
  .site-hero:has(.hero-widgets) .hero-main {
    max-width: 720px;
  }
}
@media (width <= 960px) {
  /* Na mobile: najpierw główny blok, potem chipy, widgety na końcu */
  .site-hero > .hero-main { order: 1; }
  .site-hero > .hero-features { order: 2; }
  .site-hero > .hero-widgets { order: 3; }
}

/* Lewa kolumna hero — widgety sklepu (Recent Payments itp.) */
.hero-widgets {
  width: 100%;
  max-width: 340px;
  justify-self: start;
  max-height: 460px;
  overflow: hidden auto;
  scrollbar-width: thin;
  scrollbar-color: #1e3a8a transparent;
  padding-right: 4px;
  animation: riseIn 0.7s 0.35s var(--ease-pop) both;
}
@media (width <= 960px) {
  .hero-widgets {
    justify-self: center;
    max-width: 380px;
  }
}
.hero-widgets .widget {
  padding: 18px;
}
.hero-widgets .widget-title {
  font-size: 16px;
  margin-bottom: 14px;
}
.hero-widgets .widget-recent .purchase {
  padding: 8px;
  margin-bottom: 4px;
  border-radius: 10px;
  transition: background 0.2s ease;
}
.hero-widgets .widget-recent .purchase:hover {
  background: rgb(59 130 246 / 08%);
}
.hero-widgets .widget-recent .avatar {
  border-radius: 8px;
}
.hero-widgets .widget-recent .price {
  color: #8ab4ff;
  font-weight: 700;
}

.hero-main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* Odznaka nad nagłówkiem */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgb(59 130 246 / 30%);
  background: rgb(59 130 246 / 08%);
  color: #9db9e8;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  animation: riseIn 0.6s var(--ease-pop) both;
}
.hero-badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22d3ee;
  animation: dotPulse 2s ease-out infinite;
}

.hero-title {
  margin-top: 20px;
  font-size: clamp(38px, 6vw, 68px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.06;
  text-wrap: balance;
  animation: riseIn 0.7s 0.08s var(--ease-pop) both;
}
.hero-title .accent {
  background: linear-gradient(95deg, #3b82f6 15%, #22d3ee 85%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-tagline {
  margin-top: 18px;
  max-width: 52ch;
  font-size: clamp(15.5px, 1.8vw, 18px);
  line-height: 1.55;
  color: var(--color-text-secondary);
  animation: riseIn 0.7s 0.16s var(--ease-pop) both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(26px, 4.5vh, 40px);
  animation: riseIn 0.7s 0.24s var(--ease-pop) both;
}

:root .hero-cta {
  --btn-size: 54px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 0 12px 0 26px;
  font-size: 16.5px;
  border-radius: 14px;
}
.hero-cta .cta-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: rgb(255 255 255 / 16%);
  transition: transform 0.2s var(--ease-pop), background 0.2s ease;
}
.hero-cta .cta-chip svg {
  width: 17px;
  height: 17px;
}
.hero-cta:hover .cta-chip {
  background: rgb(255 255 255 / 26%);
  transform: translateX(3px);
}

:root .hero-cta-secondary {
  --btn-size: 54px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 24px;
  font-size: 16px;
  border-radius: 14px;
  line-height: normal;
}
.hero-cta-secondary svg {
  width: 20px;
  height: 20px;
  color: #8ab4ff;
}

/* Pigułka z adresem serwera (klik = kopiowanie) */
.hero-server {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgb(148 163 184 / 16%);
  background: rgb(15 20 28 / 85%);
  color: var(--color-text-darker);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s var(--ease-pop);
  animation: riseIn 0.7s 0.32s var(--ease-pop) both;
}
.hero-server:hover {
  border-color: rgb(96 145 255 / 50%);
  color: #fff;
  transform: translateY(-2px);
}
.hero-server .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #4ade80;
  animation: dotPulse 2s ease-out infinite;
}
.hero-server .hint {
  color: var(--color-text-secondary);
  font-size: 12.5px;
}

/* Pływające chipy po prawej stronie hero */
.hero-features {
  display: flex;
  flex-direction: column;
  gap: 18px;
  justify-self: center;
  width: 100%;
  max-width: 380px;
}

.feature-chip {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--panel-bg-soft);
  border: var(--panel-border);
  box-shadow: var(--panel-shadow);
  /* Chipy są statyczne — bez animacji w pętli (powodowała drganie
     na niektórych konfiguracjach GPU). Zostaje wjazd + hover. */
  animation: fadeIn 0.8s ease both;
  transition: translate 0.25s var(--ease-pop), border-color 0.25s ease, box-shadow 0.25s ease;
}
.feature-chip:hover {
  translate: 0 -4px;
  border-color: var(--panel-border-hover);
  box-shadow: 0 12px 30px rgb(37 99 235 / 18%);
}
.feature-chip:nth-child(1) {
  animation-delay: 0.3s;
}
.feature-chip:nth-child(2) {
  margin-left: 36px;
  animation-delay: 0.45s;
}
.feature-chip:nth-child(3) {
  animation-delay: 0.6s;
}
@media (width <= 960px) {
  .feature-chip:nth-child(2) {
    margin-left: 0;
  }
}

.feature-chip .icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: linear-gradient(135deg, rgb(37 99 235 / 25%), rgb(34 211 238 / 12%));
  color: #7dd3fc;
}
.feature-chip .icon svg {
  width: 21px;
  height: 21px;
}
.feature-chip .body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.feature-chip .body strong {
  font-size: 14.5px;
  font-weight: 700;
}
.feature-chip .body span {
  font-size: 12.5px;
  color: var(--color-text-secondary);
}

/* ==========================================================================
   SZYBKIE LINKI (Discord / Docs / Support / FAQ)
   ========================================================================== */
.site-quick-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 14px;
  max-width: 1000px;
  width: 100%;
  margin: clamp(40px, 8vh, 80px) auto 0;
  padding: 0 4px;
}

.quick-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 17px 18px 17px 22px;
  border-radius: 14px;
  background: var(--panel-bg-soft);
  border: var(--panel-border);
  overflow: hidden;
  transition: all 0.22s var(--ease-pop);
  animation: riseIn 0.6s var(--ease-pop) both;
}
.quick-link:nth-child(1) { animation-delay: 0.45s; }
.quick-link:nth-child(2) { animation-delay: 0.53s; }
.quick-link:nth-child(3) { animation-delay: 0.61s; }
.quick-link:nth-child(4) { animation-delay: 0.69s; }

/* Pionowy pasek akcentu przy lewej krawędzi — rośnie na hover */
.quick-link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  translate: 0 -50%;
  width: 3px;
  height: 34%;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(180deg, #3b82f6, #22d3ee);
  transition: height 0.25s var(--ease-pop);
}
.quick-link:hover::before {
  height: 78%;
}
.quick-link:hover {
  transform: translateX(4px);
  border-color: var(--panel-border-hover);
  box-shadow: 0 10px 28px rgb(37 99 235 / 16%);
}

.quick-link .icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 40px;
  height: 40px;
  color: #7fb0ff;
  transition: color 0.2s ease;
}
.quick-link:hover .icon {
  color: #9ee4ff;
}
.quick-link .icon svg {
  width: 24px;
  height: 24px;
}

.quick-link .body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.quick-link .body strong {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text);
}
.quick-link .body span {
  font-size: 13px;
  line-height: 1.35;
  color: var(--color-text-secondary);
}

/* Okrągły przycisk ze strzałką po prawej */
.quick-link .go {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  margin-left: auto;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgb(148 163 184 / 18%);
  color: #64748b;
  transition: all 0.22s var(--ease-pop);
}
.quick-link .go svg {
  width: 14px;
  height: 14px;
}
.quick-link:hover .go {
  border-color: rgb(96 145 255 / 55%);
  background: rgb(59 130 246 / 15%);
  color: #bfdbfe;
  transform: translateX(3px);
}

/* ==========================================================================
   PASEK SALE NA DOLE EKRANU (marquee — napis płynie od lewej do prawej)
   ========================================================================== */
/* każda grupa przesuwa się o 100% WŁASNEJ szerokości — pętla jest
   idealna z definicji, bez żadnych obliczeń szerokości taśmy */
@keyframes marqueeRight {
  from { transform: translateX(-100%); }
  to { transform: translateX(0); }
}

.sale-marquee {
  position: fixed;
  left: 0;
  right: 0;
  /* siedzi tuż nad stopką prawną Tebexa, żeby jej nie zasłaniać */
  bottom: var(--tebex-footer-height, 0px);
  z-index: 900;
  display: flex;
  align-items: center;
  height: 38px;
  overflow: hidden;
  /* kolory można nadpisać w panelu Tebex (Sale banner colours) */
  background: var(--color-sale-banner-bg);
  background-size: 200% 100%;
  animation: shimmer 8s linear infinite;
  border-top: 1px solid rgb(255 255 255 / 18%);
  box-shadow: 0 -8px 26px rgb(37 99 235 / 35%);
}

.sale-marquee-track {
  display: flex;
  align-items: center;
  width: max-content;
  white-space: nowrap;
  color: var(--color-sale-banner-text);
  font-family: Outfit, Inter, "Segoe UI", sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-shadow: 0 1px 2px rgb(0 0 0 / 25%);
}

/* dwie identyczne grupy; animowana jest każda z osobna o -100% → 0
   swojej własnej szerokości, więc zapętlenie jest niewidoczne */
.sale-marquee-group {
  display: flex;
  align-items: center;
  flex: none;
  animation: marqueeRight 26s linear infinite;
  will-change: transform;
}
.sale-marquee-item,
.sale-marquee-sep {
  flex: none;
  margin-right: 28px;
}
.sale-marquee-sep {
  opacity: 0.65;
  font-size: 11px;
}

/* miejsce na pasek, żeby nie zasłaniał końca strony */
body:has(.sale-marquee) .site {
  padding-bottom: 50px;
}

@media (width <= 600px) {
  .sale-marquee {
    height: 34px;
  }
  .sale-marquee-track {
    font-size: 12px;
  }
}

/* ==========================================================================
   BANER PROMOCJI
   ========================================================================== */
.site-sale-banner {
  margin-top: 14px;
  border-radius: var(--radius-sm);
  background: var(--color-sale-banner-bg);
  background-size: 200% 100%;
  animation: shimmer 6s linear infinite;
  box-shadow: 0 6px 24px rgb(37 99 235 / 28%);
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* ==========================================================================
   KATEGORIE NA STRONIE GŁÓWNEJ
   ========================================================================== */
.site-home-categories .category {
  border-radius: var(--radius);
  padding: 22px var(--widget-padding);
  background: var(--panel-bg-soft);
  border: var(--panel-border);
  box-shadow: var(--panel-shadow);
  transition: all 0.25s var(--ease-pop);
  animation: riseIn 0.55s var(--ease-pop) both;
}
.site-home-categories .category:nth-child(1) { animation-delay: 0.08s; }
.site-home-categories .category:nth-child(2) { animation-delay: 0.14s; }
.site-home-categories .category:nth-child(3) { animation-delay: 0.20s; }
.site-home-categories .category:nth-child(4) { animation-delay: 0.26s; }
.site-home-categories .category:nth-child(n+5) { animation-delay: 0.32s; }

.site-home-categories .category:hover {
  color: #fff;
  border-color: var(--panel-border-hover);
  transform: translateY(-4px);
  box-shadow: var(--glow-primary);
}

/* ==========================================================================
   TREŚĆ / PANELE TEKSTOWE
   ========================================================================== */
.site-content {
  animation: riseIn 0.6s 0.1s var(--ease-pop) both;
}

.category-description,
.store-text,
.no-products {
  border-radius: var(--radius);
  background: var(--panel-bg-soft);
  border: var(--panel-border);
  box-shadow: var(--panel-shadow);
}
.no-products {
  color: var(--color-text-secondary);
}

/* ==========================================================================
   KARTY PRODUKTÓW
   ========================================================================== */
.store-products-list .store-product,
.store-products-images .store-product {
  border-radius: var(--radius);
  background: var(--panel-bg-soft);
  border: var(--panel-border);
  box-shadow: var(--panel-shadow);
  transition: transform 0.25s var(--ease-pop), border-color 0.25s ease, box-shadow 0.25s ease;
  animation: riseIn 0.55s var(--ease-pop) both;
}
.store-products-images .store-product:nth-child(1),
.store-products-list .store-product:nth-child(1) { animation-delay: 0.08s; }
.store-products-images .store-product:nth-child(2),
.store-products-list .store-product:nth-child(2) { animation-delay: 0.14s; }
.store-products-images .store-product:nth-child(3),
.store-products-list .store-product:nth-child(3) { animation-delay: 0.20s; }
.store-products-images .store-product:nth-child(4),
.store-products-list .store-product:nth-child(4) { animation-delay: 0.26s; }
.store-products-images .store-product:nth-child(5),
.store-products-list .store-product:nth-child(5) { animation-delay: 0.32s; }
.store-products-images .store-product:nth-child(6),
.store-products-list .store-product:nth-child(6) { animation-delay: 0.38s; }
.store-products-images .store-product:nth-child(n+7),
.store-products-list .store-product:nth-child(n+7) { animation-delay: 0.44s; }

/* Widok kafelkowy — wymuszony dla OBU trybów kategorii (list i images):
   3 duże kafelki w rzędzie, obrazek na całą szerokość karty */
.store-products-images,
.store-products-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (width > 1150px) {
  .store-products-images,
  .store-products-list {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (width <= 1150px) and (width > 640px) {
  .store-products-images,
  .store-products-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Karta produktu jako pionowy kafelek (nadpisuje poziomy układ listy) */
.store-products-images .store-product,
.store-products-list .store-product {
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  padding: var(--widget-padding);
  text-align: left;
}
.store-products-images .store-product .image-link,
.store-products-list .store-product .image-link {
  width: 100%;
  margin: 0;
}
.store-products-images .store-product .image,
.store-products-list .store-product .image {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}
.store-products-list .store-product .actions {
  flex-wrap: wrap;
}
.store-products-list .store-product .price {
  width: 100%;
}
.store-products-list .store-product .wide,
.store-products-list .store-product .actions .wide {
  width: 100%;
  flex: 1 1 auto;
  min-width: 0;
}

.store-products-list .store-product:hover,
.store-products-images .store-product:hover {
  transform: translateY(-5px);
  border-color: var(--panel-border-hover);
  box-shadow: 0 16px 40px rgb(37 99 235 / 22%);
}

.store-product .image-link {
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.store-product .image {
  border-radius: var(--radius-sm);
  transition: transform 0.35s var(--ease-pop);
}
.store-product:hover .image {
  transform: scale(1.06);
}

.store-product .product-title a {
  transition: color 0.2s ease;
}
.store-product .product-title a:hover {
  color: var(--color-primary-hover);
}

.store-product .price strong {
  color: #8ab4ff;
}

.store-product .product-title .countdown,
.store-product-tiered .countdown {
  border-radius: 999px;
  background: linear-gradient(135deg, #1d4ed8, #3b82f6);
  color: #fff;
  box-shadow: 0 4px 12px rgb(37 99 235 / 40%);
}

.store-product-full {
  border-radius: var(--radius);
  background: var(--panel-bg-soft);
  border: var(--panel-border);
  box-shadow: var(--panel-shadow);
}

.store-product .quantity-field {
  border-radius: 10px;
  background: rgb(9 12 17 / 85%);
}
.store-product .quantity-field input[type=number] {
  border: none;
}

/* ==========================================================================
   PAKIETY TIERED
   ========================================================================== */
.store-category-tiered {
  border-radius: var(--radius);
  background: var(--panel-bg-soft);
  border: var(--panel-border);
  box-shadow: var(--panel-shadow);
}
.store-category-tiered-header h1, .store-category-tiered-header h2,
.store-category-tiered-header h3, .store-category-tiered-header h4,
.store-category-tiered-header h5, .store-category-tiered-header h6 {
  text-align: center;
}

.store-product-tiered {
  border-radius: var(--radius);
  background: rgb(8 11 16 / 65%);
  border: 1px solid rgb(148 163 184 / 07%);
  transition: transform 0.25s var(--ease-pop), border-color 0.25s ease, box-shadow 0.25s ease;
}
.store-product-tiered:hover {
  transform: translateY(-5px);
  border-color: var(--panel-border-hover);
  box-shadow: 0 14px 38px rgb(37 99 235 / 20%);
}
.store-product-tiered .price strong {
  color: #8ab4ff;
}

/* ==========================================================================
   WIDGETY
   ========================================================================== */
.widget {
  border-radius: var(--radius);
  background: var(--panel-bg-soft);
  border: var(--panel-border);
  box-shadow: var(--panel-shadow);
}
@media (width <= 960px) {
  .widget.site-navigation {
    border-radius: 0;
    background: transparent;
    border: none;
    box-shadow: none;
  }
}

.widget-title {
  display: flex;
  align-items: center;
  gap: 10px;
}
.widget-title::before {
  content: "";
  flex: none;
  width: 4px;
  height: 18px;
  border-radius: 4px;
  background: linear-gradient(180deg, #60a5fa, #2563eb);
}

.widget .store-product {
  text-align: center;
}

.widget-gift-card .gift-card-input {
  border-radius: 10px;
  border: 1px solid rgb(148 163 184 / 18%);
  background: rgb(9 12 17 / 85%);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.widget-gift-card .gift-card-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgb(59 130 246 / 15%);
}

.widget-top-donator .avatar,
.widget-recent .avatar {
  border-radius: 50%;
  border: 2px solid rgb(96 145 255 / 40%);
  box-shadow: 0 0 18px rgb(59 130 246 / 25%);
}

.widget-community-goal .progress,
.widget-goal .progress {
  border-radius: 999px;
  background: rgb(9 12 17 / 90%);
  border: 1px solid rgb(148 163 184 / 10%);
  overflow: hidden;
}
.widget-community-goal .progress-bar,
.widget-goal .progress-bar {
  border-radius: 999px;
  background: linear-gradient(90deg, #1d4ed8, #3b82f6, #60a5fa);
  background-size: 200% 100%;
  animation: shimmer 3s linear infinite;
  box-shadow: 0 0 14px rgb(59 130 246 / 45%);
}

/* ==========================================================================
   FORMULARZE
   ========================================================================== */
.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 input[type=time],
.store-form input[type=datetime-local],
.store-form input[type=file],
.store-form input[type=month],
.store-form input[type=week],
.store-form select,
.store-form textarea {
  border-radius: 10px;
  border: 1px solid rgb(148 163 184 / 18%);
  background: rgb(9 12 17 / 85%);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.store-form input:focus,
.store-form select:focus,
.store-form textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgb(59 130 246 / 15%);
}

/* ==========================================================================
   POPUPY I KOSZYK
   ========================================================================== */
.popup-content {
  border-radius: var(--radius);
  border: var(--panel-border);
  background: rgb(15 20 28 / 94%);
  backdrop-filter: blur(20px);
  box-shadow: 0 24px 70px rgb(0 0 0 / 70%);
}

.popup-close {
  border-radius: 0 var(--radius) 0 var(--radius);
  transition: background-color 0.2s ease;
}
.popup-close:hover {
  background: rgb(59 130 246 / 20%);
}

.basket-popup-content,
.basket-popup-content .popup-close {
  border-radius: 0;
}
.basket-popup-content {
  border-left: 1px solid rgb(148 163 184 / 12%);
  background: rgb(10 14 20 / 96%);
  backdrop-filter: blur(20px);
}

.basket-items {
  padding: var(--widget-padding) calc(var(--content-padding) - var(--widget-padding));
}

.basket-item {
  border-radius: var(--radius-sm);
  background: var(--panel-bg-soft);
  border: var(--panel-border);
  transition: border-color 0.2s ease;
}
.basket-item:hover {
  border-color: rgb(96 145 255 / 35%);
}
.basket-item .quantity {
  border-radius: 8px;
}

.basket .basket-checkout .total strong {
  color: #8ab4ff;
}

/* ==========================================================================
   POWIADOMIENIA (toast)
   ========================================================================== */
.toast {
  border-radius: var(--radius-sm);
  border: 1px solid rgb(96 145 255 / 25%);
  background: rgb(15 20 28 / 95%);
  backdrop-filter: blur(14px);
  box-shadow: var(--panel-shadow);
  animation: riseIn 0.35s var(--ease-pop) both;
}
.toast.toast-success {
  border-color: rgb(52 211 153 / 40%);
}
.toast.toast-error {
  border-color: rgb(248 113 113 / 40%);
}
.toast-close {
  border-radius: 6px;
}

/* ==========================================================================
   GALERIA / SLIDER
   ========================================================================== */
.media-slider .slider,
.media-slider .thumb {
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.media-slider .thumb {
  border: 2px solid transparent;
  transition: border-color 0.2s ease;
}
.media-slider .thumb.active {
  border-color: var(--color-primary);
}
.media-slider .open-lightbox {
  border-radius: 8px;
}
.popup.popup-media-slider .thumb,
.popup.popup-media-slider .popup-close {
  border-radius: var(--radius-sm);
}

/* ==========================================================================
   STOPKA
   ========================================================================== */
.site-footer {
  border-top: 1px solid rgb(148 163 184 / 07%);
  background: rgb(8 11 16 / 70%);
  padding-top: var(--widget-padding);
}

.site-footer-inner .we-accept img {
  filter: grayscale(0.4) brightness(0.9);
  transition: filter 0.2s ease, transform 0.2s ease;
}
.site-footer-inner .we-accept li:hover img {
  filter: none;
  transform: translateY(-2px);
}
.site-footer-inner .copyright {
  color: var(--color-text-secondary);
}
