:root {
  --bg: #1C130D;
  --bg-soft: #2A1D14;
  --card: #FBF1E2;
  --ink: #241509;
  --brick: #B23B20;
  --ember: #E8752B;
  --cheese: #F0A93E;
  --cream: #F5E7D3;
  --basil: #5B8C3E;
  --muted: #9C8975;
  --muted-dark: #6b5c4d;
  --radius: 14px;
  --shadow: 0 10px 24px rgba(0,0,0,0.35);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: env(safe-area-inset-top, 0px); }
body {
  margin: 0;
  background: var(--bg);
  background-image:
    radial-gradient(circle at 15% 0%, rgba(232,117,43,0.16), transparent 45%),
    radial-gradient(circle at 90% 15%, rgba(240,169,62,0.10), transparent 40%);
  color: var(--cream);
  font-family: 'Karla', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
h1, h2, h3 { font-family: 'Archivo Black', sans-serif; margin: 0; line-height: 1.05; }

a { color: inherit; }

/* ---------- Header ---------- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px clamp(16px, 5vw, 48px) 18px;
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand-mark {
  width: 52px; height: 52px; flex: none;
  border-radius: 50%;
  background: linear-gradient(155deg, var(--ember), var(--brick));
  display: flex; align-items: center; justify-content: center;
  font-family: 'Archivo Black', sans-serif;
  font-size: 1.1rem;
  color: var(--cream);
  box-shadow: var(--shadow);
}
.brand-text h1 {
  font-size: clamp(1.3rem, 3.6vw, 1.9rem);
  color: var(--cream);
  letter-spacing: -0.01em;
}
.brand-text h1 em { font-style: normal; color: var(--cheese); }
.tagline { margin: 4px 0 0; color: var(--muted); font-size: 0.92rem; }
.phone-pill {
  flex: none;
  text-decoration: none;
  background: var(--bg-soft);
  border: 1px solid rgba(240,169,62,0.35);
  color: var(--cheese);
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
  white-space: nowrap;
}

/* ---------- Category nav ---------- */
.cat-nav {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px clamp(16px, 5vw, 48px) 18px;
  scrollbar-width: none;
}
.cat-nav::-webkit-scrollbar { display: none; }
.cat-btn {
  flex: none;
  border: 1px solid rgba(245,231,211,0.18);
  background: transparent;
  color: var(--cream);
  padding: 9px 18px;
  border-radius: 999px;
  font-family: 'Karla', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
}
.cat-btn.active {
  background: var(--ember);
  border-color: var(--ember);
  color: #221208;
}

/* ---------- Menu ---------- */
.menu-grid {
  padding: 8px clamp(16px, 5vw, 48px) 140px;
  max-width: 1100px;
  margin: 0 auto;
}
.menu-section { margin-bottom: 40px; }
.menu-section h2 {
  color: var(--cream);
  font-size: clamp(1.1rem, 2.6vw, 1.5rem);
  border-left: 6px solid var(--brick);
  padding-left: 12px;
  margin-bottom: 16px;
}
.menu-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.product-card {
  position: relative;
  background: var(--cat-bg, var(--card));
  color: var(--ink);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 0.15s ease;
}
.product-card h3 { font-size: 1.02rem; font-family: 'Karla', sans-serif; font-weight: 700; }
.product-card p.desc {
  margin: 0;
  color: #55483a;
  font-size: 0.9rem;
  flex-grow: 1;
}
.product-card .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
}
.price { font-weight: 700; font-size: 1.05rem; color: var(--brick); }
.add-btn {
  border: none;
  background: var(--brick);
  color: var(--cream);
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Karla', sans-serif;
}
.add-btn:hover { background: var(--ember); }

.product-card.unavailable {
  filter: grayscale(0.85);
  opacity: 0.55;
}
.product-card.unavailable .add-btn {
  background: var(--muted-dark);
  cursor: not-allowed;
}
.sold-out-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #6b5c4d;
  background: rgba(0,0,0,0.06);
  padding: 3px 9px;
  border-radius: 6px;
  align-self: flex-start;
}

/* ---------- Cart bar ---------- */
.cart-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: var(--brick);
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px clamp(16px, 5vw, 48px);
  padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -8px 24px rgba(0,0,0,0.35);
  z-index: 20;
}
.cart-summary { display: flex; flex-direction: column; gap: 2px; font-size: 0.85rem; }
.cart-summary strong { font-size: 1.15rem; }
.btn-primary {
  border: none;
  background: var(--cheese);
  color: #241509;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-family: 'Karla', sans-serif;
  cursor: pointer;
  font-size: 0.95rem;
}
.btn-secondary {
  border: 1px solid rgba(36,21,9,0.25);
  background: transparent;
  color: var(--ink);
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
}

/* ---------- Modal ---------- */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(15,9,5,0.7);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 50;
  padding: 0;
}
.modal {
  background: var(--card);
  color: var(--ink);
  width: 100%;
  max-width: 560px;
  max-height: 92vh;
  overflow-y: auto;
  border-radius: 20px 20px 0 0;
  padding: 26px 22px calc(26px + env(safe-area-inset-bottom, 0px));
  position: relative;
}
@media (min-width: 640px) {
  .modal-backdrop { align-items: center; }
  .modal { border-radius: 20px; }
}
.modal-close {
  position: absolute;
  top: 14px; right: 14px;
  border: none;
  background: rgba(36,21,9,0.08);
  width: 34px; height: 34px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--ink);
}
.modal h2 { margin-bottom: 14px; font-size: 1.3rem; }
.cart-items { display: flex; flex-direction: column; gap: 10px; margin-bottom: 8px; }
.cart-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.92rem;
  border-bottom: 1px dashed rgba(36,21,9,0.15);
  padding-bottom: 8px;
}
.cart-item-row .qty-controls { display: flex; align-items: center; gap: 8px; }
.qty-controls button {
  width: 26px; height: 26px; border-radius: 50%; border: 1px solid rgba(36,21,9,0.3);
  background: transparent; cursor: pointer; font-weight: 700;
}
.cart-grand-total { text-align: right; font-size: 1.05rem; margin: 6px 0 18px; }

.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; font-size: 0.9rem; font-weight: 700; }
.field input, .field textarea {
  font-family: 'Karla', sans-serif;
  font-size: 0.95rem;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(36,21,9,0.25);
  background: #fff;
  font-weight: 400;
  resize: vertical;
}
.optional { color: var(--muted-dark); font-weight: 400; font-size: 0.8rem; }
.required { color: var(--brick); }
.delivery-choice { border: none; padding: 0; margin: 0 0 14px; }
.delivery-choice legend { font-weight: 700; font-size: 0.9rem; margin-bottom: 6px; }
.radio { display: flex; align-items: center; gap: 8px; font-weight: 400; margin-bottom: 6px; }
.form-error { color: var(--brick); font-weight: 700; font-size: 0.88rem; }
.btn-submit { width: 100%; padding: 14px; font-size: 1rem; margin-top: 6px; }

.order-success { text-align: center; padding: 20px 0; }
.order-success p { font-size: 1.05rem; font-weight: 700; margin-bottom: 16px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-soft);
  padding: 34px clamp(16px, 5vw, 48px) calc(34px + env(safe-area-inset-bottom, 0px));
  margin-top: 20px;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}
.footer-col h3 { font-size: 0.95rem; color: var(--cheese); margin-bottom: 8px; font-family:'Karla',sans-serif; }
.footer-col p { margin: 4px 0; color: var(--muted); font-size: 0.88rem; }
.footer-col.privacy p { font-size: 0.8rem; line-height: 1.6; }
@media (max-width: 640px) {
  .footer-inner { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* ---------- Round 1 additions ---------- */
.badge-18 { display: inline-block; background: var(--brick); color: var(--cream); font-size: 0.68rem; font-weight: 700; padding: 2px 7px; border-radius: 6px; vertical-align: middle; }
.allergens { margin: 0; font-size: 0.78rem; color: #6b5c4d; }
.extras { font-size: 0.86rem; border-top: 1px dashed rgba(36,21,9,0.18); padding-top: 6px; }
.extras summary { cursor: pointer; font-weight: 700; color: var(--brick); }
.extra-opt { display: flex; align-items: center; gap: 8px; padding: 4px 0; }
.extra-opt .extra-price { margin-left: auto; font-weight: 700; color: var(--brick); }
.extra-opt.off { opacity: 0.5; }
.product-card .add-btn:disabled { background: var(--muted-dark); cursor: not-allowed; }

.closed-banner {
  display: flex; align-items: center; gap: 22px; flex-wrap: wrap; justify-content: center;
  margin: 0 clamp(16px, 5vw, 48px) 18px; padding: 18px 22px;
  background: var(--bg-soft); border: 1px solid rgba(240,169,62,0.3); border-radius: 18px;
}
.sleepy-burger { width: 170px; height: auto; overflow: visible; }
.burger-body { transform-origin: 110px 176px; animation: breathe 3.2s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.035, 1.02); } }
.zzz { font-family: 'Archivo Black', sans-serif; fill: var(--cheese); opacity: 0; animation: zfloat 3.2s ease-in-out infinite; }
.zzz.z1 { font-size: 18px; animation-delay: 0s; }
.zzz.z2 { font-size: 24px; animation-delay: 0.8s; }
.zzz.z3 { font-size: 30px; animation-delay: 1.6s; }
@keyframes zfloat { 0% { opacity: 0; transform: translate(0, 10px); } 30% { opacity: 1; } 100% { opacity: 0; transform: translate(10px, -14px); } }
.closed-text { max-width: 420px; }
.closed-text h2 { font-size: clamp(1.2rem, 3vw, 1.6rem); color: var(--cheese); margin-bottom: 6px; }
.closed-text p { margin: 4px 0; color: var(--cream); }
.closed-next { color: var(--muted); font-size: 0.9rem; }
@media (prefers-reduced-motion: reduce) { .burger-body, .zzz { animation: none; } .zzz { opacity: 0.9; } }
.sleepy-video { width: min(320px, 80vw); height: auto; border-radius: 14px; }
.sleepy-video[hidden] { display: none; }

.fee-lines { margin: 6px 0 0; }
.fee-line { display: flex; justify-content: space-between; font-size: 0.9rem; color: #4a3c2d; padding: 3px 0; }
.cart-item-row .cart-name { flex: 1; }
.cart-extras { font-size: 0.78rem; color: #6b5c4d; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.85rem; margin-bottom: 14px; }
.check input { margin-top: 3px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.fine-print { font-size: 0.75rem; color: #6b5c4d; margin: 10px 0 0; }
.order-number-big { font-size: 1.15rem; }
.success-total { margin-bottom: 16px; }
.btn-primary.dark { background: #241509; color: var(--cream); }
.modal-actions { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.hours-title { margin-top: 16px; }
.hours-list { font-size: 0.85rem; color: var(--muted); max-width: 240px; }
.hours-line { display: flex; justify-content: space-between; padding: 1px 0; }
.footer-col.privacy h3 { margin-top: 14px; }
.footer-col.privacy h3:first-child { margin-top: 0; }

/* ---------- Photo background + logo (round: branding) ---------- */
.bg-photo {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(14, 9, 5, 0.74), rgba(14, 9, 5, 0.8)),
    url('assets/bg-food.jpg');
  background-size: cover;
  background-position: center 32%;
  background-repeat: no-repeat;
}
.brand-mark-img {
  width: 64px;
  height: auto;
  flex: none;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,0.5));
}
@media (min-width: 640px) {
  .brand-mark-img { width: 84px; }
}

/* ---------- Order history (this device) ---------- */
.site-header { flex-wrap: wrap; row-gap: 10px; }
.history-btn { font-size: 0.82rem; padding: 9px 14px; }
.my-orders-list { display: flex; flex-direction: column; gap: 14px; max-height: 60vh; overflow-y: auto; }
.my-order-card { background: rgba(36,21,9,0.04); border: 1px solid rgba(36,21,9,0.12); border-radius: 12px; padding: 12px 14px; font-size: 0.9rem; }
.my-order-top { display: flex; justify-content: space-between; align-items: center; }
.my-order-status { font-weight: 700; font-size: 0.85rem; }

/* ---------- Round: notice banner, FAQ, stamp, history polish ---------- */
.site-notice {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  background: var(--cheese); color: #241509; font-weight: 700; font-size: 0.9rem;
  padding: 10px 44px 10px 16px; position: relative; text-align: center;
}
.site-notice #siteNoticeClose {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  border: none; background: rgba(36,21,9,0.12); width: 26px; height: 26px; border-radius: 50%;
  cursor: pointer; font-size: 1rem; color: #241509;
}

.history-btn {
  flex: none;
  border: none;
  background: var(--cheese);
  color: #241509;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}
.reorder-btn { margin-top: 10px; width: 100%; }

.product-card.unavailable { position: relative; overflow: hidden; }
.product-card.unavailable::after {
  content: "ELFOGYOTT";
  position: absolute;
  top: 48%; left: 50%;
  transform: translate(-50%, -50%) rotate(-32deg);
  width: 150%;
  text-align: center;
  font-family: 'Archivo Black', sans-serif;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  color: rgba(178,59,32,0.78);
  border-top: 3px solid rgba(178,59,32,0.78);
  border-bottom: 3px solid rgba(178,59,32,0.78);
  padding: 4px 0;
  pointer-events: none;
}

.contact-line { font-size: 0.85rem; margin: 10px 0; }
.contact-line a { color: var(--cheese); font-weight: 700; }

.faq-section {
  max-width: 800px; margin: 0 auto; padding: 10px clamp(16px,5vw,48px) 30px;
}
.faq-section h2 { color: var(--cream); font-size: clamp(1.1rem, 2.6vw, 1.5rem); border-left: 6px solid var(--brick); padding-left: 12px; margin-bottom: 16px; }
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  background: var(--card); color: var(--ink); border-radius: 12px; padding: 12px 16px;
}
.faq-item summary { cursor: pointer; font-weight: 700; }
.faq-item p { margin: 8px 0 0; font-size: 0.92rem; color: #4a3c2d; }

/* ---------- Round: sizes, back-to-top, error banner, contact ---------- */
.size-select { display: flex; gap: 10px; flex-wrap: wrap; margin: 4px 0; font-size: 0.86rem; }
.size-opt { display: flex; align-items: center; gap: 6px; background: rgba(36,21,9,0.05); padding: 5px 10px; border-radius: 8px; cursor: pointer; }

.back-to-top {
  position: fixed;
  right: 4px;
  bottom: 84px;
  z-index: 25;
  width: 84px; height: 84px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
/* Nincs drop-shadow szűrő: egy mozgó képen minden képkockánál újra kellene számolni (lassítaná a régebbi telefonokat). */
.back-to-top picture, .back-to-top img { display: block; width: 100%; height: 100%; }
.back-to-top img { transition: transform 0.15s ease; user-select: none; -webkit-user-drag: none; }
.back-to-top:hover img, .back-to-top:focus-visible img { transform: translateY(-3px); }
.back-to-top:focus-visible { outline: 2px solid var(--cheese); outline-offset: 2px; border-radius: 14px; }
@media (min-width: 640px) { .back-to-top { bottom: 26px; } }

.error-banner { border-color: rgba(178,59,32,0.5); }
.error-banner .closed-text h2 { color: var(--brick); }

/* ---------- Site credit ---------- */
.site-credit {
  max-width: 1100px;
  margin: 18px auto 0;
  text-align: right;
  font-size: 0.78rem;
  color: var(--muted);
}

/* Kategória-ikonok a termékkártyák jobb felső sarkában (kissé lelógnak a kártyáról) */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.cat-icon {
  position: absolute;
  top: -14px; right: -6px;
  width: 56px; height: 56px;
  pointer-events: none;
  filter: drop-shadow(0 3px 4px rgba(0,0,0,0.28));
}
.product-card.has-icon h3 { padding-right: 50px; }
/* Elfogyott kártyán a levágás (overflow) miatt az ikon belül, kisebben jelenik meg */
.product-card.unavailable .cat-icon { top: 8px; right: 8px; width: 40px; height: 40px; }

/* ---------- Lábléc: jogi gomb ---------- */
.footer-legal { max-width: 1100px; margin: 22px auto 0; }
.legal-btn {
  display: inline-block; padding: 10px 18px;
  border: 1.5px solid var(--cheese); border-radius: 999px;
  color: var(--cheese); font-weight: 700; font-size: 0.85rem; text-decoration: none;
}
.legal-btn:hover, .legal-btn:focus-visible { background: var(--cheese); color: #241509; }
.radio[hidden], .fine-print[hidden] { display: none; }
.fine-print a { color: inherit; text-decoration: underline; }
#deliveryOffNote { margin: 0 0 14px; }

/* ---------- Jogi oldal (/jogi) ---------- */
body.legal-body { min-height: 100vh; }
.legal-head { max-width: 860px; margin: 0 auto; padding: 22px clamp(16px, 4vw, 32px) 4px; }
.legal-back { color: var(--cheese); font-weight: 700; text-decoration: none; font-size: 0.9rem; }
.legal-head h1 { font-family: 'Archivo Black', sans-serif; font-size: 1.6rem; margin: 12px 0 0; font-weight: 400; }
.legal-wrap { max-width: 860px; margin: 0 auto; padding: 8px clamp(16px, 4vw, 32px) 36px; }
.legal-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.legal-tab {
  background: transparent; border: 1.5px solid var(--cheese); color: var(--cheese);
  padding: 9px 16px; border-radius: 999px; font: 700 0.9rem 'Karla', sans-serif; cursor: pointer;
}
.legal-tab[aria-selected="true"] { background: var(--cheese); color: #241509; }
.legal-doc { background: var(--card); color: #241509; border-radius: 18px; padding: clamp(18px, 4vw, 34px); line-height: 1.65; }
.legal-doc h2 { font-size: 1.25rem; margin: 22px 0 8px; }
.legal-doc h3 { font-size: 1.05rem; margin: 18px 0 6px; }
.legal-doc h2:first-child, .legal-doc h3:first-child { margin-top: 0; }
.legal-doc p { margin: 0 0 12px; }
.legal-doc ul { margin: 0 0 12px; padding-left: 22px; }
.legal-doc .legal-empty { color: #6b5c4d; font-style: italic; }
.legal-foot { text-align: center; color: var(--muted); font-size: 0.78rem; padding: 0 16px 28px; }

/* Szószválasztó legördülő a termékkártyán */
.sauce-select { display: flex; flex-direction: column; gap: 4px; margin: 8px 0; font-size: 0.88rem; font-weight: 700; }
.sauce-select select {
  font: inherit; font-weight: 700; padding: 9px 10px; border-radius: 8px; width: 100%;
  border: 1px solid rgba(36,21,9,0.3); background: #fff; color: var(--ink);
}
.sauce-select select:disabled { opacity: 0.55; }
.sauce-select.invalid select { border-color: var(--brick); box-shadow: 0 0 0 2px rgba(178,59,32,0.25); }
.sauce-error { color: var(--brick); font-size: 0.82rem; font-weight: 700; }

/* ---- Nyelvválasztó (csak akkor látszik, ha legalább két nyelv engedélyezett) ---- */
.lang-bar { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; padding: 8px clamp(12px, 3vw, 28px) 0; max-width: 1200px; margin: 0 auto; }
.lang-bar[hidden] { display: none; }
.lang-btn {
  font: 700 0.78rem 'Karla', sans-serif; letter-spacing: 0.04em; color: var(--cream);
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px; padding: 6px 11px; min-width: 40px; min-height: 32px; cursor: pointer;
}
.lang-btn:hover { background: rgba(255, 255, 255, 0.16); }
.lang-btn[aria-pressed="true"] { background: var(--cheese); color: var(--ink); border-color: var(--cheese); }
.lang-btn:focus-visible { outline: 3px solid var(--cheese); outline-offset: 2px; }
.lang-note { max-width: 1200px; margin: 6px auto 0; padding: 0 clamp(12px, 3vw, 28px); font-size: 0.82rem; color: var(--muted); text-align: right; }
.lang-note[hidden] { display: none; }
.legal-banner { margin: 0 0 14px; padding: 10px 14px; border-radius: 10px; background: #FFF3C6; color: #4a3a00; border: 1px solid #E5CF73; font-size: 0.92rem; line-height: 1.4; }
.legal-banner[hidden] { display: none; }
