/* ==========================================================================
   MealPrep Obala — javna stran (mobilno-prvo)
   ========================================================================== */

:root {
  --cream: #fbf6ed;
  --cream-deep: #f4ecdd;
  --card: #fffdf8;
  --ink: #241f19;
  --muted: #6f6455;
  --muted-soft: #93897a;
  --line: #e7ddcb;
  --olive: #2f3d2c;
  --olive-soft: #55694c;
  --terra: #c2603c;
  --terra-dark: #a54d2d;
  --gold: #d9a441;
  --sage: #8fa383;
  --ok: #3f7a4e;
  --danger: #b23a2e;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --shadow-sm: 0 1px 2px rgba(36, 31, 25, 0.05), 0 4px 14px -8px rgba(36, 31, 25, 0.16);
  --shadow: 0 2px 4px rgba(36, 31, 25, 0.04), 0 14px 34px -18px rgba(36, 31, 25, 0.28);
  --shadow-lg: 0 30px 70px -30px rgba(36, 31, 25, 0.45);

  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --maxw: 1180px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

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

body.no-scroll { overflow: hidden; }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; }
ul, ol, dl { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--olive);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 10px 10px;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 0; }

:where(a, button, input, textarea, select, [tabindex]):focus-visible {
  outline: 2.5px solid var(--terra);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ---------- Gumbi ---------- */

.btn {
  --btn-bg: var(--olive);
  --btn-fg: #fdfaf3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1.5px solid transparent;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.005em;
  padding: 13px 22px;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.18s var(--ease), box-shadow 0.25s var(--ease), background 0.2s var(--ease);
  box-shadow: 0 1px 2px rgba(36, 31, 25, 0.12);
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -14px rgba(36, 31, 25, 0.6); }
.btn:active { transform: translateY(0) scale(0.99); }
.btn-primary { --btn-bg: var(--olive); }
.btn-primary:hover { background: #26331f; }
.btn-ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { background: rgba(36, 31, 25, 0.04); }
.btn-block { width: 100%; }
.btn-lg { padding: 16px 26px; font-size: 1.02rem; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; transform: none; box-shadow: none; }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--card);
  cursor: pointer;
  color: var(--muted);
  transition: background 0.16s var(--ease), color 0.16s var(--ease);
}
.icon-btn:hover { background: var(--cream-deep); color: var(--ink); }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
}
.pill-ghost { background: rgba(47, 61, 44, 0.07); color: var(--olive); }

.kicker {
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terra);
  margin: 0 0 12px;
}

/* ---------- Glava ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(16px, 4vw, 40px);
  background: color-mix(in srgb, var(--cream) 86%, transparent);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--olive);
}
.brand-mark { color: var(--olive); display: inline-flex; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: var(--font-serif); font-size: 1.08rem; letter-spacing: -0.01em; }
.brand-text small { font-size: 0.72rem; color: var(--muted); letter-spacing: 0.02em; }

.header-side { display: flex; align-items: center; gap: 14px; }
.phone-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
  padding: 6px 4px;
  border-bottom: 1.5px solid transparent;
  transition: border-color 0.2s var(--ease);
}
.phone-link:hover { border-color: var(--terra); color: var(--terra); }

@media (max-width: 640px) {
  .header-side .pill-ghost { display: none; }
  .brand-text small { display: none; }
}

/* ---------- Obvestilo ---------- */

.announce {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 9px 18px;
  background: var(--olive);
  color: #f3eee1;
  font-size: 0.84rem;
  font-weight: 500;
  text-align: center;
}
.announce[hidden] { display: none; }
.announce-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 0 rgba(217, 164, 65, 0.6);
  animation: pulse-dot 2.6s infinite;
}
@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(217, 164, 65, 0.55); }
  70% { box-shadow: 0 0 0 8px rgba(217, 164, 65, 0); }
  100% { box-shadow: 0 0 0 0 rgba(217, 164, 65, 0); }
}

/* ---------- Hero ---------- */

main { display: block; }

.hero {
  display: grid;
  gap: clamp(20px, 4vw, 52px);
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: clamp(26px, 5vw, 66px) clamp(18px, 4vw, 40px) clamp(10px, 2vw, 26px);
}
.hero-copy { min-width: 0; }

.hero h1 {
  font-size: clamp(2.1rem, 6.4vw, 4.1rem);
  margin-bottom: 16px;
}

.lede {
  font-size: clamp(1rem, 1.35vw, 1.12rem);
  color: var(--muted);
  max-width: 46ch;
}

.hero-facts {
  display: grid;
  gap: 0;
  grid-template-columns: minmax(0, 1fr);
  margin: 26px 0 28px;
  padding: 6px 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  max-width: 430px;
}
.hero-facts li {
  display: flex;
  gap: 11px;
  align-items: center;
  padding: 11px 0;
}
.hero-facts li + li { border-top: 1px solid var(--line-soft, var(--line)); }
.fact-icon {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  flex: 0 0 38px;
  border-radius: 12px;
  background: var(--cream-deep);
  color: var(--olive);
}
.fact-icon svg { width: 20px; height: 20px; display: block; }
.hero-facts strong { display: block; font-size: 0.94rem; letter-spacing: -0.01em; }
.hero-facts small { color: var(--muted); font-size: 0.76rem; }

.hero-actions { display: flex; align-items: center; gap: 14px 18px; flex-wrap: wrap; }
.hero-note {
  font-size: 0.8rem;
  color: var(--muted);
  max-width: 26ch;
  line-height: 1.4;
}
@media (max-width: 560px) {
  .hero-actions { flex-direction: column; align-items: stretch; gap: 12px; }
  .hero-actions .btn { justify-content: center; }
  .hero-note { max-width: none; text-align: center; }
}

.hero-art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 0;
  padding: 10px 0 26px;
}
.hero-photo {
  position: relative;
  margin: 0;
  width: min(480px, 80vw);
  animation: photo-in 0.9s var(--ease) both;
}
.hero-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 26px;
  border: 6px solid #fff;
  box-shadow: 0 30px 60px -28px rgba(36, 31, 25, 0.45);
}
@keyframes photo-in {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

.hero-photo .art-badge {
  position: absolute;
  z-index: 2;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: 999px;
  padding: 8px 15px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--olive);
  white-space: nowrap;
}
.art-badge-1 { top: 6%; right: -4%; animation: badge-in 0.7s var(--ease-spring) 0.35s both; }
.art-badge-2 { bottom: 6%; left: -5%; animation: badge-in 0.7s var(--ease-spring) 0.55s both; }
@keyframes badge-in {
  from { opacity: 0; transform: translateY(10px) scale(0.9); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 700px) {
  .hero-art { display: none; }
}

@media (min-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr); }
}

/* ---------- Jedilnik ---------- */

.menu-section {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: clamp(22px, 3.6vw, 40px) clamp(18px, 4vw, 40px) clamp(26px, 4vw, 46px);
  scroll-margin-top: 74px;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px 18px;
  margin-bottom: 16px;
}

.menu-nav {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 22px;
}
.section-title h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
.section-title p { color: var(--muted); font-size: 0.92rem; margin-top: 6px; }

.menu-nav { position: relative; }

.date-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 3px 2px 8px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}
.date-strip::-webkit-scrollbar { display: none; }
.date-chip {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 74px;
  padding: 9px 12px;
  border-radius: 14px;
  border: 1.5px solid var(--line);
  background: var(--card);
  cursor: pointer;
  transition: all 0.18s var(--ease);
  line-height: 1.2;
}
.date-chip:hover:not(:disabled) { border-color: var(--sage); transform: translateY(-1px); }
.date-chip .dc-day { font-size: 1.12rem; font-weight: 700; font-family: var(--font-serif); }
.date-chip .dc-label { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.date-chip[aria-pressed="true"] {
  background: var(--olive);
  border-color: var(--olive);
  color: #fdfaf3;
  box-shadow: 0 10px 20px -14px rgba(47, 61, 44, 0.9);
}
.date-chip[aria-pressed="true"] .dc-label { color: rgba(253, 250, 243, 0.72); }
.date-chip:disabled { opacity: 0.42; cursor: not-allowed; background: transparent; }
.date-chip .dc-closed { font-size: 0.6rem; color: var(--terra); font-weight: 600; }

.closed-notice {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 15px 18px;
  border-radius: var(--radius);
  background: #fdf1ea;
  border: 1px solid #f0cdbb;
  color: #8d3f26;
  font-size: 0.9rem;
  margin-bottom: 22px;
}
.closed-notice[hidden] { display: none; }

.menu-layout {
  display: grid;
  gap: 26px;
  grid-template-columns: 1fr;
  align-items: start;
}

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

/* Kartica jedi */
.dish {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.24s var(--ease), box-shadow 0.24s var(--ease), border-color 0.24s var(--ease);
  animation: card-in 0.5s var(--ease) both;
}
.dish:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #dccfb8; }
.dish.is-added { border-color: var(--sage); box-shadow: 0 0 0 1.5px var(--sage) inset, var(--shadow-sm); }

@keyframes card-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

.dish-media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--cream-deep);
  overflow: hidden;
}
.dish-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.dish:hover .dish-media img { transform: scale(1.04); }

.dish-price {
  position: absolute;
  right: 12px;
  bottom: 12px;
  color: var(--olive);
  background: rgba(255, 253, 248, 0.95);
  backdrop-filter: blur(6px);
  border-radius: 999px;
  padding: 6px 13px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  box-shadow: 0 4px 14px -6px rgba(36, 31, 25, 0.45);
}
.dish-kcal {
  position: absolute;
  left: 12px;
  top: 12px;
  background: rgba(47, 61, 44, 0.84);
  color: #f1ecdf;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.dish-body { padding: 16px 17px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.dish-name { font-size: 1.1rem; letter-spacing: -0.015em; }
.dish-desc {
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.dish-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 2px; }
.tag {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--cream-deep);
  color: var(--olive-soft);
  letter-spacing: 0.01em;
}
.tag-allergen { background: #f6eee4; color: #8a6a45; }
.tag-allergen::before { content: "⚠ "; opacity: 0.7; }
.dish-meta { font-size: 0.72rem; color: var(--muted-soft); }

.dish-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 12px;
}

.qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: var(--card);
}
.qty-stepper button {
  width: 34px; height: 34px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  color: var(--olive);
  display: grid;
  place-items: center;
  transition: background 0.15s var(--ease);
}
.qty-stepper button:hover { background: var(--cream-deep); }
.qty-stepper span { min-width: 26px; text-align: center; font-weight: 700; font-size: 0.9rem; font-variant-numeric: tabular-nums; }

.add-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 0;
  background: var(--olive);
  color: #fdfaf3;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 9px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.18s var(--ease), transform 0.18s var(--ease);
}
.add-btn:hover { background: #26331f; transform: translateY(-1px); }
.add-btn.btn-added { background: var(--ok); }

.dish-skeleton {
  height: 330px;
  border-radius: var(--radius-lg);
  background: linear-gradient(100deg, var(--cream-deep) 30%, #faf4e8 50%, var(--cream-deep) 70%);
  background-size: 220% 100%;
  animation: shimmer 1.5s linear infinite;
  border: 1px solid var(--line);
}
@keyframes shimmer {
  from { background-position: 120% 0; }
  to { background-position: -20% 0; }
}

.empty-menu {
  grid-column: 1 / -1;
  text-align: center;
  padding: 50px 20px;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
}

/* ---------- Košarica ---------- */

.cart-panel {
  display: none;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 18px 14px;
  border-bottom: 1px solid var(--line);
}
.cart-head h3 { font-size: 1.06rem; }
.cart-close { display: none; }

.cart-body { padding: 8px 10px; max-height: min(46vh, 420px); overflow-y: auto; }

.cart-empty { text-align: center; padding: 22px 14px 26px; color: var(--muted); }
.cart-empty p { font-weight: 600; color: var(--ink); margin-top: 8px; }
.cart-empty small { display: block; font-size: 0.78rem; margin-top: 4px; color: var(--muted); line-height: 1.4; }

.cart-list { display: flex; flex-direction: column; gap: 2px; }
.cart-item {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 11px;
  align-items: center;
  padding: 10px;
  border-radius: 12px;
  animation: item-in 0.28s var(--ease) both;
}
.cart-item:hover { background: var(--cream); }
@keyframes item-in {
  from { opacity: 0; transform: translateX(6px); }
  to { opacity: 1; transform: none; }
}
.cart-item img {
  width: 44px; height: 44px;
  border-radius: 10px;
  object-fit: cover;
  background: var(--cream-deep);
}
.cart-item-name { font-size: 0.84rem; font-weight: 600; line-height: 1.3; }
.cart-item-price { font-size: 0.74rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.cart-item-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.cart-item-total { font-size: 0.84rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.cart-item-remove {
  border: 0;
  background: none;
  padding: 2px;
  cursor: pointer;
  color: var(--muted-soft);
  font-size: 0.7rem;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cart-item-remove:hover { color: var(--danger); }
.cart-item .qty-stepper { transform: scale(0.88); transform-origin: right center; }

.cart-foot { padding: 14px 18px 18px; border-top: 1px solid var(--line); background: linear-gradient(180deg, #fffdf8, #fbf7ee); }
.cart-summary { display: flex; flex-direction: column; gap: 7px; margin-bottom: 13px; }
.cart-summary > div { display: flex; justify-content: space-between; font-size: 0.86rem; color: var(--muted); }
.cart-summary dd { margin: 0; font-variant-numeric: tabular-nums; }
.cart-summary .sum-total {
  padding-top: 9px;
  margin-top: 2px;
  border-top: 1px dashed var(--line);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--ink);
}
.cart-window { font-size: 0.78rem; color: var(--muted); margin-bottom: 12px; }
.cart-pay { font-size: 0.72rem; color: var(--muted-soft); text-align: center; margin-top: 9px; }

/* Mobilna vrstica + sheet */
.cart-bar {
  position: fixed;
  left: 12px; right: 12px;
  bottom: max(12px, env(safe-area-inset-bottom));
  z-index: 45;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border: 0;
  border-radius: 999px;
  background: var(--olive);
  color: #fdfaf3;
  box-shadow: 0 14px 34px -12px rgba(36, 31, 25, 0.6);
  cursor: pointer;
  font-weight: 600;
  animation: bar-up 0.34s var(--ease-spring) both;
}
.cart-bar[hidden] { display: none; }
@keyframes bar-up {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: none; }
}
.cart-bar-count {
  display: grid;
  place-items: center;
  min-width: 24px; height: 24px;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 700;
}
.cart-bar-label { flex: 1; text-align: left; font-size: 0.92rem; }
.cart-bar-total { font-variant-numeric: tabular-nums; font-size: 0.95rem; }

.sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 44;
  background: rgba(36, 31, 25, 0.42);
  backdrop-filter: blur(2px);
  animation: fade-in 0.2s var(--ease) both;
}
.sheet-backdrop[hidden] { display: none; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 999px) {
  body.sheet-open { overflow: hidden; }
  .cart-panel {
    display: block;
    position: fixed;
    z-index: 46;
    left: 0; right: 0; bottom: 0;
    max-height: 88vh;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    transform: translateY(102%);
    transition: transform 0.34s var(--ease);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }
  body.sheet-open .cart-panel { transform: translateY(0); }
  .cart-close { display: inline-flex; }
  .cart-body { max-height: none; flex: 1; overflow-y: auto; padding-bottom: 0; }
  .cart-head { padding-bottom: 12px; }
  .cart-head::before {
    content: "";
    position: absolute;
    top: 7px; left: 50%;
    width: 40px; height: 4px;
    border-radius: 999px;
    background: var(--line);
    transform: translateX(-50%);
  }
  .cart-head { position: relative; padding-top: 20px; }
}

@media (min-width: 1000px) {
  .menu-layout { grid-template-columns: minmax(0, 1fr) 330px; }
  .cart-panel {
    display: block;
    position: sticky;
    top: 86px;
  }
  .cart-bar, .sheet-backdrop { display: none !important; }
}

/* ---------- Kako deluje ---------- */

.how {
  scroll-margin-top: 74px;
  background: var(--olive);
  color: #efe9dc;
  padding: clamp(38px, 6vw, 68px) clamp(18px, 4vw, 40px);
  margin-top: clamp(20px, 4vw, 40px);
}
.how h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); max-width: var(--maxw); margin-inline: auto; }
.how-grid {
  display: grid;
  gap: 26px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  max-width: var(--maxw);
  margin: 26px auto 0;
}
.how-grid li { position: relative; padding-top: 8px; }
.how-num {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1.5px solid rgba(239, 233, 220, 0.35);
  font-family: var(--font-serif);
  font-size: 0.95rem;
  color: var(--gold);
  margin-bottom: 12px;
}
.how-grid h3 { font-size: 1.15rem; color: #fdfaf3; margin-bottom: 6px; }
.how-grid p { font-size: 0.88rem; color: rgba(239, 233, 220, 0.72); line-height: 1.55; }

/* ---------- Noga ---------- */

.site-footer {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: clamp(32px, 5vw, 56px) clamp(18px, 4vw, 40px) 110px;
  display: grid;
  gap: 18px;
}
.footer-brand strong { font-family: var(--font-serif); font-size: 1.15rem; display: block; margin-bottom: 6px; }
.footer-brand p { font-size: 0.86rem; color: var(--muted); max-width: 42ch; }
.footer-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 0.84rem; color: var(--muted); }
.footer-meta a { text-decoration: none; border-bottom: 1px solid var(--line); }
.footer-meta a:hover { border-color: var(--terra); color: var(--terra); }
.footer-legal { font-size: 0.74rem; color: var(--muted-soft); max-width: 70ch; margin-top: 8px; }

@media (min-width: 900px) {
  .site-footer { grid-template-columns: 1.2fr 1fr; align-items: start; padding-bottom: 70px; }
  .footer-legal { grid-column: 1 / -1; }
}

/* ---------- Obrazec / dialog ---------- */

.checkout {
  padding: 0;
  border: 0;
  background: transparent;
  max-width: 560px;
  width: min(560px, calc(100vw - 24px));
  max-height: calc(100dvh - 32px);
  border-radius: var(--radius-xl);
  overflow: visible;
  color: var(--ink);
}
.checkout[open] { animation: modal-in 0.32s var(--ease) both; }
.checkout::backdrop {
  background: rgba(36, 31, 25, 0.5);
  backdrop-filter: blur(3px);
  animation: fade-in 0.24s var(--ease) both;
}
@keyframes modal-in {
  from { opacity: 0; transform: translateY(18px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

.checkout-inner {
  background: var(--card);
  border-radius: var(--radius-xl);
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  overscroll-behavior: contain;
  box-shadow: var(--shadow-lg);
}

.checkout-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 24px 24px 6px;
}
.checkout-head h2 { font-size: 1.5rem; }
.checkout-head .kicker { margin-bottom: 6px; }

.checkout-summary {
  margin: 16px 24px 0;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--cream);
  border: 1px solid var(--line);
  font-size: 0.85rem;
}
.cs-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.cs-label { flex: 0 0 auto; color: var(--muted); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; }
.cs-row strong { text-align: right; line-height: 1.35; }

@media (max-width: 460px) {
  .cs-row { flex-direction: column; gap: 3px; }
  .cs-row strong { text-align: left; }
}
.cs-items { margin-top: 10px; display: flex; flex-direction: column; gap: 5px; }
.cs-items li { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); }
.cs-items .cs-qty { color: var(--ink); font-weight: 600; }
.cs-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 11px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
  font-size: 1rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.order-form { padding: 18px 24px 26px; display: flex; flex-direction: column; gap: 15px; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1.15fr; gap: 12px; }
@media (max-width: 420px) { .field-row { grid-template-columns: 1fr; } }

.field label { font-size: 0.82rem; font-weight: 600; color: var(--ink); letter-spacing: 0.01em; }
.req { color: var(--terra); }

.field input,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  transition: border-color 0.16s var(--ease), box-shadow 0.16s var(--ease);
  resize: vertical;
}
.field input::placeholder, .field textarea::placeholder { color: #b4a897; }
.field input:hover, .field textarea:hover { border-color: #d9cbb4; }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--sage);
  box-shadow: 0 0 0 3.5px rgba(143, 163, 131, 0.22);
}
.field.has-error input, .field.has-error textarea { border-color: var(--danger); background: #fdf6f5; }
.field.has-error input:focus, .field.has-error textarea:focus { box-shadow: 0 0 0 3.5px rgba(178, 58, 46, 0.16); }

.input-prefix { position: relative; display: flex; align-items: center; }
.input-prefix .prefix {
  position: absolute;
  left: 14px;
  padding-right: 9px;
  border-right: 1px solid var(--line);
  font-size: 0.9rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  pointer-events: none;
}
.input-prefix input { padding-left: 68px; letter-spacing: 0.01em; }

.field-hint { font-size: 0.74rem; color: var(--muted-soft); }
.field-error { font-size: 0.77rem; color: var(--danger); font-weight: 600; display: none; }
.field-error.is-visible, .field.has-error .field-error { display: block; }

.form-alert {
  padding: 11px 14px;
  border-radius: 10px;
  background: #fdf1ee;
  border: 1px solid #f0c8bf;
  color: #8d2f20;
  font-size: 0.84rem;
  font-weight: 500;
}
.form-alert[hidden] { display: none; }

.checkout-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 2px;
  position: sticky;
  bottom: -1px;
  padding: 12px 0 2px;
  background: linear-gradient(to bottom, rgba(253, 250, 243, 0) 0, var(--card) 14px);
}
.checkout-fine { font-size: 0.72rem; color: var(--muted-soft); text-align: center; line-height: 1.45; }

.spinner {
  width: 16px; height: 16px;
  border: 2px solid rgba(253, 250, 243, 0.35);
  border-top-color: #fdfaf3;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.spinner[hidden] { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Uspeh + animacija ---------- */

.success {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 22px 16px;
  overflow-y: auto;
  background: var(--cream);
  animation: fade-in 0.3s var(--ease) both;
}
.success[hidden] { display: none; }
.success-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 22% 18%, rgba(217, 164, 65, 0.2), transparent 45%),
    radial-gradient(circle at 82% 78%, rgba(143, 163, 131, 0.24), transparent 48%);
  pointer-events: none;
}

.success-card {
  position: relative;
  z-index: 2;
  width: min(520px, 100%);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 34px clamp(20px, 5vw, 40px) 30px;
  text-align: center;
  animation: success-card-in 0.6s var(--ease-spring) both;
}
@keyframes success-card-in {
  from { opacity: 0; transform: translateY(26px) scale(0.96); }
  to { opacity: 1; transform: none; }
}

.success-card .kicker { margin-bottom: 10px; animation: fade-up 0.5s var(--ease) 0.45s both; }
.success-card h2 { font-size: clamp(1.7rem, 5vw, 2.1rem); animation: fade-up 0.5s var(--ease) 0.5s both; }
.success-lede {
  color: var(--muted);
  font-size: 0.94rem;
  margin: 12px auto 0;
  max-width: 38ch;
  animation: fade-up 0.5s var(--ease) 0.58s both;
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.tick {
  position: relative;
  width: 120px; height: 120px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
}
.tick svg { position: relative; z-index: 2; overflow: visible; }
.tick-ring {
  stroke: var(--sage);
  stroke-dasharray: 314;
  stroke-dashoffset: 314;
  animation: draw-ring 0.6s var(--ease) 0.05s forwards;
}
@keyframes draw-ring { to { stroke-dashoffset: 0; } }

.tick-ring-soft {
  stroke: rgba(143, 163, 131, 0.3);
  transform-origin: 60px 60px;
  transform: scale(0.72);
  opacity: 0;
  animation: soft-ring 1.4s var(--ease) 0.15s 1;
}
@keyframes soft-ring {
  0% { transform: scale(0.7); opacity: 0.75; }
  70% { opacity: 0.06; }
  100% { transform: scale(1.55); opacity: 0; }
}

.tick-mark {
  stroke: var(--ok);
  stroke-dasharray: 90;
  stroke-dashoffset: 90;
  animation: draw-check 0.45s var(--ease) 0.5s forwards, pop 0.35s var(--ease-spring) 0.95s both;
}
@keyframes draw-check { to { stroke-dashoffset: 0; } }
@keyframes pop {
  0% { transform: scale(1); }
  45% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

.tick-spark {
  position: absolute;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0;
  z-index: 1;
}
.tick-spark.s1 { top: 8px; right: 12px; animation: spark 0.9s var(--ease) 0.7s both; }
.tick-spark.s2 { bottom: 14px; left: 6px; background: var(--terra); animation: spark 0.9s var(--ease) 0.85s both; }
.tick-spark.s3 { top: 46px; left: -4px; width: 5px; height: 5px; background: var(--sage); animation: spark 0.9s var(--ease) 1s both; }
@keyframes spark {
  0% { opacity: 0; transform: scale(0.4) translateY(6px); }
  40% { opacity: 1; transform: scale(1.15) translateY(-4px); }
  100% { opacity: 0; transform: scale(0.9) translateY(-14px); }
}

.success-card-inner {
  margin: 22px 0 18px;
  padding: 18px;
  border-radius: var(--radius);
  background: var(--cream);
  border: 1px solid var(--line);
  text-align: left;
  animation: fade-up 0.55s var(--ease) 0.68s both;
}
.success-ref {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px dashed var(--line);
  font-size: 0.8rem;
  color: var(--muted);
}
.success-ref strong { font-family: var(--font-sans); font-size: 0.98rem; letter-spacing: 0.02em; color: var(--ink); }
.success-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; font-size: 0.8rem; }
.success-grid span { display: block; color: var(--muted-soft); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 2px; }
.success-grid strong { font-size: 0.88rem; font-weight: 600; }
.success-items { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); display: flex; flex-direction: column; gap: 6px; }
.success-items li { display: flex; justify-content: space-between; gap: 10px; font-size: 0.82rem; color: var(--muted); }
.success-items .si-name { color: var(--ink); }
.success-note {
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 18px;
  animation: fade-up 0.55s var(--ease) 0.78s both;
}
.success-note a { color: var(--terra); font-weight: 600; }
.success-card > .btn { animation: fade-up 0.55s var(--ease) 0.86s both; }

.confetti { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 1; }
.confetti span {
  position: absolute;
  top: -12px;
  width: 8px; height: 12px;
  border-radius: 2px;
  opacity: 0;
  animation: confetti-fall linear forwards;
}
@keyframes confetti-fall {
  0% { opacity: 0; transform: translateY(-20px) rotate(0deg); }
  12% { opacity: 1; }
  100% { opacity: 0; transform: translateY(88vh) rotate(640deg); }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .tick-ring, .tick-mark { stroke-dashoffset: 0 !important; }
  .confetti { display: none; }
}

/* ---------- Pomožno ---------- */

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

/* ---------- Toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 88px;
  z-index: 60;
  transform: translate(-50%, 16px);
  background: var(--ink);
  color: #fdfaf3;
  padding: 11px 18px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 500;
  box-shadow: 0 16px 34px -16px rgba(36, 31, 25, 0.8);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  max-width: calc(100vw - 32px);
  text-align: center;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

@media (min-width: 1000px) {
  .toast { bottom: 28px; }
}

/* ==========================================================================
   Elementi po vzoru obstoječe stranke: teden, črke menija, obroki
   ========================================================================== */

.step-num {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-right: 9px;
  border-radius: 50%;
  background: var(--olive);
  color: #f7f3e8;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 700;
  vertical-align: 0.12em;
  letter-spacing: 0;
}
.step-num-light {
  background: rgba(247, 243, 232, 0.14);
  border: 1.5px solid rgba(247, 243, 232, 0.4);
  color: var(--gold);
}

.menu-head-side {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  max-width: 100%;
}

.week-badge-icon { width: 15px; height: 15px; flex: none; }

.week-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 15px;
  border-radius: 999px;
  background: #f3e4c4;
  border: 1px solid #e8d3a6;
  color: #6f4f14;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.dish-variant {
  position: absolute;
  top: 12px;
  left: 12px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 253, 248, 0.95);
  color: var(--olive);
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  box-shadow: 0 4px 12px -6px rgba(36, 31, 25, 0.5);
  backdrop-filter: blur(4px);
}
.dish-variant-inline { display: none; }

.dish-kcal { left: auto; right: 12px; top: 12px; }

.dish-price { display: inline-flex; align-items: baseline; gap: 4px; }
.dish-price small {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0;
}

.dish-ingredients {
  font-size: 0.76rem;
  color: var(--olive-soft);
  line-height: 1.5;
  letter-spacing: 0.005em;
}
.dish-ingredients .more { color: var(--muted-soft); font-weight: 600; }

.dish-order { display: inline-flex; align-items: center; gap: 9px; }
.qty-unit { font-size: 0.78rem; color: var(--muted); font-weight: 600; }

@media (max-width: 520px) {
  .dish-variant { width: 28px; height: 28px; font-size: 0.9rem; }
  .dish-price { font-size: 0.86rem; padding: 5px 11px; gap: 3px; }
  .dish-price small { display: inline; font-size: 0.63rem; }
  .week-badge { font-size: 0.76rem; padding: 7px 12px; }
  .week-badge-icon { width: 14px; height: 14px; }
  .menu-head-side { gap: 10px; }
}

.footer-stamp-row { display: flex; align-items: center; gap: 16px; }
.footer-stamp { flex: 0 0 auto; }
@media (max-width: 520px) {
  .footer-stamp-row { align-items: flex-start; }
  .footer-stamp { width: 72px; height: 72px; }
}
