:root {
  color-scheme: only light; /* mindig világos megjelenés: a telefon sötét módja nem írja felül */
  --bg: #EFE9DA;
  --card-bg: #FBF8F1;
  --ink: #201C16;
  --ink-soft: #5B5548;
  --primary: #1B2B22;
  --primary-dark: #10190F;
  --accent: #C6862B;
  --danger: #8B3A3A;
  --border: #D8CFB8;
  --radius: 8px;
  --font-display: 'Fraunces', serif;
  --font-body: 'Work Sans', sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body {
  height: 100%;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}
input, textarea, select {
  -webkit-user-select: text;
  -moz-user-select: text;
  user-select: text;
}
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
h1, h2, h3 { font-family: var(--font-display); margin: 0; }
button { font-family: var(--font-body); cursor: pointer; }
input, select, textarea { font-family: var(--font-body); }

/* --- LOGIN --- */
.view-login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--primary);
}
.login-wrap { width: 100%; max-width: 380px; }
.login-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 36px 28px;
  width: 100%;
}
.login-brand { text-align: center; margin-bottom: 28px; }
.login-brand img { width: 200px; max-width: 70%; height: auto; }
.login-eyebrow { color: var(--accent); font-weight: 600; margin: 0 0 4px; letter-spacing: .02em; }
.login-title { font-size: 26px; line-height: 1.15; font-weight: 600; margin-bottom: 24px; }
.login-form label { display: block; font-size: 14px; color: var(--ink-soft); margin-bottom: 14px; }
.login-form input {
  display: block; width: 100%; margin-top: 6px; padding: 12px 14px;
  border: 1px solid var(--border); border-radius: 6px; font-size: 16px; background: #fff;
}
.login-hint { font-size: 13px; color: var(--ink-soft); text-align: center; margin-top: 18px; }

/* --- ASZTALI / SZÉLES KÉPERNYŐ BLOKKOLÁSA (csak mobilra készült app) --- */
.desktop-block { display: none; min-height: 100vh; align-items: center; justify-content: center; padding: 24px; background: var(--primary); }
.desktop-block-wrap { width: 440px; max-width: 100%; }
.desktop-block-card { background: var(--card-bg); border-radius: var(--radius); padding: 40px 32px; text-align: center; }
.desktop-block-text { color: var(--ink-soft); line-height: 1.6; margin-top: 14px; font-size: 15px; }
@media (min-width: 861px) {
  .desktop-block { display: flex; }
  #view-login, #view-register, #view-legal, #app { display: none !important; }
}

.btn { border: none; border-radius: 6px; padding: 13px 20px; font-size: 16px; font-weight: 600; transition: opacity .15s; }
.btn:active { opacity: .8; }
.btn-block { width: 100%; margin-top: 6px; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:disabled { background: #A7A192; color: #EFE9DA; cursor: not-allowed; }
.btn-ghost { background: transparent; border: 1px solid var(--border); color: var(--ink); margin-top: 10px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.form-error { color: var(--danger); font-size: 14px; margin: 8px 0; }

/* --- REGISZTRÁCIÓ --- */
.register-entry { margin-top: 6px; }
.register-entry .login-hint { margin: 18px 0 0; }
.reg-back { margin-bottom: 14px; }
.reg-form .cart-field input, .reg-form .cart-field select { font-size: 16px; } /* iOS ne nagyítson rá fókuszkor */
.reg-address-row { display: flex; gap: 8px; margin-top: 6px; }
.reg-address-row input { margin-top: 0; }
.reg-address-row input:first-child { width: 132px; flex: none; }
.reg-address-row input:last-child { flex: 1; min-width: 0; }
.reg-street { margin-top: 8px; }
.reg-info { margin-top: 0; }
.reg-captcha-q { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; font-size: 16px; color: var(--ink); }
.reg-link-btn { background: none; border: none; padding: 0; color: var(--primary); font-size: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; text-align: left; }
.reg-captcha-q .reg-link-btn { font-size: 13px; white-space: nowrap; flex: none; }
.reg-check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.4; color: var(--ink); margin-bottom: 12px; }
.reg-form .reg-check input { display: block; flex: none; width: 22px; height: 22px; margin: 1px 0 0; padding: 0; }
.reg-hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.legal-body { white-space: pre-wrap; word-wrap: break-word; font-size: 14px; line-height: 1.55; color: var(--ink); margin-bottom: 18px; -webkit-user-select: text; user-select: text; }

/* --- APP SHELL --- */
.app { min-height: 100vh; padding-bottom: calc(100px + env(safe-area-inset-bottom, 0px)); } /* hely az alsó menüsávnak */
.topbar {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: 18px 20px 14px; background: var(--primary); color: #fff;
  padding-top: calc(18px + env(safe-area-inset-top, 0px));
}
.greeting-hello { font-family: var(--font-display); font-size: 22px; margin: 0; }
.topbar-brand { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; opacity: .9; }
.topbar-brand-mark { width: 20px; height: auto; }
.topbar-brand-name { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.status-banner { margin: 8px 0 0; max-width: 230px; }
.status-title { color: #F3C7BF; font-weight: 600; font-size: 13px; margin: 0; line-height: 1.35; }
.status-countdown-row { margin: 6px 0 0; font-size: 12px; color: rgba(255,255,255,.75); }
.status-countdown {
  display: inline-block; margin-left: 4px; padding: 2px 8px; border-radius: 999px;
  background: rgba(255,255,255,.12); color: #fff; font-weight: 700; font-size: 13px;
  font-variant-numeric: tabular-nums; letter-spacing: .04em;
}
.status-next { margin: 4px 0 0; font-size: 12px; color: rgba(255,255,255,.7); }
.topbar-actions { display: flex; gap: 10px; }
.icon-btn {
  background: rgba(255,255,255,.12); border: none; color: #fff; border-radius: 6px;
  width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; position: relative;
}
.cart-count {
  position: absolute; top: -6px; right: -6px; background: var(--accent); color: #fff;
  font-size: 11px; font-weight: 700; border-radius: 50%; width: 18px; height: 18px;
  display: flex; align-items: center; justify-content: center;
}

.toast {
  position: fixed; top: calc(12px + env(safe-area-inset-top, 0px)); left: 16px; right: 16px; z-index: 60;
  background: var(--ink); color: #fff; border-radius: 6px; padding: 12px 14px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px;
  transition: opacity .4s ease;
}
.toast[data-fade] { opacity: 0; }
.toast-link { background: none; border: none; color: var(--accent); font-weight: 700; font-size: 14px; }

.view { padding: 20px; }
.section-title { font-size: 20px; margin-bottom: 14px; }

/* --- KATEGÓRIÁK: 3 oszlopos rács, váltakozó színű csempék, kör alakú képpel --- */
:root { --tile-a: var(--primary); --tile-b: #4F7A5C; } /* a két váltakozó csempeszín: a fejléc zöldje és egy világosabb zöld árnyalat */
.category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.category-tile {
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 10px;
  min-height: 140px; padding: 14px 6px 12px;
  border: none; border-radius: 16px; background: var(--tile-a); color: #F6F2E8; cursor: pointer;
  box-shadow: 0 6px 14px rgba(27,43,34,.18);
  transition: transform .18s ease, box-shadow .18s ease;
  animation: category-card-in .5s cubic-bezier(.2,.8,.3,1) backwards;
  animation-delay: calc(var(--i, 0) * 60ms);
}
/* 3 oszlopnál a páros/páratlan váltakozás sakktábla-mintát ad: zöld, világosabb, zöld / világosabb, zöld, világosabb */
.category-tile:nth-child(even) { background: var(--tile-b); }
.category-tile:active { transform: scale(.96); box-shadow: 0 2px 6px rgba(27,43,34,.2); }
.category-circle {
  flex: 0 0 74px; width: 74px; height: 74px; border-radius: 50%; overflow: hidden;
  border: 3px solid rgba(246,242,232,.92); background: rgba(246,242,232,.14);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 3px 8px rgba(0,0,0,.25);
}
.category-circle img { width: 100%; height: 100%; object-fit: cover; display: block; }
.category-circle svg { width: 38px; height: 38px; color: #F6F2E8; } /* kép nélküli kategóriánál az ikon */
.category-name {
  font-family: var(--font-display); font-size: 13px; font-weight: 700; line-height: 1.2; text-align: center;
  max-width: 100%; overflow-wrap: anywhere; color: #F6F2E8;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
@keyframes category-card-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .category-tile { animation: none; }
}

/* --- Főoldal: elegáns elválasztó a banner és a csempék között --- */
.view-home { padding-top: 16px; }
.home-divider { display: flex; align-items: center; gap: 12px; margin: 18px 6px; }
.home-divider[hidden] { display: none; }
.home-divider::before, .home-divider::after { content: ''; flex: 1; height: 1px; }
.home-divider::before { background: linear-gradient(90deg, rgba(27,43,34,0), rgba(27,43,34,.38)); }
.home-divider::after { background: linear-gradient(270deg, rgba(27,43,34,0), rgba(27,43,34,.38)); }
.home-divider-gem { width: 7px; height: 7px; background: var(--accent); transform: rotate(45deg); border-radius: 1px; }

/* --- KIEMELT AJÁNLAT banner --- */
.featured { position: relative; border-radius: 18px; overflow: hidden; background: var(--primary); box-shadow: 0 8px 20px rgba(27,43,34,.22); }
.featured[hidden] { display: none; }
.featured-viewport { overflow: hidden; }
.featured-track { display: flex; will-change: transform; }
.featured-slide {
  position: relative; isolation: isolate; flex: 0 0 100%; min-width: 0; min-height: 96px; box-sizing: border-box;
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; color: #fff;
  background: linear-gradient(120deg, #1B2B22 0%, #243A2D 58%, #2F4A3A 100%);
}
/* energikus, dinamikus háttér: ferde borostyán sáv és egy puha fényfolt (a meglévő színpalettából) */
.featured-slide::before {
  content: ''; position: absolute; z-index: -1; top: -30%; right: -14%; width: 44%; height: 170%;
  background: linear-gradient(180deg, #C6862B 0%, #DDA24A 100%); transform: skewX(-18deg);
}
.featured-slide::after {
  content: ''; position: absolute; z-index: -1; left: -26px; bottom: -40px; width: 120px; height: 120px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(198,134,43,.42), rgba(198,134,43,0) 70%);
}
.featured-photo {
  flex: 0 0 66px; width: 66px; height: 66px; border-radius: 50%; overflow: hidden; cursor: pointer;
  border: 3px solid #F6F2E8; box-shadow: 0 4px 10px rgba(0,0,0,.35); background: #243A2D;
}
.featured-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.featured-text { flex: 1; min-width: 0; cursor: pointer; }
.featured-eyebrow {
  display: inline-block; background: #C6862B; color: #1B2B22; font-size: 10px; font-weight: 800;
  letter-spacing: .12em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; margin-bottom: 5px;
}
.featured-name {
  margin: 0; font-family: var(--font-display); font-size: 18px; font-weight: 700; line-height: 1.15;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere;
}
.featured-price { margin: 3px 0 0; font-size: 13px; color: rgba(246,242,232,.88); }
.featured-btn {
  flex: 0 0 auto; border: none; border-radius: 999px; padding: 11px 16px; background: #F6F2E8; color: var(--primary);
  font-weight: 800; font-size: 14px; box-shadow: 0 4px 0 rgba(0,0,0,.2);
  animation: featured-pulse 2.6s ease-in-out 1s 3; /* feltűnő, de csak háromszor pulzál, utána megnyugszik */
}
.featured-btn:active { transform: translateY(2px); box-shadow: 0 2px 0 rgba(0,0,0,.2); }
.featured-btn:disabled { background: #BDB7A6; color: #6B665A; box-shadow: none; animation: none; }
@keyframes featured-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
.featured-dots { position: absolute; left: 50%; bottom: 3px; transform: translateX(-50%); display: flex; gap: 2px; z-index: 2; }
.featured-dots[hidden] { display: none; }
.featured-dot { background: none; border: none; padding: 5px 3px; }
.featured-dot::before { content: ''; display: block; width: 6px; height: 6px; border-radius: 999px; background: rgba(246,242,232,.5); transition: width .25s ease, background .25s ease; }
.featured-dot.active::before { width: 16px; background: #F6F2E8; }
.featured--multi .featured-slide { padding-bottom: 20px; }
@media (prefers-reduced-motion: reduce) { .featured-btn { animation: none; } }

/* --- PRODUCTS --- */
.back-link { background: none; border: none; color: var(--primary); font-weight: 600; padding: 0 0 14px; font-size: 15px; }
.product-list { display: grid; gap: 12px; }
.product-card {
  background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px; display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center;
}
.product-thumb { width: 64px; height: 64px; border-radius: 6px; object-fit: cover; background: var(--border); }
.product-info { min-width: 0; }
.product-name { font-weight: 600; margin: 0 0 2px; font-size: 16px; }
.product-price { color: var(--ink-soft); font-size: 14px; margin: 0; }
.product-add-btn {
  background: var(--accent); color: #fff; border: none; border-radius: 6px; padding: 10px 14px;
  font-weight: 700; font-size: 14px; white-space: nowrap;
}
.product-add-btn:disabled { background: #A7A192; color: #EFE9DA; cursor: not-allowed; }

/* --- MODAL / SHEETS --- */
.modal {
  position: fixed; inset: 0; background: rgba(32,28,22,.55); z-index: 80;
  display: flex; align-items: flex-end; justify-content: center;
}
.modal-sheet {
  background: var(--card-bg); width: 100%; max-width: 480px; border-radius: 16px 16px 0 0;
  padding: 24px; max-height: 88vh; overflow-y: auto; position: relative;
  padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
}
.modal-sheet-tall { max-height: 92vh; }
.modal-sheet-center { text-align: center; border-radius: 16px; margin: auto; align-self: center; }
.modal-close { position: absolute; top: 16px; right: 16px; background: none; border: none; font-size: 18px; color: var(--ink-soft); }
.modal-title { font-size: 22px; margin-bottom: 18px; }

/* A termékkép TELJESEN látszik (nincs vágás): a saját képarányában jelenik meg, a magas képek a képernyő felénél nem nagyobbak (object-fit: contain), a maradék fehér háttér. */
.pd-image { display: block; width: 100%; height: auto; max-height: 46vh; object-fit: contain; border-radius: 10px; background: #fff; margin-bottom: 16px; }
.pd-name { font-size: 22px; margin-bottom: 8px; }
.pd-desc { color: var(--ink-soft); line-height: 1.5; margin: 0 0 14px; }
.pd-price { font-weight: 700; font-size: 18px; color: var(--primary); margin: 0 0 16px; }
.pd-price-unit { font-weight: 400; font-size: 14px; color: var(--ink-soft); }
.pd-qty-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.qty-stepper { display: flex; align-items: center; gap: 14px; }
.qty-stepper button { width: 34px; height: 34px; border-radius: 6px; border: 1px solid var(--border); background: #fff; font-size: 18px; }
#pd-qty-value { min-width: 20px; text-align: center; font-weight: 600; }

.pd-options { border: 1px solid var(--border); border-radius: 8px; padding: 12px 14px; margin: 4px 0 16px; }
.pd-option-row { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--border); gap: 10px; }
.pd-option-row:last-child { border-bottom: none; }
.pd-option-name { font-size: 14px; }
.pd-option-price { font-size: 12px; color: var(--ink-soft); display: block; }
.pd-option-stepper { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.pd-option-stepper button { width: 28px; height: 28px; border-radius: 5px; border: 1px solid var(--border); background: #fff; }
.cart-line-fee-note { font-size: 12px; color: var(--accent); margin: 2px 0 0; }
.cart-fee-row { font-size: 14px; margin: 6px 0; color: var(--ink-soft); }

/* --- CART --- */
.cart-empty { color: var(--ink-soft); text-align: center; padding: 40px 0; }
.cart-group-title { font-family: var(--font-display); font-size: 16px; margin: 18px 0 8px; color: var(--primary); }
.cart-group-title:first-child { margin-top: 0; }
.cart-line { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 4px 10px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.cart-line-details { grid-column: 1 / -1; }   /* a részletek az egész sor szélességét kapják */
.cart-line-details p { margin: 2px 0 0; }
.cart-line-name { font-size: 15px; margin: 0; }
.cart-line-unit { font-size: 13px; color: var(--ink-soft); }
.cart-line-qty { display: flex; align-items: center; gap: 8px; }
.cart-line-qty button { width: 26px; height: 26px; border-radius: 5px; border: 1px solid var(--border); background: #fff; }
.cart-line-total { font-weight: 600; text-align: right; min-width: 70px; }

.cart-footer { margin-top: 20px; border-top: 1px solid var(--border); padding-top: 16px; }
.cart-field { display: block; font-size: 14px; color: var(--ink-soft); margin-bottom: 14px; }
.cart-field select, .cart-field input, .cart-field textarea {
  display: block; width: 100%; margin-top: 6px; padding: 11px 12px; border: 1px solid var(--border);
  border-radius: 6px; font-size: 15px; background: #fff; color: var(--ink);
}
.cart-delivery-summary { margin-bottom: 14px; }
.cart-delivery-line { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--ink-soft); margin: 0 0 8px; }
.cart-delivery-line strong { color: var(--ink); text-align: right; font-weight: 600; }
.cart-delivery-summary .btn { margin-top: 6px; }
.cart-note { font-size: 13px; color: var(--ink-soft); background: #E8E1CC; padding: 8px 10px; border-radius: 6px; margin: -6px 0 14px; }
.cart-total-row { display: flex; justify-content: space-between; align-items: center; font-size: 18px; margin: 12px 0 16px; }
.switch-row { display: flex; justify-content: space-between; align-items: center; font-size: 15px; margin-bottom: 16px; gap: 12px; }
.switch-row input { width: 20px; height: 20px; }

.success-icon {
  width: 56px; height: 56px; border-radius: 50%; background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 28px; margin: 4px auto 16px;
}

/* --- KORÁBBI RENDELÉSEIM --- */
.order-history-list { display: grid; gap: 12px; }
.order-history-card { border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; background: var(--card-bg); }
.order-history-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 4px; }
.order-history-date { font-size: 13px; color: var(--ink-soft); }
.order-history-status {
  display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700;
  background: #E8E1CC; color: var(--ink);
}
.order-history-status.st-kesz { background: #DDEBDD; color: #1F5A2E; }
.order-history-status.st-elutasitva { background: #F3DAD6; color: #8B3A3A; }
.order-history-items { margin: 8px 0; padding-left: 18px; font-size: 14px; color: var(--ink); }
.order-history-items li { margin-bottom: 2px; }
.order-history-note { font-size: 13px; color: var(--ink-soft); background: #FFF4D6; border-left: 3px solid var(--accent); padding: 6px 10px; border-radius: 4px; margin: 6px 0; }
.order-history-total { display: flex; justify-content: space-between; font-weight: 700; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--border); }

.announcement-eyebrow { color: var(--accent); font-weight: 700; margin: 0 0 10px; }
.announcement-text { font-size: 16px; line-height: 1.5; margin: 0 0 18px; }

/* --- Termék kiegészítők felugró ablak --- */
.modal-addons { z-index: 90; } /* a termék-adatlap és a kosár fölött jelenik meg */
.addon-list { margin: 0 0 6px; }
.addon-row { display: grid; grid-template-columns: 1fr auto 78px; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--border); }
.addon-row:last-child { border-bottom: none; }
.addon-name { font-size: 15px; line-height: 1.25; }
.addon-unit { display: block; font-size: 12px; color: var(--ink-soft); margin-top: 1px; }
.addon-stepper { display: flex; align-items: center; justify-content: center; gap: 4px; }
.addon-stepper button { width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--border); background: #fff; font-size: 19px; color: var(--ink); }
.addon-stepper button:disabled { opacity: .35; }
.addon-qty { min-width: 26px; text-align: center; font-weight: 700; font-size: 16px; }
.addon-qty.zero { color: var(--ink-soft); font-weight: 500; }
.addon-row-total { text-align: right; font-weight: 600; font-size: 14px; white-space: nowrap; }
.addon-row-total.zero { color: var(--ink-soft); font-weight: 400; }
.addon-total-row { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0 16px; margin-top: 4px; border-top: 2px solid var(--border); font-size: 15px; }
.addon-total-row strong { font-size: 18px; }
#addons-confirm { margin-bottom: 10px; }
.cart-line-addon { font-size: 13px; color: var(--ink-soft); margin: 1px 0 0; }
.cart-line-addon-btn { background: none; border: none; padding: 4px 0 0; font-size: 13px; color: var(--accent); text-decoration: underline; cursor: pointer; }

/* --- ALSÓ MENÜSÁV (Beállítások, Kosár, Korábbi rendelések) --- */
.bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: flex; align-items: stretch;
  background: var(--primary); color: #fff;
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -4px 18px rgba(27,43,34,.28);
}
.bottom-nav-btn {
  flex: 1; min-width: 0; background: none; border: none; color: rgba(255,255,255,.8); font: inherit;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  padding: 6px 4px; border-radius: 12px; cursor: pointer;
}
.bottom-nav-btn:active { background: rgba(255,255,255,.1); color: #fff; }
.bottom-nav-icon { position: relative; display: flex; align-items: center; justify-content: center; height: 28px; }
.bottom-nav-label { font-size: 11px; font-weight: 600; letter-spacing: .01em; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.bottom-nav-cart { color: #fff; }
.bottom-nav-cart .bottom-nav-icon { width: 46px; height: 46px; margin-top: -4px; border-radius: 50%; background: rgba(255,255,255,.14); }
.bottom-nav .cart-count { top: -3px; right: -5px; }

/* --- KERESÉS --- */
.search-sheet { min-height: 72vh; }
.search-bar {
  display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--border);
  border-radius: 12px; padding: 0 8px 0 12px; margin-bottom: 14px; color: var(--ink-soft);
}
.search-bar input {
  flex: 1; min-width: 0; border: none; outline: none; background: transparent; color: var(--ink);
  font: inherit; font-size: 16px; padding: 13px 0; -webkit-appearance: none; appearance: none;
}
.search-bar input::-webkit-search-cancel-button, .search-bar input::-webkit-search-decoration { -webkit-appearance: none; display: none; }
.search-bar:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(27,43,34,.12); }
.search-clear { background: none; border: none; color: var(--ink-soft); font-size: 16px; padding: 8px; }
.search-clear[hidden] { display: none; }
.search-hint { text-align: center; color: var(--ink-soft); font-size: 14px; padding: 26px 8px; margin: 0; }
.product-cat { margin: 0 0 2px; font-size: 12px; font-weight: 700; color: var(--accent); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Nagyon keskeny telefonon (pl. 320 px) a hosszabb feliratok két sorba törnek, nem vágódnak le */
@media (max-width: 359px) {
  .bottom-nav-label { white-space: normal; text-align: center; line-height: 1.1; overflow: visible; text-overflow: clip; }
}

/* Nagyon keskeny telefonon a banner kisebb elemekkel dolgozik, hogy a hosszú terméknév is elférjen */
@media (max-width: 359px) {
  .featured-slide { gap: 8px; padding: 10px 10px; }
  .featured-photo { flex-basis: 52px; width: 52px; height: 52px; }
  .featured-eyebrow { font-size: 9px; letter-spacing: .07em; padding: 2px 6px; }
  .featured-name { font-size: 16px; }
  .featured-btn { padding: 9px 12px; font-size: 13px; }
}

/* --- Főoldali kérdés: SZIGORÚAN egy sor (nem törhet meg; ami nem fér ki, azt a program kihagyja) --- */
.home-prompt {
  margin: 0 2px 14px; font-family: var(--font-display); font-size: 22px; font-weight: 700; line-height: 1.25;
  color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: clip;
}
.home-prompt[hidden] { display: none; }
@media (max-width: 359px) { .home-prompt { font-size: 20px; } }

/* --- Értesítések bekapcsolása ablak --- */
.notify-icon { font-size: 46px; line-height: 1; margin-bottom: 6px; }
#view-notify .pd-desc { margin: 8px 0 18px; }

/* --- TÖLTŐKÉPERNYŐ (indulás) --- */
.splash {
  position: fixed; inset: 0; z-index: 10000;
  background: #1B2B22; /* ugyanaz, mint a manifest háttérszíne: az operációs rendszer saját indítóképernyőjéből észrevétlenül ide vált */
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 30px;
  transition: opacity .35s ease;
  /* Végső védelem JavaScript nélkül is: ha valamiért 12 másodperc után is rajta maradna, magától eltűnik */
  animation: splash-failsafe .01s linear 12s forwards;
}
.splash.is-done { opacity: 0; pointer-events: none; }
.splash-logo { width: min(64vw, 270px); height: auto; display: block; animation: splash-logo-in .55s ease both; }
.splash-dots { display: flex; gap: 8px; height: 8px; }
.splash-dots span { width: 8px; height: 8px; border-radius: 50%; background: #C6862B; opacity: .35; animation: splash-dot 1.1s ease-in-out infinite; }
.splash-dots span:nth-child(2) { animation-delay: .18s; }
.splash-dots span:nth-child(3) { animation-delay: .36s; }
@keyframes splash-logo-in { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: scale(1); } }
@keyframes splash-dot { 0%, 100% { opacity: .3; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-4px); } }
@keyframes splash-failsafe { to { opacity: 0; visibility: hidden; pointer-events: none; } }
@media (prefers-reduced-motion: reduce) { .splash-logo, .splash-dots span { animation: none; opacity: 1; } .splash { transition-duration: .01s; } }

/* Amíg a töltőképernyő takar, a belépő animációk várnak: a kategóriacsempék felvillanása és a banner gombjának pulzálása
   a töltőképernyő eltűnése UTÁN indul, így továbbra is látszik */
body.booting .category-tile, body.booting .featured-btn { animation-play-state: paused; }

/* --- Időzített rendelés: Azonnali / Időzített kapcsoló + időpont-választó --- */
.cart-schedule { margin-bottom: 16px; }
.cart-schedule-label { display: block; margin-bottom: 8px; }
.mode-switch { position: relative; display: grid; grid-template-columns: 1fr 1fr; background: #E3DCC8; border-radius: 999px; padding: 4px; }
.mode-switch-thumb { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 999px; background: var(--primary, #1B2B22); box-shadow: 0 2px 6px rgba(0,0,0,.22); transition: transform .22s ease; }
.mode-switch[data-mode="timed"] .mode-switch-thumb { transform: translateX(100%); }
.mode-switch-opt { position: relative; z-index: 1; border: none; background: transparent; padding: 11px 8px; font: 600 15px 'Work Sans', sans-serif; color: var(--ink-soft); border-radius: 999px; cursor: pointer; transition: color .22s ease; -webkit-tap-highlight-color: transparent; }
.mode-switch-opt[aria-checked="true"] { color: #fff; }
.mode-switch-opt:disabled { opacity: .45; cursor: not-allowed; }
.schedule-picker { margin-top: 12px; }
.schedule-question { margin: 0 0 8px; color: var(--ink); font-weight: 600; font-size: 14px; }
.schedule-selects { display: flex; gap: 10px; }
.schedule-selects label { flex: 1; margin: 0; }
.schedule-selects select { margin-top: 4px; font-size: 16px; } /* iOS ne nagyítson rá fókuszkor */
@media (prefers-reduced-motion: reduce) { .mode-switch-thumb, .mode-switch-opt { transition: none; } }
.order-history-sched { display: inline-block; margin: 0 0 6px; padding: 2px 9px; border-radius: 10px; background: #FFF4D6; border: 1px solid #E8D49A; font-size: 12.5px; font-weight: 600; color: #6B4E00; }

/* --- Hogyan készítsük? / A termék módosítása --- */
.addons-product { margin: -4px 0 10px; color: var(--ink-soft); font-size: 14px; }
.addon-group-title { margin: 12px 0 2px; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-soft); }
.addon-group-title:first-child { margin-top: 0; }
.addons-summary { margin: 10px 0 0; padding: 10px 12px; border-radius: 8px; background: #FFF4D6; border: 1px solid #E8D49A; font-size: 14px; line-height: 1.45; }
.addons-summary strong { display: block; margin-bottom: 2px; font-size: 13px; }
.addons-summary ul { margin: 0; padding-left: 18px; }
#addons-modify-btn { margin-top: 12px; }
.btn.btn-wrap { white-space: normal; line-height: 1.3; padding-top: 13px; padding-bottom: 13px; font-size: 15px; }
#view-modify .btn { margin-top: 8px; }


.cart-line-details .cart-line-remove + .cart-line-plus { margin-top: 6px; }   /* kis tér az elhagyott és a pluszba kért tételek között */
.cart-line-remove small { font-size: 12px; }

.addons-summary small { font-size: 12px; }

/* ---------- Allergének és étrendi jelölések: halk, minimalista megjelenés ---------- */
.pd-diet { display: flex; flex-wrap: wrap; gap: 6px; margin: -6px 0 12px; }
.diet-tag { padding: 2px 10px; border: 1px solid var(--border); border-radius: 999px; font-size: 12px; color: var(--ink-soft); letter-spacing: .02em; }

.pd-allergens { margin: 0 0 16px; padding-top: 10px; border-top: 1px solid var(--border); }
.pd-allergens p { margin: 0; font-size: 13px; line-height: 1.5; color: var(--ink-soft); }
.pd-allergen-label { font-weight: 600; color: var(--ink); margin-right: 4px; }
.pd-allergens .pd-allergen-note { margin-top: 6px; font-size: 11.5px; opacity: .8; }

.addons-allergens { margin: 10px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--ink-soft); }

/* ---------- Felugró ablakok: felfelé beúsznak (gyors, ~0,3 s) ---------- */
@keyframes modalFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes sheetSlideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes sheetCenterIn { from { transform: translateY(36px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.modal:not([hidden]) { animation: modalFadeIn .22s ease-out; }
.modal:not([hidden]) .modal-sheet { animation: sheetSlideUp .32s cubic-bezier(.22, 1, .36, 1); }
.modal:not([hidden]) .modal-sheet-center { animation: sheetCenterIn .3s cubic-bezier(.22, 1, .36, 1); }

/* Bezárás = a megnyitás tükörképe (ugyanazok a kulcsképkockák visszafelé, a gyorsulás is megfordul) */
.modal:not([hidden]).closing { animation: modalFadeIn .26s ease-out reverse forwards; pointer-events: none; }
.modal:not([hidden]).closing .modal-sheet { animation: sheetSlideUp .26s cubic-bezier(.22, 1, .36, 1) reverse forwards; }
.modal:not([hidden]).closing .modal-sheet-center { animation: sheetCenterIn .26s cubic-bezier(.22, 1, .36, 1) reverse forwards; }

/* ---------- Toast ---------- */
@keyframes toastIn { from { transform: translateY(-14px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.toast:not([hidden]):not([data-fade]) { animation: toastIn .22s ease-out; }
.toast-actions { display: flex; align-items: center; gap: 14px; flex: 0 0 auto; }
.toast-link { white-space: nowrap; padding: 4px 0; }
#toast-text { min-width: 0; }

/* ---------- Kosárba tétel: a kosár ikon és a darabszám megugrik ---------- */
@keyframes cartBump { 0% { transform: scale(1); } 35% { transform: scale(1.3); } 70% { transform: scale(.94); } 100% { transform: scale(1); } }
.cart-bump { animation: cartBump .45s ease; }

/* ---------- Kedvenc csillag az adatlapon ---------- */
.pd-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.pd-title-row .pd-name { margin: 0; }
.fav-btn { flex: 0 0 auto; background: none; border: none; padding: 4px; margin: -2px -4px 0 0; cursor: pointer; line-height: 0; border-radius: 50%; }
.fav-btn svg { width: 28px; height: 28px; fill: none; stroke: var(--ink-soft); stroke-width: 1.7; stroke-linejoin: round; transition: fill .15s, stroke .15s; }
.fav-btn[aria-pressed="true"] svg { fill: var(--accent); stroke: var(--accent); animation: favPop .35s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes favPop { 0% { transform: scale(.7); } 100% { transform: scale(1); } }

/* ---------- Kedvencek blokk a kategória tetején ---------- */
.fav-block { background: #EADFC4; border-radius: 14px; padding: 12px 12px 4px; margin-bottom: 18px; display: grid; gap: 0; }
.fav-block-title { margin: 0 0 10px 4px; font-family: var(--font-display); font-size: 15px; font-weight: 700; color: var(--ink); letter-spacing: .01em; }
.fav-block .product-card { margin-bottom: 10px; border-color: transparent; }

/* ---------- Betöltő vázak ---------- */
@keyframes skelShimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.skel { display: block; background: linear-gradient(90deg, rgba(0,0,0,.06) 25%, rgba(0,0,0,.12) 37%, rgba(0,0,0,.06) 63%); background-size: 400% 100%; animation: skelShimmer 1.4s ease infinite; border-radius: 6px; }
.skel-tile { display: flex; flex-direction: column; align-items: center; gap: 12px; min-height: 140px; padding: 14px 6px 12px; border-radius: 16px; background: rgba(0,0,0,.035); }
.skel-circle { width: 74px; height: 74px; border-radius: 50%; }
.skel-tile .skel-line { width: 60%; height: 12px; }
.skel-card { display: grid; grid-template-columns: 64px 1fr 84px; gap: 12px; align-items: center; padding: 14px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card-bg); margin-bottom: 10px; }
.skel-thumb { width: 64px; height: 64px; }
.skel-lines { display: grid; gap: 8px; }
.skel-line { height: 13px; }
.skel-line.short { width: 55%; }
.skel-btn { height: 36px; }
.skel-order { display: grid; gap: 10px; padding: 16px; border: 1px solid var(--border); border-radius: 10px; background: var(--card-bg); margin-bottom: 12px; }
.skel-order .skel-line:first-child { width: 45%; }

@media (prefers-reduced-motion: reduce) {
  .modal:not([hidden]), .modal:not([hidden]).closing, .modal:not([hidden]) .modal-sheet, .modal:not([hidden]).closing .modal-sheet, .modal:not([hidden]) .modal-sheet-center, .modal:not([hidden]).closing .modal-sheet-center, .toast:not([hidden]):not([data-fade]), .cart-bump, .fav-btn[aria-pressed="true"] svg { animation: none; }
  .skel { animation: none; }
}

/* ---------- Alkalmazás-telepítés ---------- */
.install-prompt-icon { width: 72px; height: 72px; border-radius: 18px; box-shadow: 0 6px 16px rgba(27,43,34,.28); margin: 2px auto 14px; display: block; }
.install-prompt-title { margin: 0 0 6px; }
.install-prompt-text { margin: 0 0 16px; color: var(--ink-soft); font-size: 16px; }

.install-platform { margin: -6px 0 6px; }
.install-platform span { display: inline-block; padding: 2px 10px; border-radius: 999px; background: var(--primary); color: #F6F2E8; font-size: 12px; font-weight: 700; letter-spacing: .04em; }
.install-warn { background: #FFF1D6; border: 1px solid #E8C860; border-radius: 10px; padding: 10px 12px; font-size: 13.5px; line-height: 1.45; margin-bottom: 14px; }
.install-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.install-step { border: 1px solid var(--border); border-radius: 14px; background: #fff; padding: 12px 12px 12px; }
.install-step-head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 10px; }
.install-step-num { flex: 0 0 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; font-size: 15px; display: flex; align-items: center; justify-content: center; }
.install-step-head h4 { margin: 0 0 2px; font-size: 16px; line-height: 1.3; }
.install-step-head p { margin: 0; font-size: 13.5px; line-height: 1.45; color: var(--ink-soft); }
.install-ill { display: block; width: 100%; height: auto; border-radius: 12px; }
.install-note { margin: 14px 0 6px; font-size: 12.5px; line-height: 1.5; color: var(--ink-soft); }
#install-guide-close-bottom { margin-top: 14px; }

/* a kiemelő gyűrű finoman pulzál, hogy odavezesse a szemet */
@keyframes illPulse { 0%, 100% { opacity: 1; stroke-width: 3; } 50% { opacity: .35; stroke-width: 5; } }
.ill-ring { animation: illPulse 1.6s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .ill-ring { animation: none; } }

/* ---------- "Telepítés most" gomb: kiemelt kártya, pulzáló gomb, éles elválasztás a kézi lépésektől ---------- */
.install-native-card { background: #FFF2D6; border: 2px solid var(--accent); border-radius: 16px; padding: 14px 14px 12px; text-align: center; }
.install-native-btn { position: relative; display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 17px 16px; border: none; border-radius: 12px; background: var(--accent); color: #fff; font-size: 19px; font-weight: 800; letter-spacing: .01em; cursor: pointer; animation: installPulse 1.8s ease-out infinite; }
.install-native-btn svg { width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; animation: installArrow 1.8s ease-in-out infinite; }
.install-native-btn:active { transform: scale(.98); }
.install-native-sub { margin: 10px 0 0; font-size: 13px; color: #6B5320; }
@keyframes installPulse {
  0% { box-shadow: 0 0 0 0 rgba(198, 134, 43, .65); }
  70% { box-shadow: 0 0 0 16px rgba(198, 134, 43, 0); }
  100% { box-shadow: 0 0 0 0 rgba(198, 134, 43, 0); }
}
@keyframes installArrow { 0%, 100% { transform: translateY(-2px); } 50% { transform: translateY(3px); } }

.install-divider { display: flex; align-items: center; gap: 12px; margin: 26px 0 18px; color: var(--ink-soft); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.install-divider::before, .install-divider::after { content: ""; flex: 1; height: 2px; background: var(--border); border-radius: 2px; }
.install-divider span { text-align: center; max-width: 60%; line-height: 1.3; }
@media (prefers-reduced-motion: reduce) { .install-native-btn, .install-native-btn svg { animation: none; } }

/* Megjegyzés a Beállítások kapcsolója alatt (pl. miért nem aktív az értesítés) */
.settings-note { font-size: 13px; line-height: 1.4; color: var(--ink-soft); margin: -4px 0 12px; }

/* Regisztráció: képes biztonsági kód */
.reg-captcha-img { display: block; width: 100%; max-width: 220px; height: auto; margin: 8px 0 2px; border: 1px solid var(--border); border-radius: 8px; background: #fff; }

