/* ==========================================================================
   SmartLunch · Raut & catering — samostatná landing page
   Brand tokeny vycházejí z static/css/smartlunch/variables.css
   ========================================================================== */

:root {
  /* SmartLunch brand core — kanonický zdroj: static/css/smartlunch/variables.css */
  --brand: #ffab00;
  --brand-dark: #e09a00;
  --brand-ink: #ff991f;      /* oranžový textový/ikonový akcent na světlém podkladu */
  --brand-tint: #fff2cc;

  --navy: #1c1c31;
  --navy-dark: #121221;
  --navy-soft: #2d2d53;

  --paper: #f5f5fa;          /* podklad stránky */
  --surface: #ffffff;
  --ink: #000000;
  --ink-soft: #6e6d85;

  /* Linky = alfa kanál brand navy (žádné nové HEX) */
  --line: rgba(28, 28, 49, 0.08);
  --line-strong: rgba(28, 28, 49, 0.16);

  --green: #3dae4e;
  --green-ink: #1f5b2a;
  --green-tint: #e7f6e9;
  --blue: #34b5e5;
  --blue-tint: rgba(52, 181, 229, 0.1);
  --red: #8b1a1a;
  --red-tint: #fde8e8;
  --warning-text: #6a4e12;
  --error-border: #f5b5b5;

  --radius: 18px;
  --radius-sm: 12px;
  --radius-xs: 10px;

  --shadow-card: 0 10px 30px -18px rgba(28, 28, 49, 0.35);
  --shadow-float: 0 24px 50px -24px rgba(18, 18, 33, 0.5);

  --font: "Poppins", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --header-h: 76px;
  --maxw: 1180px;
}

/* ---------- Reset & base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  margin: 0;
  color: var(--navy);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

p {
  margin: 0 0 1em;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--brand-ink);
}

img {
  max-width: 100%;
  height: auto;
}

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

section[id] {
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 20px;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 1.1em;
  height: 1.1em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -0.15em;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -48px;
  left: 16px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 0 0 10px 10px;
  background: var(--brand);
  color: var(--navy);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 0;
}

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
}

/* ---------- Tlačítka ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 20px;
  border: 1.5px solid transparent;
  border-radius: 30px;
  background: transparent;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease,
    color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn .icon {
  font-size: 1rem;
}

.btn--primary {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--navy);
  box-shadow: 0 10px 22px -12px rgba(255, 171, 0, 0.9);
}

.btn--primary:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
}

.btn--ghost {
  background: var(--surface);
  border-color: var(--line-strong);
  color: var(--navy);
}

.btn--ghost:hover {
  background: var(--surface);
  border-color: var(--brand);
  color: var(--brand-ink);
}

.btn--sm {
  padding: 9px 14px;
  font-size: 0.8rem;
  border-radius: 30px;
}

.btn--lg {
  padding: 15px 26px;
  font-size: 0.98rem;
  border-radius: 30px;
}

.btn--block {
  width: 100%;
}

.btn:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

/* ---------- Hlavička ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--navy-dark);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  min-width: 0;
}

.brand__logo {
  display: block;
  height: 38px;
  width: auto;
  max-width: 190px;
  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.main-nav a {
  padding: 8px 12px;
  border-radius: 8px;
  color: #ffffff;
  font-size: 0.86rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.main-nav a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--brand);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 40px;
  height: 40px;
  padding: 0 9px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 10px;
  background: var(--surface);
  cursor: pointer;
}

.nav-toggle__bar {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--navy);
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  z-index: 55;
  padding: 8px 16px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 18px 30px -20px rgba(28, 28, 49, 0.35);
}

.mobile-nav.is-open {
  display: block;
}

.mobile-nav a,
.mobile-nav__recipients {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 12px 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--navy);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.mobile-nav a:hover,
.mobile-nav__recipients:hover {
  background: var(--paper);
  color: var(--brand-ink);
}

.mobile-nav__recipients {
  margin-top: 4px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  border-radius: 0 0 10px 10px;
}

@media (min-width: 901px) {
  .mobile-nav {
    display: none !important;
  }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--brand);
  color: var(--navy);
  font-size: 0.68rem;
  font-weight: 800;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 68px 0 84px;
  background: var(--surface);
  color: var(--ink);
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  align-items: center;
  gap: 56px;
}

.eyebrow {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-ink);
}

.hero__title {
  margin: 12px 0 18px;
  color: var(--navy);
  font-size: clamp(2.35rem, 4.6vw, 3.8rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.hl {
  color: var(--brand-ink);
}

.hero__lede {
  max-width: 50ch;
  margin: 0 0 26px;
  color: var(--ink-soft);
  font-size: 1.03rem;
  line-height: 1.6;
}

.hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 0 0 30px;
  padding: 0;
  list-style: none;
}

.hero__chips li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 500;
}

.hero__chips .icon {
  color: var(--brand-ink);
  font-size: 0.95rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.hero__note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.78rem;
}

.hero__note .icon {
  margin-top: 0.12em;
  color: var(--brand-ink);
}

/* ---------- Hero karta (doprava) ---------- */
.hero-card {
  padding: 26px;
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.hero-card__title {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 16px;
  font-size: 1rem;
  color: var(--navy);
}

.hero-card__title .icon {
  color: var(--brand-ink);
  font-size: 1.15rem;
}

.hero-card__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-card__list li {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 12px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
}

.hero-card__list li:first-child {
  padding-top: 0;
  border-top: 0;
}

.hero-card__day {
  align-self: start;
  padding: 5px 8px;
  border-radius: 8px;
  background: var(--brand-tint);
  color: var(--brand-ink);
  font-size: 0.72rem;
  font-weight: 700;
  text-align: center;
}

.hero-card__day--alt {
  background: var(--paper);
  color: var(--navy);
}

.hero-card__day--ghost {
  background: var(--surface);
  color: var(--ink-soft);
  border: 1px solid var(--line-strong);
}

.hero-card__text {
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

.hero-card__text strong {
  color: var(--ink);
}

.hero-card__foot {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 14px 0 0;
  padding: 11px 13px;
  border-radius: var(--radius-xs);
  background: var(--paper);
  color: var(--ink-soft);
  font-size: 0.76rem;
}

.hero-card__foot .icon {
  color: var(--green);
  font-size: 1rem;
}

/* ---------- Benefity ---------- */
.benefits {
  position: relative;
  z-index: 2;
  padding-bottom: 8px;
}

.benefits__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.benefit {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.benefit__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 12px;
  border-radius: 12px;
  background: var(--brand-tint);
  color: var(--brand-ink);
}

.benefit__icon .icon {
  font-size: 1.2rem;
}

.benefit h3 {
  margin-bottom: 5px;
  font-size: 0.94rem;
}

.benefit p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.8rem;
  line-height: 1.5;
}

/* ---------- Sekce ---------- */
.section-head {
  max-width: 640px;
  margin: 0 0 28px;
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.section-title {
  margin: 8px 0 10px;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  font-weight: 800;
}

.section-title .step {
  margin-right: 8px;
  vertical-align: middle;
}

.section-lede {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.97rem;
  line-height: 1.6;
}

.section-lede--center {
  margin-inline: auto;
  max-width: 58ch;
}

/* ---------- Info pruh ---------- */
.notice {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 28px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.notice__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--brand-tint);
  color: var(--brand-ink);
}

.notice__icon .icon {
  font-size: 1.15rem;
}

.notice__title {
  margin: 0 0 4px;
  font-size: 0.95rem;
}

.notice__body p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.86rem;
  line-height: 1.55;
}

.notice__body p strong {
  color: var(--ink);
}

.notice__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.notice__meta li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-soft);
  font-size: 0.76rem;
  font-weight: 500;
}

.notice__meta .icon {
  color: var(--brand-ink);
  font-size: 0.95rem;
}

/* ---------- Objednávka: layout ---------- */
.order {
  padding: 56px 0 16px;
}

.order__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: start;
  gap: 26px;
}

.order__main {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

.order__aside {
  position: sticky;
  top: calc(var(--header-h) + 18px);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* ---------- Panel ---------- */
.panel {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.panel__title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--navy);
}

.panel__title .icon {
  color: var(--brand-ink);
}

.step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--brand);
  color: var(--navy);
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1;
}

.step--lg {
  width: 32px;
  height: 32px;
  font-size: 0.95rem;
}

/* ---------- Hledání ---------- */
.search {
  position: relative;
  flex: 1 1 220px;
  max-width: 320px;
}

.search .icon {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-soft);
  font-size: 0.9rem;
  pointer-events: none;
}

.search input {
  width: 100%;
  padding: 9px 12px 9px 34px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-xs);
  background: var(--paper);
  font-size: 0.82rem;
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.search input::placeholder {
  color: var(--ink-soft);
}

.search input:focus {
  outline: none;
  border-color: var(--brand);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(255, 171, 0, 0.22);
}

/* ---------- Kategorie ---------- */
.categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cat {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  font-size: 0.79rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.cat .icon {
  font-size: 0.95rem;
  color: var(--ink-soft);
  transition: color 0.15s ease;
}

.cat:hover {
  border-color: var(--brand);
  background: var(--surface);
}

.cat.is-active {
  border-color: var(--brand);
  background: var(--brand);
  color: var(--navy);
}

.cat.is-active .icon {
  color: var(--navy);
}

/* ---------- Toolbar katalogu ---------- */
.catalog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 2px;
  color: var(--ink-soft);
  font-size: 0.78rem;
}

.catalog-toolbar__count {
  font-weight: 600;
}

.catalog-toolbar__hint {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.catalog-toolbar__hint .icon {
  color: var(--brand-ink);
  font-size: 0.9rem;
}

.catalog-toolbar__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface);
  color: var(--brand-ink);
  font-family: inherit;
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.catalog-toolbar__link:hover {
  border-color: var(--brand);
  background: var(--surface);
  color: var(--navy);
}

.catalog-toolbar__link .icon {
  color: inherit;
  font-size: 0.9rem;
}

/* ---------- Katalog ---------- */
.catalog {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.catalog-empty {
  padding: 48px 24px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.86rem;
}

.catalog-empty .icon {
  display: block;
  margin: 0 auto 10px;
  color: var(--line-strong);
  font-size: 1.8rem;
}

.catalog-empty strong {
  display: block;
  margin-bottom: 4px;
  color: var(--navy);
  font-size: 0.92rem;
}

.catalog-empty .btn {
  margin-top: 12px;
}

.product-group {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.product-group__head {
  margin: 0;
}

/* Hlavička kategorie = tlačítko accordionu */
.product-group__toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 0 0 13px;
  border: 0;
  background: transparent;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}

.product-group:not(.is-collapsed) .product-group__toggle {
  border-bottom: 1px solid var(--line);
}

.product-group__toggle:hover .product-group__title {
  color: var(--brand-ink);
}

.product-group__toggle:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 4px;
  border-radius: 10px;
}

.product-group__title {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  color: var(--navy);
  font-size: 0.96rem;
  font-weight: 700;
  transition: color 0.15s ease;
}

.product-group__title::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
}

.product-group__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.product-group__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.product-group__badge-sep {
  color: var(--line-strong);
}

.product-group__badge.is-active {
  border-color: var(--green);
  background: var(--green-tint);
  color: var(--green-ink);
}

.product-group__badge.is-active .product-group__badge-sep {
  color: rgba(31, 91, 42, 0.35);
}

.product-group__badge-price {
  padding-left: 6px;
  border-left: 1px solid rgba(31, 91, 42, 0.3);
  color: var(--green-ink);
  font-weight: 800;
}

.product-group__chevron {
  display: inline-flex;
  flex: none;
  color: var(--brand-ink);
  font-size: 1.05rem;
  transition: transform 0.2s ease;
}

.product-group.is-collapsed .product-group__chevron {
  transform: rotate(-90deg);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(248px, 1fr));
  gap: 12px;
  margin-top: 15px;
}

/* Zbalená kategorie – mřížku skryjeme i přes display:grid výše */
.product-grid[hidden] {
  display: none;
}

/* ---------- Produkt ---------- */
.product {
  display: flex;
  flex-direction: column;
  gap: 11px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.product:hover {
  border-color: var(--line-strong);
  background: var(--surface);
}

.product.is-selected {
  border-color: var(--brand);
  background: var(--brand-tint);
  box-shadow: inset 0 0 0 1px var(--brand);
}

.product__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.product__info {
  flex: 1;
  min-width: 0;
}

.product__name {
  margin: 0;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.35;
}

.product__meta {
  margin: 3px 0 0;
  color: var(--ink-soft);
  font-size: 0.72rem;
  line-height: 1.4;
}

/* ---------- Alergeny u produktu ---------- */
.product__allergens {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

.allergen-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  min-height: 20px;
  padding: 1px 5px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface);
  color: var(--brand-ink);
  font-family: inherit;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.allergen-chip:hover,
.allergen-chip:focus-visible {
  border-color: var(--brand);
  background: var(--brand-tint);
  color: var(--navy);
}

/* Popisek alergenu při hoveru – pouze zařízení s myší, na dotyku otevírá modal */
@media (hover: hover) and (pointer: fine) {
  .allergen-chip::after {
    content: attr(data-name);
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    z-index: 20;
    width: max-content;
    max-width: 190px;
    padding: 6px 9px;
    border-radius: 8px;
    background: var(--navy-dark);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 500;
    line-height: 1.35;
    text-align: left;
    white-space: normal;
    transform: translate(-50%, 4px);
    opacity: 0;
    pointer-events: none;
    box-shadow: 0 12px 24px -12px rgba(0, 0, 0, 0.5);
    transition: opacity 0.15s ease, transform 0.15s ease;
  }

  .allergen-chip:hover::after,
  .allergen-chip:focus-visible::after {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

.product__price {
  flex: none;
  text-align: right;
}

.product__price strong {
  display: block;
  color: var(--navy);
  font-size: 0.9rem;
  font-weight: 800;
  white-space: nowrap;
}

.product__price small {
  display: block;
  color: var(--ink-soft);
  font-size: 0.66rem;
}

.product__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.product__min {
  padding: 3px 7px;
  border-radius: 6px;
  background: var(--brand-tint);
  color: var(--brand-ink);
  font-size: 0.68rem;
  font-weight: 700;
  white-space: nowrap;
}

.product__qty-label {
  color: var(--ink-soft);
  font-size: 0.72rem;
}

/* ---------- Stepper ---------- */
.stepper {
  display: flex;
  align-items: center;
  gap: 5px;
}

.stepper button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.stepper button:hover {
  border-color: var(--brand);
  background: var(--brand-tint);
}

.stepper button.is-add {
  border-color: var(--brand);
  background: var(--brand);
  color: var(--navy);
}

.stepper button.is-add:hover {
  border-color: var(--brand-dark);
  background: var(--brand-dark);
}

.stepper .icon {
  font-size: 0.72rem;
  stroke-width: 2.4;
}

.stepper input {
  width: 46px;
  height: 28px;
  padding: 0 2px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
  color: var(--navy);
  font-size: 0.8rem;
  font-weight: 700;
  text-align: center;
  -moz-appearance: textfield;
}

.stepper input::-webkit-outer-spin-button,
.stepper input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.stepper input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 2px rgba(255, 171, 0, 0.25);
}

/* ---------- Formulářová pole ---------- */
.field {
  margin-bottom: 16px;
}

.field:last-child {
  margin-bottom: 0;
}

.field__label {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 7px;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 600;
}

.field__label .icon {
  color: var(--brand-ink);
  font-size: 0.95rem;
}

.req {
  color: var(--brand-ink);
  font-weight: 700;
}

.input {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-xs);
  background: var(--paper);
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 500;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.input::placeholder {
  color: var(--ink-soft);
  font-weight: 400;
}

.input:focus {
  outline: none;
  border-color: var(--brand);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(255, 171, 0, 0.22);
}

select.input {
  appearance: none;
  padding-right: 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236e6d85' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 14px;
}

textarea.input {
  min-height: 88px;
  resize: vertical;
  line-height: 1.5;
}

.field__hint {
  margin: 6px 0 0;
  color: var(--ink-soft);
  font-size: 0.72rem;
}

.field__hint.is-warning {
  color: var(--brand-ink);
  font-weight: 600;
}

/* ---------- Checkbox řádek ---------- */
.checkline {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 16px;
  padding: 12px;
  border: 1px dashed var(--brand);
  border-radius: var(--radius-xs);
  background: var(--brand-tint);
  cursor: pointer;
}

.checkline input {
  flex: none;
  width: 16px;
  height: 16px;
  margin: 2px 0 0;
  accent-color: var(--brand-ink);
}

.checkline span {
  display: block;
}

.checkline strong {
  display: block;
  color: var(--warning-text);
  font-size: 0.78rem;
  line-height: 1.35;
}

.checkline small {
  display: block;
  margin-top: 2px;
  color: var(--brand-ink);
  font-size: 0.7rem;
  line-height: 1.4;
}

/* ---------- Logistika ---------- */
.logistics {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  background: var(--paper);
  transition: background 0.18s ease, border-color 0.18s ease;
}

.logistics__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
}

.logistics__label {
  color: var(--ink-soft);
  font-size: 0.74rem;
}

.logistics__day {
  color: var(--navy);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.logistics__text {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.73rem;
  line-height: 1.45;
}

.logistics__text strong {
  color: var(--ink);
}

.logistics.is-regular {
  border-color: #bee6c4;
  background: var(--green-tint);
}

.logistics.is-regular .logistics__day,
.logistics.is-regular .logistics__text strong {
  color: var(--green-ink);
}

.logistics.is-extra {
  border-color: rgba(52, 181, 229, 0.35);
  background: var(--blue-tint);
}

.logistics.is-extra .logistics__day,
.logistics.is-extra .logistics__text strong {
  color: var(--navy);
}

/* ---------- Košík ---------- */
.cart-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 240px;
  margin-bottom: 14px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}

.cart-items::-webkit-scrollbar {
  width: 5px;
}

.cart-items::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: var(--line-strong);
}

.cart-empty {
  margin: 0;
  padding: 18px 0;
  color: var(--ink-soft);
  font-size: 0.78rem;
  text-align: center;
}

.cart-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  background: var(--paper);
}

.cart-item__info {
  flex: 1;
  min-width: 0;
}

.cart-item__name {
  margin: 0;
  overflow: hidden;
  color: var(--navy);
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cart-item__meta {
  display: block;
  margin-top: 1px;
  color: var(--ink-soft);
  font-size: 0.68rem;
}

.cart-item__right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}

.cart-item__total {
  color: var(--navy);
  font-size: 0.76rem;
  font-weight: 700;
  white-space: nowrap;
}

.cart-item__remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.cart-item__remove:hover {
  background: var(--red-tint);
  color: var(--red);
}

.cart-item__remove .icon {
  font-size: 0.78rem;
}

.cart-item {
  cursor: pointer;
}

.cart-item:hover {
  border-color: var(--brand);
  background: var(--surface);
}

.cart-item__edit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.cart-item__edit:hover {
  background: var(--brand-tint);
  color: var(--brand-ink);
}

.cart-item__edit .icon {
  font-size: 0.78rem;
}

/* ---------- Součty ---------- */
.totals {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
}

.totals__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--ink-soft);
}

.totals__row strong {
  color: var(--navy);
  font-weight: 700;
  white-space: nowrap;
}

.totals__label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 6px;
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink-soft);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.tag--free {
  background: var(--green-tint);
  color: var(--green-ink);
}

.tag--paid {
  background: var(--brand-tint);
  color: var(--brand-ink);
}

.progress {
  height: 6px;
  margin-top: 2px;
  border-radius: 999px;
  background: var(--paper);
  overflow: hidden;
}

.progress__bar {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--brand);
  transition: width 0.3s ease, background 0.3s ease;
}

.progress__bar.is-free {
  background: var(--green);
}

.progress__text {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.72rem;
  line-height: 1.45;
}

.progress__text strong {
  color: var(--ink);
}

.totals__grand {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-top: 2px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.totals__grand span {
  color: var(--navy);
  font-size: 0.86rem;
  font-weight: 700;
}

.totals__grand strong {
  color: var(--brand-ink);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.totals__vat {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--ink-soft);
  font-size: 0.7rem;
}

.panel--cart .btn--block {
  margin-top: 14px;
}

.link-danger {
  padding: 3px 6px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--red);
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
}

.link-danger:hover {
  background: var(--red-tint);
}

/* ---------- Výdejní místo ---------- */
.checkout {
  padding: 64px 0;
}

.checkout__inner {
  max-width: 900px;
}

.checkout__form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.checkout__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.checkout__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.checkout__actions .btn--primary {
  flex: 1 1 280px;
}

.checkout__note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.78rem;
  line-height: 1.5;
}

.checkout__note .icon {
  margin-top: 0.1em;
  color: var(--brand-ink);
  font-size: 1rem;
}

.link-inline {
  padding: 0;
  border: 0;
  background: none;
  color: var(--brand-ink);
  font-size: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.link-inline:hover {
  color: var(--navy);
}

/* ---------- Číslo poptávky ---------- */
.order-ref {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 12px 14px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-xs);
  background: var(--paper);
}

.order-ref__label {
  display: block;
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.order-ref__hint {
  margin: 2px 0 0;
  color: var(--ink-soft);
  font-size: 0.72rem;
}

.order-ref__value {
  color: var(--navy);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.85rem;
  overflow-wrap: anywhere;
}

/* ---------- Jak to funguje ---------- */
.how {
  padding: 64px 0;
  background: var(--surface);
  color: var(--ink);
}

.how .section-title {
  color: var(--navy);
}

.how .eyebrow {
  color: var(--brand-ink);
}

.how .section-lede {
  color: var(--ink-soft);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps__item {
  padding: 24px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: var(--paper);
}

.steps__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 14px;
  border-radius: 10px;
  background: var(--brand);
  color: var(--navy);
  font-size: 0.95rem;
  font-weight: 800;
}

.steps__item h3 {
  margin-bottom: 6px;
  color: var(--navy);
  font-size: 0.98rem;
}

.steps__item p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.82rem;
  line-height: 1.55;
}

/* ---------- FAQ ---------- */
.faq {
  padding: 64px 0;
  background: var(--surface);
}

.faq__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 820px;
  margin: 0 auto;
}

.faq__item {
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
}

.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 0;
  color: var(--navy);
  font-size: 0.9rem;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__item summary .icon {
  color: var(--brand-ink);
  font-size: 1rem;
  transition: transform 0.2s ease;
}

.faq__item[open] summary .icon {
  transform: rotate(180deg);
}

.faq__item p {
  margin: 0 0 16px;
  padding-right: 12px;
  color: var(--ink-soft);
  font-size: 0.84rem;
  line-height: 1.6;
}

/* ---------- Patička ---------- */
.site-footer {
  padding: 48px 0 22px;
  background: var(--navy-dark);
  color: rgba(255, 255, 255, 0.7);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 28px;
}

.footer__logo {
  display: inline-block;
  margin-bottom: 14px;
}

.footer__logo img {
  display: block;
  height: 28px;
  width: auto;
}

.footer__brand p {
  margin: 0;
  max-width: 38ch;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.82rem;
  line-height: 1.55;
}

.footer__col h4 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.footer__col ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer__col a {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.8rem;
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer__col a:hover {
  color: var(--brand);
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.74rem;
}

/* ---------- Modal ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal[hidden] {
  display: none;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 18, 33, 0.64);
  backdrop-filter: blur(4px);
}

.modal__card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  max-height: calc(100vh - 40px);
  padding: 22px;
  overflow-y: auto;
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.6);
  animation: modal-in 0.18s ease-out;
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.modal__title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 0.95rem;
}

.modal__title .icon {
  color: var(--brand-ink);
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink-soft);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.icon-btn:hover {
  background: var(--surface);
  border-color: var(--brand);
  color: var(--brand-ink);
}

.modal__lede {
  margin: 0 0 14px;
  color: var(--ink-soft);
  font-size: 0.8rem;
  line-height: 1.5;
}

.recipients {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.recipients li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  background: var(--paper);
  color: var(--navy);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.75rem;
  overflow-wrap: anywhere;
}

.recipients .icon {
  color: var(--green);
  font-size: 1rem;
}

.recipients li[hidden] {
  display: none;
}

.recipients__remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 24px;
  height: 24px;
  margin-left: auto;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.recipients__remove:hover {
  background: var(--red-tint);
  color: var(--red);
}

.recipients__remove .icon {
  color: inherit;
  font-size: 0.8rem;
}

.notify-field {
  margin-top: 4px;
  margin-bottom: 16px;
}

/* ---------- Modal množství ---------- */
.modal__card--qty {
  max-width: 360px;
}

.qty-editor {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 18px 0 10px;
}

.qty-editor__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface);
  color: var(--navy);
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.qty-editor__btn:hover {
  border-color: var(--brand);
  background: var(--surface);
  color: var(--brand-ink);
}

.qty-editor__btn--add {
  border-color: var(--brand);
  background: var(--brand);
  color: var(--navy);
}

.qty-editor__btn--add:hover {
  border-color: var(--brand-dark);
  background: var(--brand-dark);
}

.qty-editor__input {
  width: 84px;
  height: 46px;
  padding: 0 6px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface);
  color: var(--navy);
  font-size: 1.1rem;
  font-weight: 700;
  text-align: center;
  -moz-appearance: textfield;
}

.qty-editor__input::-webkit-outer-spin-button,
.qty-editor__input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.qty-editor__input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(255, 171, 0, 0.22);
}

.qty-editor__hint {
  min-height: 1.2em;
  margin: 0 0 4px;
  text-align: center;
}

.qty-editor__actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.qty-editor__actions .btn {
  flex: 1;
}

/* ---------- Modal seznamu alergenů ---------- */
.modal__card--allergens {
  max-width: 480px;
}

.allergens {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.allergen-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  background: var(--paper);
  font-size: 0.74rem;
  line-height: 1.35;
}

.allergen-item__code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  border-radius: 6px;
  background: var(--brand-tint);
  color: var(--brand-ink);
  font-size: 0.7rem;
  font-weight: 800;
}

.allergen-item__name {
  color: var(--ink);
}

.allergen-item.is-active {
  border-color: var(--brand);
  background: var(--brand-tint);
  box-shadow: inset 0 0 0 1px var(--brand);
}

.allergen-item.is-active .allergen-item__code {
  background: var(--brand);
  color: var(--navy);
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  right: 20px;
  bottom: 84px;
  z-index: 110;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: min(420px, calc(100vw - 40px));
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: var(--navy-dark);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.4;
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.55);
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: none;
}

.toast__icon {
  display: inline-flex;
  flex: none;
  color: var(--green);
}

.toast__icon .icon {
  font-size: 1.15rem;
}

.toast.is-error .toast__icon {
  color: var(--error-border);
}

/* ---------- Mobilní souhrn ---------- */
.mobile-bar {
  display: none;
}

/* ---------- Zpět na začátek ---------- */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface);
  color: var(--navy);
  box-shadow: var(--shadow-card);
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease,
    background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.back-to-top:hover {
  border-color: var(--brand);
  background: var(--brand);
  color: var(--navy);
}

.back-to-top:active {
  transform: translateY(1px);
}

.back-to-top .icon {
  font-size: 1.15rem;
}

/* ---------- Responzivita ---------- */
@media (max-width: 1080px) {
  .order__layout {
    grid-template-columns: minmax(0, 1fr) 330px;
  }

  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero__inner {
    gap: 40px;
  }
}

@media (max-width: 980px) {
  .hero {
    padding: 56px 0 72px;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .hero__lede {
    max-width: 60ch;
  }

  .hero-card {
    max-width: 560px;
  }

  .benefits__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .order__layout {
    grid-template-columns: 1fr;
  }

  .order__aside {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }
}

@media (max-width: 900px) {
  .main-nav {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .footer__inner {
    grid-template-columns: 1fr 1fr;
  }

  .footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 860px) {
  body {
    padding-bottom: 78px;
  }

  .mobile-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 80;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 16px;
    border-top: 1px solid var(--line);
    background: #fff;
    box-shadow: 0 -8px 24px -12px rgba(28, 28, 49, 0.25);
  }

  .mobile-bar__sum {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    font-size: 0.64rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-soft);
  }

  .mobile-bar__sum strong {
    color: var(--navy);
    font-size: 1rem;
    letter-spacing: -0.01em;
  }

  .toast {
    bottom: 150px;
  }

  .back-to-top {
    right: 16px;
    bottom: 88px;
  }
}

@media (max-width: 760px) {
  .steps {
    grid-template-columns: 1fr;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .order {
    padding-top: 40px;
  }

  .checkout,
  .how,
  .faq {
    padding: 48px 0;
  }
}

@media (max-width: 700px) {
  .order__aside {
    display: flex;
    flex-direction: column;
  }

  .checkout__form {
    padding: 18px;
    border-radius: var(--radius);
  }

  .checkout__grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .notice {
    padding: 16px;
  }
}

@media (max-width: 640px) {
  .header-actions__label {
    display: none;
  }

  .checkout__actions .btn {
    width: 100%;
  }

  .checkout__actions .btn--primary {
    flex: none;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .container {
    padding-inline: 16px;
  }

  .hero {
    padding: 44px 0 64px;
  }

  .hero__title {
    font-size: clamp(2rem, 9vw, 2.6rem);
  }

  .hero__lede {
    font-size: 0.95rem;
  }

  .hero-card {
    padding: 20px;
  }

  .benefits__grid {
    grid-template-columns: 1fr;
  }

  .brand__logo {
    height: 32px;
    max-width: 150px;
  }

  .footer__inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .panel__head {
    align-items: flex-start;
  }

  .search {
    max-width: none;
  }

  .categories {
    gap: 6px;
  }

  .cat {
    padding: 7px 11px;
    font-size: 0.74rem;
  }

  /* Alergeny – na mobilu jeden sloupec a větší dotykové plochy */
  .allergens {
    grid-template-columns: 1fr;
  }

  .allergen-chip {
    min-width: 24px;
    min-height: 24px;
    padding: 2px 7px;
    font-size: 0.72rem;
  }

  /* Accordion kategorií – badge přes celou šířku, šipka vpravo */
  .product-group {
    padding: 16px;
  }

  .product-group__toggle {
    flex-wrap: wrap;
    gap: 8px;
  }

  .product-group__title {
    order: 1;
    flex: 1 1 auto;
  }

  .product-group__chevron {
    order: 2;
    margin-left: auto;
  }

  .product-group__meta {
    order: 3;
    width: 100%;
    margin-left: 0;
  }

  .product-group__badge {
    flex-wrap: wrap;
    gap: 4px;
    white-space: normal;
  }
}

@media (max-width: 480px) {
  .header-actions .btn--ghost {
    display: none;
  }

  .section-head {
    margin-bottom: 22px;
  }

  .step--lg {
    width: 28px;
    height: 28px;
  }
}

@media (max-width: 420px) {
  .brand__logo {
    height: 28px;
    max-width: 125px;
  }

  .header-actions .btn--primary {
    padding: 8px 10px;
    font-size: 0.72rem;
  }

  .header-actions .btn--primary .icon {
    display: none;
  }

  .nav-toggle {
    width: 36px;
    height: 36px;
    padding: 0 7px;
  }
}

@media (max-width: 380px) {
  .header-actions .btn--primary {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ---------- Tisk / PDF ---------- */
.print-order {
  display: none;
}

@media print {
  @page {
    size: A4;
    margin: 14mm;
  }

  body.printing {
    padding: 0 !important;
    background: #fff;
    color: #000;
  }

  body.printing > *:not(.print-order) {
    display: none !important;
  }

  .back-to-top,
  .nav-toggle,
  .mobile-nav {
    display: none !important;
  }

  body.printing .print-order {
    display: block;
    color: #000;
    font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 10.5pt;
    line-height: 1.45;
  }

  .print-order__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #1c1c31;
  }

  .print-order__eyebrow {
    margin: 0 0 4px;
    color: #555;
    font-size: 8pt;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }

  .print-order h1 {
    margin: 0;
    color: #000;
    font-size: 19pt;
    line-height: 1.1;
  }

  .print-order__number {
    flex: none;
    text-align: right;
  }

  .print-order__number span {
    display: block;
    color: #555;
    font-size: 7.5pt;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .print-order__number strong {
    display: block;
    margin-top: 2px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12pt;
  }

  .print-order__meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 24px;
    margin: 0 0 16px;
  }

  .print-order__meta div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 3px 0;
    border-bottom: 1px solid #ddd;
  }

  .print-order__meta dt {
    color: #555;
  }

  .print-order__meta dd {
    margin: 0;
    font-weight: 600;
    text-align: right;
  }

  .print-order table {
    width: 100%;
    margin-bottom: 14px;
    border-collapse: collapse;
  }

  .print-order th {
    padding: 6px 4px;
    border-bottom: 1.5px solid #1c1c31;
    font-size: 8pt;
    letter-spacing: 0.05em;
    text-align: left;
    text-transform: uppercase;
  }

  .print-order td {
    padding: 5px 4px;
    border-bottom: 1px solid #ddd;
    vertical-align: top;
  }

  .print-order .num {
    text-align: right;
    white-space: nowrap;
  }

  .print-order__totals {
    width: 55%;
    margin-left: auto;
  }

  .print-order__totals div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 3px 0;
  }

  .print-order__totals .grand {
    margin-top: 4px;
    padding-top: 7px;
    border-top: 1.5px solid #1c1c31;
    font-size: 11.5pt;
    font-weight: 700;
  }

  .print-order__note {
    margin-top: 16px;
    padding: 9px 11px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 9.5pt;
  }

  .print-order__foot {
    margin-top: 20px;
    padding-top: 8px;
    border-top: 1px solid #ccc;
    color: #555;
    font-size: 8pt;
  }

  .print-order tr {
    page-break-inside: avoid;
  }
}










