/* Rip & Ship – PODSTRÁNKY v novom vzhľade (etapa 1, 9. 11. 2026)
   Košík, pokladňa, objednávka, odstúpenie, Poke Collect, doprava, právne stránky a 404. Načítava sa HNEĎ ZA /assets/bh.css.
   V etape 1 sa na týchto stránkach nemení logika ani texty – dostali spoločnú hlavičku, pätu a tokeny z bh.css. Tento súbor štýluje
   triedy, ktoré ich HTML a vložené skripty vytvárajú dnes (.shop-head, .cart-row, .step, .opt, .ok-box …), len cez premenné z bh.css.
   Shop, produkt, úvod, účet a live ho nenačítavajú (majú vlastné štýly), preto nemôže nič rozbiť inde.
   Pri zmene zvýšiť ?v= na stránkach, ktoré ho načítavajú (statika má cache 1 deň). */

/* ============ 1 KOSTRA A HLAVIČKA STRÁNKY ============
   <main class="wrap shop"> (košík, pokladňa, objednávka, odstúpenie, Poke Collect) alebo <main class="wrap prose"> (texty).
   Hlavička obsahu: <header class="shop-head"> › .sticker (štítok) + <h1>Prvá časť <span class="outline">druhá.</span></h1>
   (štruktúru čítajú testy obchodných podmienok – nemení sa, len vzhľad: druhá časť nadpisu je červená namiesto obrysového písma) */
.shop { padding-top: var(--s6); padding-bottom: var(--s10); }
.shop-head { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s3); margin-bottom: var(--s6); }
.shop-head h1 { font-size: var(--fs-2xl); }
@media (min-width: 900px) { .shop-head h1 { font-size: 44px; } }
.outline { color: var(--accent-text); }
.prose > .shop-head { margin-bottom: var(--s4); }
.prose > .shop-head + * { margin-top: 0; }

/* ============ 2 KATEGÓRIE (404) ============ */
.cats { display: flex; flex-wrap: wrap; gap: var(--s2); }
.cats a, .prose .cats a { display: inline-flex; align-items: center; 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; text-decoration: none; }
.cats a:hover, .prose .cats a:hover { background: var(--surface-2); }
.cats a.hot, .prose .cats a.hot { background: var(--accent-soft); color: var(--accent-text); border-color: transparent; }

/* ============ 3 SPOLOČNÉ: tlačidlá a správy z dnešných skriptov ============ */
.btn.block { display: flex; width: 100%; }
.btn.disabled { opacity: .45; pointer-events: none; }
.msg.ok { background: var(--ok-soft); color: var(--ok); font-weight: 700; }
.msg.err { background: var(--accent-soft); color: var(--accent-text); font-weight: 700; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); }
/* battle a doprava (košík, pokladňa): osobný odber, výhra ide s ďalšou objednávkou – prvé slová zvýraznené */
.bship { margin: 0; padding: var(--s3) var(--s4); border-radius: var(--r); background: var(--yellow-soft); color: var(--ink); font-size: var(--fs-sm); line-height: 1.45; }
.bship b { font-weight: 800; }

/* ============ 4 KOŠÍK ============
   #list › article.cart-row(.out, .has-seal) › a.img, .info (a.nm + .fine), .qty (− input +), fieldset.seal › label.seal-opt, b.line-total, button.rm */
.cart { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s5); align-items: start; }
.cart-list { display: flex; flex-direction: column; gap: var(--s3); min-width: 0; }
.cart-row { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto auto auto; grid-template-areas: "img info qty total rm"; gap: var(--s3) var(--s4); align-items: center; padding: var(--s3); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-1); }
.cart-row.has-seal { grid-template-areas: "img info qty total rm" "img seal seal seal seal"; }
.cart-row .img { grid-area: img; display: flex; align-items: center; justify-content: center; width: 72px; height: 72px; padding: 4px; border-radius: var(--r); background: var(--img-bg); overflow: hidden; }
.cart-row .img img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.cart-row .img svg { width: 50%; height: 50%; opacity: .5; }
.cart-row .info { grid-area: info; min-width: 0; }
.cart-row .nm { display: block; color: var(--ink); font-weight: 700; line-height: 1.3; text-decoration: none; overflow-wrap: anywhere; }
.cart-row .nm:hover { text-decoration: underline; text-underline-offset: 3px; }
:root { --red: var(--accent-text); }   /* „skladom už len N“ v košíku má vložený štýl color:var(--red) – bez definície bola farba sivá (svetlý aj nočný režim) */
.cart-row .info .fine b { color: var(--accent-text); }   /* „skladom už len N“ (skript dáva farbu cez --red z v2, ktorá tu nie je) */
.cart-row .qty { grid-area: qty; display: grid; grid-template-columns: var(--tap) 48px var(--tap); align-items: center; border: 1.5px solid var(--line-strong); border-radius: var(--r); background: var(--surface); overflow: hidden; }
.cart-row .qty button { height: var(--tap); border: 0; background: transparent; color: var(--ink); font-size: 20px; font-weight: 700; line-height: 1; }
.cart-row .qty button:hover { background: var(--surface-2); }
.cart-row .qty input { width: 100%; height: var(--tap); padding: 0; border: 0; background: transparent; color: var(--ink); text-align: center; font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; -moz-appearance: textfield; appearance: textfield; }
.cart-row .qty input::-webkit-inner-spin-button, .cart-row .qty input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.cart-row .line-total { grid-area: total; min-width: 80px; text-align: right; font-family: var(--font-display); font-weight: 800; font-size: var(--fs-md); white-space: nowrap; font-variant-numeric: tabular-nums; }
.cart-row .rm { grid-area: rm; display: grid; place-items: center; width: var(--tap); height: var(--tap); border: 0; border-radius: var(--r); background: transparent; color: var(--ink-2); font-size: 18px; font-weight: 700; }
.cart-row .rm:hover { background: var(--accent-soft); color: var(--accent-text); }
.cart-row.out { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
/* voľba Otvoriť na streame / Poslať neotvorené: cez celú šírku položky */
.seal { grid-area: seal; display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); min-width: 0; margin: 0; padding: 0; border: 0; }
.seal-opt { display: inline-flex; align-items: center; gap: var(--s2); min-height: var(--tap); padding: 0 var(--s4) 0 var(--s3); 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; line-height: 1.2; cursor: pointer; }
.seal-opt input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--accent); }
.seal-opt:has(input:checked) { border-color: var(--ink); background: var(--surface-2); }
.seal-opt:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
.seal-hint { flex-basis: 100%; }
/* súhrn (košík aj pokladňa): aside.summary › .sum-row (span + b), .sum-row.total, #mini › .mini */
.summary { display: flex; flex-direction: column; gap: var(--s3); min-width: 0; padding: var(--s5); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-2); }
.summary .sum-row b { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.summary .sum-row.fine { font-size: var(--fs-sm); }
.summary .sum-row:empty { display: none; }
.sum-row.total { padding-top: var(--s3); border-top: 1px solid var(--line); font-size: var(--fs-md); font-weight: 700; align-items: baseline; }
.sum-row.total b { font-family: var(--font-display); font-weight: 800; font-size: var(--fs-xl); }
.summary .mini { display: flex; justify-content: space-between; gap: var(--s3); font-size: var(--fs-sm); }
.summary .mini span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }   /* dlhý názov sa skráti, suma sa nezalomí */
.summary .mini span:last-child { white-space: nowrap; font-variant-numeric: tabular-nums; }
.summary .mini small { font-size: var(--fs-sm); color: var(--ink-2); }
.summary > label.fine { color: var(--ink); line-height: 1.45; }
.summary #agree { flex: none; width: 22px; height: 22px; accent-color: var(--accent); }
.summary .btn { white-space: normal; }
@media (min-width: 961px) {
  .cart { grid-template-columns: minmax(0, 1fr) 360px; gap: var(--s8); }
  .summary { position: sticky; top: calc(var(--hdr-h) + var(--s4)); }
}
@media (max-width: 960px) {
  .cart-row { grid-template-columns: 64px minmax(0, 1fr) auto; grid-template-areas: "img info rm" "img qty total"; }
  .cart-row.has-seal { grid-template-areas: "img info rm" "img qty total" "seal seal seal"; }
  .cart-row .img { width: 64px; height: 64px; }
  .cart-row .qty { justify-self: start; }
  .cart-row .rm { justify-self: end; }
  .seal-opt { flex: 1 1 150px; }
}

/* ============ 5 POKLADŇA A ODSTÚPENIE: kroky, polia, voľby ============
   form.checkout › .steps › section.step › h2 (span.num + text) …; aside.summary. bh.css má .step/.steps pre „5 krokov“ na úvode – tu sa prebíja. */
.checkout { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s5); align-items: start; }
.checkout .steps { display: flex; flex-direction: column; gap: var(--s4); min-width: 0; }
.shop .step { display: flex; flex-direction: column; align-items: stretch; gap: var(--s3); min-width: 0; padding: var(--s5); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-1); }
.shop .step b { display: inline; font-size: inherit; }
.shop .step > div > span, .shop .step > span { font-size: inherit; color: inherit; }
.shop .step h2 { display: flex; align-items: center; gap: var(--s3); font-size: var(--fs-lg); }
.shop .step h2 .num { display: inline-grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--brand-yellow); color: var(--on-yellow); font-family: var(--font-display); font-size: var(--fs-base); font-weight: 800; letter-spacing: 0; }
@media (min-width: 961px) {
  .checkout { grid-template-columns: minmax(0, 1fr) 380px; gap: var(--s8); }
  .checkout .summary { position: sticky; top: calc(var(--hdr-h) + var(--s4)); }
}
/* polia: .fields › .field(.full, .addr, .hn) › label.label + input/select/textarea + span.err; chyba servera = input.bad */
.fields { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s3); }
@media (min-width: 600px) { .fields { grid-template-columns: 1fr 1fr; } .fields .full { grid-column: 1 / -1; } }
.field .label, .field > legend.label, .scope-box > legend.label { font-size: var(--fs-sm); font-weight: 700; letter-spacing: 0; text-transform: none; color: var(--ink); }
.field .err { font-size: var(--fs-sm); font-weight: 700; color: var(--accent-text); }
.field.err { font-size: var(--fs-sm); font-weight: 700; color: var(--accent-text); }   /* #e-shipping */
.field input.bad, .field select.bad, .field textarea.bad { border-color: var(--accent-text); box-shadow: 0 0 0 1px var(--accent-text); }
/* voľby (doprava, platba, voucher, rozsah odstúpenia): .opts › label.opt(.on) › input + span + span.pr */
.opts { display: flex; flex-direction: column; gap: var(--s2); }
.opt { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s3); min-height: 56px; padding: var(--s3) var(--s4); border: 1.5px solid var(--line); border-radius: var(--r); background: var(--surface); color: var(--ink); font-weight: 700; line-height: 1.3; cursor: pointer; }
.opt:hover { background: var(--surface-2); }
.opt.on { border-color: var(--ink); box-shadow: inset 0 0 0 .5px var(--ink); }
.opt input { flex: none; width: 22px; height: 22px; margin: 0; accent-color: var(--accent); }
.opt:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
.opt > span { min-width: 0; }
.opt .pr { margin-left: auto; font-weight: 700; font-variant-numeric: tabular-nums; }
#ship .opt .pr { white-space: nowrap; }   /* cena dopravy „4,90 €“ sa nezalomí; popis platby (#pay) sa zalamovať musí */
.opt .fine { width: 100%; margin-left: 34px; }
/* výdajné miesto Packeta */
.point { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3); padding: var(--s3) var(--s4); border: 1.5px dashed var(--line-strong); border-radius: var(--r); }
.point b { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
/* platba kartou priamo na stránke (Stripe Embedded Checkout) – biely formulár Stripe */
.paystep #checkout, .pay-box.pay-stripe #checkout { min-height: 320px; }
.pay-box.pay-stripe { display: block; padding: 0; border: 0; background: #FFFFFF; box-shadow: none; }

/* ============ 6 OBJEDNÁVKA A HOTOVO ============
   .ok-box › span.status-chip#chip, h1, .num, p, .pay-box (QR na prevod), #items, .actions; .empty#notfound */
.ok-box { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s3); max-width: 720px; padding: var(--s6); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--sh-2); }
.ok-box > * { max-width: 100%; }
.ok-box h1 { font-size: var(--fs-2xl); }
@media (min-width: 900px) { .ok-box h1 { font-size: 44px; } }
.ok-box .num { font-family: var(--font-display); font-weight: 800; font-size: var(--fs-lg); }
.ok-box #items { font-size: var(--fs-sm); color: var(--ink-2); line-height: 1.6; }
.status-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 2px 12px; border-radius: var(--r-pill); background: var(--yellow-soft); color: var(--yellow-ink); font-size: var(--fs-sm); font-weight: 700; }

/* ============ 7 VLOŽENÝ REŽIM (panel na /live) ============ */
html.embed .shop { padding-top: var(--s3); padding-bottom: var(--s6); }
html.embed .shop-head { gap: var(--s2); margin-bottom: var(--s3); }
html.embed .shop-head h1 { font-size: var(--fs-xl); }
html.embed .shop-head .sticker { display: none; }
html.embed .ok-box { padding: var(--s4); }
html.embed .ok-box h1 { font-size: var(--fs-xl); }
html.embed .shop .step { padding: var(--s4); }
html.embed .shop .step h2 { font-size: var(--fs-md); }
html.embed .summary { position: static; padding: var(--s4); }

/* ============ 8 STRÁNKY BEZ NAČÍTANIA KOŠÍKA ============
   Doprava, obchodné podmienky, ochrana údajov a 404 nevolajú košík (<body data-no-cart-badge>, ako doteraz) – počet nepoznajú a ostáva
   skrytý (bh.css: pri 0 / neznámom počte skrytý na každej stránke rovnako). */

/* ============ 9 ZĽAVOVÝ KÓD (košík aj pokladňa – shop-common.js BH.coupon) ============
   .coupon › .coupon-form (label + .coupon-row: input + .btn), .coupon-on(.warn) (kód, hodnota, Odobrať), .coupon-note, .coupon-msg; v súhrne .sum-row.disc */
.coupon { display: flex; flex-direction: column; gap: var(--s2); padding-top: var(--s3); border-top: 1px solid var(--line); }
.coupon .label { font-size: var(--fs-sm); font-weight: 700; color: var(--ink); }
.coupon-row { display: flex; gap: var(--s2); }
.coupon-row input { flex: 1 1 auto; min-width: 0; min-height: 48px; padding: 0 12px; border: 1.5px solid var(--line-strong); border-radius: var(--r); background: var(--surface); color: var(--ink); font-family: var(--font-body); font-size: 16px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.coupon-row input::placeholder { text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--ink-2); }
.coupon-row input:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.coupon-row .btn { flex: none; min-height: 48px; padding: 0 var(--s4); }
.coupon-on { display: flex; align-items: center; justify-content: space-between; gap: var(--s2) var(--s3); flex-wrap: wrap; padding: var(--s2) var(--s3); border: 1.5px dashed var(--ok); border-radius: var(--r); background: var(--ok-soft); color: var(--ok); font-weight: 700; }
.coupon-on.warn { border-color: var(--accent-text); background: var(--accent-soft); color: var(--accent-text); }
.coupon-on .coupon-tag { min-width: 0; overflow-wrap: anywhere; }
.coupon-on .coupon-name { letter-spacing: .04em; }
.coupon-on .coupon-rm { min-height: 44px; padding: 0 2px; border: 0; background: none; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.coupon-note, .coupon-msg { margin: 0; }
.coupon-msg a { color: inherit; }
.summary .sum-row.disc b { color: var(--ok); }
.code-price, .cart-row .info .code-price, .summary .mini.code-price { color: var(--ok); font-weight: 700; } .summary .mini.code-price span:first-child { white-space: normal; }   /* „s kódom PATRIK 49,90 €“ pri položke */
