/* ---------------------------------------------------------
   Lahůdky a catering — editorial styl ve firemní modré
   Stejná paleta jako půjčovna mobiliáře: #0090cc / #006189 / #304650
   --------------------------------------------------------- */

:root {
  --bg: #f4f8fa;
  --paper: #ffffff;
  --surface-2: #e9eff3;
  --ink: #223640;
  --ink-soft: #5c7480;
  --ink-faint: #93a7b1;
  --line: #dbe5ea;

  --blue: #0090cc;
  --blue-dark: #006189;
  --blue-soft: #e6f5fc;
  --slate: #304650;

  --ok: #128a5e;
  --ok-soft: #e8f7f0;
  --warn: #b4671a;
  --warn-soft: #fdf4e7;
  --danger: #c0392b;
  --danger-soft: #fdf3f2;

  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --r: 18px;
  --r-sm: 12px;
  --shadow: 0 1px 2px rgba(34, 54, 64, .04), 0 8px 26px rgba(34, 54, 64, .07);
  --shadow-lg: 0 4px 8px rgba(34, 54, 64, .06), 0 24px 60px rgba(34, 54, 64, .16);
  --maxw: 1200px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -.015em;
  margin: 0 0 .45em;
}
h1 { font-size: clamp(2.3rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.14rem; font-weight: 600; }
p { margin: 0 0 1em; }
a { color: var(--blue-dark); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 26px; }
.muted { color: var(--ink-soft); }
.faint { color: var(--ink-faint); font-size: .86rem; }
.hidden { display: none !important; }

.eyebrow {
  font-size: .73rem; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--blue); display: block; margin-bottom: 14px;
}

/* ---------- tlačítka a pole ---------- */

button, .btn {
  font-family: var(--sans); font-size: .93rem; font-weight: 600;
  border: 1px solid var(--blue); border-radius: 999px;
  padding: 13px 26px; background: var(--blue); color: #fff;
  cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  line-height: 1.2; transition: background .18s, border-color .18s, color .18s, transform .06s;
}
button:hover, .btn:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: #fff; }
button:active { transform: translateY(1px); }
button:disabled { opacity: .45; cursor: not-allowed; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--blue); outline-offset: 2px;
}

.btn-ghost { background: transparent; color: var(--blue-dark); border-color: var(--line); }
.btn-ghost:hover { background: var(--blue-soft); color: var(--blue-dark); border-color: var(--blue); }
.btn-sm { padding: 8px 16px; font-size: .85rem; }
.btn-block { width: 100%; }

label { display: block; font-size: .79rem; font-weight: 600; color: var(--ink-soft); margin-bottom: 6px; }

input, select, textarea {
  font: inherit; width: 100%; padding: 11px 14px;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--paper); color: var(--ink);
}
textarea { resize: vertical; min-height: 92px; }
.field { margin-bottom: 15px; }
.row { display: grid; gap: 15px; }
@media (min-width: 640px) { .row-2 { grid-template-columns: 1fr 1fr; } }

/* ---------- hlavička ---------- */

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(244, 248, 250, .9);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 20px; height: 74px; }
.logo {
  font-family: var(--serif); font-size: 1.4rem; font-weight: 600;
  text-decoration: none; color: var(--ink); letter-spacing: -.02em;
}
.logo span { color: var(--blue); }
.site-header nav { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.site-header nav a.tel {
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: .93rem;
  padding: 9px 14px; border-radius: 999px;
}
.site-header nav a.tel:hover { background: var(--blue-soft); color: var(--blue-dark); }
/* na úzké obrazovce ustoupí telefon a Nabídka, kalkulačka a košík zůstávají */
@media (max-width: 700px) { .site-header nav a.tel, .site-header nav .nav-catalog { display: none; } }
@media (max-width: 420px) { .site-header nav { gap: 6px; } .nav-calc { padding: 8px 12px; } }

.cart-btn { position: relative; }
.cart-count {
  position: absolute; top: -5px; right: -5px;
  background: var(--slate); color: #fff; border-radius: 999px;
  min-width: 21px; height: 21px; font-size: .71rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center; padding: 0 5px;
}

/* ---------- pruh s termínem (vždy nahoře) ---------- */

.termbar {
  position: sticky; top: 74px; z-index: 30;
  background: var(--slate); color: #dde7ec;
  padding: 11px 0; font-size: .93rem;
}
.termbar .wrap { display: flex; align-items: center; gap: 8px 14px; flex-wrap: wrap; }
.termbar-label {
  font-size: .71rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: #8fb3c4;
}
.termbar #termbarText { font-weight: 600; color: #fff; }
.termbar button { margin-left: auto; }
.termbar.set { background: var(--ok); }
.termbar.set .termbar-label { color: #b6e6d0; }
.termbar.set button { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .4); }
.termbar.set button:hover { background: rgba(255, 255, 255, .28); border-color: #fff; }

/* ---------- právní dokumenty ---------- */

.doc { padding: 54px 0 80px; }
.doc .wrap { max-width: 780px; }
.doc h1 { font-size: clamp(2rem, 4vw, 2.9rem); margin-bottom: .3em; }
.doc h2 {
  font-size: 1.3rem; margin: 2.2em 0 .6em;
  padding-top: 1.1em; border-top: 1px solid var(--line);
}
.doc .lede { font-size: 1.1rem; color: var(--ink-soft); margin-bottom: .4em; }
.doc p, .doc li { color: var(--ink); }
.doc ul, .doc ol { padding-left: 22px; margin: 0 0 1em; }
.doc li { margin-bottom: .5em; }
.doc a { color: var(--blue-dark); }

.doc-table { width: 100%; border-collapse: collapse; font-size: .93rem; margin: 0 0 1em; display: block; overflow-x: auto; }
.doc-table th, .doc-table td { text-align: left; padding: 10px 14px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc-table th { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-soft); font-weight: 600; }

/* ---------- upozornění po návratu na rozepsanou objednávku ---------- */

.pagenotice { background: var(--warn-soft); border-bottom: 1px solid #f0dcbe; padding: 14px 0; }
.pagenotice .wrap { display: flex; align-items: flex-start; gap: 14px; }
.pagenotice p { margin: 0 0 4px; color: var(--warn); font-size: .93rem; }
.pagenotice p:last-child { margin-bottom: 0; }
.pagenotice .icon-btn { margin-left: auto; color: var(--warn); flex: none; }
.pagenotice .icon-btn:hover { background: rgba(180, 103, 26, .12); color: var(--warn); }

/* ---------- hero ---------- */

.hero { padding: 44px 0 10px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-grid { display: grid; gap: 44px; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1fr 1.05fr; } }
.hero h1 { margin-bottom: .3em; }
.hero .lede { font-size: 1.13rem; color: var(--ink-soft); max-width: 46ch; margin-bottom: 28px; }
.hero-photo {
  border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 3;
  box-shadow: 0 20px 50px rgba(34, 54, 64, .16); background: var(--surface-2);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

.proof { display: flex; gap: 34px; flex-wrap: wrap; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.proof div span { display: block; font-family: var(--serif); font-size: 1.6rem; font-weight: 600; line-height: 1.1; }
.proof div small { font-size: .83rem; color: var(--ink-faint); }

/* ---------- výběr termínu ---------- */

.section { padding: 84px 0; }
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 32px; flex-wrap: wrap; margin-bottom: 34px;
}
.section-head p { color: var(--ink-soft); margin: 0; max-width: 42ch; }

.term-backdrop {
  position: fixed; inset: 0; background: rgba(34, 54, 64, .55);
  display: none; align-items: center; justify-content: center; padding: 20px; z-index: 75;
}
.term-backdrop.open { display: flex; }
.term-modal {
  background: var(--bg); border-radius: var(--r); width: min(940px, 100%);
  max-height: 92dvh; display: flex; flex-direction: column;
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.term-head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 24px; background: var(--paper); border-bottom: 1px solid var(--line);
}
.term-head h2 { margin: 0; font-size: 1.4rem; }
.term-body { flex: 1; overflow-y: auto; padding: 24px; display: grid; gap: 26px; }
@media (min-width: 820px) { .term-body { grid-template-columns: 246px 1fr; gap: 34px; } }
.term-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 16px 24px; background: var(--paper); border-top: 1px solid var(--line);
}

.seg { display: flex; background: var(--surface-2); border-radius: 999px; padding: 4px; gap: 4px; }
.seg-btn {
  flex: 1; background: transparent; color: var(--ink-soft); border: 0;
  padding: 10px 10px; font-size: .86rem; border-radius: 999px; white-space: nowrap;
}
.seg-btn:hover { background: transparent; color: var(--blue-dark); }
.seg-btn.active { background: var(--paper); color: var(--ink); box-shadow: var(--shadow); }

.legend { display: flex; flex-direction: column; gap: 7px; margin-top: 22px; font-size: .85rem; color: var(--ink-soft); }
/* na úzké obrazovce by svislá legenda odtlačila kalendář pod okraj */
@media (max-width: 819px) {
  .legend { flex-direction: row; flex-wrap: wrap; gap: 6px 16px; margin-top: 14px; font-size: .8rem; }
}
.legend span { display: flex; align-items: center; gap: 9px; }
.dot { width: 11px; height: 11px; border-radius: 50%; flex: none; }
.dot.free { background: var(--ok); }
.dot.few { background: var(--warn); }
.dot.full { background: var(--danger); }
.dot.closed { background: var(--ink-faint); }

.chosen {
  margin-top: 22px; background: var(--ok-soft); border-radius: var(--r-sm);
  padding: 15px 17px; font-size: .92rem;
}
.chosen strong { display: block; font-family: var(--serif); font-size: 1.15rem; color: var(--ink); }
.chosen .ok-label { color: var(--ok); font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; }

.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.cal-head strong { font-family: var(--serif); font-size: 1.25rem; font-weight: 600; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 7px; }

.day {
  position: relative; min-height: 74px; padding: 9px 3px 8px;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--paper); color: var(--ink);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; font-family: var(--sans);
}
.day .dow {
  font-size: .68rem; font-weight: 600; letter-spacing: .07em;
  text-transform: uppercase; color: var(--ink-faint); line-height: 1;
}
.day .num { font-size: 1.24rem; font-weight: 600; line-height: 1.15; }
.day .tag { font-size: .66rem; font-weight: 600; letter-spacing: .03em; line-height: 1.1; }

.day.empty { border: 0; background: transparent; pointer-events: none; }

.day.free { border-color: #b6e2ce; background: #f4fbf8; }
.day.free .tag { color: var(--ok); }
.day.few { border-color: #f0d9b6; background: #fefaf4; }
.day.few .tag { color: var(--warn); }
.day.free:hover, .day.few:hover { border-color: var(--blue); background: var(--blue-soft); color: var(--blue-dark); }

.day.full, .day.blocked { background: var(--surface-2); color: var(--ink-faint); cursor: not-allowed; border-color: transparent; }
.day.full .tag, .day.blocked .tag { color: var(--ink-faint); }
.day.full .num, .day.blocked .num { text-decoration: line-through; }
.day.closed, .day.early { background: transparent; color: #c3d0d7; cursor: not-allowed; border-color: transparent; }
.day.closed .dow, .day.early .dow { color: #cfdae0; }
.day.closed .tag { color: #cfdae0; }

.day.selected { background: var(--blue); border-color: var(--blue); color: #fff; }
.day.selected:hover { background: var(--blue-dark); color: #fff; border-color: var(--blue-dark); }
.day.selected .dow, .day.selected .tag { color: rgba(255, 255, 255, .85); }

.day.today .num { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 520px) {
  .cal { gap: 5px; }
  .day { min-height: 62px; padding: 7px 1px 6px; }
  .day .num { font-size: 1.05rem; }
  .day .tag { font-size: .58rem; }
}

.slots { margin-top: 26px; padding-top: 24px; border-top: 1px solid var(--line); }
.slots h3 { margin-bottom: 14px; }
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 8px; margin-bottom: 14px; }
.slot {
  padding: 11px 8px; font-size: .93rem; font-weight: 500;
  border-radius: var(--r-sm); border: 1px solid var(--line);
  background: var(--paper); color: var(--ink);
}
.slot:hover { background: var(--blue-soft); border-color: var(--blue); color: var(--blue-dark); }
.slot.taken {
  background: var(--surface-2); color: var(--ink-faint);
  border-color: transparent; text-decoration: line-through; cursor: not-allowed;
}
.slot.taken:hover { background: var(--surface-2); color: var(--ink-faint); border-color: transparent; }
.slot.active { background: var(--blue); border-color: var(--blue); color: #fff; }

/* ---------- katalog ---------- */

.band-soft { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.chip {
  background: var(--bg); border: 1px solid var(--line); color: var(--ink-soft);
  border-radius: 999px; padding: 9px 17px; font-size: .89rem; font-weight: 500;
}
.chip:hover { border-color: var(--blue); color: var(--blue-dark); background: var(--bg); }
.chip.active { background: var(--blue); border-color: var(--blue); color: #fff; }

/* ---------- rozvržení obchodu se stromem kategorií ---------- */

.shop { display: grid; gap: 28px; }
/* bez tohohle by vodorovný pás kategorií na mobilu roztáhl celou stránku
   místo toho, aby se posouval — položky v gridu se samy nezmenší pod obsah */
.shop > * { min-width: 0; }
@media (min-width: 900px) { .shop { grid-template-columns: 234px 1fr; gap: 40px; align-items: start; } }

.cats {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); padding: 16px;
}
@media (min-width: 900px) { .cats { position: sticky; top: 140px; max-height: calc(100dvh - 170px); overflow-y: auto; } }

.cats-title {
  font-family: var(--sans); font-size: .71rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint);
  margin: 0 0 12px 10px;
}
.cats nav { display: flex; flex-direction: column; gap: 1px; }

.cat-top, .cat-sub {
  background: transparent; border: 0; border-radius: var(--r-sm);
  text-align: left; justify-content: flex-start;
  padding: 8px 11px; font-weight: 500; color: var(--ink); width: 100%;
}
.cat-top { font-size: .93rem; margin-top: 5px; }
.cat-top:first-child { margin-top: 0; }
.cat-sub { font-size: .86rem; color: var(--ink-soft); padding-left: 22px; font-weight: 400; }
.cat-top:hover, .cat-sub:hover { background: var(--blue-soft); color: var(--blue-dark); }
.cat-top.active { background: var(--blue); color: #fff; }
.cat-sub.active { background: var(--slate); color: #fff; }
.cat-n { margin-left: auto; font-size: .78rem; color: var(--ink-faint); font-weight: 400; }
.cat-top.active .cat-n, .cat-sub.active .cat-n { color: rgba(255, 255, 255, .75); }

/* na mobilu ze stromu uděláme vodorovný pás, jinak by zabral celou obrazovku */
@media (max-width: 899px) {
  .cats { padding: 14px 0 14px 14px; }
  .cats-title { margin-left: 0; }
  .cats nav {
    flex-direction: row; gap: 8px; overflow-x: auto; padding-bottom: 4px;
    scrollbar-width: thin; -webkit-overflow-scrolling: touch;
  }
  .cat-top, .cat-sub {
    width: auto; flex: none; white-space: nowrap;
    border: 1px solid var(--line); border-radius: 999px; padding: 8px 15px;
  }
  .cat-sub { padding-left: 15px; }
  .cat-top.active, .cat-sub.active { border-color: transparent; }
  .cat-n { margin-left: 7px; }
}

/* ---------- lišta nad nabídkou ---------- */

.shop-bar {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin-bottom: 22px;
  padding-bottom: 16px; border-bottom: 1px solid var(--line);
}
.shop-bar-head h3 { margin: 0; font-size: 1.45rem; font-family: var(--serif); font-weight: 600; }
.shop-bar-head p { margin: 2px 0 0; }
.search { flex: 0 1 260px; }
.search input {
  background: var(--bg); border-radius: 999px; padding: 10px 18px; font-size: .9rem;
}
.search input::-webkit-search-cancel-button { cursor: pointer; }

/* pozor: nesmí se jmenovat .empty — tu třídu má i prázdné políčko v kalendáři */
.grid-empty { grid-column: 1 / -1; text-align: center; padding: 50px 20px; color: var(--ink-soft); }
.grid-empty p { margin-bottom: 14px; }

.grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }

.more { text-align: center; margin-top: 34px; }
.more p { margin-bottom: 12px; }

.card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden; display: flex; flex-direction: column; cursor: pointer;
  transition: box-shadow .28s, transform .28s;
}
.card:hover { box-shadow: 0 16px 40px rgba(34, 54, 64, .13); transform: translateY(-3px); }
.card.in-cart { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue); }

.card-img { aspect-ratio: 4 / 3; overflow: hidden; position: relative; background: var(--surface-2); }
.card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.card:hover .card-img img { transform: scale(1.05); }
.card-img .placeholder, .detail-photo .placeholder {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  background: linear-gradient(160deg, var(--blue-soft) 0%, var(--surface-2) 100%);
  color: #8bacbd;
}
.card-img .placeholder svg, .detail-photo .placeholder svg { width: 46px; height: 46px; }
.card-img .placeholder em, .detail-photo .placeholder em {
  font-style: normal; font-size: .76rem; font-weight: 600;
  letter-spacing: .11em; text-transform: uppercase;
}
.detail-photo .placeholder svg { width: 64px; height: 64px; }
.card-pack {
  position: absolute; bottom: 11px; left: 11px;
  background: rgba(255, 255, 255, .95); backdrop-filter: blur(6px);
  color: var(--ink); font-size: .76rem; font-weight: 600;
  padding: 5px 12px; border-radius: 999px;
}
.card-more {
  position: absolute; top: 11px; right: 11px;
  background: rgba(255, 255, 255, .95); backdrop-filter: blur(6px);
  color: var(--blue-dark); font-size: .76rem; font-weight: 600;
  padding: 5px 12px; border-radius: 999px;
  opacity: 0; transform: translateY(-4px); transition: opacity .22s, transform .22s;
}
.card:hover .card-more, .card:focus-visible .card-more { opacity: 1; transform: none; }

.card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { margin: 0 0 4px; font-size: 1.05rem; }
.card-desc {
  font-size: .87rem; color: var(--ink-soft); margin: 0 0 8px; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.card-foot {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 12px;
  padding-top: 14px; border-top: 1px dashed var(--line);
}
.price { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; line-height: 1.1; }
.price small { font-family: var(--sans); font-size: .75rem; font-weight: 400; color: var(--ink-faint); display: block; }

.qty { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--paper); }
.qty button { background: transparent; color: var(--blue-dark); border: 0; padding: 7px 13px; font-size: 1rem; border-radius: 0; }
.qty button:hover { background: var(--blue-soft); }
.qty input { width: 46px; border: 0; text-align: center; padding: 7px 2px; border-radius: 0; -moz-appearance: textfield; background: transparent; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* ---------- detail produktu ---------- */

.detail-backdrop {
  position: fixed; inset: 0; background: rgba(34, 54, 64, .5);
  display: none; align-items: center; justify-content: center; padding: 24px; z-index: 70;
}
.detail-backdrop.open { display: flex; }
.detail {
  background: var(--bg); border-radius: var(--r); width: min(920px, 100%);
  max-height: 90dvh; overflow-y: auto; box-shadow: var(--shadow-lg); position: relative;
}
.detail-close {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  background: rgba(255, 255, 255, .94); backdrop-filter: blur(6px);
  color: var(--ink); border: 1px solid var(--line); border-radius: 999px;
  width: 38px; height: 38px; padding: 0; font-size: 1rem;
}
.detail-close:hover { background: #fff; color: var(--ink); border-color: var(--ink-faint); }

.detail-inner { display: grid; }
@media (min-width: 720px) { .detail-inner { grid-template-columns: 1fr 1fr; } }
.detail-photo { background: var(--surface-2); position: relative; min-height: 240px; }
.detail-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.detail-photo .placeholder {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: .95rem; letter-spacing: .04em; color: var(--ink-faint);
}
@media (min-width: 720px) { .detail-photo { border-radius: var(--r) 0 0 var(--r); } }

.detail-main { padding: 28px 30px 30px; }
.detail-main h2 { font-size: 1.7rem; margin-bottom: .5em; }
.detail-price { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 4px; }
.detail-price .price { font-size: 1.7rem; }
.detail-desc { margin: 18px 0; color: var(--ink-soft); }
.detail-params { width: 100%; border-collapse: collapse; margin: 0 0 20px; font-size: .9rem; }
.detail-params th, .detail-params td { text-align: left; padding: 8px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.detail-params th { color: var(--ink-soft); font-weight: 500; width: 44%; }
.detail-params tr:last-child th, .detail-params tr:last-child td { border-bottom: 0; }
.detail-params .row-alerg td { font-weight: 600; letter-spacing: .02em; }
.detail-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

/* ---------- košík ---------- */

.drawer-backdrop {
  position: fixed; inset: 0; background: rgba(34, 54, 64, .4);
  opacity: 0; pointer-events: none; transition: opacity .25s; z-index: 50;
}
.drawer-backdrop.open { opacity: 1; pointer-events: auto; }

.drawer {
  position: fixed; top: 0; right: 0; height: 100dvh; width: min(470px, 100%);
  background: var(--bg); z-index: 60;
  transform: translateX(100%); transition: transform .28s cubic-bezier(.4, 0, .2, 1);
  display: flex; flex-direction: column; box-shadow: var(--shadow-lg);
}
.drawer.open { transform: none; }
.drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px; border-bottom: 1px solid var(--line); background: var(--paper);
}
.drawer-head h2 { margin: 0; font-size: 1.3rem; }
.drawer-body { flex: 1; overflow-y: auto; padding: 22px; }
.drawer-foot { border-top: 1px solid var(--line); padding: 18px 22px; background: var(--paper); }

.icon-btn { background: transparent; color: var(--ink-soft); padding: 8px 12px; border: 0; font-size: 1.15rem; }
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }

.cart-line { display: grid; grid-template-columns: 62px 1fr auto; gap: 13px; padding: 15px 0; border-bottom: 1px solid var(--line); align-items: center; }
.cart-line:first-child { padding-top: 0; }
.cart-line-img { width: 62px; height: 62px; border-radius: var(--r-sm); background: var(--surface-2); overflow: hidden; }
.cart-line-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-line-name { font-weight: 600; font-size: .95rem; }
.cart-line-meta { font-size: .82rem; color: var(--ink-soft); }
.cart-line-total { font-weight: 600; text-align: right; white-space: nowrap; }

.summary { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 17px; margin-top: 20px; }
.summary-row { display: flex; justify-content: space-between; gap: 16px; padding: 5px 0; font-size: .93rem; }
.summary-row.total {
  border-top: 1px solid var(--line); margin-top: 8px; padding-top: 13px;
  font-size: 1.2rem; font-weight: 600; font-family: var(--serif);
}

/* ---------- chytrý košík ---------- */

.calc-backdrop {
  position: fixed; inset: 0; background: rgba(34, 54, 64, .55);
  display: none; align-items: center; justify-content: center; padding: 20px; z-index: 76;
}
.calc-backdrop.open { display: flex; }
.calc-modal {
  background: var(--bg); border-radius: var(--r); width: min(560px, 100%);
  max-height: 92dvh; display: flex; flex-direction: column;
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.calc-head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 24px; background: var(--paper); border-bottom: 1px solid var(--line);
}
.calc-head h2 { margin: 0; font-size: 1.35rem; }
.calc-body { flex: 1; overflow-y: auto; padding: 24px; }
.calc-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 16px 24px; background: var(--paper); border-top: 1px solid var(--line);
}

/* odkaz v košíku, který tuhle pomůcku otevře */
.calc-link {
  width: 100%; margin-top: 22px; justify-content: flex-start;
  background: var(--blue-soft); border-color: transparent; color: var(--blue-dark);
  font-weight: 400; text-align: left; padding: 14px 18px; border-radius: var(--r);
}
.calc-link:hover { background: #d6eefb; color: var(--blue-dark); border-color: var(--blue); }
.calc-link strong { font-weight: 600; }

.calc-tag {
  font-family: var(--sans); font-size: .63rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  background: var(--surface-2); color: var(--ink-soft);
  padding: 3px 9px; border-radius: 999px;
}


.calc-sum { display: flex; gap: 22px 26px; flex-wrap: wrap; padding-top: 18px; margin-top: 4px; border-top: 1px dashed var(--line); }
.calc-sum div { display: flex; flex-direction: column; }
.calc-sum strong { font-family: var(--serif); font-size: 1.45rem; font-weight: 600; line-height: 1.1; }
.calc-sum small { font-size: .78rem; color: var(--ink-faint); }

.calc-inputs { display: grid; gap: 12px; margin: 0 0 4px; }
@media (min-width: 380px) { .calc-inputs { grid-template-columns: 1fr 1.2fr; } }
.calc-inputs .field { margin: 0; }

.calc-bar { height: 7px; border-radius: 999px; background: var(--surface-2); overflow: hidden; margin: 14px 0 10px; }
.calc-bar span { display: block; height: 100%; border-radius: 999px; transition: width .3s; }
.calc-bar.malo span { background: var(--warn); }
.calc-bar.akorat span { background: var(--ok); }
.calc-bar.hodne span { background: var(--blue); }

.calc-verdict { margin: 10px 0 6px; font-size: .93rem; }
.calc-verdict.malo strong { color: var(--warn); }
.calc-verdict.akorat strong { color: var(--ok); }
.calc-verdict.hodne strong { color: var(--blue-dark); }

.notice { border-radius: var(--r-sm); padding: 12px 15px; font-size: .9rem; margin-bottom: 16px; }
.notice-info { background: var(--blue-soft); color: var(--blue-dark); }
.notice-warn { background: var(--warn-soft); color: var(--warn); }
.notice-error { background: var(--danger-soft); color: var(--danger); }
.notice-ok { background: var(--ok-soft); color: var(--ok); }

/* ---------- platební údaje ---------- */

.pay { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; margin-top: 18px; text-align: center; }
.pay img { width: 200px; height: 200px; border-radius: var(--r-sm); background: #fff; }
.pay dl { display: grid; grid-template-columns: auto 1fr; gap: 5px 14px; text-align: left; margin: 16px 0 0; font-size: .92rem; }
.pay dt { color: var(--ink-soft); }
.pay dd { margin: 0; font-weight: 600; text-align: right; }

/* ---------- pásy ---------- */

.band { background: var(--slate); color: #dde7ec; }
.band h2 { color: #fff; }
.band .eyebrow { color: #7fc7e8; }
.band .section-head p { color: #a8bfc9; }
.steps { display: grid; gap: 30px; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); }
.step .n { font-family: var(--serif); font-size: 2.5rem; font-weight: 500; color: #6c94a8; line-height: 1; display: block; margin-bottom: 10px; }
.step h3 { color: #fff; font-size: 1.07rem; margin-bottom: 6px; }
.step p { color: #a8bfc9; font-size: .92rem; margin: 0; }

.info-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); }
.info-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; }
.info-card h3 { margin-bottom: .4em; }
.info-card p { margin: 0; color: var(--ink-soft); font-size: .94rem; }
.info-card ul { margin: 0; padding-left: 18px; color: var(--ink-soft); font-size: .94rem; }
.info-card li { margin-bottom: 5px; }

.site-footer { border-top: 1px solid var(--line); padding: 58px 0 34px; font-size: .92rem; color: var(--ink-soft); }
.site-footer h3 { font-size: 1.05rem; color: var(--ink); margin-bottom: 11px; }
.footer-grid { display: grid; gap: 34px; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); margin-bottom: 40px; }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 20px; font-size: .85rem; color: var(--ink-faint); }

.skeleton {
  background: linear-gradient(90deg, var(--surface-2) 25%, #f2f7f9 37%, var(--surface-2) 63%);
  background-size: 400% 100%; animation: shimmer 1.4s ease infinite;
  border-radius: var(--r); height: 300px;
}
@keyframes shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
