/* Rip & Ship – SHOP (/shop, shop.html + shop.js) a DETAIL PRODUKTU / BATTLE (/shop/<slug>, produkt.html) v novom vzhľade · etapa 1 · 9. 11. 2026
   Načítava sa ZA /assets/bh.css. Nahrádza na týchto dvoch stránkach /v2/v2.css a /shop.css (shop.css ďalej používajú košík, pokladňa a statické
   stránky, kým ich neprepíšu – preto je toto nový súbor, nie prepis shop.css).
   Markup kariet a detailu skladá rovnako klient (shop.js card(), vložený skript produkt.html) aj server (server/seo.js cardHtml, battleCardHtml,
   fillProduct) – triedy sa preto nemenia a štýlujú sa tu: .card-p, .chip.st.ok|no, .chip.sale, .nm, .pr, .qs, .qs-add, .stp, .in-cart, .qs-note,
   .bn-card, .bn-top, .bn-foot, #stock „chip ok|no“, #order „btn red big disabled“, #order-note „fine battle-note|err“, .pool-item, .bfacts …
   Nezávisí od dočasných aliasov v bh.css (časť 18), tie sa po prepise všetkých šablón zmažú.
   Obsah: 1 hlavička shopu a hľadanie · 2 práve vyhlásené battle · 3 kategórie a filtre · 4 mriežka a karta produktu · 5 rýchly nákup
          6 lišta košíka · 7 detail: omrvinky, galéria · 8 detail: nákup (cena, varianty, voľba, počet, tlačidlo, poznámky)
          9 detail battle: fakty, výber boostrov · 10 popis · 11 spoločné · 12 vložený režim (panel na /live) · 13 pohyb */

/* ============ 1 HLAVIČKA SHOPU A HĽADANIE ============ */
.shop { padding-top: var(--s5); padding-bottom: var(--s10); }
.shop-head { display: grid; gap: var(--s3); margin-bottom: var(--s5); }
.shop-head .label { color: var(--accent-text); }
.shop-head h1 { font-size: 32px; letter-spacing: -.03em; overflow-wrap: anywhere; }
.shop-head h1 .outline { color: var(--accent-text); }
@media (min-width: 900px) {
  .shop { padding-top: var(--s8); }
  .shop-head { grid-template-columns: minmax(0, 1fr) 400px; align-items: end; column-gap: var(--s8); margin-bottom: var(--s6); }
  .shop-head .label { grid-column: 1 / -1; }
  .shop-head h1 { font-size: 52px; }
}
.search .input { min-height: 52px; border-radius: var(--r-lg); }
.search .input::-webkit-search-cancel-button { cursor: pointer; }

/* ============ 2 PRÁVE VYHLÁSENÉ BATTLE (#battles-now) – karty .bn-card (shop.js renderBattles = seo.js battleCardHtml) ============ */
.battles-now { margin: 0 0 var(--s6); }
.bn-head { display: flex; align-items: center; flex-wrap: wrap; gap: var(--s2) var(--s3); margin-bottom: var(--s3); }
.bn-head h2 { font-size: var(--fs-xl); }
.bn-grid { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 84%); gap: var(--s3); margin: 0 calc(-1 * var(--gutter)); padding: 4px var(--gutter) var(--s3); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--gutter); scrollbar-width: none; }
.bn-grid::-webkit-scrollbar { display: none; }
@media (min-width: 700px) { .bn-grid { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); margin: 0; padding: 0; overflow: visible; } .bn-grid:has(> .bn-card:only-child) { grid-template-columns: minmax(0, 640px); } }   /* jediná battle: širšia karta (do 640 px); fotky a obsadenosť ako .bcard prototypu = etapa 2 (shop.js) */
@media (min-width: 1000px) { .bn-grid:has(> .bn-card:nth-child(2):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }   /* dve battle: dva stĺpce, nie prázdna tretina */
.bn-card { position: relative; display: flex; flex-direction: column; gap: var(--s2); min-width: 0; scroll-snap-align: start; padding: var(--s4); background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--brand-yellow); border-radius: var(--r-lg); box-shadow: var(--sh-1); color: var(--ink); text-decoration: none; transition: box-shadow var(--t-fast) var(--ease); }
.bn-card:hover { box-shadow: var(--sh-2); }
.bn-link { display: flex; flex-direction: column; gap: var(--s2); color: inherit; text-decoration: none; }
a.bn-card:hover .bn-top b, .bn-link:hover .bn-top b { text-decoration: underline; text-underline-offset: 3px; }
.bn-top { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s2); }
.bn-top b { min-width: 0; font-size: var(--fs-md); font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; }
.bn-top .chip { flex: none; min-height: 26px; padding: 2px 8px; border: 0; border-radius: var(--r-sm); background: var(--ok-soft); color: var(--ok); font-size: var(--fs-sm); }
.bn-card p { font-size: var(--fs-sm); line-height: 1.45; color: var(--ink-2); }
.bn-foot { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 6px; margin-top: auto; padding-top: 4px; font-size: var(--fs-sm); color: var(--ink-2); }
.bn-foot b { font-family: var(--font-display); font-size: var(--fs-lg); font-weight: 800; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.bn-foot b small { font-family: var(--font-body); font-size: var(--fs-sm); font-weight: 600; color: var(--ink-2); }
.bn-foot .btn { flex: 1 0 100%; margin-top: var(--s2); }
.bn-card.has { border-color: var(--ink); border-top-color: var(--brand-yellow); }
.bn-card .qs { margin: var(--s2) 0 0; }
.bn-card .qs-note { margin: 0; }
/* výhra battle pod popisom (shop.js bnPrize = seo.js prizeHtml): obrázok produktu výhry na svetlej ploche ako fotky produktov (aj v noci) */
.bn-card .bn-prize { display: flex; align-items: center; gap: var(--s3); margin: 0; padding: var(--s2) var(--s3); border-radius: var(--r); background: var(--yellow-soft); color: var(--ink); line-height: 1.35; }
.bn-prize b { font-weight: 800; }
.bn-prize .pz-im { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: var(--r-sm); background: var(--img-bg); isolation: isolate; overflow: hidden; }
.bn-prize .pz-im img { width: 44px; height: 44px; object-fit: contain; mix-blend-mode: multiply; }

/* kompaktné karty (Roman 26. 11. 2026: „výložka battle je moc veľká, produkty začínajú nízko“): malý obrázok boostra vľavo,
   názov s počtom miest a cena vedľa neho; na PC 4 v rade. Markup bez zmeny (shop.js bnIm = seo.js bnImHtml). */
/* jeden riadok aj na PC (posúva sa do strany ako na mobile), nech produkty začínajú vyššie */
@media (min-width: 700px) { .bn-grid, .bn-grid:has(> .bn-card:only-child), .bn-grid:has(> .bn-card:nth-child(2):last-child) { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 292px; gap: var(--s3); margin: 0 calc(-1 * var(--gutter)); padding: 4px var(--gutter) var(--s3); overflow-x: auto; scrollbar-width: thin; } .bn-grid::-webkit-scrollbar { display: block; height: 8px; } .bn-grid::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 8px; } }
.bn-card { gap: var(--s2); padding: var(--s3) var(--s3) var(--s3); }
.bn-link, a.bn-card { display: grid; grid-template-columns: 62px minmax(0, 1fr); column-gap: var(--s3); row-gap: 4px; align-content: start; }
.bn-im { grid-column: 1; grid-row: 1 / span 4; align-self: start; position: relative; display: block; width: 62px; height: 88px; margin: 0; border-radius: var(--r-sm); background: var(--img-bg); isolation: isolate; overflow: hidden; }
.bn-im img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; padding: 4px; object-fit: contain; mix-blend-mode: multiply; }
.bn-link > :not(.bn-im), a.bn-card > :not(.bn-im) { grid-column: 2; min-width: 0; }
a.bn-card > .bn-foot { grid-column: 1 / -1; }
.bn-top { flex-direction: column; align-items: flex-start; gap: 4px; }
.bn-top b { font-size: 14.5px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.bn-top .chip { min-height: 20px; padding: 1px 7px; font-size: 12px; }
.bn-card p { font-size: 13px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bn-card .bn-prize { gap: var(--s2); padding: 6px var(--s2); font-size: 12.5px; line-height: 1.3; display: flex; }
.bn-card .bn-prize > span:last-child { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
article.bn-card .bn-link > p:not(.bn-prize) { display: none; } /* pevná battle: „Jeden vstup = 1× …“ zopakuje názov – na detaile ostáva */
.bn-prize .pz-im { width: 32px; height: 32px; } .bn-prize .pz-im img { width: 30px; height: 30px; }
.bn-foot { padding-top: 0; } .bn-foot b { font-size: var(--fs-md); }
.bn-foot .btn { margin-top: 4px; min-height: 40px; }
.bn-card .qs { margin: 4px 0 0; }

/* ============ 3 KATEGÓRIE A FILTRE ============ */
.shop-filters { display: flex; flex-direction: column; gap: var(--s2); margin-bottom: var(--s2); }
.cats, .subcats { display: flex; gap: var(--s2); margin: 0 calc(-1 * var(--gutter)); padding: 2px var(--gutter); overflow-x: auto; scrollbar-width: none; }
.cats::-webkit-scrollbar, .subcats::-webkit-scrollbar { display: none; }
@media (min-width: 900px) { .cats, .subcats { flex-wrap: wrap; margin: 0; padding: 0; overflow: visible; } }
.cats a, .subcats a { display: inline-flex; align-items: center; flex: none; gap: 6px; min-height: var(--tap); padding: 0 var(--s4); border: 1.5px solid var(--line); border-radius: var(--r-pill); background: var(--surface); color: var(--ink); font-size: var(--fs-sm); font-weight: 700; white-space: nowrap; text-decoration: none; }
.cats a:hover, .subcats a:hover { border-color: var(--line-strong); }
.cats a small, .subcats a small { font-size: var(--fs-sm); font-weight: 600; color: var(--ink-2); }
.cats a.on, .subcats a.on { background: var(--inverse-bg); border-color: var(--inverse-bg); color: var(--inverse-fg); }
.cats a.on small, .subcats a.on small { color: inherit; opacity: .8; }
.cats a.hot { background: var(--accent-soft); border-color: var(--accent-soft); color: var(--accent-text); }
.cats a.hot.on { background: var(--inverse-bg); border-color: var(--inverse-bg); color: var(--inverse-fg); }
.subcats a { background: transparent; font-weight: 600; }
/* filtre a zoradenie (stav v URL) – na mobile zbalené pod tlačidlom „Filtre a zoradenie“ */
.f-toggle { display: none; }
.f-panel { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s5); }
.f-field { display: inline-flex; align-items: center; gap: var(--s2); font-size: var(--fs-sm); font-weight: 700; }
.f-field select, .f-price input { min-height: var(--tap); height: var(--tap); padding: 0 12px; border: 1.5px solid var(--line-strong); border-radius: var(--r); background: var(--surface); color: var(--ink); font-size: 16px; font-weight: 600; }
.f-price input { width: 92px; }
.f-chk { min-height: var(--tap); cursor: pointer; }
.f-chk input { width: 22px; height: 22px; margin: 0; accent-color: var(--accent); }
.f-types { display: flex; flex-wrap: wrap; gap: 6px; }
.f-types button { min-height: var(--tap); padding: 0 14px; border: 1.5px solid var(--line); border-radius: var(--r-pill); background: var(--surface); color: var(--ink); font-size: var(--fs-sm); font-weight: 700; }
.f-types button:hover { border-color: var(--line-strong); }
.f-types button.on { background: var(--inverse-bg); border-color: var(--inverse-bg); color: var(--inverse-fg); }
.f-types button small { margin-left: 4px; font-weight: 600; opacity: .8; }
.f-panel .f-clear { display: inline-flex; align-items: center; min-height: var(--tap); }   /* .linkish je inak riadkový odkaz bez výšky */
.f-n { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: var(--r-pill); background: var(--accent); color: var(--on-accent); font-size: var(--fs-sm); font-weight: 700; }
@media (max-width: 720px) {
  .f-toggle { display: inline-flex; align-self: flex-start; }
  .f-panel { display: none; flex-direction: column; align-items: stretch; gap: var(--s3); margin-top: var(--s2); padding: var(--s4); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--sh-1); }
  .filters.open .f-panel { display: flex; }
  .f-field { justify-content: space-between; }
  .f-field select { flex: 1; min-width: 0; }
  .f-field.f-chk { justify-content: flex-start; gap: var(--s2); }   /* políčko „len skladom“ hneď pri texte, nie na opačných okrajoch */
  .f-price input { flex: 1; width: auto; min-width: 0; }
  .f-clear { align-self: flex-start; }
}
#count { margin: var(--s3) 0; }

/* ============ 4 MRIEŽKA A KARTA PRODUKTU (.card-p = shop.js card() = seo.js cardHtml()) ============
   a.card-p (bez rýchleho nákupu) alebo article.card-p.buyable › a.card-link; vnútri .img, .chip.st, .chip.sale, .nm, .pr.
   Poradie vo vzhľade: obrázok (štítok akcie na ňom) · názov · cena · stav skladu (riadok textu) · tlačidlo. */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); }
@media (min-width: 600px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 900px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s5); } }
.grid > .empty { grid-column: 1 / -1; }
.card-p { position: relative; display: flex; flex-direction: column; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-1); color: var(--ink); text-decoration: none; overflow: hidden; transition: box-shadow var(--t-fast) var(--ease); }
.card-p:hover { box-shadow: var(--sh-2); }
a.card-p, .card-p .card-link { display: flex; flex-direction: column; flex: 1 1 auto; color: inherit; text-decoration: none; }
a.card-p { padding-bottom: var(--s3); }
a.card-p:hover .nm, .card-p .card-link:hover .nm { text-decoration: underline; text-underline-offset: 3px; }
.card-p .img { position: relative; display: grid; place-items: center; aspect-ratio: 1 / 1; background: var(--img-bg); overflow: hidden; }
.card-p .img img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; max-width: none; padding: var(--s3); object-fit: contain; mix-blend-mode: multiply; }   /* absolútne: vysoký obrázok nenatiahne štvorec (inak by ho orezal) */
.card-p .img svg { width: 40%; height: auto; opacity: .35; }
.card-p .nm { order: 1; margin: var(--s3) var(--s3) 0; font-weight: 700; line-height: 1.25; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; overflow-wrap: anywhere; }
@media (max-width: 1279px) { .card-p .nm { -webkit-line-clamp: 5; line-clamp: 5; } }   /* tablet a malý notebook (3–4 stĺpce, aj iPad naležato): celý názov s výhrou battle a „– EN“ */
@media (max-width: 599px) { .card-p .nm { -webkit-line-clamp: 7; line-clamp: 7; } }   /* mobil: celý názov (výhra battle, „– CN“ na konci) */
.card-p .pr { order: 2; display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 8px; margin: auto var(--s3) 0; padding-top: var(--s2); }
.card-p .pr > * { white-space: nowrap; }   /* cena sa nezalomí v strede („169,90 / €“) – prečiarknutá radšej celá na ďalší riadok */
.card-p .pr b { font-family: var(--font-display); font-size: var(--fs-md); font-weight: 800; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.card-p .pr s { font-size: var(--fs-sm); color: var(--ink-2); }
.card-p .pr small { font-size: var(--fs-sm); font-weight: 600; color: var(--ink-2); }   /* „od“ pri random battle */
/* stav skladu: riadok textu pod cenou (Skladom / Posledné N / N miest / V battle zelené, Vypredané / Plná sivé) */
.card-p .chip.st { order: 3; align-self: flex-start; min-height: 0; margin: 2px var(--s3) 0; padding: 0; border: 0; border-radius: 0; background: none; color: var(--ok); font-size: var(--fs-sm); font-weight: 600; }
.card-p .chip.st.no { color: var(--ink-2); }
/* „Posledné 1–3“ (shop.js/seo.js: p.stock <= 3, nie battle) ako upozornenie – červený text ako .pcard-stock.is-low v prototype; trieda sa nemení,
   rozlišuje data-stock karty s rýchlym nákupom (produkt s variantmi ho nemá – tam ostáva zelený) */
.card-p.buyable[data-battle=""]:is([data-stock="1"], [data-stock="2"], [data-stock="3"]) .chip.st { color: var(--accent-text); }
/* „Akcia –N %“ na obrázku vľavo hore */
.card-p .chip.sale { position: absolute; z-index: 1; top: var(--s2); left: var(--s2); min-height: 26px; padding: 2px 8px; border: 0; border-radius: var(--r-sm); background: #B8270A; color: #FFFFFF; font-size: var(--fs-sm); }
.card-p.out .img img { filter: grayscale(1); opacity: .7; }
.card-p.has { border-color: var(--ink); }
.card-p.added { animation: added .5s var(--ease); }
@keyframes added { from { box-shadow: 0 0 0 4px var(--brand-yellow); } }

/* ============ 5 RÝCHLY NÁKUP (.qs = shop.js qsBlock = seo.js qsHtml): „Do košíka“ → krokovač − počet + a „v košíku“ ============ */
.qs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px var(--s2); margin: var(--s3); }
.qs .qs-add { flex: 1 1 100%; min-height: var(--tap); padding: 4px var(--s3); border: 0; border-radius: var(--r); background: var(--accent); color: var(--on-accent); font-size: var(--fs-base); font-weight: 700; line-height: 1.2; cursor: pointer; transition: background-color var(--t-fast); }
.qs .qs-add:hover { background: var(--accent-hover); }
@media (max-width: 599px) { .grid .qs { margin: var(--s2); } .grid .qs .qs-add { padding: 4px var(--s2); font-size: var(--fs-sm); } }   /* úzka karta: menší okraj → pole počtu v krokovači ≥ 50 px aj pri 360 px */   /* úzka karta (2 stĺpce): „Vstúpiť do battle“ na jeden riadok */
.qs .stp { display: none; }
.qs.on .qs-add { display: none; }
.qs.on .stp { display: grid; flex: 1 1 100%; grid-template-columns: var(--tap) minmax(0, 1fr) var(--tap); align-items: center; min-height: var(--tap); border: 1.5px solid var(--ink); border-radius: var(--r); background: var(--surface); overflow: hidden; }
.qs .stp button { width: var(--tap); height: var(--tap); padding: 0; border: 0; background: none; color: var(--ink); font-size: 22px; font-weight: 700; line-height: 1; cursor: pointer; }
.qs .stp button:hover { background: var(--surface-2); }
.qs .stp input { width: 100%; min-width: 0; height: var(--tap); padding: 0; border: 0; background: none; color: var(--ink); font-size: 16px; font-weight: 700; text-align: center; font-variant-numeric: tabular-nums; -moz-appearance: textfield; appearance: textfield; }
.qs .stp input::-webkit-inner-spin-button, .qs .stp input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.qs .in-cart { flex: 1 1 100%; font-size: var(--fs-sm); font-weight: 600; color: var(--ink-2); text-align: center; }
.qs .in-cart:empty { display: none; }
.qs-note { margin: 0 var(--s3) var(--s3); font-size: var(--fs-sm); font-weight: 700; line-height: 1.4; color: var(--accent-text); }

/* ============ 6 LIŠTA KOŠÍKA (#cartbar, shop.js updateBar) ============ */
.cartbar .cb-sum { display: flex; align-items: center; gap: var(--s2); min-width: 0; font-size: var(--fs-sm); font-weight: 600; }
.cartbar .cb-sum .ic { flex: none; }
.cartbar #cb-n { font-size: var(--fs-md); font-weight: 800; white-space: nowrap; }
.cartbar #cb-t { white-space: nowrap; }
.cartbar .cb-go { flex: none; min-height: 48px; padding: 0 var(--s4); }
/* miesto pod stálou lištou dáva tmavá päta (nie krémový pás pod ňou); bez :has() (starší prehliadač) lišta zakryje len spodok päty */
body:has(#cartbar:not([hidden])) .foot { padding-bottom: calc(var(--cartbar-h) + 28px + var(--safe-b)); }
html.embed body:has(#cartbar:not([hidden])) { padding-bottom: calc(var(--cartbar-h) + 28px + var(--safe-b)); }   /* panel na /live: päta je skrytá, lišta nesmie zakryť posledný riadok */
.more-row { display: flex; justify-content: center; margin-top: var(--s6); }
.more-row .btn { min-width: 220px; }

/* ============ 7 DETAIL: OMRVINKY, GALÉRIA ============ */
.pdp { padding-top: var(--s3); }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 0 6px; margin: calc(-1 * var(--s2)) 0 var(--s1); font-size: var(--fs-sm); color: var(--ink-2); }
.crumbs a { display: inline-flex; align-items: center; justify-content: center; min-width: var(--tap); min-height: var(--tap); color: var(--ink); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-strong); }
.crumbs a:hover { text-decoration-color: currentColor; }
.crumbs span { min-width: 0; overflow-wrap: anywhere; }
.detail { display: grid; gap: var(--s5); }
@media (min-width: 900px) { .detail { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: var(--s10); align-items: start; } .gallery { position: sticky; top: calc(var(--hdr-h) + 16px); } }
.gallery { display: flex; flex-direction: column; gap: var(--s3); min-width: 0; }
.gallery .main { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3; border-radius: var(--r-xl); background: var(--img-bg); overflow: hidden; }
@media (min-width: 900px) { .gallery .main { aspect-ratio: 1 / 1; } }
.gallery .main img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; max-width: none; padding: var(--s5); object-fit: scale-down; mix-blend-mode: multiply; }   /* scale-down: menší obrázok ostane v prirodzenej veľkosti (nie rozmazaný), väčší sa zmenší ako contain */
.gallery .main svg { width: 34%; height: auto; opacity: .35; }
.thumbs { display: flex; gap: var(--s2); overflow-x: auto; scrollbar-width: none; }
.thumbs:empty { display: none; }
.thumbs button { display: flex; align-items: center; justify-content: center; flex: none; width: 64px; height: 64px; padding: 4px; border: 1.5px solid var(--line); border-radius: var(--r); background: var(--img-bg); overflow: hidden; cursor: pointer; }
.thumbs button.on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.thumbs img { max-width: 100%; max-height: 100%; object-fit: contain; mix-blend-mode: multiply; }

/* ============ 8 DETAIL: NÁKUP ============ */
.buy { display: flex; flex-direction: column; gap: var(--s4); min-width: 0; }
.buy > .chip { align-self: flex-start; min-height: 28px; padding: 2px 10px; border: 0; background: var(--surface-2); color: var(--ink); font-size: var(--fs-sm); }
.buy > .chip.ok { background: var(--ok-soft); color: var(--ok); }
.buy > .chip.no { background: var(--accent-soft); color: var(--accent-text); }
.buy h1 { font-size: var(--fs-xl); letter-spacing: -.025em; overflow-wrap: anywhere; }
@media (min-width: 900px) { .buy h1 { font-size: 40px; } }
.price-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px var(--s3); }
.price-row #price { font-family: var(--font-display); font-size: var(--fs-2xl); font-weight: 800; letter-spacing: -.02em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.price-row #price:empty { display: none; }
.price-row #price small.per { font-family: var(--font-body); font-size: var(--fs-base); font-weight: 600; letter-spacing: 0; color: var(--ink-2); white-space: nowrap; }   /* random battle: „za 3 vstupy“ pri súčte */
.price-row s { font-size: var(--fs-md); color: var(--ink-2); }
.price-row .chip.sale { align-self: center; min-height: 26px; padding: 2px 8px; border: 0; border-radius: var(--r-sm); background: #B8270A; color: #FFFFFF; font-size: var(--fs-sm); }
.price-row #price-note { flex-basis: 100%; }
/* varianty (sety): rádio riadky; vypredaný variant ostáva viditeľný, nedá sa zvoliť */
.variants { display: flex; flex-direction: column; gap: var(--s2); }
.variants label { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: center; gap: var(--s3); min-height: 56px; padding: var(--s3) var(--s4) var(--s3) var(--s3); border: 1.5px solid var(--line); border-radius: var(--r); background: var(--surface); font-weight: 700; line-height: 1.3; cursor: pointer; }
.variants label.on { border-color: var(--ink); box-shadow: inset 0 0 0 .5px var(--ink); }
.variants label.out { opacity: .55; cursor: not-allowed; }
.variants label:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.variants input { width: 22px; height: 22px; margin: 0; accent-color: var(--accent); }
.variants label span:last-child { white-space: nowrap; font-variant-numeric: tabular-nums; }
/* otvoriť na streame / poslať neotvorené (len bežný produkt) */
.seal { margin: 0; padding: 0; border: 0; min-width: 0; }
.seal .seg-hint { margin-top: var(--s2); }
/* počet + tlačidlo; pri random battle (každý booster = vstup) je počet skrytý a tlačidlo ide cez celú šírku */
.actions { display: grid; grid-template-columns: 136px minmax(0, 1fr); gap: var(--s2); align-items: stretch; }
.actions:has(> .qty[hidden]) { grid-template-columns: minmax(0, 1fr); }
.qty.stepper { min-height: var(--tap-lg); }
.qty.stepper .stepper-btn { height: 100%; min-height: var(--tap); }
.qty input { width: 100%; min-width: 0; height: 100%; padding: 0; border: 0; background: none; color: var(--ink); font-size: 18px; font-weight: 700; text-align: center; font-variant-numeric: tabular-nums; -moz-appearance: textfield; appearance: textfield; }
.qty input::-webkit-inner-spin-button, .qty input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
#order { display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); min-height: var(--tap-lg); padding: 6px var(--s5); border: 0; border-radius: var(--r-lg); background: var(--accent); color: var(--on-accent); font-size: var(--fs-md); font-weight: 700; line-height: 1.15; text-align: center; white-space: normal; }   /* dlhé „Vyber ešte 2 boostre či balenia“ sa na mobile zalomí namiesto pretečenia */
#order:hover { background: var(--accent-hover); }
#order:disabled, #order.disabled { background: var(--surface-3); color: var(--ink-2); opacity: 1; cursor: not-allowed; transform: none; }
/* poznámky pod tlačidlom: pravidlo battle / pridané do košíka / chyba, pravidlá na účet, doprava pri battle, § 66 */
.buy .fine { font-size: var(--fs-sm); line-height: 1.5; color: var(--ink-2); }
#order-note { padding: var(--s3) var(--s4); border-radius: var(--r); background: var(--surface-2); color: var(--ink); }
#order-note.err { background: var(--accent-soft); color: var(--accent-text); font-weight: 700; }
#rules { margin-top: calc(-1 * var(--s2)); color: var(--ink); }
.bship { padding: var(--s3) var(--s4); border-radius: var(--r); background: var(--yellow-soft); color: var(--ink); font-size: var(--fs-sm); line-height: 1.5; }
.bship b { font-weight: 800; }
.note66 { font-size: var(--fs-sm); line-height: 1.5; color: var(--ink-2); }

/* ============ 9 DETAIL BATTLE: FAKTY (#bfacts) A VÝBER BOOSTROV (#pool) ============ */
.bfacts { display: grid; margin: 0; padding: 2px var(--s4); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.bfacts > div { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; padding: var(--s3) 0; border-bottom: 1px solid var(--line); }
.bfacts > div:last-child { border-bottom: 0; }
@media (min-width: 520px) { .bfacts > div { grid-template-columns: 132px minmax(0, 1fr); gap: var(--s3); align-items: baseline; } }
.bfacts dt { font-size: var(--fs-sm); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.bfacts dd { margin: 0; font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; }
.bf-cap { display: block; }
.bf-bar { display: block; height: 8px; margin-top: var(--s2); border-radius: var(--r-pill); background: var(--surface-3); overflow: hidden; }
.bf-bar i { display: block; height: 100%; border-radius: inherit; background: var(--occ-fill); }
.pool { display: flex; flex-direction: column; gap: var(--s2); }
.pool-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); }
.pool-head b { font-family: var(--font-display); font-size: var(--fs-lg); font-weight: 800; letter-spacing: -.01em; line-height: 1.2; }
.pool-head .chip { flex: none; min-height: 28px; padding: 2px 10px; border: 0; background: var(--surface-2); color: var(--ink); font-variant-numeric: tabular-nums; }
.pool-head .chip.ok { background: var(--ok-soft); color: var(--ok); }
.pool-item { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; align-items: center; gap: var(--s3); padding: var(--s2); border: 1.5px solid var(--line); border-radius: var(--r); background: var(--surface); }
.pool-item.on { border-color: var(--ink); background: var(--yellow-soft); }
.pool-item.out { background: var(--surface-2); border-style: dashed; }   /* rozobraté: text ostáva v --ink / --ink-2 (kontrast ≥ 4,5 : 1), stlmí sa len obrázok */
.pool-item.out .pi-img img { filter: grayscale(1); opacity: .5; }
.pool-item.out [data-free] { align-self: flex-start; margin-top: 2px; padding: 0 8px; border: 1.5px solid var(--line-strong); border-radius: var(--r-pill); color: var(--ink); font-weight: 700; }   /* „už rozobrané“ ako štítok */
.pool-item.fixed { grid-template-columns: 56px minmax(0, 1fr); }
.pi-img { display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; padding: 3px; border-radius: var(--r-sm); background: var(--img-bg); overflow: hidden; }
.pi-img img { max-width: 100%; max-height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.pi-name { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.pi-name > b { font-weight: 700; overflow-wrap: anywhere; }
.pi-name small { font-size: var(--fs-sm); color: var(--ink-2); }
.pi-name .pi-price { font-size: 15px; font-weight: 700; }
.pi-name .pi-price b, .pi-name .pi-price s { white-space: nowrap; }
.pi-name .pi-price s { font-size: var(--fs-sm); font-weight: 600; color: var(--ink-2); }
.pi-name .pi-cart { font-weight: 700; color: var(--ink); }
.pi-name .pi-cart::before { content: ' ·\00a0'; font-weight: 400; color: var(--ink-2); }   /* „· 2 v košíku“ sa zalomí celé, bodka neostane visieť */
.pi-qty { display: grid; grid-template-columns: var(--tap) 30px var(--tap); align-items: center; border: 1.5px solid var(--line-strong); border-radius: var(--r); background: var(--surface); overflow: hidden; }
.pi-qty button { width: var(--tap); height: var(--tap); padding: 0; border: 0; background: none; color: var(--ink); font-size: 22px; font-weight: 700; line-height: 1; cursor: pointer; }
.pi-qty button:hover:not(:disabled) { background: var(--surface-2); }
.pi-qty button:disabled { opacity: .35; cursor: default; }
.pi-qty b { text-align: center; font-weight: 800; font-variant-numeric: tabular-nums; }
@media (max-width: 420px) {   /* úzky mobil: viac miesta pre názov boostra (−/+ ostávajú 44 px), „v košíku“ na vlastnom riadku */
  .pool-item { grid-template-columns: 44px minmax(0, 1fr) auto; gap: var(--s2); }
  .pool-item.fixed { grid-template-columns: 44px minmax(0, 1fr); }
  .pi-img { width: 44px; height: 44px; }
  .pi-qty { grid-template-columns: var(--tap) 26px var(--tap); }
  .pi-name .pi-cart { display: block; }
  .pi-name .pi-cart::before { content: none; }
}

/* ============ 10 POPIS (#desc – očistené HTML zo Skladu) ============ */
.desc { max-width: 820px; margin-top: var(--s10); }
.desc h2 { margin-bottom: var(--s3); font-size: var(--fs-xl); }
.desc .body { font-size: var(--fs-base); line-height: 1.6; overflow-wrap: anywhere; }
.desc .body > * + * { margin-top: var(--s3); }
.desc .body h2, .desc .body h3, .desc .body h4 { margin-top: var(--s5); font-size: var(--fs-lg); }
.desc .body ul { list-style: disc; padding-left: 1.4em; }
.desc .body ol { list-style: decimal; padding-left: 1.6em; }
.desc .body li + li { margin-top: 4px; }
.desc .body a { color: var(--accent-text); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.desc .body img { height: auto; border-radius: var(--r); }
.desc .body table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; font-size: 15px; }
.desc .body th, .desc .body td { padding: 8px 12px 8px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }

/* ============ 11 SPOLOČNÉ ============ */
.shop .empty { padding: var(--s5); border: 1px dashed var(--line-strong); border-radius: var(--r-lg); background: var(--surface); color: var(--ink); font-weight: 600; line-height: 1.5; }
.shop .empty a { color: var(--accent-text); font-weight: 700; text-underline-offset: 3px; }
.linkish { display: inline; min-height: 0; padding: 0; border: 0; background: none; color: var(--accent-text); font: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; cursor: pointer; }
.shop .btn.red { background: var(--accent); color: var(--on-accent); border-color: transparent; }
.shop .btn.red:hover { background: var(--accent-hover); }
.shop .btn.disabled { opacity: .45; pointer-events: none; }

/* prázdna kategória Battle (shop.js renderEmptyBattle): termín, tlačidlá a karty posledného streamu */
.shop .empty-battle { display: grid; gap: var(--s4); justify-items: start; font-weight: 400; }
.shop .empty-battle p { margin: 0; }
.shop .empty-battle .eb-lead { font-weight: 700; font-size: var(--fs-md); line-height: 1.35; text-wrap: balance; }
.shop .empty-battle .eb-ok { align-self: center; color: var(--ink-2); font-weight: 600; }
.shop .empty-battle .eb-cta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3); }
.shop .empty-battle .eb-cta .btn-primary { color: var(--on-accent); }
.shop .empty-battle .eb-cta .btn-outline { color: var(--ink); }
.shop .empty-battle .eb-cta .btn { text-decoration: none; }
.eb-hits { width: 100%; padding-top: var(--s4); border-top: 1px solid var(--line); }
.eb-hits[hidden] { display: none; }
.eb-hits h2 { margin: 0 0 var(--s3); font-size: 18px; }
.eb-hits ul { display: grid; grid-template-columns: repeat(3, minmax(0, 160px)); gap: var(--s3); margin: 0 0 var(--s3); padding: 0; list-style: none; }
.eb-hits li { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: var(--fs-sm); line-height: 1.35; }
.eb-hits li img { width: 100%; aspect-ratio: 5 / 7; margin-bottom: 6px; border-radius: 8px; object-fit: contain; }
.eb-hits .eb-n { overflow-wrap: anywhere; color: var(--ink-2); }

/* ============ 12 VLOŽENÝ REŽIM (panel „Nakúpiť“ na /live, iframe ~380 px) ============ */
html.embed .shop { padding-top: var(--s3); padding-bottom: var(--s6); }
html.embed .shop-head { margin-bottom: var(--s3); gap: var(--s2); }
html.embed .shop-head .label { display: none; }
html.embed .shop-head h1 { font-size: 24px; }
html.embed .battles-now { margin-bottom: var(--s4); }
html.embed .bn-head h2 { font-size: 22px; }
html.embed .detail { gap: var(--s4); }
html.embed .gallery .main { aspect-ratio: 16 / 10; }
html.embed .buy h1 { font-size: 24px; }
html.embed .price-row #price { font-size: 28px; }
html.embed .desc { margin-top: var(--s6); }
html.embed .desc h2 { font-size: 22px; }

/* ============ 13 POHYB ============ */
@media (prefers-reduced-motion: reduce) {
  .card-p, .bn-card, .qs .qs-add { transition: none; }
  .card-p.added { animation: none; }
}
