/* VST Shop – vzhled. Barvy a písmo jen tady (tokeny v :root). Bez externích písem (žádné požadavky na Google). */
:root {
  --paper: #f6f2ea;
  --paper-2: #efe8dc;
  --card: #fffdf9;
  --ink: #1d2a21;
  --ink-2: #4a5549;
  --ink-3: #7b8378;
  --line: #ddd5c6;
  --forest: #23392b;
  --forest-2: #2f4a39;
  --moss: #5f7a52;
  --gold: #b08a3e;
  --clay: #9a4f32;
  --good: #2f6b3a;
  --bad: #a33a2a;
  --radius: 14px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --shadow: 0 1px 2px rgba(29, 42, 33, .06), 0 8px 24px -12px rgba(29, 42, 33, .18);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.55 var(--sans); }
a { color: var(--forest); text-underline-offset: 3px; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -.01em; line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
h2 { font-size: clamp(1.45rem, 2.6vw, 1.9rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--ink-2); }
.small { font-size: .875rem; }
.num { font-variant-numeric: tabular-nums; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* hlavička */
.top { background: var(--forest); color: #f3efe4; }
.top .wrap { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.mark { width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid var(--gold); display: grid; place-items: center;
  font: 600 15px/1 var(--serif); color: #f3efe4; letter-spacing: .02em; }
.brand b { font: 600 1.2rem/1.1 var(--serif); display: block; }
.brand small { display: block; font-size: .74rem; opacity: .72; letter-spacing: .04em; }
.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav a { color: #f3efe4; text-decoration: none; padding: 8px 12px; border-radius: 999px; font-size: .95rem; }
.nav a:hover, .nav a[aria-current] { background: rgba(255, 255, 255, .1); }
.nav .cart { background: #f3efe4; color: var(--forest); font-weight: 600; }
.nav .cart:hover { background: #fff; }
.nav .lang { font-size: .8rem; opacity: .8; }
.badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: 4px; border-radius: 999px;
  background: var(--forest); color: #fff; font-size: .75rem; }
.strip { background: var(--forest-2); color: #e6e0d2; font-size: .85rem; }
.strip .wrap { display: flex; gap: 22px; padding-top: 7px; padding-bottom: 7px; flex-wrap: wrap; }
.strip span::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); margin-right: 8px; vertical-align: 2px; }

/* zpráva */
.flash { margin: 18px auto 0; padding: 12px 16px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.flash.err { border-color: #e3b5ab; background: #fbf0ed; color: var(--bad); }

/* úvod */
.hero { padding: 64px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero p.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 34em; }
.hero .photo { border-radius: 22px; overflow: hidden; aspect-ratio: 4 / 3; box-shadow: var(--shadow); background: var(--paper-2); }
.hero .photo img { width: 100%; height: 100%; object-fit: cover; }
.eyebrow { font-size: .82rem; letter-spacing: .08em; color: var(--moss); font-weight: 600; margin-bottom: 10px; }
.btn { display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: 999px; padding: 12px 22px; font: 600 1rem/1 var(--sans);
  background: var(--forest); color: #fff; text-decoration: none; cursor: pointer; transition: background .15s, transform .15s; }
.btn:hover { background: var(--forest-2); }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: transparent; color: var(--forest); box-shadow: inset 0 0 0 1.5px var(--forest); }
.btn.ghost:hover { background: rgba(35, 57, 43, .06); }
.btn.small { padding: 8px 14px; font-size: .9rem; }
.btn.link { background: none; color: var(--forest); padding: 0; text-decoration: underline; font-weight: 500; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 8px 0 56px; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.step b { display: block; font-family: var(--serif); font-size: 1.08rem; margin-bottom: 4px; }
.step p { margin: 0; color: var(--ink-2); font-size: .92rem; }
.step i { font-style: normal; display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--paper-2);
  color: var(--forest); font: 600 .9rem/1 var(--serif); margin-bottom: 10px; }

/* nabídka */
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 40px 0 16px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 24px 0 8px; }
.chip { padding: 7px 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: .92rem; }
.chip[aria-current] { background: var(--forest); color: #fff; border-color: var(--forest); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column;
  text-decoration: none; color: inherit; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.card .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card h3 { margin: 0; font-size: 1.06rem; }
.card .price { margin-top: auto; padding-top: 10px; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.card .price b { font-size: 1.05rem; }
.stock { font-size: .82rem; color: var(--good); }
.stock::before { content: "✓ "; }
.stock.out { color: var(--ink-3); }
.stock.out::before { content: "– "; }

/* obrázek produktu: fotka, jinak typografická dlaždice podle skupiny */
.pic { aspect-ratio: 4 / 3; position: relative; overflow: hidden; background: var(--forest); }
.pic img { width: 100%; height: 100%; object-fit: cover; }
.pic .tile { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 16px; color: #f4efe3;
  background: radial-gradient(120% 90% at 85% 0%, rgba(255,255,255,.12), transparent 60%), var(--tile, var(--forest)); }
.pic .tile svg { position: absolute; right: 14px; top: 14px; width: 46%; height: auto; opacity: .22; }
.pic .tile span { font: 600 1.25rem/1.15 var(--serif); max-width: 85%; }
.pic .tile small { opacity: .75; font-size: .78rem; letter-spacing: .04em; margin-bottom: 4px; }
.g-steaky { --tile: #2b3f30; } .g-hovezi { --tile: #5b3427; } .g-mlete { --tile: #6b4a2f; } .g-uzeniny { --tile: #7a3b26; }
.g-zverina { --tile: #3c4a2c; } .g-vejce { --tile: #6d6a3a; } .g-ostatni { --tile: #2c3a46; }

/* detail produktu */
.crumbs { margin: 24px 0 12px; font-size: .9rem; color: var(--ink-3); }
.crumbs a { color: var(--ink-2); }
.detail { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: start; margin-bottom: 56px; }
.detail .pic { border-radius: 18px; aspect-ratio: 1 / 1; }
.unitprice { font-size: 1.15rem; margin: 6px 0 16px; }
.note { background: var(--paper-2); border-radius: 12px; padding: 14px 16px; font-size: .92rem; color: var(--ink-2); margin: 16px 0; }
.packs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 14px 0 18px; }
.pack { position: relative; }
.pack input { position: absolute; opacity: 0; inset: 0; }
.pack label { display: block; background: var(--card); border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; cursor: pointer;
  transition: border-color .15s, background .15s; }
.pack label b { display: block; font-size: 1.05rem; }
.pack label span { display: block; font-size: .8rem; color: var(--ink-3); }
.pack input:checked + label { border-color: var(--forest); background: #eef2ea; box-shadow: inset 0 0 0 1px var(--forest); }
.pack input:checked + label::after { content: "✓"; position: absolute; top: 8px; right: 12px; color: var(--forest); font-weight: 700; }
.pack input:focus-visible + label { outline: 3px solid rgba(176, 138, 62, .5); outline-offset: 2px; }
.pack.taken label { opacity: .5; cursor: default; }
.qtyrow { display: flex; gap: 12px; align-items: center; margin: 16px 0; }
input[type=number], input[type=text], input[type=email], input[type=tel], input[type=password], textarea, select {
  font: inherit; color: inherit; background: #fff; border: 1.5px solid var(--line); border-radius: 10px; padding: 10px 12px; width: 100%; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--forest); box-shadow: 0 0 0 3px rgba(35, 57, 43, .12); }
.qtyrow input { width: 90px; }

/* košík a pokladna */
.layout2 { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: start; margin: 24px 0 64px; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.lines { list-style: none; margin: 0; padding: 0; }
.lines li { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.lines li:last-child { border-bottom: 0; }
.lines .what { flex: 1; }
.lines .what span { display: block; font-size: .85rem; color: var(--ink-3); }
.lines form { margin: 0; }
.lines .x { background: none; border: 0; color: var(--ink-3); cursor: pointer; font-size: .85rem; text-decoration: underline; padding: 4px; }
.total { display: flex; justify-content: space-between; font-size: 1.2rem; padding-top: 14px; margin-top: 4px; border-top: 2px solid var(--ink); }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: .9rem; font-weight: 600; margin-bottom: 5px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.choice { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; margin-bottom: 8px; background: #fff; cursor: pointer; }
.choice:has(input:checked) { border-color: var(--forest); background: #eef2ea; }
.choice input { margin-top: 4px; accent-color: var(--forest); }
.choice span small { display: block; color: var(--ink-3); font-size: .82rem; }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 10px 0; font-size: .92rem; }
.check input { margin-top: 4px; accent-color: var(--forest); }
.hp { position: absolute; left: -9999px; }
fieldset { border: 0; padding: 0; margin: 0 0 14px; }
legend { font-weight: 600; font-size: .9rem; margin-bottom: 6px; }

/* objednávka */
.ticket { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; background: var(--forest); color: #f3efe4; border-radius: 18px; padding: 24px; }
.ticket .code { font: 700 2.1rem/1 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .14em; margin: 6px 0; }
.ticket .qr { background: #fff; border-radius: 12px; padding: 8px; width: 132px; height: 132px; }
.ticket .qr img { width: 100%; height: 100%; }
.status { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px; background: var(--paper-2); font-size: .88rem; font-weight: 600; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); }
.status.confirmed::before, .status.ready::before { background: var(--good); }
.status.cancelled::before, .status.expired::before, .status.problem::before { background: var(--bad); }
dl.facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; margin: 16px 0; }
dl.facts dt { color: var(--ink-3); }
dl.facts dd { margin: 0; }

/* správa */
table.list { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: .92rem; }
table.list th, table.list td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
table.list th { background: var(--paper-2); font-weight: 600; }
table.list td.r, table.list th.r { text-align: right; }
.inline { display: inline; }

/* texty */
.prose { max-width: 760px; margin: 32px 0 64px; }
.prose h2 { margin-top: 1.6em; font-size: 1.3rem; }
.draft { display: inline-block; background: #fbf3df; color: #7a5a14; border: 1px solid #ecd9a8; border-radius: 8px; padding: 6px 10px; font-size: .85rem; }

/* patička */
.foot { background: var(--paper-2); border-top: 1px solid var(--line); padding: 36px 0; margin-top: 40px; font-size: .9rem; color: var(--ink-2); }
.foot .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 24px; }
.foot b { color: var(--ink); display: block; margin-bottom: 6px; font-family: var(--serif); }
.foot a { color: var(--ink-2); }

@media (max-width: 860px) {
  .hero { padding-top: 32px; }
  .hero .wrap, .detail, .layout2, .foot .wrap { grid-template-columns: 1fr; gap: 24px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .top .wrap { flex-wrap: wrap; gap: 8px; padding-top: 10px; padding-bottom: 10px; }
  .nav { margin-left: 0; width: 100%; overflow-x: auto; }
  .ticket { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .wrap { padding: 0 16px; }
  .steps, .row2 { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .card .body { padding: 10px 12px 12px; }
  .pic .tile span { font-size: 1.02rem; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* pomocné (CSP nepovoluje inline styly) */
.page-h { margin-top: 32px; }
.mt { margin-top: 18px; }
.mt8 { margin-top: 8px; }
.mtb { margin: 20px 0; }
.spacer { height: 48px; }
.block { margin: 48px 0 64px; }
.narrow { max-width: 520px; }
.mid { max-width: 820px; }
.big { font-size: 1.6rem; }
.btnrow { display: flex; gap: 12px; flex-wrap: wrap; }
.dim { opacity: .8; }
.endnote { margin: 24px 0 48px; }
.qty-in { width: 72px !important; }
