/* higgy – spoločné štýly. Design tokeny + hover stavy prevzaté z návrhov (.dc.html). */
:root {
  --ink: #1D1B26;
  --ink-2: #38344A;
  --cream: #FAF7F2;
  --muted: #57535F;
  --soft: #3E3A47;
  --orange: #F7892F;
  --pink: #EF86B5;
  --green: #8DC86B;
  --lilac: #C8A0DC;
  --sky: #5BB8E8;
  --yellow: #F2D64A;
  --red: #C42B3B;
  --navy: #141A33;
  --line: rgba(29, 27, 38, .10);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --display: 'Bricolage Grotesque', system-ui, sans-serif;
  --pad: clamp(20px, 5.6cqw, 80px);
}

html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: 'Figtree', system-ui, sans-serif; }
body.no-scroll { overflow: hidden; }

/* Koreň stránky – container query jednotky (cqw) sa počítajú z jeho šírky */
.hg {
  position: relative; container-type: inline-size; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--cream); color: var(--ink);
  font-family: 'Figtree', system-ui, sans-serif; font-size: 17px; line-height: 1.55;
}
.hg > main { flex: 1 0 auto; }

.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

/* Mobil / desktop prepínanie (hranica 900 px) */
@media (min-width: 900px) { .only-m { display: none !important; } }
@media (max-width: 899.98px) { .only-d { display: none !important; } }

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

/* ---------- Otvorenie hľadania (panel nad stránkou, search.js) ----------
   Jeden dokument, jedna animačná vrstva (klon .s-fly). Cross-document View Transition sa nepoužíva: Chrome pri ňom
   kvôli Paint Holding zmrazí obraz na ~300 ms medzi pageswap a pagereveal. */
/* pole (desktop) / lupa (mobil) v hlavičke je počas letu skryté – letí jeho klon */
.hg-top.is-flying .hg-search, .hg-top.is-flying .hg-head-m a.ibtn[href="/hladanie"] { visibility: hidden; }
/* linky kategórií pri otvorení hľadania miznú postupne, pri zatvorení sa postupne vracajú */
.hg-top.is-searching .hg-nav a { opacity: 0; transform: translateY(-6px); transition: opacity .16s ease, transform .22s var(--ease); pointer-events: none; }
.hg-top.is-searching .hg-nav a:nth-child(2) { transition-delay: .02s; }
.hg-top.is-searching .hg-nav a:nth-child(3) { transition-delay: .04s; }
.hg-top.is-searching .hg-nav a:nth-child(4) { transition-delay: .06s; }
.hg-top.is-searching .hg-nav a:nth-child(5) { transition-delay: .08s; }
.hg-top.is-searching .hg-nav a:nth-child(n+6) { transition-delay: .1s; }
.hg-top.is-returning .hg-nav a { transition: opacity .2s ease, transform .25s var(--ease), border-color .2s; }
.hg-top.is-returning .hg-nav a:nth-child(2) { transition-delay: .03s; }
.hg-top.is-returning .hg-nav a:nth-child(3) { transition-delay: .06s; }
.hg-top.is-returning .hg-nav a:nth-child(4) { transition-delay: .09s; }
.hg-top.is-returning .hg-nav a:nth-child(n+5) { transition-delay: .12s; }
.hg-top.is-searching .hg-mega-panel { visibility: hidden; transition: none; }
/* mobil: menu, logo a ikony zmiznú, kým sa lupa ťahá do poľa; pri zatvorení sa vrátia skôr, než sa list zbalí */
.hg-top.is-searching .hg-head-m > * { opacity: 0; transition: opacity .16s ease; }
.hg-top.is-returning .hg-head-m > * { transition: opacity .2s ease .08s; }

@keyframes hgSpin { to { transform: rotate(360deg); } }
@keyframes hgToast { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------- Tlačidlá ---------- */
.btn-dark {
  display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 26px; border: 0; border-radius: 999px;
  background: var(--ink); color: var(--cream); font: 600 17px 'Figtree', sans-serif; text-decoration: none; cursor: pointer;
  transition: background .2s, transform .25s var(--ease), box-shadow .25s;
}
.btn-dark:hover { background: var(--ink-2); transform: translateY(-2px); box-shadow: 0 8px 18px rgba(29, 27, 38, .18); }
.btn-dark:disabled { cursor: not-allowed; opacity: .5; transform: none; box-shadow: none; }
.btn-outline {
  display: inline-flex; align-items: center; height: 52px; padding: 0 24px; border-radius: 999px; border: 1.5px solid var(--ink);
  background: transparent; color: var(--ink); font: 600 17px 'Figtree', sans-serif; text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s, transform .25s var(--ease);
}
.btn-outline:hover { background: var(--ink); color: var(--cream); transform: translateY(-2px); }
.btn-small { height: 48px; padding: 0 24px; font-size: 16px; border: 0; border-radius: 999px; background: var(--ink); color: var(--cream); font-family: 'Figtree', sans-serif; font-weight: 600; cursor: pointer; transition: background .2s; }
.btn-small:hover { background: var(--ink-2); }

.ibtn {
  position: relative; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%;
  background: none; color: var(--ink); cursor: pointer; text-decoration: none; transition: background .2s, transform .3s var(--ease);
}
.ibtn:hover { background: rgba(29, 27, 38, .07); }
.ibtn.is-current { background: rgba(29, 27, 38, .07); }

.badge-dot {
  position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 999px;
  font-size: 12px; font-weight: 700; line-height: 18px; text-align: center; box-sizing: border-box;
}
.badge-dot[hidden] { display: none; }

/* Srdiečko (obľúbené) */
/* tlačidlo sa pri hoveri nezväčšuje (scale by srdiečko rastrovo rozmazal) – mení sa len farba a tieň */
.fav-btn {
  flex: none; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%;
  background: #FFFFFF; box-shadow: 0 1px 4px rgba(29, 27, 38, .12); color: var(--ink); cursor: pointer;
  transition: transform .2s var(--ease), color .2s, box-shadow .2s;
}
.fav-btn:hover { color: var(--red); box-shadow: 0 3px 12px rgba(29, 27, 38, .18); }
.fav-btn:active { transform: scale(.9); }
.fav-btn[aria-pressed="true"] { color: var(--red); }
.fav-btn[aria-pressed="true"] svg { fill: currentColor; }
.fav-btn.on-card { position: absolute; top: 6px; right: 6px; }
.fav-btn.ring { background: #FFFFFF; box-shadow: inset 0 0 0 1.5px rgba(29, 27, 38, .2); }
.fav-btn.dark { background: transparent; box-shadow: inset 0 0 0 1.5px rgba(243, 241, 250, .28); color: #F3F1FA; }
.fav-btn.dark:hover { color: var(--pink); }
.fav-btn.dark[aria-pressed="true"] { color: var(--pink); }

/* animácia obľúbených (site.js: favFx) – srdiečko naskočí, kruh + rozlet malých srdiečok a bodiek */
.hg-heart { overflow: visible; transition: fill .15s; }
.is-faved .hg-heart { animation: hgFavIn .6s cubic-bezier(.3, 1.5, .5, 1); }
.is-unfaved .hg-heart { animation: hgFavOut .35s var(--ease); }
@keyframes hgFavIn { 0% { transform: scale(.35); } 40% { transform: scale(1.3); } 65% { transform: scale(.92); } 85% { transform: scale(1.05); } 100% { transform: none; } }
@keyframes hgFavOut { 0% { transform: none; } 40% { transform: scale(.7); } 100% { transform: none; } }
.hg-heartfx { position: fixed; z-index: 101; width: 0; height: 0; pointer-events: none; }
.hg-heartfx i { position: absolute; opacity: 0; }
.hg-heartfx-ring {
  left: calc(-30px * var(--k)); top: calc(-30px * var(--k)); width: calc(60px * var(--k)); height: calc(60px * var(--k)); box-sizing: border-box;
  border-radius: 50%; border: solid var(--pink); animation: hgFavRing .5s cubic-bezier(.2, .7, .3, 1) forwards;
}
@keyframes hgFavRing { 0% { opacity: 1; transform: scale(.25); border-width: calc(14px * var(--k)); } 100% { opacity: .2; transform: scale(1); border-width: 0; } }
.hg-heartfx .is-heart { left: -5px; top: -5px; width: 10px; height: 10px; color: var(--c); animation: hgFavFly .7s cubic-bezier(.2, .8, .3, 1) calc(.08s + var(--d)) forwards; }
.hg-heartfx .is-heart svg { display: block; }
.hg-heartfx .is-dot { left: -3px; top: -3px; width: 6px; height: 6px; border-radius: 50%; background: var(--c); animation: hgFavFly .6s cubic-bezier(.2, .8, .3, 1) calc(.08s + var(--d)) forwards; }
@keyframes hgFavFly {
  0% { opacity: 1; transform: scale(.2); }
  55% { opacity: 1; transform: translate(var(--x), var(--y)) rotate(var(--r)) scale(1.1); }
  100% { opacity: 0; transform: translate(var(--x), calc(var(--y) + 6px)) rotate(var(--r)) scale(.5); }
}
/* srdiečko v hlavičke / spodnej lište: dvojitý úder + krátko červené */
.hg-fav-hit svg { animation: hgFavBeat .7s ease; transform-origin: 50% 55%; }
@keyframes hgFavBeat {
  0% { transform: none; } 15% { transform: scale(1.28); color: var(--red); fill: var(--red); } 30% { transform: scale(.94); color: var(--red); fill: var(--red); }
  45% { transform: scale(1.14); color: var(--red); fill: var(--red); } 75% { transform: none; color: var(--red); } 100% { transform: none; }
}

/* Plus – pridať do košíka */
.add-btn {
  flex: none; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border-radius: 50%; border: 0;
  background: var(--ink); color: #FFFFFF; cursor: pointer; transition: transform .25s var(--ease), background .2s;
}
.add-btn:hover { transform: scale(1.08) rotate(90deg); background: var(--ink-2); }
.add-btn:active { transform: scale(.94); }
.add-btn:disabled { background: #B9B5BE; cursor: not-allowed; transform: none; }

/* Odkazy */
.link-u { color: var(--ink); text-underline-offset: 4px; text-decoration-color: rgba(29, 27, 38, .35); font-weight: 600; transition: text-underline-offset .2s, text-decoration-color .2s; }
.link-u:hover { text-underline-offset: 7px; text-decoration-color: var(--orange); }

/* ---------- Oznam + hlavička ---------- */
.hg-top { position: sticky; top: 0; z-index: 20; }
.hg-ann { display: none; align-items: center; justify-content: center; height: 36px; padding: 0 16px; background: var(--ink); color: var(--cream); font-size: 14px; font-weight: 500; }
.hg-head-m { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 60px; padding: 0 8px; background: var(--cream); border-bottom: 1px solid var(--line); }
.hg-head-d { display: flex; align-items: center; gap: clamp(16px, 2.8cqw, 40px); height: 76px; padding: 0 var(--pad); background: var(--cream); border-bottom: 1px solid var(--line); }
.hg-logo { display: inline-block; color: var(--ink); text-decoration: none; transition: transform .35s var(--ease); }
.hg-logo:hover { transform: rotate(-4deg) scale(1.04); }
.hg-nav { flex: 1; display: flex; gap: clamp(14px, 1.95cqw, 28px); font-size: 16px; font-weight: 600; }
.hg-nav a { color: var(--ink); text-decoration: none; white-space: nowrap; padding: 8px 0; border-bottom: 2px solid transparent; transition: border-color .2s; }
.hg-nav a:hover, .hg-nav a[aria-current] { border-bottom-color: var(--orange); }
/* položky, ktoré sa na užšom desktope nezmestia, sa skryjú (zalomia do skrytého riadku) – nikdy nevytlačia hľadanie a košík */
.hg-nav { min-width: 0; flex-wrap: wrap; align-content: flex-start; height: 42px; overflow: hidden; }
@media (max-width: 1279.98px) { .hg-nav { font-size: 14px; gap: 0 14px; } }
/* ---------- Megamenu (desktop, na hover) ---------- */
.hg-nav a.is-open { border-bottom-color: var(--orange); }
.hg-mega { position: absolute; top: 100%; left: 0; right: 0; z-index: 19; pointer-events: none; }
.hg-mega.is-open { pointer-events: auto; }
/* tmavý závoj pod menu – zaklikne sa cez neho, zatvára sa pohybom myši */
.hg-mega::after { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 100vh; z-index: -1; background: rgba(20, 26, 51, .28); opacity: 0; pointer-events: none; transition: opacity .25s; }
.hg-mega.is-open::after { opacity: 1; }
.hg-mega-panel { position: absolute; top: 0; left: 0; right: 0; visibility: hidden; opacity: 0; transform: translateY(-8px); pointer-events: none;
  background: linear-gradient(120deg, color-mix(in srgb, var(--mc) 16%, var(--cream)) 0%, var(--cream) 38%);
  border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px -18px rgba(29, 27, 38, .28);
  transition: opacity .2s var(--ease), transform .25s var(--ease), visibility 0s .25s; }
.hg-mega-panel.is-on { visibility: visible; opacity: 1; transform: none; pointer-events: auto; transition: opacity .2s var(--ease), transform .25s var(--ease), visibility 0s; }
.hg-mega-in { display: grid; grid-template-columns: minmax(190px, .8fr) minmax(0, 2.4fr) minmax(190px, .9fr); gap: clamp(20px, 3cqw, 48px); max-width: 1280px; margin: 0 auto; padding: 32px var(--pad) 36px; box-sizing: border-box; }
.hg-mega-in.no-feat { grid-template-columns: minmax(190px, .8fr) minmax(0, 3.3fr); }
.hg-mega-intro { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding-top: 4px; }
.hg-mega-kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.hg-mega-kicker i { width: 10px; height: 10px; border-radius: 50%; background: var(--mc); }
.hg-mega-name { font-family: var(--display); font-stretch: 85%; font-weight: 700; font-size: clamp(30px, 2.6cqw, 40px); line-height: 1.05; letter-spacing: -0.01em; text-wrap: balance; }
.hg-mega-count { font-size: 15px; color: var(--muted); }
.hg-mega-all { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; height: 44px; padding: 0 20px; border-radius: 999px; background: var(--ink); color: var(--cream); font-size: 15px; font-weight: 600; text-decoration: none; transition: background .2s, transform .25s var(--ease), gap .25s var(--ease); }
.hg-mega-all:hover { background: var(--ink-2); transform: translateY(-1px); gap: 12px; }
.hg-mega-subs { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); align-content: start; gap: 6px 14px; }
.hg-mega-sub { display: flex; align-items: center; gap: 14px; padding: 8px 12px 8px 8px; border-radius: 16px; color: var(--ink); text-decoration: none; transition: background .2s, transform .25s var(--ease); }
.hg-mega-sub:hover, .hg-mega-sub:focus-visible { background: rgba(255, 255, 255, .85); box-shadow: 0 6px 18px rgba(29, 27, 38, .08); transform: translateY(-1px); }
.hg-mega-thumb { position: relative; flex: none; width: 56px; height: 56px; border-radius: 14px; overflow: hidden; background: #fff; box-shadow: inset 0 0 0 1px rgba(29, 27, 38, .06); display: flex; align-items: center; justify-content: center; }
.hg-mega-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.hg-mega-sub:hover .hg-mega-thumb img { transform: scale(1.08); }
.hg-mega-dot { width: 14px; height: 14px; border-radius: 50%; }
.hg-mega-subtxt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.hg-mega-subtxt b { font-size: 16px; font-weight: 600; line-height: 1.3; }
.hg-mega-subtxt small { font-size: 13px; color: var(--muted); }
.hg-mega-arrow { flex: none; color: var(--ink); opacity: 0; transform: translateX(-6px); transition: opacity .2s, transform .25s var(--ease); }
.hg-mega-sub:hover .hg-mega-arrow, .hg-mega-sub:focus-visible .hg-mega-arrow { opacity: 1; transform: none; }
.hg-mega-feat { display: flex; flex-direction: column; gap: 4px; align-self: start; color: var(--ink); text-decoration: none; }
.hg-mega-featimg { position: relative; display: block; aspect-ratio: 4/3; border-radius: 18px; overflow: hidden; background: #fff; box-shadow: inset 0 0 0 1px rgba(29, 27, 38, .06); margin-bottom: 8px; }
.hg-mega-featimg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.hg-mega-feat:hover .hg-mega-featimg img { transform: scale(1.05); }
.hg-mega-badge { position: absolute; top: 10px; left: 10px; display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 700; }
.hg-mega-featlbl { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.hg-mega-feattitle { font-size: 16px; font-weight: 600; line-height: 1.35; text-wrap: pretty; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hg-mega-feat:hover .hg-mega-feattitle { text-decoration: underline; text-underline-offset: 3px; }
.hg-mega-featprice { font-size: 15px; }
.hg-mega-featprice b { font-size: 17px; }
.hg-mega-featprice s { color: var(--muted); font-size: 14px; }
.hg-mega-featlow { font-size: 12px; line-height: 1.35; color: var(--muted); }
@media (max-width: 1099.98px) { .hg-mega-in, .hg-mega-in.no-feat { grid-template-columns: minmax(170px, .8fr) minmax(0, 2.4fr); } .hg-mega-feat { display: none; } }
.hg-search {
  display: flex; align-items: center; gap: 10px; flex: none; width: 260px; height: 44px; padding: 0 16px; border: 1px solid rgba(29, 27, 38, .16); border-radius: 999px;
  background: #FFFFFF; color: var(--muted); font: 500 15px 'Figtree', sans-serif; cursor: text; text-align: left; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: border-color .2s, box-shadow .2s;
}
.hg-search:hover { border-color: rgba(29, 27, 38, .4); box-shadow: 0 2px 10px rgba(29, 27, 38, .08); }
.hg-cartbtn {
  display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px; border: 0; border-radius: 999px; background: var(--ink); color: var(--cream);
  font: 600 15px 'Figtree', sans-serif; text-decoration: none; cursor: pointer; transition: background .2s, transform .2s var(--ease);
}
.hg-cartbtn:hover { background: var(--ink-2); transform: translateY(-1px); }

/* Spodná navigácia (mobil) */
.hg-tabbar { position: sticky; bottom: 0; z-index: 20; display: grid; grid-template-columns: repeat(4, 1fr); height: 64px; padding-bottom: 4px; background: var(--cream); border-top: 1px solid rgba(29, 27, 38, .12); }
.hg-tabbar a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--muted); text-decoration: none; font-size: 12px; font-weight: 600; transition: color .2s; }
.hg-tabbar a:hover { color: var(--ink); }
.hg-tabbar a[aria-current="page"] { color: var(--ink); font-weight: 700; }
.hg-tabbar a[aria-current="page"] svg.fill-on { fill: currentColor; }

/* Menu (mobil): panel vyjde zľava, závoj (cez celú obrazovku, pod panelom – aby boli vidieť zaoblené rohy) sa rozostrí, položky postupne naskočia, hamburger sa zmení na X.
   Kategórie sú harmonika (site.js prepína .is-open); hlavička panela je prilepená (pri scrolle dostane linku). */
.hg-drawer { position: fixed; inset: 0; z-index: 60; display: flex; visibility: hidden; pointer-events: none; transition: visibility 0s linear .5s; }
.hg-drawer.open { visibility: visible; pointer-events: auto; transition-delay: 0s; }
.hg-drawer-panel { position: relative; z-index: 1; width: 88%; max-width: 420px; height: 100%; overflow: auto; overscroll-behavior: contain; background: var(--cream); color: var(--ink); padding: 0 12px calc(32px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; box-sizing: border-box;
  border-radius: 0 28px 28px 0; transform: translate3d(-100%, 0, 0); transition: transform .5s var(--ease); will-change: transform; box-shadow: 0 0 0 rgba(29, 27, 38, 0); }
.hg-drawer.open .hg-drawer-panel { transform: none; box-shadow: 12px 0 40px rgba(29, 27, 38, .18); transition: transform .55s var(--ease), box-shadow .55s var(--ease); }
.hg-drawer-scrim { position: absolute; inset: 0; width: 100%; border: 0; background: rgba(29, 27, 38, .5); cursor: pointer; opacity: 0; transition: opacity .4s ease;
  -webkit-backdrop-filter: blur(0); backdrop-filter: blur(0); }
.hg-drawer.open .hg-drawer-scrim { opacity: calc(1 - var(--drag, 0)); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); transition: opacity .5s ease, backdrop-filter .5s ease, -webkit-backdrop-filter .5s ease; }

/* položky: pri zatvorení miznú hneď, pri otvorení naskakujú jedna za druhou */
.hg-drawer-item { opacity: 0; transform: translate3d(-18px, 0, 0); transition: opacity .2s ease, transform .2s ease; }
.hg-drawer.open .hg-drawer-item { opacity: 1; transform: none; transition: opacity .45s ease calc(.16s + var(--i) * 35ms), transform .6s var(--ease) calc(.16s + var(--i) * 35ms); }

.hg-drawer-head { position: sticky; top: 0; z-index: 2; flex: none; display: flex; align-items: center; justify-content: space-between; height: 64px; margin: 0 -12px; padding: 0 8px 0 24px;
  background: var(--cream); box-shadow: 0 1px 0 rgba(29, 27, 38, 0); transition: box-shadow .2s; }
.hg-drawer-panel.is-scrolled .hg-drawer-head { box-shadow: 0 1px 0 rgba(29, 27, 38, .1); }
.hg-drawer-logo { font-size: 34px; color: var(--ink); text-decoration: none; }

.hg-drawer-search { display: flex; align-items: center; gap: 10px; flex: none; height: 48px; margin: 4px 0 12px; padding: 0 18px; border-radius: 999px; background: #FFFFFF; box-shadow: inset 0 0 0 1.5px rgba(29, 27, 38, .12);
  color: var(--muted); font-size: 16px; text-decoration: none; }
.hg-drawer-search svg { flex: none; color: var(--ink); }
.hg-drawer-search:active { box-shadow: inset 0 0 0 1.5px var(--ink); }

/* kategória: fotka v kruhu (farebný lem), názov, šípka; po rozbalení jemne zafarbené pozadie */
.hg-dcat { position: relative; border-radius: 20px; transition: background-color .35s ease; }
.hg-dcat + .hg-dcat::before { content: ""; position: absolute; left: 70px; right: 12px; top: 0; height: 1px; background: rgba(29, 27, 38, .09); transition: opacity .3s; }
.hg-dcat.is-open::before, .hg-dcat.is-open + .hg-dcat::before { opacity: 0; }
.hg-dcat.is-open { background-color: color-mix(in srgb, var(--dc) 13%, #FFFFFF); }
.hg-dcat-row { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 64px; padding: 8px 12px 8px 8px; border: 0; background: none; color: var(--ink); text-align: left; text-decoration: none; cursor: pointer;
  font-family: var(--display); font-stretch: 85%; font-weight: 700; font-size: 20px; letter-spacing: -0.01em; -webkit-tap-highlight-color: transparent; }
.hg-dcat-row:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; border-radius: 20px; }
.hg-dcat-name { flex: 1; min-width: 0; }
.hg-dcat-row > svg { flex: none; color: var(--muted); transition: transform .4s var(--ease), color .2s; }
.hg-dcat-row[aria-expanded="true"] > svg { transform: rotate(180deg); color: var(--ink); }
.hg-dcat-row:active .hg-dcat-img { transform: scale(.92); }
.hg-dcat-img { flex: none; position: relative; width: 48px; height: 48px; border-radius: 50%; overflow: hidden; background: color-mix(in srgb, var(--dc) 35%, var(--cream)); box-shadow: 0 0 0 2px var(--cream), 0 0 0 4px var(--dc);
  transform: scale(.4); opacity: 0; transition: transform .2s ease, opacity .2s ease; }
.hg-dcat-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hg-drawer.open .hg-dcat-img { transform: none; opacity: 1; transition: transform .55s cubic-bezier(.34, 1.56, .5, 1) calc(.26s + var(--i) * 35ms), opacity .3s ease calc(.26s + var(--i) * 35ms); }
.hg-drawer.open .hg-dcat-row:active .hg-dcat-img { transform: scale(.92); transition: transform .15s ease; }
.hg-dcat.is-open .hg-dcat-img { box-shadow: 0 0 0 2px color-mix(in srgb, var(--dc) 13%, #FFFFFF), 0 0 0 4px var(--dc); }

/* rozbalenie: výška cez grid 0fr → 1fr, podkategórie naskočia postupne */
.hg-dcat-body { display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows .4s var(--ease), visibility 0s linear .4s; }
.hg-dcat.is-open .hg-dcat-body { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows .45s var(--ease), visibility 0s; }
.hg-dcat-in { min-height: 0; overflow: hidden; display: flex; flex-direction: column; padding: 0 12px 0 70px; }
.hg-dcat.is-open .hg-dcat-in { padding-bottom: 10px; }
.hg-dcat-in > a { display: flex; align-items: center; gap: 8px; min-height: 44px; color: var(--soft); text-decoration: none; font-size: 16px;
  opacity: 0; transform: translate3d(0, -6px, 0); transition: opacity .15s ease, transform .15s ease, color .2s; }
.hg-dcat.is-open .hg-dcat-in > a { opacity: 1; transform: none; transition: opacity .3s ease calc(.05s + var(--j) * 28ms), transform .4s var(--ease) calc(.05s + var(--j) * 28ms), color .2s; }
.hg-dcat-in > a:hover, .hg-dcat-in > a[aria-current="page"] { color: var(--ink); }
.hg-dcat-in > a[aria-current="page"] { font-weight: 700; }
.hg-dcat-all { font-weight: 700; color: var(--ink) !important; }
.hg-dcat-all small { min-width: 22px; padding: 1px 7px; border-radius: 999px; background: rgba(29, 27, 38, .08); color: var(--muted); font-size: 12px; font-weight: 700; text-align: center; }
.hg-dcat-all svg { margin-left: auto; transition: transform .25s var(--ease); }
.hg-dcat-all:hover svg { transform: translateX(3px); }

/* kolekcie a pomoc */
.hg-drawer-sec { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; padding: 0 8px; }
.hg-drawer-label { color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.hg-dcolls { display: flex; flex-wrap: wrap; gap: 8px; }
.hg-dcoll { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px 0 4px; border-radius: 999px; background: color-mix(in srgb, var(--dc) 16%, #FFFFFF); color: var(--ink); font-size: 15px; font-weight: 600; text-decoration: none;
  transition: transform .2s var(--ease), background-color .2s; }
.hg-dcoll img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.hg-dcoll:active { transform: scale(.96); }
.hg-dcoll[aria-current="page"] { box-shadow: inset 0 0 0 1.5px var(--ink); }
.hg-dhelp { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.hg-dhelp a { display: flex; align-items: center; min-height: 44px; color: var(--soft); font-size: 15px; text-decoration: none; }
.hg-dhelp a:hover { color: var(--ink); text-decoration: underline; }

/* hamburger → X (v hlavičke panela; začína ako hamburger a po otvorení sa „zloží“ do X) */
.hg-burger path { transform-box: view-box; transition: transform .4s var(--ease), opacity .2s ease; }
.hg-burger .b1 { transform-origin: 12px 7px; }
.hg-burger .b2 { transform-origin: 12px 12px; }
.hg-burger .b3 { transform-origin: 9px 17px; }
.hg-drawer.open .hg-burger path { transition-delay: .25s; }
.hg-drawer.open .hg-burger .b1 { transform: translateY(5px) rotate(45deg); }
.hg-drawer.open .hg-burger .b2 { transform: scaleX(0); opacity: 0; }
.hg-drawer.open .hg-burger .b3 { transform: translate(3px, -5px) rotate(-45deg); }
.hg-drawer.open [data-close-menu].ibtn:active .hg-burger { transform: rotate(90deg); transition: transform .3s var(--ease); }

@media (prefers-reduced-motion: reduce) {
  .hg-drawer, .hg-drawer-panel, .hg-drawer-scrim, .hg-drawer-item, .hg-dcat-img, .hg-dcat-body, .hg-dcat-in > a, .hg-dcat-row > svg, .hg-burger path { transition-duration: .01s !important; transition-delay: 0s !important; }
  .hg-drawer-item, .hg-dcat-in > a { transform: none; }
}

/* Toast – centrovaný cez `translate`, nie `transform`: ten počas nástupu prepíše animácia hgToast a toast by skočil */
.hg-toast {
  position: fixed; left: 50%; bottom: 24px; translate: -50% 0; z-index: 80; display: none; align-items: center; gap: 10px;
  padding: 12px 20px; border-radius: 999px; background: var(--ink); color: var(--cream); font-size: 15px; font-weight: 600; box-shadow: 0 10px 30px rgba(29, 27, 38, .25);
  max-width: calc(100vw - 32px); box-sizing: border-box;
}
.hg-toast.show { display: flex; animation: hgToast .3s var(--ease); }
@media (max-width: 899.98px) { .hg-toast { bottom: 80px; } }

/* ---------- Pridanie do košíka (site.js: H.cart.addFx) ---------- */
/* letiaca kópia fotky – dráhu (oblúk, zmenšenie, natočenie) počíta JS cez Web Animations */
.hg-fly {
  position: fixed; z-index: 100; overflow: hidden; border-radius: 16px; background: #FFFFFF; pointer-events: none; opacity: 0;
  box-shadow: 0 14px 34px rgba(29, 27, 38, .28), 0 0 0 3px #FFFFFF; will-change: transform, opacity;
}
.hg-fly img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hg-fly.is-dot { background: var(--orange); box-shadow: 0 10px 24px rgba(247, 137, 47, .45); }

/* dopad: košík sa zhupne, odznak naskočí, bodky sa rozprsknú */
.hg-cart-hit { animation: hgCartHit .6s cubic-bezier(.3, 1.6, .5, 1); }
.hg-tabbar .hg-cart-hit { animation: none; }
.hg-cart-hit svg { animation: hgCartTilt .6s var(--ease); transform-origin: 50% 30%; }
@keyframes hgCartHit { 0% { transform: none; } 22% { transform: scale(.84, .92); } 55% { transform: scale(1.1); } 100% { transform: none; } }
@keyframes hgCartTilt { 0%, 100% { transform: none; } 30% { transform: rotate(-12deg); } 60% { transform: rotate(8deg); } 80% { transform: rotate(-3deg); } }
.hg-pop { display: inline-block; animation: hgPop .5s cubic-bezier(.34, 1.8, .5, 1); }
.badge-dot.hg-pop { display: block; }
@keyframes hgPop { 0% { transform: scale(.3); } 60% { transform: scale(1.3); } 100% { transform: none; } }

.hg-burst { position: fixed; z-index: 101; width: 0; height: 0; pointer-events: none; }
.hg-burst i { position: absolute; left: -3.5px; top: -3.5px; width: 7px; height: 7px; border-radius: 50%; background: var(--c); opacity: 0; animation: hgBurst .65s var(--ease) forwards; }
.hg-burst i.hg-burst-ring { left: -22px; top: -22px; width: 44px; height: 44px; background: none; box-shadow: inset 0 0 0 2px var(--orange); animation: hgRing .55s var(--ease) forwards; }
@keyframes hgBurst { 0% { opacity: 1; transform: scale(.4); } 60% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--x), var(--y)) scale(1); } }
@keyframes hgRing { 0% { opacity: .9; transform: scale(.3); } 100% { opacity: 0; transform: scale(1.35); } }

/* plávajúci košík (desktop, keď hlavička nie je vidieť) */
.hg-cartfloat {
  position: fixed; top: 16px; right: 16px; z-index: 85; display: flex; align-items: center; gap: 8px; height: 48px; padding: 0 18px; border-radius: 999px;
  background: var(--ink); color: var(--cream); font: 700 15px 'Figtree', sans-serif; text-decoration: none; box-shadow: 0 12px 30px rgba(29, 27, 38, .25);
  opacity: 0; transform: scale(.6); pointer-events: none; transition: opacity .25s ease, transform .4s cubic-bezier(.34, 1.5, .5, 1);
}
.hg-cartfloat.show { opacity: 1; transform: none; pointer-events: auto; }
.hg-cartfloat:hover { background: var(--ink-2); }

/* tlačidlo: čakanie na overenie skladu → fajka „Pridané“; odmietnutie (vypredané) = krátke zatrasenie */
[data-add][aria-busy="true"] { cursor: progress; }
.add-btn[aria-busy="true"] svg { animation: hgSpin .9s linear .15s infinite; }
[data-add].is-added, .pdp-add.is-added, .pdp-bar-btn.is-added { background: var(--green) !important; color: var(--ink) !important; animation: hgAdded .45s cubic-bezier(.34, 1.7, .5, 1); }
.add-btn.is-added:hover { transform: none; }
.hg-added-lbl { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.hg-check { stroke-dasharray: 22; stroke-dashoffset: 22; animation: hgCheck .35s var(--ease) .08s forwards; }
@keyframes hgAdded { 0% { transform: scale(.85); } 60% { transform: scale(1.08); } 100% { transform: none; } }
@keyframes hgCheck { to { stroke-dashoffset: 0; } }
.is-refused { animation: hgShake .4s ease; }
@keyframes hgShake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }
@media (prefers-reduced-motion: reduce) { .hg-check { stroke-dashoffset: 0; } }

/* lišta „Pridané do košíka“ – vysunie sa zdola; desktop: vľavo pridaný produkt, vpravo odporúčania; mobil: všetko pod sebou */
.hg-added { position: fixed; inset: 0; z-index: 95; display: flex; align-items: flex-end; }
.hg-added-scrim { position: absolute; inset: 0; background: rgba(29, 27, 38, .32); opacity: 0; transition: opacity .3s ease; }
.hg-added.open .hg-added-scrim { opacity: 1; }
.hg-added-box {
  position: relative; width: 100%; max-height: 88vh; overflow: auto; overscroll-behavior: contain; box-sizing: border-box;
  border-radius: 28px 28px 0 0; background: var(--cream); color: var(--ink); box-shadow: 0 -18px 60px rgba(29, 27, 38, .22);
  transform: translate3d(0, 100%, 0); transition: transform .35s var(--ease);
}
.hg-added.open .hg-added-box { transform: none; transition: transform .55s cubic-bezier(.22, 1.12, .36, 1); }
.hg-added-in {
  display: grid; grid-template-columns: minmax(300px, 400px) minmax(0, 1fr); gap: 24px 48px; max-width: 1280px; margin: 0 auto;
  padding: 18px var(--pad, 32px) calc(24px + env(safe-area-inset-bottom)); box-sizing: border-box;
}
.hg-added-grip { display: none; width: 40px; height: 5px; margin: 10px auto 0; border-radius: 999px; background: rgba(29, 27, 38, .18); }
.hg-added-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.hg-added-head { display: flex; align-items: center; gap: 12px; margin-right: -10px; }
.hg-added-head h2 { flex: 1; margin: 0; font-family: var(--display); font-stretch: 85%; font-weight: 700; font-size: 26px; line-height: 1.1; }
.hg-added-ok { flex: none; display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: var(--green); color: var(--ink); transform: scale(0); }
.hg-added.open .hg-added-ok { transform: none; transition: transform .45s cubic-bezier(.34, 1.8, .5, 1) .18s; }
.hg-added-ok .hg-check { animation-delay: .35s; }
.hg-added-item { display: flex; align-items: center; gap: 14px; padding: 10px; border-radius: 16px; background: #FFFFFF; box-shadow: inset 0 0 0 1px rgba(29, 27, 38, .06); }
.hg-added-img { flex: none; width: 64px; height: 64px; border-radius: 12px; overflow: hidden; background: rgba(29, 27, 38, .06); }
.hg-added-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hg-added-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 15px; color: var(--muted); }
.hg-added-txt b { color: var(--ink); font-size: 16px; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hg-added-txt small { color: #9A5A00; font-size: 13px; font-weight: 600; }
.hg-pop-in { animation: hgAdded .45s cubic-bezier(.34, 1.7, .5, 1); }
.hg-added-ship { display: flex; flex-direction: column; gap: 8px; }
.hg-added-ship p { margin: 0; font-size: 15px; color: var(--soft); }
.hg-added-ship strong { color: var(--ink); }
.hg-added-bar { height: 8px; border-radius: 999px; background: rgba(29, 27, 38, .10); overflow: hidden; }
.hg-added-bar i { display: block; height: 100%; width: 0; border-radius: 999px; background: var(--ink); transition: width .8s var(--ease) .25s; }
.hg-added-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: auto; }
.hg-added-btns > * { justify-content: center; height: 52px; padding: 0 14px; font-size: 16px; white-space: nowrap; }

.hg-added-recs { display: flex; flex-direction: column; gap: 12px; min-width: 0; padding-top: 2px; }
.hg-added-rhead { display: flex; align-items: center; gap: 8px; }
.hg-added-rhead h3 { flex: 1; margin: 0; font-family: var(--display); font-stretch: 85%; font-weight: 700; font-size: 20px; line-height: 1.2; }
.hg-added-arrow {
  flex: none; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%;
  background: #FFFFFF; color: var(--ink); box-shadow: inset 0 0 0 1.5px rgba(29, 27, 38, .16); cursor: pointer; transition: background .2s, color .2s, opacity .2s, transform .25s var(--ease);
}
.hg-added-arrow[data-added-slide="-1"] svg { transform: scaleX(-1); }
.hg-added-arrow:hover:not(:disabled) { background: var(--ink); color: var(--cream); transform: scale(1.06); }
.hg-added-arrow:disabled { opacity: .35; cursor: default; }
.hg-added-rhead.no-arrows .hg-added-arrow { display: none; }
/* slider: vodorovný pás so zachytávaním kariet */
.hg-added-rgrid { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; }
.hg-added-rec { flex: none; width: 168px; scroll-snap-align: start; display: flex; flex-direction: column; gap: 8px; min-width: 0; opacity: 0; transform: translateY(14px); }
.hg-added.open .hg-added-rec { opacity: 1; transform: none; transition: opacity .4s ease calc(.2s + var(--i, 0) * 50ms), transform .5s var(--ease) calc(.2s + var(--i, 0) * 50ms); }
.hg-added-rimg { display: block; aspect-ratio: 1/1; border-radius: 14px; overflow: hidden; background: #FFFFFF; box-shadow: inset 0 0 0 1px rgba(29, 27, 38, .06); }
.hg-added-rimg img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s var(--ease); }
.hg-added-rimg:hover img { transform: scale(1.05); }
.hg-added-rname { color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-underline-offset: 3px; }
.hg-added-rname:hover { text-decoration: underline; }
.hg-added-rbuy { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; }
.hg-added-rbuy b { font-size: 16px; white-space: nowrap; }
.hg-added-rbuy .add-btn { width: 38px; height: 38px; }

@media (max-width: 899.98px) {
  /* mobil: kompaktne, aby sa lišta zmestila bez vnútorného scrollu */
  .hg-added-in { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 6px 16px calc(14px + env(safe-area-inset-bottom)); }
  .hg-added-grip { display: block; margin-top: 8px; }
  .hg-added-main { display: contents; }
  .hg-added-head, .hg-added-item, .hg-added-ship { order: 1; }
  .hg-added-recs { order: 2; gap: 8px; padding-top: 0; }
  .hg-added-btns { order: 3; gap: 8px; }
  .hg-added-head { gap: 10px; margin-right: -8px; }
  .hg-added-head h2 { font-size: 21px; }
  .hg-added-head .ibtn { width: 40px; height: 40px; }
  .hg-added-ok { width: 28px; height: 28px; }
  .hg-added-ok svg { width: 16px; height: 16px; }
  .hg-added-item { gap: 12px; padding: 8px; border-radius: 14px; }
  .hg-added-img { width: 48px; height: 48px; border-radius: 10px; }
  .hg-added-txt { font-size: 14px; }
  .hg-added-txt b { font-size: 15px; line-height: 1.3; -webkit-line-clamp: 1; }
  .hg-added-ship { gap: 6px; }
  .hg-added-ship p { font-size: 14px; }
  .hg-added-bar { height: 6px; }
  .hg-added-rhead h3 { font-size: 17px; }
  .hg-added-arrow { display: none; }
  .hg-added-rgrid { gap: 10px; margin: 0 -16px; padding: 0 16px; scroll-padding: 0 16px; }
  .hg-added-rec { width: 116px; gap: 6px; }
  .hg-added-rimg { border-radius: 12px; }
  .hg-added-rname { font-size: 13px; line-height: 1.3; }
  .hg-added-rbuy b { font-size: 14px; }
  .hg-added-rbuy .add-btn { width: 34px; height: 34px; }
  .hg-added-rbuy .add-btn svg { width: 16px; height: 16px; }
  .hg-added-btns > * { height: 48px; padding: 0 10px; font-size: 15px; white-space: normal; line-height: 1.15; text-align: center; }
}

/* ---------- Pätička ---------- */
.hg-foot { background: var(--ink); color: var(--cream); padding: clamp(48px, 5.6cqw, 80px) var(--pad) clamp(88px, 6cqw, 32px); }
.hg-foot a { text-decoration: none; }
.hg-foot-link { align-self: flex-start; color: var(--cream); transition: color .2s, transform .25s var(--ease); }
.hg-foot-link:hover { color: var(--orange); transform: translateX(3px); }
.hg-legal a { color: #C9C5D0; text-decoration: underline; text-underline-offset: 3px; transition: color .2s; }
.hg-legal a:hover { color: var(--cream); }
.hg-news input { height: 52px; padding: 0 18px; border-radius: 999px; border: 1.5px solid rgba(250, 247, 242, .4); background: transparent; color: var(--cream); font: 400 17px 'Figtree', sans-serif; outline: none; transition: border-color .2s; }
.hg-news input:hover { border-color: rgba(250, 247, 242, .75); }
.hg-news input:focus { border-color: var(--orange); }
.hg-news input::placeholder { color: rgba(250, 247, 242, .5); }
.hg-news button { align-self: flex-end; height: 52px; padding: 0 24px; border: 0; border-radius: 999px; background: var(--orange); color: var(--ink); font: 700 17px 'Figtree', sans-serif; cursor: pointer; transition: background .2s, transform .25s var(--ease); }
.hg-news button:hover { background: #FFA052; transform: translateY(-2px); }

/* ---------- Nadpisy sekcií ---------- */
.h2 { position: relative; margin: 0; font-family: var(--display); font-stretch: 85%; font-weight: 700; font-size: clamp(30px, 2.8cqw, 44px); line-height: 1.05; letter-spacing: -0.005em; }
.h2 svg.wave { position: absolute; left: 0; bottom: -14px; width: 109px; height: 10px; pointer-events: none; }

/* ---------- Karta produktu ---------- */
.pcard { display: flex; flex-direction: column; gap: 12px; min-width: 0; color: var(--ink); }
.pcard-img { position: relative; display: block; aspect-ratio: 1/1; border-radius: 16px; overflow: hidden; background: #FFFFFF; box-shadow: inset 0 0 0 1px rgba(29, 27, 38, .06); }
.pcard-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.pcard-img:hover img { transform: scale(1.05); }
.pcard-badge { position: absolute; top: 10px; left: 10px; display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 13px; font-weight: 700; letter-spacing: .01em; }
.pcard-title { color: var(--ink); text-decoration: none; font-size: 16px; font-weight: 600; line-height: 1.35; text-wrap: pretty; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.pcard-title:hover { text-decoration: underline; }

/* Mriežka produktov na domovskej stránke: na mobile len prvé 4 */
@media (max-width: 899.98px) { .p-grid-home > :nth-child(n+5) { display: none; } }

/* Skryté scrollbary na horizontálnych pásoch */
.noscrollbar { scrollbar-width: none; }
.noscrollbar::-webkit-scrollbar { display: none; }

[hidden] { display: none !important; }

/* Úzky desktop (900–1180 px): vyhľadávanie sa zmení na ikonu, aby hlavička nepretekala */
@media (min-width: 900px) and (max-width: 1180px) {
  .hg-search { width: 44px; padding: 0; justify-content: center; font-size: 0; gap: 0; }
}
