/* StackTech salicējs (kategorija/stacktech.html, lapas sākums) un bloks "Der kopā ar šo" (StackTech produktu lapas).
   Tikai vietnes tokeni (system.css + head.css.html): --bg, --surface, --ink, --muted, --p-accent, --line, --s-*, fonti. */

/* ---------- salicējs: lapas sākums ---------- */
.st { --st-stage-h: clamp(540px, calc(100svh - var(--nav) - 2 * var(--s-4)), 860px); --st-glass: rgb(250 249 246 / .6); }
/* system.css sadaļām liek viena ekrāna augstumu; salicējs aug pēc satura */
.st.st--hero { height: auto; min-height: 0; padding: calc(var(--nav) + var(--s-4)) 0 var(--s-7); background: var(--bg); }
/* system.css liek main > section > .wrap display:flex; šeit vajag režģi */
.st.st--hero > .wrap.st__grid { display: grid; height: auto; }
/* vietnes 12 kolonnu līnijas: kaudze 7, virsraksts un saraksts 5 */
.st__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: auto 1fr; column-gap: var(--gutter); row-gap: var(--s-5); align-items: start; scroll-margin-top: calc(var(--nav) + var(--s-4)); }
.st__head { grid-column: 8 / 13; grid-row: 1; padding-top: var(--s-3); }
.st__head .tb-crumbs { color: var(--muted); }
.st__head .tb-crumbs a { color: inherit; }
.st__h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(48px, 4.6vw, 80px); line-height: .9; margin: var(--s-3) 0 var(--s-4); }
.st__lead { font-size: 20px; line-height: 1.45; max-width: 34ch; }
.st__small { margin-top: var(--s-3); font-size: 14px; line-height: 1.5; color: var(--muted); max-width: 46ch; }
.st__all { white-space: nowrap; }
.st__noscript { margin-top: var(--s-4); padding: var(--s-4); background: var(--surface); }
/* vārdu "izbraukšana" (tb-motion.js) apgriež garumzīmes uz lielajiem burtiem (Ā, Ī, Š): vieta augšā */
:is(.st, .st-fit, .st-dlg) :is(h1, h2) .tb-lift { padding-top: .14em; margin-top: -.14em; }
.st:not(.st--on) .st__stage, .st:not(.st--on) .st__panel { display: none; }
.st:not(.st--on) .st__head { grid-column: 1 / -1; }

/* kaudzes laukums: gaišs, ar gaismu aiz kaudzes un grīdu; pielīp, kamēr ritina sarakstu */
.st__stage { grid-column: 1 / 8; grid-row: 1 / 3; position: sticky; top: calc(var(--nav) + var(--s-4)); height: var(--st-stage-h); display: flex; flex-direction: column; padding: var(--s-4) var(--s-5) var(--s-4); overflow: hidden;
  background: radial-gradient(60% 55% at 50% 64%, rgb(255 255 255 / .9), rgb(255 255 255 / 0) 72%), linear-gradient(to bottom, var(--surface), color-mix(in oklab, var(--surface) 70%, #fff)); }
.st__stage-top { display: flex; justify-content: space-between; align-items: center; gap: var(--s-4); flex: none; }
.st__reset { background: none; border: 0; padding: var(--s-2) 0; min-height: 44px; font: 500 12px/1 var(--font-text); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); cursor: pointer; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line-strong); transition: color var(--dur) var(--ease); }
.st__reset:hover { color: var(--ink); text-decoration-color: currentColor; }
.st__pile { position: relative; flex: 1; min-height: 0; display: flex; align-items: flex-end; justify-content: center; }
.st__pile.is-narrow { justify-content: flex-start; padding-left: var(--s-1); }
.st__col { position: relative; display: flex; flex-direction: column; align-items: flex-start; }
/* ēna uz grīdas zem kaudzes */
.st__col::after { content: ""; position: absolute; left: -8%; right: -8%; bottom: -12px; height: 26px; border-radius: 50%; background: radial-gradient(closest-side, rgb(28 25 22 / .42), rgb(28 25 22 / 0)); pointer-events: none; }
.st__floor { flex: none; height: 22px; margin: 0 calc(-1 * var(--s-5)); border-top: 1px solid color-mix(in oklab, var(--ink) 14%, transparent); background: linear-gradient(to bottom, color-mix(in oklab, var(--surface) 88%, var(--ink)), var(--surface)); }

/* daļa kaudzē: bilde taisni no priekšas; ēna uz zemākās daļas parāda savienojumu */
.st-l { position: relative; display: block; flex: none; padding: 0; border: 0; background: none; cursor: pointer; line-height: 0; transition: transform 280ms var(--ease); }
.st-l img { position: relative; display: block; width: 100%; height: auto; pointer-events: none; transition: filter var(--dur) var(--ease); }
.st-l::before { content: ""; position: absolute; left: 2%; right: 2%; bottom: -8px; height: 16px; border-radius: 50%; background: radial-gradient(closest-side, rgb(0 0 0 / .6), rgb(0 0 0 / 0)); z-index: -1; pointer-events: none; transition: transform 280ms var(--ease), opacity 280ms var(--ease); }
.st-l:hover img { filter: brightness(1.12); }
.st-l:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
/* kursors uz daļas: visas augstākās daļas paceļas, redzama savienojuma vieta */
.st-l.is-lift, .st-ghost.is-lift, .st-swap.is-lift, .st-halves.is-lift, .st__cap.is-lift { transform: translateY(-12px); }
.st-l.is-lift::before { transform: translateY(12px) scaleX(.94); opacity: .55; }
.st-l__tag { position: absolute; transform: translateY(-50%); display: inline-flex; align-items: center; gap: var(--s-2); padding: 6px 8px; background: var(--bg); border: 1px solid var(--line); font: 500 11px/1.2 var(--font-text); letter-spacing: .06em; color: var(--ink); white-space: nowrap; transition: border-color var(--dur) var(--ease); }
.st-l__tag::before { content: ""; position: absolute; right: 100%; top: 50%; width: var(--s-3); border-top: 1px solid var(--line-strong); }
/* kreisās puses birka: pa kreisi no kaudzes; telefonā tur nav vietas, tāpēc tikai aplītis ar × */
.st-l__tag.is-left::before { right: auto; left: 100%; }
.st-l__tag.is-x { top: 0; left: 0; transform: translate(-30%, -30%); padding: 0; width: 22px; height: 22px; justify-content: center; border: 0; border-radius: 50%; background: var(--ink); }
.st-l__tag.is-x::before { content: none; }
.st-l__tag.is-x .st-l__x, .st-l:is(:hover, :focus-visible) .st-l__tag.is-x .st-l__x { color: var(--bg); }
/* puskastes uz pilna platuma daļas: kreisā un labā puse */
.st-halves { position: relative; flex: none; display: flex; align-items: flex-end; width: 100%; transition: transform 280ms var(--ease); }
.st-halves__c { flex: none; display: flex; flex-direction: column; align-items: flex-start; width: 50%; }
.st-swap { align-self: center; flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 44px; height: 44px; margin-bottom: 4px; padding: 0 var(--s-2); border: 0; background: none; font: 600 11px/1 var(--font-text); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); white-space: nowrap; cursor: pointer; transition: color var(--dur) var(--ease), transform 280ms var(--ease); }
.st-swap:hover { color: var(--ink); }
.st-swap:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
.st-swap svg { flex: none; width: 16px; height: 14px; }
.st-swap.is-mini span, .st-ghost.is-mini .st-ghost__t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); padding: 0; }
.st-l__x, .st-l__act { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); }
.st-l__x svg, .st-l__act svg { width: 12px; height: 12px; flex: none; }
.st-l__act span { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.st-l:hover .st-l__tag, .st-l:focus-visible .st-l__tag { border-color: var(--ink); }
.st-l:hover :is(.st-l__x, .st-l__act), .st-l:focus-visible :is(.st-l__x, .st-l__act) { color: var(--ink); }
/* jauna daļa nolaižas un "noklikšķ": zemākā daļa iegrimst, savienojumā dzeltena līnija */
.st-l.is-new { animation: st-drop 600ms cubic-bezier(.22, .9, .32, 1) both; }
.st-l.is-new::before { animation: st-shade 600ms var(--ease) both; }
.st-l.is-hit { animation: st-hit 280ms 380ms var(--ease) both; }
.st-l__seam { position: absolute; left: 3%; right: 3%; bottom: 0; height: 3px; background: var(--p-accent); pointer-events: none; animation: st-seam 1000ms 400ms var(--ease) both; }
@keyframes st-drop { 0% { transform: translateY(-140px); opacity: 0; } 35% { opacity: 1; } 68% { transform: translateY(4px); } 84% { transform: translateY(-2px); } 100% { transform: none; } }
@keyframes st-shade { 0%, 40% { opacity: 0; transform: scaleX(.4); } 70% { opacity: 1; transform: none; } }
@keyframes st-hit { 50% { transform: translateY(3px); } }
@keyframes st-seam { 0% { transform: scaleX(0); opacity: 1; } 35% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }

/* "+" vieta virs augšējās daļas */
.st-ghost { position: relative; display: grid; justify-items: center; align-content: center; gap: var(--s-2); flex: none; padding: 0; border: 2px dashed color-mix(in oklab, var(--ink) 30%, transparent); border-radius: 12px; background: rgb(255 255 255 / .5); color: var(--ink); cursor: pointer; transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease), transform 280ms var(--ease); }
.st-ghost.is-small { grid-auto-flow: column; justify-content: center; align-items: center; gap: var(--s-2); padding: 0 var(--s-2); }
.st-ghost.is-small .st-ghost__t { padding: 0; font-size: 11px; letter-spacing: .08em; line-height: 1.15; text-align: left; }
.st-ghost.is-half .st-ghost__t { font-size: 11px; letter-spacing: .05em; padding: 0; }
.st-ghost.is-half.is-small { gap: 6px; padding: 0 4px; }
.st-ghost.is-half.is-small .st-ghost__plus { width: 28px; height: 28px; }
.st-ghost:hover { border-color: var(--ink); background: rgb(255 255 255 / .85); }
.st-ghost:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.st-ghost__plus, .st__plus { position: relative; flex: none; display: block; width: 52px; height: 52px; border-radius: 50%; background: var(--p-accent); box-shadow: 0 8px 20px rgb(255 176 0 / .42); transition: transform 320ms var(--ease); }
.st-ghost.is-small .st-ghost__plus { width: 34px; height: 34px; }
.st-ghost__plus::before, .st-ghost__plus::after, .st__plus::before, .st__plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 40%; height: 2.5px; border-radius: 2px; background: var(--p-accent-ink); transform: translate(-50%, -50%); }
.st-ghost__plus::after, .st__plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.st-ghost:hover .st-ghost__plus { transform: rotate(90deg) scale(1.06); }
.st-ghost:active .st-ghost__plus { transform: scale(.92); transition-duration: 90ms; }
.st-ghost__t { font: 600 12px/1.2 var(--font-text); letter-spacing: .12em; text-transform: uppercase; text-align: center; padding: 0 var(--s-2); }
.st-ghost__plus { animation: st-pulse 2400ms 900ms 2 var(--ease); }
/* pēc kastes noņemšanas "+ Pievienot kasti" uzreiz pamirgo */
.st-ghost.is-pulse { border-color: var(--p-accent); }
.st-ghost.is-pulse .st-ghost__plus { animation: st-pulse 1100ms 3 var(--ease); }
@keyframes st-pulse { 0% { box-shadow: 0 8px 20px rgb(255 176 0 / .42), 0 0 0 0 rgb(255 176 0 / .5); } 60% { box-shadow: 0 8px 20px rgb(255 176 0 / .42), 0 0 0 16px rgb(255 176 0 / 0); } 100% { box-shadow: 0 8px 20px rgb(255 176 0 / .42), 0 0 0 0 rgb(255 176 0 / 0); } }
.st__cap { align-self: center; width: max-content; max-width: 280px; margin: 0 0 var(--s-3); padding: var(--s-2) var(--s-3); border: 1px dashed var(--line-strong); border-radius: 10px; font-size: 13px; line-height: 1.4; color: var(--muted); text-align: center; transition: transform 280ms var(--ease); }

/* piederumi zem kaudzes */
.st__acc { flex: none; display: flex; align-items: center; flex-wrap: wrap; gap: var(--s-2); padding-top: var(--s-3); }
.st__acc-list { display: contents; }
.st-x { position: relative; flex: 0 1 calc(50% - var(--s-2) / 2); min-width: 0; display: grid; grid-template-columns: 46% minmax(0, 1fr); align-items: center; gap: var(--s-3); height: 112px; padding: var(--s-2) var(--s-4) var(--s-2) var(--s-2); background: #fff; border: 1px solid var(--line); border-radius: 10px; text-align: left; color: var(--ink); cursor: pointer; transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease); }
.st-x img { width: 100%; height: 94px; object-fit: contain; }
.st-x__t { display: grid; gap: 4px; min-width: 0; }
.st-x__n { font: 500 13px/1.3 var(--font-text); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; overflow-wrap: break-word; hyphens: auto; }
.st-x__sku { font: 400 11px/1.2 var(--font-text); letter-spacing: .04em; color: var(--muted); }
.st-x.is-new { animation: st-acc 1200ms var(--ease) both; }
@keyframes st-acc { 0% { opacity: 0; transform: translateY(12px); } 30%, 70% { opacity: 1; transform: none; border-color: var(--p-accent); box-shadow: 0 0 0 1px var(--p-accent); } }
.st-x__x { position: absolute; top: -7px; right: -7px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: var(--bg); }
.st-x__x svg { width: 9px; height: 9px; }
.st-x:hover { border-color: var(--ink); transform: translateY(-2px); }
.st-x:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.st__acc-add { display: inline-flex; align-items: center; gap: var(--s-2); min-height: 44px; padding: 0 var(--s-4) 0 6px; border: 1px dashed color-mix(in oklab, var(--ink) 30%, transparent); border-radius: 999px; background: rgb(255 255 255 / .55); color: var(--ink); font: 600 11px/1 var(--font-text); letter-spacing: .12em; text-transform: uppercase; cursor: pointer; transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease); }
.st__acc-add .st__plus { width: 30px; height: 30px; box-shadow: none; }
.st__acc-add:hover { border-color: var(--ink); background: rgb(255 255 255 / .9); }
.st__acc-add:hover .st__plus { transform: rotate(90deg); }
.st__acc-add:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* ziņa pēc noņemšanas, ar "Atsaukt" */
/* ziņa tikai par automātiski noņemtām daļām: rindā virs kaudzes (neko neaizsedz), bez pogas */
.st__note { flex: none; margin: var(--s-1) 0 0; padding: var(--s-2) var(--s-3); background: var(--bg); border-left: 3px solid var(--p-accent); font-size: 13px; line-height: 1.4; color: var(--ink); }
.st__note[hidden] { display: none; }

/* saraksts un summa */
.st__panel { grid-column: 8 / 13; grid-row: 2; }
.st__list { border-top: 1px solid var(--line-strong); padding-top: var(--s-3); scroll-margin-top: calc(var(--nav) + var(--s-4)); }
.st__list:focus:not(:focus-visible) { outline: none; }
.st__list:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.st__list-h { font: 500 13px/1.4 var(--font-text); letter-spacing: .12em; text-transform: uppercase; margin-bottom: var(--s-2); }
.st__setbox { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-3); padding: var(--s-3) var(--s-4); background: var(--surface); margin: var(--s-2) 0 var(--s-3); }
.st__setbox p { font-size: 14px; max-width: 52ch; flex: 1 1 260px; }
.st__rows { list-style: none; margin: 0; padding: 0; }
.st-li { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; align-items: center; gap: var(--s-1) var(--s-3); padding: var(--s-3) 0; border-bottom: 1px solid var(--line); }
.st-li img { grid-row: span 2; }
.st-li__go { grid-column: 2 / 4; }
.st-li img { width: 56px; height: 56px; object-fit: contain; }
.st-li__t { display: grid; gap: 2px; min-width: 0; }
.st-li__t a { color: var(--ink); font-weight: 500; font-size: 14px; line-height: 1.35; text-decoration: none; }
.st-li__t a:hover { text-decoration: underline; text-underline-offset: 3px; }
.st-li__sku { font-size: 12px; color: var(--muted); }
.st-li__pr { font-weight: 500; white-space: nowrap; font-variant-numeric: tabular-nums; }
.st-li__pr.is-req { font-weight: 400; font-size: 12px; color: var(--muted); white-space: normal; text-align: right; max-width: 18ch; }
/* gara poga šaurā ekrānā pāriet otrā rindā, nevis iziet ārpus malas */
:is(.st-li__go, .st__total) .btn { max-width: 100%; height: auto; min-height: var(--btn-h-sm); padding-block: 8px; white-space: normal; line-height: 1.25; }
.st__listempty { color: var(--muted); padding: var(--s-3) 0; }
.st__listempty[hidden] { display: none; }
.st__total { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-3) var(--s-4); margin-top: var(--s-4); padding: var(--s-4) var(--s-5); background: var(--p-inv-bg); color: var(--p-inv-ink); }
.st__sumbox { display: grid; gap: var(--s-1); }
.st__total .t-label, .st__bar .t-label { color: var(--p-inv-muted); }
.st__sum { font: var(--display-weight, 400) 48px/1 var(--font-display); letter-spacing: .01em; color: var(--p-accent); font-variant-numeric: tabular-nums; }
.st__total .btn--primary, .st__bar .btn--primary { background: var(--p-accent); color: var(--p-accent-ink); }
.st__total .btn:focus-visible, .st__bar .btn:focus-visible { outline: 2px solid var(--p-inv-ink); outline-offset: 3px; }
[data-st-copy][aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.st__req { font-size: 12px; color: var(--p-inv-muted); }
.st__req[hidden] { display: none; }
/* EN: valsts izvēle tumšajā summas joslā, kamēr valsts nav izvēlēta */
.st__country { flex: 1 1 100%; }
.st__country p { margin-bottom: var(--s-2); font-size: 14px; color: var(--p-inv-ink); }
.st__country-opts { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.st__country-btn { min-height: 44px; padding: 0 var(--s-4); background: transparent; color: var(--p-inv-ink); border: 1px solid color-mix(in oklab, var(--p-inv-ink) 40%, transparent); font: 500 12px/1 var(--font-text); letter-spacing: .1em; text-transform: uppercase; cursor: pointer; transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease); }
.st__country-btn:hover { border-color: var(--p-accent); background: color-mix(in oklab, var(--p-accent) 14%, transparent); }
.st__country-btn:focus-visible, .st__change:focus-visible { outline: 2px solid var(--p-accent); outline-offset: 2px; }
.st__change { flex: 1 1 100%; text-align: left; min-height: 44px; padding: 0; background: none; border: 0; color: var(--p-inv-muted); font: 500 11px/1 var(--font-text); letter-spacing: .1em; text-transform: uppercase; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.st__change:hover { color: var(--p-inv-ink); }
/* komplekts vai atsevišķi: divas pogas, izvēlētā tumša */
.st__seg { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--ink); }
.st__seg button { min-height: 44px; padding: 0 var(--s-3); background: var(--bg); color: var(--ink); border: 0; font: 500 12px/1.2 var(--font-text); letter-spacing: .04em; cursor: pointer; font-variant-numeric: tabular-nums; transition: background-color var(--dur) var(--ease); }
.st__seg button + button { border-left: 1px solid var(--ink); }
.st__seg button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.st__seg button:not([aria-pressed="true"]):hover { background: color-mix(in oklab, var(--bg) 92%, var(--ink)); }
.st__seg button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* ---------- izvēles logs: stikls (fons nedaudz spīd cauri); telefonā lapa no apakšas ---------- */
.st-dlg { width: min(1000px, calc(100vw - 48px)); max-width: none; max-height: min(780px, calc(100svh - 64px)); padding: 0; border: 1px solid rgb(255 255 255 / .65); border-radius: 18px; color: var(--p-ink); background: var(--st-glass, rgb(250 249 246 / .6)); -webkit-backdrop-filter: blur(26px) saturate(1.6); backdrop-filter: blur(26px) saturate(1.6); box-shadow: 0 40px 120px rgb(20 18 16 / .3), inset 0 1px 0 rgb(255 255 255 / .85); overflow: hidden; }
.st-dlg[open] { display: flex; animation: st-in 280ms var(--ease) both; }
.st-dlg::backdrop { background: rgb(28 25 22 / .2); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.st-dlg[open]::backdrop { animation: st-fade 280ms ease both; }
@keyframes st-in { from { opacity: 0; transform: translateY(16px) scale(.98); } }
@keyframes st-fade { from { opacity: 0; } }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .st-dlg { background: rgb(250 249 246 / .97); } }
.st-dlg__box { display: flex; flex-direction: column; width: 100%; min-height: 0; max-height: inherit; }
.st-dlg__head { flex: none; display: flex; justify-content: space-between; align-items: flex-start; gap: var(--s-4); padding: var(--s-5) var(--s-5) var(--s-3); }
.st-dlg__h { font-family: var(--font-display); font-weight: 400; font-size: 44px; line-height: .95; margin: 0; }
.st-dlg__sub { margin-top: var(--s-2); color: var(--p-muted); font-size: 14px; line-height: 1.45; max-width: 60ch; }
.st-dlg__x { flex: none; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border-radius: 50%; border: 1px solid rgb(28 25 22 / .14); background: rgb(255 255 255 / .65); color: var(--p-ink); cursor: pointer; transition: background-color var(--dur) var(--ease), transform var(--dur) var(--ease); }
.st-dlg__x svg { width: 14px; height: 14px; }
.st-dlg__x:hover { background: #fff; transform: rotate(90deg); }
.st-dlg__x:focus-visible, .st-dlg__tab:focus-visible { outline: 2px solid var(--p-ink); outline-offset: 2px; }
.st-dlg__tabs { flex: none; display: flex; gap: var(--s-1); padding: 0 var(--s-5); border-bottom: 1px solid rgb(28 25 22 / .12); overflow-x: auto; scrollbar-width: none; }
.st-dlg__tab { flex: none; display: inline-flex; align-items: center; gap: var(--s-2); min-height: 48px; padding: 0 var(--s-3); background: none; border: 0; border-bottom: 3px solid transparent; margin-bottom: -1px; font: 600 12px/1 var(--font-text); letter-spacing: .1em; text-transform: uppercase; color: var(--p-muted); cursor: pointer; transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.st-dlg__tab:hover { color: var(--p-ink); }
.st-dlg__tab[aria-selected="true"] { color: var(--p-ink); border-bottom-color: var(--p-accent); }
.st-dlg__n { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: rgb(28 25 22 / .08); font-size: 11px; letter-spacing: 0; }
.st-dlg__n:empty { display: none; }
.st-dlg__tab[aria-selected="true"] .st-dlg__n { background: var(--p-accent); color: var(--p-accent-ink); }
.st-dlg__body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: var(--s-4) var(--s-5) var(--s-5); }
.st-dlg__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-3); }
.st-dlg__grid[hidden] { display: none; }
.st-opt { position: relative; display: grid; grid-template-rows: auto auto 1fr; gap: var(--s-2); text-align: left; padding: var(--s-2) var(--s-2) var(--s-3); border: 1px solid rgb(255 255 255 / .9); border-radius: 12px; background: rgb(255 255 255 / .74); color: var(--p-ink); font: inherit; cursor: pointer; box-shadow: 0 1px 2px rgb(28 25 22 / .06); transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.st-opt:hover { transform: translateY(-2px); border-color: var(--p-accent); box-shadow: 0 12px 28px rgb(28 25 22 / .12); }
.st-opt:active { transform: scale(.985); transition-duration: 90ms; }
.st-opt:focus-visible { outline: 2px solid var(--p-ink); outline-offset: 2px; }
.st-opt__ph { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3; border-radius: 8px; background: #fff; overflow: hidden; }
/* bilde vienmēr visa redzama (arī augstā kompaktā kaste) */
.st-opt__ph img { position: absolute; inset: 10% 8%; width: 84%; height: 80%; object-fit: contain; transition: transform 300ms var(--ease), opacity var(--dur) var(--ease); }
.st-opt:hover .st-opt__ph img { transform: scale(1.03); }
.st-opt__t { padding: 0 var(--s-1); font: 500 13px/1.35 var(--font-text); letter-spacing: .04em; text-transform: uppercase; overflow-wrap: break-word; hyphens: auto; }
.st-opt__meta { align-self: end; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 2px var(--s-2); padding: 0 var(--s-1); }
.st-opt__sku { font-size: 11px; color: var(--p-muted); letter-spacing: .04em; }
.st-opt__pr .tb-state { white-space: nowrap; font-size: 13px; }
.st-opt__pr .tb-state:not(.tb-state--lv) { white-space: normal; }
.st-opt__why { flex-basis: 100%; font-size: 12px; line-height: 1.4; color: var(--p-muted); }
.st-opt__why[hidden] { display: none; }
.st-opt.is-off { cursor: not-allowed; }
.st-opt.is-off:hover { transform: none; border-color: rgb(255 255 255 / .9); box-shadow: 0 1px 2px rgb(28 25 22 / .06); }
.st-opt.is-off .st-opt__ph img { opacity: .4; filter: grayscale(1); }
.st-opt.is-off:hover .st-opt__ph img { transform: none; }
.st-opt.is-on { border-color: var(--p-accent); box-shadow: inset 0 0 0 1px var(--p-accent); }
.st-opt__on { position: absolute; top: var(--s-3); left: var(--s-3); padding: 5px 8px; border-radius: 999px; background: var(--p-accent); color: var(--p-accent-ink); font: 600 10px/1 var(--font-text); letter-spacing: .1em; text-transform: uppercase; }
.st-opt__on:empty { display: none; }
.st-opt__floor { display: block; width: 70%; height: 8px; margin-top: 30%; background: var(--line-strong); }

/* telefona josla ar summu */
.st__bar { display: none; }
.st__count { font-size: 12px; color: var(--p-inv-muted); margin-left: auto; }

@media (max-width: 1279px) {
  .st-dlg__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1023px) {
  .st__grid { grid-template-rows: none; row-gap: var(--s-5); }
  .st__head, .st__stage, .st__panel { grid-column: 1 / -1; grid-row: auto; }
  .st__stage { position: relative; top: 0; height: calc(clamp(460px, 66svh, 640px) + var(--st-more, 0px)); }
  .st__stage.has-half { --st-more: 72px; }
  .st__stage.has-acc { --st-more: 72px; }
  .st__stage.has-half.has-acc { --st-more: 144px; }
  .st__head { padding-top: 0; }
}
@media (max-width: 639px) {
  .st.st--hero { padding-bottom: var(--s-6); }
  .st__h1 { font-size: 54px; margin-bottom: var(--s-3); }
  .st__lead { font-size: 17px; }
  .st__stage { padding: var(--s-3) var(--s-4); height: calc(clamp(440px, 62svh, 560px) + var(--st-more, 0px)); }
  .st__floor { margin: 0 calc(-1 * var(--s-4)); }
  .st-l__tag { padding: 5px 6px; font-size: 10px; letter-spacing: .03em; gap: 6px; }
  .st-l__act span { display: none; }
  /* telefonā tikai bilde: nosaukums ir sarakstā tieši zemāk */
  .st-x { flex: none; display: block; width: 76px; height: 64px; padding: 5px; }
  .st-x img { height: 100%; }
  .st-x__t { display: none; }
  .st__total { padding: var(--s-3) var(--s-4); }
  .st__total .btn { flex: 1 1 100%; justify-content: center; }
  .st__sum { font-size: 38px; }
  .st__seg { display: grid; width: 100%; }
  .st__seg button { text-align: left; }
  .st__seg button + button { border-left: 0; border-top: 1px solid var(--ink); }
  .st-li__go .btn { padding-inline: 0; }
  /* lapa no apakšas */
  .st-dlg { width: 100%; max-height: 88svh; margin: auto 0 0; border-radius: 20px 20px 0 0; border-bottom: 0; }
  .st-dlg[open] { animation-name: st-up; animation-duration: 320ms; }
  @keyframes st-up { from { transform: translateY(100%); } }
  .st-dlg__head { position: relative; padding: var(--s-5) var(--s-4) var(--s-2); }
  .st-dlg__head::before { content: ""; position: absolute; top: 8px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 2px; background: rgb(28 25 22 / .2); }
  .st-dlg__h { font-size: 34px; }
  /* 4 cilnes 2 × 2, lai visas redzamas (garie LT/EE nosaukumi) */
  .st-dlg__tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--s-3); padding: 0 var(--s-4); overflow: visible; border-bottom: 0; }
  .st-dlg__tab { justify-content: space-between; min-height: 44px; padding: 0; text-align: left; line-height: 1.2; font-size: 11px; border-bottom: 1px solid rgb(28 25 22 / .12); margin-bottom: 0; }
  .st-dlg__tab[aria-selected="true"] { border-bottom: 3px solid var(--p-accent); }
  .st-dlg__body { padding: var(--s-3) var(--s-4) calc(var(--s-5) + env(safe-area-inset-bottom)); }
  .st-dlg__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-2); }
  .st-opt__t { font-size: 12px; }
  .st__bar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; align-items: center; justify-content: space-between; gap: var(--s-3); padding: var(--s-3) var(--s-4) calc(var(--s-3) + env(safe-area-inset-bottom)); background: var(--p-inv-bg); color: var(--p-inv-ink); transform: translateY(110%); transition: transform 240ms var(--ease); }
  .st__bar.is-on { transform: none; }
  .st__bar .st__sum { font-size: 30px; }
  html.st-bar-on .actionbar { visibility: hidden; }
}
@media (prefers-reduced-motion: reduce) {
  .st-l, .st-ghost, .st-swap, .st-halves, .st__cap, .st-l::before { transition: none; }
  .st-l.is-lift, .st-ghost.is-lift, .st-swap.is-lift, .st-halves.is-lift, .st__cap.is-lift { transform: none; }
  .st-ghost__plus, .st-dlg[open], .st-dlg[open]::backdrop { animation: none; }
}

/* ---------- produkta lapa: "Der kopā ar šo" ---------- */
.st-fit__head { align-items: center; }
.st-fit__cols { display: grid; gap: var(--s-6); grid-template-columns: repeat(3, minmax(0, 1fr)); }
.st-fit__cols--1 { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
.st-fit__cols--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.st-fit__col > .t-label { display: block; padding-bottom: var(--s-3); border-bottom: 1px solid var(--line-strong); color: var(--muted); }
.st-fit__list { list-style: none; margin: 0; padding: 0; }
.st-row { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: var(--s-3); align-items: center; padding: var(--s-3) 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: background-color var(--dur) var(--ease); }
.st-row img { width: 64px; height: 64px; object-fit: contain; background: #fff; transition: transform 300ms var(--ease); }
.st-row:hover img { transform: scale(1.03); }
.st-row__t { display: grid; gap: 2px; min-width: 0; }
.st-row__n { font-size: 14px; line-height: 1.35; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size var(--dur) var(--ease); justify-self: start; }
.st-row:hover .st-row__n { background-size: 100% 1px; }
.st-row__sku { font-size: 12px; color: var(--muted); }
.st-row__pr { text-align: right; }
.st-fit__more { display: inline-flex; align-items: center; min-height: 44px; margin-top: var(--s-2); }
@media (max-width: 1023px) { .st-fit__cols, .st-fit__cols--2 { grid-template-columns: minmax(0, 1fr); gap: var(--s-5); } }
@media (max-width: 639px) {
  .st-fit__head .btn { width: 100%; justify-content: center; }
  .st-row { grid-template-columns: 56px minmax(0, 1fr); }
  .st-row img { width: 56px; height: 56px; }
  .st-row__pr { grid-column: 2; text-align: left; }
}
