/* ==========================================================================
   Design system — Dark Premium / Deep Violet
   Shared by every page in this store. Redefining the tokens/classes below
   restyles the entire storefront at once, since every page markup already
   references this exact class vocabulary (card-surface, btn-accent,
   product-card, badge-*, fade-in-up, skeleton, hero-mesh, img-placeholder).
   ========================================================================== */

:root {
  color-scheme: dark;

  /* ---- Neutrals (violet-tinted, never pure black/grey) ---- */
  --bg: #09060f;
  --bg-soft: #0e0a1a;
  --bg-elevated: #140f22;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-strong: rgba(255, 255, 255, 0.08);
  --surface-hover: rgba(255, 255, 255, 0.095);
  --border: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 255, 255, 0.2);
  --text: #f7f5fb;
  --text-dim: #b6adc8;
  --text-faint: #786e91;

  /* ---- Brand: deep violet -> fuchsia, indigo as cool counterpoint ---- */
  --violet-300: #c4aeff;
  --violet-400: #ab8bff;
  --violet-500: #9163ff;
  --violet-600: #7c3aed;
  --violet-700: #5b21b6;
  --fuchsia: #e879f9;
  --indigo: #6366f1;

  /* Backward-compatible single-accent tokens (referenced directly by
     existing page markup: text-accent, bg-accent, border-accent, and the
     Tailwind arbitrary utility accent-[--accent] on radio inputs). */
  --accent: var(--violet-500);
  --accent-soft: rgba(145, 99, 255, 0.16);

  --gradient-brand: linear-gradient(135deg, #6d28d9 0%, #9163ff 45%, #e879f9 100%);
  --gradient-brand-hover: linear-gradient(135deg, #7c3aed 0%, #a78bfa 45%, #f0abfc 100%);
  --gradient-text: linear-gradient(135deg, #f7f5fb 0%, #d9cdfb 55%, #c4aeff 100%);

  /* Semantic (distinct from brand accent) */
  --success: #34d399;
  --warning: #f5b544;
  --danger: #fb7185;
  --info: #60a5fa;

  /* ---- Type ---- */
  --font-display: 'Instrument Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Consolas, monospace;

  --text-hero: clamp(2.75rem, 3.2vw + 2rem, 5.25rem);
  --text-h1: clamp(2.1rem, 1.6vw + 1.6rem, 3.25rem);
  --text-h2: clamp(1.65rem, 1vw + 1.3rem, 2.35rem);
  --text-h3: clamp(1.2rem, 0.4vw + 1.05rem, 1.5rem);

  /* ---- Radius ---- */
  --radius-sm: 0.85rem;
  --radius: 1.25rem;
  --radius-lg: 1.75rem;
  --radius-xl: 2.5rem;
  --radius-full: 999px;

  /* ---- Shadows ---- */
  --shadow-sm: 0 2px 10px -2px rgba(4, 2, 12, 0.4);
  --shadow-md: 0 16px 40px -12px rgba(4, 2, 12, 0.55);
  --shadow-lg: 0 32px 80px -20px rgba(4, 2, 12, 0.65);
  --shadow-glow: 0 8px 40px -6px rgba(145, 99, 255, 0.45);
  --shadow-glow-lg: 0 20px 70px -10px rgba(145, 99, 255, 0.4);

  /* ---- Motion ---- */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 180ms;
  --dur: 350ms;
  --dur-slow: 700ms;

  /* ---- Layout ----
     Real height of .nav-shell (sticky, see "Navigation" below): py-4 (2 x
     1rem) + the 2.75rem (h-11) logo/icon row = 4.75rem, rounded up with a
     little breathing room. Used as scroll-margin-top on in-page anchor
     targets so the sticky header doesn't overlap whatever a same-page
     #hash link (nav's "Dlaczego my"/"FAQ", footer's section links, ...)
     scrolls to. */
  --nav-height: 5rem;
}

/* ==========================================================================
   Reset / base
   ========================================================================== */

* {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
}

html {
  scroll-behavior: smooth;
  /* Pasek przewijania rezerwowany ZAWSZE. Bez tego strona kategorii miala
     CLS 0,1688 na desktopie (Google ocenia >0,1 jako slabe): szkielet SSR
     miescil sie w oknie, po dorenderowaniu siatki produktow dokument stawal
     sie przewijany, pasek sie pojawial i CALA strona przeskakiwala w bok.
     Zmierzone: ta jedna linia sprowadza CLS kategorii do 0,0000.
     Font i plakietka opinii odpowiadaly lacznie za ~0,047 — to nie one byly
     glownym winowajca. */
  overflow-y: scroll;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  position: relative;
}

h1, h2, h3, .font-display {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  text-wrap: balance;
}

::selection {
  background: rgba(145, 99, 255, 0.35);
  color: #fff;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.16);
  border-radius: 999px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

[x-cloak] {
  display: none !important;
}

/* Baseline visible focus ring for any interactive element that doesn't
   already define its own focus treatment (inputs use a box-shadow ring
   instead, see .input-glass:focus). */
a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--violet-400);
  outline-offset: 2px;
}

/* Skip-to-content link — visually hidden until keyboard-focused, then pinned
   top-left above everything else (see partials/nav.php). */
.skip-link {
  position: absolute;
  top: -6rem;
  left: 1rem;
  z-index: 100;
  background: var(--bg-elevated);
  color: var(--text);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  font-weight: 600;
  font-size: 0.875rem;
  box-shadow: var(--shadow-lg);
  transition: top var(--dur-fast) var(--ease);
}

.skip-link:focus {
  top: 1rem;
  outline: 2px solid var(--violet-400);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   Ambient background — smoke / clouds
   Fixed, decorative, behind all content (see partials/ambient-background.php)
   ========================================================================== */

.ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.ambient::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.5;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.35'/%3E%3C/svg%3E");
}

.ambient-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  will-change: transform, opacity;
}

.ambient-blob.b1 {
  top: -12%;
  left: -8%;
  width: 46vw;
  height: 46vw;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.55), transparent 70%);
  animation: driftA 26s ease-in-out infinite alternate;
}

.ambient-blob.b2 {
  top: 8%;
  right: -14%;
  width: 40vw;
  height: 40vw;
  background: radial-gradient(circle, rgba(232, 121, 249, 0.35), transparent 70%);
  animation: driftB 32s ease-in-out infinite alternate;
}

.ambient-blob.b3 {
  bottom: -18%;
  left: 24%;
  width: 52vw;
  height: 52vw;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.28), transparent 70%);
  animation: driftC 38s ease-in-out infinite alternate;
}

@keyframes driftA {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(4%, 6%) scale(1.08); }
}

@keyframes driftB {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(-6%, 4%) scale(1.12); }
}

@keyframes driftC {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(3%, -5%) scale(1.06); }
}

@media (prefers-reduced-motion: reduce) {
  .ambient-blob { animation: none !important; }
}

main, header, footer, #app-root {
  position: relative;
  z-index: 1;
}

.hero-mesh {
  background: transparent;
}

/* ==========================================================================
   Layout helpers
   ========================================================================== */

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--violet-300);
}

.text-gradient {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ==========================================================================
   Glass / surface system
   ========================================================================== */

.card-surface {
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
}

/* Touch devices: backdrop-filter forces the GPU to recomposite a blurred
   copy of whatever's behind every single one of these per frame — fine for
   one or two glass panels, but .card-surface sits on every product card
   (up to 16 on the homepage grid, all 60+ on the full catalog) plus cart/
   checkout/age-gate surfaces, so this was real, felt scroll jank on phones,
   not just a slow initial load. Desktop untouched — mice/trackpads scroll
   differently and desktop GPUs absorb this fine. Solid --bg-elevated keeps
   the same "distinct card" read without the compositing cost. */
@media (max-width: 768px) {
  /* !important on purpose: the animations are declared on .ambient-blob.b1/
     .b2/.b3 (two classes), so a plain .ambient-blob override here loses on
     specificity and never applied -- all three blur(90px) drifts were still
     running on phones (confirmed via document.getAnimations() at 390px). */
  .ambient-blob {
    animation: none !important;
  }

  .card-surface {
    background: var(--bg-elevated);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

.glass-panel {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--border);
  backdrop-filter: blur(28px) saturate(150%);
  -webkit-backdrop-filter: blur(28px) saturate(150%);
  box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.glass-panel-strong {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03));
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* ==========================================================================
   Product cards
   ========================================================================== */

.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease);
}

.product-card:hover {
  transform: translateY(-8px);
  border-color: rgba(145, 99, 255, 0.4);
  background: var(--surface-hover);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

/* The touch-device backdrop-filter opt-out above (.card-surface) never
   reached the product cards: every card is `product-card card-surface`,
   and .product-card's own blur(20px) is declared AFTER that media block
   with the same specificity, so it won, and getComputedStyle at 390px
   still reported blur(20px) on all 24 catalog cards -- plus blur(12px)
   on each card's wishlist button (Tailwind backdrop-blur-md), which sits
   over the product image. 48 blurred surfaces on one screen. Same
   override, declared after the rule it has to beat. */
@media (max-width: 768px) {
  .product-card {
    background: var(--bg-elevated);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .product-card .card-wishlist {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

/* pages/catalog.php's grid renders every matching product at once (up to
   120+, no pagination) -- content-visibility skips layout/paint for
   off-screen cards entirely instead of the browser doing that work for a
   list this long up front. Scoped to catalog.php's own grid (not the
   related/recently-viewed/search-dropdown uses of the same .product-card,
   which are only ever 4-6 items -- no benefit there, only unnecessary
   containment overhead per modern-web-guidance's own DON'T). Paired with
   contain-intrinsic-size per the same guidance: without it, an off-screen
   card collapses to 0 height, causing scrollbar/layout jumping as the user
   scrolls past the boundary. auto lets the browser remember each card's
   real height after it first renders, using the 500px estimate only for
   the very first paint. */
.catalog-grid > .product-card {
  content-visibility: auto;
  contain-intrinsic-size: auto 500px;
}

.product-card .product-image {
  transition: transform 0.7s var(--ease);
}

.product-card:hover .product-image {
  transform: scale(1.07);
}

.img-placeholder {
  background:
    radial-gradient(circle at 30% 20%, rgba(145, 99, 255, 0.14), transparent 55%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0 10px, rgba(255, 255, 255, 0.015) 10px 20px);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn-accent {
  background: var(--gradient-brand);
  color: #fff;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease), filter var(--dur-fast) ease;
  box-shadow: var(--shadow-glow);
}

.btn-accent:hover {
  transform: translateY(-2px);
  background: var(--gradient-brand-hover);
  box-shadow: var(--shadow-glow-lg);
}

.btn-accent:active {
  transform: translateY(0);
}

.btn-accent:disabled {
  filter: grayscale(0.7);
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
  opacity: 0.55;
}

.btn-ghost {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  backdrop-filter: blur(16px);
  transition: border-color var(--dur-fast) ease, background var(--dur-fast) ease, transform var(--dur-fast) var(--ease);
}

.btn-ghost:hover {
  border-color: var(--border-strong);
  background: var(--surface-hover);
  transform: translateY(-1px);
}

/* ==========================================================================
   Filter chips (single-select toggle pills — e.g. rating filter on /opinie)
   ========================================================================== */

.chip {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-dim);
  transition: border-color var(--dur-fast) ease, background var(--dur-fast) ease, color var(--dur-fast) ease;
}

.chip:hover {
  border-color: var(--border-strong);
  color: var(--text);
}

.chip.is-active {
  border-color: var(--violet-400);
  background: var(--accent-soft);
  color: var(--violet-300);
}

/* ==========================================================================
   Badges
   ========================================================================== */

.badge-new {
  background: #2563eb;
  color: #ffffff;
  border: 1px solid #93c5fd;
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.5);
}

.badge-promo {
  background: #e11d48;
  color: #ffffff;
  border: 1px solid #fb7185;
  box-shadow: 0 2px 10px rgba(225, 29, 72, 0.55);
}

.badge-out {
  background: #881337;
  color: #ffffff;
  border: 1px solid #fb7185;
  box-shadow: 0 2px 10px rgba(136, 19, 55, 0.55);
}

/* Low-stock urgency badge (product cards) — amber, distinct from promo/out. */
.badge-low {
  background: #f59e0b;
  color: #26160a;
  border: 1px solid #fcd34d;
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.55);
}

/* „Nowa dostawa" — towar z ostatnich 7 dni (fresh_arrival z API). Neon jak
   karta pakietu: zielona poświata oddycha, napis co kilka sekund mruga. */
.badge-arrival {
  position: relative;
  background: #052e24;
  color: #6ee7b7;
  border: 1px solid #34d399;
  box-shadow: 0 0 10px rgba(52, 211, 153, 0.55), inset 0 0 8px rgba(52, 211, 153, 0.25);
  text-shadow: 0 0 6px rgba(110, 231, 183, 0.8);
  animation: neon-flicker 5s linear 0.8s infinite;
}

.badge-arrival::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: inherit;
  box-shadow: 0 0 16px 2px rgba(52, 211, 153, 0.7);
  animation: neon-breathe 1.8s ease-in-out infinite;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .badge-arrival,
  .badge-arrival::after {
    animation: none;
  }
}

/* ==========================================================================
   Motion
   ========================================================================== */

.fade-in-up {
  /* `backwards`, nie `both`. `both` = `forwards` + `backwards`, a `forwards`
     ZOSTAWIA na elemencie koncowa klatke `transform: translateY(0)` na stale.
     Macierz jednostkowa to wciaz nie `none`, wiec element tworzy blok
     zawierajacy i przekotwicza kazdy `position: fixed` w srodku.

     Skutek byl powazny: sticky pasek "Dodaj do koszyka" na stronie produktu
     mial `position: fixed; bottom: 0`, a jechal ze strona zamiast trzymac sie
     dolu ekranu (zmierzone: top 6177 px przy scrollY 0). Na telefonie klient
     wybieral smaki i nie mial czym kupic, dopoki nie przewinal calej listy.

     `backwards` zachowuje stan sprzed startu animacji (brak mignięcia
     nieprzezroczystej tresci), a po jej zakonczeniu element wraca do stanu
     naturalnego — bez transformu, wiec bez bloku zawierajacego. */
  animation: fadeInUp var(--dur-slow) var(--ease) backwards;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-enter {
  transition: opacity var(--dur) ease, transform var(--dur) ease;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

[data-reveal-scale] {
  opacity: 0;
  transform: scale(0.94);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

[data-reveal-scale].is-visible {
  opacity: 1;
  transform: scale(1);
}

.stagger-1 { transition-delay: 0.06s; }
.stagger-2 { transition-delay: 0.12s; }
.stagger-3 { transition-delay: 0.18s; }
.stagger-4 { transition-delay: 0.24s; }
.stagger-5 { transition-delay: 0.3s; }
.stagger-6 { transition-delay: 0.36s; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal], [data-reveal-scale] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ==========================================================================
   Skeleton loading
   ========================================================================== */

/* The shimmer is a transform on a pseudo-element, NOT an animated
   background-position on the box itself. background-position is a paint
   property: every frame re-resolves style + repaints every skeleton on the
   main thread. Measured live on the homepage with 4x CPU throttling: the
   ~29 placeholder skeletons of the lazy-mounted catalog grid (8000px+ below
   the fold, i.e. never even visible) kept the main thread ~36% busy for as
   long as the visitor stayed above the grid -- 1.1s of work per 3s, 500
   style recalcs -- competing with every tap and scroll. The same sweep
   done as a transform runs on the compositor: 7ms per 3s, 0 recalcs. */
.skeleton {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
}

.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.07) 50%, transparent 70%);
  transform: translateX(-100%);
  animation: shimmer 1.6s ease-in-out infinite;
}

@keyframes shimmer {
  to { transform: translateX(100%); }
}

@media (prefers-reduced-motion: reduce) {
  .skeleton::after { animation: none; }
}

/* ==========================================================================
   Navigation
   ========================================================================== */

.nav-shell {
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), backdrop-filter var(--dur) var(--ease);
  background: transparent;
  border-bottom: 1px solid transparent;
}

.nav-shell.is-scrolled {
  background: rgba(9, 6, 15, 0.72);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  box-shadow: 0 12px 30px -18px rgba(0, 0, 0, 0.6);
}

/* Any homepage section that's a same-page #hash target (nav's #why-us/#faq,
   footer's #why-us/#reviews/#faq, why-choose-us.php's own "#catalog" link,
   ...) needs this so the sticky .nav-shell above doesn't cover its top —
   native fragment scrolling, scrollIntoView(), and the global
   `scroll-behavior: smooth` all land the target's top edge flush with the
   viewport top otherwise. Scoped to <main> so it never touches unrelated
   ids elsewhere (e.g. a future modal/dialog id). */
main section[id] {
  scroll-margin-top: var(--nav-height);
}

.nav-link {
  position: relative;
  color: var(--text-dim);
  transition: color var(--dur-fast) ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -4px;
  height: 1.5px;
  background: var(--gradient-brand);
  transition: right var(--dur) var(--ease);
}

.nav-link:hover {
  color: var(--text);
}

.nav-link:hover::after {
  right: 0;
}

/* Wraps search/wishlist/cart/mobile-menu as one segmented control instead of
   separate touching chips. */
.nav-action-pill {
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur) var(--ease);
}

.nav-action-pill:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* Cart is the one action worth pulling the eye toward, so it carries a
   whisper of brand color at rest while its siblings stay neutral. */
.nav-cart-link {
  background: var(--accent-soft);
  transition: background var(--dur-fast) ease, color var(--dur-fast) ease;
}

.nav-cart-link:hover {
  background: rgba(145, 99, 255, 0.28);
}

/* ==========================================================================
   Marquee (announcement bar)
   ========================================================================== */

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 26s linear infinite;
}

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

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

/* ==========================================================================
   Forms
   ========================================================================== */

.input-glass {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text);
  transition: border-color var(--dur-fast) ease, background var(--dur-fast) ease, box-shadow var(--dur-fast) ease;
}

.input-glass:focus {
  outline: none;
  border-color: var(--violet-400);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 4px rgba(145, 99, 255, 0.16);
}

.input-glass::placeholder {
  color: var(--text-faint);
}

/* <select> options render in a browser/OS-native popup that ignores the
   element's own translucent .input-glass background — most engines default
   that popup to a plain white list, which combined with our light --text
   color (fine against the dark closed control) made every non-highlighted
   option nearly unreadable. Forcing an opaque dark background + light text
   directly on <option> is the one part of a native select popup that
   Chrome/Edge/Firefox do respect. */
.input-glass option {
  background-color: var(--bg);
  color: var(--text);
}

/* ==========================================================================
   Toasts (components/toast-host.php + assets/js/ui.js's Toast/toastHost()).
   Below the age-verification modal's z-[100] on purpose — a legal gate
   should never be upstaged by a "dodano do koszyka" toast.
   ========================================================================== */

.toast-host {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 92;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.625rem;
  padding: 1rem;
  pointer-events: none;
  transition: bottom var(--dur) var(--ease);
}

@media (min-width: 640px) {
  .toast-host {
    inset: auto 1rem 1rem auto;
    align-items: flex-end;
  }
}

.toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  max-width: 24rem;
  /* Solid, not the site's usual translucent "glass" (var(--surface) is only
     4.5% white) -- every other glass surface pairs that with a real
     backdrop-filter blur to stay readable, which this never had (copied
     from a light-theme store where the same numbers read fine as-is).
     Worse, .card-surface's own backdrop-filter is deliberately DISABLED on
     mobile for scroll perf (see the media query above) -- a toast copying
     that exact background would inherit the same invisibility there.
     A toast has to be reliably legible over whatever's behind it with zero
     dependency on blur support/perf, so it gets the same solid
     --bg-elevated already used for the mobile nav dropdown, not glass.
     Confirmed live: the old version was reported unreadable on mobile and
     intermittently on desktop too. */
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 0.75rem;
}

.toast-enter { transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease); }
.toast-enter-start { opacity: 0; transform: translateY(12px) scale(0.98); }
.toast-enter-end { opacity: 1; transform: translateY(0) scale(1); }
.toast-leave { transition: opacity var(--dur-fast) ease, transform var(--dur-fast) ease; }
.toast-leave-start { opacity: 1; }
.toast-leave-end { opacity: 0; transform: translateY(6px) scale(0.98); }

.toast-thumb {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius);
  object-fit: cover;
  border: 1px solid var(--border);
}

.toast-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--violet-300);
}

.toast-error .toast-icon {
  background: rgba(251, 113, 133, 0.14);
  color: var(--danger);
}

.toast-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.toast-body {
  min-width: 0;
  flex: 1;
}

.toast-message {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  /* Do 2026-09-09 stalo tu `white-space: nowrap` + `text-overflow: ellipsis`.
     Wygladalo niewinnie przy krotkich komunikatach ("Dodano do koszyka"), ale
     kazdy dluzszy niz ~30 znakow konczyl sie wielokropkiem w polowie zdania
     ("Zawartosc zestawu zmienisz na st..."). Toast, ktorego nie da sie
     doczytac, nie tlumaczy niczego — a wlasnie tlumaczenie odmowy jest jego
     jedynym zadaniem przy pakietach.

     Zawijamy wiec tekst i ograniczamy do 3 linii, zeby dlugi komunikat nie
     urosl na pol ekranu. Klamrowanie zamiast ucinania w jednej linii: przy
     3 liniach miesci sie kazdy komunikat, ktory dzis wysylamy. */
  white-space: normal;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
}

.toast-link {
  display: inline-block;
  margin-top: 0.125rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  text-underline-offset: 3px;
}

.toast-link:hover {
  text-decoration: underline;
}

.toast-close {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  /* 2.75rem (44px) matches this site's own touch-target convention
     elsewhere (wishlist toggle, cart quantity +/-, h-11/w-11) -- this was
     1.75rem (28px), well under the 44px minimum, on a control that's
     genuinely one of the more frequently-tapped mobile dismiss buttons on
     the site. */
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  color: var(--text-faint);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}

.toast-close:hover {
  background: var(--surface-hover);
  color: var(--text-dim);
}

.toast-close svg {
  width: 1rem;
  height: 1rem;
}

/* ── Checkout: numbered step headers + trust strip (2026-09 redesign) ──────
   Hand-written (not Tailwind utilities) so it needs no tailwind.css rebuild —
   the precompiled build only content-scans frontend_core/**, so new utility
   classes used only in sites/** would silently no-op. */
.checkout-step-head { display: flex; align-items: center; gap: 0.75rem; margin: 0; }
.checkout-step-title { font-size: 1rem; font-weight: 600; color: #fafafa; letter-spacing: 0; text-transform: none; }
.step-badge {
  display: inline-flex; align-items: center; justify-content: center;
  height: 1.85rem; width: 1.85rem; flex-shrink: 0; border-radius: 999px;
  font-size: 0.8rem; font-weight: 700; background: var(--accent-soft); color: var(--accent);
  border: 1px solid rgba(145, 99, 255, 0.28);
}
.checkout-trust {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 0.5rem 1.5rem; font-size: 0.75rem; color: #8b8ba0;
}
.checkout-trust span { display: inline-flex; align-items: center; gap: 0.4rem; }

/* ── Klasy akcentu (audyt 2026-09-04) ────────────────────────────────────────
   `bg-accent`, `text-accent` i `border-accent` były używane w 16 miejscach
   sklepu, ale NIE ISTNIAŁY w skompilowanym CSS — `accent` nigdy nie trafił do
   `theme.extend` w tailwind.config.js, więc Tailwind ich nie wygenerował.
   Skutkiem był brak jakiegokolwiek oznaczenia stanu wybranego: który smak
   klient zaznaczył przed dodaniem do koszyka, który filtr i która marka są
   aktywne, która metoda dostawy i płatności jest wybrana (tam ratuje to
   natywny radio input, w selektorze smaku nie ratowało nic).

   Definiowane tutaj, a nie przez przebudowę Tailwinda, bo `style.css` ładuje
   się PO `tailwind.css` (patrz partials/head.php) i nie wymaga kroku budowania
   — a --accent jest już zdefiniowany wyżej w tym pliku, więc kolory podążą za
   każdą zmianą motywu.

   `color-mix` ma fallback w postaci stałej rgba dla starszych przeglądarek:
   bez niego wariant z przezroczystością nie pokazałby nic. */
.bg-accent { background-color: var(--accent); }
.text-accent { color: var(--accent); }
.border-accent { border-color: var(--accent); }

.bg-accent\/10 { background-color: rgba(145, 99, 255, 0.10); }
.bg-accent\/10 { background-color: color-mix(in srgb, var(--accent) 10%, transparent); }
.bg-accent\/15 { background-color: rgba(145, 99, 255, 0.15); }
.bg-accent\/15 { background-color: color-mix(in srgb, var(--accent) 15%, transparent); }

/* Copyable payment values (BLIK phone/amount/transfer title).
   BUG 2026-09-06: a customer could not copy the transfer title — the copy
   button used navigator.clipboard.writeText() alone and failed silently in
   her browser (see copyTextToClipboard() in assets/js/api.js). This rule is
   the last-resort manual path: one tap/long-press grabs the WHOLE value, so
   nobody has to hit the exact characters of an order number by hand.
   Deliberately written here and not as Tailwind's `select-all` utility —
   that class is absent from the prebuilt tailwind.css and would silently
   do nothing without a rebuild. */
[data-copy-value] {
  -webkit-user-select: all;
  user-select: all;
}

/* ==========================================================================
   BLIK prepayment confirmation (components/blik-trust-modal.php)
   Hand-written on purpose: tailwind.css is a one-time build, so utilities
   this markup would need (ml-auto, shadow-2xl, inset-y-0, z-[60],
   bg-white/[0.035] — all verified absent) would silently do nothing.
   ========================================================================== */

.pay-tag {
  margin-left: auto;
  flex-shrink: 0;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  padding: 0.15rem 0.6rem;
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.pay-tag-prepaid { border-color: rgba(245, 181, 68, 0.3); background: rgba(245, 181, 68, 0.1); color: var(--warning); }
.pay-tag-cod { border-color: rgba(52, 211, 153, 0.3); background: rgba(52, 211, 153, 0.1); color: var(--success); }

/* „Od 10 szt. tylko kurier" (2026-10-08): wyszarzony paczkomat z powodem
   i informacja w kasie/koszyku. Ręcznie, nie Tailwindem — tailwind.css
   w tym sklepie jest prekompilowany. Bez margin — style.css ładuje się po
   tailwind.css i zjadłby mt-2 z szablonu. */
.delivery-method-disabled { cursor: not-allowed; opacity: 0.55; }
.delivery-method-note { display: block; font-size: 0.75rem; line-height: 1.4; color: var(--warning); }

.blik-trust-wrap {
  position: fixed;
  inset: 0;
  /* Nad banerem cookies (z-[90]) — jako bottom-sheet dialog dzielił z nim
     dolną krawędź ekranu i baner zasłaniał przycisk potwierdzenia oraz
     komunikat błędu. Poniżej bramki wieku (z-[100]), która musi zostać na
     wierzchu. */
  z-index: 95;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.blik-trust-scrim {
  position: absolute;
  inset: 0;
  background: rgba(4, 2, 12, 0.82);
  backdrop-filter: blur(8px);
}

.blik-trust-panel {
  position: relative;
  width: 100%;
  max-width: 28rem;
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  overflow-x: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  background:
    radial-gradient(130% 90% at 50% -20%, rgba(145, 99, 255, 0.2), transparent 62%),
    var(--bg-elevated);
  padding: 1.6rem 1.5rem 1.4rem;
  box-shadow: var(--shadow-lg), 0 0 60px -18px rgba(145, 99, 255, 0.5);
  animation: blik-trust-pop var(--dur) var(--ease);
}
/* Single gradient hairline is the only ornament; everything else stays quiet. */
.blik-trust-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--violet-400) 30%, var(--fuchsia) 70%, transparent);
}
@keyframes blik-trust-pop {
  from { opacity: 0; transform: translateY(12px) scale(0.975); }
}
@media (prefers-reduced-motion: reduce) {
  .blik-trust-panel { animation: none; }
}

.blik-trust-mark {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.875rem;
  background: linear-gradient(150deg, rgba(145, 99, 255, 0.28), rgba(232, 121, 249, 0.14));
  border: 1px solid rgba(196, 174, 255, 0.35);
  color: var(--violet-300);
}
.blik-trust-mark svg { width: 1.4rem; height: 1.4rem; }

.blik-trust-title {
  margin: 1rem 0 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.32;
  letter-spacing: -0.02em;
  color: var(--text);
  text-wrap: balance;
}
.blik-trust-lede {
  margin: 0.65rem 0 0;
  font-size: 0.875rem;
  line-height: 1.62;
  color: var(--text-dim);
}

.blik-trust-list {
  list-style: none;
  margin: 1.05rem 0 0;
  padding: 0;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  overflow: hidden;
}
.blik-trust-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.7rem 0.85rem;
  background: rgba(255, 255, 255, 0.035);
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--text-dim);
}
.blik-trust-list li + li { border-top: 1px solid var(--border); }
.blik-trust-list b { color: var(--text); font-weight: 600; }

.blik-trust-check {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 1.05rem;
  height: 1.05rem;
  margin-top: 0.1rem;
  border-radius: 50%;
  background: rgba(52, 211, 153, 0.16);
  color: var(--success);
}
.blik-trust-check svg { width: 0.62rem; height: 0.62rem; }

.blik-trust-reviews {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.8rem;
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(145, 99, 255, 0.32);
  background: linear-gradient(120deg, rgba(145, 99, 255, 0.18), rgba(232, 121, 249, 0.08));
  font-size: 0.82rem;
  color: var(--text);
  text-decoration: none;
  transition: border-color var(--dur) var(--ease);
}
.blik-trust-reviews:hover { border-color: rgba(196, 174, 255, 0.6); }
.blik-trust-stars { color: var(--warning); letter-spacing: 0.06em; }
.blik-trust-arrow { color: var(--violet-300); }

/* The 10-second gate: a bar filling under the label reads as loading, where
   a bare disabled button reads as broken. */
.blik-trust-gate {
  position: relative;
  overflow: hidden;
  width: 100%;
  margin-top: 1.15rem;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-dim);
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: not-allowed;
}
.blik-trust-gate.is-ready {
  border-color: transparent;
  background: var(--gradient-brand);
  color: #fff;
  box-shadow: var(--shadow-glow);
  cursor: pointer;
}
.blik-trust-fill {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(90deg, rgba(124, 58, 237, 0.55), rgba(145, 99, 255, 0.55));
  transition: width 100ms linear;
}
@media (prefers-reduced-motion: reduce) {
  .blik-trust-fill { transition: none; }
}
.blik-trust-gate-label {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.blik-trust-count {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 0.72rem;
  padding: 0.12rem 0.5rem;
  border-radius: var(--radius-full);
  background: rgba(0, 0, 0, 0.3);
  color: var(--violet-300);
}

.blik-trust-secondary {
  width: 100%;
  margin-top: 0.6rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--dur) var(--ease);
}
.blik-trust-secondary:hover { background: var(--surface-strong); }

/* Błąd akcji (anulowanie / zgłoszenie) pokazywany WEWNĄTRZ panelu dialogu —
   komunikat pod scrimem był dla klienta niewidoczny. */
.blik-trust-error {
  margin: 0.9rem 0 0;
  padding: 0.7rem 0.9rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(244, 63, 94, 0.3);
  background: rgba(244, 63, 94, 0.1);
  font-size: 0.8rem;
  line-height: 1.55;
  color: #fecdd3;
}

/* ==========================================================================
   Okno na przelew BLIK + akcje klienta (pages/success.php)
   Kolor niesie tu informację, nie ozdobę: licznik jest w barwach marki,
   dopóki czasu jest dużo, bursztyn wchodzi na ostatnich 5 minutach, a po
   upływie okna wszystko gaśnie do neutralnego — bo nic złego się nie stało,
   zamówienie po prostu czeka na ręczną weryfikację.
   ========================================================================== */

.blik-window {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015));
  padding: 1.05rem 1.15rem 1rem;
  margin-bottom: 1.35rem;
  transition: border-color var(--dur) var(--ease);
}
.blik-window.is-urgent { border-color: rgba(245, 181, 68, 0.32); }
.blik-window.is-expired { border-color: rgba(96, 165, 250, 0.28); }

.blik-window-top { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.blik-window-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-faint);
}
.blik-window-state {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.72rem;
  font-weight: 500;
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-dim);
  white-space: nowrap;
}
.blik-window-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--violet-400); }
.blik-window.is-urgent .blik-window-dot { background: var(--warning); }
.blik-window.is-expired .blik-window-dot { background: var(--info); }
@media (prefers-reduced-motion: no-preference) {
  .blik-window-dot { animation: blik-window-breathe 2.4s var(--ease) infinite; }
  .blik-window.is-expired .blik-window-dot { animation: none; }
}
@keyframes blik-window-breathe { 50% { opacity: 0.35; } }

.blik-window-value {
  display: block;
  margin-top: 0.5rem;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(2.1rem, 7vw, 2.9rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.035em;
  background-image: linear-gradient(115deg, #f7f5fb 0%, #c4aeff 55%, #e879f9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--violet-300);
}
.blik-window.is-urgent .blik-window-value {
  background-image: none;
  -webkit-text-fill-color: var(--warning);
  color: var(--warning);
}
.blik-window.is-expired .blik-window-value {
  background-image: none;
  -webkit-text-fill-color: var(--text-faint);
  color: var(--text-faint);
}

.blik-window-rail {
  margin-top: 0.85rem;
  height: 3px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.blik-window-rail span {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--violet-600), var(--violet-400) 55%, var(--fuchsia));
  transition: width 1s linear, background var(--dur) var(--ease);
}
.blik-window.is-urgent .blik-window-rail span { background: linear-gradient(90deg, var(--warning), var(--danger)); }
@media (prefers-reduced-motion: reduce) { .blik-window-rail span { transition: none; } }

.blik-window-note {
  margin: 0.8rem 0 0;
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--text-dim);
}

.blik-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.35rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--border);
}
.blik-actions > * { flex: 1 1 11rem; }

/* Anulowanie jest destrukcyjne i nieodwracalne dla klienta — wygląda inaczej
   niż reszta, ale nie jest ukryte. Ukrywanie wyjścia to dark pattern. */
.blik-cancel-btn {
  border: 1px solid rgba(251, 113, 133, 0.35);
  background: rgba(251, 113, 133, 0.12);
  color: #fda4b4;
  font-family: inherit;
  cursor: pointer;
  transition: background var(--dur) var(--ease);
}
.blik-cancel-btn:hover { background: rgba(251, 113, 133, 0.2); }

.blik-cancel-confirm {
  width: 100%;
  margin-top: 1.15rem;
  border: 1px solid rgba(251, 113, 133, 0.4);
  background: rgba(251, 113, 133, 0.16);
  color: #fecdd6;
  font-family: inherit;
  cursor: pointer;
  transition: background var(--dur) var(--ease);
}
.blik-cancel-confirm:hover:not(:disabled) { background: rgba(251, 113, 133, 0.26); }
.blik-cancel-confirm:disabled { opacity: 0.5; cursor: not-allowed; }

.blik-issue-done {
  margin: 0;
  align-self: center;
  font-size: 0.75rem;
  color: var(--success);
}

.issue-options { display: grid; gap: 0.4rem; margin-top: 1.05rem; }
.issue-option {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.7rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.035);
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--text-dim);
  cursor: pointer;
  transition: border-color var(--dur) var(--ease);
}
.issue-option:hover { border-color: var(--border-strong); }
.issue-option input { margin-top: 0.15rem; flex-shrink: 0; accent-color: var(--accent); }
.issue-option:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); color: var(--text); }

/* --------------------------------------------------------------------------
   Narzędziowe klasy, których NIE MA w prekompilowanym tailwind.css.
   Znalezione 2026-09-06 przy dokładaniu licznika przelewu BLIK: skrypt
   porównujący klasy w markupie z wygenerowanym CSS pokazał, że część klas
   używanych na stronie potwierdzenia zamówienia — w tym `bg-zinc-900` na
   panelu modala z ostrzeżeniem o tytule przelewu i `bg-black/20` na ramce z
   danymi do przelewu — nie istnieje w buildzie i po cichu nic nie robi.
   Zweryfikowane także na żywym CSS produkcji (0 wystąpień).
   Modal bez tła nad półprzezroczystym scrimem jest po prostu nieczytelny, a
   dotyczy to ekranu, na którym klient przepisuje dane do przelewu.
   Dopisane tutaj, a nie przez przebudowę Tailwinda: build wymaga npm, którego
   ten projekt celowo nie ma w ścieżce wdrożenia, a cicha rozbieżność
   markup/CSS to dokładnie ten rodzaj błędu, który już raz tu wystąpił.
   -------------------------------------------------------------------------- */
.bg-black\/20 { background-color: rgba(0, 0, 0, 0.2); }
.bg-zinc-900 { background-color: #18181b; }
.bg-white\/\[0\.03\] { background-color: rgba(255, 255, 255, 0.03); }
.bg-amber-400\/5 { background-color: rgba(251, 191, 36, 0.05); }
.bg-amber-400\/10 { background-color: rgba(251, 191, 36, 0.1); }
.bg-amber-400\/15 { background-color: rgba(251, 191, 36, 0.15); }
.bg-amber-400\/20 { background-color: rgba(251, 191, 36, 0.2); }
.border-amber-400\/30 { border-color: rgba(251, 191, 36, 0.3); }
.max-w-sm { max-width: 24rem; }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(4, 2, 12, 0.6); }
.text-\[10px\] { font-size: 10px; }

/* Ikona stanu "zamówienie anulowane" (pages/success.php).
   AUDYT 2026-09-06: bg-zinc-500/15 i ring-zinc-400/30 nie istnieją w
   prekompilowanym tailwind.css — w buildzie nie ma ŻADNEGO wariantu
   bg-zinc-*/N ani ring-zinc-*/N. Ikona renderowała się jako gołe szare X, bez
   kółka i obwódki, obok dwóch sióstr (sky/emerald), które je mają. */
.bg-zinc-500\/15 { background-color: rgba(113, 113, 122, 0.15); }
.ring-zinc-400\/30 { --tw-ring-color: rgba(161, 161, 170, 0.3); box-shadow: 0 0 0 1px rgba(161, 161, 170, 0.3); }

/* ===== Marketplace (faza 2, 2026-09-07) — układ pod flagą marketplace_layout ===== */
/*
 * Przeniesione 1:1 z arkusza makiety (bez sekcji
 * .mp-ribbon — wstążka „MAKIETA" istnieje wyłącznie w makiecie). Klasy z
 * prefiksem mp- to nowe elementy układu marketplace: pasek kategorii z mega
 * menu, sidebar kategorii w hero, karuzela, kafelki, poziome rzędy produktów,
 * filtry widoku kategorii i szuflada mobilna. Reszta strony w tym trybie
 * używa dokładnie tych samych klas co dziś, więc stary układ (flaga 0, brak
 * ciasteczka podglądu) nie widzi z tego pliku ani jednej reguły — żadna z
 * poniższych klas nie występuje w dzisiejszym markupie.
 *
 * Zmienne (--text-dim, --accent, --accent-soft, --gradient-brand, --font-mono,
 * --text-faint, --violet-300, --bg-elevated, --fuchsia) są już zdefiniowane
 * wyżej w tym pliku — nic nowego nie trzeba dokładać do :root.
 */
/* ---- Nagłówek marketplace: przezroczysty u góry, materializuje się przy
   przewijaniu ----
   Wersja z tłem od pierwszego piksela wyglądała jak czarny pas doklejony nad
   stroną. U góry nagłówek ma być niewidoczny (dokładnie jak .nav-shell w
   dotychczasowym sklepie) i dopiero przewinięcie ma go „wywołać”: tło, blur,
   cień i cienka kreska w kolorze marki. Krycie 0.94 zamiast 0.72 ze starego
   układu, bo tu pod paskiem przewijają się zdjęcia produktów, a nie samo ciemne
   tło strony — przy 0.72 przebijały przez pasek mango i owoce.
   Wysokość paska NIE zmienia się przy przewijaniu: jest sticky, więc każda
   zmiana wysokości przesuwałaby treść pod nim (skok układu). */
.nav-shell--mp {
  background: transparent;
  border-bottom: 1px solid transparent;
  box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
  /* Celowo BEZ backdrop-filter w stanie spoczynku. `blur(0px)` nie daje żadnego
     efektu, a tworzy stałą warstwę kompozycji na elemencie sticky — czyli koszt
     na każdej klatce przewijania, na telefonie odczuwalny. Rozmycie wchodzi
     dopiero razem z tłem. */
  transition:
    background 380ms cubic-bezier(.22, .61, .36, 1),
    border-color 380ms cubic-bezier(.22, .61, .36, 1),
    box-shadow 380ms cubic-bezier(.22, .61, .36, 1);
}
.nav-shell--mp.is-scrolled {
  background: rgba(9, 6, 15, 0.94);
  border-bottom-color: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(24px) saturate(165%);
  -webkit-backdrop-filter: blur(24px) saturate(165%);
  box-shadow: 0 22px 45px -26px rgba(0, 0, 0, 0.95);
}
/* Sygnaturowy detal: kreska w gradiencie marki rozjeżdża się od środka na całą
   szerokość dokładnie w momencie, gdy pasek dostaje tło. Jeden akcent, nic
   więcej — reszta nagłówka zostaje spokojna. */
.nav-shell--mp::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--fuchsia), transparent);
  opacity: 0;
  transform: scaleX(.2);
  transition: opacity 380ms cubic-bezier(.22, .61, .36, 1), transform 520ms cubic-bezier(.22, .61, .36, 1);
  pointer-events: none;
}
.nav-shell--mp.is-scrolled::after {
  opacity: .55;
  transform: scaleX(1);
}
/* Przeglądarki bez backdrop-filter (starsze Firefoksy z wyłączoną flagą)
   dostają pełne krycie po przewinięciu, żeby nigdy nie było prześwitów.
   U góry nadal przezroczysty — tam pod paskiem jest tło strony, nie produkty. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .nav-shell--mp.is-scrolled { background: rgb(11, 8, 18); }
}
@media (prefers-reduced-motion: reduce) {
  .nav-shell--mp,
  .nav-shell--mp::after { transition-duration: 1ms; }
  .nav-shell--mp::after { transform: none; }
}

/* Panel filtrów przykleja się pod nagłówkiem i przy przewijaniu ma pod sobą
   zdjęcia produktów — szkło z 4% bieli zamieniało się wtedy w kolorową plamę. */
.mp-filter-panel {
  background: linear-gradient(180deg, rgba(24, 18, 38, 0.97), rgba(16, 11, 28, 0.97));
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* ---- Pasek kategorii pod headerem ---- */
.mp-catbar {
  border-top: 1px solid rgba(255, 255, 255, .06);
}
.mp-catlink {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 2px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dim);
  transition: color .2s ease;
  white-space: nowrap;
}
.mp-catlink:hover, .mp-catlink[aria-expanded="true"] { color: #fff; }
.mp-catlink::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 6px;
  height: 2px;
  border-radius: 2px;
  background: var(--gradient-brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.mp-catlink:hover::after, .mp-catlink[aria-expanded="true"]::after { transform: scaleX(1); }

/* ---- Mega menu ----
   Widoczność steruje atrybut `data-open` z Alpine, a NIE x-show z
   x-transition: przy szybkim przejeździe kursorem po pozycjach paska Alpine
   przerywał przejście wychodzące i zostawiał panel rozłożony z `opacity: 1`,
   więc na ekranie zostawało menu poprzedniej kategorii (czasem dwa naraz), a
   po odjechaniu kursorem i przewinięciu strony menu wisiało dalej. Reguła CSS
   nie ma stanu, który mógłby się zaciąć.
   `visibility: hidden` (nie `display: none`) pozwala animować zniknięcie, a
   opóźniona zmiana visibility trzyma panel widocznym do końca zanikania.
   `pointer-events: none` wypisuje zamknięty panel spod kursora — inaczej
   niewidoczny panel łapał hover i sam się otwierał. */
.mp-mega {
  position: absolute;
  left: 0; right: 0;
  top: 100%;
  z-index: 50;
  padding-top: 8px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-8px);
  transition:
    opacity 180ms cubic-bezier(.22, .61, .36, 1),
    transform 180ms cubic-bezier(.22, .61, .36, 1),
    visibility 0s linear 180ms;
}
.mp-mega[data-open="true"] {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  transition:
    opacity 180ms cubic-bezier(.22, .61, .36, 1),
    transform 180ms cubic-bezier(.22, .61, .36, 1),
    visibility 0s;
}
@media (prefers-reduced-motion: reduce) {
  .mp-mega { transition: visibility 0s linear 1ms; transform: none; }
  .mp-mega[data-open="true"] { transition: visibility 0s; transform: none; }
}
.mp-mega-panel {
  border-radius: 1.5rem;
  border: 1px solid rgba(255, 255, 255, .12);
  background: linear-gradient(180deg, rgba(20, 15, 34, .995), rgba(14, 10, 26, .995));
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .8), 0 0 0 1px rgba(145, 99, 255, .08);
  backdrop-filter: blur(20px);
}
.mp-facet-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 10px;
  margin-left: -10px;
  border-radius: 10px;
  font-size: 14px;
  color: var(--text-dim);
  transition: background .15s ease, color .15s ease;
}
.mp-facet-link:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.mp-facet-link[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.mp-facet-count {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-faint);
}

/* ---- Hero: sidebar kategorii (Allegro-style) ---- */
.mp-sidebar {
  position: relative;
  z-index: 30; /* flyout musi być NAD karuzelą (późniejsze rodzeństwo z własnym kontekstem) */
  border-radius: 1.5rem;
  border: 1px solid rgba(255, 255, 255, .1);
  background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .02));
  backdrop-filter: blur(14px);
}
.mp-sidebar-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 16px;
  text-align: left;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  transition: background .15s ease;
  border-radius: 12px;
}
.mp-sidebar-item:hover, .mp-sidebar-item.is-active { background: rgba(145, 99, 255, .12); }
.mp-sidebar-item .mp-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--violet-300);
  flex-shrink: 0;
}
/* Widoczność na `data-open`, dokładnie jak .mp-mega — i z tego samego powodu:
   x-show z x-transition zostawiał tu przy szybkim przejeździe kursorem trzy
   panele widoczne naraz. */
.mp-flyout {
  position: absolute;
  top: 0;
  left: calc(100% + 10px);
  width: 640px;
  min-height: 100%;
  z-index: 40;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-6px);
  transition:
    opacity 150ms cubic-bezier(.22, .61, .36, 1),
    transform 150ms cubic-bezier(.22, .61, .36, 1),
    visibility 0s linear 150ms;
}
.mp-flyout[data-open="true"] {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0);
  transition:
    opacity 150ms cubic-bezier(.22, .61, .36, 1),
    transform 150ms cubic-bezier(.22, .61, .36, 1),
    visibility 0s;
}
@media (prefers-reduced-motion: reduce) {
  .mp-flyout { transition: visibility 0s linear 1ms; transform: none; }
  .mp-flyout[data-open="true"] { transition: visibility 0s; transform: none; }
}

/* ---- Szerokość układu marketplace ----
   Wszystkie sekcje sklepu siedzą w `max-w-7xl`, czyli 1280 px. Dla marketplace'u
   to za wąsko: rzędy produktów mieszczą przy tej szerokości cztery karty i pas
   pustego tła po bokach na monitorze 1600+. Podniesienie samych rzędów
   rozjechałoby je z hero, kafelkami i sekcjami z panelu, więc podnosimy próg
   RAZ, dla całej strony, przez klasę na <body>.
   Reguła świadomie bije utility Tailwinda (specyficzność 0,2,0 kontra 0,1,0) i
   jest zamknięta w `.mp-wide`, której dotychczasowy sklep nie ma — bez klasy na
   <body> nic z tego nie działa. Poniżej 1400 px nie zmienia się nic, bo
   `max-w-7xl` i tak nie jest wtedy ograniczeniem. */
.mp-wide .max-w-7xl {
  max-width: 1560px;
}

/* Kotwice w obrębie strony muszą lądować pod przyklejonym nagłówkiem, a ten ma
   w marketplace dwa rzędy (124 px), nie jeden. Wartość 80 px z dotychczasowego
   układu chowała nagłówek sekcji za paskiem. */
.mp-wide main [id] {
  scroll-margin-top: 140px;
}

/* ---- Hero: karuzela ---- */
/* Przycisk pauzy autoplayu (WCAG 2.2.2). Celowo obok licznika slajdów, nie
   schowany pod hoverem — na dotyku hovera nie ma. */
.mp-carousel-pause {
  display: inline-flex;
  height: 28px;
  width: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(9, 6, 15, .6);
  color: #e4e4e7;
  transition: background .2s ease, border-color .2s ease;
}
.mp-carousel-pause:hover { background: rgba(9, 6, 15, .85); border-color: rgba(255, 255, 255, .3); }
.mp-carousel-pause:focus-visible { outline: 2px solid var(--violet-300); outline-offset: 2px; }

.mp-carousel {
  position: relative;
  border-radius: 1.5rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .1);
}
.mp-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.mp-track::-webkit-scrollbar { display: none; }
.mp-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  position: relative;
  min-height: 380px;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: center;
  /* Dolny zapas na pasek z kropkami i licznikiem (absolute bottom-5),
     boczny na strzałki nawigacji (zajmują 13-53 px od krawędzi) — przy
     40 px tekst slajdu wchodził pod lewą strzałkę i robił się nieczytelny.
     Na telefonie strzałki są ukryte, więc tam zostaje ciaśniejszy padding
     z media query niżej. */
  padding: 36px 64px 68px;
  gap: 24px;
  isolation: isolate;
}
@media (max-width: 640px) {
  .mp-slide { grid-template-columns: 1fr; min-height: 300px; padding: 24px 24px 64px; }
  .mp-slide .mp-slide-art { display: none; }
}
/* --- Hero, koncepcja H1 „Kadr na urządzenie" (makiety hero) ---
   Zdjęcia slajdów to bannery hurtowe z WYPALONĄ obcą typografią po lewej
   („VHILL", „6in1", „HEXA 300K", „STAGBAR 180K MIX"). Wcześniej szły w
   całości, więc nasz nagłówek i napis na zdjęciu mówiły to samo dwa razy.
   Teraz kadrujemy: pionowa ramka + przybliżenie trzymające się prawej
   krawędzi, gdzie na wszystkich czterech banerach stoi sam produkt.
   Wartości per slajd wstrzykiwane inline z marketplace-config.php. */
.mp-slide-art {
  position: relative;
  width: 100%;
  max-width: 300px;
  margin-inline: auto;
  aspect-ratio: .78;
  max-height: 340px;
  overflow: hidden;
  border-radius: 1.25rem;
  isolation: isolate;
}
/* Poświata pod produktem — światło wydaje się pochodzić od urządzenia,
   zamiast być czwartą identyczną plamą radialną w tle slajdu. */
.mp-slide-art::before {
  content: "";
  position: absolute;
  inset: -14% -10%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(145, 99, 255, .42), transparent 76%);
  filter: blur(8px);
}
.mp-slide-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--mp-crop-x, 50%) var(--mp-crop-y, 50%);
  transform: scale(var(--mp-crop-scale, 1));
  transform-origin: var(--mp-crop-x, 50%) var(--mp-crop-y, 50%);
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .55));
}
/* Winieta i rant, żeby kadr nie czytał się jak przypadkowy wycinek. */
.mp-slide-art::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .09), inset 0 -60px 70px -50px rgba(0, 0, 0, .8);
}

/* Trzy konkrety między opisem a przyciskiem. */
.mp-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}
.mp-spec {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  padding: 7px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, .035);
  font-size: 12px;
  color: var(--text-dim);
}
.mp-spec b {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text);
}
.mp-slide-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
}
.mp-slide-sub {
  font-size: 12.5px;
  color: var(--text-dim);
}
.mp-dots { display: flex; gap: 6px; }
.mp-dot {
  width: 22px; height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, .25);
  transition: background .2s ease, width .2s ease;
}
.mp-dot.is-active { background: #fff; width: 34px; }
.mp-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px; height: 40px;
  border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255, 255, 255, .15);
  background: rgba(9, 6, 15, .55);
  color: #fff;
  backdrop-filter: blur(8px);
  transition: background .15s ease, transform .15s ease;
  z-index: 2;
}
.mp-arrow:hover { background: rgba(145, 99, 255, .5); }
.mp-arrow.prev { left: 12px; }
.mp-arrow.next { right: 12px; }
/* Na telefonie strzałki lądowały na tekście slajdu (zmierzone przy 390 px:
   strzałki 29-69 i 235-275, tekst 41-263). Zostają kropki i przesuwanie
   palcem — scroll-snap na .mp-track robi resztę. */
@media (max-width: 640px) {
  .mp-arrow { display: none; }
}

/* ---- Hero: kafelki po prawej ---- */
.mp-tile {
  border-radius: 1.5rem;
  border: 1px solid rgba(255, 255, 255, .1);
  background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .02));
  padding: 18px 20px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  transition: border-color .2s ease, transform .2s ease;
}
.mp-tile:hover { border-color: rgba(255, 255, 255, .22); transform: translateY(-2px); }

/* ---- Poziomy rząd produktów (snap) ---- */
.mp-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(240px, 1fr);
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding: 4px 4px 16px;
  scrollbar-width: thin;
  scrollbar-color: rgba(145, 99, 255, .4) transparent;
}
.mp-row > * { scroll-snap-align: start; }
@media (min-width: 1024px) {
  .mp-row { grid-auto-columns: calc((100% - 60px) / 4); }
}

/* ---- Kafelek kategorii ---- */
.mp-cat-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 250px;
}
.mp-cat-collage {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.mp-cat-collage img {
  aspect-ratio: 1;
  width: 100%;
  object-fit: cover;
  border-radius: 12px;
  background: rgba(255, 255, 255, .04);
}
.mp-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .1);
  background: rgba(255, 255, 255, .04);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-dim);
  transition: all .15s ease;
  white-space: nowrap;
}
.mp-chip:hover { border-color: rgba(255, 255, 255, .3); color: #fff; }
.mp-chip.is-active { background: var(--accent); border-color: var(--accent); color: #09060f; font-weight: 600; }

/* ---- Widok kategorii: filtry ---- */
.mp-filter-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  font-size: 14px;
  color: var(--text-dim);
  cursor: pointer;
}
.mp-filter-opt:hover { color: #fff; }
.mp-filter-opt input { accent-color: var(--accent); width: 16px; height: 16px; }
.mp-filter-opt[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }

/* ---- Szuflada mobilna ---- */
.mp-drawer {
  position: fixed;
  inset: 0;
  z-index: 70;
}
/* Otwarta szuflada blokuje przewijanie strony pod spodem — bez tego palec
   przewijał treść za nakładką zamiast listy kategorii. */
body:has(.mp-drawer:not([style*="display: none"])) {
  overflow: hidden;
}
.mp-drawer-panel {
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: min(86vw, 360px);
  overflow-y: auto;
  background: var(--bg-elevated);
  border-right: 1px solid rgba(255, 255, 255, .1);
  padding: 20px;
}

@media (prefers-reduced-motion: reduce) {
  .mp-track { scroll-behavior: auto; }
  .mp-tile, .mp-catlink::after { transition: none; }
}

/* ---- Widok kategorii: przycisk zwijania filtrów (poniżej lg) ----
   style.css ładuje się PO tailwind.css, więc reguła na .mp-filter-toggle o tej
   samej specyficzności bije zarówno `lg:hidden`, jak i `[x-cloak]`. Z
   `display: flex` w regule bazowej przycisk zostawał na desktopie i zabierał
   240-pikselową kolumnę sidebara filtrom. Dlatego display jest tu ustawiany
   wyłącznie poniżej lg i tylko wtedy, gdy Alpine już zdjął x-cloak. */
.mp-filter-toggle {
  display: none;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, .1);
  background: rgba(24, 18, 38, .9);
  font-size: 14px;
  font-weight: 600;
  color: #f4f4f5;
}
@media (max-width: 1023px) {
  .mp-filter-toggle:not([x-cloak]) { display: flex; }
}
.mp-filter-toggle:hover { border-color: rgba(255, 255, 255, .18); }
.mp-filter-toggle-count {
  display: inline-flex;
  min-width: 20px;
  height: 20px;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--accent);
  font-size: 11px;
  font-weight: 700;
  color: #0b0812;
}

/* ---- Siatka produktów w układzie marketplace: dwie kolumny na telefonie ----
   Jedna kolumna dawała ~590 px na kartę, czyli 58 000 px strony na 97
   produktów w kategorii — jeden produkt na ekran. Dwie kolumny skracają to o
   ponad połowę, ale karta ma wtedy ~165 px, więc domyślne paddingi i etykieta
   „Dodaj do koszyka” nie mieszczą się w kolumnie i wychodziły poza kartę.
   Reguły są zamknięte w `.mp-grid`, więc stary katalog (jedna kolumna, karty
   ~358 px) zostaje bez zmian. */
/* Ta sama optymalizacja, co w .catalog-grid: przeglądarka pomija układ i
   malowanie kart poza ekranem. Bez tego kategoria z 97 kartami (każda z
   cieniem i rozmyciem) liczyła cały układ na starcie. `contain-intrinsic-size`
   trzyma wysokość zastępczą, więc pasek przewijania nie skacze. */
.mp-grid > * {
  content-visibility: auto;
  contain-intrinsic-size: auto 420px;
}

@media (max-width: 639px) {
  .mp-grid > * { contain-intrinsic-size: auto 320px; }
  .mp-grid .product-card-body { padding: 14px; }
  .mp-grid .product-card-body > .eyebrow { font-size: 10px; }
  .mp-grid .product-card-body h3 { font-size: 15px; }
  .mp-grid .product-card-body .btn-accent {
    width: 100%;
    padding-left: 10px;
    padding-right: 10px;
    font-size: 12px;
  }
  .mp-grid .card-wishlist {
    right: 8px;
    top: 8px;
    height: 34px;
    width: 34px;
  }
  /* Snapshot SSR ma własny markup (bez .product-card) — ten sam padding, żeby
     podmiana na wersję interaktywną nie przesuwała układu. */
  .mp-grid > article > .p-5 { padding: 14px; }
}

/* ---- Kafelki kategorii: kolaż na rozmytej okładce (wariant B4) ----
   Wybrany przez właściciela z makiety kategorii.
   Zdjęcie kategorii schodzi w tło jako mocno rozmyta poświata, a na niej leżą
   trzy ostre miniatury realnych produktów, ułożone jak rozłożona talia.
   Powód takiego rozwiązania kontrastu: zdjęcia produktów w tym sklepie są
   jasne i kolorowe (owoce, lód, białe tła studyjne), więc tekst położony
   wprost na kadrze bywał nieczytelny. Tu tekst nigdy nie leży na zdjęciu —
   leży na przyciemnionej poświacie plus gradiencie, co daje czytelność
   niezależnie od tego, jak jasny jest konkretny produkt. */
.mp-cover {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 470px;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  isolation: isolate;
  transition: border-color .35s var(--ease), box-shadow .45s var(--ease);
}
.mp-cover:hover { border-color: rgba(196, 174, 255, .4); box-shadow: 0 24px 60px -24px rgba(124, 58, 237, .55); }
.mp-cover:focus-visible { outline: 3px solid var(--violet-300); outline-offset: 3px; }

/* Tło: to samo zdjęcie, rozmyte i przyciemnione — daje kategorii jej własny
   kolor bez potrzeby osobnego pliku graficznego na każdą z nich. */
.mp-cover-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(30px) brightness(.32) saturate(1.5);
  transform: scale(1.25);
  transition: transform .8s var(--ease);
}
.mp-cover:hover .mp-cover-bg { transform: scale(1.32); }
.mp-cover-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(90% 60% at 50% 12%, rgba(145, 99, 255, .22) 0%, rgba(9, 6, 15, 0) 70%),
    linear-gradient(180deg, rgba(9, 6, 15, .35) 0%, rgba(9, 6, 15, .1) 40%, rgba(9, 6, 15, .8) 100%);
}

/* Talia trzech miniatur. Środkowa na wierzchu, boczne odchylone; hover je
   rozsuwa. Wysokość jest stała, więc siatka nie skacze przy ładowaniu zdjęć. */
.mp-stage {
  position: relative;
  z-index: 2;
  height: 250px;
  margin: 30px 0 0;
}
.mp-stage-card {
  position: absolute;
  top: 18px;
  width: 40%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .22);
  background: #0b0812;
  box-shadow: 0 22px 44px -12px rgba(0, 0, 0, .75);
  transition: transform .55s var(--ease);
}
.mp-stage-card img { width: 100%; height: 100%; object-fit: cover; }
.mp-stage-card:nth-of-type(1) { left: 5%; transform: rotate(-8deg) translateY(14px); }
.mp-stage-card:nth-of-type(2) { left: 30%; top: 2px; z-index: 2; transform: rotate(0deg); }
.mp-stage-card:nth-of-type(3) { right: 5%; transform: rotate(8deg) translateY(14px); }
.mp-cover:hover .mp-stage-card:nth-of-type(1) { transform: rotate(-13deg) translateY(6px) translateX(-8px); }
.mp-cover:hover .mp-stage-card:nth-of-type(2) { transform: translateY(-8px); }
.mp-cover:hover .mp-stage-card:nth-of-type(3) { transform: rotate(13deg) translateY(6px) translateX(8px); }
/* Jedna albo dwie miniatury: wyśrodkuj zamiast zostawiać dziurę po prawej. */
.mp-stage[data-count="1"] .mp-stage-card:nth-of-type(1) { left: 30%; transform: none; }
.mp-stage[data-count="2"] .mp-stage-card:nth-of-type(1) { left: 14%; }
.mp-stage[data-count="2"] .mp-stage-card:nth-of-type(2) { left: 46%; }

.mp-cover-body {
  position: relative;
  z-index: 2;
  margin-top: auto;
  padding: 22px 24px 24px;
  text-align: center;
}
.mp-cover-count {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .06em;
  padding: 5px 11px;
  border-radius: 999px;
  color: #fff;
  background: rgba(9, 6, 15, .6);
  border: 1px solid rgba(255, 255, 255, .22);
  backdrop-filter: blur(14px) brightness(.5);
  -webkit-backdrop-filter: blur(14px) brightness(.5);
}
.mp-cover-count i { width: 5px; height: 5px; border-radius: 50%; background: var(--violet-300); font-style: normal; }
.mp-cover-name {
  font-family: var(--font-display);
  font-size: 1.65rem;
  margin: 14px 0 0;
  letter-spacing: -.025em;
  line-height: 1.06;
  color: #fff;
  text-shadow: 0 2px 20px rgba(9, 6, 15, .75);
}
.mp-cover-desc {
  margin: 8px auto 0;
  max-width: 32ch;
  min-height: 3.2em;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-dim);
}
.mp-cover-brands { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; margin-top: 16px; }
.mp-cover-brands span {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 5px 10px;
  border-radius: 8px;
  color: rgba(255, 255, 255, .8);
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .14);
}
.mp-cover-go {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--violet-300);
}
.mp-cover-go svg { transition: transform .3s var(--ease); }
.mp-cover:hover .mp-cover-go svg { transform: translateX(4px); }

@media (max-width: 620px) {
  .mp-cover { min-height: 430px; }
  .mp-stage { height: 210px; margin-top: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .mp-cover, .mp-cover-bg, .mp-stage-card, .mp-cover-go svg { transition: none; }
  .mp-cover:hover .mp-cover-bg { transform: scale(1.25); }
  .mp-cover:hover .mp-stage-card:nth-of-type(1) { transform: rotate(-8deg) translateY(14px); }
  .mp-cover:hover .mp-stage-card:nth-of-type(2) { transform: none; }
  .mp-cover:hover .mp-stage-card:nth-of-type(3) { transform: rotate(8deg) translateY(14px); }
}

/* ---------------------------------------------------------------------------
   HERO „WITRYNA" (wariant H4 z makiety hero)
   Kadrowanie --fx/--fy/--dim/--zoom przeniesione 1:1 z makiety. Te liczby były
   ręcznie dostrajane: kadr trzyma się prawej krawędzi banera (napisy hurtowni
   są na wszystkich czterech po lewej) i oddala się dokładnie tak daleko, jak
   się da, zanim wjadą „6in1" czy „STAGBAR 180K MIX". Nie zmieniać na oko.
   --------------------------------------------------------------------------- */
.hero-shell {
  display: grid;
  gap: 16px;
  grid-template-columns: 248px minmax(0, 1fr);
}

.hero-side {
  border: 1px solid var(--border);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.02);
  padding: 8px;
  /* Sidebar kończy się równo z kaflem wiodącym — inaczej zostaje pod nim
     pustka i sekcja czyta się jak niedokończona. */
  align-self: stretch;
  display: flex;
  flex-direction: column;
}
.hero-side-title {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-faint);
  padding: 12px 14px 8px;
  margin: 0;
}
.hero-side-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 13px;
  border-radius: 13px;
  transition: background .16s;
  flex: 1 1 auto;
}
.hero-side-item:hover { background: rgba(255, 255, 255, .05); }
.hero-side-ico {
  width: 30px; height: 30px;
  border-radius: 10px;
  display: grid; place-items: center;
  background: rgba(145, 99, 255, .14);
  color: var(--violet-300);
  flex: 0 0 auto;
}
.hero-side-ico svg { width: 15px; height: 15px; }
.hero-side-item b { display: block; font-size: 13.5px; font-weight: 600; letter-spacing: -.01em; }
.hero-side-item small { display: block; font-size: 11px; color: var(--text-faint); font-weight: 400; }
.hero-chev { margin-left: auto; color: var(--text-faint); display: flex; }

.hero-mosaic {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 12px;
  height: 500px;
}
.hero-cell {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: #000;
  display: flex;
  align-items: flex-end;
  isolation: isolate;
}
.hero-cell > i {
  position: absolute; inset: 0;
  background-image: var(--img);
  background-size: var(--zoom, 190%) auto;
  background-position: var(--fx) var(--fy);
  background-repeat: no-repeat;
  z-index: -2;
  filter: saturate(.88) brightness(var(--dim, .86));
  transition: transform .5s ease, filter .3s ease;
}
.hero-cell:hover > i { transform: scale(1.04); filter: saturate(1) brightness(1); }
/* Podpis siedzi na twardym, nieprzezroczystym cokole — kontrast nie zależy
   od tego, jak jasny jest kadr nad nim. To on wyznacza też, jak daleko wolno
   odsunąć kadr, zanim wrócą napisy hurtowni. */
.hero-cell::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 88%; z-index: -1;
  background: linear-gradient(to top, #09060f 0%, #09060f 26%, rgba(9,6,15,.93) 48%, rgba(9,6,15,.62) 72%, transparent 100%);
}
.hero-cell-txt { position: relative; padding: 16px 16px 15px; width: 100%; }
.hero-cell-txt .eyebrow { font-size: 10px; letter-spacing: .14em; }
.hero-cell-txt b {
  display: block; font-family: var(--font-display); font-size: 19px; font-weight: 700;
  letter-spacing: -.02em; line-height: 1.15; margin: 7px 0 5px; color: #fafafa;
}
.hero-cell-txt small { display: block; font-size: 12px; color: var(--text-dim); line-height: 1.45; }
.hero-go {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 11px;
  font-size: 12.5px; font-weight: 600; color: var(--violet-300);
}
.hero-go svg { width: 13px; height: 13px; }

.hero-cell.lead { grid-row: span 2; }
/* span w klasie, nie w atrybucie style — inline nie da się nadpisać media
   query i na telefonie siatka tworzyła sobie drugą kolumnę. */
.hero-cell.wide { grid-column: span 2; }
.hero-cell.lead .hero-cell-txt { padding: 22px; }
.hero-cell.lead .hero-cell-txt b { font-size: 28px; }
.hero-cell.lead .hero-cell-txt small { font-size: 13.5px; max-width: 360px; }

.hero-cell.i1 { --img: url("https://admin.stagbar.pl/uploads/products/4f9705ef5fb211291d1124a0d2af192f.webp"); --fx: 86%; --fy: 40%; --dim: .76; }
.hero-cell.i2 { --img: url("/assets/img/hero-promo.webp"); --fx: 60%; --fy: 92%; --dim: .94; }
.hero-cell.i3 { --img: url("https://admin.stagbar.pl/uploads/products/bbf61a513f9baf1ab1c2fdced6f78799.webp"); --fx: 90%; --fy: 26%; --dim: 1.14; }
.hero-cell.i4 { --img: url("https://admin.stagbar.pl/uploads/products/d1fce5919616fc55d2f9be13dee55852.webp"); --fx: 86%; --fy: 36%; --dim: .96; }
/* Zoomy przeskalowane o 1,156 wzgledem makiety (makiety hero: 150/88/200/152%).
   Powod: background-size liczy sie od szerokosci KAFLA, a kafle na produkcji sa
   wezsze niz w makiecie (mozaika 706 px wobec 1097 px przy 1440 px viewportu,
   bo storefront ma max-w-7xl i wlasny padding). W wezszym kaflu ten sam procent
   daje mniejszy obraz, wiec w kadr wracala typografia hurtowni - na kaflu
   wiodacym "30K PUFFS / MESH COIL X6", a na szerokim ucieta "STAGBAR".
   Przeskalowanie odtwarza DOKLADNIE ten sam wycinek, ktory byl dostrojony
   w makiecie. Zmiana szerokosci kontenera hero wymaga przeliczenia na nowo. */
.hero-cell.lead.i1 { --zoom: 173%; }
.hero-cell.i2 { --zoom: 102%; }
.hero-cell.i3 { --zoom: 231%; }
.hero-cell.i4 { --zoom: 176%; }

@media (max-width: 1180px) {
  .hero-shell { grid-template-columns: minmax(0, 1fr); }
  .hero-side { display: none; }
}
@media (max-width: 900px) {
  .hero-mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: auto; height: auto; }
  .hero-cell { min-height: 200px; }
  .hero-cell.lead { grid-column: span 2; grid-row: auto; min-height: 290px; }
  .hero-cell.wide { grid-column: span 2; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-cell > i, .hero-cell:hover > i { transition: none; transform: none; }
}

/* Panel kategorii — separator i pozycja bez linku ("wkrótce"). */
.hero-side-sep { height: 1px; background: var(--border); margin: 8px 12px; }
.hero-side-item.is-soon { opacity: .55; cursor: default; }
.hero-side-item.is-soon:hover { background: none; }

/* Rząd trzech kafli informacyjnych pod mozaiką (t-tiles z makiety). */
.hero-tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.hero-tile {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 15px 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255, 255, 255, .02);
  transition: background .16s, border-color .16s;
}
.hero-tile:hover { background: rgba(255, 255, 255, .04); border-color: var(--border-strong); }
.hero-tile-ico {
  width: 34px; height: 34px; flex: 0 0 auto;
  border-radius: 11px;
  display: grid; place-items: center;
  background: rgba(145, 99, 255, .14);
  color: var(--violet-300);
}
.hero-tile-ico svg { width: 17px; height: 17px; }
.hero-tile-ico--star { background: rgba(251, 191, 36, .12); color: #fbbf24; font-size: 17px; }
.hero-tile b { display: block; font-size: 13.5px; font-weight: 600; letter-spacing: -.01em; color: #fafafa; }
.hero-tile small { display: block; font-size: 11.5px; color: var(--text-faint); line-height: 1.5; margin-top: 2px; }
.hero-tile .hero-ok { color: #34d399; }
.hero-mono { font-family: var(--font-mono); font-size: .95em; }

/* Pasek faktów na samym dole hero (t-factbar z makiety). */
.hero-factbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--text-faint);
}
.hero-factbar span { display: inline-flex; align-items: center; gap: 7px; }
.hero-factbar svg { width: 15px; height: 15px; color: var(--violet-300); flex: 0 0 auto; }
.hero-factbar b { color: var(--text-dim); font-weight: 600; }

@media (max-width: 900px) {
  .hero-tiles { grid-template-columns: minmax(0, 1fr); }
}

/* Promocje w panelu kategorii — rozowy akcent, tak jak w makiecie. */
.hero-side-item.is-accent .hero-side-ico { background: rgba(232, 121, 249, .14); color: #e879f9; }
.hero-side-item.is-accent b { color: #f0abfc; }

/* ---------------------------------------------------------------------------
   MOZAIKA HERO (wariant H4 „Witryna") — zastąpiła karuzelę 2026-09-09.
   Cztery komunikaty widoczne naraz zamiast przewijanych po kolei.
   Kadrowanie obrazu jest tą samą techniką co w .mp-slide-art (object-position
   + transform: scale ze zmiennych --mp-crop-*), więc ujęcia dostrajane pod
   karuzelę działają tu bez przeliczania.
   --------------------------------------------------------------------------- */
.mp-mosaic {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 12px;
  height: 500px;
}
.mp-cell {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg, 1.25rem);
  border: 1px solid rgba(255, 255, 255, .1);
  background: #000;
  display: flex;
  align-items: flex-end;
  isolation: isolate;
}
.mp-cell.is-lead { grid-row: span 2; }
.mp-cell.is-wide { grid-column: span 2; }

.mp-cell-art { position: absolute; inset: 0; z-index: -3; overflow: hidden; }
.mp-cell-art img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: var(--mp-crop-x, 50%) var(--mp-crop-y, 50%);
  transform: scale(var(--mp-crop-scale, 1));
  transform-origin: var(--mp-crop-x, 50%) var(--mp-crop-y, 50%);
  transition: transform .5s ease;
}
.mp-cell:hover .mp-cell-art img { transform: scale(calc(var(--mp-crop-scale, 1) * 1.04)); }
.mp-cell-tone { position: absolute; inset: 0; z-index: -2; opacity: .55; }

/* Nieprzezroczysty cokół pod podpisem — kontrast nie zależy od tego, jak
   jasny jest kadr nad nim. */
.mp-cell::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 88%; z-index: -1;
  background: linear-gradient(to top, #09060f 0%, #09060f 26%, rgba(9,6,15,.93) 48%, rgba(9,6,15,.62) 72%, transparent 100%);
}
.mp-cell-txt { position: relative; padding: 16px 16px 15px; width: 100%; }
.mp-cell-eyebrow {
  display: block; font-family: var(--font-mono); font-size: 10px;
  letter-spacing: .14em; text-transform: uppercase;
  /* Bylo `--text-faint` (#786e91) = kontrast 4,19:1 na cokole, ponizej progu
     WCAG AA 4,5:1 dla tekstu mniejszego niz 18,66 px. I to w wariancie
     NAJLEPSZYM — nadpis lezy wysoko w kaflu, gdzie gradient ma alfe ~0,6,
     wiec realnie przeswituje przez niego zdjecie ("FLAGOWIEC STAGBAR" na
     jasnym urzadzeniu byl praktycznie nieczytelny). `--text-dim` daje 9,3:1. */
  color: var(--text-dim);
}
.mp-cell-txt b {
  display: block; font-family: var(--font-display); font-size: 19px; font-weight: 700;
  letter-spacing: -.02em; line-height: 1.15; margin: 7px 0 5px; color: #fafafa;
}
.mp-cell-txt small { display: block; font-size: 12px; color: var(--text-dim); line-height: 1.45; }
.mp-cell-go {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 11px;
  font-size: 12.5px; font-weight: 600; color: var(--violet-300);
}
.mp-cell-go svg { width: 13px; height: 13px; }

.mp-cell.is-lead .mp-cell-txt { padding: 22px; }
.mp-cell.is-lead .mp-cell-txt b { font-size: 28px; }
.mp-cell.is-lead .mp-cell-txt small { font-size: 13.5px; max-width: 360px; }

@media (max-width: 900px) {
  .mp-mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: auto; height: auto; }
  .mp-cell { min-height: 200px; }
  .mp-cell.is-lead { grid-column: span 2; grid-row: auto; min-height: 290px; }
  .mp-cell.is-wide { grid-column: span 2; }
}
@media (prefers-reduced-motion: reduce) {
  .mp-cell-art img, .mp-cell:hover .mp-cell-art img { transition: none; }
}

/* Opis w kaflu przycinany do stalej liczby linii. Bez tego dluzszy tekst
   z marketplace-config.php rozpycha cokol az do gory kafla i zaslania
   urzadzenie — dokladnie to stalo sie ze slajdem Stagbara (148 znakow).
   Klamrowanie w CSS, a nie skracanie w PHP: pelny tekst zostaje w HTML dla
   wyszukiwarek i czytnikow, a wlasciciel moze wpisac w konfigu co chce,
   nie psujac ukladu. */
.mp-cell-txt small {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}
.mp-cell.is-lead .mp-cell-txt small,
.mp-cell.is-wide .mp-cell-txt small { -webkit-line-clamp: 3; line-clamp: 3; }

/* Picker pakietu mix-and-match — pelny sklad smakowy zamiast uciętej linii.
   (pages/product.php, sekcja "Mix-and-match bundle picker")

   Nazwy wariantow w pakietach opisuja po 4-6 smakow naraz i maja 94-136
   znakow. W jednej linii z `truncate` klient na 390 px widzial ~29% tekstu,
   a wszystkie dziesiec pozycji puli konczylo sie tym samym urwanym slowem —
   nie dalo sie ich od siebie odroznic. Teraz sklad rozbija
   assets/js/bundle-flavors.js i kazdy smak dostaje wlasny chip; nic nie jest
   skracane ani numerowane.

   Pisane recznie, a nie klasami Tailwinda: tailwind.css jest w tym sklepie
   PREKOMPILOWANY (patrz partials/head.php), wiec kazda nowa klasa utility
   milczaco nie zadzialalaby bez przebudowy. Kolory ida ze zmiennych z gory
   tego pliku, wiec podazaja za motywem. */
.bundle-flavor-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 1rem;
  padding: 12px 14px;
}

/* Od 640 px stepper wraca obok skladu — na wezszym ekranie zabralby chipom
   ok. 110 px szerokosci, czyli dokladnie to, czego brakowalo. */
@media (min-width: 640px) {
  .bundle-flavor-row {
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 16px;
  }
}

/* Kolumna z odstepem, a nie marginesy na dzieciach: miedzy etykieta,
   chipami i stanem stoja w DOM elementy <template x-if>, wiec selektor
   sasiada (`+`) nigdy by nie trafil. Ukryty <template> i etykieta schowana
   przez x-show maja display:none, wiec nie zostawiaja pustego odstepu. */
.bundle-flavor-body {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}

.bundle-flavor-label {
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.3;
  color: #f4f4f5;
  overflow-wrap: anywhere;
}

/* Jednosmakowy wariant (np. "Lemon Lime" w pakiecie 10x Vhill) zostaje zwykla
   linia — chip wokol calej nazwy niczego by tam nie porzadkowal. */
.bundle-flavor-single {
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.35;
  color: #f4f4f5;
  overflow-wrap: anywhere;
}

.bundle-flavor-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bundle-flavor-chip {
  max-width: 100%;
  padding: 3px 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-dim);
  font-size: 0.72rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.bundle-flavor-stock {
  font-size: 0.75rem;
  line-height: 1.3;
  color: #71717a;
}

.bundle-flavor-stepper {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex: 0 0 auto;
}

@media (min-width: 640px) {
  .bundle-flavor-stepper {
    justify-self: end;
    padding-top: 2px;
  }
}

/* ---------------------------------------------------------------------------
   Potwierdzenie odbioru przy pobraniu (components/cod-pickup-modal.php)
   ---------------------------------------------------------------------------
   Struktura okna (wrap / scrim / panel / gate / secondary) jest wspólna
   z blik-trust-modal.php — te klasy zostają. Własne są tylko te, które
   decydują o treści, bo to inny rodzaj komunikatu.

   PIERWSZA WERSJA BYŁA ZŁA I DLACZEGO:
   miała trzy punkty z zielonymi ptaszkami w szarej liście, dokładnie tak jak
   lista zalet przy BLIK-u. Ptaszek znaczy „to dostajesz" — a tu chodzi o coś
   odwrotnego: o zobowiązanie i jego konsekwencję. Do tego wszystkie trzy
   punkty miały tę samą wagę, więc „dostaniesz powiadomienie" krzyczało równie
   głośno co „blokada konta", a całość była ścianą tekstu w momencie, w którym
   człowiek chce kliknąć „kup".

   Teraz jest jedno zdanie wprowadzenia i JEDEN wyróżniony blok z konsekwencją.
   Cała śmiałość idzie w to jedno miejsce, reszta ma być cicha. */

.cod-ack-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--text);
  text-wrap: balance;
}

.cod-ack-lede {
  margin: 0.7rem 0 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-dim);
}

/* Jedyny mocny element okna. Czerwień, nie fiolet marki: to jest ostrzeżenie
   o konsekwencji, a nie kolejna zaleta sklepu — użycie koloru marki
   zrównałoby je wizualnie z resztą i przestałoby cokolwiek znaczyć. */
.cod-ack-warn {
  margin: 1.15rem 0 0;
  padding: 0.95rem 1.05rem;
  border-radius: var(--radius);
  border: 1px solid color-mix(in srgb, var(--danger) 32%, transparent);
  background: linear-gradient(
    140deg,
    color-mix(in srgb, var(--danger) 12%, transparent),
    color-mix(in srgb, var(--danger) 4%, transparent)
  );
  font-size: 0.9rem;
  line-height: 1.55;
  color: color-mix(in srgb, var(--danger) 30%, var(--text));
}

.cod-ack-warn b {
  color: var(--text);
  font-weight: 700;
}

/* Wyjście awaryjne. Celowo najcichsze w oknie, ale NIE ukryte: człowiek,
   który ma realną alternatywę, częściej z niej korzysta, niż po prostu nie
   odbiera paczki — a to jest dokładnie ten koszt, który chcemy ograniczyć. */
.cod-ack-note {
  margin: 0.95rem 0 0;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--text-faint);
}

/* ---------------------------------------------------------------------------
   Zamiennik wyprzedanego smaku pakietu (components/cart-item-row.php,
   Cart.reconcileLines() -> line.bundleFix). Wiersze zamienników to te same
   .bundle-flavor-row, co picker na stronie produktu — tu tylko obudowa,
   status wiersza i przycisk „Dodaj". Ręcznie, bo tailwind.css jest
   prekompilowany.
   --------------------------------------------------------------------------- */
.bundle-fix-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  margin-top: 8px;
  font-size: 0.8125rem;
  line-height: 1.3;
  color: #fecdd3;
}

.bundle-fix-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(244, 63, 94, 0.16);
  border: 1px solid rgba(251, 113, 133, 0.35);
  color: #fda4af;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.bundle-fix-ok {
  margin-top: 6px;
  font-size: 0.8125rem;
  line-height: 1.35;
  color: var(--text-faint);
}

.bundle-fix {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.bundle-fix-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}

.bundle-fix-hint {
  margin-top: 4px;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--text-dim);
}

.bundle-fix-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.bundle-fix-low {
  color: #fcd34d;
}

/* Wiersz zamiennika: nazwa edycji + stan po lewej, „Dodaj" po prawej,
   pod spodem smaki na całą szerokość karty (te same chipy co na stronie
   produktu). Mały, spokojny przycisk — trzy pełnoszerokie gradienty jeden
   pod drugim krzyczały głośniej niż „Przejdź do zamówienia". */
.bundle-fix-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 1rem;
  padding: 12px 12px 12px 14px;
}

.bundle-fix-row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.bundle-fix-row-head .bundle-flavor-stock {
  margin-top: 2px;
}

.bundle-fix-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(171, 139, 255, 0.45);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--violet-300);
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.bundle-fix-add svg {
  width: 15px;
  height: 15px;
}

.bundle-fix-add:hover {
  background: var(--violet-500);
  color: #fff;
}

.bundle-fix-add:active {
  transform: scale(0.96);
}

.bundle-fix-add:focus-visible,
.bundle-fix-more:focus-visible {
  outline: 2px solid var(--violet-400);
  outline-offset: 2px;
}

.bundle-fix-more {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 10px;
  border: 1px dashed var(--border-strong);
  border-radius: 1rem;
  background: transparent;
  color: var(--text-dim);
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
}

.bundle-fix-more:hover {
  color: var(--text);
  border-color: var(--violet-400);
}

@media (prefers-reduced-motion: reduce) {
  .bundle-fix-add {
    transition: none;
  }
}

/* ---------------------------------------------------------------------------
   Quick Add — wspólny panel dobierania (components/quick-add-sheet.php,
   quickAddSheet() w zestawy.js). Mobile: bottom sheet do 85dvh z bezpieczną
   strefą na dole; od 768 px szuflada z prawej. Ręcznie, bo tailwind.css
   jest prekompilowany. z-index 91: nad banerem cookies (90), pod toastami
   (92) i bramką wieku (100).
   --------------------------------------------------------------------------- */
.qa-lock {
  overflow: hidden;
}

.qa-scrim {
  position: fixed;
  inset: 0;
  z-index: 91;
  background: rgba(4, 2, 12, 0.72);
}

.qa-panel {
  position: fixed;
  z-index: 91;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  max-height: 85vh;
  max-height: 85dvh;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border-strong);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  box-shadow: var(--shadow-lg);
  padding: 18px 16px calc(env(safe-area-inset-bottom, 0px) + 1rem);
  color: var(--text);
}

.qa-anim {
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}

.qa-panel-off {
  transform: translateY(100%);
}

.qa-panel-on {
  transform: translateY(0);
}

.qa-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.qa-head-text {
  min-width: 0;
}

.qa-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.25;
}

.qa-subtitle {
  margin-top: 4px;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--text-dim);
}

.qa-close {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  color: var(--text-dim);
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
}

.qa-close:hover {
  background: var(--surface-strong);
  color: var(--text);
}

.qa-close svg {
  width: 20px;
  height: 20px;
}

.qa-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  margin: 14px -4px 0;
  padding: 0 4px 4px;
}

.qa-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.qa-skel {
  height: 72px;
  border-radius: 1rem;
}

.qa-notice {
  margin-bottom: 10px;
  font-size: 0.875rem;
  color: var(--text-dim);
}

.qa-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.03);
}

.qa-row.is-off {
  opacity: 0.5;
}

.qa-thumb {
  width: 52px;
  height: 52px;
  overflow: hidden;
  border-radius: 0.75rem;
}

.qa-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.qa-info {
  min-width: 0;
}

.qa-name {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.3;
}

.qa-edition {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  margin-top: 2px;
  font-size: 0.8125rem;
  line-height: 1.35;
  color: var(--violet-300);
}

.qa-flavors {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  margin-top: 2px;
  font-size: 0.75rem;
  line-height: 1.35;
  color: var(--text-faint);
}

.qa-meta {
  margin-top: 2px;
  font-size: 0.75rem;
  color: var(--text-dim);
}

.qa-meta.is-out {
  color: #fda4af;
}

.qa-stepper {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.qa-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: background-color var(--dur-fast) ease, border-color var(--dur-fast) ease;
}

.qa-step svg {
  width: 16px;
  height: 16px;
}

.qa-step:hover:not(:disabled) {
  border-color: var(--violet-400);
  background: var(--accent-soft);
}

.qa-step:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.qa-step:focus-visible,
.qa-close:focus-visible,
.qa-cta:focus-visible {
  outline: 2px solid var(--violet-400);
  outline-offset: 2px;
}

.qa-qty {
  min-width: 1.75rem;
  text-align: center;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.qa-foot {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.qa-error {
  margin-bottom: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(251, 113, 133, 0.35);
  border-radius: 0.85rem;
  background: rgba(244, 63, 94, 0.12);
  color: #fecdd3;
  font-size: 0.8125rem;
  line-height: 1.4;
}

/* Komunikat pakietu nad licznikiem: fioletowy, dopóki brakuje minimum;
   zielony z poświatą, gdy komplet jest (także z nadwyżką na kolejny). */
.qa-pack-note {
  margin-bottom: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(171, 139, 255, 0.35);
  border-radius: 0.85rem;
  background: rgba(145, 99, 255, 0.12);
  color: var(--violet-300);
  font-size: 0.8125rem;
  line-height: 1.45;
}

.qa-pack-note.is-ok {
  border-color: rgba(52, 211, 153, 0.4);
  background: rgba(52, 211, 153, 0.1);
  color: #a7f3d0;
  box-shadow: 0 0 16px rgba(52, 211, 153, 0.18);
}

.qa-foot-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.qa-counter {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
}

.qa-cta {
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

@media (min-width: 768px) {
  .qa-panel {
    top: 0;
    left: auto;
    width: min(440px, 100vw);
    max-height: none;
    border-top: 0;
    border-left: 1px solid var(--border-strong);
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
    padding: 24px 22px calc(env(safe-area-inset-bottom, 0px) + 1.25rem);
  }

  .qa-panel-off {
    transform: translateX(100%);
  }

  .qa-panel-on {
    transform: translateX(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .qa-anim {
    transition: opacity var(--dur-fast) linear;
  }

  .qa-panel-off,
  .qa-panel-on {
    transform: none;
  }

  .qa-panel-off {
    opacity: 0;
  }

  .qa-step {
    transition: none;
  }
}

/* ---------------------------------------------------------------------------
   Układ A koszyka (pages/cart.php, makieta 2026-09-27). Telefon: produkty ›
   pakiet › podsumowanie z „Przejdź do zamówienia" › szyny podpowiedzi. Od lg:
   lewa kolumna produkty/pakiet/szyny, prawa — przyklejone podsumowanie przez
   trzy wiersze (ostatni wiersz 1fr łapie nadmiar wysokości, żeby między
   produktami, pakietem i szynami nie rosły dziury). Każdy element jest w
   DOM-ie raz — kolejność robi grid-template-areas. Ręcznie, bo tailwind.css
   jest prekompilowany.
   --------------------------------------------------------------------------- */
.cart-main {
  max-width: 76rem;
}

.cart-heading {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.cart-heading-count {
  font-size: 0.9375rem;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
}

.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "lines" "hub" "summary" "rails";
  row-gap: 20px;
  margin-top: 20px;
}

.cart-area-lines {
  grid-area: lines;
  min-width: 0;
}

.cart-area-hub {
  grid-area: hub;
}

.cart-area-summary {
  grid-area: summary;
}

.cart-area-rails {
  grid-area: rails;
}

@media (min-width: 1024px) {
  .cart-layout {
    grid-template-columns: minmax(0, 1fr) 360px;
    grid-template-rows: auto auto 1fr;
    grid-template-areas:
      "lines summary"
      "hub summary"
      "rails summary";
    column-gap: 40px;
    row-gap: 24px;
    align-items: start;
    margin-top: 28px;
  }

  .cart-area-summary {
    position: sticky;
    top: 6rem;
  }
}

/* Nagłówek kolumn i stopka listy (Wyczyść koszyk). Nagłówek tylko tam, gdzie
   wiersz jest jednym rzędem — kolumny jak w .cart-line-grid od 640 px. */
.cart-lines-head {
  display: none;
}

.cart-lines-foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 44px;
  border-top: 1px solid var(--border);
}

@media (min-width: 640px) {
  .cart-lines-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 128px 6.5rem 44px;
    column-gap: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
    font-size: 0.8125rem;
    color: var(--text-dim);
  }

  .cart-lines-head span:nth-child(3) {
    text-align: right;
  }
}

/* ---------------------------------------------------------------------------
   Conversion Hub koszyka (components/conversion-hub.php, set-progress-card.php;
   cartPage() w cart.js). Część 'primary' (pakiet, komplety, darmowa dostawa)
   pod listą, część 'rails' (szyny) pod podsumowaniem.
   --------------------------------------------------------------------------- */
.hub {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pack-card,
.hub-card {
  padding: 16px;
  border: 1px solid rgba(171, 139, 255, 0.35);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(109, 40, 217, 0.2), rgba(232, 121, 249, 0.06)),
    var(--bg-elevated);
}

.pack-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  /* Stała wysokość: pigułka oszczędności dochodzi z wyceną i nie może podnieść karty. */
  min-height: 28px;
}

.pack-name {
  min-width: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--violet-300);
}

.pack-pill {
  flex-shrink: 0;
  padding: 3px 10px;
  border: 1px solid rgba(52, 211, 153, 0.4);
  border-radius: 999px;
  background: rgba(52, 211, 153, 0.12);
  color: var(--success);
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.35;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.pack-headline {
  margin-top: 6px;
  font-size: 1.1875rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
}

/* Pasek pakietu: segment na sztukę — tyle kolumn, ile sztuk w pakiecie
   (grid-auto-flow), więc działa dla 10 i dla każdego innego rozmiaru. */
.pack-bar {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 4px;
  margin-top: 12px;
}

.pack-seg {
  position: relative;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.pack-seg.is-filled {
  background: linear-gradient(90deg, var(--violet-500), var(--fuchsia));
  box-shadow: 0 0 10px rgba(232, 121, 249, 0.6);
  animation: neon-pop 0.45s var(--ease-soft) both;
}

/* Pierwszy brakujący segment „oddycha" — tu dobierasz. */
.pack-seg.is-next {
  background: rgba(145, 99, 255, 0.55);
  box-shadow: 0 0 10px rgba(145, 99, 255, 0.6);
  animation: neon-breathe 1.5s ease-in-out infinite;
}

/* Licznik od razu, cena kompletu z wyceny — do tego czasu skeleton w tej samej linii. */
.pack-caption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2px 12px;
  min-height: 1.4em;
  margin-top: 8px;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--text-dim);
}

.pack-price {
  font-variant-numeric: tabular-nums;
}

.pack-price-skel {
  display: inline-block;
  width: 11rem;
  height: 1.1em;
  border-radius: 0.4rem;
}

/* Przycisk pakietu jest drugi po „Przejdź do zamówienia": neonowy obrys, nie pełny gradient. */
.pack-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  margin-top: 14px;
  padding: 0 20px;
  border: 1px solid rgba(196, 174, 255, 0.55);
  border-radius: 999px;
  background: rgba(145, 99, 255, 0.2);
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 600;
  box-shadow: 0 0 16px rgba(145, 99, 255, 0.35);
  cursor: pointer;
  transition: background-color var(--dur-fast) ease, box-shadow var(--dur-fast) ease;
}

.pack-cta:hover {
  background: rgba(145, 99, 255, 0.32);
  box-shadow: 0 0 22px rgba(145, 99, 255, 0.55);
}

/* Szersza kolumna: tekst z paskiem po lewej, przycisk po prawej. */
@media (min-width: 640px) {
  .pack-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 200px;
    align-items: center;
    column-gap: 24px;
    padding: 20px 24px;
  }

  .pack-cta {
    min-height: 52px;
    margin-top: 0;
  }
}

/* ---------------------------------------------------------------------------
   Neon pakietu — karta w koszyku (.pack-card) i ramka w oknie „Dodano do
   koszyka" (.qa-pack), obie z klasą .neon-frame. Ramka z jasną „kometą"
   krążącą dookoła, oddychająca poświata, brakujące segmenty paska zapalane po
   kolei jak szyld (opóźnienie z --i, numeru sztuki), mrugający neon
   oszczędności i błysk przelatujący po przycisku (.neon-shine). Ruch wyłącznie na opacity/
   transform (kompozytor) — wyjątek to obrót gradientu ramki przez @property
   (jedna cienka warstwa; bez wsparcia @property ramka po prostu stoi).
   prefers-reduced-motion: statyczny neon, zero ruchu (blok niżej).
   --------------------------------------------------------------------------- */
@property --neon-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

.neon-frame:not(.is-done) {
  position: relative;
  isolation: isolate;
  border-color: transparent;
}

.neon-frame:not(.is-done)::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  padding: 2px;
  border-radius: inherit;
  /* Dwie komety naprzeciw siebie: różowo-biała i fioletowo-biała. */
  background: conic-gradient(
    from var(--neon-angle),
    rgba(145, 99, 255, 0.7) 0deg,
    rgba(145, 99, 255, 0.7) 95deg,
    var(--fuchsia) 140deg,
    #fff 165deg,
    rgba(145, 99, 255, 0.7) 185deg,
    rgba(145, 99, 255, 0.7) 275deg,
    var(--violet-300) 320deg,
    #fff 345deg,
    rgba(145, 99, 255, 0.7) 360deg
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: neon-spin 3.6s linear infinite;
  pointer-events: none;
}

.neon-frame:not(.is-done)::after {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -2;
  border-radius: inherit;
  box-shadow:
    0 0 14px rgba(145, 99, 255, 0.8),
    0 0 36px rgba(145, 99, 255, 0.45),
    0 0 70px rgba(232, 121, 249, 0.3);
  opacity: 0.55;
  animation: neon-breathe 2.4s ease-in-out infinite;
  pointer-events: none;
}

/* W oknie „Dodano do koszyka" ramka siedzi w przewijanym .qa-body (4 px luzu,
   overflow: auto) — zewnętrzny blask byłby ucięty w twardy pas, więc świeci
   do środka (a ramka nie wystaje nad górną krawędź kontenera). */
.qa-pack.neon-frame:not(.is-done)::before,
.qa-pack.neon-frame:not(.is-done)::after {
  inset: 0;
}

.qa-pack.neon-frame:not(.is-done)::after {
  box-shadow: inset 0 0 18px rgba(145, 99, 255, 0.6), inset 0 0 44px rgba(232, 121, 249, 0.2);
}

.neon-frame .pack-headline {
  text-shadow: 0 0 10px rgba(196, 174, 255, 0.45), 0 0 28px rgba(145, 99, 255, 0.55);
}

.neon-frame .pack-pill {
  box-shadow: 0 0 14px rgba(52, 211, 153, 0.35), inset 0 0 8px rgba(52, 211, 153, 0.18);
  text-shadow: 0 0 8px rgba(52, 211, 153, 0.75);
  animation: neon-flicker 5s linear 1.2s infinite;
}

/* Światełka biegnące po brakujących segmentach, od lewej do prawej, potem przerwa. */
.pack-seg:not(.is-filled)::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--fuchsia);
  box-shadow: 0 0 12px rgba(232, 121, 249, 0.9);
  opacity: 0;
  animation: neon-chase 2.6s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * 0.13s);
  pointer-events: none;
}

.neon-shine {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.neon-shine::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 45%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  transform: translateX(-130%) skewX(-20deg);
  animation: neon-shine 3.4s ease-in-out 0.8s infinite;
  pointer-events: none;
}

@keyframes neon-spin {
  to { --neon-angle: 360deg; }
}

@keyframes neon-breathe {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 1; }
}

@keyframes neon-flicker {
  0%, 86%, 89%, 93%, 100% { opacity: 1; }
  87.5% { opacity: 0.3; }
  91% { opacity: 0.65; }
}

@keyframes neon-chase {
  0%, 34%, 100% { opacity: 0; }
  12% { opacity: 1; }
}

@keyframes neon-pop {
  from { opacity: 0; transform: scale(0.6); }
  to { opacity: 1; transform: none; }
}

@keyframes neon-shine {
  0% { transform: translateX(-130%) skewX(-20deg); }
  42%, 100% { transform: translateX(260%) skewX(-20deg); }
}

/* Skompletowany pakiet: zwarta karta sukcesu. */
.pack-done {
  padding: 14px 16px;
  border: 1px solid rgba(52, 211, 153, 0.35);
  border-radius: var(--radius);
  background: rgba(52, 211, 153, 0.07);
}

.pack-done-thumbs {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 28px));
  gap: 4px;
}

.pack-done-thumb {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid rgba(52, 211, 153, 0.35);
  border-radius: 7px;
}

.pack-done-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pack-done-text {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.4;
  color: #d1fae5;
}

.pack-done-check {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: rgba(52, 211, 153, 0.2);
  color: var(--success);
  animation: set-pop var(--dur) var(--ease) both;
}

.pack-done-check svg {
  width: 15px;
  height: 15px;
}

@keyframes set-pop {
  from { transform: scale(0.4); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.pack-done-next {
  margin-top: 4px;
  padding-left: 36px;
  font-size: 0.8125rem;
  color: var(--text-dim);
}

/* Podsumowanie koszyka: rabat pakietowy w kolorze sukcesu, suma wyraźna. */
.cart-promo-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-inline: -10px;
  padding: 7px 10px;
  border-radius: 0.75rem;
  background: rgba(52, 211, 153, 0.08);
}

.set-summary-label {
  min-width: 0;
  color: #a7f3d0;
}

.set-summary-amount {
  flex-shrink: 0;
  font-weight: 700;
  color: var(--success);
  white-space: nowrap;
}

.set-amount-skel {
  display: inline-block;
  min-width: 5.5rem;
  min-height: 1.1em;
  border-radius: 0.4rem;
}

/* Wąska kolumna (lg): etykieta w jednej linii, kwota pod nią do prawej — zamiast etykiety w trzech linijkach. */
.cart-total-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 2px 12px;
}

.cart-total-label {
  flex: 1 1 9rem;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
}

.cart-total-amount {
  flex-shrink: 0;
  margin-left: auto;
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* Segmenty linii w podsumowaniu checkoutu (checkout-order-item.php). */
.set-line-segments {
  margin-top: 4px;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--violet-300);
}

/* ---- Wiersz koszyka (components/cart-item-row.php), układ A ----
   Lista bez kafli, wiersze oddzielone kreską. Telefon: miniatura | nazwa + „×",
   pod nazwą stepper i suma w jednym rzędzie. Od 640 px jeden rząd pod
   nagłówkiem kolumn (.cart-lines-head): miniatura | tekst | stepper | suma | „×". */
.cart-lines {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cart-line {
  padding: 14px 0;
  border-top: 1px solid var(--border);
}

.cart-line:first-child {
  border-top: 0;
}

.cart-line.is-off {
  opacity: 0.7;
}

/* Telefon: nazwa zajmuje całą szerokość nad stepperem i sumą — „×" jest
   przypięty do rogu (niżej), bo w osobnej kolumnie szerokość kolumny
   dyktowałaby suma („200.00 PLN") i nazwa łamałaby się po dwa słowa. */
.cart-line-grid {
  position: relative;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  grid-template-areas:
    "thumb info info"
    "thumb qty total";
  align-items: start;
  column-gap: 12px;
  row-gap: 10px;
}

.cart-line-thumb {
  grid-area: thumb;
  display: block;
  width: 64px;
  height: 64px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 14px;
}

.cart-line-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-line-info {
  grid-area: info;
  min-width: 0;
  padding-right: 34px;
}

.cart-line-name {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
  overflow-wrap: anywhere;
}

a.cart-line-name:hover {
  color: var(--violet-300);
}

.cart-line-variant {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  margin-top: 2px;
  font-size: 0.8125rem;
  line-height: 1.35;
  color: var(--text-faint);
}

.cart-line-unit {
  display: block;
  margin-top: 4px;
  font-size: 0.8125rem;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
}

/* Do którego pakietu liczy się sztuka („· MIX 180K") — przenosi się w całości. */
.cart-line-pack {
  margin-left: 2px;
  font-weight: 600;
  color: var(--violet-300);
  white-space: nowrap;
}

.cart-line-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.cart-chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-strong);
  color: var(--text-dim);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.35;
  font-variant-numeric: tabular-nums;
}

.cart-chip.is-promo {
  border-color: rgba(52, 211, 153, 0.35);
  background: rgba(52, 211, 153, 0.12);
  color: #a7f3d0;
}

.cart-line-total {
  grid-area: total;
  align-self: center;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  text-align: right;
  white-space: nowrap;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.cart-line-qty {
  grid-area: qty;
  min-width: 0;
}

/* Telefon: „×" przypięty w prawym górnym rogu, pole dotyku 44 px wystaje w margines wiersza. */
.cart-line-remove {
  position: absolute;
  top: -10px;
  right: -10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-faint);
  cursor: pointer;
  transition: background-color var(--dur-fast) ease, color var(--dur-fast) ease;
}

.cart-line-remove svg {
  width: 20px;
  height: 20px;
}

.cart-line-remove:hover {
  background: var(--surface-strong);
  color: var(--danger);
}

@media (min-width: 640px) {
  .cart-line-grid {
    grid-template-columns: 64px minmax(0, 1fr) 128px 6.5rem 44px;
    grid-template-areas: "thumb info qty total remove";
    align-items: center;
    column-gap: 16px;
  }

  .cart-line-info {
    padding-right: 0;
  }

  .cart-line-remove {
    position: static;
    grid-area: remove;
    align-self: center;
  }
}

/* ---- Szyny podpowiedzi („Często kupowane razem", „Ostatnio oglądane",
   darmowa dostawa, okno „Dodano do koszyka") ----
   Poziomy scroll-snap; bez paska na dotyku, klawiaturą przez fokus szyny. */
.hub-fs-title,
.hub-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}

.hub-hint {
  margin-top: 4px;
  font-size: 0.8125rem;
  color: var(--text-dim);
}

.hub-section {
  padding-top: 4px;
}

.hub-secondary .hub-title {
  font-size: 0.95rem;
  color: var(--text-dim);
}

.rail {
  display: flex;
  gap: 10px;
  margin: 12px 0 0;
  padding: 2px 2px 10px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 2px;
  list-style: none;
}

@media (max-width: 639px) {
  .hub-section > .rail {
    margin-inline: -16px;
    padding-inline: 16px;
    scroll-padding-inline: 16px;
  }
}

@media (pointer: coarse) {
  .rail {
    scrollbar-width: none;
  }

  .rail::-webkit-scrollbar {
    display: none;
  }
}

.rail-card {
  position: relative;
  display: flex;
  flex: 0 0 148px;
  flex-direction: column;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.03);
  scroll-snap-align: start;
}

.hub-secondary .rail-card {
  background: transparent;
}

.rail-card-skel {
  min-height: 250px;
  border-color: transparent;
}

.rail-media {
  position: relative;
}

.rail-img {
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 0.75rem;
}

.rail-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Checkbox „Kupowane razem" w rogu zdjęcia; pole dotyku 44 px. */
.rail-pick {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 0.75rem 0 0.75rem 0;
  background: radial-gradient(circle at center, rgba(9, 6, 15, 0.72) 0 14px, transparent 15px);
  cursor: pointer;
}

.rail-pick input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  cursor: pointer;
}

.rail-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  margin-top: 8px;
}

.rail-name {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  min-height: calc(2 * 0.8125rem * 1.3);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
}

.rail-name:hover {
  color: var(--violet-300);
}

.rail-price {
  margin-top: 2px;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.rail-stock {
  font-size: 0.75rem;
  color: var(--warning);
}

.rail-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  min-height: 44px;
  margin-top: 8px;
  border: 1px solid rgba(171, 139, 255, 0.45);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--violet-300);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color var(--dur-fast) ease, color var(--dur-fast) ease;
}

.rail-add svg {
  width: 14px;
  height: 14px;
}

.rail-add:hover {
  background: var(--violet-500);
  color: #fff;
}

.hub-add-selected {
  width: 100%;
  min-height: 44px;
  margin-top: 6px;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
}

.hub-add-selected:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.rail:focus-visible,
.rail-add:focus-visible,
.rail-name:focus-visible,
.rail-pick input:focus-visible,
.hub-add-selected:focus-visible,
.pack-cta:focus-visible,
.cart-line-name:focus-visible,
.cart-line-remove:focus-visible {
  outline: 2px solid var(--violet-400);
  outline-offset: 2px;
}

.rail:focus-visible {
  border-radius: 1rem;
}

/* ---- Okno „Dodano do koszyka" (tryb `added` panelu Quick Add) ---- */
.qa-added-thumb {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  overflow: hidden;
  border-radius: 0.85rem;
}

.qa-added-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.qa-panel.is-added .qa-title {
  font-size: 0.9375rem;
  color: #a7f3d0;
}

.qa-panel.is-added .qa-subtitle {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  margin-top: 2px;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
}

.qa-panel.is-added .qa-head-text {
  flex: 1 1 auto;
}

.qa-added-qty {
  margin-top: 2px;
  font-size: 0.75rem;
  color: var(--text-faint);
}

.qa-added-skel {
  height: 132px;
  border-radius: var(--radius);
}

.qa-pack {
  padding: 14px;
  border: 1px solid rgba(171, 139, 255, 0.35);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(109, 40, 217, 0.16), rgba(232, 121, 249, 0.06)),
    var(--bg-soft);
}

.qa-pack.is-done {
  border-color: rgba(52, 211, 153, 0.35);
  background: rgba(52, 211, 153, 0.07);
}

.qa-mini-slots {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 28px));
  gap: 5px;
}

.qa-mini-slot {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1.5px dashed rgba(171, 139, 255, 0.45);
  border-radius: 7px;
  background: rgba(145, 99, 255, 0.07);
}

/* Te same biegnące światełka co w pasku karty koszyka (.pack-seg::after);
   overflow: hidden przycina zewnętrzny blask, więc tu świeci środek. */
.qa-mini-slot:not(.is-filled)::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(232, 121, 249, 0.4);
  box-shadow: inset 0 0 8px rgba(232, 121, 249, 0.8);
  opacity: 0;
  animation: neon-chase 2.6s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * 0.13s);
  pointer-events: none;
}

.qa-mini-slot.is-filled {
  border: 1px solid var(--violet-400);
  background: var(--accent-soft);
  box-shadow: 0 0 8px rgba(145, 99, 255, 0.5);
}

.qa-mini-slot.is-filled::before {
  content: "";
  position: absolute;
  inset: 0;
  width: 6px;
  height: 6px;
  margin: auto;
  border-radius: 999px;
  background: var(--violet-400);
}

.qa-pack.is-done .qa-mini-slot.is-filled {
  border-color: rgba(52, 211, 153, 0.45);
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.35);
}

.qa-mini-slot img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.qa-pack-text {
  margin-top: 12px;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.45;
  color: var(--text);
}

.qa-fbt-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
}

.qa-rail {
  margin-top: 10px;
}

.qa-rail .rail-card {
  flex-basis: 132px;
}

.qa-added-foot {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.qa-added-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
}

.qa-added-later {
  align-self: center;
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  background: transparent;
  color: var(--text-dim);
  font-size: 0.875rem;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}

.qa-added-later:hover {
  color: var(--text);
}

.qa-added-btn:focus-visible,
.qa-added-later:focus-visible {
  outline: 2px solid var(--violet-400);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .pack-cta,
  .rail-add,
  .cart-line-remove {
    transition: none;
  }

  .pack-seg.is-filled,
  .pack-seg.is-next,
  .pack-done-check,
  .neon-frame:not(.is-done)::before,
  .neon-frame:not(.is-done)::after,
  .neon-frame .pack-pill {
    animation: none;
  }

  .neon-frame:not(.is-done)::after {
    opacity: 0.8;
  }

  .pack-seg:not(.is-filled)::after,
  .qa-mini-slot:not(.is-filled)::after,
  .neon-shine::after {
    display: none;
  }
}

/* ---------------------------------------------------------------------------
   Checkout: zwarty postęp pakietu pod podsumowaniem i komunikat po 409
   PROMOTION_CHANGED / PRICE_CHANGED (checkout-summary.php, checkout.php,
   checkout-mobile-summary.php).
   --------------------------------------------------------------------------- */
.set-checkout-progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  padding: 8px 8px 8px 14px;
  border: 1px solid rgba(171, 139, 255, 0.3);
  border-radius: 999px;
  background: var(--accent-soft);
  font-size: 0.8125rem;
  color: var(--violet-300);
}

.set-checkout-progress-btn {
  flex-shrink: 0;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(171, 139, 255, 0.45);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
}

.set-checkout-progress-btn:hover {
  background: var(--violet-500);
}

.set-checkout-progress-btn:focus-visible {
  outline: 2px solid var(--violet-400);
  outline-offset: 2px;
}

.set-quote-notice {
  margin-bottom: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(245, 181, 68, 0.4);
  border-radius: var(--radius-sm);
  background: rgba(245, 181, 68, 0.1);
  color: #fde68a;
  font-size: 0.875rem;
  line-height: 1.45;
}

.set-quote-notice-compact {
  margin-bottom: 8px;
  padding: 8px 12px;
  font-size: 0.75rem;
}

/* ---------------------------------------------------------------------------
   Notka pakietu pod ceną produktu (components/product-set-note.php).
   --------------------------------------------------------------------------- */
.set-note {
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(171, 139, 255, 0.3);
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
}

.set-note-line {
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--violet-300);
}

.set-note-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  margin-top: 10px;
}

.set-note-count {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text);
}

.set-note-btn {
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(171, 139, 255, 0.5);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
}

.set-note-btn:hover {
  background: var(--violet-500);
}

.set-note-btn:focus-visible {
  outline: 2px solid var(--violet-400);
  outline-offset: 2px;
}

/* ---------------------------------------------------------------------------
   Progi ilościowe (spec 2026-09-29 §8): karta progu w koszyku (.tier-card —
   ten sam neon co karta pakietu), tabelka „Im więcej, tym taniej" na karcie
   produktu (.tier-ladder), linijka na kafelku (.card-tier) i cena z progu
   przy linii koszyka (.cart-line-tier / .cart-line-was). Ruch tylko na
   transform/opacity; prefers-reduced-motion — bez ruchu.
   --------------------------------------------------------------------------- */
.tier-status {
  margin-top: 4px;
  font-size: 0.8125rem;
  color: var(--success);
  font-weight: 600;
}

.tier-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.tier-step {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.75rem;
  line-height: 1.25;
  color: var(--text-dim);
}

.tier-step-price {
  font-weight: 700;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.tier-step.is-active {
  border-color: rgba(52, 211, 153, 0.6);
  background: rgba(52, 211, 153, 0.12);
  color: var(--text);
  box-shadow: 0 0 14px rgba(52, 211, 153, 0.35);
}

.tier-step.is-active .tier-step-price {
  color: var(--success);
  text-shadow: 0 0 8px rgba(52, 211, 153, 0.6);
}

.tier-bar {
  position: relative;
  height: 10px;
  margin-top: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.tier-bar-fill {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--violet-500), var(--fuchsia));
  box-shadow: 0 0 12px rgba(232, 121, 249, 0.6);
  transform-origin: left center;
  transition: transform 0.45s var(--ease-soft);
}

.tier-card .pack-caption {
  display: block;
}

.cart-line-tier {
  font-weight: 700;
  color: var(--success);
}

.cart-line-was {
  margin-left: 4px;
  color: var(--text-dim);
  opacity: 0.8;
}

.card-tier {
  margin-top: 8px;
  width: fit-content;
  padding: 3px 10px;
  border: 1px solid rgba(52, 211, 153, 0.4);
  border-radius: 999px;
  background: rgba(52, 211, 153, 0.1);
  color: var(--success);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.35;
  text-shadow: 0 0 8px rgba(52, 211, 153, 0.45);
}

.tier-ladder {
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(171, 139, 255, 0.35);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(109, 40, 217, 0.2), rgba(232, 121, 249, 0.06)),
    var(--bg-elevated);
}

.tier-ladder-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text);
  text-shadow: 0 0 10px rgba(196, 174, 255, 0.45);
}

.tier-ladder-group {
  color: var(--violet-300);
  font-weight: 600;
}

.tier-ladder-rows {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}

.tier-ladder-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.875rem;
  color: var(--text-dim);
}

.tier-ladder-price {
  font-weight: 700;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.tier-ladder-off {
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(52, 211, 153, 0.14);
  color: var(--success);
  font-size: 0.75rem;
  font-weight: 700;
}

.tier-ladder-row.is-active {
  border-color: rgba(52, 211, 153, 0.6);
  background: rgba(52, 211, 153, 0.1);
  color: var(--text);
  box-shadow: 0 0 16px rgba(52, 211, 153, 0.3);
}

.tier-ladder-note {
  margin-top: 10px;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--text);
}

.tier-ladder .set-note-btn {
  margin-top: 10px;
}

@media (prefers-reduced-motion: reduce) {
  .tier-bar-fill {
    transition: none;
  }
}

/* ==========================================================================
   Boost produktów (panel „Boost produktów", polecane.js): plakietka na
   kafelku (.badge-boost — fuksja, żeby nie zlewała się z zieloną „Nową
   dostawą"), znaczek na karcie szyny (.rail-boost), szyna „Dorzuć do
   zamówienia" w koszyku (.hub-boost) i okienka nad „Zamawiam" (.bump-*).
   Głośno z założenia — właściciel chce, żeby to świeciło.
   ========================================================================== */
.badge-boost {
  position: relative;
  background: #3b0633;
  color: #f9a8d4;
  border: 1px solid #f472b6;
  box-shadow: 0 0 10px rgba(244, 114, 182, 0.6), inset 0 0 8px rgba(244, 114, 182, 0.25);
  text-shadow: 0 0 6px rgba(249, 168, 212, 0.85);
  animation: neon-flicker 4.5s linear 0.4s infinite;
}

.badge-boost::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: inherit;
  box-shadow: 0 0 16px 2px rgba(244, 114, 182, 0.7);
  animation: neon-breathe 1.6s ease-in-out infinite;
  pointer-events: none;
}

.rail-boost {
  position: absolute;
  top: 6px;
  left: 6px;
  max-width: calc(100% - 12px);
  overflow: hidden;
  padding: 2px 8px;
  border: 1px solid #f472b6;
  border-radius: 999px;
  background: #3b0633;
  color: #f9a8d4;
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 0 10px rgba(244, 114, 182, 0.55);
  pointer-events: none;
}

.hub-boost-title {
  color: #fbcfe8;
  text-shadow: 0 0 10px rgba(244, 114, 182, 0.6);
}

.bump-box {
  margin-bottom: 16px;
  padding: 14px;
  border: 1px solid rgba(244, 114, 182, 0.55);
  border-radius: 1.25rem;
  background: linear-gradient(135deg, rgba(190, 24, 93, 0.16), rgba(109, 40, 217, 0.08)), var(--bg-elevated);
  box-shadow: 0 0 18px rgba(244, 114, 182, 0.25);
}

.bump-title {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 700;
  color: #fbcfe8;
  text-shadow: 0 0 10px rgba(244, 114, 182, 0.55);
}

.bump-row {
  display: grid;
  grid-template-columns: auto 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px dashed rgba(244, 114, 182, 0.55);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.bump-row.is-checked {
  border-style: solid;
  border-color: #f472b6;
  background: rgba(244, 114, 182, 0.12);
}

.bump-check {
  width: 22px;
  height: 22px;
  accent-color: #ec4899;
  cursor: pointer;
}

.bump-check:disabled {
  cursor: not-allowed;
}

.bump-img {
  display: block;
  width: 44px;
  height: 44px;
  overflow: hidden;
  border-radius: 10px;
}

.bump-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bump-text {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.bump-label {
  color: #f9a8d4;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.bump-name {
  display: -webkit-box;
  overflow: hidden;
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.3;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.bump-price {
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  .badge-boost,
  .badge-boost::after {
    animation: none;
  }

  .bump-row {
    transition: none;
  }
}

/* ---------------------------------------------------------------------------
   /opinie: paski rozkładu ocen (5★ … 1★). Neonowy gradient z poświatą,
   rośnięcie od zera po wczytaniu (kolejno, opóźnienie z --i), oddech
   poświaty i błysk przelatujący po pasku. Ruch tylko na transform/opacity.
   --------------------------------------------------------------------------- */
.rating-row-star {
  color: #fbbf24;
  filter: drop-shadow(0 0 4px rgba(251, 191, 36, 0.65));
}

.rating-row-count {
  color: var(--text);
  font-weight: 700;
}

.rating-row-count.is-empty {
  color: #52525b;
  font-weight: 500;
}

.rating-bar {
  height: 10px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.rating-bar-fill {
  position: relative;
  height: 100%;
  min-width: 10px; /* 1–2 opinie (≈1%) = okrągła kropka, nie krzywa kreska */
  border-radius: inherit;
  background: var(--gradient-brand);
  box-shadow: 0 0 8px rgba(168, 85, 247, 0.75), 0 0 18px rgba(232, 121, 249, 0.35);
  transform-origin: left center;
  animation: rating-bar-grow 1.1s var(--ease-soft, cubic-bezier(0.22, 1, 0.36, 1)) both;
  animation-delay: calc(var(--i, 0) * 0.12s);
}

/* Mocniejsza poświata, która „oddycha" — osobna warstwa, bo animujemy opacity, nie box-shadow. */
.rating-bar-fill::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 14px 2px rgba(192, 132, 252, 0.85), 0 0 30px 4px rgba(232, 121, 249, 0.45);
  animation: neon-breathe 2.2s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * 0.3s);
  pointer-events: none;
}

.rating-bar-fill.is-empty {
  visibility: hidden;
}

.rating-bar-shine {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
}

.rating-bar-shine::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.7), transparent);
  transform: translateX(-130%) skewX(-20deg);
  animation: neon-shine 3.2s ease-in-out infinite;
  animation-delay: calc(1.2s + var(--i, 0) * 0.25s);
}

@keyframes rating-bar-grow {
  from { transform: scaleX(0); }
  to { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .rating-bar-fill,
  .rating-bar-fill::before {
    animation: none;
  }

  .rating-bar-fill::before {
    opacity: 0.8;
  }

  .rating-bar-shine::after {
    display: none;
  }
}

/* ---------------------------------------------------------------------------
   „Powiadom mnie o dostawie" (2026-10-10, assets/js/powiadom.js). Wyprzedany
   produkt dostaje neonowy przycisk zamiast wygaszonego „Dodaj do koszyka"
   (właściciel: elementy sprzedażowe mają świecić). Fuksja jak akcent marki,
   poświata oddycha (neon-breathe), po zapisie spokojny zielony „✓ Powiadomimy".
   Ręcznie, bo tailwind.css jest prekompilowany. Okienko: klasy .qa-* + .sn-*.
   --------------------------------------------------------------------------- */
.btn-notify {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #2a0b33;
  color: #f5d0fe;
  border: 1px solid #e879f9;
  box-shadow: 0 0 12px rgba(232, 121, 249, 0.55), inset 0 0 10px rgba(232, 121, 249, 0.22);
  text-shadow: 0 0 8px rgba(245, 208, 254, 0.75);
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease), background var(--dur) var(--ease);
}

.btn-notify::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: inherit;
  box-shadow: 0 0 18px 3px rgba(232, 121, 249, 0.6);
  animation: neon-breathe 1.8s ease-in-out infinite;
  pointer-events: none;
}

.btn-notify:hover {
  transform: translateY(-2px);
  background: #3b0f47;
}

.btn-notify:disabled {
  cursor: wait;
  opacity: 0.7;
  transform: none;
}

.btn-notify.is-on {
  background: #052e24;
  color: #a7f3d0;
  border-color: #34d399;
  box-shadow: 0 0 10px rgba(52, 211, 153, 0.35);
  text-shadow: none;
}

.btn-notify.is-on::after {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .btn-notify::after {
    animation: none;
  }
}

.sn-form,
.sn-done {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 4px;
}

.sn-lead {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--text-dim);
}

.sn-lead strong {
  color: var(--text);
}

.sn-label {
  margin-top: 4px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text);
}

.sn-input {
  width: 100%;
  min-height: 48px;
  border-radius: 999px;
  padding: 0 18px;
  font-size: 1rem;
}

.sn-error {
  font-size: 0.8125rem;
  color: #fda4af;
}

.sn-submit {
  width: 100%;
  min-height: 50px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 700;
  text-align: center;
}

.sn-note {
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--text-dim);
}

/* Pułapka na boty: poza ekranem, nie display:none (część botów to pomija). */
.sn-trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.sn-done {
  align-items: center;
  text-align: center;
  padding-top: 8px;
}

.sn-done-icon {
  font-size: 2.25rem;
  line-height: 1;
  color: #6ee7b7;
}

.sn-done-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
}

/* Pasek zaproszenia od znajomego (polecenia.js): nad treścią strony, do zamknięcia. */
.polecenie-pasek {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.25rem 0.5rem 0.25rem 1rem;
  background: var(--accent-soft);
  border-bottom: 1px solid var(--violet-500);
  font-size: 0.875rem;
}

.polecenie-pasek a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.polecenie-pasek button {
  flex-shrink: 0;
  min-width: 44px;
  min-height: 44px;
  border: 0;
  background: transparent;
  color: var(--text-dim);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

/* ==========================================================================
   Strona zaproszenia /zaproszenie/KOD (polecenia, 2026-10-30) + przypomnienie
   nad formularzem konta. Głośno: neonowa ramka, świecący procent, CTA z błyskiem.
   ========================================================================== */

.zapr-karta {
  position: relative;
  padding: 2rem 1.25rem;
  border-radius: 2rem;
}

/* Odstępy w CSS, nie w klasach Tailwinda: gotowy tailwind.css nie ma py-8 / sm:py-12 / sm:pt-12. */
@media (min-width: 640px) {
  .zapr { padding-top: 3rem; }
  .zapr-karta { padding: 3rem 2.5rem; }
}

.zapr-odznaka {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  border: 1px solid rgba(232, 121, 249, 0.55);
  border-radius: 999px;
  background: rgba(232, 121, 249, 0.12);
  color: #f5d0fe;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 0 16px rgba(232, 121, 249, 0.35);
  animation: neon-flicker 5s linear 1s infinite;
}

.zapr-procent {
  margin-top: 1.25rem;
  font-family: var(--font-display, inherit);
  font-size: clamp(4.5rem, 18vw, 8rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.04em;
  background: linear-gradient(180deg, #fff 10%, var(--violet-300) 55%, var(--fuchsia));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 18px rgba(145, 99, 255, 0.75)) drop-shadow(0 0 42px rgba(232, 121, 249, 0.45));
  animation: neon-pop 0.45s var(--ease, ease-out) both, neon-flicker 6s linear 1.5s infinite;
}

.zapr-ladowanie {
  display: flex;
  justify-content: center;
  margin-top: 1.25rem;
}

.zapr-szkielet-procent {
  display: block;
  width: 12rem;
  height: 6.5rem;
  border-radius: 1.25rem;
}

.zapr-tytul {
  margin-top: 1rem;
  font-size: var(--text-h2);
  line-height: 1.15;
}

.zapr-lead {
  max-width: 32rem;
  margin: 1rem auto 0;
  color: var(--text-dim);
  font-size: 1rem;
  line-height: 1.6;
}

.zapr-mocne {
  color: #fff;
  text-shadow: 0 0 10px rgba(196, 174, 255, 0.7);
}

.zapr-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 24rem;
  min-height: 3.5rem;
  margin: 1.75rem auto 0;
  padding: 0.9rem 1.5rem;
  border-radius: 999px;
  font-size: 1.05rem;
  font-weight: 700;
  box-shadow: 0 0 18px rgba(145, 99, 255, 0.7), 0 0 44px rgba(232, 121, 249, 0.35);
}

.zapr-pozniej {
  margin-top: 1rem;
  color: var(--text-faint);
  font-size: 0.8125rem;
}

.zapr-link {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.zapr-kroki {
  margin-top: 2.5rem;
}

.zapr-kroki-tytul {
  text-align: center;
  font-size: var(--text-h3);
}

.zapr-lista {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.25rem;
  padding: 0;
  list-style: none;
}

@media (min-width: 640px) {
  .zapr-lista { grid-template-columns: repeat(3, 1fr); }
}

.zapr-krok {
  display: flex;
  gap: 0.875rem;
  align-items: flex-start;
  padding: 1.1rem;
  border-radius: 1.25rem;
}

@media (min-width: 640px) {
  .zapr-krok { flex-direction: column; }
}

.zapr-nr {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  background: var(--gradient-brand);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 0 14px rgba(145, 99, 255, 0.7);
}

.zapr-krok-tytul {
  color: #fff;
  font-weight: 700;
}

.zapr-krok-opis {
  margin-top: 0.25rem;
  color: var(--text-dim);
  font-size: 0.875rem;
  line-height: 1.5;
}

.zapr-warunki {
  margin-top: 1.25rem;
  color: var(--text-faint);
  font-size: 0.75rem;
  line-height: 1.5;
  text-align: center;
}

.konto-zaproszenie {
  padding: 0.85rem 1rem;
  border: 1px solid rgba(232, 121, 249, 0.55);
  border-radius: 1rem;
  background: rgba(232, 121, 249, 0.1);
  color: var(--text);
  font-size: 0.875rem;
  line-height: 1.5;
  box-shadow: 0 0 18px rgba(232, 121, 249, 0.25);
}

.konto-zaproszenie-procent {
  color: #fff;
  font-weight: 800;
  text-shadow: 0 0 10px rgba(232, 121, 249, 0.8);
}

@media (prefers-reduced-motion: reduce) {
  .zapr-odznaka,
  .zapr-procent { animation: none; }
}

/* ==========================================================================
   Kody zalogowanego konta w kasie i koszyku + etapy poleceń na koncie (2026-10-31).
   Głośno, jak reszta sprzedażowego UI: fioletowa poświata, przycisk z gradientem.
   ========================================================================== */

.checkout-kody-tytul {
  color: var(--text);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.checkout-kody-lista {
  display: grid;
  gap: 0.5rem;
  margin: 0.5rem 0 0;
  padding: 0;
  list-style: none;
}

.checkout-kod {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.6rem 0.6rem 0.6rem 0.9rem;
  border: 1px solid rgba(232, 121, 249, 0.5);
  border-radius: 1rem;
  background: rgba(145, 99, 255, 0.12);
  box-shadow: 0 0 14px rgba(145, 99, 255, 0.35), inset 0 0 10px rgba(232, 121, 249, 0.12);
}

.checkout-kod-uzyj {
  flex-shrink: 0;
  min-height: 2.75rem;
  padding: 0 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: var(--gradient-brand);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  box-shadow: 0 0 14px rgba(145, 99, 255, 0.6);
  cursor: pointer;
}

.checkout-kod-uzyj:disabled {
  opacity: 0.5;
  cursor: wait;
}

.cart-kody-info {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid rgba(232, 121, 249, 0.55);
  border-radius: 1rem;
  background: rgba(232, 121, 249, 0.1);
  color: #f5d0fe;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.4;
  box-shadow: 0 0 16px rgba(232, 121, 249, 0.3);
  animation: neon-flicker 6s linear 1s infinite;
}

.konto-polecenie {
  display: block !important;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.konto-polecenie:last-child {
  border-bottom: 0;
}

.konto-polecenie-gora {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem 1rem;
}

.konto-etapy {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.25rem;
  margin: 0.6rem 0 0;
  padding: 0;
  list-style: none;
}

/* .konto-etapy .konto-etap: mocniej niż `.konto-polecenia li` z konto.css (flex dla wierszy listy). */
.konto-etapy .konto-etap {
  display: block;
  min-width: 0;
  color: var(--text-faint);
  font-size: 0.6875rem;
  line-height: 1.3;
  text-align: center;
  white-space: nowrap;
}

.konto-etap::before {
  content: "";
  display: block;
  height: 4px;
  margin-bottom: 0.3rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.konto-etap.is-zrobiony {
  color: var(--text);
}

.konto-etap.is-zrobiony::before {
  background: var(--gradient-brand);
  box-shadow: 0 0 8px rgba(145, 99, 255, 0.7);
}

.konto-etap.is-zly::before {
  background: rgba(244, 63, 94, 0.35);
  box-shadow: none;
}

@media (max-width: 380px) {
  .konto-etap span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .cart-kody-info { animation: none; }
}

/* BLIK: dopiski w polach danych przelewu (2026-11-04) — dwa przelewy od tej samej osoby, kontakt przy złym tytule. */
.blik-field-hint {
  margin: 0.35rem 0 0;
  font-size: 0.72rem;
  line-height: 1.5;
  color: var(--text-dim);
}
.blik-field-hint.is-split,
.blik-field-hint.is-title {
  margin-top: 0.6rem;
  padding-top: 0.55rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.blik-field-hint.is-title { border-top-color: rgba(251, 191, 36, 0.18); }
.blik-field-link {
  color: #fcd34d;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}


/* =========================================================================
   Zaufanie: flaga PL, strona „Czy stagbar.pl jest legit?", media w opiniach
   ========================================================================= */
.pl-flag { width: 18px; height: 12px; border-radius: 2px; flex-shrink: 0; box-shadow: 0 0 0 1px rgba(255, 255, 255, .18); }
.pl-pill {
  display: inline-flex; align-items: center; gap: 7px;
  border-radius: 999px; padding: 4px 11px 4px 8px;
  font-size: 11.5px; font-weight: 600; letter-spacing: .01em; color: #fafafa;
  background: linear-gradient(90deg, rgba(220, 20, 60, .18), rgba(255, 255, 255, .05));
  border: 1px solid rgba(220, 20, 60, .35);
  box-shadow: 0 0 18px rgba(220, 20, 60, .18);
}
.legit-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: #c4b5fd; font-weight: 600; text-decoration: none;
  border-bottom: 1px dashed rgba(196, 181, 253, .4);
}
.legit-link:hover { color: #fff; border-bottom-color: #fff; }

/* --- strona legit --- */
.legit-answer {
  font-family: var(--font-display, inherit); font-weight: 800; letter-spacing: -.02em;
  font-size: clamp(1.6rem, 3.6vw, 2.4rem); line-height: 1.1;
  background: linear-gradient(90deg, #34d399, #a78bfa 60%, #f472b6); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.legit-pill {
  display: inline-flex; align-items: center; gap: 8px;
  border-radius: 999px; padding: 9px 15px; font-size: 13px; font-weight: 600; color: #e4e4e7;
  border: 1px solid rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .04); text-decoration: none;
}
.legit-pill svg.h-5 { width: 16px; height: 16px; color: #c4b5fd; }
.legit-pill--star { border-color: rgba(251, 191, 36, .35); background: rgba(251, 191, 36, .08); color: #fde68a; }
.legit-card {
  position: relative; border-radius: 1.75rem; padding: 26px 24px;
  border: 1px solid rgba(255, 255, 255, .1);
  background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .02));
}
.legit-card h2 { margin-top: 16px; font-size: 1.05rem; font-weight: 700; color: #fafafa; letter-spacing: -.01em; }
.legit-card p { margin-top: 8px; font-size: 14px; line-height: 1.6; color: #a1a1aa; }
.legit-card-ico {
  display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center;
  border-radius: 14px; background: var(--accent-soft, rgba(145, 99, 255, .18)); color: #c4b5fd;
}
.legit-card-ico--star { background: rgba(251, 191, 36, .12); color: #fbbf24; font-size: 20px; }
.legit-card-ico--flag { background: rgba(220, 20, 60, .14); }
.legit-card-ico--flag .pl-flag { width: 24px; height: 16px; }
.legit-card--pl { border-color: rgba(220, 20, 60, .3); box-shadow: inset 0 0 0 1px rgba(220, 20, 60, .08), 0 0 40px rgba(220, 20, 60, .08); }
.legit-card-note { color: #34d399 !important; font-weight: 600; font-size: 13px !important; }
.legit-card-link { display: inline-block; margin-top: 12px; font-size: 13px; font-weight: 600; color: #c4b5fd; }
.legit-card-link:hover { color: #fff; }
.legit-steps { display: grid; gap: 18px; counter-reset: step; }
@media (min-width: 768px) { .legit-steps { grid-template-columns: repeat(4, 1fr); } }
.legit-steps li { display: flex; gap: 14px; align-items: flex-start; }
.legit-steps b { display: flex; align-items: center; gap: 8px; font-size: 14.5px; color: #fafafa; }
.legit-steps p { margin-top: 4px; font-size: 13px; line-height: 1.55; color: #a1a1aa; }
.legit-step-no {
  flex-shrink: 0; display: inline-flex; width: 32px; height: 32px; align-items: center; justify-content: center;
  border-radius: 999px; font-weight: 700; font-size: 13px; color: #fff;
  background: linear-gradient(135deg, #7c3aed, #a78bfa); box-shadow: 0 0 18px rgba(145, 99, 255, .45);
}
.legit-faq { padding: 0 22px; }
.legit-faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; list-style: none;
  padding: 18px 0; font-weight: 600; font-size: 15px; color: #f4f4f5;
}
.legit-faq summary::-webkit-details-marker { display: none; }
.legit-faq-plus { color: #a78bfa; font-size: 20px; line-height: 1; transition: transform .2s; }
.legit-faq[open] .legit-faq-plus { transform: rotate(45deg); }
.legit-faq p { padding: 0 0 18px; font-size: 14px; line-height: 1.65; color: #a1a1aa; }
.legit-cta {
  border: 1px solid rgba(255, 255, 255, .1);
  background: radial-gradient(circle at 20% 0%, rgba(145, 99, 255, .25), transparent 55%), radial-gradient(circle at 90% 100%, rgba(52, 211, 153, .12), transparent 50%), rgba(255, 255, 255, .02);
}

/* --- karty opinii --- */
.rv-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 640px) { .rv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.rv-card {
  position: relative; padding: 20px 22px; border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, .1);
  background: rgba(255, 255, 255, .025);
}
.rv-head { display: flex; align-items: center; gap: 12px; }
.rv-avatar {
  flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 999px; font-weight: 700; font-size: 14px; color: #e4e4e7;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .1);
}
.rv-who { min-width: 0; flex: 1 1 auto; }
.rv-name { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-weight: 600; font-size: 15px; color: #f4f4f5; line-height: 1.25; }
.rv-verified {
  display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px;
  font-size: 11px; font-weight: 600; color: #6ee7b7; background: rgba(52, 211, 153, .1); border: 1px solid rgba(52, 211, 153, .3);
}
.rv-verified svg { width: 11px; height: 11px; }
.rv-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 4px; font-size: 12px; color: #8b8b96; }
.rv-stars { display: inline-flex; gap: 1px; }
.rv-stars svg { width: 14px; height: 14px; fill: #3f3f46; }
.rv-stars svg.is-on { fill: #fbbf24; }
.rv-stars-lg svg { width: 20px; height: 20px; }

.rv-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: 12px; }
.rv-product { display: inline-flex; align-items: center; gap: 6px; min-width: 0; color: #c4aeff; text-decoration: none; }
.rv-product span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rv-product svg { display: none; }
.rv-product:hover span { text-decoration: underline; }

/* --- podsumowanie nad opiniami produktu --- */
.rv-summary { display: flex; align-items: center; gap: 14px; margin-top: 12px; }
.rv-summary-num { font-family: var(--font-display, inherit); font-size: 40px; line-height: 1; font-weight: 700; letter-spacing: -.02em; color: #fafafa; }
.rv-summary-sub { margin-top: 4px; font-size: 13px; color: #a1a1aa; }

/* --- miniatury w opiniach --- */
.rv-media { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.rv-thumb {
  position: relative; display: block; width: 96px; height: 96px; overflow: hidden; border-radius: 12px; padding: 0;
  border: 1px solid rgba(255, 255, 255, .12); background: #141022; cursor: zoom-in; text-decoration: none;
  transition: border-color .2s;
}
.rv-media.is-single .rv-thumb { width: 140px; height: 140px; }
@media (max-width: 480px) {
  .rv-thumb { width: calc(33.333% - 6px); height: auto; aspect-ratio: 1; }
  .rv-media.is-single .rv-thumb { width: 52%; height: auto; }
  .rv-avatar { width: 36px; height: 36px; font-size: 13px; }
  .rv-card { padding: 16px; border-radius: 18px; }
}
.rv-thumb img, .rv-thumb video { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.rv-thumb:hover { border-color: rgba(255, 255, 255, .4); }
.rv-thumb.is-video { cursor: pointer; }
.rv-play { position: absolute; inset: 0; z-index: 1; display: flex; align-items: center; justify-content: center; color: #fff; }
.rv-play svg { width: 16px; height: 16px; position: relative; margin-left: 2px; }
.rv-play::before {
  content: ''; position: absolute; width: 36px; height: 36px; border-radius: 999px;
  background: rgba(0, 0, 0, .55); border: 1px solid rgba(255, 255, 255, .4);
}
.rv-dur {
  position: absolute; right: 6px; bottom: 6px; z-index: 1; padding: 2px 6px; border-radius: 5px;
  font-size: 10px; font-weight: 600; font-variant-numeric: tabular-nums; color: #fff; background: rgba(0, 0, 0, .65);
}
.rv-more { display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 15px; color: #e4e4e7; background: rgba(255, 255, 255, .06); }
.rv-thumb-who { display: none; }

/* --- pasek „Zdjęcia klientów” --- */
.rv-strip { margin-top: 20px; }
.rv-strip-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 10px; }
.rv-strip-title { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; color: #f4f4f5; }
.rv-strip-title svg { display: none; }
.rv-strip-count { font-size: 12px; color: #8b8b96; }
.rv-strip-row { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 8px; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .2) transparent; }
.rv-strip-row .rv-thumb-lg { flex: 0 0 auto; width: 112px; height: 112px; scroll-snap-align: start; }
@media (max-width: 480px) { .rv-strip-row .rv-thumb-lg { width: 96px; height: 96px; aspect-ratio: auto; } }

/* --- lightbox --- */
.rv-lightbox { position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center; padding: 16px; }
.rv-lightbox-bg { position: absolute; inset: 0; background: rgba(5, 3, 12, .92); backdrop-filter: blur(10px); }
.rv-lightbox-body { position: relative; width: min(94vw, 980px); max-height: 94vh; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.rv-lightbox-stage { position: relative; display: inline-flex; align-items: center; justify-content: center; max-width: 100%; }
.rv-lightbox-media { max-width: 100%; max-height: 62vh; border-radius: 14px; object-fit: contain; background: #000; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.rv-lightbox-counter { position: absolute; top: 10px; left: 10px; padding: 3px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; color: #fff; background: rgba(0, 0, 0, .6); }
.rv-lightbox-cap { width: 100%; display: flex; align-items: flex-start; gap: 12px; padding: 10px 14px; border-radius: 14px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); }
.rv-lightbox-cap .rv-avatar { width: 34px; height: 34px; font-size: 12px; }
.rv-lightbox-capbody { min-width: 0; }
.rv-lightbox-capbody .rv-name { font-size: 14px; }
.rv-lightbox-text { margin-top: 3px; font-size: 13px; line-height: 1.5; color: #d4d4d8; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rv-lightbox-product { margin-top: 3px; font-size: 12px; color: #a78bfa; }
.rv-lightbox-thumbs { width: 100%; display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; justify-content: center; flex: 0 0 auto; }
.rv-lightbox-thumbs .rv-thumb-sm { flex: 0 0 auto; width: 52px; height: 52px; border-radius: 10px; opacity: .5; aspect-ratio: auto; }
.rv-lightbox-thumbs .rv-thumb-sm.is-current { opacity: 1; border-color: #fff; }
.rv-lightbox-thumbs .rv-thumb-sm .rv-play::before { width: 22px; height: 22px; } .rv-lightbox-thumbs .rv-thumb-sm .rv-play svg { width: 10px; height: 10px; }
.rv-lightbox-close, .rv-lightbox-nav {
  position: absolute; z-index: 2; display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 999px; color: #fff; font-size: 22px; line-height: 1;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18); cursor: pointer;
}
.rv-lightbox-close { top: 16px; right: 16px; font-size: 16px; }
.rv-lightbox-nav.is-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.rv-lightbox-nav.is-next { right: 12px; top: 50%; transform: translateY(-50%); }
.rv-lightbox-close:hover, .rv-lightbox-nav:hover { background: rgba(255, 255, 255, .18); }

/* --- formularz opinii --- */
.rv-star {
  font-size: 34px; line-height: 1; padding: 2px; color: #3f3f46; cursor: pointer; background: none; border: 0;
  transition: color .15s, transform .15s, text-shadow .15s;
}
.rv-star:hover { transform: scale(1.12); color: #fcd34d; }
.rv-star.is-on { color: #fbbf24; text-shadow: 0 0 16px rgba(251, 191, 36, .55); }
@media (max-width: 640px) { .rv-star { font-size: 38px; } }
.rv-card-active { border-color: rgba(167, 139, 250, .35) !important; }
.rv-bonus {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 1.25rem;
  border: 1px solid rgba(167, 139, 250, .35);
  background: linear-gradient(90deg, rgba(124, 58, 237, .22), rgba(255, 255, 255, .03));
  box-shadow: 0 0 28px rgba(124, 58, 237, .18);
  transition: border-color .3s, box-shadow .3s;
}
.rv-bonus.is-on { border-color: rgba(52, 211, 153, .5); background: linear-gradient(90deg, rgba(16, 185, 129, .22), rgba(255, 255, 255, .03)); box-shadow: 0 0 32px rgba(52, 211, 153, .3); }
.rv-bonus-badge {
  flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; width: 58px; height: 58px; border-radius: 16px;
  font-weight: 800; font-size: 17px; letter-spacing: -.02em; color: #fff;
  background: linear-gradient(135deg, #7c3aed, #a78bfa); box-shadow: 0 0 20px rgba(145, 99, 255, .5);
  animation: rv-pulse 2.2s ease-in-out infinite;
}
.rv-bonus.is-on .rv-bonus-badge { background: linear-gradient(135deg, #059669, #34d399); box-shadow: 0 0 22px rgba(52, 211, 153, .55); }
@keyframes rv-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
.rv-bonus-cam { flex-shrink: 0; color: #c4b5fd; opacity: .8; }
.rv-upl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 8px; margin-bottom: 10px; }
.rv-upl { position: relative; aspect-ratio: 1; overflow: hidden; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .03); }
.rv-upl.is-error { border-color: rgba(244, 63, 94, .75); box-shadow: 0 0 0 2px rgba(244, 63, 94, .25), 0 0 18px rgba(244, 63, 94, .25); }
.rv-upl.is-error img, .rv-upl.is-error video { opacity: .45; filter: saturate(.4); }
.rv-upl-err {
  position: absolute; left: 6px; bottom: 6px; width: 22px; height: 22px; border-radius: 999px; font-size: 13px; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center; color: #fff; background: #f43f5e; box-shadow: 0 0 10px rgba(244, 63, 94, .6);
}
.rv-dur {
  position: absolute; right: 6px; bottom: 8px; padding: 1px 6px; border-radius: 999px; font-size: 10.5px; font-weight: 600; color: #fff;
  background: rgba(0, 0, 0, .65); border: 1px solid rgba(255, 255, 255, .2); font-variant-numeric: tabular-nums;
}
.rv-upl-x {
  position: absolute; top: 5px; right: 5px; width: 24px; height: 24px; border-radius: 999px; font-size: 11px; color: #fff;
  background: rgba(0, 0, 0, .6); border: 1px solid rgba(255, 255, 255, .25); cursor: pointer;
}
.rv-upl-ok {
  position: absolute; left: 6px; bottom: 6px; width: 20px; height: 20px; border-radius: 999px; font-size: 11px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; color: #052e16; background: #34d399;
}
.rv-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255, 255, 255, .15); }
.rv-progress i { display: block; height: 100%; background: linear-gradient(90deg, #a78bfa, #34d399); transition: width .12s linear; }
.rv-drop {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 1rem; cursor: pointer;
  border: 1px dashed rgba(167, 139, 250, .45); background: rgba(124, 58, 237, .06);
  transition: border-color .2s, background .2s;
}
.rv-drop:hover, .rv-drop.is-drag { border-color: #a78bfa; background: rgba(124, 58, 237, .14); }
.rv-drop.is-full { opacity: .5; cursor: not-allowed; }
.rv-drop b { display: block; font-size: 13.5px; color: #f4f4f5; }
.rv-drop small { display: block; font-size: 11.5px; color: #a1a1aa; margin-top: 1px; }
.rv-drop-ico { flex-shrink: 0; display: inline-flex; width: 38px; height: 38px; align-items: center; justify-content: center; border-radius: 12px; background: rgba(167, 139, 250, .15); color: #c4b5fd; }
.rv-drop-plus { margin-left: auto; font-size: 22px; color: #a78bfa; }
.rv-submitbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 12px 0;
  padding-bottom: calc(12px + env(safe-area-inset-bottom));
  background: rgba(9, 6, 20, .85); backdrop-filter: blur(14px); border-top: 1px solid rgba(255, 255, 255, .1);
}
.rv-done-ico {
  display: inline-flex; width: 56px; height: 56px; align-items: center; justify-content: center; border-radius: 999px;
  font-size: 24px; font-weight: 700; color: #052e16; background: #34d399; box-shadow: 0 0 30px rgba(52, 211, 153, .5);
}

.legit-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .legit-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.legit-contacts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; }
.rv-main { padding-bottom: 120px; }
.rv-textarea { padding-bottom: 28px; }
.rv-counter { position: absolute; right: 14px; bottom: 10px; font-size: 11px; color: #52525b; pointer-events: none; font-variant-numeric: tabular-nums; }
