/* Czcionka całej strony: Exalted Wide Sans Serif.
   Plik czcionki wrzuć do folderu /fonts jako ExaltedWide.woff2 (albo .woff/.otf/.ttf),
   patrz fonts/PRZECZYTAJ.txt. Dopóki go nie ma, WSZYSTKO (litery, cyfry, ceny, znaki)
   składane jest jedną, szeroką czcionką zapasową Unbounded.
   Unbounded leży teraz NA TWOIM SERWERZE (fonts/Unbounded.woff2) i jest wczytywana z góry
   (<link rel="preload"> w <head> każdej strony), a nie z Google Fonts — dzięki temu jest gotowa
   zanim przeglądarka zacznie malować tekst i nie ma „przeskoku" czcionki po wejściu na stronę. */
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 200 900;
  font-display: block;            /* krótka, niewidoczna przerwa zamiast przeskoku innej czcionki */
  src: url('../fonts/Unbounded.woff2') format('woff2');
}
@font-face {
  font-family: 'Exalted Wide';
  font-style: normal;
  font-weight: 400;
  font-display: swap;             /* do czasu wczytania (lub gdy pliku nie ma) tekst jedzie na Unbounded */
  src: local('Exalted Wide'), local('ExaltedWide'), local('Exalted-Wide'),
       url('../fonts/ExaltedWide.woff2') format('woff2'),
       url('../fonts/ExaltedWide.woff') format('woff'),
       url('../fonts/ExaltedWide.otf') format('opentype'),
       url('../fonts/ExaltedWide.ttf') format('truetype');
}
/* Lets same-origin cross-document navigation (index.html <-> koszyk/index.html)
   crossfade natively in supporting browsers instead of a hard flash-to-white. */
@view-transition {
  navigation: auto;
}
:root {
  --bg: #ffffff;
  --surface: #f5f5f6;
  --surface-2: #ebebed;
  --border: #e2e2e5;
  --ink: #0a0a0a;
  --muted: #6b7280;
  --accent: #000000;
  --accent-ink: #ffffff;
  --danger: #e5383b;
  --danger-soft: #fdecec;
  --radius: 18px;
  --radius-sm: 12px;
  --container: 1180px;
  --font-main: 'Exalted Wide', 'Unbounded', -apple-system, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
html { height: 100%; }
html {
  background: var(--bg);
  overscroll-behavior-y: none; /* brak białego "odbicia" pod stopką na telefonie */
  overflow-x: hidden;
  touch-action: pan-y;
  overscroll-behavior-x: none;
}
body {
  margin: 0;
  min-height: 100%;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-main);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden; /* zabezpieczenie przed poziomym scrollem od baneru 100vw */
  touch-action: pan-y; /* blokuje przewijanie/gesty w bok i pinch-zoom, pionowy scroll działa normalnie */
  overscroll-behavior-x: none;
  -webkit-touch-callout: none; /* blokuje menu długiego przytrzymania (zapisz zdjęcie itp.) */
  -webkit-user-select: none;
  user-select: none;
}
/* Pola formularzy muszą zostać normalnie zaznaczalne/wklejalne mimo globalnej blokady wyżej. */
input, textarea, [contenteditable="true"] {
  -webkit-touch-callout: default;
  -webkit-user-select: text;
  user-select: text;
}
h1, h2, h3 { margin: 0; font-weight: 500; letter-spacing: -0.01em; }
a { color: inherit; text-decoration: none; -webkit-touch-callout: none; }
button {
  font-family: var(--font-main);
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
  font-size: 13.5px;
}
button:focus-visible, input:focus-visible, a:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
input {
  font-family: var(--font-main);
  font-size: 13.5px;
}
img {
  max-width: 100%;
  display: block;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
  user-select: none;
  pointer-events: none; /* nie da się przeciągnąć/zapisać obrazka przez przeglądarkę */
}
/* Linki i przyciski muszą zostać klikalne mimo pointer-events:none na <img> w środku. */
a img, button img, .icon-btn img { pointer-events: none; }
a, button { -webkit-user-drag: none; }
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px 28px;
}
body.has-footer {
  display: flex;
  flex-direction: column;
}
body.has-footer > * { min-width: 0; }
/* --- Górny obszar z logo i ikonkami — bez paska/tła, zlewa się ze stroną --- */
.top-bar-wrap {
  background: none;
}
/* --- Header --- */
.site-header {
  background: transparent;
}
.site-header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: calc(env(safe-area-inset-top, 0px) + 10px) 20px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.logo-link { display: inline-flex; align-items: center; }
.logo-img {
  display: block;
  height: 46px;
  width: auto;
  object-fit: contain;            /* na bardzo wąskich ekranach logo się zmniejsza, ale nie rozciąga */
  object-position: left center;
}
.greeting {
  font-size: 23px;
  font-weight: 800;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--muted);
}
/* Szare kółka za ikonami w nagłówku (szukaj, kupony, polubione, koszyk, profil).
   Ikony mają ok. 55% średnicy kółka; „metka” (kupony) ma w pliku więcej pustego miejsca, więc jest odrobinę większa. */
.header-actions .icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ececec;
}
.header-actions .icon-btn .icon-mask { width: 24px; height: 24px; background-color: var(--ink); }
.header-actions .icon-btn .icon-mask.icon-ticket { width: 26px; height: 26px; }
.header-actions .icon-btn .icon-mask.icon-profile { width: 25px; height: 25px; }
/* wąska sylwetka — odrobinę większa, żeby ważyła tyle co reszta */
.icon-mask {
  display: inline-block;
  width: 22px;
  height: 22px;
  background-color: var(--muted);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
  transition: background-color 0.15s ease;
}
.icon-mask.icon-cart { -webkit-mask-image: url("../assets/koszyk.svg"); mask-image: url("../assets/koszyk.svg"); }
.icon-mask.icon-profile { -webkit-mask-image: url("../assets/profil.svg"); mask-image: url("../assets/profil.svg"); }
.icon-mask.icon-addtocart { -webkit-mask-image: url("../assets/addtocart.svg"); mask-image: url("../assets/addtocart.svg"); }
.icon-mask.icon-cursor { -webkit-mask-image: url("../assets/cursor-click.svg"); mask-image: url("../assets/cursor-click.svg"); }
.icon-mask.icon-tiktok { -webkit-mask-image: url("../assets/tiktok.svg"); mask-image: url("../assets/tiktok.svg"); }
.icon-mask.icon-delivery { -webkit-mask-image: url("../assets/delivery.svg"); mask-image: url("../assets/delivery.svg"); }
.icon-mask.icon-payments { -webkit-mask-image: url("../assets/payments.svg"); mask-image: url("../assets/payments.svg"); }
.icon-mask.icon-link { -webkit-mask-image: url("../assets/link.svg"); mask-image: url("../assets/link.svg"); }
.icon-mask.icon-like { -webkit-mask-image: url("../assets/like-filled.svg"); mask-image: url("../assets/like-filled.svg"); }
.icon-mask.icon-like-outline { -webkit-mask-image: url("../assets/like-outline.svg"); mask-image: url("../assets/like-outline.svg"); }
.icon-mask.icon-like-filled { -webkit-mask-image: url("../assets/like-filled.svg"); mask-image: url("../assets/like-filled.svg"); }
.icon-mask.icon-search { -webkit-mask-image: url("../assets/szukaj.svg"); mask-image: url("../assets/szukaj.svg"); }
.icon-mask.icon-ticket { -webkit-mask-image: url("../assets/kupony.svg"); mask-image: url("../assets/kupony.svg"); }
.header-actions .icon-mask.icon-ticket { -webkit-mask-image: url("../assets/brand.svg"); mask-image: url("../assets/brand.svg"); }
.icon-mask.icon-list { -webkit-mask-image: url("../assets/lista.svg"); mask-image: url("../assets/lista.svg"); }
.icon-mask.icon-order-history { -webkit-mask-image: url("../assets/order-history.svg"); mask-image: url("../assets/order-history.svg"); }
.icon-mask.icon-user { -webkit-mask-image: url("../assets/user.svg"); mask-image: url("../assets/user.svg"); }
.icon-mask.icon-lock { -webkit-mask-image: url("../assets/lock.svg"); mask-image: url("../assets/lock.svg"); }
.icon-mask.icon-key { -webkit-mask-image: url("../assets/key.svg"); mask-image: url("../assets/key.svg"); }
.icon-mask.icon-marker { -webkit-mask-image: url("../assets/marker.svg"); mask-image: url("../assets/marker.svg"); }
.icon-btn:active .icon-mask, .icon-btn.is-active .icon-mask, .icon-btn.is-current .icon-mask { background-color: #000000; }
.verify-badge {
  display: inline-block;
  width: 19px;
  height: 19px;
  vertical-align: -3px;
  margin-left: 2px;
}
.cart-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 16px;
  height: 16px;
  padding: 0 3px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* --- Przyciski --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 13px;
  transition: transform 0.1s ease, background 0.15s ease, opacity 0.15s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { opacity: 0.88; }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-outline {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--ink);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-danger { background: var(--danger-soft); color: var(--danger); }
.btn-danger:hover { background: var(--danger); color: #fff; }
.btn-block { width: 100%; }
.btn-lg { padding: 16px 24px; font-size: 15px; }
.btn-pill { border-radius: 999px; }
/* --- Breadcrumbs --- */
.breadcrumbs {
  color: var(--muted);
  font-size: 12px;
  padding: 18px 0 6px;
}
.breadcrumbs a:hover { color: var(--ink); }
/* --- Banner --- */
/* Baner pełnej szerokości ekranu (edge-to-edge), niezależnie od paddingu
   rodzica .container — "wyłamuje się" poza kontener przez 100vw + przesunięcie.
   Docelowe wymiary grafik: 1000 x 1000 px (1:1). Na telefonie rogi bez zaokrąglenia,
   na szerokich ekranach baner jest wyśrodkowany i ma ograniczoną szerokość. */
.banner {
  position: relative;
  width: 100vw;
  margin: 0 0 24px;
  margin-left: 50%;
  transform: translateX(-50%);
}
@media (min-width: 720px) {
.banner { width: min(100vw, 540px); }

}
/* Okno z banerami: kwadrat 1:1, przycina tor ze slajdami. Pionowy scroll strony działa normalnie,
   a poziome przeciągnięcie obsługuje banner.js (pointer events). */
.banner-viewport {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: var(--surface);
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
  cursor: grab;
}
.banner-viewport.is-dragging { cursor: grabbing; }
@media (min-width: 720px) {
.banner-viewport { border-radius: 28px; }

}
.banner-track {
  display: flex;
  width: 100%;
  height: 100%;
  will-change: transform;
  backface-visibility: hidden;
}
.banner-item {
  position: relative;
  display: block;
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.banner-item.is-clickable { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.banner-item.is-busy { opacity: .85; pointer-events: none; }
.banner-slide {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  -webkit-user-drag: none;
}
/* Ukośny, rozmyty pasek światła przelatujący przez każdy baner (potem krótka przerwa). */
.banner-item::after {
  content: '';
  position: absolute;
  top: -25%;
  left: 0;
  width: 34%;
  height: 150%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .55) 50%, rgba(255, 255, 255, 0) 100%);
  filter: blur(14px);
  transform: translateX(-260%) skewX(-22deg);
  pointer-events: none;
  will-change: transform;
  animation: banner-shine 5s cubic-bezier(.45, .05, .35, 1) infinite;
}
@keyframes banner-shine {
  0%   { transform: translateX(-260%) skewX(-22deg); }
  45%  { transform: translateX(380%) skewX(-22deg); }
  100% { transform: translateX(380%) skewX(-22deg); }
}
@media (prefers-reduced-motion: reduce) {
.banner-item::after { animation: none; opacity: 0; }

}
/* Dymek z krótką informacją (showFlash w common.js) */
.flash-toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 9000; max-width: min(92vw, 420px);
  padding: 13px 20px; border-radius: 999px; background: #000; color: #fff;
  font-size: 12.5px; font-weight: 600; line-height: 1.45; text-align: center;
  box-shadow: 0 18px 40px -14px rgba(0, 0, 0, .55);
  transform: translate(-50%, 24px); opacity: 0; transition: transform .4s cubic-bezier(.2, .8, .2, 1), opacity .3s ease;
}
.flash-toast.is-visible { transform: translate(-50%, 0); opacity: 1; }
.flash-toast.is-error { background: var(--danger, #c0392b); }
.banner-empty {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.6;
}
/* Wskaźnik pod banerem: jasna pastylka, w niej szare kółka, a aktywny slajd to wydłużona,
   ciemna kropka. Zmiana szerokości jest animowana. */
.banner-dots {
  display: flex;
  justify-content: center;
  margin-top: 14px;
}
.banner-dots-pill {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px;
  border-radius: 999px;
  background: #d9d9d9;
}
.banner-dots button {
  position: relative;
  flex: none;
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #b3b3b3;
  cursor: pointer;
  transition: width 0.55s cubic-bezier(0.45, 0, 0.15, 1), background-color 0.4s ease;
  -webkit-tap-highlight-color: transparent;
}
/* większy obszar dotyku niż sama kropka */
.banner-dots button::before { content: ''; position: absolute; inset: -9px -3px; }
.banner-dots button.is-active { width: 20px; background: #545454; cursor: default; }
/* --- Filtry --- */
.section-title {
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--muted);
  margin: 0 0 12px;
}
.filters {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  /* wyłamanie poza padding kontenera: chipsy przewijają się do samej krawędzi ekranu,
     bez białego paska po lewej i prawej; pierwszy chip nadal startuje równo z treścią */
  margin: 0 -20px 22px;
  padding: 0 20px 4px;
  scroll-padding-inline: 20px;
  scrollbar-width: none;
}
.filters::-webkit-scrollbar { display: none; }
.filter-chip {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  font-weight: 600;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.1s ease;
}
.filter-chip:active { transform: scale(0.96); }
.filter-chip.is-active { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.filter-chip:not(.is-active):hover { border-color: var(--accent); color: var(--accent); }
/* --- Siatka produktow --- */
/* Kolumny są minmax(0, 1fr), a nie zwykłe 1fr: dzięki temu długa nazwa opcji (np. „Black Graffiti”)
   w polu wyboru na karcie nie rozpycha kolumny, nie wypycha siatki poza ekran i produkty
   zostają dokładnie w tym samym miejscu po wyborze opcji i dodaniu do koszyka. */
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}
@media (min-width: 640px) {
.grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }

}
@media (min-width: 980px) {
.grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

}
.card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  /* backwards (a nie both): po animacji karta wraca do zwykłego stanu bez trwałego transform,
     więc nie powstaje osobna warstwa na każdą kartę (mniej „ucinania” i przeskoków na telefonie) */
  animation: card-in 0.6s cubic-bezier(0.22, 1, 0.36, 1) backwards;
  animation-delay: var(--d, 0ms);
}
@keyframes card-in {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}
/* Karta jest statyczna: zdjęcie ma narzucony, stały format (kwadrat) — bez względu na proporcje pliku —
   więc nic się nie przesuwa przy wczytywaniu zdjęć, zmianie opcji ani dodaniu do koszyka.
   Brak efektu „podniesienia” i cienia po dotknięciu/najechaniu. */
.card-image-wrap {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: var(--bg);
}
.card-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}
.card-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 5px 10px;
  border-radius: 5px;
}
.add-to-cart-btn {
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 999px;
  background: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(16, 18, 26, 0.18);
  transition: transform 0.12s ease, background-color 0.15s ease;
}
.add-to-cart-btn .icon-mask { width: 18px; height: 18px; background-color: var(--accent-ink); }
.add-to-cart-btn:active { transform: scale(0.92); }
.add-to-cart-btn.is-added { background: #16a34a; }
.card-body { padding: 12px 2px 0; display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
.card-price {
  font-weight: 700;
  font-size: 14.5px;
  color: var(--accent);
}
.card-name {
  font-weight: 500;
  font-size: 11px;
  line-height: 1.45;
  color: var(--ink);
  text-transform: uppercase;
}
/* --- Empty states --- */
.empty {
  padding: 60px 20px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}
/* --- Koszyk --- */
.page-title { font-size: 24px; font-weight: 500; margin: 6px 0 26px; }
.cart-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.cart-row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 18px;
}
.cart-row-image {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  aspect-ratio: 1 / 1;
}
.cart-row-image img { width: 100%; height: 100%; object-fit: cover; }
.cart-row-price { font-size: 21px; font-weight: 700; color: var(--accent); margin-bottom: 6px; }
.cart-row-name { font-size: 14px; font-weight: 500; text-transform: uppercase; margin-bottom: 10px; }
.cart-row-meta { font-size: 11.5px; color: var(--muted); margin-bottom: 2px; text-transform: uppercase; }
.cart-row-meta span { color: var(--accent); font-weight: 600; }
.cart-row-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}
.remove-btn {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px;
  font-weight: 600;
  font-size: 11.5px;
  text-transform: uppercase;
  color: var(--ink);
}
.remove-btn:hover { border-color: var(--danger); color: var(--danger); }
.qty-control {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-weight: 600;
  font-size: 11.5px;
  text-transform: uppercase;
}
.qty-control button {
  width: 20px;
  height: 20px;
  font-weight: 700;
  font-size: 16px;
  color: var(--accent);
  line-height: 1;
}
/* --- Podsumowanie --- */
.summary-title { font-size: 19px; font-weight: 500; margin: 40px 0 18px; }
.promo-row {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
}
.promo-row input {
  flex: 1;
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  color: var(--ink);
}
.promo-row input::placeholder { color: var(--muted); }
.promo-row input:focus { border-color: var(--accent); outline: none; }
.promo-msg { font-size: 13px; margin: -14px 0 20px; }
.promo-msg.is-ok { color: var(--accent); }
.promo-msg.is-error { color: var(--danger); }
.summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 0;
  font-size: 12.5px;
  text-transform: uppercase;
  font-weight: 500;
}
.summary-row .value { color: var(--accent); font-weight: 700; text-transform: none; }
.summary-row.is-discount .value { color: var(--danger); }
.summary-row.is-total {
  border-top: 1px dashed var(--border);
  margin-top: 4px;
  padding-top: 16px;
  font-size: 13.5px;
  font-weight: 700;
}
.summary-row.is-total .value { font-size: 16px; }
.checkout-cta { margin-top: 22px; }
.checkout-error { margin-top: 14px; color: var(--danger); font-size: 14px; }
/* --- Admin --- */
.admin-shell { min-height: 100vh; }
.login-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.login-card {
  width: 100%;
  max-width: 360px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
}
.login-card h1 { font-size: 21px; margin-bottom: 6px; font-weight: 600; }
.login-card p { color: var(--muted); font-size: 14px; margin: 0 0 22px; }
.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--muted);
  text-transform: uppercase;
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--ink);
  font-family: inherit;
  font-size: 14px;
}
.field textarea { resize: vertical; min-height: 90px; }
.field input::placeholder, .field textarea::placeholder { color: #8a8fa3; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); outline: none; }
.field-checkbox { display: flex; align-items: center; gap: 8px; }
.field-checkbox input { width: auto; }
.field-checkbox label { margin: 0; text-transform: none; font-size: 14px; color: var(--ink); }
.form-error { color: var(--danger); font-size: 13.5px; margin: -6px 0 14px; }
.form-note { color: var(--muted); font-size: 12.5px; margin: -6px 0 14px; line-height: 1.5; }
.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 0;
  flex-wrap: wrap;
  gap: 12px;
}
.admin-header .brand { font-size: 20px; font-weight: 700; }
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 28px;
}
.panel h2 { font-size: 17px; margin-bottom: 18px; font-weight: 600; }
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px 16px;
  margin-bottom: 8px;
}
.form-actions { display: flex; gap: 10px; margin-top: 8px; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th {
  text-align: left;
  font-size: 12px;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  padding: 0 10px 10px;
  border-bottom: 1px solid var(--border);
}
.admin-table td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  vertical-align: middle;
}
.admin-table img {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border-radius: 8px;
  background: var(--surface-2);
}
.pill {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
}
.pill.is-on { background: rgba(0,0,0,0.12); color: var(--accent); }
.pill.is-off { background: var(--surface-2); color: var(--muted); }
.row-actions { display: flex; gap: 8px; }
.row-actions button { padding: 6px 12px; border-radius: var(--radius-sm); font-size: 12.5px; }
/* --- Licencje cyfrowe / Wysyłka: proste listy z przyciskiem "Usuń" --- */
.sub-count { font-size: 15px; font-weight: 600; margin: 4px 0 10px; }
.simple-list { display: flex; flex-direction: column; gap: 8px; }
.simple-list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  background: var(--surface-2);
  border-radius: var(--radius-sm);
}
.simple-list-row code {
  font-family: 'SFMono-Regular', Consolas, Menlo, monospace;
  font-size: 13px;
  color: var(--ink);
  word-break: break-all;
}
.simple-list-row button { flex: none; padding: 6px 12px; border-radius: var(--radius-sm); font-size: 12.5px; }
@media (max-width: 640px) {
.cart-row-actions { grid-template-columns: 1fr 1.3fr; }
.admin-table thead { display: none; }
.admin-table, .admin-table tbody, .admin-table tr, .admin-table td {
    display: block; width: 100%;
  }
.admin-table tr {
    border: 1px solid var(--border);
    border-radius: 10px;
    margin-bottom: 12px;
    padding: 10px;
  }
.admin-table td { border: none; padding: 6px 4px; }

}
/* --- Logowanie / rejestracja (pigułki) --- */
.auth-screen {
  display: flex;
  justify-content: center;
  padding: 28px 0 64px;
}
.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 36px;
  padding: 10px 10px 28px;
  box-shadow: 0 1px 2px rgba(10, 10, 10, 0.04), 0 24px 48px -24px rgba(10, 10, 10, 0.16);
}
.auth-card .auth-panel { padding: 0 14px; }
/* Przełącznik zakładek: pigułka z przesuwanym suwakiem */
.auth-tabs {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--surface-2);
  border-radius: 999px;
  padding: 5px;
  margin: 0 0 30px;
  isolation: isolate;
}
.auth-tab-thumb {
  position: absolute;
  z-index: -1;
  top: 5px;
  bottom: 5px;
  left: 5px;
  width: calc(50% - 5px);
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 6px 14px -6px rgba(0, 0, 0, 0.5);
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}
.auth-tabs[data-active="register"] .auth-tab-thumb { transform: translateX(100%); }
.auth-tab {
  padding: 14px 10px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-align: center;
  cursor: pointer;
  transition: color 0.25s ease;
  white-space: nowrap;
}
.auth-tab:hover { color: var(--ink); }
.auth-tab.is-active, .auth-tab.is-active:hover { color: var(--accent-ink); }
.auth-tab:focus-visible { outline-offset: -2px; }
.auth-panel { display: none; }
.auth-panel.is-active {
  display: block;
  animation: auth-panel-in 0.36s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes auth-panel-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.auth-title {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}
.auth-sub {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  margin: 0 0 26px;
}
.auth-card .field { margin-bottom: 18px; }
.auth-card .field label {
  padding-left: 20px;
  margin-bottom: 8px;
  font-size: 10.5px;
  letter-spacing: 0.06em;
}
/* Pole tekstowe jako pigułka z ikoną */
.pill-input {
  position: relative;
  display: flex;
  align-items: center;
}
.pill-input-icon {
  position: absolute;
  left: 20px;
  width: 18px;
  height: 18px;
  color: var(--muted);
  display: flex;
  pointer-events: none;
  transition: color 0.2s ease;
}
.pill-input-icon svg { width: 100%; height: 100%; }
.pill-input-icon .icon-mask { width: 100%; height: 100%; background-color: currentColor; }
.auth-card .pill-input input {
  height: 56px;
  padding: 0 22px 0 52px;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  background: #fff;
  font-size: 13.5px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.auth-card .pill-input.has-toggle input { padding-right: 58px; }
.auth-card .pill-input input:hover { border-color: #cfcfd4; }
.auth-card .pill-input input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(10, 10, 10, 0.07);
}
.pill-input:focus-within .pill-input-icon { color: var(--ink); }
.auth-card .pill-input input:focus-visible { outline: none; }
.pill-toggle {
  position: absolute;
  right: 8px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: background-color 0.2s ease, color 0.2s ease;
}
.pill-toggle svg { width: 18px; height: 18px; }
.pill-toggle:hover { background: var(--surface); color: var(--ink); }
.pill-toggle .eye-off { display: none; }
.pill-toggle.is-shown .eye-on { display: none; }
.pill-toggle.is-shown .eye-off { display: block; }
/* Błąd jako miękka pigułka */
.auth-card .form-error {
  margin: 0 0 16px;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--danger-soft);
  color: var(--danger);
  font-size: 12px;
  line-height: 1.45;
  text-align: center;
}
/* Główny przycisk: pigułka */
.auth-submit {
  position: relative;
  width: 100%;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.02em;
  box-shadow: 0 14px 28px -14px rgba(0, 0, 0, 0.6);
  transition: transform 0.15s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}
.auth-submit:hover { box-shadow: 0 18px 32px -14px rgba(0, 0, 0, 0.7); }
.auth-submit:active { transform: scale(0.985); }
.auth-submit:disabled { opacity: 0.55; cursor: not-allowed; box-shadow: none; }
.pw-strength-bar {
  height: 6px;
  border-radius: 999px;
  background: var(--surface-2);
  overflow: hidden;
  margin: -6px 8px 8px;
}
.pw-strength-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  transition: width 0.25s cubic-bezier(0.22, 1, 0.36, 1), background 0.2s ease;
}
.pw-strength-label {
  font-size: 11.5px;
  color: var(--muted);
  margin: 0 0 18px;
  padding-left: 20px;
  min-height: 16px;
}
@media (max-width: 420px) {
.auth-card { border-radius: 32px; }
.auth-card .auth-panel { padding: 0 8px; }
.auth-tab { font-size: 11px; padding: 13px 6px; }

}
/* --- Moje konto (profil) --- */
.account-view {
  max-width: 640px;
  margin: 0 auto;
  padding: 10px 0 60px;
}
.account-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.account-row:last-child { border-bottom: none; }
.account-row span:first-child { color: var(--muted); }
.account-header {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 26px;
}
.account-avatar-wrap {
  position: relative;
  flex: none;
  width: 84px;
  height: 84px;
}
.account-avatar {
  width: 84px;
  height: 84px;
  border-radius: 999px;
  object-fit: cover;
  display: block;
  background: var(--surface-2);
}
.account-avatar-edit {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  font-size: 14px;
}
.account-name-block h1 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 21px;
  font-weight: 600;
  flex-wrap: wrap;
}
.account-email { color: var(--muted); font-size: 13.5px; margin-top: 3px; }
.uid-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,0.1);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.stats-section {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 26px;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.stat-tile {
  background: #ffffff;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.stat-tile img { width: 24px; height: 24px; }
.stat-value { font-size: 15px; font-weight: 700; color: var(--ink); }
.stat-label { font-size: 9.5px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.02em; }
.orders-section h2 { font-size: 17px; font-weight: 600; margin-bottom: 14px; }
.order-card {
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-bottom: 10px;
}
.order-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.order-card-head .order-date { font-size: 12px; color: var(--muted); }
.order-items { font-size: 13.5px; }
.order-item-row { display: flex; justify-content: space-between; padding: 3px 0; }
.order-item-row span:first-child { color: var(--muted); }
.order-shipping { font-size: 12.5px; color: var(--muted); margin: 6px 0; }
.order-total {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}
.account-view .btn-outline.btn-block { margin-top: 8px; }
/* --- Ekran "Płatność zakończona": klucz licencji do skopiowania --- */
.license-card {
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin: 18px 0;
}
.license-card + .license-card { margin-top: -6px; }
.license-product { font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.02em; margin-bottom: 8px; }
/* Klucz + przyciski: w jednej linii, a na wąskim ekranie przyciski schodzą pod klucz. */
.license-key-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}
.license-key-row code {
  flex: 1 1 150px;
  min-width: 0;
  font-family: 'SFMono-Regular', Consolas, Menlo, monospace;
  font-size: 14px;
  color: var(--ink);
  word-break: break-all;
}
.license-actions {
  flex: 0 1 auto;
  display: flex;
  gap: 8px;
}
.license-copy-btn, .license-open-btn {
  flex: 1 1 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease, background 0.15s ease;
}
.license-copy-btn { background: #fff; border-color: var(--border); color: var(--ink); }
.license-copy-btn:hover { border-color: var(--accent); }
.license-open-btn { background: var(--accent); color: var(--accent-ink); box-shadow: 0 8px 16px -10px rgba(0, 0, 0, 0.7); }
.license-open-btn:hover { opacity: 0.88; }
.license-open-btn img { width: 13px; height: 13px; }
.license-copy-btn:active, .license-open-btn:active { transform: scale(0.97); }
.license-copy-btn.is-copied { background: #16a34a; border-color: #16a34a; color: #fff; }
.order-licenses { margin-top: 12px; }
.order-licenses .license-card { margin: 0; }
.order-licenses .license-card + .license-card { margin-top: 10px; }
.license-missing { color: var(--danger); font-size: 13.5px; }
/* --- Newsletter --- */
.newsletter-section {
  background: var(--bg);
  padding: 36px 20px 44px;
  margin-bottom: 0;
}
.newsletter-card {
  max-width: 560px;
  margin: 0 auto;
  padding: 34px 24px 26px;
  text-align: center;
  border-radius: 30px;
  background:
    radial-gradient(120% 90% at 50% 0%, #ffffff 0%, rgba(255, 255, 255, 0) 60%),
    var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 18px 40px -26px rgba(16, 18, 26, 0.28);
}
.newsletter-icon {
  width: 54px;
  height: 54px;
  margin: 0 auto 16px;
  border-radius: 18px;
  background: var(--accent);
  color: var(--accent-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 20px -8px rgba(0, 0, 0, 0.45);
}
.newsletter-icon svg { width: 26px; height: 26px; }
.newsletter-title {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 8px;
}
.newsletter-desc {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.6;
  max-width: 380px;
  margin: 0 auto 22px;
}
/* Pole i przycisk w jednej zaokrąglonej „pigułce” */
.newsletter-form {
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: 440px;
  margin: 0 auto;
  padding: 6px;
  border-radius: 999px;
  background: #fff;
  border: 1.5px solid var(--border);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.newsletter-form:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.06);
}
.newsletter-input {
  flex: 1;
  min-width: 0;
  padding: 11px 6px 11px 16px;
  border: none;
  outline: none;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
}
.newsletter-input::placeholder { color: #9a9aa3; }
.newsletter-btn {
  flex: none;
  padding: 12px 20px;
  border: none;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font: inherit;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: opacity 0.15s ease, transform 0.1s ease;
}
.newsletter-btn:hover { opacity: 0.88; }
.newsletter-btn:active { transform: scale(0.96); }
.newsletter-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.newsletter-msg { margin-top: 14px; font-size: 12.5px; font-weight: 600; }
.newsletter-msg.is-success { color: #1a9c4b; }
.newsletter-msg.is-error { color: var(--danger); }
.newsletter-note { margin: 14px 0 0; font-size: 10.5px; color: #9a9aa3; }
@media (max-width: 420px) {
.newsletter-card { padding: 28px 16px 22px; border-radius: 26px; }
.newsletter-btn { padding: 12px 15px; }

}
/* --- Stopka końcowa: czarna, zaokrąglona u góry, treść wyrównana do lewej ---
   Rozmiary liczone od szerokości ekranu (clamp + vw), więc na telefonie proporcje
   zgadzają się z projektem, a na dużym ekranie nic nie rośnie ponad rozsądny limit.
   Zmienne poniżej pozwalają szybko zmienić wielkość napisów/logo. */
.site-footer {
  --footer-heading: clamp(15px, 4.1vw, 18px);
  --footer-text: clamp(10.5px, 2.75vw, 12.5px);
  --footer-pad-x: clamp(24px, 6.7vw, 48px);
  --footer-radius: clamp(34px, 9.5vw, 56px);

  margin-top: auto;
  background: #000;
  color: #fff;
  border-radius: var(--footer-radius) var(--footer-radius) 0 0;
  padding: clamp(46px, 14vw, 72px) var(--footer-pad-x)
           calc(clamp(30px, 8vw, 44px) + env(safe-area-inset-bottom, 0px));
}
.site-footer a:focus-visible { outline-color: #fff; }
.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
}
.footer-cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(28px, 7.6vw, 38px);
  text-align: left;
}
.footer-title {
  margin: 0 0 clamp(10px, 3vw, 14px);
  font-size: var(--footer-heading);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0;
  text-transform: uppercase;
  color: #fff;
}
.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: var(--footer-text);
  line-height: 1.4;
}
.footer-list li + li { margin-top: 0; }
.footer-list a, .footer-list span.footer-line {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  padding: clamp(4px, 1.25vw, 6px) 0;
  color: #fff;
  font-weight: 400;
  transition: opacity 0.15s ease;
}
.footer-list a:hover { opacity: 0.7; }
/* Wiersz kontaktu: tekst + mały przycisk obok (KOPIUJ przy e-mailu, OTWÓRZ przy TikToku / Instagramie). */
.footer-contact {
  display: grid;
  grid-template-columns: max-content max-content;
  justify-content: start;
  align-items: center;
  column-gap: 0.9em;
}
.footer-row { display: contents; }
.footer-list span.footer-line { cursor: default; }
.footer-list .footer-mini-btn {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.28em 0.95em;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font-family: inherit;
  font-size: 0.78em;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}
.footer-list .footer-mini-btn:hover { opacity: 1; background: #fff; color: #000; border-color: #fff; }
.footer-list .footer-mini-btn:active { transform: scale(0.95); }
.footer-list .footer-mini-btn.is-done { background: #fff; color: #000; border-color: #fff; }
.footer-open-icon {
  display: block;
  flex: none;
  width: 1.05em;
  height: 1.05em;
  pointer-events: none;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: clamp(38px, 10.5vw, 60px);
}
.footer-logo-link { display: inline-flex; }
.footer-logo {
  width: clamp(150px, 49vw, 210px);
  height: auto;
}
.footer-copy {
  margin: clamp(18px, 6vw, 26px) auto 0;
  max-width: 21em;
  text-align: center;
  font-size: clamp(9.5px, 2.5vw, 11.5px);
  line-height: 1.6;
  text-wrap: balance;
  color: #fff;
}
@media (min-width: 860px) {
.footer-cols {
    grid-template-columns: repeat(3, max-content);
    justify-content: space-between;
    gap: 40px;
  }
.footer-brand { margin-top: 64px; }

}
/* --- Strona produktu (product/index.html) --- */
.product-page {
  max-width: 640px;
  padding-top: 0;
}
.product-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 0;
}
.product-topbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}
.pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 600;
  font-size: 12.5px;
  border: none;
  white-space: nowrap;
}
.pill-btn:hover { background: var(--surface-2); }
.pill-btn .icon-mask { width: 18px; height: 18px; background-color: var(--ink); }
.like-btn.is-liked { color: var(--accent); }
.like-btn.is-liked .icon-mask { background-color: var(--accent); }
.product-image-wrap {
  position: relative;
  border-radius: 32px;
  overflow: hidden;
  background: var(--surface);
  aspect-ratio: 1 / 1;
  margin-bottom: 20px;
  /* Statyczne zdjęcie — celowo bez pinch-zoom i przeciągania w bok (karuzeli),
     żeby zachowanie było proste i przewidywalne na telefonie. */
  touch-action: pan-y;
}
.product-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  user-select: none;
  -webkit-user-drag: none;
}
.product-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}
.product-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  font-size: 11.5px;
}
.product-badge .icon-mask { width: 15px; height: 15px; background-color: var(--accent-ink); }
.product-badge.is-out-of-stock { background: var(--surface-2); color: var(--muted); }
.product-badge.is-out-of-stock .icon-mask { background-color: var(--muted); }
.product-price-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 6px;
}
.product-price {
  font-size: 26px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1.1;
}
.product-shipping-note {
  font-size: 12px;
  color: var(--muted);
}
.product-title {
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin-bottom: 18px;
}
.product-copy-link-btn {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: var(--surface);
}
.product-copy-link-btn:hover { background: var(--surface-2); }
.product-copy-link-btn .icon-mask { width: 16px; height: 16px; background-color: var(--ink); }
.product-copy-link-btn.is-copied { background: rgba(0,0,0,0.12); }
.product-copy-link-btn.is-copied .icon-mask { background-color: var(--accent); }
.product-description-section {
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid var(--border);
}
.product-description-label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--muted);
  margin: 0 0 10px;
}
.product-description {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.65;
  white-space: pre-line;
}
.product-variants {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}
.variant-picker {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 20px;
  border-radius: 999px;
  background: var(--surface);
  overflow: hidden;
}
.variant-picker .icon-mask { width: 18px; height: 18px; background-color: var(--muted); flex: none; }
.variant-picker-label {
  font-weight: 600;
  font-size: 12.5px;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.variant-picker-label .variant-picker-value { color: var(--accent); }
.variant-picker.is-chosen { background: rgba(0,0,0,0.08); }
.variant-picker-select {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  border: none;
  cursor: pointer;
  font-size: 16px; /* zapobiega auto-zoomowi na iOS przy otwarciu selecta */
}
.product-bottom-bar {
  display: flex;
  align-items: stretch;
  gap: 12px;
  margin: 0 0 8px;
}
.product-bottom-bar .product-variants {
  flex: 1;
  margin-bottom: 0;
  min-width: 0;
}
.product-addtocart-btn {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 92px;
  min-height: 52px;
  padding: 15px 22px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  font-weight: 700;
  font-size: 12.5px;
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.1s ease;
}
.product-addtocart-btn .icon-mask { width: 22px; height: 22px; background-color: var(--muted); }
.product-addtocart-btn:not(:disabled) {
  background: var(--accent);
  color: var(--accent-ink);
  cursor: pointer;
}
.product-addtocart-btn:not(:disabled) .icon-mask { background-color: var(--accent-ink); }
.product-addtocart-btn:not(:disabled):active { transform: scale(0.96); }
.product-addtocart-btn:disabled { cursor: not-allowed; }
.product-addtocart-btn.is-full { width: 100%; }
.product-addtocart-btn.is-added { background: #16a34a; color: #fff; }
.product-addtocart-btn.is-added .icon-mask { background-color: #fff; }
.product-hint {
  font-size: 12.5px;
  color: var(--muted);
  margin: 0 0 8px;
}
.product-not-found {
  padding: 80px 20px;
  text-align: center;
  color: var(--muted);
}
/* --- Sekcja "Polecane" na dole strony produktu — losowe produkty z kategorii LIQUID.
   Karuzela: pozioma, przewijana dotykiem (scroll-snap), "wylewa się" do krawędzi
   kontenera (ujemny margines), żeby kolejna karta lekko wystawała i sugerowała,
   że można przewinąć dalej. Strzałki pojawiają się tylko na urządzeniach z myszką. --- */
.product-recommended {
  margin-top: 44px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.product-recommended-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--muted);
  margin: 0 0 16px;
}
.carousel-wrap {
  position: relative;
}
.product-recommended-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-behavior: smooth;
  margin: 0 -20px;
  padding: 2px 20px 8px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.product-recommended-track::-webkit-scrollbar { display: none; }
.product-recommended-track .card {
  flex: 0 0 auto;
  width: 42%;
  scroll-snap-align: start;
}
@media (min-width: 480px) {
.product-recommended-track .card { width: 200px; }

}
.carousel-arrow {
  display: none;
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: var(--bg);
  color: var(--ink);
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(16, 18, 26, 0.16), 0 0 0 1px var(--border);
  z-index: 2;
  transition: background-color 0.15s ease, transform 0.1s ease;
}
.carousel-arrow:hover { background: var(--surface); }
.carousel-arrow:active { transform: translateY(-50%) scale(0.92); }
.carousel-arrow-prev { left: -6px; }
.carousel-arrow-next { right: -6px; }
@media (hover: hover) and (pointer: fine) {
.carousel-arrow { display: inline-flex; }

}
/* --- Powiadomienie "Dodano do koszyka" (product/index.html) --- */
.cart-toast {
  position: fixed;
  left: 50%;
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  z-index: 1000;
  width: min(94vw, 440px);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 10px 10px 16px;
  border-radius: 26px;
  background: var(--surface-2);
  box-shadow: 0 12px 32px rgba(16, 18, 26, 0.16), 0 2px 10px rgba(16, 18, 26, 0.08);
  transform: translate(-50%, calc(100% + 40px));
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease;
  pointer-events: none;
}
.cart-toast.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
  pointer-events: auto;
}
.cart-toast-logo {
  flex: none;
  width: 36px;
  height: 36px;
  object-fit: contain;
}
.cart-toast-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.cart-toast-title {
  font-weight: 800;
  font-size: 13px;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cart-toast-name {
  font-size: 11.5px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cart-toast-cta {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 18px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 600;
  font-size: 12px;
  white-space: nowrap;
  transition: background-color 0.15s ease, transform 0.1s ease;
}
.cart-toast-cta:hover { background: var(--bg); }
.cart-toast-cta:active { transform: scale(0.96); }
.cart-toast-cta .icon-mask { width: 16px; height: 16px; background-color: var(--muted); }
@media (max-width: 480px) {
.cart-toast { padding: 9px 9px 9px 14px; gap: 10px; border-radius: 22px; }
.cart-toast-logo { width: 32px; height: 32px; }
.cart-toast-cta { padding: 11px 14px; border-radius: 16px; font-size: 12.5px; }

}
/* --- Polubione (polubione/index.html) — reużywa .grid / .card ze strony głównej --- */
.unlike-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(16, 18, 26, 0.55);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.unlike-btn .icon-mask { width: 17px; height: 17px; background-color: #fff; }
@media (max-width: 480px) {
.product-title { font-size: 17px; }
.product-price { font-size: 23px; }

}
/* --- Ograniczenie animacji dla osób z ustawieniem "reduced motion" w systemie ---
   (dostępność — wyłącza dekoracyjne animacje/przejścia, zostawiając stronę w pełni
   funkcjonalną i natychmiast czytelną). */
@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;
  }

}
/* ikony kategorii z plików (assets/*.svg) */
/* FAQ */
.faq-section {max-width:var(--container);margin:56px auto 0;padding:0 20px}
.faq-title {font-size:21px;font-weight:700;margin-bottom:18px}
/* Karta pytania: mocno zaokrąglone rogi (spójne z resztą interfejsu — przyciski,
   karty produktów). Płynna animacja otwierania/zamykania odpowiedzi (grid-template-rows
   0fr -> 1fr) zamiast natywnego, "skokowego" <details>. Otwarcie nowego pytania
   automatycznie i płynnie zamyka poprzednio otwarte (patrz js/faq.js). */
.faq-item {
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--surface);
  margin-bottom: 10px;
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.faq-item.is-open { border-color: var(--accent); box-shadow: 0 6px 20px rgba(16,18,26,0.06); }
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  padding: 18px 20px;
  font-weight: 600;
  font-size: 13px;
  text-align: left;
  background: none;
  border: none;
  color: inherit;
}
.faq-icon { position: relative; width: 18px; height: 18px; flex: none; }
.faq-icon::before, .faq-icon::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1), opacity 0.3s ease;
}
.faq-icon::before { width: 14px; height: 2px; transform: translate(-50%,-50%); }
.faq-icon::after { width: 2px; height: 14px; transform: translate(-50%,-50%); }
.faq-item.is-open .faq-icon::after { transform: translate(-50%,-50%) rotate(90deg); opacity: 0; }
.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.38s cubic-bezier(0.4,0,0.2,1);
}
.faq-item.is-open .faq-answer { grid-template-rows: 1fr; }
.faq-answer-inner { overflow: hidden; min-height: 0; }
.faq-item p { margin: 0; padding: 0 20px 18px; color: var(--muted); font-size: 12.5px; line-height: 1.7; }
/* --- Strony dokumentów (terms / privacy / refund) --- */
.legal-page { max-width: 760px; }
.legal-title {
  font-size: clamp(20px, 5.8vw, 27px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 6px 0 8px;
}
.legal-updated {
  font-size: 11px;
  color: var(--muted);
  margin: 0 0 30px;
}
.legal-section { margin: 0 0 26px; }
.legal-section h2 {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 8px;
  color: var(--ink);
}
.legal-section p, .legal-section li {
  font-size: 12px;
  line-height: 1.85;
  color: #3b3f46;
}
.legal-section p { margin: 0 0 10px; }
.legal-section ul { margin: 0 0 10px; padding-left: 20px; }
.legal-section li { margin-bottom: 4px; }
.legal-section a { text-decoration: underline; text-underline-offset: 3px; }
/* --- Liczby i wykrzykniki ---
   .num  — liczby w nazwach produktów oraz w licznikach sekcji („Filtry [5]”, „Produkty [77]”):
           dziedziczą KAŻDĄ cechę otaczającego tekstu (czcionkę, wagę, rozmiar, rozstaw liter),
           więc są dokładnie tak samo pogrubione i tak samo szerokie jak litery w tej samej nazwie.
           Wymuszamy też jednakowe (nie-tabelaryczne, nie-old-style) cyfry i brak syntetycznego
           pogrubiania/pochylania, żeby żadna przeglądarka nie rysowała ich inaczej niż reszty.
   .excl — wykrzyknik w napisach (np. „Dodano do koszyka!”): cienki, mimo pogrubionego tekstu. */
.num {
  font-family: inherit;
  font-weight: inherit;
  font-style: inherit;
  font-size: inherit;
  font-stretch: inherit;
  letter-spacing: inherit;
  font-variant-numeric: lining-nums proportional-nums;
  font-feature-settings: "lnum" 1, "pnum" 1;
}
.excl { font-weight: 400; }
/* --- Ceny: liczba i waluta („20.00 ZŁ”) — ta sama czcionka co cała strona, cała pogrubiona --- */
.card-price, .cart-row-price, .summary-row .value, .product-price, .stat-value, .order-total span:last-child {
  font-family: var(--font-main);
  font-weight: 700;
}
.product-price { font-weight: 800; }
/* ==========================================================================
   Koszyk — nowy układ (karty, wybór adresu, podsumowanie z płatnością)
   ========================================================================== */
.cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 6px 0 22px;
}
.cart-head .page-title { margin: 0; }
.cart-count {
  flex: none;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 14px;
}
.cart-count:empty { display: none; }
.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
.cart-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.cart-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 26px;
  padding: 20px;
}
.cart-card-items { padding-top: 6px; padding-bottom: 6px; }
.cart-card-address:empty { display: none; }
.cart-layout.is-empty { grid-template-columns: minmax(0, 1fr); }
.cart-layout.is-empty .cart-aside, .cart-layout.is-empty .cart-card-address { display: none; }
.cart-layout.is-empty .cart-card-items { border: 0; padding: 0; background: none; }
@media (min-width: 900px) {
.cart-layout { grid-template-columns: minmax(0, 1fr) 390px; gap: 24px; }
.cart-aside { position: sticky; top: 16px; }
.cart-card { padding: 26px; }
.cart-card-items { padding-top: 8px; padding-bottom: 8px; }

}
.cart-loading { color: var(--muted); padding: 22px 0; }
/* --- Pozycje koszyka --- */
.cart-list { display: flex; flex-direction: column; gap: 0; }
.cart-item {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 16px;
  padding: 18px 0;
}
.cart-item + .cart-item { border-top: 1px solid var(--border); }
.cart-item-image {
  display: block;
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
}
.cart-item-image img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-info { display: flex; flex-direction: column; min-width: 0; }
.cart-item-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.cart-item-name { font-size: 12.5px; font-weight: 600; text-transform: uppercase; line-height: 1.4; min-width: 0; }
.cart-item-remove {
  flex: none;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin: -5px -7px 0 0;
  border-radius: 10px;
  color: var(--muted);
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.1s ease;
}
.cart-item-remove svg { width: 18px; height: 18px; }
.cart-item-remove:hover { background: var(--danger-soft); color: var(--danger); }
.cart-item-remove:active { transform: scale(0.92); }
.cart-item-meta { font-size: 10.5px; color: var(--muted); text-transform: uppercase; margin-top: 3px; }
.cart-item-meta span { color: var(--ink); font-weight: 600; }
.cart-item-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 12px;
}
.qty-stepper {
  display: inline-flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
}
.qty-stepper button {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 17px;
  font-weight: 600;
  line-height: 1;
  transition: background-color 0.15s ease, transform 0.1s ease;
}
.qty-stepper button:hover { background: #fff; }
.qty-stepper button:active { transform: scale(0.88); }
.qty-stepper span { min-width: 28px; text-align: center; font-size: 13px; font-weight: 700; }
.cart-item-price {
  text-align: right;
  font-family: var(--font-main);
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}
.cart-item-price small { display: block; font-size: 10px; font-weight: 500; color: var(--muted); margin-top: 3px; }
@media (min-width: 600px) {
.cart-item { grid-template-columns: 112px minmax(0, 1fr); gap: 20px; }
.cart-item-name { font-size: 13.5px; }
.cart-item-price { font-size: 17px; }

}
/* --- Pusty koszyk --- */
/* Przy pustym koszyku nagłówek „Twój koszyk” by się dublował z napisem „Twój koszyk jest pusty”. */
.container:has(.cart-empty) .cart-head { display: none; }
.cart-empty {
  text-align: center;
  padding: 28px 8px 8px;
  font-family: var(--font-main);
}
.cart-empty h2 {
  margin: 0 0 12px;
  font-family: var(--font-main);
  font-size: clamp(16px, 5vw, 26px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-wrap: balance;
}
.cart-empty p {
  margin: 0 auto;
  max-width: 17em;
  font-family: var(--font-main);
  font-size: clamp(13px, 3.8vw, 16px);
  font-weight: 300;
  line-height: 1.55;
  color: var(--ink);
}
/* Zdjęcie koszyka + świetlny pasek przesuwający się po zdjęciu. */
.cart-empty-photo {
  position: relative;
  width: min(100%, 440px);
  margin: 18px auto 0;
  overflow: hidden;
  -webkit-user-select: none;
  user-select: none;
}
.cart-empty-photo img {
  display: block;
  width: 100%;
  height: auto;
  mix-blend-mode: multiply; /* białe tło zdjęcia wtapia się w tło strony */
  pointer-events: none;
}
/* „screen” rozjaśnia tylko ciemne/kolorowe części (koszyk, naklejki, rączki) — na białym tle pasek jest niewidoczny. */
.cart-empty-shine {
  position: absolute;
  inset: 0;
  pointer-events: none;
  mix-blend-mode: screen;
  background:
    linear-gradient(105deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0) 38%,
      rgba(255, 255, 255, 0.28) 45%,
      rgba(255, 255, 255, 0.85) 50%,
      rgba(255, 255, 255, 0.28) 55%,
      rgba(255, 255, 255, 0) 62%,
      rgba(255, 255, 255, 0) 100%);
  background-size: 260% 100%;
  background-repeat: no-repeat;
  background-position: 130% 0;
  animation: cart-empty-shine 3.6s cubic-bezier(.45, .05, .35, 1) infinite;
}
@keyframes cart-empty-shine {
  0%   { background-position: 130% 0; }
  55%  { background-position: -30% 0; }
  100% { background-position: -30% 0; }
}
@media (prefers-reduced-motion: reduce) {
.cart-empty-shine { animation: none; background-position: 40% 0; }

}
/* --- Nagłówek karty (np. „Adres dostawy”) --- */
.cart-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.cart-card-head h2 { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; }
.cart-card-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--surface); }
.cart-card-icon svg { width: 17px; height: 17px; }
.cart-card-icon .icon-mask { width: 16px; height: 16px; background-color: var(--ink); }
.icon-mask.is-inline { width: 14px; height: 14px; vertical-align: -2px; margin-right: 6px; background-color: currentColor; }
.cart-card-note { font-size: 12.5px; color: var(--muted); line-height: 1.6; margin: -4px 0 16px; }
/* --- Adresy: karty wyboru, formularz, przyciski (koszyk + profil) --- */
.addr-options { display: flex; flex-direction: column; gap: 10px; }
.addr-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 16px;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}
.addr-option:hover { border-color: #b9b9c0; }
.addr-option:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.addr-option.is-selected { border-color: var(--accent); background: var(--surface); box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05); }
.addr-radio {
  position: relative;
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid #c4c4ca;
  background: #fff;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.addr-radio::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: #fff;
  transform: scale(0);
  transition: transform 0.18s ease;
}
.addr-option.is-selected .addr-radio { border-color: var(--accent); background: var(--accent); }
.addr-option.is-selected .addr-radio::after { transform: scale(1); }
.addr-body { flex: 1; min-width: 0; }
.addr-label {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 3px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.addr-badge {
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.07em;
}
.addr-line { font-size: 13px; line-height: 1.45; word-break: break-word; }
.addr-line.is-muted { color: var(--muted); }
.addr-link {
  padding: 4px 2px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}
.addr-link:hover { color: var(--ink); }
.addr-link.is-danger:hover, .addr-link.is-danger.is-armed { color: var(--danger); }
.addr-add {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 12px;
  padding: 14px;
  border: 1.5px dashed #c4c4ca;
  border-radius: 20px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}
.addr-add svg { width: 15px; height: 15px; }
.addr-add:hover { border-color: var(--accent); color: var(--ink); background: var(--surface); }
.addr-form-actions { display: flex; gap: 10px; margin-top: 18px; }
.addr-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.addr-span-2 { grid-column: 1 / -1; }
.addr-field label {
  display: block;
  margin-bottom: 6px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}
.addr-field label em { font-style: normal; font-weight: 500; letter-spacing: 0; text-transform: none; opacity: 0.85; }
.addr-field input {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  color: var(--ink);
  font-size: 13.5px;
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}
.addr-field input::placeholder { color: #9a9aa3; }
.addr-field input:hover { border-color: #cfcfd4; }
.addr-field input:focus { outline: none; border-color: var(--accent); background: #fff; box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06); }
.addr-check { position: relative; display: flex; align-items: flex-start; gap: 12px; margin-top: 16px; font-size: 13px; cursor: pointer; }
.addr-check input { position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none; }
.addr-check-box {
  position: relative;
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  border: 1.5px solid #c4c4ca;
  border-radius: 7px;
  background: #fff;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.addr-check-box::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 3.5px;
  width: 8px;
  height: 4.5px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
  opacity: 0;
  transition: opacity 0.12s ease;
}
.addr-check input:checked + .addr-check-box { background: var(--accent); border-color: var(--accent); }
.addr-check input:checked + .addr-check-box::after { opacity: 1; }
.addr-check input:focus-visible + .addr-check-box { outline: 2px solid var(--accent); outline-offset: 2px; }
.addr-check-text small { display: block; margin-top: 2px; font-size: 11.5px; color: var(--muted); }
.addr-error { margin-top: 12px; color: var(--danger); font-size: 12.5px; line-height: 1.5; }
.addr-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  transition: opacity 0.15s ease, background-color 0.15s ease, transform 0.1s ease;
}
.addr-btn:active { transform: scale(0.97); }
.addr-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.addr-btn-primary { flex: 1; background: var(--accent); color: var(--accent-ink); }
.addr-btn-primary:hover { opacity: 0.88; }
.addr-btn-ghost { background: var(--surface); border: 1px solid var(--border); color: var(--ink); }
.addr-btn-ghost:hover { background: var(--surface-2); }
.addr-btn-small { padding: 9px 16px; font-size: 11.5px; background: var(--accent); color: var(--accent-ink); }
.addr-btn-small:hover { opacity: 0.88; }
/* Profil: sekcja „Adresy dostawy” */
.addr-section { margin-bottom: 26px; }
.addr-section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.addr-section-head h2 { font-size: 17px; font-weight: 600; }
.addr-section-sub { margin: 0 0 14px; font-size: 12px; line-height: 1.55; color: var(--muted); }
.addr-list { display: flex; flex-direction: column; gap: 10px; }
.addr-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: #fff;
}
.addr-card.is-default { border-color: var(--accent); }
.addr-actions { display: flex; flex-wrap: wrap; gap: 4px 18px; padding-top: 12px; border-top: 1px dashed var(--border); }
.addr-empty {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border: 1px dashed var(--border);
  border-radius: 20px;
  color: var(--muted);
}
.addr-empty svg { flex: none; width: 30px; height: 30px; }
.addr-empty strong { display: block; color: var(--ink); font-size: 13px; margin-bottom: 2px; }
.addr-empty span { font-size: 12px; line-height: 1.5; }
.addr-form-wrap { margin-top: 12px; }
.addr-form-card { padding: 18px; border: 1px solid var(--border); border-radius: 22px; background: var(--surface); }
.addr-form-card h3 { margin-bottom: 14px; font-size: 14px; font-weight: 600; }
.addr-form-card .addr-field input { background: #fff; }
.addr-form-card .addr-btn-ghost { background: #fff; }
/* --- Podsumowanie / płatność --- */
.cart-summary-card .summary-title { margin: 0 0 16px; font-size: 16px; font-weight: 600; }
.cart-summary-card .promo-row { display: flex; gap: 8px; margin-bottom: 18px; }
.cart-summary-card .promo-row input {
  flex: 1;
  min-width: 0;
  padding: 12px 16px;
  border-radius: 999px;
  background: var(--surface);
  font-size: 12.5px;
}
.cart-summary-card .promo-row input:focus { background: #fff; box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06); }
.promo-btn {
  flex: none;
  padding: 0 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-2);
  font-size: 12px;
  font-weight: 600;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.promo-btn:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.cart-summary-card .promo-msg { margin: -8px 0 16px; padding-left: 4px; font-size: 12px; }
.summary-rows { display: flex; flex-direction: column; }
.cart-summary-card .summary-row { padding: 8px 0; font-size: 11.5px; color: var(--muted); }
.cart-summary-card .summary-row .value { color: var(--ink); font-size: 13px; }
.cart-summary-card .summary-row.is-discount .value { color: var(--danger); }
.summary-row em { font-style: normal; text-transform: none; margin-left: 6px; color: var(--danger); opacity: 0.85; }
.summary-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px dashed var(--border);
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
}
.summary-total .value { font-family: var(--font-main); font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
.summary-ship {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 18px;
  padding: 13px 14px;
  border-radius: 18px;
  background: var(--surface);
  font-size: 12px;
  line-height: 1.5;
}
.summary-ship-icon { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #fff; }
.summary-ship-icon svg { width: 16px; height: 16px; }
.summary-ship-icon .icon-mask { width: 15px; height: 15px; background-color: var(--ink); }
.summary-ship.is-missing .summary-ship-icon .icon-mask { background-color: var(--danger); }
.summary-ship strong { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.summary-ship span { color: var(--muted); word-break: break-word; }
.summary-ship.is-missing { background: var(--danger-soft); }
.summary-ship.is-missing strong, .summary-ship.is-missing span { color: var(--danger); }
.summary-ship.is-missing .summary-ship-icon { background: #fff; color: var(--danger); }
.cart-summary-card .checkout-cta { margin-top: 18px; }
.checkout-btn { gap: 10px; border-radius: 999px; }
.checkout-btn-icon { display: inline-flex; }
.checkout-btn-icon svg { width: 16px; height: 16px; }
.checkout-note { margin: 12px 0 0; text-align: center; font-size: 11px; line-height: 1.6; color: var(--muted); }
.cart-summary-card .checkout-error { text-align: center; font-size: 12.5px; }
/* Delikatne „potrząśnięcie” karty adresu, gdy próbujemy płacić bez adresu. */
@keyframes cart-shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}
.cart-card.is-shaking { animation: cart-shake 0.4s ease; border-color: var(--danger); }
@media (prefers-reduced-motion: reduce) {
.cart-card.is-shaking { animation: none; }
.addr-radio::after { transition: none; }

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

}
/* =====================================================================
   Polubione — nowy wygląd
   ===================================================================== */
.fav-hero {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 4px 0 26px;
  padding: 20px 18px;
  border-radius: 26px;
  background: var(--surface);
  border: 1px solid var(--border);
}
.fav-hero-icon {
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 18px;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 20px -8px rgba(0, 0, 0, 0.45);
}
.fav-hero-icon .icon-mask { width: 24px; height: 24px; background-color: #fff; }
.fav-hero-text { min-width: 0; flex: 1; }
.fav-hero-title { margin: 0; font-size: 20px; font-weight: 700; line-height: 1.2; }
.fav-hero-sub { margin: 4px 0 0; font-size: 12px; color: var(--muted); }
.fav-hero-count {
  flex: none;
  min-width: 38px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--border);
  font-weight: 700;
  font-size: 13px;
  text-align: center;
}
.fav-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
@media (min-width: 640px) {
.fav-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }

}
@media (min-width: 980px) {
.fav-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

}
.fav-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 8px 8px 10px;
  border-radius: 24px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 12px 28px -22px rgba(16, 18, 26, 0.45);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease, opacity 0.28s ease;
  animation: card-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: var(--d, 0ms);
}
.fav-card:hover { transform: translateY(-3px); box-shadow: 0 18px 32px -20px rgba(16, 18, 26, 0.5); }
.fav-card.is-removing { opacity: 0; transform: scale(0.94); pointer-events: none; }
.fav-card-media {
  position: relative;
  border-radius: 17px;
  overflow: hidden;
  background: transparent;
}
.fav-card-media img { width: 100%; display: block; }
.fav-card .card-badge { top: 8px; left: 8px; }
.fav-remove {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 4px 12px rgba(16, 18, 26, 0.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.12s ease;
}
.fav-remove .icon-mask { width: 17px; height: 17px; background-color: var(--danger); }
.fav-remove:active { transform: scale(0.88); }
.fav-card-body { padding: 11px 6px 0; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.fav-card-name {
  font-size: 10.5px;
  font-weight: 500;
  line-height: 1.45;
  text-transform: uppercase;
  color: var(--ink);
}
.fav-card-price { font-weight: 700; font-size: 15px; }
.fav-card-action {
  margin: 12px 6px 2px;
  padding: 11px 12px;
  border: none;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font: inherit;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.1s ease;
}
.fav-card-action .icon-mask { width: 15px; height: 15px; background-color: currentColor; }
.fav-card-action:active { transform: scale(0.96); }
.fav-card-action.is-added { background: #16a34a; }
.fav-card-action.is-ghost { background: var(--surface); color: var(--ink); border: 1px solid var(--border); }
.fav-empty {
  padding: 48px 22px 44px;
  text-align: center;
  border-radius: 28px;
  background: var(--surface);
  border: 1px dashed #cfcfd4;
}
.fav-empty-icon {
  width: 68px;
  height: 68px;
  margin: 0 auto 18px;
  border-radius: 24px;
  background: #fff;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}
.fav-empty-icon .icon-mask { width: 30px; height: 30px; background-color: #c4c4cb; }
.fav-empty h2 { margin: 0 0 6px; font-size: 17px; }
.fav-empty p { margin: 0 auto 22px; max-width: 300px; font-size: 12.5px; line-height: 1.6; color: var(--muted); }
.fav-empty .fav-cta {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
/* =====================================================================
   Adres: przełącznik „Adres / Paczkomat” + mapka InPost
   ===================================================================== */
.lk-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  margin-bottom: 16px;
  border-radius: 999px;
  background: var(--surface-2);
}
.lk-toggle button {
  padding: 10px 8px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}
.lk-toggle button.is-active { background: #fff; color: var(--ink); box-shadow: 0 2px 8px rgba(16, 18, 26, 0.14); }
.lk-pick {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  padding: 14px 16px;
  border: 1.5px dashed #b9b9c0;
  border-radius: 18px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.lk-pick:hover { border-color: var(--accent); background: var(--surface); }
.lk-pick svg { width: 18px; height: 18px; flex: none; }
.lk-chosen {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px;
  border-radius: 18px;
  background: #fff;
  border: 1.5px solid var(--accent);
}
.lk-chosen-icon {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: #ffc20e;
  color: #111;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lk-chosen-icon svg { width: 22px; height: 22px; }
.lk-chosen-body { flex: 1; min-width: 0; }
.lk-chosen-code { font-weight: 700; font-size: 13.5px; }
.lk-chosen-addr { margin-top: 2px; font-size: 12px; line-height: 1.45; color: var(--muted); word-break: break-word; }
.lk-change {
  flex: none;
  border: none;
  background: none;
  padding: 6px 2px;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.lk-change:hover { color: var(--ink); }
.lk-manual-note { margin: 0 0 12px; font-size: 11.5px; line-height: 1.55; color: var(--muted); }
.lk-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(10, 10, 12, 0.55);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  animation: lk-fade 0.2s ease both;
}
@keyframes lk-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes lk-rise { from { transform: translateY(40px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.lk-sheet {
  width: 100%;
  max-width: 640px;
  height: min(86dvh, 720px);
  display: flex;
  flex-direction: column;
  border-radius: 28px 28px 0 0;
  background: #fff;
  overflow: hidden;
  animation: lk-rise 0.3s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@media (min-width: 700px) {
.lk-modal { align-items: center; padding: 24px; }
.lk-sheet { border-radius: 28px; height: min(80dvh, 680px); }

}
.lk-sheet-head {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px 14px;
  border-bottom: 1px solid var(--border);
}
.lk-sheet-head h3 { margin: 0; font-size: 15px; font-weight: 700; }
.lk-sheet-head p { margin: 2px 0 0; font-size: 11.5px; color: var(--muted); }
.lk-close {
  flex: none;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 999px;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.lk-close svg { width: 16px; height: 16px; }
.lk-map { position: relative; flex: 1; min-height: 0; background: var(--surface); }
.lk-map inpost-geowidget { display: block; width: 100%; height: 100%; }
.lk-map-msg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--muted);
}
body.lk-lock { overflow: hidden; }
/* --- Panel admina: konta użytkowników i saldo --- */
.user-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px 16px;
  align-items: center;
  padding: 14px 16px;
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  transition: background-color 0.4s ease;
}
.user-row.is-updated { background: #e3f6e9; }
.user-row-info { min-width: 0; }
.user-row-name { font-size: 14px; font-weight: 600; word-break: break-word; }
.user-row-uid { margin-left: 6px; font-size: 11px; font-weight: 500; color: var(--muted); }
.user-row-email { margin-top: 2px; font-size: 12.5px; color: var(--muted); word-break: break-all; }
.user-row-balance { justify-self: end; font-size: 17px; font-weight: 700; white-space: nowrap; }
.user-row-actions { grid-column: 1 / -1; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.user-row-amount {
  flex: 1 1 120px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  font-family: inherit;
  font-size: 14px;
}
.user-row-amount:focus { outline: none; border-color: var(--accent); }
.user-row-msg { grid-column: 1 / -1; font-size: 12.5px; color: var(--danger); }
.user-row-msg.is-ok { color: #1a9c4b; }
/* ==========================================================================
   Ikonki z plików (maski) — portfel, ciasteczko, newsletter
   ========================================================================== */
.icon-mask.icon-cookie { -webkit-mask-image: url("../assets/cookie.svg"); mask-image: url("../assets/cookie.svg"); }
.icon-mask.icon-newsletter { -webkit-mask-image: url("../assets/newsletter.svg"); mask-image: url("../assets/newsletter.svg"); }
.newsletter-icon .icon-mask { width: 28px; height: 28px; background-color: currentColor; }
/* ==========================================================================
   Okienko z saldem (portfel) — nagłówek profilu, za koszykiem
   ========================================================================== */
/* tak samo wysokie jak szare kółka z ikonami obok */
@media (max-width: 480px) {
.site-header-inner { gap: 8px; }
.header-actions { gap: 6px; }
.header-actions .icon-btn { width: 38px; height: 38px; }
.header-actions .icon-btn .icon-mask { width: 21px; height: 21px; }
.header-actions .icon-btn .icon-mask.icon-ticket { width: 23px; height: 23px; }
.header-actions .icon-btn .icon-mask.icon-profile { width: 22px; height: 22px; }
/* Na profilu z saldem przycisk „Powrót” zwija się do samej strzałki, żeby wszystko się zmieściło. */

}
@media (max-width: 374px) {
.header-actions { gap: 4px; }
.header-actions .icon-btn { width: 36px; height: 36px; }
.header-actions .icon-btn .icon-mask { width: 20px; height: 20px; }
.header-actions .icon-btn .icon-mask.icon-ticket { width: 22px; height: 22px; }
.header-actions .icon-btn .icon-mask.icon-profile { width: 21px; height: 21px; }

}
/* ==========================================================================
   Karty produktów na stronie głównej — wybór opcji + przycisk koszyka (jak na stronie produktu)
   ========================================================================== */
.card-link { display: block; color: inherit; text-decoration: none; }
.card-link-text { display: flex; flex-direction: column; gap: 4px; }
/* Wygląd paska zakupu na karcie (pigułki „Wybierz kolor” + „Dodaj do koszyka”) — patrz sekcja „Karty produktów — nowy projekt” na końcu pliku. */
.card-extra { display: none; }
.card-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.card-chip {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.card-chip.is-fast { background: #e3f6e9; border-color: #c4ecd1; color: #15803d; }
.card-desc {
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-transform: none;
}
/* ==========================================================================
   Koszyk — płatność z salda, ekran po zakupie
   ========================================================================== */
.checkout-btn .icon-mask { width: 18px; height: 18px; background-color: var(--accent-ink); }
.balance-recipient .addr-field input { background: #fff; }
.cart-success { max-width: 520px; margin: 8px auto 0; padding: 34px 22px; text-align: center; border: 1px solid var(--border); border-radius: 28px; background: #fff; }
.cart-success-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 14px 26px -10px rgba(0, 0, 0, 0.5);
}
.cart-success-icon svg { width: 30px; height: 30px; }
.cart-success h2 { font-size: 20px; font-weight: 600; margin-bottom: 8px; }
.cart-success > p { margin: 0 0 20px; font-size: 13px; color: var(--muted); }
.cart-success-rows { margin: 0 0 20px; padding: 6px 16px; border-radius: 20px; background: var(--surface); text-align: left; }
.cart-success-rows > div { display: flex; justify-content: space-between; gap: 14px; padding: 10px 0; font-size: 12.5px; }
.cart-success-rows > div + div { border-top: 1px dashed var(--border); }
.cart-success-rows span { color: var(--muted); }
.cart-success-rows strong { text-align: right; word-break: break-word; }
.success-licenses { text-align: left; margin-bottom: 20px; }
.success-licenses h3 { font-size: 13px; font-weight: 700; margin-bottom: 8px; }
.cart-success-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.cart-success-actions .btn { flex: 1 1 150px; }
/* ==========================================================================
   Informacja o cookies — na górze strony
   ========================================================================== */
.cookie-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  display: flex;
  justify-content: center;
  padding: calc(env(safe-area-inset-top, 0px) + 12px) 12px 0;
  pointer-events: none;
  transform: translateY(-130%);
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.cookie-banner.is-visible { transform: translateY(0); }
.cookie-card {
  pointer-events: auto;
  width: 100%;
  max-width: 660px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 14px 14px 16px;
  border-radius: 26px;
  background: #000;
  color: #fff;
  box-shadow: 0 22px 44px -14px rgba(0, 0, 0, 0.55);
}
.cookie-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.13);
}
.cookie-icon .icon-mask { width: 22px; height: 22px; background-color: #fff; }
.cookie-text { flex: 1; min-width: 0; }
.cookie-text strong { display: block; font-size: 12.5px; font-weight: 700; }
.cookie-text p { margin: 3px 0 0; font-size: 11px; line-height: 1.55; color: rgba(255, 255, 255, 0.72); }
.cookie-text a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.cookie-btn {
  flex: none;
  padding: 11px 20px;
  border-radius: 999px;
  background: #fff;
  color: #000;
  font-size: 12px;
  font-weight: 700;
  transition: transform 0.1s ease, opacity 0.15s ease;
}
.cookie-btn:hover { opacity: 0.88; }
.cookie-btn:active { transform: scale(0.95); }
@media (max-width: 520px) {
.cookie-card { flex-wrap: wrap; border-radius: 24px; }
.cookie-text { flex-basis: calc(100% - 60px); }
.cookie-btn { width: 100%; padding: 12px; }

}
/* Baner „nieopłacone zamówienie” — dziedziczy wygląd cookies, z niebieskim akcentem i przyciskiem zamknięcia. */
.unpaid-banner { z-index: 9998; }
.unpaid-banner .cookie-card { padding: 14px 14px 14px 16px; }
.unpaid-banner .cookie-icon { background: rgba(59, 130, 246, 0.22); }
.unpaid-banner .cookie-icon .icon-mask { background-color: #93c5fd; }
.unpaid-banner .cookie-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 170px; padding: 12px 34px; text-decoration: none; white-space: nowrap; }
.unpaid-close {
  flex: none;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
}
.unpaid-close:hover { background: rgba(255, 255, 255, 0.18); }
.unpaid-close:active { transform: scale(0.92); }
@media (max-width: 520px) {
.unpaid-banner .cookie-card { position: relative; padding: 16px; }
.unpaid-banner .cookie-btn { width: 100%; min-width: 0; padding: 14px; }
.unpaid-close { position: absolute; top: 10px; right: 10px; }
.unpaid-banner .cookie-text { flex-basis: calc(100% - 56px); padding-right: 30px; }

}
@media (prefers-reduced-motion: reduce) {
.cookie-banner { transition: none; }

}
/* ==========================================================================
   Karty — przycisk zakupu bez zmian wysokości, widok LISTA (wyszukiwarka)
   ========================================================================== */
/* Etykieta przycisku nie może się zawijać — zmiana „Dodaj do koszyka” → „Dodano do koszyka” nie ruszy karty. */
.card, .card * { -webkit-tap-highlight-color: transparent; }
/* Wyszukiwarka: wyniki pojawiają się od razu (bez animacji wjazdu przy każdym wpisanym znaku). */
.grid--static .card { animation: none; }
/* LISTA: jeden produkt w rzędzie, zdjęcie z lewej, szczegóły z prawej. */
/* ==========================================================================
   Zakładki Szukaj i Kupony
   ========================================================================== */
/* --- Szukaj --- */
.search-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 8px 0 20px;
  height: 58px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}
.search-box:focus-within { background: var(--bg); border-color: var(--ink); box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.06); }
.search-box .icon-mask { flex: none; width: 20px; height: 20px; background-color: var(--muted); }
.search-box:focus-within .icon-mask { background-color: var(--ink); }
.search-box input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: none;
  outline: none;
  background: transparent;
  font: inherit;
  font-size: 16px; /* 16px — iOS nie przybliża strony po dotknięciu pola */
  font-weight: 500;
  color: var(--ink);
  -webkit-appearance: none;
  appearance: none;
}
.search-box input::placeholder { color: var(--muted); font-weight: 400; }
.search-box input::-webkit-search-cancel-button { -webkit-appearance: none; display: none; }
.search-clear {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-2);
  color: var(--ink);
  cursor: pointer;
}
.search-clear[hidden] { display: none; }
.search-clear:active { transform: scale(0.92); }
.search-tip { margin: 10px 6px 26px; font-size: 11.5px; color: var(--muted); }
.search-note {
  margin: 0 0 22px;
  padding: 26px 18px;
  border-radius: 22px;
  border: 1px dashed var(--border);
  background: var(--surface);
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.6;
  text-align: center;
}
.search-note.is-quiet { padding: 16px 18px; background: transparent; }
#search-grid { margin-bottom: 34px; }
.recent-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.recent-clear {
  margin-bottom: 12px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.recent-clear[hidden] { display: none; }
.recent { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.recent-chip {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
}
.recent-chip-main {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 10px 6px 10px 14px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}
.recent-chip-main span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 220px; }
.recent-chip-main svg { flex: none; color: var(--muted); }
.recent-chip-x {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  align-self: stretch;
  color: var(--muted);
  cursor: pointer;
}
.recent-chip-x:hover { color: var(--danger); }
/* --- Kupony --- */
/* ==========================================================================
   Klucze licencyjne — przyciski „Kopiuj” / „Otwórz” (równe, czytelne, zawsze widoczna ikona)
   ========================================================================== */
.icon-mask.icon-open { -webkit-mask-image: url("../assets/open.svg"); mask-image: url("../assets/open.svg"); }
.license-key-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 12px;
  padding: 14px;
  border-radius: 18px;
}
.license-key-row code {
  flex: none;
  display: block;
  padding: 12px 14px;
  border-radius: 14px;
  background: #fff;
  border: 1px dashed var(--border);
  font-size: 13px;
  line-height: 1.45;
  letter-spacing: 0.02em;
  user-select: all;
  -webkit-user-select: all;
}
.license-actions {
  flex: none;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 8px;
}
.license-copy-btn, .license-open-btn {
  flex: none;
  min-height: 42px;
  padding: 0 16px;
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.05em;
  text-decoration: none;
  -webkit-appearance: none;
  appearance: none;
}
.license-open-btn { color: #fff; border-color: var(--accent); gap: 8px; }
.license-open-btn:hover { opacity: 1; background: #1c1c1e; }
.license-open-btn .icon-mask { width: 14px; height: 14px; background-color: currentColor; transition: transform 0.18s ease; }
.license-open-btn:hover .icon-mask { transform: translate(1px, -1px); }
.license-copy-btn.is-copied { background: #16a34a; border-color: #16a34a; color: #fff; }
.license-note { margin: 10px 0 0; font-size: 11.5px; line-height: 1.5; color: var(--muted); }
/* ==========================================================================
   „Zamówienie wygasa za …” — licznik przy zamówieniach
   ========================================================================== */
.order-expiry {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}
.order-expiry-icon { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #fff; color: var(--ink); }
.order-expiry-icon svg { width: 17px; height: 17px; }
.order-expiry-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.order-expiry-label { font-size: 10.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.order-expiry-time { font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: 0.01em; }
.order-expiry-date { flex: none; font-size: 11px; color: var(--muted); }
.order-expiry.is-urgent { background: var(--danger-soft); border-color: rgba(229, 56, 59, 0.25); }
.order-expiry.is-urgent .order-expiry-time, .order-expiry.is-urgent .order-expiry-icon { color: var(--danger); }
/* ==========================================================================
   Koszyk: dane odbiorcy, metoda dostawy, blokada dla gości
   ========================================================================== */
.cart-card-recipient:empty { display: none; }
.cart-layout.is-empty .cart-card-recipient { display: none; }
.cart-card-recipient .addr-field input:disabled { opacity: 1; color: var(--muted); background: var(--surface-2); cursor: not-allowed; }
.cart-card-address .lk-toggle { margin-bottom: 14px; }
.cart-card-recipient.is-shaking, .cart-card-address.is-shaking { animation: cart-shake 0.4s ease; }
.promo-lock {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  padding: 13px 14px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px dashed var(--border);
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}
.promo-lock .icon-mask { flex: none; width: 20px; height: 20px; background-color: var(--muted); }
.promo-lock a { color: var(--ink); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
@keyframes cart-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}
/* ==========================================================================
   PANEL ADMINA — ten sam wygląd co strona (biel + czerń, zaokrąglenia, pigułki)
   ========================================================================== */
.admin-shell { min-height: 100vh; background: var(--bg); }
/* Górny pasek: jak nagłówek sklepu — przyklejony, z rozmyciem */
.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
.admin-topbar-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: calc(env(safe-area-inset-top, 0px) + 10px) 20px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.admin-brand { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; letter-spacing: -0.01em; min-width: 0; }
.admin-brand img { display: block; height: 30px; width: auto; }
.admin-brand span { padding: 6px 11px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: 10.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; }
.admin-topbar .pill-btn { cursor: pointer; font-family: inherit; }
/* Szybka nawigacja po sekcjach */
.admin-nav {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 16px 0 4px;
  margin-bottom: 14px;
  scrollbar-width: none;
}
.admin-nav::-webkit-scrollbar { display: none; }
.admin-nav a {
  flex: none;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--ink);
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.admin-nav a:hover, .admin-nav a:active { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.admin-body { padding-top: 0; }
.admin-shell .panel { scroll-margin-top: 76px; }
/* Panele — jak karty w koszyku */
.admin-shell .panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 26px;
  padding: 22px 20px;
  margin-bottom: 18px;
}
@media (min-width: 720px) {
.admin-shell .panel { padding: 28px; }

}
.admin-shell .panel h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.admin-shell .panel h2::before {
  content: '';
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
}
.admin-shell .panel .panel { background: var(--surface); border-radius: 20px; box-shadow: none; }
.admin-shell .panel .panel h2::before { display: none; }
.admin-shell .sub-count { font-size: 13px; font-weight: 700; margin: 22px 0 12px; }
.admin-shell .form-note { font-size: 12px; line-height: 1.65; margin: -6px 0 16px; }
/* Pola formularzy */
.admin-shell .field label {
  margin: 0 0 8px 6px;
  font-size: 10.5px;
  letter-spacing: 0.08em;
}
.admin-shell .field input, .admin-shell .field select, .admin-shell .field textarea {
  padding: 13px 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  font-size: 13.5px;
  transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.admin-shell .field select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}
.admin-shell .field input:focus, .admin-shell .field select:focus, .admin-shell .field textarea:focus { background-color: var(--bg); border-color: var(--ink); box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.06); }
.admin-shell .field-checkbox { padding: 4px 6px; margin-bottom: 8px; }
.admin-shell .field-checkbox input { width: 20px; height: 20px; accent-color: #000; flex: none; }
.admin-shell .field-checkbox label { font-size: 13px; font-weight: 500; line-height: 1.45; }
/* Przyciski — pigułki */
.admin-shell .btn { padding: 12px 22px; border-radius: 999px; font-family: inherit; font-size: 12.5px; cursor: pointer; }
.admin-shell .btn-outline { background: #fff; border: 1px solid var(--border); }
.admin-shell .btn-outline:hover { background: var(--surface); border-color: var(--ink); color: var(--ink); }
.admin-shell .btn-danger { background: var(--danger-soft); color: var(--danger); border: 1px solid transparent; }
.admin-shell .btn-danger:hover { background: var(--danger); color: #fff; }
.admin-shell .form-actions { gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.admin-shell .row-actions button, .admin-shell .simple-list-row button { padding: 9px 16px; border-radius: 999px; font-size: 11.5px; }
/* Tabele (produkty, kody) */
.admin-shell .admin-table { border-collapse: separate; border-spacing: 0; }
.admin-shell .admin-table th { padding: 0 12px 12px; font-size: 10.5px; letter-spacing: 0.08em; }
.admin-shell .admin-table td { padding: 14px 12px; }
.admin-shell .admin-table tbody tr:hover td { background: var(--surface); }
.admin-shell .admin-table tbody tr:hover td:first-child { border-radius: 16px 0 0 16px; }
.admin-shell .admin-table tbody tr:hover td:last-child { border-radius: 0 16px 16px 0; }
.admin-shell .admin-table img { width: 46px; height: 46px; border-radius: 14px; }
.admin-shell .pill.is-on { background: #e3f6e9; color: #15803d; }
/* Proste listy (wysyłka) i konta */
.admin-shell .simple-list-row, .admin-shell .user-row { border-radius: 18px; background: var(--surface); border: 1px solid var(--border); }
.admin-shell .user-row { padding: 16px; }
.admin-shell .user-row-amount { border-radius: 999px; padding: 11px 16px; }
/* Logowanie do panelu */
.admin-login { background: var(--bg); }
.admin-login .login-card {
  max-width: 380px;
  padding: 34px 26px 28px;
  background: #fff;
  border-radius: 28px;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.25);
}
.admin-login .login-card .admin-login-logo { display: block; height: 38px; width: auto; margin: 0 auto 18px; }
.admin-login .login-card h1 { text-align: center; font-size: 19px; font-weight: 700; }
.admin-login .login-card > p { text-align: center; }
.admin-login .login-card .btn { padding: 15px 22px; border-radius: 999px; font-size: 13px; cursor: pointer; }
.admin-login .login-card .field input { padding: 14px 16px; border-radius: 16px; background: var(--surface); }
/* --------------------------------------------------------------------------
   Licencje cyfrowe: klucze pogrupowane (produkt → paczki po 20), rozwijane płynnie
   -------------------------------------------------------------------------- */
.lic-groups { display: flex; flex-direction: column; gap: 10px; }
.lic-group { border: 1px solid var(--border); border-radius: 22px; background: #fff; overflow: hidden; }
.lic-group .lic-group { border-radius: 16px; background: var(--surface); }
.lic-group-head {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 16px;
  background: var(--surface);
  border: 0;
  font-family: inherit;
  text-align: left;
  color: var(--ink);
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.lic-group-head:hover { background: var(--surface-2); }
.lic-group .lic-group .lic-group-head { background: transparent; padding: 12px 14px; }
.lic-group-title { flex: 1 1 auto; min-width: 0; font-size: 13px; font-weight: 700; line-height: 1.35; word-break: break-word; }
.lic-group-title small { display: block; margin-top: 2px; font-size: 11px; font-weight: 500; color: var(--muted); }
.lic-group-count {
  flex: none;
  min-width: 30px;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}
.lic-group-count.is-empty { background: var(--surface-2); color: var(--muted); }
.lic-chevron { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #fff; border: 1px solid var(--border); transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1); }
.lic-chevron svg { width: 14px; height: 14px; }
.lic-group.is-open > .lic-group-head .lic-chevron { transform: rotate(180deg); }
/* Płynne rozwijanie: wysokość 0fr -> 1fr */
.lic-group-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.38s cubic-bezier(0.4, 0, 0.2, 1); }
.lic-group.is-open > .lic-group-body { grid-template-rows: 1fr; }
.lic-group-inner { min-height: 0; overflow: hidden; opacity: 0; transition: opacity 0.3s ease; }
.lic-group.is-open > .lic-group-body > .lic-group-inner { opacity: 1; }
.lic-group-pad { padding: 14px 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.lic-toolbar { display: flex; gap: 8px; flex-wrap: wrap; }
.lic-toolbar input {
  flex: 1 1 160px;
  min-width: 0;
  padding: 11px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  font-family: inherit;
  font-size: 12.5px;
}
.lic-toolbar input:focus { outline: none; background: #fff; border-color: var(--ink); }
.lic-rows { display: flex; flex-direction: column; gap: 6px; }
.lic-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 8px 8px 14px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
}
.lic-group .lic-group .lic-row { background: #fff; }
.lic-row code { min-width: 0; font-family: 'SFMono-Regular', Consolas, Menlo, monospace; font-size: 12px; color: var(--ink); word-break: break-all; }
.lic-row .lic-row-actions { flex: none; display: flex; gap: 6px; }
.lic-row .btn { padding: 7px 13px; font-size: 11px; }
.lic-empty-note { padding: 6px 4px; font-size: 12px; color: var(--muted); }
@media (prefers-reduced-motion: reduce) {
.lic-group-body, .lic-group-inner, .lic-chevron { transition: none; }

}
/* ===========================================================================
   Weryfikacja wieku (js/agegate.js)
   =========================================================================== */
html.agegate-lock, html.agegate-lock body { overflow: hidden; }
.agegate {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 20px;
  /* strona pod spodem jest widoczna, ale mocno zamazana */
  background: rgba(255, 255, 255, 0.42);
  -webkit-backdrop-filter: blur(22px) saturate(1.15);
  backdrop-filter: blur(22px) saturate(1.15);
  overflow-y: auto;
  font-family: var(--font-main);
  color: var(--ink);
  animation: agegate-fade 0.35s ease both;
  transition: opacity 0.36s ease;
}
.agegate.is-leaving { opacity: 0; pointer-events: none; }
.agegate-card {
  width: 100%;
  max-width: 400px;
  margin: auto;
  padding: 34px 26px 24px;
  text-align: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 34px;
  box-shadow: 0 30px 90px rgba(10, 10, 10, 0.14), 0 2px 8px rgba(10, 10, 10, 0.04);
  animation: agegate-rise 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.agegate.is-leaving .agegate-card { transform: translateY(10px) scale(0.98); transition: transform 0.36s ease; }
.agegate-logo { display: block; height: 40px; width: auto; margin: 0 auto 22px; user-select: none; }
.agegate-title {
  margin: 0 0 10px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.agegate-text {
  margin: 0 auto 24px;
  max-width: 320px;
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--muted);
}
.agegate-text strong { color: var(--ink); font-weight: 700; }
.agegate-step[hidden] { display: none; }
.agegate-actions { display: grid; gap: 10px; margin-top: 22px; }
.agegate-btn {
  width: 100%;
  min-height: 54px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.12s ease;
}
.agegate-btn:active { transform: scale(0.98); }
.agegate-btn.is-secondary {
  background: var(--bg);
  color: var(--ink);
  border: 1px solid var(--border);
}
.agegate-btn.is-secondary:hover { border-color: var(--ink); }
/* Górny przycisk („Mam 18 lat”) dostaje fokus automatycznie — bez obwódki wokół niego. */
.agegate-btn:not(.is-secondary), .agegate-btn:not(.is-secondary):focus, .agegate-btn:not(.is-secondary):focus-visible { outline: none; border: 0; box-shadow: none; }
.agegate-btn.is-secondary:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.agegate-note { margin: 16px 0 0; font-size: 10.5px; line-height: 1.5; color: #9a9aa0; }
@keyframes agegate-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes agegate-rise { from { opacity: 0; transform: translateY(22px) scale(0.97); } to { opacity: 1; transform: none; } }
@media (max-width: 380px) {
.agegate-card { padding: 28px 18px 20px; border-radius: 28px; }

}
@media (prefers-reduced-motion: reduce) {
.agegate, .agegate-card { animation: none; }

}
/* ===========================================================================
   Koszyk: zwijane karty (dane odbiorcy, dostawa) i informacja o licencji
   =========================================================================== */
.cart-card-collapsible { padding: 0; overflow: hidden; }
.cart-card-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 18px 20px;
  text-align: left;
  color: inherit;
  background: none;
  -webkit-tap-highlight-color: transparent;
}
.cart-card-toggle:focus-visible { outline: 2px solid var(--ink); outline-offset: -4px; border-radius: 26px; }
.cart-card-titles { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.cart-card-title { font-size: 15px; font-weight: 600; }
.cart-card-sub {
  font-size: 11.5px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cart-card-sub.is-missing { color: var(--danger); }
.cart-card-chevron {
  flex: none;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--surface);
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.2s ease;
}
.cart-card-chevron svg { width: 16px; height: 16px; }
.cart-card-toggle:hover .cart-card-chevron { background: #ececef; }
.cart-card-collapsible.is-open .cart-card-chevron { transform: rotate(180deg); }
/* Płynne rozwijanie bez znanej wysokości: wiersz siatki 0fr -> 1fr. */
.cart-collapse {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}
.cart-collapse-inner {
  min-height: 0;
  overflow: hidden;
  padding: 0 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0s linear 0.42s, padding 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}
.cart-card-collapsible.is-open .cart-collapse { grid-template-rows: 1fr; }
.cart-card-collapsible.is-open .cart-collapse-inner {
  padding: 2px 20px 20px;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.35s ease 0.08s, visibility 0s, padding 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}
.cart-collapse-links { display: flex; justify-content: flex-end; margin: -2px 0 10px; }
.cart-collapse-inner .cart-card-note { margin-top: 0; }
@media (prefers-reduced-motion: reduce) {
.cart-collapse, .cart-collapse-inner, .cart-card-chevron { transition: none; }

}
.license-info {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 6px 0 14px;
  padding: 14px 16px;
  border-radius: 18px;
  background: var(--surface);
  font-size: 11.5px;
  line-height: 1.55;
  color: var(--muted);
}
.license-info-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
}
.license-info-icon svg { width: 17px; height: 17px; }
.license-info strong { display: block; margin-bottom: 2px; font-size: 12px; color: var(--ink); }
.product-description-section + .license-info, .product-bottom-bar + .license-info { margin-top: 16px; }
.cart-gate { padding: 20px; }
/* ---------- Nagrody i kod twórcy (profil) ---------- */
.rewards-section, .creator-card { margin: 0 0 28px; }
.rewards-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.rewards-head h2, .creator-card h2 { font-size: 17px; font-weight: 600; margin: 0; }
.rewards-sub { margin: 4px 0 0; font-size: 12px; line-height: 1.5; color: var(--muted); }
.rewards-counter {
  flex: none; padding: 6px 12px; border-radius: 999px; background: var(--ink); color: #fff;
  font-size: 11px; font-weight: 600; white-space: nowrap;
}
.perks { background: var(--ink); color: #fff; border-radius: var(--radius); padding: 16px; margin-bottom: 14px; display: grid; gap: 10px; }
.perks-title { margin: 0; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.perk { display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,.08); border-radius: var(--radius-sm); padding: 10px 12px; }
.perk-ship { gap: 12px; }
.perk-icon { display: inline-flex; flex: none; }
.perk-text { flex: 1; min-width: 0; display: grid; gap: 2px; }
.perk-text strong { font-size: 12.5px; font-weight: 600; }
.perk-text span { font-size: 11px; color: rgba(255,255,255,.6); }
.perk-code { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 12px; letter-spacing: .04em; background: rgba(255,255,255,.14); padding: 6px 9px; border-radius: 8px; white-space: nowrap; }
.perk-copy {
  flex: none; font: inherit; font-size: 11px; font-weight: 600; cursor: pointer; border: 0;
  padding: 7px 12px; border-radius: 999px; background: #fff; color: var(--ink); transition: transform .12s ease, opacity .15s ease;
}
.perk-copy:active { transform: scale(.96); }
.perks-cart { color: #fff; font-size: 12px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; justify-self: start; }
.rewards-list { display: grid; gap: 10px; }
.task { background: var(--surface); border-radius: var(--radius); padding: 14px 16px 14px; display: grid; gap: 12px; transition: box-shadow .2s ease, transform .2s ease; }
.task.is-ready { box-shadow: inset 0 0 0 1.5px var(--ink); background: #fff; }
.task.is-claimed { opacity: .62; }
.task-top { display: flex; align-items: center; gap: 12px; }
.task-icon { flex: none; width: 38px; height: 38px; border-radius: 12px; background: #fff; display: grid; place-items: center; color: var(--ink); }
.task.is-ready .task-icon { background: var(--ink); color: #fff; }
.task-info { flex: 1; min-width: 0; }
.task-title { margin: 0; font-size: 13.5px; font-weight: 600; }
.task-desc { margin: 3px 0 0; font-size: 11.5px; line-height: 1.45; color: var(--muted); }
.task-photos { display: flex; flex: none; }
.task-photo { width: 40px; height: 40px; border-radius: 11px; object-fit: cover; background: #fff; border: 2px solid var(--surface); margin-left: -10px; }
.task.is-ready .task-photo { border-color: #fff; }
.task-photo:first-child { margin-left: 0; }
.task-bar { height: 6px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.task.is-ready .task-bar { background: var(--surface); }
.task-bar span { display: block; height: 100%; border-radius: inherit; background: var(--ink); transition: width .6s cubic-bezier(.2,.8,.2,1); }
.task-bottom { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.task-progress { font-size: 11.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.task-reward { flex: 1; min-width: 0; font-size: 11.5px; color: var(--muted); }
.task-claim {
  font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; border: 0; padding: 9px 18px;
  border-radius: 999px; background: var(--ink); color: #fff; transition: transform .12s ease, opacity .15s ease;
}
.task-claim:hover { opacity: .88; }
.task-claim:active { transform: scale(.96); }
.task-claim:disabled { opacity: .5; cursor: default; }
.task-done, .task-locked { font-size: 11.5px; font-weight: 600; color: var(--muted); }
.creator-card { background: var(--surface); border-radius: var(--radius); padding: 18px 16px; }
.creator-card-head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; }
.creator-card-icon { flex: none; width: 38px; height: 38px; border-radius: 12px; background: var(--ink); color: #fff; display: grid; place-items: center; }
.creator-form { display: flex; gap: 8px; }
.creator-input {
  flex: 1; min-width: 0; font: inherit; font-size: 13px; padding: 11px 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: #fff; color: var(--ink); text-transform: uppercase; outline: none;
}
.creator-input:focus-visible { border-color: var(--ink); }
.creator-hint { margin: 8px 0 0; font-size: 11px; color: var(--muted); line-height: 1.5; }
#creator-error { margin: 8px 0 0; font-size: 12px; }
.creator-code-row { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: var(--radius-sm); padding: 10px 12px; }
.creator-code { flex: 1; font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 16px; font-weight: 700; letter-spacing: .06em; }
.creator-code-row .perk-copy { background: var(--ink); color: #fff; }
.creator-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.creator-stats > div { background: #fff; border-radius: var(--radius-sm); padding: 12px; display: grid; gap: 3px; }
.creator-stats strong { font-size: 15px; }
.creator-stats span { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.creator-edit { margin-top: 10px; font-size: 12px; }
.creator-edit summary { cursor: pointer; font-weight: 600; margin-bottom: 8px; }
.creator-promo { margin: 14px 0 8px; font-size: 12px; line-height: 1.55; color: var(--muted); }
.creator-promo strong { color: var(--ink); font-weight: 600; }
.creator-link { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 420px) {
.task-photo { width: 34px; height: 34px; }
.perk { flex-wrap: wrap; }

}
/* ---------- Kody z nagród w koszyku ---------- */
.promo-chips { margin: -6px 0 18px; }
.promo-chips-label { display: block; font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.promo-chips-row { display: flex; flex-wrap: wrap; gap: 6px; }
.promo-chip {
  font: inherit; font-size: 11.5px; font-weight: 600; cursor: pointer; padding: 8px 12px; border-radius: 999px;
  background: #fff; color: var(--ink); border: 1px solid var(--ink); transition: background .15s ease, color .15s ease, transform .12s ease;
}
.promo-chip:hover { background: var(--ink); color: #fff; }
.promo-chip:active { transform: scale(.97); }
.summary-note { font-size: 11.5px; color: var(--muted); background: var(--surface); border-radius: var(--radius-sm); padding: 9px 12px; margin: 0 0 10px; line-height: 1.45; }
/* ---------- Opinie: gwiazdki, karty, sekcja produktu, karuzela ---------- */
:root {
  --star-on: #ffb400;
  --star-off: #d8d8dd;
  --star-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-2 -2 28 28'%3E%3Cpath d='M1.327 12.4 4.887 15 3.535 19.187A3.178 3.178 0 0 0 4.719 22.8a3.177 3.177 0 0 0 3.8-.019L12 20.219l3.482 2.559a3.227 3.227 0 0 0 4.983-3.591L19.113 15l3.56-2.6a3.227 3.227 0 0 0-1.9-5.832H16.4L15.073 2.432a3.227 3.227 0 0 0-6.146 0L7.6 6.568H3.231a3.227 3.227 0 0 0-1.9 5.832Z'/%3E%3C/svg%3E");
}
.stars {
  --s: 16px;
  display: inline-block;
  flex: none;
  width: calc(var(--s) * 5);
  height: var(--s);
  vertical-align: middle;
  background: linear-gradient(90deg, var(--star-on) var(--p, 0%), var(--star-off) var(--p, 0%));
  -webkit-mask: var(--star-mask) 0 0 / var(--s) var(--s) repeat-x;
          mask: var(--star-mask) 0 0 / var(--s) var(--s) repeat-x;
}
.stars-sm { --s: 13px; }
.stars-lg { --s: 22px; }
.rv-star-ico {
  display: inline-block; width: 12px; height: 12px; background: var(--star-on); margin-left: 3px; vertical-align: -1px;
  -webkit-mask: var(--star-mask) center / contain no-repeat; mask: var(--star-mask) center / contain no-repeat;
}
/* ocena na karcie produktu */
.card-rating { display: flex; align-items: center; gap: 6px; margin-top: 7px; font-size: 10.5px; line-height: 1; }
.card-rating-avg { font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.card-rating-count { color: var(--muted); font-variant-numeric: tabular-nums; }
.card-rating.is-empty .card-rating-count { font-size: 10px; }
.card-rating.is-empty .stars { opacity: .55; }
.product-rating-link {
  display: inline-flex; align-items: center; gap: 8px; margin: 2px 0 14px; font-size: 12.5px; color: var(--muted);
  text-decoration: none;
}
.product-rating-link strong { color: var(--ink); font-weight: 700; }
.product-rating-link:hover span { text-decoration: underline; text-underline-offset: 3px; }
/* sekcja opinii na stronie produktu */
.rv-section { margin: 38px 0 6px; }
.rv-section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.rv-section-head h2 { margin: 0; font-size: 19px; font-weight: 700; letter-spacing: -.01em; }
.rv-write {
  display: inline-flex; align-items: center; padding: 11px 20px; border-radius: 999px; background: var(--ink); color: #fff;
  font-size: 12.5px; font-weight: 600; text-decoration: none; transition: transform .12s ease, opacity .15s ease;
}
.rv-write:hover { opacity: .88; }
.rv-write:active { transform: scale(.97); }
.rv-note { font-size: 11.5px; line-height: 1.45; color: var(--muted); max-width: 260px; }
.rv-loading { padding: 26px 0; font-size: 13px; color: var(--muted); }
.rv-summary {
  display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: center;
  background: var(--surface); border-radius: var(--radius); padding: 20px 20px; margin-bottom: 18px;
}
.rv-score { display: grid; justify-items: center; gap: 6px; padding-right: 22px; border-right: 1px solid var(--border); }
.rv-score-num { font-size: 42px; font-weight: 700; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.rv-score-count { font-size: 11.5px; color: var(--muted); }
.rv-dist { display: grid; gap: 7px; min-width: 0; }
.rv-dist-row { display: grid; grid-template-columns: 22px 1fr 26px; gap: 10px; align-items: center; font-size: 11.5px; font-variant-numeric: tabular-nums; }
.rv-dist-label { display: inline-flex; align-items: center; font-weight: 600; }
.rv-dist-bar { height: 6px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.rv-dist-bar span { display: block; height: 100%; border-radius: inherit; background: var(--ink); transition: width .7s cubic-bezier(.2,.8,.2,1); }
.rv-dist-n { color: var(--muted); text-align: right; }
.rv-empty { display: grid; justify-items: center; gap: 10px; padding: 26px 16px; background: var(--surface); border-radius: var(--radius); margin-bottom: 18px; text-align: center; }
.rv-empty p { margin: 0; font-size: 13px; color: var(--muted); }
.rv-list { display: grid; gap: 12px; }
.rv {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 16px 14px;
  display: grid; gap: 12px; transition: opacity .25s ease, transform .25s ease;
}
.rv.is-removing { opacity: 0; transform: scale(.97); }
.rv-head { display: flex; align-items: center; gap: 11px; }
.rv-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; background: #000; }
.rv-avatar-letter { display: grid; place-items: center; background: var(--ink); color: #fff; font-size: 16px; font-weight: 700; }
.rv-who { flex: 1; min-width: 0; display: grid; gap: 2px; }
.rv-name { font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rv-date { font-size: 11px; color: var(--muted); }
.rv-rate { display: grid; justify-items: end; gap: 3px; flex: none; }
.rv-rate b { font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums; }
.rv-text { margin: 0; font-size: 13.5px; line-height: 1.6; white-space: pre-line; overflow-wrap: anywhere; }
.rv-photos { display: flex; gap: 8px; flex-wrap: wrap; }
.rv-photo { width: 84px; height: 84px; padding: 0; border: 0; border-radius: 14px; overflow: hidden; cursor: zoom-in; background: var(--surface); transition: transform .15s ease; }
.rv-photo:hover { transform: scale(1.03); }
.rv-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rv-foot { display: flex; align-items: center; gap: 10px; padding-top: 12px; border-top: 1px solid var(--border); }
.rv-product {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 6px 10px 6px 6px; border-radius: 14px;
  background: var(--surface); color: var(--ink); text-decoration: none; transition: background .15s ease;
}
a.rv-product:hover { background: var(--surface-2); }
.rv-product img { width: 38px; height: 38px; border-radius: 10px; object-fit: cover; background: #fff; flex: none; }
.rv-product-text { flex: 1; min-width: 0; display: grid; gap: 2px; }
.rv-product-text small { font-size: 9.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.rv-product-name { font-size: 11.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rv-product.is-gone { padding: 12px; font-size: 11.5px; color: var(--muted); }
.rv-del {
  flex: none; font: inherit; font-size: 11.5px; font-weight: 600; cursor: pointer; padding: 9px 14px; border-radius: 999px;
  border: 1px solid var(--danger); background: transparent; color: var(--danger); transition: background .15s ease, color .15s ease;
}
.rv-del:hover { background: var(--danger); color: #fff; }
.rv-del:disabled { opacity: .5; cursor: default; }
.rv-list-wrap { position: relative; }
/* Biały gradient na dole listy — sygnał, że opinii jest więcej. */
.rv-fade {
  position: absolute; left: 0; right: 0; bottom: 0; height: 150px; pointer-events: none;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .82) 62%, var(--bg) 100%);
  opacity: 0; transition: opacity .45s ease;
}
.rv-list-wrap.has-more .rv-fade { opacity: 1; }
.rv.is-entering { animation: rv-in .6s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i, 0) * 70ms); }
@keyframes rv-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.rv-more {
  position: relative; z-index: 1; display: flex; align-items: center; gap: 8px; margin: -14px auto 0; font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer;
  padding: 12px 24px; border-radius: 999px; border: 1px solid var(--border); background: var(--bg); color: var(--ink);
  box-shadow: 0 8px 22px -12px rgba(10, 10, 10, .35);
  transition: border-color .15s ease, transform .15s ease, opacity .3s ease;
}
.rv-more svg { transition: transform .25s ease; }
.rv-more:hover { border-color: var(--ink); }
.rv-more:hover svg { transform: translateY(2px); }
.rv-more:active { transform: scale(.98); }
.rv-more:disabled { opacity: .6; cursor: default; }
.rv-more.is-leaving { opacity: 0; pointer-events: none; }
@media (prefers-reduced-motion: reduce) {
.rv.is-entering { animation: none; }
.rv-fade { transition: none; }

}
/* karuzela opinii na stronie głównej */
.rv-home { width: 100%; padding: 34px 20px 8px; max-width: var(--container); margin: 0 auto; }
.rv-home[hidden] { display: none; }
.rv-home-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 14px; }
.rv-home-title { margin: 0 0 8px; font-size: 19px; font-weight: 700; letter-spacing: -.01em; }
.rv-home-meta { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); }
.rv-home-meta strong { color: var(--ink); }
.rv-track { gap: 12px; padding: 2px 20px 10px 20px; }
.rv-track .rv { flex: 0 0 min(300px, 82vw); }
/* Koniec karuzeli opinii: ostatnia opinia wygasa w biały gradient, a na nim przycisk „Pokaż więcej”. */
.rv-end {
  position: relative; z-index: 1; flex: 0 0 280px; margin-left: -150px; padding-left: 110px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .86) 38%, var(--bg) 66%);
}
.rv-end .rv-more { margin: 0; white-space: nowrap; text-decoration: none; }
.rv-end .rv-more svg { transition: transform .25s ease; }
.rv-end .rv-more:hover svg { transform: translateX(2px); }
.rv-lightbox {
  position: fixed; inset: 0; z-index: 3000; display: grid; place-items: center; padding: 20px;
  background: rgba(0,0,0,.86); opacity: 0; transition: opacity .2s ease; cursor: zoom-out;
}
.rv-lightbox.is-open { opacity: 1; }
.rv-lightbox img { max-width: 100%; max-height: 100%; border-radius: 14px; object-fit: contain; }
.rv-lightbox-close { position: absolute; top: 14px; right: 16px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; font-size: 24px; line-height: 1; cursor: pointer; }
@media (max-width: 480px) {
.rv-summary { grid-template-columns: 1fr; gap: 16px; }
.rv-score { border-right: 0; border-bottom: 1px solid var(--border); padding: 0 0 16px; }

}
/* ---------- Formularz opinii (/opinia) ---------- */
.rvf-page { max-width: 560px; }
.rvf-card { background: var(--bg); border: 1px solid var(--border); border-radius: 26px; padding: 24px 20px 20px; display: grid; gap: 22px; box-shadow: 0 18px 40px -30px rgba(16,18,26,.3); }
.rvf-title { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.rvf-message { text-align: center; justify-items: center; gap: 12px; padding: 34px 22px; }
.rvf-message p { margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--muted); max-width: 380px; }
.rvf-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }
.rvf-done-icon { width: 58px; height: 58px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; animation: rvfPop .45s cubic-bezier(.2,.9,.3,1.3); }
@keyframes rvfPop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.rvf-product { display: flex; align-items: center; gap: 12px; padding: 8px 12px 8px 8px; border-radius: 18px; background: var(--surface); text-decoration: none; color: var(--ink); }
.rvf-product img { width: 54px; height: 54px; border-radius: 13px; object-fit: cover; background: #fff; flex: none; }
.rvf-product-text { display: grid; gap: 3px; min-width: 0; }
.rvf-product-text small { font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.rvf-product-text strong { font-size: 13px; font-weight: 600; line-height: 1.35; }
.rvf-field { display: grid; gap: 10px; }
.rvf-label { font-size: 13px; font-weight: 600; }
.rvf-label span { font-weight: 400; color: var(--muted); }
.rvf-stars { display: flex; gap: 6px; }
.rvf-star {
  width: 46px; height: 46px; padding: 0; border: 0; cursor: pointer; background: var(--star-off);
  -webkit-mask: var(--star-mask) center / contain no-repeat; mask: var(--star-mask) center / contain no-repeat;
  transition: background .15s ease, transform .12s ease;
}
.rvf-star.is-on { background: var(--star-on); }
.rvf-star:hover { transform: scale(1.08); }
.rvf-star:focus-visible { outline: none; transform: scale(1.12); }
.rvf-rating-text { font-size: 12px; color: var(--muted); min-height: 16px; }
.rvf-rating-text.is-set { color: var(--ink); font-weight: 600; }
.rvf-textarea {
  width: 100%; resize: vertical; min-height: 120px; font: inherit; font-size: 14px; line-height: 1.55; padding: 14px 16px;
  border-radius: 16px; border: 1px solid var(--border); background: var(--surface); color: var(--ink); outline: none;
  transition: border-color .15s ease, background .15s ease;
}
.rvf-textarea:focus-visible { border-color: var(--ink); background: #fff; }
.rvf-counter { justify-self: end; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; margin-top: -4px; }
.rvf-photos { display: flex; gap: 10px; flex-wrap: wrap; }
.rvf-thumb { position: relative; width: 88px; height: 88px; border-radius: 16px; overflow: hidden; background: var(--surface); }
.rvf-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rvf-thumb-del { position: absolute; top: 5px; right: 5px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(0,0,0,.72); color: #fff; font-size: 16px; line-height: 1; cursor: pointer; }
.rvf-add {
  width: 88px; height: 88px; border-radius: 16px; border: 1.5px dashed var(--border); background: transparent; color: var(--muted);
  display: grid; place-content: center; justify-items: center; gap: 4px; font: inherit; font-size: 11px; cursor: pointer; transition: border-color .15s ease, color .15s ease;
}
.rvf-add:hover { border-color: var(--ink); color: var(--ink); }
.rvf-switch { display: flex; align-items: center; gap: 14px; cursor: pointer; }
.rvf-switch input { position: absolute; opacity: 0; pointer-events: none; }
.rvf-switch-ui { flex: none; width: 46px; height: 28px; border-radius: 999px; background: var(--surface-2); position: relative; transition: background .2s ease; }
.rvf-switch-ui::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.25); transition: transform .2s cubic-bezier(.3,.9,.3,1.2); }
.rvf-switch input:checked + .rvf-switch-ui { background: var(--ink); }
.rvf-switch input:checked + .rvf-switch-ui::after { transform: translateX(18px); }
.rvf-switch input:focus-visible + .rvf-switch-ui { box-shadow: 0 0 0 3px rgba(0,0,0,.18); }
.rvf-switch-text { display: grid; gap: 2px; }
.rvf-switch-text strong { font-size: 13px; font-weight: 600; }
.rvf-switch-text small { font-size: 11.5px; color: var(--muted); }
.rvf-identity { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 16px; background: var(--surface); font-size: 13px; }
.rvf-identity div { display: grid; gap: 2px; }
.rvf-identity small { font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.rvf-submit, .rvf-ghost {
  display: inline-flex; align-items: center; justify-content: center; padding: 15px 24px; border-radius: 999px; border: 0;
  font: inherit; font-size: 13.5px; font-weight: 600; text-decoration: none; cursor: pointer; transition: transform .12s ease, opacity .15s ease;
}
.rvf-submit { background: var(--ink); color: #fff; }
.rvf-submit:hover { opacity: .88; }
.rvf-submit:active, .rvf-ghost:active { transform: scale(.98); }
.rvf-submit:disabled { opacity: .5; cursor: default; }
.rvf-ghost { background: var(--surface); color: var(--ink); }
#rvf-form .rvf-submit { width: 100%; }
.rvf-fine { margin: -8px 0 0; font-size: 11px; line-height: 1.55; color: var(--muted); text-align: center; }
#rvf-error { margin: -6px 0 -8px; }
/* ---------- „Oceń zakupy” w zamówieniach ---------- */
.order-review { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--border); display: grid; gap: 8px; }
.order-review-title { font-size: 10.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.order-review-row { display: flex; align-items: center; gap: 10px; }
.order-review-row img { width: 36px; height: 36px; border-radius: 10px; object-fit: cover; background: #fff; flex: none; }
.order-review-name { flex: 1; min-width: 0; font-size: 11.5px; font-weight: 500; text-transform: uppercase; line-height: 1.35; }
.order-review-btn {
  flex: none; padding: 8px 14px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 11px; font-weight: 600;
  text-decoration: none; transition: transform .12s ease, opacity .15s ease;
}
.order-review-btn:hover { opacity: .88; }
.order-review-btn:active { transform: scale(.96); }
.order-reviewed { flex: none; font-size: 11px; font-weight: 600; color: var(--muted); }
/* ---------- Zwijane sekcje profilu ---------- */
.folds { display: grid; gap: 10px; margin: 0 0 26px; }
.fold { background: var(--surface); border-radius: var(--radius); overflow: hidden; }
.fold-head {
  width: 100%; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 0; background: transparent;
  font: inherit; color: var(--ink); text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.fold-icon { flex: none; width: 38px; height: 38px; border-radius: 12px; background: #fff; display: grid; place-items: center; color: var(--ink); transition: background .2s ease, color .2s ease; }
.fold.is-open .fold-icon { background: var(--ink); color: #fff; }
.fold-title { flex: 1; min-width: 0; font-size: 14px; font-weight: 600; }
.fold-meta { flex: none; font-size: 11.5px; color: var(--muted); max-width: 42%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fold-badge { padding: 5px 10px; border-radius: 999px; background: var(--surface-2); color: var(--ink); font-weight: 600; font-size: 11px; }
.fold-badge.is-ready { background: var(--ink); color: #fff; }
.fold-chev { flex: none; color: var(--muted); transition: transform .3s cubic-bezier(.3,.8,.3,1); }
/* Ikonki sekcji po prawej stronie nagłówka: tytuł i podpis z lewej, ikonka tuż przed strzałką. */
.fold-title { order: 1; }
.fold-meta { order: 2; }
.fold-icon { order: 3; }
.fold-chev { order: 4; }
.fold.is-open .fold-chev { transform: rotate(180deg); }
.fold-body { display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows .35s cubic-bezier(.3,.8,.3,1), visibility 0s linear .35s; }
.fold.is-open .fold-body { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows .35s cubic-bezier(.3,.8,.3,1), visibility 0s; }
.fold-inner { min-height: 0; overflow: hidden; padding: 0 16px; }
.fold.is-open .fold-inner { padding-bottom: 16px; }
.fold .addr-section { margin: 0; }
.fold .addr-section-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.fold .addr-section-sub { margin: 0; }
.fold .creator-card { background: none; padding: 0; margin: 0; border-radius: 0; }
.fold .rewards-section { margin: 0; }
.fold .rewards-sub { margin: 0 0 12px; }
.fold .task { background: #fff; }
.fold .task.is-ready { box-shadow: inset 0 0 0 1.5px var(--ink); }
.fold .task-icon { background: var(--surface); }
.fold .task.is-ready .task-icon { background: var(--ink); }
.fold .creator-code-row, .fold .creator-stats > div { background: #fff; }
.fold .rewards-list { gap: 10px; }
.task-icon { width: 44px; height: 44px; border-radius: 14px; }
@media (prefers-reduced-motion: reduce) {
.fold-body, .fold-chev { transition: none; }

}
.account-avatar-edit svg { display: block; }
.account-avatar { background: #000; object-fit: cover; }
/* ===========================================================================
   Panel admina: akcje banerów
   =========================================================================== */
.bn-list { display: grid; gap: 14px; }
.bn-row { display: flex; gap: 16px; align-items: flex-start; padding: 14px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg); }
.bn-thumb { flex: none; width: 96px; height: 96px; border-radius: 16px; object-fit: cover; background: var(--surface); }
.bn-fields { flex: 1; min-width: 0; display: grid; gap: 12px; }
.bn-name { font-size: 13px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bn-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.bn-hint { display: block; margin-top: 6px; font-size: 11.5px; line-height: 1.4; color: var(--muted); }
.bn-link { width: 100%; }
.bn-actions { display: flex; align-items: center; gap: 12px; }
.bn-status { font-size: 12px; color: var(--muted); }
.bn-status.is-ok { color: #1a7f45; font-weight: 600; }
.bn-status.is-error { color: var(--danger); font-weight: 600; }
@media (max-width: 640px) {
.bn-row { flex-direction: column; }
.bn-thumb { width: 100%; height: auto; aspect-ratio: 1 / 1; }
.bn-fields { width: 100%; }
.bn-grid { grid-template-columns: 1fr; }

}
/* ==========================================================================
   Świetlny pasek na przyciskach — ten sam efekt co na banerach (banner-shine):
   ukośny, miękki pas światła przelatuje przez przycisk, potem krótka przerwa.
   Dotyczy: „Zapłać” w koszyku, „Zrealizuj” w kuponach, „Mam 18 lat”, dodawania do koszyka
   (karty i strona produktu), „Zobacz koszyk” w powiadomieniu oraz „Rozumiem” przy cookies.
   ========================================================================== */
.checkout-btn, .agegate-btn:not(.is-secondary), .product-addtocart-btn:not(:disabled), .cart-toast-cta, .cookie-btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  --shine: 255, 255, 255;
  --shine-a: .55;
}
/* Jasne przyciski dostają ciemny pasek, bo biały byłby na nich niewidoczny. */
.cart-toast-cta, .cookie-btn { --shine: 0, 0, 0; --shine-a: .13; }
.checkout-btn::after, .agegate-btn:not(.is-secondary)::after, .product-addtocart-btn:not(:disabled)::after, .cart-toast-cta::after, .cookie-btn::after {
  content: '';
  position: absolute;
  top: -25%;
  left: 0;
  width: 34%;
  height: 150%;
  background: linear-gradient(90deg, rgba(var(--shine), 0) 0%, rgba(var(--shine), var(--shine-a)) 50%, rgba(var(--shine), 0) 100%);
  filter: blur(7px);
  transform: translateX(-260%) skewX(-22deg);
  pointer-events: none;
  z-index: 2;
  will-change: transform;
  animation: banner-shine 4.6s cubic-bezier(.45, .05, .35, 1) infinite;
}
.checkout-btn:disabled::after { display: none; }
/* Karty obok siebie nie błyszczą równocześnie — każda ma inne przesunięcie w czasie. */
.grid .card:nth-child(3n + 2) .product-addtocart-btn::after { animation-delay: -1.5s; }
.grid .card:nth-child(3n) .product-addtocart-btn::after { animation-delay: -3.1s; }
@media (prefers-reduced-motion: reduce) {
.checkout-btn::after, .agegate-btn::after, .product-addtocart-btn::after, .cart-toast-cta::after, .cookie-btn::after { animation: none; opacity: 0; }

}
/* ==========================================================================
   Profil: ikony w nagłówkach zwijanych sekcji (adres dostawy = ta sama ikona co w koszyku)
   ========================================================================== */
.fold-icon .icon-mask { width: 20px; height: 20px; background-color: currentColor; }
#profile-link .cart-badge { top: 1px; right: 0; }
/* ==========================================================================
   Strona produktu: kod produktu i stan magazynowy (pasek postępu)
   ========================================================================== */
.product-meta {
  display: grid;
  gap: 16px;
  margin: 0 0 18px;
  padding: 16px 18px 15px;
  border-radius: 22px;
  background: var(--surface);
}
.product-meta-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.product-meta-label { font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.product-meta-value { font-size: 13px; font-weight: 700; letter-spacing: 0.04em; color: var(--ink); font-variant-numeric: tabular-nums; }
.product-meta-stock { display: grid; gap: 10px; }
.stock-bar { position: relative; height: 9px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.stock-bar-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--w, 0%);
  border-radius: 999px;
  background: var(--c, #16a34a);
}
.stock-bar.is-animated .stock-bar-fill { animation: stock-grow 0.95s cubic-bezier(0.22, 1, 0.36, 1) 0.15s backwards; }
@keyframes stock-grow { from { width: 0; } }
/* cienkie przerwy co 25% — cztery „stopnie” magazynu: Mało / Średnio / Dużo / Bardzo dużo */
.stock-bar-ticks {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent calc(100% - 2px), var(--surface) calc(100% - 2px)) 0 0 / 25% 100% repeat-x;
}
.stock-scale { display: grid; grid-template-columns: repeat(4, 1fr); font-size: 9.5px; font-weight: 600; color: #9a9aa3; }
.stock-scale span:nth-child(2), .stock-scale span:nth-child(3) { text-align: center; }
.stock-scale span:last-child { text-align: right; }
.stock-scale span:first-child { text-align: left; }
@media (prefers-reduced-motion: reduce) {
.stock-bar.is-animated .stock-bar-fill { animation: none; }

}
/* ==========================================================================
   Koszyk: wybór metody dostawy — poziome kontenery (logo przewoźnika po lewej, nazwa i opis w środku,
   cena po prawej). Wybrana metoda ma grubą czarną ramkę, pozostałe jasnoszarą.
   ========================================================================== */
.dm-list { display: grid; gap: 10px; margin: 0 0 18px; }
.dm-card {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 9px 16px 9px 9px;
  border: 2.5px solid #dedee1;
  border-radius: 30px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: border-color .18s ease, transform .12s ease;
}
.dm-card:hover { border-color: #b9b9c0; }
.dm-card:active { transform: scale(.985); }
.dm-card:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.dm-card.is-selected { border-color: #000; cursor: default; }
.dm-card.is-selected:hover { border-color: #000; }
.dm-logo {
  flex: none;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  object-fit: cover;
  display: block;
  pointer-events: none;
  -webkit-user-select: none;
          user-select: none;
  -webkit-user-drag: none;
}
.dm-info { flex: 1; min-width: 0; display: grid; gap: 3px; }
.dm-info strong { font-size: 13px; font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.dm-info small { font-size: 10.5px; font-weight: 500; line-height: 1.4; color: #9a9aa3; }
.dm-price { flex: none; font-size: 14px; font-weight: 700; letter-spacing: -0.02em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.dm-price.is-free { color: #15803d; }
@media (max-width: 380px) {
.dm-card { gap: 10px; padding: 8px 12px 8px 8px; }
.dm-logo { width: 50px; height: 50px; border-radius: 15px; }
.dm-info strong { font-size: 12px; }
.dm-price { font-size: 13px; }

}
@media (prefers-reduced-motion: reduce) {
.dm-card { transition: none; }

}
/* wybór przewoźnika w formularzu punktu odbioru (profil) */
.lk-carriers { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.lk-carrier {
  font: inherit; font-size: 11.5px; font-weight: 600; cursor: pointer; padding: 8px 14px; border-radius: 999px;
  border: 1.5px solid var(--border); background: #fff; color: var(--ink); transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}
.lk-carrier:hover { border-color: #b9b9c0; }
.lk-carrier.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
/* --- Kupony: nagłówek karty --- */
/* ==========================================================================
   Zdjęcia z aplikacji: karuzela na stronie produktu + edytor w panelu admina
   ========================================================================== */
.app-shots {
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid var(--border);
}
.app-shots-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--muted);
  margin: 0 0 14px;
}
.app-shots-wrap { position: relative; }
.app-shots-track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  margin: 0 -20px;
  padding: 2px 20px 8px;
  scroll-padding-inline: 20px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.app-shots-track::-webkit-scrollbar { display: none; }
.app-shot {
  flex: 0 0 auto;
  width: 62%;
  max-width: 280px;
  scroll-snap-align: start;
  border-radius: 22px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
}
.app-shot img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: contain;
  -webkit-user-drag: none;
  user-select: none;
}
.app-shots-track.is-single .app-shot { width: 100%; max-width: 340px; }
.app-shots-dots { display: flex; justify-content: center; gap: 6px; margin-top: 12px; }
.app-shots-dots span { width: 6px; height: 6px; border-radius: 999px; background: var(--surface-2); transition: width 0.2s ease, background-color 0.2s ease; }
.app-shots-dots span.is-active { width: 18px; background: #545454; }
.app-shots-wrap .carousel-arrow { top: 45%; }
.app-photos-block { margin: 0 0 16px; padding: 14px; border-radius: 14px; background: var(--surface-2); }
.app-photos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; margin-bottom: 12px; }
.app-photo-item { display: flex; flex-direction: column; gap: 6px; padding: 8px; border-radius: 12px; background: var(--bg); border: 1px solid var(--border); }
.app-photo-item img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 8px; background: var(--surface); }
.app-photo-actions { display: flex; gap: 4px; }
.app-photo-actions .btn { flex: 1; padding: 6px 4px; font-size: 12px; min-width: 0; }
/* --- Status realizacji zamówienia (W przygotowaniu → Wysłano → Dostarczono) --- */
.order-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  list-style: none;
  margin: 12px 0 14px;
  padding: 0;
}
.order-step { position: relative; display: flex; flex-direction: column; align-items: center; gap: 7px; text-align: center; color: var(--muted); }
.order-step::before {
  content: "";
  position: absolute;
  top: 6px;
  right: 50%;
  width: 100%;
  height: 2px;
  background: var(--surface-2);
}
.order-step:first-child::before { display: none; }
.order-step.is-done::before, .order-step.is-current::before { background: var(--accent); }
.order-step-dot { position: relative; z-index: 1; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 2px solid var(--surface-2); }
.order-step.is-done .order-step-dot { background: var(--accent); border-color: var(--accent); }
.order-step.is-current .order-step-dot { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.12); }
.order-step-label { font-size: 10.5px; font-weight: 600; line-height: 1.3; }
.order-step.is-current .order-step-label, .order-step.is-done .order-step-label { color: var(--ink); }
.order-step.is-current .order-step-label { font-weight: 700; }
/* --- Stara cena: szara, skreślona (obok aktualnej) --- */
.price-old {
  font-family: var(--font-main);
  font-weight: 500;
  font-size: 0.78em;
  color: #9ca3af;
  text-decoration: line-through;
  text-decoration-thickness: 1px;
  margin-left: 6px;
  white-space: nowrap;
}
.product-price-row .price-old { font-size: 15px; margin-left: 0; }
/* ---------- NOWOŚCI: karuzela pod banerem + pastylka z kropkami ---------- */
.novelties { margin: 4px 0 26px; }
.novelties[hidden] { display: none; }
.nv-track { gap: 14px; padding: 2px 20px 8px 20px; }
.nv-track .card {
  flex: 0 0 auto;
  width: clamp(150px, 43vw, 210px);   /* kolejna karta „wyziera”, więc widać, że można przesuwać */
}
.nv-wrap .carousel-arrow { top: 38%; }
/* Pastylka z kropkami — ten sam wygląd co pod banerem (.banner-dots), ale szerokość i kolor
   kropek ustawia JS na bieżąco podczas przewijania, więc bez przejścia CSS na szerokości. */
.nv-dots { display: flex; justify-content: center; margin-top: 12px; }
.nv-dots-pill {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px;
  border-radius: 999px;
  background: #d9d9d9;
}
.nv-dots button {
  position: relative;
  flex: none;
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #b3b3b3;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.nv-dots button::before { content: ''; position: absolute; inset: -9px -3px; }
.nv-dots button.is-active { cursor: default; }
/* ---------- Opinie: filtry (sortowanie) nad listą ---------- */
.rv-filters-block { margin: 4px 0 16px; }
.rv-filters-title { margin-bottom: 10px; }
.rv-filters { margin-bottom: 0; padding-bottom: 4px; }
.rv-list { transition: opacity .2s ease; }
.rv-list.is-sorting { opacity: .35; pointer-events: none; }
/* ==========================================================================
   Ikony nagłówka: aktywna (kliknięta / bieżąca strona) = czarna + przebiegający świetlny pasek.
   Pasek jest gradientem w tle samej ikony, więc przecina wyłącznie jej kształt (maska).
   ========================================================================== */
.icon-btn:active .icon-mask, .icon-btn.is-active .icon-mask, .icon-btn.is-current .icon-mask, .icon-btn[aria-current="page"] .icon-mask {
  background-color: #000;
  background-image: linear-gradient(105deg, rgba(255, 255, 255, 0) 41%, rgba(255, 255, 255, 0.95) 50%, rgba(255, 255, 255, 0) 59%);
  background-size: 300% 100%;
  background-repeat: no-repeat;
  background-position: 0% 0;
  animation: icon-sheen 2.6s cubic-bezier(0.45, 0.05, 0.35, 1) infinite;
}
@keyframes icon-sheen {
  0%   { background-position: 0% 0; }
  45%  { background-position: 100% 0; }
  100% { background-position: 100% 0; }
}
@media (prefers-reduced-motion: reduce) {
.icon-btn:active .icon-mask, .icon-btn.is-active .icon-mask, .icon-btn.is-current .icon-mask, .icon-btn[aria-current="page"] .icon-mask { animation: none; background-image: none; }

}
/* ==========================================================================
   Pasek informacyjny z dołu („Dodano do koszyka”, „Zalogowano poprawnie”):
   przezroczysty z rozmyciem tła, wolne i płynne wysuwanie/chowanie oraz świetlny pasek po wysunięciu.
   ========================================================================== */
.cart-toast {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.58), rgba(226, 226, 231, 0.46));
  -webkit-backdrop-filter: blur(22px) saturate(1.7);
  backdrop-filter: blur(22px) saturate(1.7);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 18px 44px rgba(16, 18, 26, 0.16), 0 2px 10px rgba(16, 18, 26, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.55);
  overflow: hidden;
  isolation: isolate;
  transform: translate(-50%, calc(100% + 70px));
  opacity: 0;
  /* chowanie: łagodne przyspieszenie i wyhamowanie */
  transition: transform 1s cubic-bezier(0.45, 0, 0.2, 1), opacity 0.8s ease;
  will-change: transform, opacity;
}
.cart-toast.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
  /* wysuwanie: miękki, długi „hamulec” na końcu */
  transition: transform 1.15s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s ease;
}
.cart-toast-cta { background: rgba(255, 255, 255, 0.72); }
.cart-toast-cta:hover { background: rgba(255, 255, 255, 0.95); }
.cart-toast::after {
  content: '';
  position: absolute;
  top: -30%;
  left: 0;
  width: 30%;
  height: 160%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.85) 50%, rgba(255, 255, 255, 0) 100%);
  filter: blur(8px);
  transform: translateX(-260%) skewX(-22deg);
  pointer-events: none;
  z-index: 3;
  opacity: 0;
}
/* Pasek startuje, gdy panel jest już prawie wysunięty (opóźnienie ≈ czas wysuwania). */
.cart-toast.is-visible::after {
  opacity: 1;
  animation: toast-sheen 2.4s cubic-bezier(0.45, 0.05, 0.35, 1) 0.85s 2;
}
@keyframes toast-sheen {
  0%   { transform: translateX(-260%) skewX(-22deg); }
  100% { transform: translateX(480%) skewX(-22deg); }
}
@media (prefers-reduced-motion: reduce) {
.cart-toast, .cart-toast.is-visible { transition: opacity 0.4s ease; }
.cart-toast.is-visible::after { animation: none; opacity: 0; }

}
/* ==========================================================================
   Profil: „Moje zamówienia” w zwijanej sekcji + przyciski-pigułki
   ========================================================================== */
.fold .orders-section { margin: 0; }
.fold .order-card { background: #fff; }
.fold .order-card:last-child { margin-bottom: 0; }
.fold .order-card .pill.is-off { background: var(--surface); }
.btn-pill-lg { padding: 15px 28px; font-size: 13.5px; border-radius: 999px; }
.account-view .btn-pill-lg.btn-block { margin-top: 10px; }
.account-view .btn-pill-lg.btn-outline { background: #fff; }
.account-view .btn-pill-lg.btn-outline:hover { background: var(--surface); border-color: var(--ink); color: var(--ink); }
.account-view .btn-pill-lg:active { transform: scale(0.98); }
/* ==========================================================================
   Strona produktu: ikona garażu przy „W magazynie”
   ========================================================================== */
.icon-mask.icon-garage { -webkit-mask-image: url("../assets/garage.svg"); mask-image: url("../assets/garage.svg"); }
/* Ustawienie na górze panelu admina: wyłącznik opinii po zakupie */
.admin-shell .setting-panel { margin-top: 16px; padding: 18px 20px; }
@media (min-width: 720px) {
.admin-shell .setting-panel { padding: 20px 28px; }

}
.setting-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.setting-text { flex: 1 1 260px; min-width: 0; }
.admin-shell .setting-panel h2 { margin-bottom: 6px; }
.admin-shell .setting-panel .form-note { margin: 0; }
.setting-control { display: flex; align-items: center; gap: 12px; }
.switch {
  position: relative;
  flex: none;
  width: 52px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--surface-2);
  cursor: pointer;
  transition: background-color 0.2s ease, opacity 0.2s ease;
}
.switch:disabled { opacity: 0.55; cursor: progress; }
.switch.is-on { background: var(--accent); }
.switch-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.25);
  transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}
.switch.is-on .switch-knob { transform: translateX(22px); }
.switch:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
.switch, .switch-knob { transition: none; }

}
/* ==========================================================================
   Świetlny pasek (.fx-shine) — ten sam efekt co na banerach i przyciskach (banner-shine).
   Użycie: dodaj klasę .fx-shine; kolor paska --shine (r, g, b), moc --shine-a, opóźnienie --fx-delay.
   ========================================================================== */
.fx-shine {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  --shine: 255, 255, 255;
  --shine-a: .55;
  --fx-delay: 0s;
}
.fx-shine::after {
  content: '';
  position: absolute;
  top: -25%;
  left: 0;
  width: 34%;
  height: 150%;
  background: linear-gradient(90deg, rgba(var(--shine), 0) 0%, rgba(var(--shine), var(--shine-a)) 50%, rgba(var(--shine), 0) 100%);
  filter: blur(7px);
  transform: translateX(-260%) skewX(-22deg);
  pointer-events: none;
  z-index: 2;
  will-change: transform;
  animation: banner-shine 4.6s cubic-bezier(.45, .05, .35, 1) var(--fx-delay) infinite;
}
@media (prefers-reduced-motion: reduce) {
.fx-shine::after { animation: none; opacity: 0; }

}
/* ==========================================================================
   Ekran „Zamówienie opłacone” (success.html + koszyk po płatności saldem)
   ========================================================================== */
.ok { max-width: 520px; margin: 0 auto; padding-bottom: 8px; }
.page-title.ok-title {
  font-size: clamp(28px, 8.6vw, 44px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.08;
  margin: 6px 0 14px;
}
/* Zdjęcie paczki: pasek światła przelatuje tylko po samej paczce (maska = kształt zdjęcia). */
.ok-parcel {
  position: relative;
  width: min(64%, 310px);
  aspect-ratio: 4 / 3;
  margin: 0 auto;
}
.ok-parcel img { display: block; width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.ok-parcel-shine {
  position: absolute;
  inset: 0;
  pointer-events: none;
  --shine-a: .85;
  -webkit-mask: url("../assets/paczka.webp") center / 100% 100% no-repeat;
  mask: url("../assets/paczka.webp") center / 100% 100% no-repeat;
}
.ok-sub { margin: 10px 0 20px; text-align: center; font-size: 16px; font-weight: 300; letter-spacing: -0.01em; color: #333; }
.ok-rows { display: grid; gap: 12px; }
.ok-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 58px;
  padding: 0 24px;
  border-radius: 999px;
  background: var(--surface-2);
  font-size: 12.5px;
}
.ok-pill span { flex: none; font-weight: 300; color: #444; white-space: nowrap; }
.ok-pill strong { min-width: 0; font-weight: 700; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ok .success-licenses { margin: 22px 0 0; }
.ok .order-expiry { margin-top: 18px; }
.ok-actions { display: grid; gap: 12px; margin-top: 28px; }
.ok-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
  padding: 0 24px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 700;
  text-align: center;
  transition: transform .1s ease, opacity .15s ease;
}
.ok-btn:active { transform: scale(.98); }
.ok-btn-dark { background: #000; color: #fff; --shine-a: .5; }
.ok-btn-dark:hover { opacity: .9; }
.ok-btn-light { background: var(--surface-2); color: var(--ink); }
.ok-btn-light:hover { background: #e2e2e5; }
/* ==========================================================================
   Profil → „Moje zamówienia”: minimalistyczna lista — duży numer, każdy napis w jednej linii
   ========================================================================== */
.ord { margin: 0 0 12px; padding: 22px 20px 20px; border-radius: 26px; background: #fff; }
.ord:last-child { margin-bottom: 0; }
.ord-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ord-num { font-size: 30px; font-weight: 700; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.ord-state { flex: none; display: inline-flex; align-items: center; gap: 7px; font-size: 10.5px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; white-space: nowrap; }
.ord-state::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #16a34a; }
.ord-state.is-unpaid { color: var(--danger); }
.ord-state.is-unpaid::before { background: var(--danger); }
.ord-date { margin: 6px 0 16px; font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.ord-lines { display: grid; gap: 8px; }
.ord-lines + .ord-lines { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--surface-2); }
.ord-line { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: baseline; gap: 16px; font-size: 12.5px; line-height: 1.4; }
.ord-line > span { color: var(--muted); white-space: nowrap; }
.ord-line > strong { min-width: 0; font-weight: 600; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* pozycje: nazwa po lewej (zawijana), cena po prawej */
.ord-lines.is-items .ord-line { grid-template-columns: minmax(0, 1fr) auto; }
/* Długa nazwa produktu zawija się do kolejnych linii (zamiast być ucinana), cena zostaje po prawej u góry. */
.ord-lines.is-items .ord-line { align-items: start; }
.ord-lines.is-items .ord-line > span { color: var(--ink); white-space: normal; overflow: visible; overflow-wrap: anywhere; word-break: normal; }
.ord-lines.is-items .ord-line > strong { overflow: visible; }
.ord-total { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--surface-2); }
.ord-total span { font-size: 12.5px; color: var(--muted); }
.ord-total strong { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; white-space: nowrap; }
.ord .order-licenses { margin-top: 14px; }
.ord .order-review { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--surface-2); }
.ord .order-review-name { white-space: normal; overflow: visible; overflow-wrap: anywhere; }
/* licznik wygasania w jednej linii */
.ord .order-expiry.is-compact { display: flex; flex-wrap: nowrap; align-items: baseline; justify-content: space-between; gap: 16px; margin: 14px 0 0; padding: 0; border: 0; border-radius: 0; background: none; }
.ord .order-expiry.is-compact .order-expiry-label { font-size: 12.5px; font-weight: 400; letter-spacing: 0; text-transform: none; white-space: nowrap; }
.ord .order-expiry.is-compact .order-expiry-time { font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.ord .order-expiry.is-compact.is-urgent .order-expiry-time { color: var(--danger); }
.ord-pay {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 54px;
  margin-top: 18px;
  border: 0;
  border-radius: 999px;
  background: #000;
  color: #fff;
  font: inherit;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  --shine-a: .5;
  transition: transform .1s ease, opacity .15s ease;
}
.ord-pay:active { transform: scale(.98); }
.ord-pay:disabled { opacity: .6; cursor: progress; }
.ord-pay:disabled::after { display: none; }
.ord-pay-error { margin: 10px 4px 0; font-size: 12px; color: var(--danger); text-align: center; }
/* ==========================================================================
   MERRYMI KITTY S 40K: tabelka specyfikacji
   ========================================================================== */
/* Niebieska „pigułka” z plakietki 1+1 GRATIS (assets/promo-1plus1.png) — jasnoniebieskie wypełnienie, wyraźna
   niebieska obwódka, biały napis; bez rozmycia tła i bez przezroczystości. Te same kolory ma znacznik
   „Zweryfikowany zakup” przy opiniach, żeby oba wyglądały identycznie. */
:root {
  --tile-blue-bg: #73bdff;
  --tile-blue-border: #0096ff;
  --tile-blue-ink: #ffffff;
}
/* Strona produktu: specyfikacja w tabelce */
.product-specs {
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid var(--border);
}
.product-specs .product-description-label { margin-bottom: 12px; }
.spec-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border-radius: 22px;
  background: var(--surface);
}
.spec-table th, .spec-table td {
  padding: 13px 18px;
  text-align: left;
  vertical-align: top;
  font-size: 12.5px;
  line-height: 1.45;
}
.spec-table tr + tr th, .spec-table tr + tr td { border-top: 1px solid var(--border); }
.spec-table th {
  width: 46%;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.spec-table td { font-weight: 700; color: var(--ink); }
/* ==========================================================================
   Karuzela z dwoma końcami (js/carousel.js): produkty „MERRYMI KITTY S 40K” i opinie na głównej.
   Przewija natywny scroll przeglądarki (płynnie na telefonie), bez zapętlenia i bez pętli animacji.
   ========================================================================== */
.loop-viewport {
  overflow-x: auto;
  overflow-y: hidden;
  margin: 0 -20px;               /* wyłamanie poza padding kontenera — karty dojeżdżają do krawędzi ekranu */
  touch-action: pan-x pan-y;     /* pionowe przewijanie strony i poziome przewijanie karuzeli — oba natywne */
  overscroll-behavior-x: contain; /* na krańcu karuzela nie „pociąga” za sobą strony ani gestu wstecz */
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  cursor: grab;
  -webkit-tap-highlight-color: transparent;
}
.loop-viewport::-webkit-scrollbar { display: none; }
.loop-viewport.is-dragging { cursor: grabbing; -webkit-user-select: none; user-select: none; }
.loop-viewport.is-dragging a, .loop-viewport.is-dragging button { pointer-events: none; }
.loop-track {
  display: flex;
  width: max-content;
  min-width: 100%;
}
.loop-track > * { flex: none; }
.carousel-wrap.is-static .loop-viewport { cursor: default; }
.carousel-wrap.is-static .carousel-arrow { display: none; }
/* strzałka znika na krańcu — tam nie ma już dokąd przewijać */
.carousel-wrap.is-start .carousel-arrow-prev, .carousel-wrap.is-end .carousel-arrow-next { opacity: 0; pointer-events: none; }
.carousel-arrow { transition: background-color 0.15s ease, transform 0.1s ease, opacity 0.2s ease; }
/* karty z polem wyboru opcji: tekst w środku nadal da się zaznaczać/klikać */
.loop-viewport select, .loop-viewport input { cursor: pointer; }
/* ==========================================================================
   Opinie v2: wszystkie karty tej samej wielkości, mocniej zaokrąglone, bez szarej linii nad
   produktem; znacznik „Zweryfikowany zakup” — niebieska obramówka z białym paskiem świetlnym.
   ========================================================================== */
.rv {
  height: 364px;
  min-width: 0;
  padding: 18px 18px 16px;
  border-radius: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
}
.rv-head { flex: none; }
/* Tekst: stała liczba linii, reszta ucięta wielkim „…” — wysokość karty od niego nie zależy. */
.rv-text {
  flex: none;
  min-height: 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
  overflow: hidden;
  font-size: 13px;
  line-height: 1.55;
}
.rv.has-photos .rv-text { -webkit-line-clamp: 3; }
/* Zdjęcia w kartach: większe (do 3 w rzędzie, każde ma do 92 px), z białym paskiem świetlnym.
   W powiększeniu (lightbox) paska nie ma — to osobny element. */
.rv-photos { flex: none; flex-wrap: nowrap; overflow: hidden; gap: 8px; }
.rv-photo, .rv-compact .rv-photo {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  max-width: 92px;
  width: auto;
  height: auto;
  aspect-ratio: 1;
  border-radius: 16px;
  isolation: isolate;
}
.rv-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .55) 46%, rgba(255, 255, 255, .95) 50%, rgba(255, 255, 255, .55) 54%, transparent 62%);
  transform: translateX(-125%);
  will-change: transform;
  animation: rv-photo-shine 4.2s ease-in-out infinite paused;
}
.rv-photo:nth-child(2)::after { animation-delay: .35s; }
.rv-photo:nth-child(3)::after { animation-delay: .7s; }
.rv.is-live .rv-photo::after { animation-play-state: running; }
@keyframes rv-photo-shine {
  0%, 45% { transform: translateX(-125%); }
  80%, 100% { transform: translateX(125%); }
}
/* „Zweryfikowany zakup”: bez wypełnienia — tylko niebieska obramówka i napis w tym samym kolorze.
   Po obramówce i po niebieskim znaczku co kilka sekund przebiega biały pasek świetlny. */
.rv-verified {
  --verify-blue: #0096ff;
  position: relative;
  flex: none;
  align-self: flex-start;
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  min-width: 0;
  margin-top: auto;              /* kafelek i produkt zawsze przy dolnej krawędzi karty */
  padding: 3px 11px 3px 4px;
  border-radius: 999px;
  background: transparent;
  border: 1.5px solid var(--verify-blue);
  color: var(--verify-blue);
  font-size: 10.5px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 0.01em;
}
/* pasek świetlny tylko na obramówce (maska wycina środek) */
.rv-verified::after {
  content: '';
  position: absolute;
  inset: -1.5px;
  padding: 1.5px;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(100deg, transparent 0 38%, rgba(255, 255, 255, .55) 46%, #fff 50%, rgba(255, 255, 255, .55) 54%, transparent 62% 100%) 100% 0 / 300% 100% no-repeat;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: rv-verify-ring 3.6s ease-in-out infinite paused;
}
.rv-verified-ico { position: relative; flex: none; width: 14px; height: 14px; display: block; }
.rv-verified-ico img { width: 100%; height: 100%; display: block; }
/* ten sam pasek na niebieskim znaczku (maska = kształt znaczka) */
.rv-verified-ico::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(100deg, transparent 0 38%, rgba(255, 255, 255, .55) 46%, #fff 50%, rgba(255, 255, 255, .55) 54%, transparent 62% 100%) 100% 0 / 300% 100% no-repeat;
  -webkit-mask: url("../assets/verify-blue.png") center / contain no-repeat;
          mask: url("../assets/verify-blue.png") center / contain no-repeat;
  animation: rv-verify-ico 3.6s ease-in-out infinite paused;
}
.rv-verified > span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@keyframes rv-verify-ring {
  0%       { background-position: 100% 0; }
  55%,100% { background-position: 0% 0; }
}
@keyframes rv-verify-ico {
  0%, 8%   { background-position: 100% 0; }
  20%,100% { background-position: 0% 0; }
}
.rv.is-live .rv-verified::after, .rv.is-live .rv-verified-ico::after { animation-play-state: running; }
@media (prefers-reduced-motion: reduce) {
.rv-verified::after, .rv-verified-ico::after, .rv-photo::after { animation: none; background: none; }

}
/* Bez szarej poziomej linii nad „Kupił i ocenia”. */
.rv-foot { flex: none; padding-top: 0; border-top: 0; }
.rv-product { border-radius: 18px; }
.rv.is-link { cursor: pointer; }
.rv.is-link:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
/* link „Zobacz wszystkie” nad karuzelą opinii */
.rv-home-all {
  flex: none;
  margin-bottom: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-size: 11.5px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .15s ease, transform .12s ease;
}
.rv-home-all:hover { background: var(--surface-2); }
.rv-home-all:active { transform: scale(.97); }
/* ==========================================================================
   Strona „Opinie klientów” (opinie/index.html)
   ========================================================================== */
.rvp-page { max-width: 1040px; }
.rvp-page .legal-updated { margin-bottom: 22px; }
.rvp-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 680px) {
.rvp-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }

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

}
.rvp-grid { transition: opacity .2s ease; }
.rvp-grid.is-sorting { opacity: .35; pointer-events: none; }
#rvp-more-slot { margin-top: 6px; padding-bottom: 8px; }
#rvp-more-slot .rv-more { margin-top: 18px; }
/* podświetlenie opinii, do której przeniósł klik z karuzeli */
.rv.is-highlight { animation: rvp-pulse 2.4s ease both; }
@keyframes rvp-pulse {
  0%, 60% { box-shadow: 0 0 0 3px var(--ink); }
  100%    { box-shadow: 0 0 0 3px rgba(10, 10, 10, 0); }
}
/* okno z pełną treścią opinii */
.rvp-lock { overflow: hidden; }
.rvp-modal {
  position: fixed; inset: 0; z-index: 3000;
  display: grid; place-items: center; padding: 20px;
  background: rgba(10, 10, 10, .55);
  opacity: 0; transition: opacity .2s ease;
  overflow-y: auto;
}
.rvp-modal.is-open { opacity: 1; }
.rvp-sheet {
  position: relative; width: min(100%, 480px);
  transform: translateY(14px) scale(.98); transition: transform .25s cubic-bezier(.2, .8, .2, 1);
}
.rvp-modal.is-open .rvp-sheet { transform: none; }
.rvp-close {
  position: absolute; top: -14px; right: -6px; z-index: 2;
  width: 38px; height: 38px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--ink); color: #fff; display: grid; place-items: center;
}
.rvp-close svg { width: 16px; height: 16px; }
/* karta w oknie: pełna treść, wysokość dopasowana do opinii */
.rv.rv-full { height: auto; overflow: visible; }
.rv-full .rv-text { display: block; -webkit-line-clamp: unset; overflow: visible; font-size: 13.5px; line-height: 1.6; }
.rv-full .rv-photos { flex-wrap: wrap; overflow: visible; }
.rv-full .rv-photo { flex: none; width: 84px; height: 84px; max-width: none; aspect-ratio: auto; }
.rv-full .rv-verified { margin-top: 0; }
/* ==========================================================================
   Karty produktów — nowy projekt (siatka, karuzele, wyszukiwarka, „Polecane”)
   Wszystkie wymiary są w cqw (% szerokości karty), więc karta wygląda identycznie
   w siatce 2/3/4-kolumnowej i w karuzeli — zmienia się tylko jej skala.
   ========================================================================== */
:root {
  --card-font: var(--font-main);   /* ta sama czcionka co reszta strony */
  --card-grey: #ececec;
  --card-icon: #7a7a7a;
}
.card { container-type: inline-size; font-family: var(--card-font); }
/* Zdjęcie: kwadrat z mocno zaokrąglonymi rogami — bez szarego tła i bez cienia. */
.card .card-image-wrap { border-radius: 25%; background: transparent; box-shadow: none; }
.card .card-image { padding: 0; object-fit: cover; object-position: center; }
.card .card-badge {
  top: 9cqw; left: 9cqw;
  padding: 1.6cqw 3.4cqw;
  border-radius: 999px;
  font-family: var(--card-font);
  font-size: max(8px, 4.6cqw);
  letter-spacing: 0.02em;
}
/* Cena, nazwa, ocena. */
.card .card-body { padding: 4.5cqw 0 0; gap: 0; }
.card .card-link-text { gap: 0; }
.card .card-price {
  display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 3cqw;
  font-family: var(--card-font);
  font-weight: 700;
  font-size: 7.6cqw;
  line-height: 1.35;
  color: #000;
}
.card .card-price .price-old { margin: 0; font-size: 4.6cqw; font-weight: 500; color: #9a9a9a; }
.card .card-name {
  font-family: var(--card-font);
  font-weight: 300;
  font-size: 6.6cqw;
  line-height: 1.5;
  letter-spacing: 0;
  text-transform: uppercase;
  color: #000;
  overflow-wrap: anywhere;
}
.card .card-name .num, .card .card-price .num { font-family: inherit; }
.card .card-rating { gap: 3cqw; margin-top: 2.6cqw; font-size: 5.1cqw; line-height: 1; white-space: nowrap; min-width: 0; }
.card .card-rating .stars { --s: 8.4cqw; }
.card .card-rating-avg { font-weight: 700; color: #000; }
.card .card-rating-count, .card .card-rating.is-empty .card-rating-count { font-size: inherit; font-weight: 400; color: #000; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.card .card-rating.is-empty .stars { opacity: 1; }
/* Przyciski: dwie szare pigułki jedna pod drugą — ikona z lewej, pogrubiony napis. */
.card .card-buy { margin: auto 0 0; padding-top: 7.5cqw; flex-direction: column; align-items: stretch; gap: 3.6cqw; }
.card .product-variants { gap: 3.6cqw; margin: 0; width: 100%; min-width: 0; }
.card .variant-picker, .card .product-addtocart-btn {
  display: flex; align-items: center; justify-content: flex-start; gap: 4cqw;
  width: 100%; height: 27cqw; min-height: 27cqw; min-width: 0; flex: none;
  padding: 0 4cqw 0 9cqw;
  border-radius: 999px;
  background: var(--card-grey);
  font-family: var(--card-font);
  font-weight: 700;
  font-size: 6cqw;
  line-height: 1;
  text-align: left;
  color: #000;
  white-space: nowrap;
}
.card .variant-picker .icon-mask, .card .product-addtocart-btn .icon-mask { width: 10cqw; height: 10cqw; flex: none; background-color: var(--card-icon); }
.card .variant-picker-label, .card .card-cta-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; font-size: inherit; font-weight: inherit; color: inherit; }
.card .variant-picker.is-chosen { background: var(--card-grey); }
/* Dodaj do koszyka: szary i nieaktywny, dopóki klient nie wybierze opcji (kolor / moc);
   po wyborze — a od razu, gdy produkt nie ma opcji — czarny z białym napisem. Po dodaniu krótko zielony. */
.card .product-addtocart-btn:disabled { cursor: not-allowed; }
.card .product-addtocart-btn:not(:disabled) { background: #000; color: #fff; cursor: pointer; }
.card .product-addtocart-btn:not(:disabled) .icon-mask { background-color: #fff; }
.card .product-addtocart-btn.is-added, .card .product-addtocart-btn.is-added:not(:disabled) { background: #16a34a; color: #fff; }
.card .variant-picker.is-chosen .icon-mask { background-color: #000; }
/* Karuzele (MERRYMI KITTY, „Polecane”, „Ostatnio oglądane”): nazwa zawsze w dwóch linijkach — dłuższa kończy się
   wielokropkiem, krótsza zostawia miejsce na drugą linijkę — dzięki temu wszystkie karty mają tę samą wysokość,
   a przyciski „Dodaj do koszyka” leżą równo, bez pustej przestrzeni pod gwiazdkami. */
.nv-track .card .card-name, .product-recommended-track .card .card-name {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 3em;          /* 2 linijki × line-height 1.5 */
  overflow-wrap: break-word;
}
.nv-track .card .card-buy { margin-top: 0; }


/* ==========================================================================
   Promocja „1 + 1 gratis” — znaczek na karcie produktu (Merry Mi Kitty S 40K)
   Całkowicie przezroczysty kontener (bez tła) z błękitną obwódką i napisem.
   Biały świetlny pasek przejeżdża po obwódce (::before, maska = sam pierścień)
   i po napisie (::after, ten sam napis przycięty do liter) — oba mają identyczny
   rozmiar i animację, więc pasek jest zsynchronizowany.
   ========================================================================== */
.card-bogo {
  --bogo-blue: #3da5ff;                              /* obwódka i napis: błękitne */
  --bogo-u: 1.7px;                                   /* jednostka skalowania: na karcie = 1cqw */
  --bogo-b: max(1.5px, calc(var(--bogo-u) * 0.5));   /* grubość obwódki */
  --bogo-px: calc(var(--bogo-u) * 3.8);
  --bogo-py: calc(var(--bogo-u) * 1.5);
  position: absolute;
  top: calc(var(--bogo-u) * 9);
  left: calc(var(--bogo-u) * 9);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: var(--bogo-py) var(--bogo-px);
  border: var(--bogo-b) solid var(--bogo-blue);
  border-radius: 999px;
  background: #ffffff;                               /* białe okienko */
  color: var(--bogo-blue);
  font-family: var(--card-font, inherit);
  font-size: max(9px, calc(var(--bogo-u) * 4.8));
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.25;
  white-space: nowrap;
  pointer-events: none;
}
.card .card-bogo { --bogo-u: 1cqw; }
.fav-card-media .card-bogo { top: 14px; left: 14px; }
/* Gdy karta ma też plakietkę „Polecane” — znaczek 1 + 1 schodzi pod nią. */
.card .card-badge ~ .card-bogo { top: calc(9cqw + 11cqw); }
.fav-card-media .card-badge ~ .card-bogo { top: 44px; }

.card-bogo::before,
.card-bogo::after {
  content: '';
  position: absolute;
  inset: calc(var(--bogo-b) * -1);                   /* dokładnie krawędź zewnętrzna obwódki */
  border-radius: inherit;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.98) 50%, transparent 60%) 100% 0 / 300% 100% no-repeat;
  animation: bogo-sweep 3.4s ease-in-out infinite;
  pointer-events: none;
}
/* Obwódka: pasek widoczny tylko na pierścieniu o grubości obwódki. */
.card-bogo::before {
  padding: var(--bogo-b);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
}
/* Napis: ten sam tekst, przezroczysty, z paskiem widocznym tylko w kształcie liter. */
.card-bogo::after {
  content: attr(data-text);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--bogo-py) + var(--bogo-b)) calc(var(--bogo-px) + var(--bogo-b));
  color: transparent;
  text-shadow: none;
  white-space: nowrap;
  -webkit-background-clip: text;
  background-clip: text;
}
@keyframes bogo-sweep {
  0%        { background-position: 100% 0; }
  55%, 100% { background-position: 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  .card-bogo::before, .card-bogo::after { animation: none; }
}
