/* =========================================================================
   CHERRY KIX – STYLE (v2)
   Plan projektu: DESIGN.md. Kolory marki z logo – zmieniasz tutaj.
   ========================================================================= */
:root {
  --black: #000000;
  --cherry: #c8102e;
  --pit: #5e0b1c;
  --cream: #f7efe8;
  --cream-2: #efe2d6;
  --leaf: #2e7d32;

  --on-black-2: rgba(247, 239, 232, 0.68);
  --on-black-line: rgba(247, 239, 232, 0.18);
  --on-cream-2: #5b4a45;
  --on-cream-line: rgba(94, 11, 28, 0.16);

  --display: "Unbounded", system-ui, sans-serif;
  --text: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1200px;
  --header-h: 68px;
  --shoe: #ff9ec4; /* ustawiane z JS wg wybranego koloru */
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }
body {
  margin: 0;
  background: var(--black);
  color: var(--cream);
  font-family: var(--text);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
body.locked { overflow: hidden; }
.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }

/* ---------- typografia ---------- */
.h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.75rem, 4.2vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
  max-width: 16ch;
}
.lead { margin: 16px 0 0; font-size: 1.125rem; max-width: 38ch; color: var(--on-black-2); }

/* ---------- przyciski ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 54px; padding: 0 28px; border-radius: 999px; border: 0;
  font-family: var(--text); font-weight: 600; font-size: 1.02rem; text-decoration: none; white-space: nowrap;
  transition: filter .15s, transform .1s;
}
.btn:active { transform: translateY(1px); }
/* błyszcząca wiśnia – jedyny efekt połysku na stronie */
.btn-cherry {
  color: #fff;
  background: radial-gradient(130% 170% at 28% -30%, #ff7b92 0%, #e3173c 32%, var(--cherry) 55%, #7d0a1d 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), inset 0 -4px 10px rgba(0, 0, 0, 0.25);
}
.btn-cherry:hover { filter: brightness(1.08); }
.btn-line { background: transparent; border: 1.5px solid currentColor; }
.btn-cream { background: var(--cream); color: var(--pit); }
.btn-cream:hover { background: #fff; }
.btn-block { width: 100%; }
.text-btn { background: none; border: 0; padding: 0; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

/* ---------- pasek u góry ---------- */
.topbar {
  margin: 0; padding: 8px 16px; text-align: center;
  background: var(--cherry); color: #fff; font-size: 0.875rem; font-weight: 500;
}

/* ---------- header ---------- */
.header {
  position: sticky; top: 0; z-index: 40; height: var(--header-h);
  background: var(--black); border-bottom: 1px solid var(--on-black-line);
}
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 100%; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo img { width: 44px; height: 44px; border-radius: 50%; }
.logo span { font-family: var(--display); font-weight: 500; font-size: 1.1rem; letter-spacing: -0.02em; }
.nav { display: none; gap: 32px; }
.nav a { text-decoration: none; color: var(--on-black-2); font-weight: 500; }
.nav a:hover { color: var(--cream); }
.cart-btn {
  position: relative; width: 46px; height: 46px; border-radius: 50%;
  background: transparent; border: 1.5px solid var(--on-black-line); display: grid; place-items: center;
}
.cart-btn svg { width: 22px; height: 22px; }
.badge {
  position: absolute; top: -5px; right: -5px; min-width: 21px; height: 21px; padding: 0 6px; border-radius: 999px;
  background: var(--cherry); color: #fff; font-size: 0.75rem; font-weight: 600; display: grid; place-items: center;
}
.badge[data-count="0"] { display: none; }
.badge.pop { animation: pop .35s ease; }
@keyframes pop { 50% { transform: scale(1.3); } }

/* ---------- puste miejsca na zdjęcia ---------- */
.ph {
  position: relative; overflow: hidden; display: grid; place-items: center;
  background: rgba(247, 239, 232, 0.06); border: 1px dashed rgba(247, 239, 232, 0.22);
}
.ph-inner svg { width: 40px; height: 40px; opacity: 0.55; }
.ph > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ph.has-img { border-style: solid; border-color: transparent; }
.ph.has-img .ph-inner { display: none; }

/* ---------- pierwszy ekran: scena + panel ---------- */
.buy { padding: 20px 0 64px; }
.buy-grid { display: grid; gap: 28px; }

.stage {
  container-type: inline-size;
  position: relative; overflow: hidden; border-radius: 28px; aspect-ratio: 1 / 1;
  background: color-mix(in srgb, var(--shoe) 62%, #fff);
  transition: background-color .5s ease;
}
.stage-photo { position: absolute; inset: 0; background: transparent; border: 0; }
.stage-photo .ph-inner { color: color-mix(in srgb, var(--shoe) 35%, #000); }
.stage-name {
  position: absolute; left: 4cqw; right: 4cqw; bottom: 3cqw; margin: 0; pointer-events: none;
  font-family: var(--display); font-weight: 500; font-size: 12.5cqw; line-height: 0.9; letter-spacing: -0.04em;
  color: color-mix(in srgb, var(--shoe) 40%, #000);
  opacity: 0.92;
  transition: color .5s ease;
}
.thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 10px; }
.thumbs button { padding: 0; border: 0; background: none; border-radius: 12px; }
.thumbs .ph { aspect-ratio: 1 / 1; border-radius: 12px; border: 0; background: color-mix(in srgb, var(--tint, #888) 45%, #fff); }
.thumbs .ph-inner svg { width: 20px; height: 20px; color: #000; }
.thumbs button[aria-current="true"] { outline: 2px solid var(--cream); outline-offset: 2px; }

.panel-title { font-family: var(--display); font-weight: 400; font-size: clamp(2.25rem, 6vw, 3.25rem); line-height: 1; letter-spacing: -0.03em; margin: 4px 0 0; }
.panel-price { margin: 12px 0 0; font-family: var(--display); font-weight: 400; font-size: 1.6rem; display: flex; gap: 12px; align-items: baseline; }
.old-price { color: var(--on-black-2); font-size: 1.1rem; }
.stock { margin: 6px 0 0; color: var(--on-black-2); font-size: 0.95rem; }
.stock::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: #4caf50; vertical-align: 0.1em; }

.field { position: relative; margin-top: 28px; }
/* float = legenda zachowuje się jak zwykły blok, więc link „Tabela rozmiarów” może stać obok */
.field legend { float: left; width: 100%; padding: 0; margin-bottom: 12px; font-weight: 500; color: var(--on-black-2); }
.field legend ~ * { clear: both; }
.field legend ~ .field-aside { clear: none; }
.field legend b { color: var(--cream); font-weight: 600; }
.field-aside { position: absolute; top: 0; right: 0; font-size: 0.95rem; }

.swatches { display: flex; flex-wrap: wrap; gap: 18px; }
.swatch { display: flex; align-items: center; gap: 10px; background: none; border: 0; padding: 4px 2px; font-weight: 500; color: var(--on-black-2); }
.swatch i { width: 40px; height: 40px; border-radius: 50%; display: block; box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); transition: box-shadow .15s; }
.swatch[aria-checked="true"] { color: var(--cream); }
.swatch[aria-checked="true"] i { box-shadow: 0 0 0 3px var(--black), 0 0 0 5px var(--cream); }

.sizes { display: grid; grid-template-columns: repeat(auto-fill, minmax(56px, 1fr)); gap: 8px; }
.size {
  height: 50px; border-radius: 10px; background: transparent; border: 1px solid var(--on-black-line);
  font-weight: 500; font-size: 1rem; transition: background .12s, color .12s, border-color .12s;
}
.size:hover:not(:disabled) { border-color: var(--cream); }
.size[aria-checked="true"] { background: var(--cream); color: var(--black); border-color: var(--cream); }
.size:disabled { opacity: 0.3; text-decoration: line-through; cursor: not-allowed; }
.sizes.error .size:not(:disabled) { border-color: #ff6b7f; }
.field-error { display: none; margin: 10px 0 0; color: #ff8a99; font-weight: 500; }
.field-error.show { display: block; }

.addons { border-top: 1px solid var(--on-black-line); }
.addon {
  display: grid; grid-template-columns: auto 48px 1fr auto; align-items: center; gap: 14px;
  padding: 14px 0; border-bottom: 1px solid var(--on-black-line); cursor: pointer;
}
.addon input {
  appearance: none; width: 22px; height: 22px; margin: 0; border-radius: 6px; border: 1.5px solid var(--on-black-2);
  display: grid; place-items: center;
}
.addon input:checked { background: var(--cream); border-color: var(--cream); }
.addon input:checked::after { content: ""; width: 10px; height: 6px; border: 2px solid var(--black); border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.addon-name { font-weight: 500; }
.addon-name small { display: block; color: var(--on-black-2); font-size: 0.875rem; font-weight: 400; }
.addon-price { font-weight: 500; }
.bundle-hint { margin: 10px 0 0; font-size: 0.95rem; color: var(--on-black-2); }
.bundle-hint b { color: var(--cream); font-weight: 600; }

#addToCart { margin-top: 28px; min-height: 60px; font-size: 1.08rem; }
.facts { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 6px; color: var(--on-black-2); font-size: 0.95rem; }
.facts li { padding-left: 18px; position: relative; }
.facts li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 8px; height: 8px; border-radius: 50%; background: var(--cherry); }
.share-parent { margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--on-black-line); color: var(--on-black-2); }
.share-parent .text-btn { color: var(--cream); }

/* ---------- kolory: kafle w barwach butów ---------- */
.colors { padding: 72px 0 0; }
.colors .h2 { margin-bottom: 28px; }
.tiles { display: grid; grid-auto-flow: column; grid-auto-columns: 82%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.tiles::-webkit-scrollbar { display: none; }
.tile {
  scroll-snap-align: start; position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  aspect-ratio: 3 / 4; padding: 24px; border: 0; text-align: left; background: var(--c);
  color: color-mix(in srgb, var(--c) 35%, #000);
}
.tile .ph { position: absolute; inset: 0; background: transparent; border: 0; }
.tile .ph-inner { color: inherit; }
.tile-name { position: relative; font-family: var(--display); font-weight: 500; font-size: clamp(1.9rem, 4vw, 2.6rem); letter-spacing: -0.03em; line-height: 1; }
.tile-cta { position: relative; margin-top: 10px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- dodatki: blok wiśniowy ---------- */
.extras { background: var(--cherry); color: #fff; padding: 80px 0; }
.extras .lead { color: rgba(255, 255, 255, 0.82); }
.split { display: grid; gap: 32px; }
.extras-list { border-top: 1px solid rgba(255, 255, 255, 0.3); }
.extra {
  display: grid; grid-template-columns: 88px 1fr; gap: 16px; align-items: center;
  padding: 18px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}
.extra .ph { width: 88px; aspect-ratio: 1 / 1; border-radius: 14px; background: rgba(0, 0, 0, 0.16); border: 0; }
.extra .ph-inner svg { width: 26px; height: 26px; }
.extra h3 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 1.15rem; letter-spacing: -0.01em; }
.extra p { margin: 2px 0 0; color: rgba(255, 255, 255, 0.82); font-size: 0.95rem; }
.extra-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; }
.extra-price { font-family: var(--display); font-size: 1.1rem; }
.extra .btn { min-height: 44px; padding: 0 20px; font-size: 0.95rem; }
.bundle {
  margin-top: 20px; padding: 22px; border-radius: 18px; background: var(--cream); color: var(--pit);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px;
}
.bundle h3 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 1.2rem; }
.bundle p { margin: 2px 0 0; color: var(--on-cream-2); }
.bundle .btn { min-height: 48px; }

/* ---------- dla rodziców: krem ---------- */
.parents { background: var(--cream); color: var(--black); padding: 80px 0; }
.parents .lead { color: var(--on-cream-2); }
.points { margin: 0; display: grid; gap: 0; }
.points > div { padding: 18px 0; border-top: 1px solid var(--on-cream-line); display: grid; gap: 4px; }
.points dt { font-family: var(--display); font-size: 1.05rem; color: var(--pit); }
.points dd { margin: 0; color: var(--on-cream-2); max-width: 46ch; }
.row-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.parents .btn-line { color: var(--pit); }

/* ---------- #cherrykix ---------- */
.ugc { padding: 80px 0; }
.ugc-head { margin-bottom: 28px; }
.ugc-links { display: flex; gap: 20px; margin: 16px 0 0; font-weight: 600; }
.ugc-links a { text-underline-offset: 3px; }
.ugc-grid[hidden] { display: none; }
.ugc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.ugc-grid .ph { aspect-ratio: 3 / 4; border-radius: 14px; }
.ugc-grid .ph:first-child { grid-column: span 2; aspect-ratio: 4 / 3; }

/* ---------- pytania ---------- */
.faq-sec { background: var(--cream); color: var(--black); padding: 80px 0; }
.faq { border-top: 1px solid var(--on-cream-line); }
.faq details { border-bottom: 1px solid var(--on-cream-line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 0; font-weight: 600; font-size: 1.08rem;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--display); font-size: 1.4rem; line-height: 1; color: var(--cherry); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 20px; color: var(--on-cream-2); max-width: 60ch; }

/* ---------- stopka ---------- */
.footer { padding: 72px 0 120px; color: var(--on-black-2); }
.footer-top { display: flex; flex-direction: column; align-items: center; gap: 24px; padding-bottom: 48px; border-bottom: 1px solid var(--on-black-line); }
.footer-top img { width: 160px; height: 160px; }
.footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 24px; padding: 36px 0; }
.footer-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-cols a { text-decoration: none; }
.footer-cols a:hover { color: var(--cream); }
.footer-legal { font-size: 0.85rem; margin: 0; }

/* ---------- pasek zakupu (telefon) ---------- */
.sticky-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 35;
  display: flex; align-items: center; gap: 12px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: var(--black); border-top: 1px solid var(--on-black-line);
  transform: translateY(110%); transition: transform .25s ease;
}
.sticky-bar.show { transform: none; }
.sticky-dot { width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0; }
.sticky-info { flex: 1; min-width: 0; line-height: 1.25; }
.sticky-info b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky-info span { color: var(--on-black-2); font-size: 0.9rem; }
.sticky-bar .btn { min-height: 48px; padding: 0 20px; }

/* ---------- koszyk ---------- */
.overlay { position: fixed; inset: 0; z-index: 60; background: rgba(0, 0, 0, 0.55); opacity: 0; pointer-events: none; transition: opacity .2s; }
.overlay.show { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 70; width: min(440px, 100%);
  background: var(--cream); color: var(--black); display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .28s ease;
}
.drawer.open { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--on-cream-line); }
.drawer-head h2 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 1.5rem; }
.icon-btn { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--on-cream-line); background: transparent; display: grid; place-items: center; color: var(--black); }
.icon-btn svg { width: 18px; height: 18px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 18px 20px; display: grid; gap: 20px; align-content: start; }
.drawer-foot { padding: 16px 20px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--on-cream-line); display: grid; gap: 12px; }

.ship-progress p { margin: 0 0 8px; font-size: 0.95rem; }
.ship-progress b { font-weight: 600; color: var(--pit); }
.ship-progress.done b { color: var(--leaf); }
.bar { height: 6px; border-radius: 999px; background: rgba(0, 0, 0, 0.08); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: var(--cherry); border-radius: inherit; transition: width .35s ease; }
.ship-progress.done .bar i { background: var(--leaf); }

.cart-note { margin: 0; padding: 12px 14px; border-radius: 12px; background: var(--cream-2); color: var(--pit); font-size: 0.92rem; }
.cart-items { display: grid; }
.cart-item { display: grid; grid-template-columns: 68px 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--on-cream-line); }
.cart-item:first-child { padding-top: 0; }
.cart-item .ph { width: 68px; aspect-ratio: 1 / 1; border-radius: 12px; border: 0; background: color-mix(in srgb, var(--tint, #d8c9bd) 50%, #fff); }
.cart-item .ph-inner svg { width: 20px; height: 20px; }
.ci-top { display: flex; justify-content: space-between; gap: 8px; }
.ci-name { font-weight: 600; line-height: 1.25; }
.ci-meta { color: var(--on-cream-2); font-size: 0.9rem; }
.ci-price { font-weight: 600; white-space: nowrap; }
.ci-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--on-cream-line); border-radius: 999px; }
.qty button { width: 34px; height: 34px; border: 0; background: none; font-size: 1.1rem; }
.qty span { min-width: 22px; text-align: center; font-weight: 600; }
.ci-remove { border: 0; background: none; padding: 0; color: var(--on-cream-2); font-size: 0.875rem; text-decoration: underline; }

.empty-cart { padding: 32px 0; text-align: center; color: var(--on-cream-2); }
.empty-cart img { width: 96px; height: 96px; border-radius: 50%; margin: 0 auto 14px; }
.empty-cart .btn { margin-top: 8px; }

/* oferta dodatków w koszyku – jedyny ciemny blok w kremowym koszyku */
.offer { background: var(--pit); color: var(--cream); border-radius: 16px; padding: 16px; display: grid; gap: 10px; }
.offer h3 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 1.05rem; line-height: 1.25; }
.offer p { margin: -4px 0 2px; font-size: 0.92rem; color: rgba(247, 239, 232, 0.78); }
.offer-item { display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 12px; }
.offer-item .ph { width: 52px; aspect-ratio: 1; border-radius: 10px; border: 0; background: var(--cream); }
.offer-name { display: grid; line-height: 1.3; font-size: 0.95rem; }
.offer-name b { font-weight: 600; }
.offer-name span { color: rgba(247, 239, 232, 0.78); }
.offer-name s { opacity: 0.7; }
.offer-add { min-height: 40px; padding: 0 18px; border-radius: 999px; border: 0; background: var(--cream); color: var(--pit); font-weight: 600; font-size: 0.9rem; }
.offer-add:hover { background: #fff; }
.offer-add:focus-visible { outline-color: var(--cream); }

.ci-size {
  height: 34px; padding: 0 30px 0 12px; border-radius: 999px; border: 1px solid var(--on-cream-line);
  font: inherit; font-size: 0.88rem; color: var(--black); cursor: pointer;
  appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235e0b1c' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 11px center;
}
.ci-size:focus-visible { outline: 2px solid var(--pit); outline-offset: 2px; }
.eta-line { margin: -2px 0 2px; font-size: 0.9rem; color: var(--on-cream-2); }
.eta-line b { color: var(--black); font-weight: 600; }
.share-cart { margin: 0; padding-top: 4px; text-align: center; font-size: 0.92rem; color: var(--on-cream-2); }
.share-cart .text-btn { color: var(--pit); }
.pay-methods { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.pay-methods li { padding: 3px 9px; border-radius: 6px; border: 1px solid var(--on-cream-line); background: #fff; font-size: 0.76rem; font-weight: 600; color: var(--on-cream-2); }
@keyframes nudge { 0%, 100% { box-shadow: 0 0 0 0 rgba(200, 16, 46, 0); } 35% { box-shadow: 0 0 0 5px rgba(200, 16, 46, 0.35); } }
.nudge { animation: nudge 0.9s ease 2; }

/* strona produktu: przewidywana dostawa, zdjęcia dodatków */
.eta { margin: 12px 0 0; font-size: 0.95rem; color: var(--on-black-2); text-align: center; }
.eta b { color: var(--cream); font-weight: 600; }
.addon-img { width: 48px; aspect-ratio: 1; border-radius: 10px; border: 0; background: var(--cream); overflow: hidden; }
.addon-img .ph-inner svg { width: 16px; height: 16px; }

.ship-methods { display: grid; gap: 8px; }
.ship-methods h3 { margin: 0; font-size: 0.95rem; font-weight: 600; }
.ship-method { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--on-cream-line); cursor: pointer; font-size: 0.95rem; }
.ship-method:has(input:checked) { border-color: var(--pit); background: #fff; }
.ship-method input { accent-color: var(--cherry); width: 18px; height: 18px; margin: 0; }
.ship-method span { flex: 1; }
.ship-method small { display: block; color: var(--on-cream-2); }

/* ---------- Paczkomaty ---------- */
.locker { margin-top: 6px; padding: 14px; border-radius: 14px; background: #fff; border: 1px solid var(--on-cream-line); display: grid; gap: 10px; }
.locker-search { display: flex; gap: 8px; }
.locker-search input {
  flex: 1; min-width: 0; height: 44px; padding: 0 12px; border-radius: 10px; border: 1.5px solid var(--on-cream-line);
  font: inherit; color: var(--black); background: var(--cream);
}
.locker-search input:focus { outline: none; border-color: var(--pit); }
.locker-search .btn { min-height: 44px; padding: 0 16px; font-size: 0.92rem; }
.locker-actions { display: flex; gap: 16px; flex-wrap: wrap; font-size: 0.9rem; color: var(--pit); }
.locker-msg { margin: 0; font-size: 0.9rem; color: var(--on-cream-2); }
.locker-msg.need { color: var(--pit); font-weight: 500; text-align: center; }
.locker-msg a { color: var(--pit); }
.locker-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; max-height: 260px; overflow-y: auto; }
.locker-item {
  width: 100%; text-align: left; display: grid; gap: 2px; padding: 10px 12px; border-radius: 10px;
  border: 1px solid var(--on-cream-line); background: var(--cream); color: var(--black); font-size: 0.9rem;
}
.locker-item:hover, .locker-item:focus-visible { border-color: var(--pit); background: #fff; }
.locker-item > span:first-child { display: flex; justify-content: space-between; gap: 8px; }
.locker-item em { font-style: normal; color: var(--on-cream-2); font-size: 0.82rem; }
.locker-item small, .locker-picked small { color: var(--on-cream-2); }
.locker-picked { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; font-size: 0.92rem; }
.locker-picked > div { display: grid; gap: 2px; }
.locker-label { font-size: 0.78rem; color: var(--leaf); font-weight: 600; }
.locker-picked .text-btn { color: var(--pit); font-size: 0.9rem; }
.modal-map .modal-card { width: min(760px, 100%); }
.locker-map { width: 100%; height: min(60vh, 520px); border-radius: 14px; overflow: hidden; background: var(--cream-2); }
.locker-pop { font-family: var(--text); font-size: 0.9rem; line-height: 1.4; }
.locker-pop-btn { min-height: 38px; padding: 0 14px; font-size: 0.85rem; margin-top: 8px; }
.leaflet-container a.locker-pop-btn { color: #fff; }

/* ---------- wysyłka UE ---------- */
.country-select {
  width: 100%; height: 46px; padding: 0 12px; border-radius: 12px; border: 1.5px solid var(--on-cream-line);
  background: #fff; font: inherit; color: var(--black);
}
.country-select:focus { outline: none; border-color: var(--pit); }
.ship-zone { display: flex; justify-content: space-between; gap: 12px; margin: 0; font-size: 0.92rem; color: var(--on-cream-2); }
.ship-zone b { color: var(--black); }
#checkoutBtn:disabled { opacity: 0.45; cursor: not-allowed; filter: grayscale(0.3); }

/* ---------- przełącznik języka ---------- */
.header-right { display: flex; align-items: center; gap: 12px; }
.lang { display: flex; border: 1.5px solid var(--on-black-line); border-radius: 999px; overflow: hidden; font-size: 0.82rem; font-weight: 600; }
.lang a, .lang span { padding: 7px 11px; text-decoration: none; color: var(--on-black-2); }
.lang [aria-current="true"] { background: var(--cream); color: var(--black); }
.lang a:hover { color: var(--cream); }
@media (max-width: 560px) {
  .header-row:has(.header-right .btn) .logo span { display: none; }
  .header-right { gap: 8px; }
  .header-right .btn { min-height: 40px !important; padding: 0 14px; font-size: 0.85rem; }
}

.totals { display: grid; gap: 2px; font-size: 0.92rem; }
.totals div { display: flex; justify-content: space-between; gap: 12px; }
.totals .discount { color: var(--leaf); }
.totals .grand { margin-top: 6px; padding-top: 8px; border-top: 1px solid var(--on-cream-line); font-family: var(--display); font-size: 1.15rem; }
.secure-note { margin: 0; text-align: center; font-size: 0.82rem; color: var(--on-cream-2); }
#checkoutBtn { min-height: 56px; font-size: 1.05rem; }
#checkoutBtn[data-ready="false"] { background: var(--black); box-shadow: none; }
.drawer-foot { gap: 10px; }

/* ---------- modale ---------- */
.modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px; opacity: 0; pointer-events: none; transition: opacity .18s; }
.modal.open { opacity: 1; pointer-events: auto; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.6); }
.modal-card {
  position: relative; width: min(480px, 100%); max-height: 90vh; overflow-y: auto;
  background: var(--cream); color: var(--black); border-radius: 22px; padding: 28px;
}
.modal-card .icon-btn { position: absolute; top: 14px; right: 14px; }
.modal-card h2 { margin: 0 48px 12px 0; font-family: var(--display); font-weight: 400; font-size: 1.5rem; line-height: 1.15; }
.modal-note { color: var(--on-cream-2); margin: 12px 0 18px; }
.size-table { width: 100%; border-collapse: collapse; }
.size-table th, .size-table td { padding: 8px 4px; text-align: left; border-bottom: 1px solid var(--on-cream-line); }
.size-table th { font-weight: 500; color: var(--on-cream-2); font-size: 0.9rem; }

.toast {
  position: fixed; left: 50%; bottom: 92px; z-index: 90; transform: translate(-50%, 12px);
  max-width: calc(100% - 32px); padding: 12px 20px; border-radius: 999px;
  background: var(--cream); color: var(--black); font-weight: 500; text-align: center;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- strony prawne ---------- */
.legal { background: var(--cream); color: var(--black); padding: 56px 0 96px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-family: var(--display); font-weight: 400; font-size: clamp(2rem, 5vw, 2.75rem); letter-spacing: -0.02em; line-height: 1.1; margin: 0 0 20px; }
.legal h2 { font-family: var(--display); font-weight: 400; font-size: 1.2rem; margin: 36px 0 8px; }
.legal p, .legal li { color: var(--on-cream-2); }
.legal a { color: var(--pit); }
.legal .todo { background: rgba(200, 16, 46, 0.12); color: var(--pit); padding: 1px 6px; border-radius: 4px; }
/* strona podziękowania: kolejne kroki to prawdziwa sekwencja, więc numerowane */
.next-steps { list-style: none; counter-reset: step; margin: 28px 0 8px; padding: 0; display: grid; gap: 0; }
.next-steps li { counter-increment: step; position: relative; padding: 14px 0 14px 52px; border-top: 1px solid var(--on-cream-line); display: grid; gap: 2px; }
.next-steps li::before {
  content: counter(step); position: absolute; left: 0; top: 14px; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; background: var(--pit); color: var(--cream); font-family: var(--display); font-size: 0.95rem;
}
.next-steps b { font-family: var(--display); font-weight: 400; color: var(--black); }
.thanks-tiktok { margin: 36px 0 28px; padding: 24px; border-radius: 20px; background: var(--black); color: var(--cream); }
.thanks-tiktok h2 { margin: 0 0 6px; }
.legal .thanks-tiktok p { color: var(--on-black-2); margin: 0 0 18px; }
.thanks-tiktok b { color: var(--cream); }
.legal .thanks-tiktok .btn { color: #fff; text-decoration: none; }
.legal-note { border: 1px dashed var(--on-cream-line); border-radius: 12px; padding: 14px 16px; font-size: 0.95rem; }

/* ---------- większe ekrany ---------- */
@media (min-width: 720px) {
  .tiles { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); overflow: visible; }
  .ugc-grid { grid-template-columns: repeat(4, 1fr); }
  .ugc-grid .ph:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
  .points { grid-template-columns: 1fr 1fr; column-gap: 32px; }
}
@media (min-width: 960px) {
  :root { --header-h: 76px; }
  .nav { display: flex; }
  .buy { padding: 28px 0 88px; }
  .buy-grid { grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr); gap: 56px; align-items: start; }
  .stage-col { position: sticky; top: calc(var(--header-h) + 20px); }
  .split { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 64px; align-items: start; }
  .extras, .parents, .faq-sec, .ugc { padding: 112px 0; }
  .colors { padding-top: 112px; }
  .footer { padding-bottom: 56px; }
  .sticky-bar { display: none; }
  .toast { bottom: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
