/* Pekárna Kvásek — moderní, teplý, minimalistický
   Barvy: krémová mouka, tmavá kůrka, akcent žitného chleba
   Písma: Mynerve (ručně psané nadpisy) + Hanken Grotesk */

:root {
  --flour: #f4ede1;
  --flour-2: #ebe1cf;
  --flour-3: #e2d5bf;
  --crust: #2a1c13;
  --crust-2: #3b2a1e;
  --rye: #7a5536;
  --rye-light: #cfa77c;
  --mute: #6b5747;
  --line: rgba(42, 28, 19, .16);
  --line-strong: rgba(42, 28, 19, .32);
  --line-light: rgba(244, 237, 225, .2);
  --hand: 'Mynerve', 'Segoe Print', cursive;
  --sans: 'Hanken Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --pad: clamp(18px, 4vw, 64px);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --hd-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--hd-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--flour); color: var(--crust);
  font: 400 17px/1.55 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
::selection { background: var(--crust); color: var(--flour); }
:focus-visible { outline: 2px solid var(--rye); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: fixed; top: -80px; left: 12px; z-index: 100; background: var(--crust); color: var(--flour); padding: 10px 14px; }
.skip:focus { top: 12px; }

.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--rye); }
.eyebrow-light { color: var(--rye-light); }

/* ---------- Tlačítka a odkazy ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--crust); color: var(--flour); border: 1px solid var(--crust);
  padding: 15px 24px; font-size: 16px; font-weight: 500; text-decoration: none; border-radius: 2px;
  transition: background-color .35s var(--ease), border-color .35s var(--ease), color .35s var(--ease);
}
.btn span { transition: transform .45s var(--ease); }
.btn:hover { background: var(--rye); border-color: var(--rye); }
.btn:hover span { transform: translateX(4px); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-light { background: var(--flour); color: var(--crust); border-color: var(--flour); }
.btn-light:hover { background: var(--rye-light); border-color: var(--rye-light); color: var(--crust); }
.btn-block { width: 100%; }
.link-light { color: var(--flour); text-decoration: none; position: relative; padding-bottom: 4px; }

/* Ručně kreslené podtržení (vlnka) */
.nav a, .link-light, .board-foot a, .contact-addr a { position: relative; text-decoration: none; }
.nav a::after, .link-light::after, .board-foot a::after, .contact-addr a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -7px; height: 7px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 7'%3E%3Cpath d='M0 4c3-3 6-3 9 0s6 3 9 0 4-2 6-1' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") repeat-x 0 0 / 24px 7px;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 7'%3E%3Cpath d='M0 4c3-3 6-3 9 0s6 3 9 0 4-2 6-1' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") repeat-x 0 0 / 24px 7px;
  clip-path: inset(0 100% 0 0); transition: clip-path .55s var(--ease);
}
.link-light::after, .board-foot a::after, .contact-addr a::after { clip-path: inset(0 0 0 0); opacity: .45; transition: opacity .3s, clip-path .55s var(--ease); }
.nav a:hover::after, .nav a.is-active::after { clip-path: inset(0 0 0 0); }
.link-light:hover::after, .board-foot a:hover::after, .contact-addr a:hover::after { opacity: 1; }

/* ---------- Hlavička ---------- */
.hd {
  position: fixed; inset: 0 0 auto; z-index: 40; height: var(--hd-h);
  display: flex; align-items: center; gap: 32px; padding: 0 var(--pad);
  color: var(--flour);
  transition: background-color .4s var(--ease), color .4s var(--ease), transform .5s var(--ease), border-color .4s;
  border-bottom: 1px solid transparent;
}
.hd.is-solid { background: var(--flour); color: var(--crust); border-bottom-color: var(--line); }
.hd.is-hidden { transform: translateY(-100%); }
.logo { display: flex; align-items: baseline; gap: 10px; text-decoration: none; font: 400 32px/1 var(--hand); margin-right: auto; }
.logo-sub { font: 600 10px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; opacity: .7; }
@media (max-width: 480px) { .logo-sub { display: none; } }
.nav { display: flex; gap: 28px; font-size: 15px; }
.cart-btn {
  display: inline-flex; align-items: center; gap: 10px; border: 1px solid currentColor; border-radius: 2px;
  padding: 8px 10px 8px 14px; font-size: 15px; transition: background-color .3s, color .3s;
}
.cart-btn:hover { background: var(--crust); color: var(--flour); border-color: var(--crust); }
.hd:not(.is-solid) .cart-btn:hover { background: var(--flour); color: var(--crust); border-color: var(--flour); }
.cart-count {
  min-width: 22px; height: 22px; padding: 0 6px; display: grid; place-items: center;
  background: var(--rye); color: var(--flour); border-radius: 11px; font-size: 12px; font-weight: 600;
}
.cart-count.bump { animation: bump .5s var(--ease); }
@keyframes bump { 40% { transform: scale(1.35); } }
.menu-btn { display: none; width: 40px; height: 40px; position: relative; }
.menu-lines, .menu-lines::before { position: absolute; left: 9px; right: 9px; height: 1.5px; background: currentColor; transition: transform .4s var(--ease), top .4s var(--ease); }
.menu-lines { top: 16px; }
.menu-lines::before { content: ''; left: 0; right: 0; top: 7px; }
.menu-btn[aria-expanded="true"] .menu-lines { top: 20px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-lines::before { top: 0; transform: rotate(-90deg); }

.menu {
  position: fixed; inset: 0; z-index: 35; background: var(--flour); color: var(--crust);
  padding: calc(var(--hd-h) + 24px) var(--pad) 32px; display: flex; flex-direction: column; justify-content: space-between;
}
.menu[hidden] { display: none; }
.menu nav { display: grid; }
.menu nav a { font: 400 clamp(40px, 11vw, 64px)/1.2 var(--hand); text-decoration: none; padding: 6px 0; border-bottom: 1px solid var(--line); }
.menu-foot { color: var(--mute); font-size: 15px; }

@media (max-width: 900px) {
  .nav { display: none; }
  .menu-btn { display: block; }
  .hd { gap: 10px; }
  .hd.menu-open { background: var(--flour); color: var(--crust); transform: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: max(640px, 100svh); color: var(--flour);
  display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; background: var(--crust);
}
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; transform-origin: 50% 70%; will-change: transform; }
.hero::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(42, 28, 19, .45) 0%, rgba(42, 28, 19, 0) 28%, rgba(42, 28, 19, 0) 45%, rgba(42, 28, 19, .82) 100%);
}
.hero-inner { position: relative; z-index: 1; padding: 0 var(--pad) clamp(32px, 6vh, 64px); display: grid; gap: 22px; max-width: 1200px; }
.hero-title { font: 400 clamp(60px, 10.5vw, 168px)/.92 var(--hand); letter-spacing: -.01em; }
.hero-lead { font-size: clamp(17px, 1.5vw, 21px); max-width: 36ch; color: rgba(244, 237, 225, .86); }
.hero-cta { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; margin-top: 6px; }
.hero-bar {
  position: relative; z-index: 1; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 16px var(--pad); border-top: 1px solid var(--line-light);
  font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: rgba(244, 237, 225, .78);
}
.hero-bar a { text-decoration: none; }
.hero-bar a:hover { color: var(--flour); }
.open-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 8px; background: #8fbf7a; vertical-align: 1px; }
.open-dot.closed { background: var(--rye-light); }
@media (max-width: 700px) { .hero-bar-mid { display: none; } }

/* ---------- Tabule: dnešní pečivo ---------- */
.board-wrap { padding: clamp(80px, 12vw, 160px) var(--pad) 0; }
.board {
  background: var(--crust); color: var(--flour);
  padding: clamp(28px, 5vw, 72px); position: relative; overflow: hidden;
}
/* jemná křídová textura */
.board::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background:
    radial-gradient(120% 80% at 10% 0%, rgba(244, 237, 225, .07), transparent 60%),
    radial-gradient(90% 60% at 100% 100%, rgba(207, 167, 124, .08), transparent 60%);
}
.board > * { position: relative; }
.board-head { display: grid; gap: 10px; padding-bottom: clamp(28px, 4vw, 48px); border-bottom: 1px solid var(--line-light); }
.board-title { font: 400 clamp(52px, 7vw, 104px)/.95 var(--hand); }
.board-note { color: rgba(244, 237, 225, .65); max-width: 44ch; }
.board-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 64px); padding-top: clamp(28px, 4vw, 48px); }
.board-cols h3 { font: 400 clamp(30px, 2.8vw, 40px)/1 var(--hand); color: var(--rye-light); margin-bottom: 14px; }
.board-closed { grid-column: 1 / -1; font: 400 clamp(28px, 3vw, 40px)/1.2 var(--hand); color: var(--rye-light); }
.menu-row { padding: 12px 0; border-bottom: 1px dashed var(--line-light); }
.menu-row:last-child { border-bottom: 0; }
.menu-line { display: flex; align-items: baseline; gap: 10px; }
.menu-name { font-size: 18px; font-weight: 500; transition: transform .45s var(--ease), color .3s; }
.menu-dots { flex: 1; border-bottom: 2px dotted rgba(244, 237, 225, .28); transform: translateY(-4px); transition: border-color .3s; }
.menu-price { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; transition: color .3s; }
.menu-meta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 2px; font-size: 14px; color: rgba(244, 237, 225, .58); }
.menu-batch { color: var(--rye-light); }
.menu-row:hover .menu-name { transform: translateX(6px); color: var(--rye-light); }
.menu-row:hover .menu-dots { border-color: var(--rye-light); }
.menu-row:hover .menu-price { color: var(--rye-light); }
.menu-row.sold .menu-name, .menu-row.sold .menu-price { text-decoration: line-through; text-decoration-thickness: 1.5px; opacity: .5; }
.sold-tag { font: 400 20px/1 var(--hand); color: var(--rye-light); transform: rotate(-4deg); display: inline-block; margin-left: 4px; }
.board-foot { margin-top: clamp(28px, 4vw, 48px); padding-top: 22px; border-top: 1px solid var(--line-light); color: rgba(244, 237, 225, .7); font-size: 15px; }
.board-foot a { color: var(--flour); }
@media (max-width: 900px) { .board-cols { grid-template-columns: 1fr; } }

/* ---------- Sekce – hlavičky ---------- */
.sec-head { display: grid; gap: 16px; max-width: 900px; }
.sec-title { font: 400 clamp(46px, 6.4vw, 96px)/.98 var(--hand); }
.sec-lead { font-size: clamp(17px, 1.4vw, 20px); color: var(--mute); max-width: 52ch; }

/* ---------- Objednávka ---------- */
.order { padding: clamp(96px, 13vw, 180px) var(--pad) 0; }
.order-grid { display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); margin-top: clamp(40px, 6vw, 72px); align-items: start; }
.order-side { display: grid; gap: 40px; position: sticky; top: calc(var(--hd-h) + 24px); }
@media (max-width: 1000px) { .order-grid { grid-template-columns: 1fr; } .order-side { position: static; } }
.step { border: 0; margin: 0; padding: 0; min-width: 0; }
.step legend, .products-head h3 { display: flex; align-items: center; gap: 12px; padding: 0; margin-bottom: 18px; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.step-n { width: 30px; height: 30px; display: inline-grid; place-items: center; border: 1px solid var(--crust); border-radius: 50%; font: 400 18px/1 var(--hand); letter-spacing: 0; }

/* Kalendář */
.cal-month { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; font: 400 26px/1 var(--hand); }
.cal-month small { font: 400 13px var(--sans); color: var(--mute); }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-dow { font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); text-align: center; padding-bottom: 4px; }
.day {
  position: relative; aspect-ratio: 1 / 1.08; display: grid; place-items: center; align-content: center; gap: 2px;
  border: 1px solid var(--line); border-radius: 2px; background: transparent;
  transition: background-color .25s, color .25s, border-color .25s, transform .3s var(--ease);
}
.day b { font-size: 19px; font-weight: 500; font-variant-numeric: tabular-nums; line-height: 1; }
.day small { font-size: 10px; letter-spacing: .04em; color: var(--mute); line-height: 1; min-height: 10px; }
.day:hover:not(:disabled) { border-color: var(--crust); transform: translateY(-2px); }
.day[aria-checked="true"] { background: var(--crust); color: var(--flour); border-color: var(--crust); }
.day[aria-checked="true"] small { color: var(--rye-light); }
.day:disabled { cursor: not-allowed; color: rgba(42, 28, 19, .32); background: repeating-linear-gradient(135deg, transparent 0 6px, rgba(42, 28, 19, .045) 6px 7px); }
.day.is-today::after { content: ''; position: absolute; top: 6px; right: 6px; width: 5px; height: 5px; border-radius: 50%; background: var(--rye); }
.cal-legend { margin-top: 10px; font-size: 13px; color: var(--mute); }
@media (max-width: 560px) {
  .day b { font-size: 16px; }
  .day small { font-size: 9px; }
}

/* Výdejní místa */
.places { display: grid; border-top: 1px solid var(--line); }
.place {
  display: grid; grid-template-columns: 22px 1fr; gap: 4px 14px; align-items: start; text-align: left;
  padding: 16px 4px; border-bottom: 1px solid var(--line); transition: background-color .25s;
}
.place:hover:not(:disabled) { background: var(--flour-2); }
.place-radio { grid-row: span 2; width: 18px; height: 18px; margin-top: 3px; border: 1.5px solid var(--crust); border-radius: 50%; position: relative; }
.place-radio::after { content: ''; position: absolute; inset: 3px; border-radius: 50%; background: var(--crust); transform: scale(0); transition: transform .3s var(--ease); }
.place[aria-checked="true"] .place-radio::after { transform: scale(1); }
.place-name { font-weight: 600; }
.place-info { font-size: 14px; color: var(--mute); }
.place:disabled { cursor: not-allowed; }
.place:disabled .place-name, .place:disabled .place-radio { opacity: .4; }
.place-off { color: var(--rye); font-weight: 500; }

/* Produkty */
.products-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.products-head h3 { margin-bottom: 18px; }
.products-count { font: 400 22px/1 var(--hand); color: var(--rye); }
.products { border-top: 1px solid var(--line-strong); }
.product {
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px 24px; align-items: center;
  padding: 18px 0; border-bottom: 1px solid var(--line); transition: background-color .3s;
}
.product:hover { background: linear-gradient(90deg, var(--flour-2), transparent 85%); }
.product-name { font: 400 clamp(24px, 2.2vw, 30px)/1.1 var(--hand); }
.product-meta { display: flex; gap: 12px; flex-wrap: wrap; font-size: 14px; color: var(--mute); margin-top: 4px; }
.product-tag { color: var(--rye); font-weight: 600; }
.product-price { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.add-btn {
  min-width: 118px; height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--crust); border-radius: 2px; font-size: 15px; font-weight: 500;
  transition: background-color .25s, color .25s;
}
.add-btn:hover { background: var(--crust); color: var(--flour); }
.stepper { display: inline-grid; grid-template-columns: 38px 42px 38px; height: 42px; min-width: 118px; border: 1px solid var(--crust); border-radius: 2px; background: var(--crust); color: var(--flour); }
.stepper button { display: grid; place-items: center; font-size: 20px; line-height: 1; transition: background-color .2s; }
.stepper button:hover { background: var(--rye); }
.stepper output { display: grid; place-items: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.products-empty { padding: 40px 0; font: 400 28px/1.2 var(--hand); color: var(--mute); }
@media (max-width: 560px) {
  .product { grid-template-columns: minmax(0, 1fr) auto; }
  .product-price { grid-row: 1; grid-column: 2; align-self: start; padding-top: 4px; }
  .product .add-btn, .product .stepper { grid-column: 1 / -1; width: 100%; grid-template-columns: 52px 1fr 52px; }
}
.js .product.enter { animation: rise-in .9s var(--ease) both; animation-delay: calc(var(--i) * 55ms); }
@keyframes rise-in { from { opacity: 0; transform: translateY(14px) scale(.97); filter: blur(6px); } }

/* ---------- Příběh kvasu ---------- */
.story {
  padding: clamp(110px, 15vw, 220px) var(--pad) 0;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(24px, 3vw, 48px);
}
.story-intro { grid-column: 1 / 7; display: grid; gap: 22px; align-content: start; }
.story-title { font: 400 clamp(64px, 9vw, 150px)/.9 var(--hand); }
.story-title span { display: block; font-size: .36em; color: var(--rye); margin-top: 12px; }
.story-lead { font-size: clamp(18px, 1.5vw, 21px); max-width: 44ch; }
.story-photo { position: relative; overflow: hidden; background: var(--flour-3); }
.story-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--ease); }
.story-photo:hover img { transform: scale(1.04); }
.story-photo figcaption { position: absolute; left: 14px; bottom: 12px; font: 400 22px/1 var(--hand); color: var(--flour); text-shadow: 0 1px 12px rgba(42, 28, 19, .5); }
.story-photo-a { grid-column: 8 / 13; aspect-ratio: 4 / 5; align-self: start; margin-top: 40px; }
.timeline { grid-column: 1 / -1; margin-top: clamp(40px, 6vw, 80px); border-top: 1px solid var(--line-strong); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.timeline li { padding: 24px 24px 40px 0; border-bottom: 1px solid var(--line); display: grid; gap: 10px; align-content: start; }
.timeline li:not(:nth-child(3n+1)) { padding-left: 24px; border-left: 1px solid var(--line); }
.tl-time { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--rye); }
.timeline h3 { font: 400 clamp(30px, 2.6vw, 40px)/1 var(--hand); }
.timeline p { color: var(--mute); max-width: 34ch; }
.story-photo-b { grid-column: 3 / -1; aspect-ratio: 16 / 8; margin-top: clamp(40px, 6vw, 80px); }
.story-quote { grid-column: 1 / 10; margin-top: clamp(56px, 8vw, 110px); display: grid; gap: 18px; }
.story-quote p { font: 400 clamp(34px, 4.2vw, 64px)/1.1 var(--hand); }
.story-quote cite { font-style: normal; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
@media (max-width: 900px) {
  .story-intro, .story-photo-a, .story-photo-b, .story-quote { grid-column: 1 / -1; }
  .story-photo-a { margin-top: 0; aspect-ratio: 4 / 3; }
  .timeline { grid-template-columns: 1fr 1fr; }
  .timeline li:not(:nth-child(3n+1)) { padding-left: 0; border-left: 0; }
  .timeline li:nth-child(2n) { padding-left: 20px; border-left: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .timeline { grid-template-columns: 1fr; }
  .timeline li:nth-child(2n) { padding-left: 0; border-left: 0; }
  .timeline li { padding-bottom: 28px; }
}

/* ---------- Kontakt ---------- */
.contact {
  padding: clamp(110px, 15vw, 220px) var(--pad) clamp(80px, 10vw, 140px);
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px);
}
.contact-main { display: grid; gap: 22px; align-content: start; justify-items: start; }
.contact-addr { font-style: normal; font-size: clamp(19px, 1.6vw, 23px); line-height: 1.6; }
.contact-side { display: grid; gap: 16px; align-content: start; }
.contact-side h3 { font: 400 32px/1 var(--hand); margin-top: 12px; }
.hours { border-top: 1px solid var(--line-strong); }
.hours div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); transition: padding .3s var(--ease); }
.hours dd { color: var(--mute); text-align: right; }
.hours div.is-today { font-weight: 600; padding-left: 12px; padding-right: 12px; background: var(--flour-2); }
.hours div.is-today dd { color: var(--rye); }
.hours div.is-today dt::after { content: ' · dnes'; color: var(--rye); font-weight: 500; }
.pickup-list { border-top: 1px solid var(--line-strong); }
.pickup-list li { padding: 12px 0; border-bottom: 1px solid var(--line); display: grid; gap: 2px; }
.pickup-list span { font-size: 14px; color: var(--mute); }
@media (max-width: 800px) { .contact { grid-template-columns: 1fr; } }

/* ---------- Patička ---------- */
.ft { background: var(--crust); color: var(--flour); padding: clamp(48px, 7vw, 96px) var(--pad) 28px; overflow: hidden; }
.ft-logo { font: 400 clamp(110px, 26vw, 400px)/.8 var(--hand); letter-spacing: -.02em; margin-left: -.04em; }
.ft-meta { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: clamp(28px, 4vw, 48px); padding-top: 18px; border-top: 1px solid var(--line-light); font-size: 14px; color: rgba(244, 237, 225, .7); }
.ft-meta a { text-decoration: none; }
.ft-meta a:hover { color: var(--flour); }

/* ---------- Mini košík ---------- */
.scrim { position: fixed; inset: 0; z-index: 50; background: rgba(42, 28, 19, .42); opacity: 0; transition: opacity .45s var(--ease); }
.scrim.is-on { opacity: 1; }
.scrim[hidden] { display: none; }
.cart {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 60; width: min(440px, 100%);
  background: var(--flour); display: flex; flex-direction: column;
  transform: translateX(104%); transition: transform .6s var(--ease); visibility: hidden;
  border-left: 1px solid var(--line-strong);
}
.cart.is-open { transform: none; visibility: visible; }
.cart:focus { outline: none; }
.cart-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 22px 24px 18px; border-bottom: 1px solid var(--line); }
.cart-head h2 { font: 400 40px/1 var(--hand); }
.cart-sub { font-size: 14px; color: var(--mute); margin-top: 6px; }
.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; font-size: 28px; line-height: 1; border: 1px solid var(--line); border-radius: 2px; transition: border-color .25s, transform .4s var(--ease); }
.icon-btn:hover { border-color: var(--crust); transform: rotate(90deg); }
.cart-body { flex: 1; overflow-y: auto; padding: 4px 24px; }
.cart-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart-item-name { font: 400 24px/1.05 var(--hand); }
.cart-item-unit { font-size: 13px; color: var(--mute); }
.cart-item-sum { font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.cart-item .stepper { min-width: 0; grid-template-columns: 34px 36px 34px; height: 36px; justify-self: start; }
.cart-empty { padding: 48px 0; display: grid; gap: 10px; }
.cart-empty p:first-child { font: 400 32px/1.1 var(--hand); }
.cart-empty p:last-child { color: var(--mute); }
.cart-form { padding: 18px 24px 24px; border-top: 1px solid var(--line-strong); display: grid; gap: 12px; background: var(--flour-2); }
.cart-form[hidden] { display: none; }
.cart-form label { display: grid; gap: 2px; }
.cart-form label span { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.cart-form input { width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line-strong); border-radius: 0; padding: 6px 0 8px; font-size: 17px; transition: border-color .25s; }
.cart-form input:focus { outline: none; border-bottom-color: var(--crust); }
.cart-form input[aria-invalid="true"] { border-bottom-color: #a4442a; }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 6px; }
.cart-total strong { font-size: 24px; font-variant-numeric: tabular-nums; }
.cart-pay { font-size: 13px; color: var(--mute); }
.form-err { font-size: 14px; color: #a4442a; min-height: 0; }
.form-err:empty { display: none; }
.cart-done { padding: 48px 0; display: grid; gap: 14px; }
.cart-done h3 { font: 400 48px/1 var(--hand); }
.cart-done p { color: var(--mute); }
.cart-done strong { color: var(--crust); }

.cart-bar {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 30; display: none;
  justify-content: space-between; align-items: center; gap: 12px;
  background: var(--crust); color: var(--flour); padding: 15px 18px; border-radius: 2px; font-size: 15px; font-weight: 500;
  transform: translateY(140%); transition: transform .5s var(--ease);
}
.cart-bar.is-on { transform: none; }
@media (max-width: 900px) { .cart-bar:not([hidden]) { display: flex; } }

.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 70; max-width: min(92vw, 480px);
  background: var(--crust); color: var(--flour); padding: 14px 18px; border-radius: 2px; font-size: 15px;
  transform: translate(-50%, calc(100% + 120px)); transition: transform .5s var(--ease); pointer-events: none;
}
.toast.is-on { transform: translate(-50%, 0); }
@media (max-width: 900px) { .toast { bottom: 84px; } }

/* ---------- „Kynutí“ při scrollu ---------- */
.js [data-rise] {
  opacity: 0; transform: translateY(18px) scale(.95); filter: blur(10px); transform-origin: 50% 100%;
  transition: opacity 1s var(--ease), transform 1.4s var(--ease), filter 1.1s var(--ease);
  transition-delay: var(--d, 0s);
}
.js [data-rise].is-risen { opacity: 1; transform: none; filter: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .js [data-rise] { opacity: 1; transform: none; filter: none; }
}
