/* Obchod (obchod.html) */
.shop { padding: clamp(16px, 2.2cqw, 32px) var(--pad) clamp(56px, 6.6cqw, 104px); }
.shop-wrap { max-width: 1280px; margin: 0 auto; display: flex; align-items: flex-start; gap: 56px; }
.shop-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

/* ---------- Strom kategórií ---------- */
.shop-aside { --aside-top: 128px; --aside-gap: 24px; flex: none; width: 232px; position: sticky; top: var(--aside-top); display: flex; flex-direction: column; gap: 2px; }
.tree-all {
  display: flex; align-items: center; min-height: 44px; padding: 0 12px; margin-bottom: 6px; border-radius: 12px; color: var(--ink); text-decoration: none;
  font-family: var(--display); font-stretch: 85%; font-weight: 800; font-size: 24px; line-height: 1.1; transition: color .2s;
}
.tree-all:hover { color: var(--red); }
.tree-item, .tree-sub {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; box-sizing: border-box; width: 100%; padding: 0 12px;
  color: var(--ink); text-decoration: none; background: transparent; transition: background .2s;
}
.tree-item { min-height: 40px; border-radius: 12px; font-size: 16px; font-weight: 500; }
.tree-sub { min-height: 36px; border-radius: 10px; font-size: 14px; font-weight: 600; }
.tree-item:hover, .tree-sub:hover { background: #EFEAE2; }
.tree-item.on { font-weight: 700; }
.tree-item[aria-current], .tree-sub[aria-current] { background: #EFEAE2; }
.tree-sub[aria-current] { font-weight: 700; }
.tree-item small, .tree-sub small { font-size: 13px; font-weight: 500; color: var(--muted); }
.tree-coll { margin-top: 6px; }
.tree-coll > summary { list-style: none; cursor: pointer; }
.tree-coll > summary::-webkit-details-marker { display: none; }
.tree-coll > summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.tree-coll .tree-chev { flex: none; color: var(--muted); transition: transform .2s var(--ease); }
.tree-coll[open] > summary .tree-chev { transform: rotate(180deg); }
.tree-coll > summary > span { font-weight: 700; }
.tree-subs { display: flex; flex-direction: column; gap: 1px; padding: 4px 0 10px 12px; }

/* ---------- Omrvinky ---------- */
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; padding: 0; list-style: none; font-size: 14px; color: var(--muted); }
.crumbs li { display: flex; align-items: center; gap: 8px; }
.crumbs a { color: var(--muted); text-underline-offset: 3px; transition: color .2s; }
.crumbs a:hover { color: var(--ink); }
.crumbs [aria-current] { color: var(--ink); font-weight: 600; }

/* ---------- Nadpis + zoradenie ---------- */
.shop-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 14px; }
.shop-title { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; min-width: 0; }
.shop-title h1 {
  margin: 0; font-family: var(--display); font-optical-sizing: auto; font-stretch: 85%; font-weight: 800; font-size: clamp(32px, 3cqw, 44px);
  line-height: 1.05; letter-spacing: -0.01em; text-wrap: balance;
}
.pill { padding: 3px 10px; border-radius: 999px; background: #EFEAE2; font-size: 13px; font-weight: 700; }
.up-btn {
  flex: none; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: #FFFFFF; color: var(--ink);
  box-shadow: inset 0 0 0 1.5px rgba(29, 27, 38, .16); text-decoration: none; transition: background .2s, color .2s, box-shadow .2s, transform .25s var(--ease);
}
.up-btn:hover { background: var(--ink); color: var(--cream); box-shadow: inset 0 0 0 1.5px var(--ink); transform: translateX(-3px); }
.up-btn:active { transform: scale(.94); }

.sort {
  flex: none; position: relative; display: flex; align-items: center; gap: 6px; box-sizing: border-box; height: 44px; padding: 0 38px 0 16px; border-radius: 999px;
  background: #FFFFFF; box-shadow: inset 0 0 0 1.5px rgba(29, 27, 38, .16); font: 600 15px 'Figtree', sans-serif; color: var(--ink); white-space: nowrap; cursor: pointer; transition: box-shadow .2s;
}
.sort[hidden] { display: none; }
.sort:not(.sort-m) { padding-left: 18px; padding-right: 40px; }
.sort:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.sort:has(.hs-hit:focus-visible) { outline: 3px solid var(--orange); outline-offset: 2px; }
.sort-chev { position: absolute; right: 14px; top: 13px; }

/* ---------- Dlaždice kategórií ---------- */
.tile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(max(150px, calc((100% - 72px) / 4)), 1fr)); gap: 20px clamp(12px, 1.7cqw, 24px); margin-top: 20px; }
.tile { display: flex; flex-direction: column; gap: 8px; min-width: 0; color: var(--ink); text-decoration: none; transition: transform .25s var(--ease); }
.tile:active { transform: scale(.97); }
.tile-img { position: relative; display: block; width: 100%; aspect-ratio: 1/1; border-radius: 20px; overflow: hidden; background: #FFFFFF; }
.tile-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile-txt { display: flex; flex-direction: column; line-height: 1.25; padding: 0 2px; }
.tile-txt b { font-size: 16px; font-weight: 700; }
.tile-txt span { font-size: 13px; font-weight: 500; color: var(--muted); }
.wave-rule { display: flex; align-items: center; gap: 14px; margin-top: 44px; color: rgba(29, 27, 38, .22); }
.wave-rule svg { flex: 1; min-width: 0; height: 12px; }
.wave-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--orange); }
.all-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 36px; }
.all-h { margin: 0; font-family: var(--display); font-stretch: 85%; font-weight: 800; font-size: 26px; line-height: 1.1; }

/* ---------- Lišta filtrov (mobil) ---------- */
.shop-bar { position: sticky; top: 96px; z-index: 10; display: flex; align-items: center; gap: 8px; margin: 14px calc(-1 * var(--pad)) 0; padding: 10px var(--pad); background: var(--cream); overflow-x: auto; scrollbar-width: none; }
.shop-bar::-webkit-scrollbar { display: none; }
.bar-cat {
  flex: none; display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px 0 16px; border: 0; border-radius: 999px; background: #FFFFFF; color: var(--ink);
  box-shadow: inset 0 0 0 2px var(--ink); font: 700 15px 'Figtree', sans-serif; white-space: nowrap; cursor: pointer;
}
.shop-bar .sort:has(.hs-hit:focus-visible) { outline-offset: -3px; }

/* ---------- Mriežka produktov ---------- */
.p-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(max(150px, calc((100% - 72px) / 4)), 1fr)); gap: 32px clamp(12px, 1.7cqw, 24px); margin-top: 20px; }
.more-box { display: flex; flex-direction: column; align-items: center; gap: 14px; padding-top: 36px; }
.more-count { font-size: 14px; color: var(--muted); }
.more-track { position: relative; display: block; width: 200px; height: 4px; border-radius: 999px; background: rgba(29, 27, 38, .12); overflow: hidden; }
.more-track > span { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 999px; background: var(--ink); transition: width .4s var(--ease); }
.more-btn {
  height: 52px; margin-top: 6px; padding: 0 28px; border-radius: 999px; border: 1.5px solid var(--ink); background: transparent; color: var(--ink);
  font: 600 16px 'Figtree', sans-serif; cursor: pointer; transition: background .2s, color .2s, transform .25s var(--ease);
}
.more-btn:hover { background: var(--ink); color: var(--cream); transform: translateY(-2px); }
/* dočítavanie pod mriežkou nesmie posúvať scroll (anchoring by držal spodok mriežky na mieste a slučka by nikdy neskončila) */
.hg { overflow-anchor: none; }
.more-btn { display: none; }   /* produkty sa dočítavajú posúvaním (shop.js); odkaz na ďalšiu stranu ostáva v HTML pre vyhľadávače a bez JS */
/* server vykreslí 12 kariet; na mobile sa ukáže prvých 8 (rovnako ako výpis z shop.js), kým výpis neprevezme JS */
@media (max-width: 899.98px) { .pcard.hide-m { display: none; } }

/* ---------- Prázdny stav ---------- */
.empty { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin-top: 20px; padding: clamp(24px, 3.3cqw, 40px); border-radius: 24px; background: #FFFFFF; }
.empty h3 { margin: 0; font-size: 20px; font-weight: 700; line-height: 1.35; }
.empty p { margin: 0; color: var(--soft); max-width: 34em; text-wrap: pretty; }
.empty-btn { display: inline-flex; align-items: center; height: 48px; margin-top: 4px; padding: 0 22px; border-radius: 999px; background: var(--ink); color: var(--cream); font: 600 16px 'Figtree', sans-serif; text-decoration: none; transition: background .2s; }
.empty-btn:hover { background: var(--ink-2); }

/* ---------- Výber kategórie (bottom sheet, mobil) ---------- */
.sheet { position: fixed; inset: 0; z-index: 65; display: none; flex-direction: column; justify-content: flex-end; font-family: 'Figtree', system-ui, sans-serif; font-size: 17px; line-height: 1.55; color: var(--ink); }
.sheet.open { display: flex; }
.sheet-scrim { position: absolute; inset: 0; border: 0; padding: 0; background: rgba(29, 27, 38, .5); cursor: pointer; }
.sheet-panel {
  position: relative; display: flex; flex-direction: column; height: 90%; max-height: 90vh; border-radius: 24px 24px 0 0; background: var(--cream);
  box-shadow: 0 -8px 32px rgba(29, 27, 38, .18); overflow: hidden; animation: sheetUp .3s var(--ease);
}
@supports (height: 1dvh) { .sheet-panel { max-height: 90dvh; } }
@keyframes sheetUp { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.sheet-grab { display: flex; justify-content: center; padding-top: 8px; }
.sheet-grab span { width: 40px; height: 4px; border-radius: 999px; background: rgba(29, 27, 38, .2); }
.sheet-head { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center; height: 60px; padding: 0 8px; border-bottom: 1px solid rgba(29, 27, 38, .12); }
.sheet-head h2 { margin: 0; text-align: center; font-family: var(--display); font-stretch: 85%; font-weight: 800; font-size: 24px; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sheet-ibtn { 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; transition: background .2s; }
.sheet-ibtn:hover { background: rgba(29, 27, 38, .07); }
.sheet-body { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; }
.sheet-row {
  display: flex; align-items: center; gap: 14px; box-sizing: border-box; width: 100%; min-height: 76px; padding: 10px 20px; border: 0; border-bottom: 1px solid rgba(29, 27, 38, .10);
  background: transparent; color: var(--ink); font: 500 16px 'Figtree', sans-serif; text-align: left; cursor: pointer; transition: background .2s;
}
.sheet-row.sel { background: #F1ECE4; font-weight: 700; }
.sheet-row:focus-visible { outline-offset: -3px; }
.sheet-tile { flex: none; position: relative; width: 52px; height: 52px; border-radius: 12px; overflow: hidden; background: #FFFFFF; }
.sheet-tile.dark { background: var(--ink); }
.sheet-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sheet-tile svg { position: absolute; inset: 28%; width: 44%; height: 44%; }
.sheet-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.sheet-txt small { font-size: 13px; font-weight: 500; color: var(--muted); }
.sheet-chev { flex: none; }
.sheet-radio { flex: none; display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; box-shadow: inset 0 0 0 2px rgba(29, 27, 38, .35); }
.sheet-radio i { width: 12px; height: 12px; border-radius: 50%; background: var(--ink); opacity: 0; }
.sheet-row.sel .sheet-radio { box-shadow: inset 0 0 0 2px var(--ink); }
.sheet-row.sel .sheet-radio i { opacity: 1; }
.sheet-foot { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 10px; padding: 12px 20px 20px; border-top: 1px solid rgba(29, 27, 38, .12); }
.sheet-cancel { height: 52px; padding: 0 20px; border-radius: 999px; border: 1.5px solid var(--ink); background: transparent; color: var(--ink); font: 600 16px 'Figtree', sans-serif; cursor: pointer; }
.sheet-done { height: 52px; padding: 0 20px; border: 0; border-radius: 999px; background: var(--ink); color: var(--cream); font: 600 16px 'Figtree', sans-serif; cursor: pointer; transition: background .2s; }
.sheet-done:hover { background: var(--ink-2); }
.sheet a:focus-visible, .sheet button:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.sheet-row:focus-visible, .sheet-ibtn:focus-visible { outline-offset: -3px; }

@media (min-width: 900px) { .sheet { display: none !important; } }
