/* Obchod na webe (/obchod) – takmer celá šírka: kategórie vľavo, tovar v strede, košík / výkup vpravo */
body.shop .wrap { max-width: 1680px; }
.sh-main { position: relative; z-index: 1; display: grid; gap: 16px; padding-block: 22px 70px; align-content: start; }
.sh-main section { padding-block: 0; }
.gxi { width: 1em; height: 1em; object-fit: contain; image-rendering: auto; vertical-align: middle; }
.gxe { display: inline-block; line-height: 1; }
.gx img, .gx .gxi { width: 100%; height: 100%; object-fit: contain; }

/* veľké pozadie – trh v noci / ráno (pevná vrstva, nepohybuje sa pri rolovaní → žiadne prekresľovanie) */
.sh-bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; contain: strict; background: url(/gfx/obchod/pozadie-noc-hd.webp) center top / cover no-repeat; opacity: .25;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 35%, rgb(0 0 0 / .35) 75%, rgb(0 0 0 / .15) 100%); mask-image: linear-gradient(180deg, #000 0%, #000 35%, rgb(0 0 0 / .35) 75%, rgb(0 0 0 / .15) 100%); }
:root[data-theme="light"] .sh-bg { background-image: url(/gfx/obchod/pozadie-den-hd.webp); opacity: .24; }
body.shop .page-bg { display: none; }
/* menšie obrazovky dostanú menšie pozadie (rýchlejšie, menej pamäte) */
@media (max-width: 1100px) { .sh-bg { background-image: url(/gfx/obchod/pozadie-noc.webp); } :root[data-theme="light"] .sh-bg { background-image: url(/gfx/obchod/pozadie-den.webp); } }

/* hlavička */
.sh-head { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.sh-merchant { width: 86px; height: 86px; font-size: 64px; display: grid; place-items: center; line-height: 1; filter: drop-shadow(0 8px 14px rgba(0,0,0,.35)); animation: shFloat 6s ease-in-out infinite; }
@keyframes shFloat { 50% { transform: translateY(-5px); } }
.sh-title { flex: 1 1 260px; min-width: 0; }
.sh-title h1 { font-size: clamp(42px, 5vw, 62px); line-height: .95; }
.sh-title .k { margin: 6px 0 0; font-size: 14px; color: var(--muted); }
.sh-title .k b { color: var(--text); font-variant-numeric: tabular-nums; }
.sh-bf { color: var(--bad) !important; letter-spacing: .02em; }
.sh-chips { display: flex; gap: 10px; flex-wrap: wrap; margin-left: auto; }
.fm-chip { display: grid; gap: 1px; padding: 8px 14px; border-radius: 8px; background: var(--glass); border: 1px solid var(--line); min-width: 120px; }
.fm-chip b { font-family: var(--f-num); font-weight: 600; font-size: 17px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fm-chip i { font-style: normal; font-size: 11.5px; color: var(--muted); }
.fm-chip.on b { color: var(--good); }
.fm-chip.ic { grid-template-columns: 34px auto; align-items: center; column-gap: 10px; padding: 7px 14px 7px 10px; }
.fm-chip.ic > :first-child { width: 34px; height: 34px; font-size: 26px; display: grid; place-items: center; }
.fm-chip.ic > div { display: grid; gap: 1px; }

.tk-close { flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; text-decoration: none; font-size: 18px; color: var(--muted); border: 1px solid var(--line); background: var(--panel); transition: color .15s, border-color .15s, transform .2s; }
.tk-close:hover { color: var(--bad); border-color: var(--bad); transform: rotate(90deg); }

/* tiery */
.sh-tiers { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.sh-tier { position: relative; display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 6px 12px; align-items: center; align-content: start; padding: 14px 14px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--glass); min-width: 0; min-height: 150px; transition: transform .2s, box-shadow .2s; }
.sh-tier:hover { transform: translateY(-2px); }
.sh-t-ic { grid-row: span 2; position: relative; width: 64px; height: 64px; font-size: 46px; display: grid; place-items: center; filter: drop-shadow(0 6px 10px rgb(0 0 0 / .35)); }
.sh-t-ic .gxi { width: 64px; height: 64px; }
.sh-tier:not(.got) .sh-t-ic > :first-child { filter: grayscale(.85) brightness(.75); opacity: .7; }
.sh-t-lock { position: absolute; right: -6px; bottom: -6px; font-size: 20px; }
.sh-t-lock .gxi { width: 26px; height: 26px; }
.sh-t-tx { display: grid; gap: 1px; min-width: 0; }
.sh-t-tx b { font-size: 16px; line-height: 1.2; }
.sh-t-tx i { font-style: normal; font-size: 12.5px; color: var(--muted); }
.sh-t-tx em { font-style: normal; font-size: 12px; color: var(--good); }
.sh-t-ok { grid-column: 1 / -1; display: inline-flex; align-items: center; gap: 6px; justify-self: start; margin-top: 4px; font-size: 13px; color: var(--good); font-weight: 600; padding: 4px 10px; border-radius: 20px; background: color-mix(in srgb, var(--good) 12%, transparent); }
.sh-t-ok .gxi { width: 18px; height: 18px; }
.sh-tier.cur { border-color: var(--torch); box-shadow: 0 0 0 1px var(--torch), 0 8px 22px rgb(var(--torch-rgb) / .18); }
.sh-tier.cur .sh-t-ok { color: var(--torch); }
.sh-tier.next { border-style: dashed; border-color: rgb(var(--torch-rgb) / .6); }
.sh-t-bar { grid-column: 1 / -1; height: 8px; margin-top: 4px; border-radius: 4px; background: rgb(var(--deep-rgb) / .6); overflow: hidden; }
.sh-t-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--diamond), var(--torch)); border-radius: inherit; }
.sh-unlock { grid-column: 1 / -1; font-size: 21px; padding: 10px 12px; margin-top: 6px; border-radius: 8px; box-shadow: 0 8px 18px rgb(var(--torch-rgb) / .28); }
.sh-unlock.sure { background: var(--bad); color: #fff; }
.sh-t-need { grid-column: 1 / -1; font-size: 12.5px; color: var(--muted); text-align: center; }
.sh-tier.t6 { background: linear-gradient(135deg, rgb(var(--gold-rgb) / .14), var(--glass) 60%); }
.sh-tier.t6.got { border-color: var(--gold); }

/* záložky */
.sh-modes { display: flex; gap: 6px; border-bottom: 1px solid var(--line); padding-bottom: 8px; flex-wrap: wrap; }
.sh-modes button .gx { width: 24px; height: 24px; font-size: 18px; display: inline-grid; place-items: center; }
.sh-modes button { font: 600 15px var(--f-body); padding: 7px 14px 7px 10px; border-radius: 6px; border: 0; background: none; color: var(--muted); cursor: pointer; display: inline-flex; gap: 8px; align-items: center; }
.sh-modes button:hover { color: var(--text); background: var(--panel); }
.sh-modes button.on { color: var(--btn-ink); background: var(--btn-bg); }
.sh-cnt:empty { display: none; }
.sh-cnt { font-size: 12px; min-width: 20px; padding: 1px 6px; border-radius: 10px; background: var(--diamond); color: #04161a; }

/* rozloženie */
.sh-grid { display: grid; grid-template-columns: 250px minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.sh-grid.sell { grid-template-columns: minmax(0, 1fr) 360px; }
.sh-side, .sh-cart { position: sticky; top: 76px; max-height: calc(100vh - 92px); overflow-y: auto; scrollbar-width: thin; }
.sh-side { display: grid; gap: 10px; padding: 12px; }
.sh-side input[type=search] { font-family: var(--f-body); font-size: 14px; padding: 9px 11px; }
.sh-cats { display: grid; gap: 2px; }
.sh-cat { display: grid; grid-template-columns: 26px 1fr auto; align-items: center; gap: 8px; padding: 7px 8px; border: 0; border-radius: 6px; background: none; color: var(--text); font: 500 14px var(--f-body); cursor: pointer; text-align: left; }
.sh-cat .gxi, .sh-cat .gxe { width: 24px; height: 24px; font-size: 19px; text-align: center; }
.sh-cat i { font-style: normal; font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.sh-cat:hover { background: var(--glass); }
.sh-cat.on { background: rgb(var(--torch-rgb) / .14); box-shadow: inset 3px 0 0 var(--torch); color: var(--torch); font-weight: 600; }
.sh-chk { display: flex; gap: 8px; align-items: center; font-size: 13.5px; color: var(--muted); cursor: pointer; }
.sh-chk input { width: auto; accent-color: var(--torch); }
.sh-cat.vote { margin-top: 6px; border: 1px dashed rgb(var(--gold-rgb) / .5); }
.sh-cat.vote.on { box-shadow: inset 3px 0 0 var(--gold); color: var(--gold); background: rgb(var(--gold-rgb) / .12); }

/* zoradenie – vlastné rozbaľovacie menu s ikonami */
.sh-sort { position: relative; display: grid; gap: 5px; }
.sh-sort-l { font-size: 12px; color: var(--muted); }
.sh-sort-b, .sh-sort-p button { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 9px; width: 100%; text-align: left; font: inherit; color: var(--text); cursor: pointer; }
.sh-sort-b { padding: 7px 10px 7px 8px; border-radius: 10px; border: 1px solid var(--line); background: var(--field); transition: border-color .15s, box-shadow .15s; }
.sh-sort-b:hover, .sh-sort.open .sh-sort-b { border-color: var(--torch); box-shadow: 0 0 0 3px rgb(var(--torch-rgb) / .15); }
.sh-sort-b .gxi, .sh-sort-p .gxi, .sh-sort-b .gxe, .sh-sort-p .gxe { width: 30px; height: 30px; font-size: 20px; text-align: center; }
.sh-sort-b span, .sh-sort-p span { display: grid; min-width: 0; }
.sh-sort-b b, .sh-sort-p b { font-size: 13.5px; }
.sh-sort-b i, .sh-sort-p i { font-style: normal; font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sh-sort-b svg { width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s; }
.sh-sort.open .sh-sort-b svg { transform: rotate(180deg); stroke: var(--torch); }
.sh-sort-p { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .28s cubic-bezier(.2,.9,.25,1), opacity .18s; }
.sh-sort-p > .in { min-height: 0; overflow: hidden; display: grid; gap: 2px; border-radius: 12px; background: var(--panel); }
.sh-sort.open .sh-sort-p { grid-template-rows: 1fr; opacity: 1; }
.sh-sort.open .sh-sort-p > .in { padding: 6px; border: 1px solid var(--line); box-shadow: 0 12px 28px rgb(0 0 0 / .22); }
.sh-sort:not(.open) .sh-sort-p { pointer-events: none; }
.sh-sort-p button { padding: 7px 8px; border: 0; border-radius: 8px; background: none; opacity: 0; transform: translateX(-6px); }
.sh-sort.open .sh-sort-p button { opacity: 1; transform: none; transition: opacity .2s calc(var(--i) * 30ms), transform .25s calc(var(--i) * 30ms), background .12s; }
.sh-sort-p button:hover { background: rgb(var(--torch-rgb) / .1); }
.sh-sort-p button.on { background: rgb(var(--torch-rgb) / .14); }
.sh-sort-p em { font-style: normal; color: var(--torch); font-weight: 700; }

.sh-items { min-width: 0; display: grid; gap: 12px; align-content: start; }
.sh-ihead, .sh-shead { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; scroll-margin-top: 84px; }
.sh-ihead .sh-pager { margin-left: auto; align-self: center; }

/* stránkovanie */
.sh-pager { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; justify-content: center; }
.sh-pager.bot { padding-top: 6px; }
.sh-pager button { min-width: 36px; height: 36px; padding: 0 8px; border-radius: 9px; border: 1px solid var(--line); background: var(--glass); color: var(--text); font: 600 14px var(--f-num); cursor: pointer; transition: background .12s, border-color .12s, transform .1s; }
.sh-pager button:hover:not(:disabled) { border-color: var(--torch); transform: translateY(-1px); }
.sh-pager button.on { background: var(--btn-bg); border-color: var(--btn-bg); color: var(--btn-ink); }
.sh-pager button:disabled { opacity: .35; cursor: default; }
.sh-pager .arr { font-size: 18px; }
.sh-pager .gap { color: var(--muted); padding: 0 2px; }
.sh-pinfo { width: 100%; text-align: center; font-size: 12px; color: var(--muted); }
.sh-ihead b, .sh-shead b { font: 26px var(--f-display); }
.sh-ihead span, .sh-shead span { color: var(--muted); font-size: 13px; }
.sh-shead .btn.sm { font-size: 16px; padding: 5px 12px; }
.sh-shead .btn.sm:first-of-type { margin-left: auto; }
.sh-legbar { display: flex; gap: 14px; align-items: center; padding: 12px 16px; border-radius: 10px; border: 1px solid rgb(var(--gold-rgb) / .45); background: linear-gradient(100deg, rgb(var(--gold-rgb) / .14), transparent 70%); }
.sh-legbar > :first-child { flex: none; width: 52px; height: 52px; font-size: 40px; display: grid; place-items: center; }
.sh-legbar p { margin: 0; font-size: 14px; line-height: 1.45; }
.sh-legbar.vote { border-color: rgb(var(--torch-rgb) / .45); background: linear-gradient(100deg, rgb(var(--torch-rgb) / .12), transparent 70%); }

/* nedostupná vec + hlasovanie */
.sh-item.off { background: repeating-linear-gradient(-45deg, var(--panel), var(--panel) 10px, color-mix(in srgb, var(--panel) 92%, var(--muted)) 10px, color-mix(in srgb, var(--panel) 92%, var(--muted)) 20px); grid-template-rows: auto auto auto 1fr; }
.sh-item.off .ii { filter: grayscale(1) brightness(.85); opacity: .5; }
.sh-offmark { position: absolute; top: 8px; right: 8px; width: 34px; height: 34px; font-size: 24px; display: grid; place-items: center; }
.sh-offmark .gxi { width: 34px; height: 34px; }
.sh-offtx { font-size: 12px; font-weight: 600; color: var(--muted); }
.sh-vote { align-self: end; display: grid; gap: 5px; width: 100%; }
.sh-v-bar { height: 6px; border-radius: 4px; background: rgb(var(--deep-rgb) / .55); overflow: hidden; }
.sh-v-bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--torch), var(--gold)); transition: width .4s; }
.sh-vote button { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 7px 6px; border-radius: 7px; border: 1px solid rgb(var(--torch-rgb) / .55); background: rgb(var(--torch-rgb) / .12); color: var(--torch); font: 600 12.5px var(--f-body); cursor: pointer; transition: transform .1s, background .15s; }
.sh-vote button .gxi { width: 18px; height: 18px; }
.sh-vote button:hover { transform: translateY(-1px); background: rgb(var(--torch-rgb) / .2); }
.sh-vote button.on { background: color-mix(in srgb, var(--good) 14%, transparent); border-color: color-mix(in srgb, var(--good) 50%, transparent); color: var(--good); }
.sh-vote small { font-size: 10.5px; color: var(--muted); }

/* štatistiky obchodu – veľký graf nad obchodom */
.sh-stats { position: relative; border-radius: 18px; border: 1px solid rgb(var(--gold-rgb) / .35); background: linear-gradient(160deg, rgb(var(--panel-rgb) / .92), rgb(var(--night-rgb) / .88)); box-shadow: 0 20px 50px rgb(0 0 0 / .28); padding: 22px 24px !important; display: grid; gap: 18px; overflow: hidden; }
.sh-stats::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, transparent, var(--gold), var(--torch), var(--diamond), transparent); opacity: .8; }
.sh-st-h { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.sh-st-h > div:first-child { display: flex; align-items: center; gap: 14px; min-width: 0; }
.sh-st-h > div:first-child > .gxi, .sh-st-h > div:first-child > .gxe { width: 64px; height: 64px; font-size: 48px; flex: none; }
.sh-st-h h2 { font-size: clamp(28px, 3vw, 38px); line-height: 1; margin: 2px 0 4px; }
.sh-st-h .k { margin: 0; font-size: 13px; color: var(--muted); }
.sh-seg { display: inline-flex; padding: 4px; border-radius: 12px; background: rgb(var(--deep-rgb) / .5); border: 1px solid var(--line); }
.sh-seg button { border: 0; background: none; color: var(--muted); font: 600 14px var(--f-body); padding: 8px 14px; border-radius: 9px; cursor: pointer; transition: background .15s, color .15s; }
.sh-seg button.on { background: var(--btn-bg); color: var(--btn-ink); box-shadow: 0 4px 12px rgb(var(--torch-rgb) / .3); }
.sh-kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.sh-kpi { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: rgb(var(--glass-rgb) / .5); min-width: 0; }
.sh-kpi > .gxi, .sh-kpi > .gxe { width: 46px; height: 46px; font-size: 34px; flex: none; display: grid; place-items: center; }
.sh-kpi > div { display: grid; min-width: 0; }
.sh-kpi i { font-style: normal; font-size: 12px; color: var(--muted); }
.sh-kpi b { font: 600 clamp(20px, 1.9vw, 27px) var(--f-num); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sh-kpi small { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sh-kpi.gold b { color: var(--gold); }
.sh-kpi.cyan b { color: var(--diamond); }
.sh-st-body { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
.sh-chartw { display: grid; grid-template-rows: auto 1fr; gap: 8px; min-width: 0; align-self: stretch; }
.sh-leg { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); align-items: center; }
.sh-leg .k { margin-left: auto; }
.lb::before, .ll::before { content: ''; display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; background: linear-gradient(var(--gold), var(--torch)); }
.ll::before { height: 3px; border-radius: 2px; vertical-align: 3px; background: var(--diamond); }
.sh-chartbox { position: relative; min-height: clamp(200px, 22vw, 280px); max-height: 440px; }
.sh-chartbox .sh-chart { position: absolute; inset: 0; width: 100%; height: 100%; }
.sh-chart { width: 100%; height: 100%; display: block; overflow: visible; }
.sh-chart .g { stroke: var(--line); stroke-dasharray: 3 5; stroke-width: 1; vector-effect: non-scaling-stroke; }
.sh-chart text { fill: var(--muted); font: 11px var(--f-num); }
.sh-chart .ya { text-anchor: end; }
.sh-chart .xa { text-anchor: middle; }
.sh-chart .b { fill: url(#shB); opacity: .9; transform-box: fill-box; transform-origin: bottom; animation: shBar .6s cubic-bezier(.2,.9,.25,1.05) both; animation-delay: calc(var(--d) * 14ms); transition: opacity .15s; }
.sh-chart .b.hv { opacity: 1; filter: brightness(1.25); }
.sh-chart .b1 { stop-color: var(--gold); } .sh-chart .b2 { stop-color: var(--torch); stop-opacity: .55; }
.sh-chart .s1 { stop-color: var(--diamond); stop-opacity: .3; } .sh-chart .s2 { stop-color: var(--diamond); stop-opacity: 0; }
.sh-chart .a { fill: url(#shA); }
.sh-chart .l { fill: none; stroke: var(--diamond); stroke-width: 2.5; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.sh-chart .p { fill: var(--diamond); }
.sh-chart .h { fill: transparent; cursor: crosshair; }
@keyframes shBar { from { transform: scaleY(0); } }
.sh-tip { position: absolute; left: 0; top: 0; z-index: 3; display: grid; gap: 2px; padding: 9px 12px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line); box-shadow: 0 12px 28px rgb(0 0 0 / .35); font-size: 12.5px; pointer-events: none; white-space: nowrap; }
.sh-tip i { font-style: normal; color: var(--muted); font-size: 11.5px; }
.sh-tops { display: grid; gap: 14px; }
.sh-tops h3 { display: flex; align-items: center; gap: 8px; font-size: 15px; margin: 0 0 6px; }
.sh-tops h3 .gxi { width: 24px; height: 24px; }
.sh-top { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.sh-top li { position: relative; display: grid; grid-template-columns: 18px 30px minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: 8px; align-items: center; padding: 5px 8px; border-radius: 8px; overflow: hidden; background: rgb(var(--glass-rgb) / .45); }
.sh-top li::before { content: ''; position: absolute; inset: 0 auto 0 0; width: var(--w); background: linear-gradient(90deg, rgb(var(--gold-rgb) / .16), transparent); pointer-events: none; }
.sh-top .rk { grid-row: span 2; font: 600 13px var(--f-num); color: var(--muted); text-align: center; }
.sh-top .ii { grid-row: span 2; }
.sh-top .nm { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sh-top b { font: 600 13px var(--f-num); text-align: right; color: var(--gold); }
.sh-top i { grid-column: 3 / -1; font-style: normal; font-size: 11px; color: var(--muted); }
.sh-top-e { font-size: 13px; color: var(--muted); margin: 0; }
.sh-st-na { display: flex; align-items: center; gap: 10px; margin: 0; color: var(--muted); }
.sh-st-na .gxi { width: 40px; height: 40px; }
.sh-st-skel { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.sh-st-skel span { height: 72px; border-radius: 12px; background: linear-gradient(90deg, rgb(var(--glass-rgb) / .4), rgb(var(--glass-rgb) / .8), rgb(var(--glass-rgb) / .4)); background-size: 200% 100%; animation: shSk 1.2s linear infinite; }
@keyframes shSk { to { background-position: -200% 0; } }
:root[data-theme="light"] .sh-stats { background: linear-gradient(160deg, rgb(255 255 255 / .92), rgb(238 242 252 / .9)); box-shadow: 0 20px 50px rgb(60 70 120 / .14); }
.sh-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 10px; }

/* karta tovaru */
.sh-item { position: relative; display: grid; grid-template-rows: auto auto auto 1fr auto auto; justify-items: center; text-align: center; gap: 5px; padding: 14px 10px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); transition: border-color .15s, transform .15s, box-shadow .15s; min-width: 0; }
.sh-item:hover { border-color: rgb(var(--torch-rgb) / .55); transform: translateY(-2px); box-shadow: 0 10px 22px rgb(0 0 0 / .18); }
.sh-item.in { border-color: var(--torch); box-shadow: inset 0 0 0 1px var(--torch); }
.sh-item.leg { background: linear-gradient(170deg, rgb(var(--gold-rgb) / .16), var(--panel) 55%); border-color: rgb(var(--gold-rgb) / .5); }
.sh-item.lock .ii, .sh-item.out .ii { filter: grayscale(1); opacity: .45; }
.sh-item.lock .sh-price, .sh-item.out .sh-price { opacity: .55; }
.sh-incart { position: absolute; top: 7px; right: 7px; min-width: 24px; padding: 2px 7px; border-radius: 12px; background: var(--btn-bg); color: var(--btn-ink); font: 600 12px var(--f-num); }
.ii { position: relative; width: 56px; height: 56px; display: grid; place-items: center; flex: none; }
.ii img { width: 100%; height: 100%; object-fit: contain; image-rendering: pixelated; filter: drop-shadow(0 3px 4px rgb(0 0 0 / .3)); }
.ii.miss img { display: none; }
.ii.miss::after { content: attr(data-f); width: 78%; height: 78%; display: grid; place-items: center; border-radius: 8px; font: 22px var(--f-display); color: #fff; background: linear-gradient(145deg, hsl(var(--h) 55% 52%), hsl(var(--h) 60% 32%)); box-shadow: inset 0 -3px 0 rgb(0 0 0 / .25), inset 0 2px 0 rgb(255 255 255 / .2); }
.ii.sm { width: 30px; height: 30px; }
.ii.sm.miss::after { font-size: 13px; border-radius: 5px; }
.sh-i-name { font-size: 14px; font-weight: 600; line-height: 1.2; overflow-wrap: anywhere; }
.sh-i-tags { display: flex; gap: 4px; flex-wrap: wrap; justify-content: center; min-height: 0; }
.tg { font-size: 10.5px; font-weight: 600; padding: 1px 6px; border-radius: 10px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.tg.web { color: var(--diamond); border-color: color-mix(in srgb, var(--diamond) 45%, transparent); }
.tg.sea { color: var(--good); border-color: color-mix(in srgb, var(--good) 45%, transparent); }
.tg.leg { color: var(--gold); border-color: rgb(var(--gold-rgb) / .5); }
.tg.t { color: var(--torch); border-color: rgb(var(--torch-rgb) / .45); }
.sh-price { align-self: end; display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 2px 5px; }
.sh-price b { font: 600 17px var(--f-num); color: var(--gold); font-variant-numeric: tabular-nums; }
.sh-price i { font-style: normal; font-size: 11.5px; color: var(--muted); }
.sh-price span { flex-basis: 100%; font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.sh-sellp { font-size: 11px; color: var(--good); }
.sh-sellp.no { color: var(--muted); opacity: .7; }
.sh-add { display: flex; gap: 4px; width: 100%; }
.sh-add button { flex: 1; font: 600 13px var(--f-body); padding: 6px 0; border-radius: 6px; border: 1px solid rgb(var(--torch-rgb) / .5); background: rgb(var(--torch-rgb) / .1); color: var(--torch); cursor: pointer; transition: background .12s, color .12s, transform .1s; }
.sh-add button:first-child { background: var(--btn-bg); border-color: var(--btn-bg); color: var(--btn-ink); }
.sh-add button:hover { transform: translateY(-1px); filter: brightness(1.08); }
.sh-add button:active { transform: scale(.96); }
.sh-add button:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.sh-lockline, .sh-out { width: 100%; font-size: 12px; font-weight: 600; padding: 6px 4px; border-radius: 6px; display: flex; justify-content: center; align-items: center; gap: 5px; }
.sh-lockline { color: var(--muted); background: var(--glass); border: 1px dashed var(--line); }
.sh-lockline .gxi { width: 16px; height: 16px; }
.sh-out { color: var(--bad); background: color-mix(in srgb, var(--bad) 10%, transparent); }
.sh-more { justify-self: center; }

/* košík a výkupný panel */
.sh-cart { display: grid; gap: 12px; padding: 14px; align-content: start; }
.sh-ch { display: flex; align-items: center; gap: 10px; }
.sh-ch > :first-child { width: 40px; height: 40px; font-size: 30px; flex: none; display: grid; place-items: center; }
.sh-ch > :first-child.gxi { width: 40px; height: 40px; }
.sh-ch div { display: grid; min-width: 0; flex: 1; }
.sh-ch b { font: 24px var(--f-display); line-height: 1; }
.sh-ch i { font-style: normal; font-size: 12.5px; color: var(--muted); }
.sh-clear { border: 0; background: none; color: var(--muted); font: 13px var(--f-body); cursor: pointer; text-decoration: underline; }
.sh-clear:hover { color: var(--bad); }
.sh-cart-x { display: none; }
.sh-lines { display: grid; gap: 6px; }
.sh-line { display: grid; grid-template-columns: 30px minmax(0, 1fr) 64px auto 22px; gap: 6px; align-items: center; padding: 5px 6px; border-radius: 8px; background: var(--glass); border: 1px solid var(--line); }
.sh-line.pop { animation: shPop .35s ease; }
@keyframes shPop { 40% { transform: scale(1.03); border-color: var(--torch); } }
.sh-l-n { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sh-line input { padding: 4px 6px; font: 13px var(--f-num); text-align: right; }
.sh-line b { font: 600 13px var(--f-num); font-variant-numeric: tabular-nums; white-space: nowrap; }
.sh-x { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 13px; padding: 2px; border-radius: 4px; }
.sh-x:hover { color: var(--bad); background: color-mix(in srgb, var(--bad) 12%, transparent); }
.sh-sum { display: grid; gap: 5px; padding-top: 10px; border-top: 1px dashed var(--line); font-size: 13.5px; }
.sh-sum > div { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); }
.sh-sum b { color: var(--text); font-family: var(--f-num); font-variant-numeric: tabular-nums; white-space: nowrap; }
.sh-sum .tot { font-size: 17px; color: var(--text); }
.sh-sum .tot b { color: var(--gold); font-size: 20px; }
.sh-sum .neg b { color: var(--bad); }
.sh-go { width: 100%; font-size: 22px; padding: 12px; }
.sh-go:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.sh-note { margin: 0; font-size: 12.5px; line-height: 1.45; color: var(--muted); }
.sh-note.warn { color: var(--torch); padding: 8px 10px; border-radius: 8px; background: rgb(var(--torch-rgb) / .08); border: 1px solid rgb(var(--torch-rgb) / .3); }
.sh-note.big { font-size: 14.5px; color: var(--text); }
code { font-family: var(--f-mono); font-size: .92em; padding: 1px 5px; border-radius: 4px; background: rgb(var(--deep-rgb) / .55); color: var(--diamond); }
.sh-empty { display: grid; justify-items: center; gap: 10px; text-align: center; padding: 26px 14px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.sh-empty > :first-child { width: 72px; height: 72px; font-size: 52px; display: grid; place-items: center; opacity: .85; }
.sh-empty p { margin: 0; max-width: 520px; }
.sh-empty b { color: var(--text); }
.sh-empty.wide { grid-column: 1 / -1; padding: 50px 20px; border: 1px dashed var(--line); border-radius: 12px; background: var(--glass); }
.sh-empty .k { font-size: 12px; }

.sh-pay { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sh-pay button { display: grid; justify-items: center; gap: 2px; padding: 10px 6px; border-radius: 10px; border: 1px solid var(--line); background: var(--glass); color: var(--text); cursor: pointer; font: 14px var(--f-body); transition: border-color .15s, box-shadow .15s; }
.sh-pay button > :first-child { width: 30px; height: 30px; font-size: 24px; }
.sh-pay button i { font-style: normal; font-size: 11.5px; color: var(--muted); }
.sh-pay button.on { border-color: var(--torch); box-shadow: inset 0 0 0 1px var(--torch); background: rgb(var(--torch-rgb) / .1); }

/* výkupné riadky */
.sh-slist { display: grid; gap: 8px; }
.sh-srow { display: grid; grid-template-columns: 48px minmax(0, 1.3fr) 90px minmax(220px, 1.2fr) 96px; gap: 12px; align-items: center; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); }
.sh-srow .ii { width: 44px; height: 44px; }
.sh-srow.in { border-color: var(--good); box-shadow: inset 3px 0 0 var(--good); }
.sh-srow.dis { opacity: .55; }
.sh-s-n { display: grid; min-width: 0; }
.sh-s-n b { font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sh-s-n i { font-style: normal; font-size: 12px; color: var(--muted); }
.sh-s-n .dn { color: var(--bad); }
.sh-s-p { font: 600 15px var(--f-num); color: var(--good); text-align: right; font-variant-numeric: tabular-nums; }
.sh-s-p i { font-style: normal; font-weight: 400; font-size: 11px; color: var(--muted); margin-left: 3px; }
.sh-s-q { display: grid; grid-template-columns: minmax(0, 1fr) 70px auto; gap: 8px; align-items: center; }
.sh-s-q input[type=range] { accent-color: var(--good); padding: 0; border: 0; background: none; }
.sh-s-q input[type=number] { padding: 5px 6px; font: 13px var(--f-num); text-align: right; }
.sh-s-q button { font: 600 12px var(--f-body); padding: 6px 9px; border-radius: 6px; border: 1px solid var(--line); background: var(--glass); color: var(--text); cursor: pointer; }
.sh-s-q button:hover { border-color: var(--good); color: var(--good); }
.sh-s-lim { font-size: 12px; color: var(--muted); }
.sh-s-t { text-align: right; font: 600 15px var(--f-num); font-variant-numeric: tabular-nums; }

/* doručovací box */
.sh-boxv { display: grid; gap: 16px; }
.sh-boxl { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.sh-bi { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--glass); }
.sh-bi .ii { width: 38px; height: 38px; }
.sh-bi b { font-family: var(--f-num); color: var(--gold); }
.sh-bi span { font-size: 13.5px; }

.sh-fab { display: none; }

/* svetlý režim */
:root[data-theme="light"] .sh-item { box-shadow: 0 1px 0 rgb(20 28 48 / .04); }
:root[data-theme="light"] .sh-item:hover { box-shadow: 0 10px 22px rgb(60 70 120 / .14); }
:root[data-theme="light"] code { background: #eef1fb; color: #0a6f78; }
:root[data-theme="light"] .sh-cnt { color: #fff; }

/* menšie obrazovky */
@media (max-width: 1400px) {
  .sh-tier { grid-template-columns: 52px minmax(0, 1fr); padding: 12px; }
  .sh-t-ic, .sh-t-ic .gxi { width: 52px; height: 52px; font-size: 38px; }
  .sh-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sh-st-body { grid-template-columns: minmax(0, 1fr) 300px; }
  .sh-grid { grid-template-columns: 220px minmax(0, 1fr) 310px; }
}
@media (max-width: 1180px) { .sh-tiers { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1100px) {
  .sh-st-body { grid-template-columns: 1fr; }
  .sh-tops { grid-template-columns: 1fr 1fr; }
  .sh-grid, .sh-grid.sell { grid-template-columns: minmax(0, 1fr); }
  .sh-side { position: static; max-height: none; grid-template-columns: 1fr minmax(220px, 300px); align-items: end; overflow: visible; }
  .sh-side input[type=search] { grid-column: 1 / -1; }
  .sh-cats { grid-column: 1 / -1; display: flex; overflow-x: auto; gap: 6px; padding-bottom: 4px; scrollbar-width: thin; }
  .sh-cat { grid-template-columns: 22px auto auto; white-space: nowrap; border: 1px solid var(--line); background: var(--glass); }
  .sh-grid:not(.sell) .sh-cart { position: fixed; inset: auto 0 0 0; top: auto; z-index: 30; max-height: 78vh; border-radius: 16px 16px 0 0; transform: translateY(105%); transition: transform .28s cubic-bezier(.2,.9,.25,1); box-shadow: 0 -18px 40px rgb(0 0 0 / .35); }
  .sh-grid:not(.sell) .sh-cart.open { transform: none; }
  .sh-cart-x { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: var(--panel); color: var(--muted); cursor: pointer; }
  .sh-grid.sell .sh-cart { position: static; max-height: none; order: -1; }
  .sh-fab { display: inline-flex; align-items: center; gap: 8px; position: fixed; right: 16px; bottom: 16px; z-index: 25; padding: 12px 18px; border-radius: 30px; border: 0; background: var(--btn-bg); color: var(--btn-ink); font: 600 15px var(--f-body); box-shadow: 0 10px 26px rgb(0 0 0 / .35); cursor: pointer; }
  .sh-fab b { min-width: 22px; padding: 1px 6px; border-radius: 10px; background: rgb(0 0 0 / .2); }
  .sh-fab.empty { opacity: .8; }
  .sh-srow { grid-template-columns: 44px minmax(0, 1fr) auto; }
  .sh-s-q { grid-column: 1 / -1; }
  .sh-s-t { grid-column: 3; grid-row: 1; display: none; }
}
@media (max-width: 700px) {
  .sh-stats { padding: 16px 14px !important; }
  .sh-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .sh-kpi { padding: 10px; gap: 8px; } .sh-kpi > .gxi, .sh-kpi > .gxe { width: 34px; height: 34px; }
  .sh-tops { grid-template-columns: 1fr; }
  .sh-seg { width: 100%; } .sh-seg button { flex: 1; padding: 8px 6px; }
  .sh-side { grid-template-columns: 1fr; }
  .sh-ihead .sh-pager { margin-left: 0; width: 100%; justify-content: flex-start; }
  .sh-tier { min-height: 0; }
  .sh-chips .fm-chip:first-child { flex-basis: 100%; }
  .sh-st-h > div:first-child > .gxi, .sh-st-h > div:first-child > .gxe { display: none; }
  .sh-chartbox { min-height: 220px; }
  .sh-head { position: relative; padding-right: 50px; gap: 12px; }
  .sh-title { flex-basis: 180px; }
  .sh-title .k { font-size: 13px; }
  .sh-tiers { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: -16px; padding: 2px 16px 6px; }
  .sh-tiers::-webkit-scrollbar { display: none; }
  .sh-tier { flex: 0 0 min(250px, 74vw); scroll-snap-align: start; }
  .sh-modes { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -16px; padding-inline: 16px; }
  .sh-modes button { white-space: nowrap; flex: none; }
  .sh-fab.empty { display: none; }
  .tk-close { position: absolute; top: 0; right: 0; }
  .sh-merchant { width: 60px; height: 60px; font-size: 46px; }
  .sh-chips { margin-left: 0; width: 100%; }
  .fm-chip { flex: 1 1 140px; }
  .sh-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .sh-item { padding: 12px 8px 8px; }
  .sh-modes button { font-size: 14px; padding: 7px 10px; }
}

/* potvrdenie nákupu */
.sh-confirm .kb-modal-in { width: min(460px, 100%); gap: 12px; text-align: center; }
.sh-cf-ic { justify-self: center; width: 76px; height: 76px; font-size: 52px; display: grid; place-items: center; }
.sh-cf-ic .gxi { width: 76px; height: 76px; }
.sh-cf-ic.ok, .sh-cf-ic.bad { width: 64px; height: 64px; border-radius: 50%; font: 700 34px var(--f-body); color: #fff; animation: shCfPop .45s cubic-bezier(.2,1.6,.4,1); }
.sh-cf-ic.ok { background: var(--good); box-shadow: 0 0 0 8px color-mix(in srgb, var(--good) 20%, transparent); }
.sh-cf-ic.bad { background: var(--bad); box-shadow: 0 0 0 8px color-mix(in srgb, var(--bad) 20%, transparent); }
@keyframes shCfPop { from { transform: scale(.3); opacity: 0; } }
.sh-cf-sum { color: var(--gold); font-size: 1.15em; white-space: nowrap; }
.sh-cf-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; text-align: left; }
.sh-cf-list li { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 5px 8px; border-radius: 8px; background: var(--glass); font-size: 13px; }
.sh-cf-list li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sh-cf-list li b { font: 600 13px var(--f-num); white-space: nowrap; }
.sh-cf-list li.more { display: block; text-align: center; color: var(--muted); }
.sh-cf-note { margin: 0; font-size: 12.5px; color: var(--muted); }
.sh-cf-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 4px; }
.sh-cf-btns.one { grid-template-columns: 1fr; }
.sh-cf-btns button { font: 22px var(--f-display); padding: 11px 12px; border-radius: 8px; border: 0; color: #fff; cursor: pointer; transition: transform .12s, filter .12s, box-shadow .15s; }
.sh-cf-btns button:hover { transform: translateY(-1px); filter: brightness(1.08); }
.sh-cf-btns button:active { transform: translateY(1px); }
.sh-cf-yes { background: #1fa34a; box-shadow: 0 8px 18px rgb(31 163 74 / .35), inset 0 -3px 0 rgb(0 0 0 / .2); }
.sh-cf-no { background: #d93a3a; box-shadow: 0 8px 18px rgb(217 58 58 / .3), inset 0 -3px 0 rgb(0 0 0 / .2); }
.sh-cf-btns button:focus-visible { outline: 3px solid var(--text); outline-offset: 2px; }
.sh-cf-wait { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 12px; color: var(--muted); font-weight: 600; }
.sh-cf-wait span { width: 20px; height: 20px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--good); animation: shSpin .7s linear infinite; }
@keyframes shSpin { to { transform: rotate(360deg); } }
.sh-confirm .kb-modal-in.done { border-top-color: var(--good); }
.sh-confirm .kb-modal-in.fail { border-top-color: var(--bad); }
