/* COR-X partnerský portál. Design system: Cor-X Dizajn Manuál (Matej Ježko, 2024),
   tokens mirrored from HQ/design-system (styles.css is not served from this
   origin, so the needed --cx-* values are declared here). One typeface, one
   accent, hairline rules, squared geometry, light ground. */

:root {
  --cx-ink: #0a0a0a; --cx-ink-soft: #1c1c1a; --cx-white: #FFFFFF; --cx-offwhite: #FAFAF7; --cx-mist: #F3F2ED;
  --cx-rule: #D8D7D0; --cx-rule-dark: #2A2A28; --cx-mute: #6B6B66; --cx-lime: #C3FF32; --cx-lime-deep: #A6DC22;
  --cx-amber: #E8B200; --cx-red: #D24428;
  --cx-font: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  --cx-container: 1160px; --cx-gutter: clamp(16px, 3vw, 32px);
  --cx-radius: 4px; --cx-hair: 1px; --cx-rulew: 1.5px;
  --cx-shadow-soft: 0 1px 0 rgba(10,10,10,.04), 0 4px 16px -8px rgba(10,10,10,.08);
  --cx-shadow-lift: 0 2px 0 rgba(10,10,10,.04), 0 12px 32px -14px rgba(10,10,10,.14);
  --cx-snap: cubic-bezier(0.2, 0.9, 0.2, 1);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--cx-white); color: var(--cx-ink); font: 400 15px/1.55 var(--cx-font); font-variant-numeric: tabular-nums; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--cx-lime); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

.strip { height: 6px; background: var(--cx-lime); }
.wrap { max-width: var(--cx-container); margin: 0 auto; padding: 0 var(--cx-gutter); }

/* ----- type ----- */
.eyebrow { font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--cx-mute); display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 8px; height: 8px; background: var(--cx-lime); flex: 0 0 8px; }
.eyebrow.plain::before { display: none; }
h1, h2, h3 { margin: 0; text-transform: uppercase; letter-spacing: .02em; line-height: 1.04; text-wrap: balance; }
h1 { font-size: clamp(30px, 4.6vw, 56px); font-weight: 800; }
h2 { font-size: clamp(22px, 2.6vw, 30px); font-weight: 800; }
h3 { font-size: 16px; font-weight: 700; letter-spacing: .04em; }
.lead { font-size: 18px; line-height: 1.5; max-width: 60ch; margin: 0; }
.muted { color: var(--cx-mute); }
.small { font-size: 13px; }
.mono { font-variant-numeric: tabular-nums; }
.money { font-weight: 700; white-space: nowrap; }
.lime-word { background: var(--cx-lime); color: var(--cx-ink); padding: 0 .18em; }

/* ----- header ----- */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; border-bottom: var(--cx-rulew) solid var(--cx-rule); }
.top .logo { height: 26px; width: auto; }
.top nav { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.top .who { font-size: 12px; color: var(--cx-mute); text-align: right; line-height: 1.35; }
.top .who b { color: var(--cx-ink); display: block; font-size: 13px; }

/* ----- buttons ----- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 18px; border: 2px solid var(--cx-ink); background: var(--cx-ink); color: var(--cx-white); border-radius: var(--cx-radius); font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; transition: transform .16s var(--cx-snap), background .16s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.99); }
.btn.lime { background: var(--cx-lime); border-color: var(--cx-lime); color: var(--cx-ink); }
.btn.lime:hover { background: var(--cx-lime-deep); border-color: var(--cx-lime-deep); }
.btn.ghost { background: transparent; color: var(--cx-ink); }
.btn.ghost:hover { background: var(--cx-mist); }
.btn.sm { padding: 8px 12px; font-size: 11.5px; }
.btn[disabled] { opacity: .5; cursor: default; transform: none; }
.btn .chev { font-weight: 800; }

/* ----- tabs (app nav) ----- */
.tabs { display: flex; gap: 0; border-bottom: var(--cx-rulew) solid var(--cx-rule); overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tabs a { padding: 14px 16px 12px; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--cx-mute); text-decoration: none; border-bottom: 3px solid transparent; margin-bottom: -1.5px; white-space: nowrap; }
.tabs a.active { color: var(--cx-ink); border-bottom-color: var(--cx-ink); }
.tabs a .n { display: inline-block; min-width: 18px; padding: 0 5px; margin-left: 6px; font-size: 10.5px; line-height: 18px; text-align: center; background: var(--cx-ink); color: var(--cx-white); border-radius: 2px; }
.tabs a .n.warn { background: var(--cx-amber); color: var(--cx-ink); }

/* ----- layout blocks ----- */
section.band { padding: 40px 0; border-bottom: var(--cx-rulew) solid var(--cx-rule); }
section.band:last-of-type { border-bottom: 0; }
.band-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.band-head h2 { margin-top: 10px; }
.band-head p { margin: 8px 0 0; color: var(--cx-mute); max-width: 64ch; }

.rail { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); border-top: var(--cx-rulew) solid var(--cx-rule); border-bottom: var(--cx-rulew) solid var(--cx-rule); }
.rail > div { padding: 16px 20px; border-right: var(--cx-rulew) solid var(--cx-rule); }
.rail > div:first-child { padding-left: 0; }
.rail > div:last-child { border-right: 0; }
.rail .k { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--cx-mute); font-weight: 600; margin-bottom: 6px; }
.rail .v { font-size: 24px; font-weight: 800; line-height: 1.1; letter-spacing: -.01em; }
.rail .v.sm { font-size: 16px; font-weight: 700; }
.rail .s { font-size: 12.5px; color: var(--cx-mute); margin-top: 4px; }
.rail .v.warn { color: #8a5a00; }
.rail .v .on { background: var(--cx-lime); padding: 0 6px; }

.grid2 { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; }
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
@media (max-width: 860px) { .grid2 { grid-template-columns: 1fr; } .rail > div { padding-left: 0; padding-right: 0; border-right: 0; border-bottom: var(--cx-hair) solid var(--cx-rule); } .rail > div:last-child { border-bottom: 0; } }

/* ----- panels, rows, tables ----- */
.panel { border: var(--cx-hair) solid var(--cx-rule); border-radius: var(--cx-radius); background: var(--cx-white); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: var(--cx-hair) solid var(--cx-rule); background: var(--cx-offwhite); }
.panel-head .eyebrow { font-size: 10.5px; }
.row { display: grid; grid-template-columns: 1fr auto; gap: 12px 20px; align-items: center; padding: 14px 16px; border-bottom: var(--cx-hair) solid var(--cx-rule); }
.row:last-child { border-bottom: 0; }
.row .t { font-weight: 700; }
.row .t .tag { margin-left: 8px; }
.row .sub { font-size: 12.5px; color: var(--cx-mute); margin-top: 3px; }
.row .right { text-align: right; display: flex; gap: 10px; align-items: center; justify-content: flex-end; flex-wrap: wrap; }
.empty { padding: 36px 16px; text-align: center; color: var(--cx-mute); }
.tag { display: inline-block; font-size: 10.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; padding: 3px 7px; border: var(--cx-hair) solid var(--cx-rule); border-radius: 2px; color: var(--cx-mute); vertical-align: middle; }
.tag.ok { background: var(--cx-lime); border-color: var(--cx-lime); color: var(--cx-ink); }
.tag.warn { background: var(--cx-amber); border-color: var(--cx-amber); color: var(--cx-ink); }
.tag.bad { background: var(--cx-red); border-color: var(--cx-red); color: var(--cx-white); }
.tag.ink { background: var(--cx-ink); border-color: var(--cx-ink); color: var(--cx-white); }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
table.t th { text-align: left; font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--cx-mute); padding: 10px 12px; border-bottom: var(--cx-rulew) solid var(--cx-rule); }
table.t td { padding: 12px; border-bottom: var(--cx-hair) solid var(--cx-rule); vertical-align: top; }
table.t th.num, table.t td.num { text-align: right; white-space: nowrap; }
table.t tr:last-child td { border-bottom: 0; }
.scroll { overflow-x: auto; }
.lines { margin: 6px 0 0; padding: 0; list-style: none; font-size: 12.5px; color: var(--cx-mute); }
.lines li { display: flex; justify-content: space-between; gap: 12px; padding: 2px 0; }

/* ----- forms ----- */
.field { display: grid; gap: 6px; align-content: start; }
.field span { font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--cx-mute); }
.field input, .field select, .field textarea { width: 100%; padding: 12px 12px; border: var(--cx-hair) solid var(--cx-rule); border-radius: var(--cx-radius); background: var(--cx-white); transition: border-color .12s; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--cx-ink); outline: none; }
.field textarea { min-height: 96px; resize: vertical; }
.field .hint { font-size: 12px; color: var(--cx-mute); letter-spacing: 0; text-transform: none; font-weight: 400; }
.form { display: grid; gap: 16px; }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form .three { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .form .two, .form .three { grid-template-columns: 1fr; } }
.msg { padding: 12px 14px; border-left: 3px solid var(--cx-ink); background: var(--cx-mist); font-size: 14px; }
.msg.ok { border-left-color: var(--cx-lime); }
.msg.err { border-left-color: var(--cx-red); }
/* Odoslaná žiadosť: nahradí polia formulára, aby bolo hneď vidno, že prešla (Boris a Lukáš 22. 10. 2026). */
.apply-done { align-self: start; display: flex; gap: 16px; align-items: flex-start; padding: 22px 20px; background: var(--cx-lime); color: var(--cx-ink); border-radius: var(--cx-radius); animation: apply-done-in .35s var(--cx-snap); }
.apply-done:focus { outline: none; }
.apply-done .tick { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 50%; background: var(--cx-ink); color: var(--cx-lime); display: grid; place-items: center; }
.apply-done .tick svg { width: 22px; height: 22px; stroke-width: 2.6; }
.apply-done h3 { font-size: 18px; margin: 2px 0 8px; }
.apply-done p { margin: 0; font-size: 15px; line-height: 1.5; }
@keyframes apply-done-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.otp { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; max-width: 384px; }
.field .otp-box { height: 60px; padding: 0; text-align: center; font-size: 28px; font-weight: 700; font-variant-numeric: tabular-nums; caret-color: var(--cx-ink); }
.field .otp-box:focus { border-color: var(--cx-ink); box-shadow: inset 0 0 0 1px var(--cx-ink); }
@media (max-width: 400px) { .otp { gap: 6px; } .field .otp-box { height: 52px; font-size: 24px; } }

/* ----- landing ----- */
.hero { padding: 56px 0 44px; border-bottom: var(--cx-rulew) solid var(--cx-rule); }
.hero h1 { margin: 16px 0 20px; max-width: 18ch; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero .rail { margin-top: 40px; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); border: var(--cx-rulew) solid var(--cx-rule); }
.steps li { counter-increment: s; padding: 20px; border-right: var(--cx-rulew) solid var(--cx-rule); }
.steps li:last-child { border-right: 0; }
.steps li::before { content: counter(s, decimal-leading-zero); display: block; font-size: 12px; font-weight: 700; letter-spacing: .14em; color: var(--cx-mute); margin-bottom: 12px; }
.steps b { display: block; margin-bottom: 6px; text-transform: uppercase; letter-spacing: .04em; font-size: 14px; }
.steps p { margin: 0; color: var(--cx-mute); font-size: 14px; }
@media (max-width: 760px) { .steps li { border-right: 0; border-bottom: var(--cx-rulew) solid var(--cx-rule); } .steps li:last-child { border-bottom: 0; } }
.price-table td.prod b { display: block; }
.price-table td.prod span { color: var(--cx-mute); font-size: 12.5px; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0; border-top: var(--cx-rulew) solid var(--cx-rule); }
.features > div { padding: 18px 20px 18px 0; border-bottom: var(--cx-hair) solid var(--cx-rule); }
.features b { display: block; margin-bottom: 4px; font-size: 14px; text-transform: uppercase; letter-spacing: .04em; }
.features p { margin: 0; color: var(--cx-mute); font-size: 14px; }
footer { padding: 28px 0 56px; color: var(--cx-mute); font-size: 13px; border-top: var(--cx-rulew) solid var(--cx-rule); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer a { color: var(--cx-mute); }

/* ----- app ----- */
.app-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 28px 0 20px; flex-wrap: wrap; }
.app-head h1 { font-size: clamp(24px, 3vw, 36px); margin-top: 10px; }
.app-head .actions { display: flex; gap: 10px; flex-wrap: wrap; }
.kpis { margin: 8px 0 32px; }
.qr-card { display: grid; grid-template-columns: 132px 1fr; gap: 18px; padding: 16px; border-bottom: var(--cx-hair) solid var(--cx-rule); align-items: start; }
.qr-card:last-child { border-bottom: 0; }
.qr-card canvas { width: 132px; height: 132px; image-rendering: pixelated; border: var(--cx-hair) solid var(--cx-rule); }
.qr-card .noqr { width: 132px; height: 132px; display: grid; place-items: center; font-size: 11px; text-align: center; color: var(--cx-mute); border: var(--cx-hair) dashed var(--cx-rule); padding: 8px; }
.qr-card dl { margin: 8px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; font-size: 13px; }
.qr-card dt { color: var(--cx-mute); }
.qr-card dd { margin: 0; font-weight: 600; }
.qr-card .due { font-size: 22px; font-weight: 800; }
.bars { display: grid; gap: 8px; }
.bar { display: grid; grid-template-columns: 70px 1fr 60px; gap: 10px; align-items: center; font-size: 12.5px; }
.bar i { display: block; height: 14px; background: var(--cx-ink); border-radius: 2px; min-width: 2px; }
.bar i.xe { background: var(--cx-ink); } .bar i.cmx { background: var(--cx-mute); } .bar i.xp { background: var(--cx-lime-deep); }
.bar .n { text-align: right; font-weight: 600; }
.legend { display: flex; gap: 14px; font-size: 12px; color: var(--cx-mute); margin-top: 10px; }
.legend i { display: inline-block; width: 10px; height: 10px; margin-right: 6px; vertical-align: -1px; }
.assets .row .t small { display: block; font-weight: 400; color: var(--cx-mute); font-size: 12.5px; margin-top: 2px; }
.photos + .photos, .photos + .assets { margin-top: 20px; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 20px; padding: 16px; }
.photo-grid figure { margin: 0; }
.photo-grid img { display: block; width: 100%; aspect-ratio: 1; object-fit: contain; background: var(--cx-white); border: var(--cx-hair) solid var(--cx-rule); }
.photo-grid figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-top: 8px; font-size: 13px; }
.photo-grid figcaption a { font-size: 12px; font-weight: 600; white-space: nowrap; }
@media (max-width: 480px) { .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } }
.contact-card { padding: 16px; border: var(--cx-hair) solid var(--cx-rule); }
.contact-card b { display: block; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--cx-ink); color: var(--cx-white); padding: 12px 18px; border-radius: var(--cx-radius); font-size: 13px; opacity: 0; pointer-events: none; transition: all .2s var(--cx-snap); max-width: 90vw; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.err { background: var(--cx-red); }
.loading { padding: 48px; text-align: center; color: var(--cx-mute); }

/* ----- objednávka -------------------------------------------------------- */
/* Dve kolóny: produkty vľavo, lepkavý súhrn vpravo. Riadok príchute je jeden
   riadok (fotka, názov a sklad, počet, súčet); cena je raz v hlavičke produktu,
   pri príchuti len vtedy, keď sa líši. Na mobile ostáva súčet na dosah palca. */
.order-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 348px; gap: 28px; align-items: start; margin-top: 24px; }

.notice { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; margin-top: 20px; padding: 14px 16px; border-left: 3px solid var(--cx-lime); background: var(--cx-mist); font-size: 14px; }
.notice ul { margin: 6px 0 0; padding-left: 18px; color: var(--cx-mute); font-size: 13px; }
.notice .x { border: 0; background: transparent; font-size: 22px; line-height: 1; padding: 0 4px; color: var(--cx-mute); }

.pblock { border: var(--cx-hair) solid var(--cx-rule); border-radius: var(--cx-radius); background: var(--cx-white); margin-bottom: 18px; }
.phead { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 16px 18px; border-bottom: var(--cx-rulew) solid var(--cx-ink); }
.pimg { width: 56px; height: 56px; object-fit: contain; background: var(--cx-mist); border-radius: var(--cx-radius); }
.pid h3 { font-size: 17px; font-weight: 800; }
.pid p { margin: 4px 0 0; font-size: 12.5px; color: var(--cx-mute); }
.pprice { text-align: right; display: grid; gap: 1px; }
.pprice b { font-size: 20px; font-weight: 800; white-space: nowrap; }
.pprice span { font-size: 11px; color: var(--cx-mute); }
.pprice .moc { font-size: 11px; }
.pprice .moc.unit { color: var(--cx-ink); font-weight: 600; }

.vlist { padding: 0 18px; }
.vline { display: grid; grid-template-columns: 40px minmax(0, 1fr) 72px 132px 92px; align-items: center; gap: 14px; padding: 10px 0; border-bottom: var(--cx-hair) solid var(--cx-rule); }
.vline:last-child { border-bottom: 0; }
.vline.picked .vmeta b::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 8px; background: var(--cx-lime); vertical-align: 2px; }
.vline.out { opacity: .5; }
.vsw { width: 40px; height: 40px; object-fit: contain; background: var(--cx-mist); border-radius: var(--cx-radius); }
.vmeta { min-width: 0; display: grid; gap: 1px; }
.vmeta b { font-size: 15px; font-weight: 600; }
.stock { font-size: 12px; color: var(--cx-mute); }
.stock.out { color: var(--cx-red); font-weight: 600; }
.vp { font-size: 14px; font-weight: 700; white-space: nowrap; }
.vqty { display: flex; justify-content: flex-end; }
.vsum { text-align: right; font-weight: 700; color: var(--cx-rule); white-space: nowrap; }
.vsum.on { color: var(--cx-ink); }

.stepper { display: inline-flex; border: var(--cx-rulew) solid var(--cx-ink); border-radius: var(--cx-radius); overflow: hidden; background: var(--cx-white); }
.stepper button { width: 38px; height: 40px; border: 0; background: transparent; font-size: 18px; line-height: 1; transition: background .14s; }
.stepper button:hover:not(:disabled) { background: var(--cx-lime); }
.stepper button:disabled { color: var(--cx-rule); cursor: default; }
.stepper input { width: 52px; height: 40px; border: 0; border-left: var(--cx-hair) solid var(--cx-rule); border-right: var(--cx-hair) solid var(--cx-rule); text-align: center; font-size: 15px; font-weight: 700; -moz-appearance: textfield; }
.stepper input::-webkit-inner-spin-button, .stepper input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

.order-side { position: sticky; top: 20px; }
.sum { border: var(--cx-rulew) solid var(--cx-ink); border-radius: var(--cx-radius); background: var(--cx-white); }
.sum-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px 10px; }
.sum-body { padding: 0 18px; max-height: 36vh; overflow: auto; }
.sum-empty { margin: 0 0 14px; font-size: 13px; color: var(--cx-mute); }
.sum-line { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: baseline; padding: 8px 0; border-bottom: var(--cx-hair) solid var(--cx-rule); font-size: 13px; }
.sum-line:last-child { border-bottom: 0; }
.sum-line i { font-style: normal; color: var(--cx-mute); }
.sum-line .q { color: var(--cx-mute); }
.sum-line .m { font-weight: 700; white-space: nowrap; }
.sum-rows { padding: 8px 18px 0; display: grid; gap: 4px; border-top: var(--cx-hair) solid var(--cx-rule); margin-top: 4px; }
.sum-rows:empty { display: none; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; }
.sum-row span:last-child { font-weight: 600; white-space: nowrap; }
.sum-row.muted, .sum-row.muted span:last-child { color: var(--cx-mute); font-weight: 400; }
.sum-total { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 10px 18px 0; padding: 12px 0; border-top: var(--cx-rulew) solid var(--cx-ink); text-transform: uppercase; letter-spacing: .12em; font-size: 11px; color: var(--cx-mute); }
.sum-total b { font-size: 26px; font-weight: 800; letter-spacing: 0; color: var(--cx-ink); transition: opacity .16s; }
.sum-total b.stale { opacity: .45; }
#sum-msg .msg { margin: 0 18px 10px; font-size: 13px; }
.sum-fields { padding: 4px 18px 0; display: grid; gap: 10px; }
.fld { display: grid; gap: 5px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--cx-mute); }
.fld i { font-style: normal; text-transform: none; letter-spacing: 0; opacity: .8; }
.fld input, .fld select { width: 100%; padding: 10px 12px; border: var(--cx-hair) solid var(--cx-rule); border-radius: var(--cx-radius); background: var(--cx-white); font-size: 14px; text-transform: none; letter-spacing: 0; color: var(--cx-ink); }
.fld input:focus, .fld select:focus { border-color: var(--cx-ink); outline: none; }
.btn.block { width: calc(100% - 36px); margin: 14px 18px 0; }
.btn.ghost.block { margin-top: 8px; }
.btn:disabled { opacity: .45; cursor: default; transform: none; }
.link { border: 0; background: none; padding: 0; text-decoration: underline; color: inherit; font: inherit; cursor: pointer; }
.sum-note { margin: 14px 0 0; padding: 12px 18px 16px; list-style: none; border-top: var(--cx-hair) solid var(--cx-rule); display: grid; gap: 6px; font-size: 12px; color: var(--cx-mute); }
.sum-note li { padding-left: 14px; position: relative; }
.sum-note li::before { content: ""; position: absolute; left: 0; top: 7px; width: 6px; height: 6px; background: var(--cx-lime); }

.done { margin-top: 24px; }
.done-card { border: var(--cx-rulew) solid var(--cx-ink); border-radius: var(--cx-radius); padding: 28px; max-width: 620px; }
.done-card h2 { margin: 10px 0 12px; }
.done-lines { margin: 20px 0 8px; }
.done-card .sum-row { padding: 3px 0; }
.done-card .sum-total { margin-left: 0; margin-right: 0; }
.done-card .cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
ol.next { margin: 18px 0 0; padding: 0; list-style: none; counter-reset: n; display: grid; gap: 10px; }
ol.next li { counter-increment: n; display: grid; grid-template-columns: 28px 1fr; column-gap: 10px; font-size: 13.5px; }
ol.next li::before { content: counter(n); grid-row: span 2; width: 24px; height: 24px; display: grid; place-items: center; background: var(--cx-ink); color: var(--cx-white); font-size: 12px; font-weight: 700; }
ol.next li span { color: var(--cx-mute); }

/* ----- objednávky, doklady, prvé kroky ------------------------------------- */
.orow { padding: 16px; border-bottom: var(--cx-hair) solid var(--cx-rule); }
.orow:last-child { border-bottom: 0; }
.ohead { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.ohead .t { font-weight: 700; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ohead .sub { font-size: 12.5px; color: var(--cx-mute); margin-top: 2px; }
.ohead .right { text-align: right; display: grid; }
.stages { display: flex; margin: 12px 0 8px; padding: 0; list-style: none; max-width: 420px; }
.stages li { flex: 1; position: relative; padding-top: 12px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--cx-mute); }
.stages li::before { content: ""; position: absolute; left: 0; right: 4px; top: 0; height: 4px; background: var(--cx-rule); }
.stages li.st-past::before { background: var(--cx-ink); }
.stages li.st-now { color: var(--cx-ink); font-weight: 700; }
.stages li.st-now::before { background: var(--cx-lime); }
.oacts { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 12px; }

.seg { display: inline-flex; margin-top: 18px; border: var(--cx-rulew) solid var(--cx-ink); border-radius: var(--cx-radius); overflow: hidden; }
.seg a { padding: 9px 16px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; }
.seg a.on { background: var(--cx-ink); color: var(--cx-white); }
@media (max-width: 520px) { .seg { display: flex; width: 100%; } .seg a { flex: 1 1 auto; padding: 9px 8px; font-size: 10.5px; letter-spacing: .06em; text-align: center; } }

/* ----- dodacie listy -------------------------------------------------------- */
.dl-intro { margin: 16px 0 0; max-width: 640px; font-size: 13.5px; color: var(--cx-mute); }
.dl-lines li span:last-child { text-align: right; }
.dl-note { margin: 8px 0 0; font-size: 13px; }
.dl-form { margin-top: 12px; padding: 14px; max-width: 520px; gap: 12px; background: var(--cx-offwhite); border: var(--cx-hair) solid var(--cx-rule); border-radius: var(--cx-radius); }
.dl-form[hidden] { display: none; }
.dl-form .acts { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 640px) { .dl-lines li { flex-direction: column; gap: 0; } .dl-lines li span:last-child { text-align: left; } }

.first { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin: 20px 0 24px; padding: 22px 24px; border: var(--cx-rulew) solid var(--cx-ink); border-radius: var(--cx-radius); }
.first h2 { margin: 10px 0 14px; }
.first ol { margin: 0; padding: 0; list-style: none; counter-reset: n; display: grid; gap: 8px; }
.first li { counter-increment: n; display: grid; grid-template-columns: 26px 1fr; column-gap: 10px; font-size: 13.5px; }
.first li::before { content: counter(n); grid-row: span 2; width: 22px; height: 22px; display: grid; place-items: center; background: var(--cx-lime); font-size: 12px; font-weight: 800; }
.first li span { color: var(--cx-mute); }

.suggest { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin: 20px 0 24px; padding: 18px 20px; border: var(--cx-hair) solid var(--cx-rule); border-radius: var(--cx-radius); background: var(--cx-mist); }
.sg-row { margin-top: 10px; }
.sg-row b { font-size: 15px; }
.sg-row p { margin: 2px 0 0; font-size: 14px; }
.sg-row p.small { font-size: 13px; }

/* ----- mobil: spodná navigácia, lišta košíka, sheet "Viac" ------------------- */
.bnav { display: none; }
.mbar { display: none; }
.sheet { position: fixed; inset: 0; z-index: 40; }
.sheet-bg { position: absolute; inset: 0; background: rgba(10,10,10,.42); }
.sheet-card { position: absolute; left: 0; right: 0; bottom: 0; background: var(--cx-white); padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); display: grid; border-top: var(--cx-rulew) solid var(--cx-ink); }
.sheet-who { font-size: 12px; color: var(--cx-mute); padding-bottom: 12px; border-bottom: var(--cx-hair) solid var(--cx-rule); }
.sheet-who b { display: block; color: var(--cx-ink); font-size: 14px; }
.sheet-card a, .sheet-card button { padding: 15px 0; border: 0; border-bottom: var(--cx-hair) solid var(--cx-rule); background: none; text-align: left; font-size: 15px; font-weight: 600; text-decoration: none; }
.sheet-card button { border-bottom: 0; color: var(--cx-red); }

@media (max-width: 960px) {
  .order-wrap { grid-template-columns: minmax(0, 1fr); }
  .order-side { position: static; }
  .mbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between;
          gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--cx-ink); color: var(--cx-white); }
  .mbar[hidden] { display: none; }
  .mbar-sum { display: grid; gap: 1px; }
  .mbar-sum span { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #bdbdb7; }
  .mbar-sum b { font-size: 20px; font-weight: 800; }
  .order-wrap { padding-bottom: 76px; }
}
@media (max-width: 760px) {
  body.has-bnav { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  body.has-bnav .tabs { display: none; }
  body.has-bnav .top .who, body.has-bnav #logout, body.has-bnav .top nav .btn.lime { display: none; }
  .bnav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: repeat(5, 1fr); background: var(--cx-white); border-top: var(--cx-rulew) solid var(--cx-ink); padding-bottom: env(safe-area-inset-bottom); }
  .bnav[hidden] { display: none; }
  .bnav a, .bnav button { position: relative; display: grid; justify-items: center; gap: 3px; padding: 9px 2px 8px; border: 0; background: none; text-decoration: none; font-size: 10.5px; font-weight: 600; letter-spacing: .04em; color: var(--cx-mute); }
  .bnav svg { width: 22px; height: 22px; }
  .bnav .on { color: var(--cx-ink); }
  .bnav .on::before { content: ""; position: absolute; top: -1.5px; left: 22%; right: 22%; height: 3px; background: var(--cx-lime); }
  .bnav i { position: absolute; top: 4px; left: 56%; min-width: 16px; padding: 0 4px; font-style: normal; font-size: 10px; line-height: 16px; text-align: center; background: var(--cx-ink); color: var(--cx-white); }
  .bnav i.warn { background: var(--cx-amber); color: var(--cx-ink); }
  body.has-bnav .mbar { bottom: calc(64px + env(safe-area-inset-bottom)); padding-bottom: 10px; }
  body.has-bnav .toast { bottom: calc(80px + env(safe-area-inset-bottom)); }
  .app-head { padding: 20px 0 14px; }
  .phead { grid-template-columns: 44px minmax(0, 1fr); row-gap: 8px; padding: 14px; }
  .pimg { width: 44px; height: 44px; }
  .pprice { grid-column: 1 / -1; text-align: left; grid-template-columns: auto 1fr; column-gap: 8px; align-items: baseline; }
  .pprice .moc { grid-column: 1 / -1; }
  .vlist { padding: 0 14px; }
  .vline { grid-template-columns: 36px minmax(0, 1fr) auto; grid-template-areas: "sw meta qty" "sw vp sum"; column-gap: 12px; row-gap: 2px; padding: 10px 0; }
  .vsw { grid-area: sw; width: 36px; height: 36px; align-self: start; }
  .vmeta { grid-area: meta; }
  .vp { grid-area: vp; font-size: 12.5px; }
  .vqty { grid-area: qty; }
  .vsum { grid-area: sum; font-size: 12.5px; }
  .vsum:not(.on) { display: none; }
  .stepper button { width: 36px; height: 38px; }
  .stepper input { width: 44px; height: 38px; }
  .ohead { flex-direction: column; gap: 6px; }
  .ohead .right { text-align: left; grid-auto-flow: column; justify-content: start; gap: 6px; align-items: baseline; }
  .first { padding: 18px; }
}

/* ----- dialóg: toľko nemáme na sklade ------------------------------------------ */
.dlg { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; }
.dlg-bg { position: absolute; inset: 0; background: rgba(10,10,10,.42); }
.dlg-card { position: relative; width: min(440px, 100%); background: var(--cx-white); border-top: var(--cx-rulew) solid var(--cx-ink); border-radius: var(--cx-radius); box-shadow: var(--cx-shadow-lift); padding: 22px 22px 18px; }
.dlg-card h2 { font-size: 20px; margin: 10px 0 12px; }
.dlg-card ul { margin: 0 0 12px; padding-left: 18px; font-size: 14px; }
.dlg-card li + li { margin-top: 4px; }
.dlg-card p { margin: 0 0 16px; font-size: 13px; color: var(--cx-mute); }
.dlg-card .btn.block { width: 100%; margin: 0; }
@media (max-width: 640px) {
  .dlg { place-items: end stretch; padding: 0; }
  .dlg-card { width: 100%; border-radius: 0; padding-bottom: calc(18px + env(safe-area-inset-bottom)); }
}
