/* HADRWARE — svetlý minimalistický e-shop. Bez pohyblivých prvkov, okrem jednorazovej animácie loga. */
@font-face { font-family: "Archivo"; src: url("../fonts/archivo.woff2") format("woff2");
  font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "JB Mono"; src: url("../fonts/jbmono.woff2") format("woff2");
  font-weight: 100 800; font-display: swap; }

:root {
  --bg: #f4f2ee; --bg-2: #ffffff; --tile: #e9e6e0; --line: #dcd8d0;
  --fg: #141414; --muted: #74706a; --text-2: #4a4743;
  --green: #66f65f; --green-deep: #1f7a1a; --red: #b8322a; --amber: #8a5a00;
  --sans: "Archivo", system-ui, sans-serif; --mono: "JB Mono", ui-monospace, monospace;
  --max: 1440px;
  --pad: max(clamp(16px, 4vw, 64px), calc((100% - var(--max)) / 2));
  --bar: 64px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--bar) + 16px); }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--sans); font-stretch: 100%;
  line-height: 1.55; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--fg); color: var(--bg); }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; }
#app:focus { outline: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 99; background: var(--fg); color: var(--bg); padding: 10px 14px; }
.skip:focus { top: 12px; }
h1, h2, h3 { margin: 0; }
.wide { font-stretch: 125%; font-weight: 800; letter-spacing: -.015em; text-transform: uppercase; }
.mono { font-family: var(--mono); font-size: .92em; }
.muted { color: var(--muted); font-size: 14px; }

/* ---------------------------------------------------------------- hlavička */
.bar { position: sticky; top: 0; z-index: 50; height: var(--bar); display: flex; align-items: center; gap: 24px;
  padding: 0 var(--pad); background: rgba(244, 242, 238, .94); border-bottom: 1px solid var(--line); }
.bar__logo { width: 128px; height: auto; }
.bar__nav { display: flex; gap: clamp(16px, 2.4vw, 36px); font-size: 14px; margin-left: clamp(16px, 4vw, 64px); }
.bar__nav a { text-decoration: none; color: var(--muted); padding: 6px 0; border-bottom: 1px solid transparent; }
.bar__nav a:hover, .bar__nav a[aria-current] { color: var(--fg); }
.bar__nav a[aria-current] { border-color: var(--fg); }
.cart-btn { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-size: 14px;
  border: 1px solid var(--fg); border-radius: 999px; padding: 8px 14px; }
.cart-btn:hover { background: var(--fg); color: var(--bg); }
.cart-btn svg { width: 18px; height: 18px; }
.cart-btn b { min-width: 20px; height: 20px; border-radius: 10px; background: var(--fg); color: var(--bg); font-size: 12px;
  display: grid; place-items: center; padding: 0 6px; font-weight: 600; }
.cart-btn:hover b { background: var(--bg); color: var(--fg); }
@media (max-width: 860px) { .bar__nav a:nth-child(n+4) { display: none; } }
@media (max-width: 600px) { .bar__nav { display: none; } .bar__logo { width: 108px; } .cart-btn span { display: none; } }

/* ---------------------------------------------------------------- tlačidlá */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none;
  font-weight: 600; font-size: 15px; padding: 14px 26px; min-height: 50px; border-radius: 999px; border: 1px solid var(--fg); }
.btn svg { width: 16px; height: 16px; }
.btn--dark { background: var(--fg); color: var(--bg); }
.btn--dark:hover { background: #333; border-color: #333; }
.btn--ghost { background: transparent; }
.btn--ghost:hover { background: var(--fg); color: var(--bg); }
.btn--wide { width: 100%; }
.btn--sm { min-height: 44px; padding: 8px 18px; font-size: 14px; }
.btn:disabled, .btn.is-off { opacity: .4; pointer-events: none; }
.lnk { font-size: 13px; color: var(--muted); }
.more { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; text-decoration: none; }
.more svg { width: 14px; height: 14px; }

/* ---------------------------------------------------------------- hero */
.hero { padding: clamp(40px, 9vh, 110px) var(--pad) clamp(28px, 5vh, 56px); }
.hero__eyebrow { font-size: clamp(13px, 1.2vw, 15px); margin: 0 0 clamp(18px, 3vh, 32px); }
.hero__logo { width: 100%; height: auto; overflow: visible; }
.hero__logo path { fill: var(--fg); }
.hero__logo .cur { fill: var(--green); }
.hero__logo .l-d { transform-origin: 408px 182px; }
.hero__logo .sh { opacity: 0; }
/* pred spustením JS: HARDWARE (R a D prehodené), po animácii .done = HADRWARE */
.hero__logo:not(.done):not(.anim) .l-r { transform: translate(-162px, 0); }
.hero__logo:not(.done):not(.anim) .l-d { transform: translate(162px, 0); }
.hero__fix { font-family: var(--mono); font-size: 12px; color: var(--muted); margin: 14px 0 0; visibility: hidden; }
.hero__fix.on { visibility: visible; }
.hero__row { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px; margin-top: clamp(24px, 5vh, 56px); }
.hero__tag { margin: 0; font-size: clamp(20px, 2.4vw, 32px); line-height: 1.15; font-weight: 500; letter-spacing: -.01em; }
.hero__tag s { color: var(--muted); text-decoration-thickness: 2px; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; }

/* editorial pás pod hero */
.ed { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(8px, 1.2vw, 16px); padding: 0 var(--pad); }
.ed__item { text-decoration: none; }
.ed__img { display: block; aspect-ratio: 4 / 5; background: var(--tile); overflow: hidden; }
.ed__img img { width: 100%; height: 100%; object-fit: cover; }
.ed__cap { display: flex; justify-content: space-between; gap: 12px; padding-top: 10px; font-size: 14px; }
.ed__cap span { color: var(--muted); }
@media (max-width: 760px) { .ed { grid-template-columns: 1fr 1fr; } .ed__item:first-child { grid-column: 1 / -1; } }

/* ---------------------------------------------------------------- sekcie */
.sec { padding: clamp(56px, 10vh, 120px) var(--pad); }
.sec--page { padding-top: clamp(20px, 4vh, 40px); }
.sec__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 40px; margin-bottom: clamp(24px, 4vh, 44px); }
.sec__title { font-size: clamp(40px, 7vw, 96px); line-height: .92; }
.sec__title--sm { font-size: clamp(32px, 4.6vw, 60px); margin-bottom: clamp(20px, 3vh, 32px); }
.sec__lead { max-width: 44ch; margin: 0; color: var(--muted); font-size: 15px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: clamp(18px, 3vh, 28px); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--fg); text-decoration: underline; }
.crumbs i { font-style: normal; opacity: .5; }
.crumbs [aria-current] { color: var(--fg); }

/* ---------------------------------------------------------------- produktová karta */
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(28px, 4vw, 48px) clamp(10px, 1.4vw, 20px); }
@media (max-width: 1100px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.card { display: block; text-decoration: none; }
.card__img { display: block; position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--tile); }
.card__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card__img .alt { visibility: hidden; }
@media (hover: hover) { .card:hover .card__img .alt { visibility: visible; } }
.card__hw { position: absolute; left: 10px; top: 10px; font-family: var(--mono); font-size: 11px; letter-spacing: .04em; color: var(--muted);
  background: rgba(244, 242, 238, .8); padding: 2px 6px; }
.card__meta { display: flex; justify-content: space-between; gap: 12px; padding-top: 12px; }
.card__name { display: block; font-size: 15px; font-weight: 600; line-height: 1.3; }
.card:hover .card__name { text-decoration: underline; text-underline-offset: 3px; }
.card__line { display: block; margin-top: 2px; font-size: 13px; color: var(--muted); line-height: 1.4; }
.card__price { font-size: 15px; white-space: nowrap; }
.card__sw { display: flex; gap: 6px; margin-top: 8px; }
.card__sw i { width: 12px; height: 12px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0,0,0,.18); }
@media (max-width: 760px) { .card__meta { flex-direction: column; gap: 2px; } .card__price { font-size: 14px; } }

/* ---------------------------------------------------------------- linie */
.lines { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (max-width: 1000px) { .lines { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .lines { grid-template-columns: 1fr; } }
.ln { display: flex; flex-direction: column; gap: 8px; padding: clamp(16px, 2vw, 26px); background: var(--bg); text-decoration: none; }
.ln:hover { background: var(--bg-2); }
.ln__pics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 10px; }
.ln__pics img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; background: var(--tile); }
.ln__no { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.ln__name { font-size: clamp(24px, 2.4vw, 34px); line-height: 1; }
.ln__lead { color: var(--text-2); font-size: 14px; max-width: 40ch; }
.ln__go { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 6px; font-size: 14px; font-weight: 600; }
.ln__go svg { width: 14px; height: 14px; }

/* výhody */
.usp { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; padding: 32px var(--pad); border-block: 1px solid var(--line); }
.usp div { display: grid; gap: 2px; font-size: 14px; }
.usp span { color: var(--muted); }
@media (max-width: 860px) { .usp { grid-template-columns: 1fr 1fr; } }

/* manifest */
.manifest { background: var(--bg-2); }
.manifest__big { font-size: clamp(32px, 5.6vw, 84px); line-height: 1; max-width: 17ch; }
.manifest__big em { font-style: normal; }
.manifest__big em::after { content: ""; display: inline-block; width: .5em; height: .09em; background: var(--green); margin-left: .06em; }
.manifest__big s { color: #b9b5ae; text-decoration-thickness: .06em; text-decoration-color: var(--fg); }
.manifest__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 64px); margin-top: clamp(40px, 8vh, 90px); border-top: 1px solid var(--line); padding-top: 28px; }
.manifest__cols h3 { margin-bottom: 10px; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.manifest__cols p { margin: 0; color: var(--text-2); font-size: 15px; max-width: 38ch; }
@media (max-width: 860px) { .manifest__cols { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- obchod: filtre */
.tools { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-bottom: 20px; }
.tools > *, .tools__row > * { min-width: 0; }
.filters { display: flex; flex-wrap: wrap; gap: 4px 26px; border-bottom: 1px solid var(--line); }
.filters button { font-size: 14px; padding: 10px 0 13px; min-height: 44px; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.filters button:hover { color: var(--fg); }
.filters button[aria-pressed="true"] { color: var(--fg); border-color: var(--fg); }
.filters span { margin-left: 6px; font-size: 12px; color: var(--muted); }
.tools__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; align-items: center; }
.tools__right { display: flex; gap: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button { font-family: var(--mono); font-size: 12px; padding: 7px 13px; min-height: 36px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); }
.chips button:hover { color: var(--fg); border-color: var(--fg); }
.chips button[aria-pressed="true"] { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.colors { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.colors button { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--muted); min-height: 32px; }
.colors i { width: 16px; height: 16px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0,0,0,.2); outline: 1px solid transparent; outline-offset: 2px; }
.colors button:hover { color: var(--fg); }
.colors button[aria-pressed="true"] { color: var(--fg); }
.colors button[aria-pressed="true"] i { outline-color: var(--fg); }
.search input, .select select { height: 40px; border: 1px solid var(--line); background: var(--bg-2); padding: 0 14px; font-size: 14px; border-radius: 999px; }
.search input { width: min(220px, 44vw); }
.select select { appearance: none; padding-right: 34px; background: var(--bg-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%2374706a' stroke-width='1.4'/%3E%3C/svg%3E") no-repeat right 14px center / 10px; }
.search input:focus, .select select:focus { border-color: var(--fg); outline: none; }
.count { font-size: 13px; color: var(--muted); margin: 0 0 16px; }
.empty { color: var(--muted); }

/* ---------------------------------------------------------------- detail produktu */
.pdp { padding-bottom: 24px; }
.pdp__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(320px, 1fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.gal { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.gal figure { margin: 0; background: var(--tile); aspect-ratio: 4 / 5; overflow: hidden; }
.gal figure:first-child { grid-column: 1 / -1; }
.gal[data-n="2"] figure:first-child { grid-column: auto; }
.gal img { width: 100%; height: 100%; object-fit: cover; }
.pdp__info { position: sticky; top: calc(var(--bar) + 20px); display: flex; flex-direction: column; gap: 16px; }
.pdp__cat { margin: 0; font-size: 12px; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.pdp__cat a { text-decoration: none; }
.pdp__cat a:hover { color: var(--fg); }
.pdp__name { font-size: clamp(28px, 3.2vw, 44px); line-height: 1.05; font-weight: 800; letter-spacing: -.01em; }
.pdp__hw { margin: -8px 0 0; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.pdp__price { margin: 0; font-size: 22px; }
.pdp__price small { font-size: 12px; color: var(--muted); }
.pdp__desc { margin: 0; color: var(--text-2); font-size: 15px; }
.pdp__usp { margin: 0; padding: 0; list-style: none; font-size: 13px; color: var(--muted); display: grid; gap: 4px; }
.pdp__usp li::before { content: "— "; }
@media (max-width: 900px) {
  .pdp__grid { grid-template-columns: 1fr; }
  .pdp__info { position: static; }
  .gal { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 6px; margin: 0 calc(var(--pad) * -1); padding: 0 var(--pad); scrollbar-width: none; }
  .gal figure { flex: 0 0 86%; scroll-snap-align: center; }
}
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { font-size: 13px; color: var(--muted); margin-bottom: 8px; padding: 0; width: 100%; display: flex; justify-content: space-between; }
legend b { color: var(--fg); font-weight: 500; }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatches label { position: relative; cursor: pointer; }
.swatches input { position: absolute; opacity: 0; }
.swatches span { display: block; width: 30px; height: 30px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0,0,0,.18); outline: 1px solid transparent; outline-offset: 3px; }
.swatches input:checked + span { outline-color: var(--fg); }
.swatches input:focus-visible + span { outline: 2px solid var(--fg); }
.sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.sizes label { position: relative; }
.sizes input { position: absolute; opacity: 0; }
.sizes span { display: grid; place-items: center; min-width: 56px; height: 46px; padding: 0 12px; border: 1px solid var(--line); background: var(--bg-2); font-size: 14px; cursor: pointer; line-height: 1.1; }
.sizes span i { display: block; font-style: normal; font-size: 10px; color: var(--muted); }
.sizes span:hover { border-color: var(--fg); }
.sizes input:checked + span { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.sizes input:disabled + span { color: #aaa59d; background: transparent; text-decoration: line-through; cursor: not-allowed; border-style: dashed; }
.sizes input:disabled + span i { text-decoration: none; }
.sizes input:focus-visible + span { outline: 2px solid var(--fg); outline-offset: 2px; }
.stock { margin: -4px 0 0; font-size: 13px; min-height: 1.5em; color: var(--muted); }
.stock.ok { color: var(--green-deep); }
.stock.low { color: var(--amber); }
.stock.out { color: var(--red); }
.acc { border-top: 1px solid var(--line); padding: 12px 0 0; }
.acc summary { cursor: pointer; font-weight: 600; font-size: 14px; list-style: none; display: flex; justify-content: space-between; }
.acc summary::after { content: "+"; font-weight: 400; }
.acc[open] summary::after { content: "−"; }
.acc summary::-webkit-details-marker { display: none; }
.acc > :not(summary) { margin-top: 10px; }
.specs { margin: 0; padding: 0; list-style: none; font-size: 14px; color: var(--text-2); display: grid; gap: 4px; }
.specs li::before { content: "— "; color: var(--muted); }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th, .tbl td { text-align: left; padding: 8px 10px 8px 0; border-bottom: 1px solid var(--line); }
.tbl th { font-weight: 500; color: var(--muted); font-size: 13px; }
.sec__title--sm + .grid { margin-top: 0; }

/* ---------------------------------------------------------------- košík */
.cart__grid, .order__grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(24px, 4vw, 64px); align-items: start; }
@media (max-width: 900px) { .cart__grid, .order__grid { grid-template-columns: 1fr; } }
.lines-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.cl { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: start; }
.cl--err { background: linear-gradient(90deg, rgba(184, 50, 42, .05), transparent); }
.cl__img { display: block; aspect-ratio: 4 / 5; background: var(--tile); overflow: hidden; }
.cl__img img { width: 100%; height: 100%; object-fit: cover; }
.cl__body { display: grid; gap: 4px; justify-items: start; }
.cl__name { font-weight: 600; text-decoration: none; }
a.cl__name:hover { text-decoration: underline; }
.cl__var { font-size: 13px; color: var(--muted); }
.cl__err { font-size: 13px; color: var(--red); }
.cl__price { white-space: nowrap; }
.cl__rm { font-size: 13px; color: var(--muted); text-decoration: underline; margin-top: 2px; }
.cl__rm:hover { color: var(--fg); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); background: var(--bg-2); margin-top: 6px; }
.qty button { width: 36px; height: 36px; font-size: 18px; }
.qty button:hover { background: var(--tile); }
.qty output { min-width: 28px; text-align: center; font-size: 14px; }
.sum { background: var(--bg-2); border: 1px solid var(--line); padding: clamp(18px, 2vw, 28px); display: grid; gap: 14px; position: sticky; top: calc(var(--bar) + 20px); }
.sum h2 { font-size: 18px; }
.sum h3 { font-size: 14px; margin-top: 6px; }
.sum p { margin: 0; font-size: 14px; }
.sum dl { margin: 0; display: grid; gap: 8px; font-size: 14px; }
.sum dl div { display: flex; justify-content: space-between; gap: 12px; }
.sum dd { margin: 0; white-space: nowrap; }
.sum .disc { color: var(--green-deep); }
.sum__total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--line); padding-top: 14px; font-size: 15px; }
.sum__total b { font-size: 22px; }
.free { font-size: 13px; color: var(--text-2); display: grid; gap: 8px; }
.free__bar { display: block; height: 4px; background: var(--tile); }
.free__bar i { display: block; height: 100%; background: var(--fg); }
.empty-cart { display: grid; gap: 20px; justify-items: start; padding: 24px 0 8px; }
.empty-cart code { font-family: var(--mono); font-size: 13px; background: var(--tile); padding: 2px 6px; }
.past { margin-top: 48px; max-width: 640px; }
.past h2 { font-size: 16px; margin-bottom: 10px; }
.past ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.past a { display: grid; grid-template-columns: 1fr auto auto; gap: 24px; padding: 12px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-size: 14px; }
.past a:hover { background: var(--bg-2); }

/* ---------------------------------------------------------------- pokladňa */
.co__grid { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: clamp(24px, 4vw, 64px); align-items: start; }
@media (max-width: 960px) { .co__grid { grid-template-columns: 1fr; } .co__sum { position: static; } }
.co__main { display: grid; gap: 36px; }
.step legend { font-size: 18px; font-weight: 700; color: var(--fg); margin-bottom: 16px; justify-content: flex-start; align-items: center; gap: 10px; }
.step legend i { font-style: normal; font-family: var(--mono); font-size: 12px; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--fg); display: grid; place-items: center; }
.step { display: grid; gap: 14px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.row3 { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 14px; }
@media (max-width: 600px) { .row2, .row3 { grid-template-columns: 1fr; } }
.fld { display: grid; gap: 6px; }
.fld > span { font-size: 13px; color: var(--muted); }
.fld > span i { font-style: normal; opacity: .8; }
.fld input, .fld select, .fld textarea, .code input { width: 100%; min-height: 50px; padding: 12px 14px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 0; font-size: 16px; }
.fld select { appearance: none; background: var(--bg-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%2374706a' stroke-width='1.4'/%3E%3C/svg%3E") no-repeat right 14px center / 10px; }
.fld textarea { resize: vertical; min-height: 64px; }
.fld input:focus, .fld select:focus, .fld textarea:focus, .code input:focus { border-color: var(--fg); outline: none; }
.fld.bad input, .fld.bad select { border-color: var(--red); }
.fld__err { font-style: normal; font-size: 13px; color: var(--red); min-height: 0; }
.fld__err:empty { display: none; }
.opt-field > span::after { content: " (nepovinné)"; opacity: .8; }
.opts { display: grid; gap: 8px; }
.opt { display: grid; grid-template-columns: 20px 1fr auto; gap: 14px; align-items: center; padding: 14px 16px; border: 1px solid var(--line); background: var(--bg-2); cursor: pointer; }
.opt:hover { border-color: var(--fg); }
.opt:has(input:checked) { border-color: var(--fg); box-shadow: inset 0 0 0 1px var(--fg); }
.opt input { width: 18px; height: 18px; margin: 0; accent-color: var(--fg); }
.opt__t { display: grid; }
.opt__t small { color: var(--muted); font-size: 13px; }
.opt.is-off { opacity: .5; cursor: not-allowed; }
.opt.is-off:hover { border-color: var(--line); }
.pickup { display: grid; gap: 10px; padding: 16px; background: var(--tile); }
.pickup__list { display: grid; gap: 6px; max-height: 340px; overflow: auto; }
.pt { display: grid; grid-template-columns: 18px 1fr; gap: 12px; align-items: start; padding: 10px 12px; background: var(--bg-2); cursor: pointer; border: 1px solid transparent; }
.pt:has(input:checked) { border-color: var(--fg); }
.pt input { margin: 3px 0 0; accent-color: var(--fg); }
.pt span { display: grid; font-size: 14px; }
.pt small { color: var(--muted); font-size: 12px; }
.mini { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; max-height: 320px; overflow: auto; }
.mini li { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; font-size: 14px; }
.mini__img { position: relative; display: block; aspect-ratio: 4 / 5; background: var(--tile); }
.mini__img img { width: 100%; height: 100%; object-fit: cover; }
.mini__img b { position: absolute; right: -6px; top: -6px; min-width: 20px; height: 20px; border-radius: 10px; background: var(--fg); color: var(--bg); font-size: 11px; display: grid; place-items: center; }
.mini li > span:nth-child(2) { display: grid; line-height: 1.3; }
.mini small { color: var(--muted); font-size: 12px; }
.mini .bad { color: var(--red); }
.code { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.code input { min-height: 44px; font-size: 14px; font-family: var(--mono); text-transform: uppercase; }
.code__msg { margin: -6px 0 0; font-size: 13px; min-height: 0; }
.code__msg:empty { display: none; }
.code__msg.ok { color: var(--green-deep); }
.code__msg.bad { color: var(--red); }
.check { display: grid; grid-template-columns: 20px 1fr; gap: 10px; font-size: 13px; color: var(--text-2); cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--fg); }
.form-msg { margin: 0; font-size: 14px; color: var(--red); }
.form-msg:empty { display: none; }

/* ---------------------------------------------------------------- objednávka */
.order__head { margin-bottom: 8px; }
.order__head .lead { max-width: 60ch; font-size: 16px; color: var(--text-2); margin: 0; }
.order__head .sec__title--sm { margin-bottom: 14px; }
.flow { list-style: none; margin: 28px 0 40px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 2px solid var(--line); }
.flow li { padding-top: 12px; margin-top: -2px; border-top: 2px solid transparent; display: grid; gap: 2px; font-size: 14px; color: var(--muted); }
.flow li span { font-size: 12px; }
.flow li.done, .flow li.now { border-color: var(--fg); color: var(--fg); }
.flow li.now b::after { content: ""; display: inline-block; width: .5em; height: .12em; background: var(--green); margin-left: .3em; vertical-align: baseline; }
.pay { display: grid; grid-template-columns: 200px 1fr; gap: 28px; padding: 24px; background: var(--bg-2); border: 1px solid var(--line); margin-bottom: 36px; align-items: start; }
.pay__qr { background: #fff; padding: 8px; border: 1px solid var(--line); }
.pay h2 { font-size: 18px; margin-bottom: 12px; }
.kv { margin: 0; display: grid; gap: 6px; font-size: 14px; }
.kv div { display: grid; grid-template-columns: 140px 1fr; gap: 12px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; word-break: break-all; }
.warn { margin: 14px 0 0; font-size: 13px; color: var(--amber); }
@media (max-width: 600px) { .pay { grid-template-columns: 1fr; } .pay__qr { width: 200px; } .flow { grid-template-columns: 1fr 1fr; row-gap: 16px; } }
.h2 { font-size: 18px; margin-bottom: 12px; }

/* ---------------------------------------------------------------- info */
.info__grid { display: grid; grid-template-columns: 220px minmax(0, 720px); gap: clamp(24px, 5vw, 80px); }
.info__nav { display: grid; gap: 8px; align-content: start; position: sticky; top: calc(var(--bar) + 20px); font-size: 14px; }
.info__nav a { text-decoration: none; color: var(--muted); }
.info__nav a:hover { color: var(--fg); }
.info__body h2 { font-size: 22px; margin: 36px 0 12px; }
.info__body h2:first-child { margin-top: 0; }
.info__body p { color: var(--text-2); }
@media (max-width: 760px) { .info__grid { grid-template-columns: 1fr; } .info__nav { position: static; } }
.nf { min-height: 50vh; display: grid; align-content: center; justify-items: start; gap: 16px; }

/* ---------------------------------------------------------------- patička */
.foot { padding: clamp(48px, 9vh, 96px) var(--pad) 28px; border-top: 1px solid var(--line); }
.foot__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 220px)); gap: 32px; margin-bottom: clamp(40px, 8vh, 80px); }
.foot__cols div { display: grid; gap: 6px; align-content: start; font-size: 14px; }
.foot__cols h2 { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 4px; }
.foot__cols a { text-decoration: none; }
.foot__cols a:hover { text-decoration: underline; }
@media (max-width: 600px) { .foot__cols { grid-template-columns: 1fr 1fr; } }
.foot__logo { width: 100%; height: auto; }
.foot__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; margin-top: 24px; font-size: 13px; color: var(--muted); }

/* toast */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 95; transform: translateX(-50%); visibility: hidden;
  background: var(--fg); color: var(--bg); font-size: 14px; padding: 12px 20px; border-radius: 999px; max-width: calc(100vw - 32px); }
.toast.on { visibility: visible; }
.toast a { color: var(--green); }

/* mobil: filtre v jednom posuvnom riadku, nech produkty začínajú hneď */
@media (max-width: 760px) {
  .filters, .chips, .colors { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--pad) * -1); padding-inline: var(--pad); }
  .filters::-webkit-scrollbar, .chips::-webkit-scrollbar, .colors::-webkit-scrollbar { display: none; }
  .filters button, .chips button, .colors button { flex: 0 0 auto; white-space: nowrap; }
  .tools__right { width: 100%; } .search { flex: 1; } .search input { width: 100%; }
}
.swatches legend { justify-content: flex-start; gap: 6px; }

/* ---------------------------------------------------------------- košík na detaile: po pridaní − n + */
.incart { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; min-height: 50px; }
.qty--lg { margin: 0; }
.qty--lg button { width: 46px; height: 48px; font-size: 20px; }
.qty--lg button:disabled { opacity: .3; cursor: not-allowed; }
.qty--lg output { min-width: 36px; font-size: 16px; font-weight: 600; }
.incart__t { font-size: 14px; color: var(--text-2); }
.incart__go { min-height: 48px; padding: 10px 20px; }
@media (max-width: 420px) { .incart { grid-template-columns: auto 1fr; } .incart__go { grid-column: 1 / -1; } }

/* potvrdenie pridania: vyjde zdola */
.toast--add { display: flex; align-items: center; gap: 14px; padding: 8px 8px 8px 8px; border-radius: 16px; pointer-events: auto; min-width: min(380px, calc(100vw - 32px)); }
.toast--add.on { animation: toastIn .45s cubic-bezier(.2, .9, .3, 1.2) both; }
.toast__img { width: 44px; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 8px; background: #333; flex: 0 0 auto; }
.toast__img img { width: 100%; height: 100%; object-fit: cover; }
.toast__t { display: grid; line-height: 1.3; flex: 1; }
.toast__t b::before { content: ""; display: inline-block; width: .5em; height: .14em; background: var(--green); margin-right: .45em; vertical-align: middle; }
.toast__t small { color: #b9b5ae; font-size: 12px; }
.toast--add a { color: var(--fg); background: var(--bg); text-decoration: none; font-weight: 600; font-size: 13px; padding: 9px 16px; border-radius: 999px; }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 30px) scale(.96); } to { opacity: 1; transform: translate(-50%, 0) scale(1); } }

/* košík v hlavičke sa zatrasie, číslo poskočí */
.cart-btn.shake { animation: cartShake .6s cubic-bezier(.36, .07, .19, .97); }
.cart-btn.shake b { animation: badgePop .6s cubic-bezier(.2, .9, .3, 1.4); }
@keyframes cartShake { 0%, 100% { transform: none; } 15% { transform: rotate(-9deg); } 30% { transform: rotate(8deg); } 45% { transform: rotate(-6deg); } 60% { transform: rotate(4deg); } 75% { transform: rotate(-2deg); } }
@keyframes badgePop { 0% { transform: scale(1); } 35% { transform: scale(1.45); background: var(--green); color: var(--fg); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .toast--add.on, .cart-btn.shake, .cart-btn.shake b { animation: none; } }

/* ---------------------------------------------------------------- lišta: ukážkový e-shop */
.demo-bar { margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; padding: 9px var(--pad); background: var(--fg); color: #d9d5ce; font-size: 13px; text-align: center; }
.demo-bar b { color: var(--bg); font-weight: 600; }
.demo-bar a { color: var(--bg); }
.demo-bar a:hover { color: var(--green); }

/* kredit Majkosoftu v pätičke (rovnaký ako somtakacova.sk / kuchyneindeko.sk) */
.mk-credit { display: inline-flex; align-items: center; gap: .6em; white-space: nowrap; }
.mk-credit a { display: block; }
.mk-credit img { height: 28px; width: auto; display: block; }
.foot__about { max-width: 64ch; margin: 0 0 clamp(32px, 6vh, 56px); font-size: 14px; color: var(--text-2); }
.foot__about a { color: var(--fg); }

/* ultrawide (≥ 2400 px): obsah ostáva v strede, len o niečo širší a mriežka má 5 stĺpcov */
@media (min-width: 2400px) {
  :root { --max: 1760px; }
  .grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
