/* /etterem_dev/assets/style.css  (élesítéskor: /etterem/assets/style.css)
   HorecaPOS étterem-webshop - alap stílus (2026-10-08)
   Mobilra tervezve: az alap szabályok a telefonra szólnak, a szélesebb
   képernyők a @media (min-width: ...) blokkokban kapnak kiegészítést.
   A fő szín (--accent) étteremenként a <head>-ben felülíródik. */

:root {
    --accent: #d35400;
    --dark: #222;
    --dark-2: #1a1a1a;
    --bg: #f6f4f1;
    --card: #fff;
    --text: #2b2b2b;
    --muted: #777;
    --line: #e6e1da;
    --radius: 12px;
    --shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
    --topbar-h: 60px;
}

* { box-sizing: border-box; }

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

body {
    margin: 0;
    font-family: 'Segoe UI', Roboto, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: var(--text);
    background: var(--bg);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

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

a { color: var(--accent); }

h1, h2, h3 { line-height: 1.2; margin: 0 0 12px; }

.muted { color: var(--muted); }

/* ---------- Fejlesztői sáv ---------- */
.devbar {
    background: #b00020;
    color: #fff;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 3px 8px;
}

/* ---------- Fejléc (ragadós) ---------- */
.topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--dark);
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.topbar-inner {
    max-width: 1200px;
    margin: 0 auto;
    height: var(--topbar-h);
    padding: 0 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1;
    color: #fff;
    text-decoration: none;
}

.brand-logo { height: 40px; width: auto; border-radius: 6px; }

.brand-name {
    font-weight: 700;
    font-size: 17px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-btn, .menu-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    color: #fff;
    background: transparent;
    border: 0;
    cursor: pointer;
    text-decoration: none;
}

.cart-btn:hover, .menu-btn:hover { background: rgba(255, 255, 255, 0.1); }

.cart-badge {
    position: absolute;
    top: 3px;
    right: 1px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 10px;
    background: var(--accent);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 20px;
    text-align: center;
}

.menu-btn .icon-close { display: none; }
body.nav-open .menu-btn .icon-open { display: none; }
body.nav-open .menu-btn .icon-close { display: inline-flex; }

/* Mobil menü: a fejléc alatt lenyíló panel */
.mainnav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--dark-2);
    border-top: 1px solid #333;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

body.nav-open .mainnav { display: block; }

.mainnav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid #2c2c2c;
}

.mainnav a.active, .mainnav a:hover { color: var(--accent); }

/* ---------- Borító ---------- */
.hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 170px;
    padding: 28px 16px;
    text-align: center;
    color: #fff;
    background: linear-gradient(135deg, var(--accent), var(--dark));
    background-size: cover;
    background-position: center;
}

.hero.has-cover::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.hero-text { position: relative; }

.hero-text h1 {
    font-size: 28px;
    margin: 0 0 6px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-text p {
    margin: 0;
    font-size: 16px;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}

/* ---------- Sürgős üzenet: lekerekített doboz a tartalom tetején ----------
   Szín: .urgent-warning (sárga), .urgent-danger (piros), .urgent-info (kék)
   A tartalom a szerkesztőből jön (félkövér, igazítás, listák, link). */
.urgent {
    border: 1px solid;
    border-radius: 8px;
    padding: 14px 18px;
    margin: 0 0 16px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}
.urgent p { margin: 0 0 8px; }
.urgent p:last-child, .urgent ul:last-child, .urgent ol:last-child { margin-bottom: 0; }
.urgent ul, .urgent ol { margin: 0 0 8px; padding-left: 22px; }
.urgent a { color: inherit; font-weight: 700; }

.urgent-warning { background: #fcf8e3; border-color: #f2df9b; color: #6b4f00; }
.urgent-danger  { background: #f2dede; border-color: #e4b9b9; color: #a94442; }
.urgent-info    { background: #d9edf7; border-color: #a6d4ea; color: #31708f; }

/* ---------- Tartalom ---------- */
.content {
    flex: 1;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 12px 32px;
}

.box {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 18px 16px;
    margin-bottom: 16px;
    overflow-wrap: anywhere;
}

.box.center { text-align: center; padding: 36px 16px; }

.btn {
    display: inline-block;
    min-height: 48px;
    padding: 12px 24px;
    border: 0;
    border-radius: 24px;
    background: var(--accent);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.btn:hover { filter: brightness(1.08); }

/* ---------- Lábléc ---------- */
.footer {
    background: var(--dark);
    color: #ccc;
    border-top: 5px solid var(--accent);
    font-size: 15px;
}

.footer-cols {
    max-width: 1200px;
    margin: 0 auto;
    padding: 28px 16px 8px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.footer-col h3 {
    color: var(--accent);
    font-size: 17px;
    padding-bottom: 8px;
    border-bottom: 2px solid #444;
}

.footer-col p { margin: 8px 0; }

.footer a { color: #ddd; text-decoration: none; }
.footer a:hover { color: var(--accent); }

.icon-line { display: flex; align-items: center; gap: 8px; }
.icon-line svg { flex: none; color: var(--accent); }

.footer-note { color: #999; font-size: 14px; }

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px;
    border-top: 1px solid #3a3a3a;
    text-align: center;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 20px;
    margin-bottom: 10px;
}

.footer-links a { padding: 6px 0; }

.copyright { margin: 0; color: #888; font-size: 13px; }

/* ---------- Mobil kosár-sáv (alul rögzítve) ---------- */
.cartbar {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    z-index: 90;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 56px;
    padding: 8px 18px;
    border-radius: 28px;
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

.cartbar-count {
    min-width: 30px;
    height: 30px;
    padding: 0 8px;
    border-radius: 15px;
    background: rgba(0, 0, 0, 0.2);
    line-height: 30px;
    text-align: center;
}

.cartbar-label { flex: 1; }

/* hely a lábléc alján, hogy a sáv ne takarja el a lábléc végét */
body.has-cartbar .footer { padding-bottom: 84px; }

/* =========================================================
   Szélesebb képernyő (tablet / asztali gép)
   ========================================================= */
@media (min-width: 700px) {
    .footer-cols { grid-template-columns: repeat(3, 1fr); }
    .hero { min-height: 260px; }
    .hero-text h1 { font-size: 40px; }
    .hero-text p { font-size: 19px; }
    .content { padding: 24px 20px 40px; }
    .box { padding: 24px 28px; }
}

@media (min-width: 900px) {
    :root { --topbar-h: 68px; }

    .topbar-inner { padding: 0 20px; gap: 16px; }
    .brand-name { font-size: 20px; }

    /* Menü kiírva a fejlécben, hamburger gomb nélkül */
    .menu-btn { display: none; }

    .mainnav,
    body.nav-open .mainnav {
        display: flex;
        position: static;
        background: none;
        border: 0;
        box-shadow: none;
        gap: 4px;
    }

    .mainnav a {
        border: 0;
        padding: 8px 14px;
        border-radius: 8px;
        text-transform: uppercase;
        font-size: 15px;
        letter-spacing: 0.3px;
    }

    .mainnav a:hover { background: rgba(255, 255, 255, 0.08); }

    .hero { min-height: 320px; }

    /* Asztali gépen a kosár a fejlécben látszik, az alsó sáv nem kell */
    .cartbar { display: none; }
    body.has-cartbar .footer { padding-bottom: 0; }
}

/* ---------- Bemutatkozó oldal: nagy "Tovább az étlapra" gomb ---------- */
.cta { text-align: center; margin: 8px 0 16px; }

.btn-big {
    width: 100%;
    max-width: 420px;
    font-size: 18px;
    padding: 16px 28px;
    border-radius: 30px;
    text-align: center;
}

/* ---------- Szerkesztőből jövő szöveg (bemutatkozó, ÁSZF stb.) ---------- */
.rich-text { line-height: 1.6; }
.rich-text h1, .rich-text h2, .rich-text h3 { margin-top: 0.6em; }
.rich-text table { border-collapse: collapse; display: block; overflow-x: auto; }
.rich-text td, .rich-text th { padding: 6px 10px; border: 1px solid var(--line); }
.rich-text iframe { width: 100%; max-width: 100%; min-height: 300px; border: 0; border-radius: 8px; }
.rich-text img { border-radius: 8px; }

/* Menü ikonok */
.mainnav a svg { flex: none; width: 20px; height: 20px; }

@media (min-width: 900px) {
    .mainnav a { gap: 7px; font-weight: 700; }
    .mainnav a svg { width: 18px; height: 18px; }
}

/* Kosár darabszám a menü "Kosár" pontján (asztali nézet) */
.nav-badge {
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 10px;
    background: var(--accent);
    color: #fff;
    font-size: 12px;
    line-height: 20px;
    text-align: center;
}

/* Mobilon a fejléc kosár ikonja mutatja a darabszámot, a menüben nem kell */
.mainnav .nav-badge { display: none; }

@media (min-width: 900px) {
    /* Asztali gépen a menü "Kosár" pontja elég, a külön kosár ikon nem kell */
    .cart-btn { display: none; }
    .mainnav .nav-badge { display: inline-block; }
    .mainnav a.active .nav-badge, .mainnav a:hover .nav-badge { color: #fff; }
}

.rich-text blockquote { margin: 0 0 12px; padding: 8px 16px; border-left: 4px solid var(--line); color: var(--muted); }
.rich-text hr { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }

/* Céginformáció táblázat */
.info-table { border-collapse: collapse; width: 100%; margin: 8px 0 20px; }
.info-table th, .info-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.info-table th { width: 40%; color: var(--muted); font-weight: 600; }
.info-sub { font-size: 18px; margin-top: 8px; }
@media (max-width: 520px) {
    .info-table th, .info-table td { display: block; width: auto; border: 0; padding: 2px 0; }
    .info-table tr { display: block; padding: 8px 0; border-bottom: 1px solid var(--line); }
}

/* =========================================================
   KISZÁLLÍTÁSI INFORMÁCIÓK (2026-10-08) - Bemutatkozás alján vagy külön oldalon
   ========================================================= */
#kiszallitas { scroll-margin-top: calc(var(--topbar-h) + 12px); }
.delivery-title { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 22px; }
.delivery-title svg { flex: none; width: 28px; height: 28px; color: var(--accent); }
.delivery-hours h3 { margin: 0 0 6px; font-size: 16px; }
.delivery-hours ul { list-style: none; margin: 0 0 6px; padding: 0; }
.delivery-hours li { padding: 2px 0; }
.delivery-hours p { margin: 4px 0; font-size: 14px; }
.delivery-hours { margin-bottom: 16px; }

.zone-table { width: 100%; border-collapse: collapse; margin: 4px 0 10px; font-size: 15px; }
.zone-table th, .zone-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); }
.zone-table thead th { background: #f3f0eb; color: var(--muted); font-size: 13px; font-weight: 700; white-space: nowrap; }
.zone-table tbody th { font-weight: 700; }
.zone-table td { white-space: nowrap; }
.zone-table tbody tr:hover { background: #faf8f5; }
.delivery-foot { font-size: 13px; margin: 6px 0 0; }

/* Mobilon: minden zóna egy kis kártya, a mezők címkével */
@media (max-width: 640px) {
    .zone-table thead { display: none; }
    .zone-table, .zone-table tbody, .zone-table tr, .zone-table th, .zone-table td { display: block; width: auto; }
    .zone-table tr { padding: 10px 0; border-bottom: 1px solid var(--line); }
    .zone-table tbody th { padding: 0 0 4px; border: 0; font-size: 16px; }
    .zone-table td { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; border: 0; white-space: normal; }
    .zone-table td::before { content: attr(data-label); color: var(--muted); }
    .zone-table tbody tr:hover { background: none; }
}

/* =========================================================
   ÉTLAP (2026-10-08)
   ========================================================= */
.notice { border-radius: 8px; padding: 12px 16px; margin: 0 0 16px; font-weight: 600; }
.notice-off { background: #eef0f3; color: #4b5563; border: 1px solid #d9dde3; }

/* Kategória-gombsor: a fejléc alá tapad, vízszintesen görgethető
   (mobilon ujjal; asztali gépen egérrel húzható + ‹ › nyilak) */
.cat-wrap {
    position: sticky;
    top: var(--topbar-h);
    z-index: 50;
    margin: 0 -12px 8px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
}
.cat-bar {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 10px 12px;
}
.cat-bar::-webkit-scrollbar { display: none; }
/* Elmosott szél, ha arra még van kategória */
.cat-wrap.can-next .cat-bar { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent); }
.cat-wrap.can-prev .cat-bar { -webkit-mask-image: linear-gradient(to right, transparent, #000 40px); mask-image: linear-gradient(to right, transparent, #000 40px); }
.cat-wrap.can-prev.can-next .cat-bar { -webkit-mask-image: linear-gradient(to right, transparent, #000 40px, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(to right, transparent, #000 40px, #000 calc(100% - 40px), transparent); }
.cat-bar.dragging { cursor: grabbing; user-select: none; }
.cat-bar.dragging .cat-chip { pointer-events: none; }

/* Lapozó nyilak - csak egeres eszközön */
.cat-arrow {
    display: none;
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 34px;
    height: 34px;
    margin-top: -17px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: #fff;
    color: var(--text);
    font-size: 24px;
    line-height: 30px;
    text-align: center;
    padding: 0;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}
.cat-arrow:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.cat-prev { left: 4px; }
.cat-next { right: 4px; }
@media (hover: hover) and (pointer: fine) {
    .cat-bar { cursor: grab; }
    .cat-wrap.can-prev .cat-prev, .cat-wrap.can-next .cat-next { display: block; }
}

/* Jelmagyarázat link a gombsor alatt */
.menu-tools { display: flex; justify-content: flex-end; margin: 0 0 4px; }
.link-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 2px;
    border: 0;
    background: none;
    color: var(--accent);
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}
.link-btn:hover { text-decoration: underline; }

.cat-chip {
    flex: none;
    padding: 8px 14px;
    border-radius: 20px;
    background: #fff;
    border: 1px solid var(--line);
    color: var(--text);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    white-space: nowrap;
}
.cat-chip.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* Kategória szakasz - a horgonyra ugráskor ne bújjon a fejléc + gombsor alá */
.menu-cat { scroll-margin-top: calc(var(--topbar-h) + 64px); margin-bottom: 24px; }
.menu-cat-title { font-size: 20px; margin: 8px 0 12px; }

.menu-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }

/* Termékkártya */
.dish {
    display: flex;
    gap: 12px;
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 14px;
}
.dish-img {
    flex: none;
    width: 88px;
    height: 88px;
    object-fit: cover;
    border-radius: 10px;
    background: #eee;
}
.dish-body { flex: 1; min-width: 0; }
.dish-name { font-size: 16px; margin: 0 0 4px; line-height: 1.3; }
.dish-desc { margin: 0 0 6px; color: var(--muted); font-size: 14px; line-height: 1.4; }
.dish-allergens { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 10px; }

/* Allergén-jelvény: színes kör fehér ikonnal, sarkában a kód */
.al {
    position: relative;
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--al, #6b7280);
    color: #fff;
    cursor: pointer;
}
span.al { cursor: default; }
.al svg { width: 20px; height: 20px; }
.al-num {
    position: absolute;
    right: -4px;
    bottom: -3px;
    min-width: 15px;
    height: 15px;
    padding: 0 3px;
    border-radius: 8px;
    background: #fff;
    color: var(--al, #6b7280);
    border: 1px solid var(--al, #6b7280);
    font-size: 9px;
    font-weight: 700;
    line-height: 13px;
    text-align: center;
}
.al-only-num { font-size: 13px; font-weight: 700; }
button.al:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }

/* Allergén neve buborékban */
.al-tip {
    position: fixed;
    z-index: 300;
    max-width: 240px;
    padding: 6px 10px;
    border-radius: 6px;
    background: #222;
    color: #fff;
    font-size: 13px;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.12s;
}
.al-tip.show { opacity: 1; visibility: visible; }

/* Jelmagyarázat felugró ablak */
.al-legend {
    width: min(520px, calc(100% - 24px));
    max-height: calc(100% - 40px);
    padding: 0;
    border: 0;
    border-radius: var(--radius);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    color: var(--text);
}
.al-legend::backdrop { background: rgba(0, 0, 0, 0.45); }
.al-legend-head {
    position: sticky;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: #fff;
    border-bottom: 1px solid var(--line);
}
.al-legend-head h2 { margin: 0; font-size: 18px; }
.al-legend-close {
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: #f0eee9;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}
.al-legend-list {
    list-style: none;
    margin: 0;
    padding: 12px 16px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px 16px;
}
.al-legend-list li { display: flex; align-items: center; gap: 12px; font-size: 15px; }
.al-legend-note { margin: 0; padding: 0 16px 16px; color: var(--muted); font-size: 13px; }
.dish-deposit { margin: 6px 0 0; color: var(--muted); font-size: 12px; }

.badge-18 {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 6px;
    border-radius: 4px;
    background: #b00020;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    vertical-align: middle;
}

/* Kiszerelés gombok (mindegyik a saját árával) */
.dish-variants { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.variant-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 6px 12px;
    border: 2px solid var(--accent);
    border-radius: 20px;
    background: #fff;
    color: var(--text);
    font-size: 14px;
    cursor: pointer;
}
.variant-btn .variant-price { font-weight: 700; color: var(--accent); white-space: nowrap; }
.variant-btn:hover:not(:disabled) { background: var(--accent); color: #fff; }
.variant-btn:hover:not(:disabled) .variant-price { color: #fff; }
.variant-btn:disabled { border-color: var(--line); cursor: not-allowed; opacity: 0.7; }
.variant-btn:disabled .variant-price { color: var(--muted); }

/* Rövid felugró üzenet alul */
.toast {
    position: fixed;
    left: 50%;
    bottom: calc(90px + env(safe-area-inset-bottom, 0px));
    transform: translateX(-50%) translateY(20px);
    z-index: 200;
    max-width: calc(100% - 32px);
    padding: 10px 18px;
    border-radius: 20px;
    background: #222;
    color: #fff;
    font-size: 14px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s, transform 0.2s;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (min-width: 700px) {
    .cat-wrap { margin: 0 -20px 8px; }
    .cat-bar { padding: 12px 20px; }
    .al-legend-list { grid-template-columns: 1fr 1fr; }
    .menu-grid { grid-template-columns: repeat(2, 1fr); }
    .dish-img { width: 104px; height: 104px; }
}

/* =========================================================
   VEVŐI FIÓK: belépés, regisztráció, űrlapok, üzenetek (2026-10-09)
   ========================================================= */
.flash, .alert { border-radius: 10px; padding: 12px 16px; margin: 0 0 16px; line-height: 1.45; }
.flash-success, .alert-success { background: #e8f5e9; color: #1b5e20; border: 1px solid #b7dfb9; }
.flash-info, .alert-info { background: #e8f1fb; color: #0d3c61; border: 1px solid #bcd6f0; }
.flash-error, .alert-danger { background: #fdecea; color: #8a1c13; border: 1px solid #f3c0ba; }
.alert-warning { background: #fff6e0; color: #6b4a00; border: 1px solid #f1d58a; }
.alert p { margin: 6px 0 0; }
.alert a { color: inherit; font-weight: 700; }
.callbox .call-phone { display: inline-block; margin-top: 4px; font-size: 20px; font-weight: 800; text-decoration: none; }

.form-box { max-width: 560px; margin-left: auto; margin-right: auto; }
.form-box h1 { margin: 0 0 12px; font-size: 24px; }
.form-box h2 { margin: 0 0 8px; font-size: 18px; }
.center-text { text-align: center; }

.form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-weight: 600; font-size: 14px; }
.field input, .field select {
    width: 100%;
    min-height: 48px;
    padding: 10px 12px;
    border: 1px solid #cfc8bf;
    border-radius: 10px;
    background: #fff;
    color: var(--text);
    font: inherit;
    font-size: 16px;           /* 16px alatt az iPhone ránagyít */
}
.field input:focus, .field select:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.field .hint { color: var(--muted); font-size: 13px; }
.field-row { display: flex; gap: 12px; flex-wrap: wrap; }
.field-grow { flex: 1 1 220px; }
.field-small { flex: 0 1 140px; }

.check { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; line-height: 1.4; cursor: pointer; }
.check input { flex: none; width: 22px; height: 22px; margin: 0; accent-color: var(--accent); }

.btn-block { display: block; width: 100%; text-align: center; }
.btn-outline { background: #fff; color: var(--accent); border: 2px solid var(--accent); }
.btn-outline:hover { background: var(--accent); color: #fff; filter: none; }

.form-note { margin: 14px 0 0; font-size: 14px; color: var(--muted); }

/* Csapdamező a gépi regisztráció ellen - embernek láthatatlan */
.honey { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.or-sep { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--muted); font-size: 14px; }
.or-sep::before, .or-sep::after { content: ""; flex: 1; border-top: 1px solid var(--line); }

/* Lépésjelző */
.steps { display: flex; gap: 8px; list-style: none; margin: 0 0 16px; padding: 0; }
.steps li { flex: 1; display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px;
            background: #f3f0eb; color: var(--muted); font-weight: 600; font-size: 14px; }
.steps li span { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px;
                 border-radius: 50%; background: #fff; border: 1px solid var(--line); font-size: 13px; }
.steps li.active { background: var(--accent); color: #fff; }
.steps li.active span { color: var(--accent); border-color: #fff; }
.steps li.done span { background: #2e7d32; border-color: #2e7d32; color: #fff; }

/* Regisztráció 2. lépés: a cím és a zóna összefoglalója */
.reg-summary { background: #f7f5f1; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin: 0 0 16px; line-height: 1.5; }
.reg-ok { color: #2e7d32; font-weight: 700; }
.reg-zone { margin: 6px 0; padding-left: 18px; font-size: 14px; }

/* =========================================================
   KOSÁR (2026-10-09): feltétválasztó panel, kosár oldal
   ========================================================= */
[hidden] { display: none !important; }
.page-title { font-size: 24px; margin: 4px 0 14px; }
body.is-busy { cursor: progress; }
body.is-busy .cart-lines { opacity: 0.6; pointer-events: none; }

/* Mennyiség léptető */
.qty-stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 24px; background: #fff; }
.qty-btn { width: 44px; height: 44px; border: 0; background: none; color: var(--accent); font-size: 22px; font-weight: 700; cursor: pointer; }
.qty-btn:disabled { color: #c9c3bb; cursor: default; }
.qty-val { min-width: 28px; text-align: center; font-weight: 700; }
.qty-small .qty-btn { width: 38px; height: 38px; font-size: 20px; }

/* Panel: mobilon alulról, asztali gépen középen */
.sheet {
    width: 100%;
    max-width: 560px;
    max-height: 92vh;
    margin: auto auto 0;
    padding: 0;
    border: 0;
    border-radius: 18px 18px 0 0;
    background: #fff;
    color: var(--text);
    box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.25);
}
.sheet::backdrop { background: rgba(0, 0, 0, 0.45); }
.sheet-inner { display: flex; flex-direction: column; max-height: 92vh; }
.sheet-head { display: flex; justify-content: space-between; gap: 12px; padding: 16px 16px 10px; border-bottom: 1px solid var(--line); }
.sheet-head h2 { margin: 0; font-size: 19px; line-height: 1.3; }
.sheet-sub { color: var(--muted); font-size: 14px; margin-top: 2px; }
.sheet-close { flex: none; width: 38px; height: 38px; border: 0; border-radius: 50%; background: #f0eee9; font-size: 24px; line-height: 1; cursor: pointer; }
.sheet-body { overflow-y: auto; padding: 4px 16px 12px; -webkit-overflow-scrolling: touch; }
.sheet-foot { display: flex; align-items: center; gap: 12px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); }
.sheet-add { flex: 1; }
.sheet-add:disabled { opacity: 0.5; cursor: not-allowed; filter: none; }
.sheet-error { color: #b00020; font-size: 13px; padding: 0 16px 10px; min-height: 0; }
.sheet-error:empty { display: none; }
@media (min-width: 700px) {
    .sheet { margin: auto; border-radius: 18px; }
}

.opt-group { border: 0; padding: 0; margin: 14px 0 0; }
.opt-group legend { display: flex; justify-content: space-between; width: 100%; padding: 0; font-weight: 700; font-size: 16px; }
.opt-count { font-weight: 600; font-size: 13px; color: #2e7d32; }
.opt-count.bad { color: #b00020; }
.opt-rule { color: var(--muted); font-size: 13px; margin: 2px 0 6px; }
.opt-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 48px; padding: 4px 0 4px 10px;
           border: 1px solid var(--line); border-radius: 10px; margin-bottom: 6px; cursor: pointer; }
.opt-row.on { border-color: var(--accent); background: #fff7f0; }
.opt-name small { color: var(--muted); font-weight: 600; }
.opt-step { display: inline-flex; align-items: center; }
.opt-step button { width: 40px; height: 40px; border: 0; background: none; color: var(--accent); font-size: 22px; font-weight: 700; cursor: pointer; }
.opt-step button:disabled { color: #d6d0c8; cursor: default; }
.opt-q { min-width: 20px; text-align: center; font-weight: 700; }
/* Egy választós csoport: kör jelölő a léptető helyett */
.opt-row.single .opt-step { display: none; }
.opt-row.single::after { content: ""; flex: none; width: 22px; height: 22px; margin-right: 12px; border: 2px solid #c9c3bb; border-radius: 50%; }
.opt-row.single.on::after { border-color: var(--accent); background: radial-gradient(var(--accent) 0 45%, #fff 50%); }
.opt-note { display: flex; flex-direction: column; gap: 6px; margin: 14px 0 4px; font-weight: 600; font-size: 14px; }
.opt-note small { color: var(--muted); font-weight: 400; }
.opt-note textarea { width: 100%; padding: 10px 12px; border: 1px solid #cfc8bf; border-radius: 10px; font: inherit; font-size: 16px; resize: vertical; }

/* Kosár oldal */
.cart-layout { display: grid; grid-template-columns: 1fr; gap: 16px; align-items: start; }
@media (min-width: 900px) { .cart-layout { grid-template-columns: 1fr 340px; } .cart-summary { position: sticky; top: calc(var(--topbar-h) + 16px); } }
.cart-lines { display: flex; flex-direction: column; gap: 10px; }
.cart-line { display: flex; justify-content: space-between; gap: 12px; padding: 14px; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); }
.cart-line-main { min-width: 0; }
.cart-line-name { margin: 0 0 2px; font-size: 16px; line-height: 1.3; }
.cart-line-variant { font-size: 14px; color: var(--muted); }
.cart-line-options { margin: 4px 0 0; padding-left: 18px; font-size: 14px; }
.cart-line-note { margin-top: 4px; font-size: 14px; font-style: italic; color: #555; }
.cart-line-unit { font-size: 13px; margin-top: 4px; }
.cart-line-deposit { font-size: 13px; margin-top: 2px; color: #6b4a00; }
.cart-line-side { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.cart-line-total { font-weight: 800; font-size: 16px; white-space: nowrap; }
.link-danger { color: #b00020; font-size: 13px; padding: 2px; }
.cart-summary h2 { margin: 0 0 10px; font-size: 18px; }
.cart-summary dl { margin: 0; }
.cart-summary dl div { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; }
.cart-summary dt { color: var(--muted); }
.cart-summary dd { margin: 0; font-weight: 700; white-space: nowrap; }
.cart-summary .cart-sum-total { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 10px; font-size: 18px; }
.cart-summary .cart-sum-total dt { color: var(--text); font-weight: 700; }
.cart-sum-note { font-size: 13px; margin: 8px 0 12px; }
.cart-18 { font-size: 13px; }
.cart-back { margin-top: 10px; }
@media (max-width: 420px) {
    .cart-line { flex-direction: column; }
    .cart-line-side { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* Termék panel: kép, leírás, kiszerelés-váltó; kosár: tétel-megjegyzés (2026-10-09) */
.sheet-img { display: block; width: calc(100% + 32px); max-height: 220px; margin: 0 -16px 10px; object-fit: cover; background: #eee; }
.sheet-desc { margin: 10px 0 0; color: var(--muted); font-size: 14px; line-height: 1.45; }
.sheet-variants { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.sheet-variant { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 120px; padding: 8px 12px;
                 border: 2px solid var(--line); border-radius: 12px; background: #fff; font: inherit; font-size: 14px; cursor: pointer; text-align: left; }
.sheet-variant strong { color: var(--accent); }
.sheet-variant.on { border-color: var(--accent); background: #fff7f0; }
.cart-line-note-wrap { margin-top: 4px; }
.cart-line-note-wrap .link-btn { font-size: 13px; padding: 2px 0; }
.cart-note-form textarea { width: 100%; margin-top: 6px; padding: 8px 10px; border: 1px solid #cfc8bf; border-radius: 10px; font: inherit; font-size: 16px; }
.cart-note-actions { display: flex; align-items: center; gap: 12px; margin-top: 6px; }
.btn-small { min-height: 36px; padding: 6px 16px; font-size: 14px; }

/* Kosárba gomb: felirat balra, ár jobbra (2026-10-09) */
.sheet-add { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-left: 22px; padding-right: 22px; }
.sheet-add .add-price { padding: 4px 10px; border-radius: 14px; background: rgba(255, 255, 255, 0.22); white-space: nowrap; }

/* Közösségi oldalak a láblécben (2026-10-09) */
.social-links { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; padding: 0; }
.social-links a { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 12px; border: 1px solid rgba(255, 255, 255, 0.25);
                  border-radius: 20px; color: #fff; text-decoration: none; font-size: 14px; }
.social-links a:hover { border-color: var(--accent); color: var(--accent); }
.social-links svg { color: var(--accent); }
.social-links img { display: block; width: 20px; height: 20px; }

/* =========================================================
   KARRIER: pozíciók és jelentkezés (2026-10-09)
   ========================================================= */
.section-title { margin: 24px 0 12px; font-size: 22px; }
.job-list { display: grid; gap: 16px; margin-bottom: 24px; }
.job-card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 18px 20px; border-top: 4px solid var(--accent); }
.job-card h3 { margin: 0 0 10px; font-size: 21px; }
.job-card h4 { margin: 16px 0 6px; font-size: 15px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); }
.job-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.job-tag { display: inline-block; padding: 4px 10px; border-radius: 999px; background: #f1ece6; font-size: 13px; font-weight: 600; }
.job-tag-salary { background: var(--accent); color: #fff; }
.job-lines { margin: 0; padding-left: 20px; line-height: 1.55; }
.job-lines li { margin: 2px 0; }
.job-card .btn { margin-top: 18px; }
.field textarea {
    width: 100%; padding: 10px 12px; border: 1px solid #cfc8bf; border-radius: 10px;
    background: #fff; color: var(--text); font: inherit; font-size: 16px; resize: vertical;
}
.field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.field input[type=file] { min-height: 0; padding: 10px; background: #faf8f5; border-style: dashed; }
#jelentkezes { scroll-margin-top: calc(var(--topbar-h) + 12px); }
@media (min-width: 900px) { .job-list { grid-template-columns: 1fr 1fr; } }
.career-thanks strong { font-size: 18px; }

/* =========================================================
   PÉNZTÁR + RENDELÉS-ÁLLAPOT (2026-10-12)
   ========================================================= */
.checkout .checkout-main { min-width: 0; }
.checkout .box h2 { font-size: 19px; margin: 0 0 12px; }
.checkout .box h3 { font-size: 16px; margin: 14px 0 8px; }
.co-choice { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; margin: 0 0 12px; }
.co-option { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border: 1px solid var(--line);
             border-radius: 10px; background: #fff; cursor: pointer; line-height: 1.35; }
.co-option input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--accent); }
.co-option span { display: flex; flex-direction: column; gap: 2px; }
.co-option small { color: var(--muted); font-size: 13px; }
.co-option:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.co-option.is-off { opacity: 0.6; cursor: default; }
.co-addresses { display: grid; gap: 8px; margin: 0 0 8px; }
.co-warn { color: #8a1c13 !important; }
.co-slot { margin-top: 4px; }
.co-invoice { margin-top: 10px; }
.co-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.co-lines { list-style: none; margin: 0 0 10px; padding: 0 0 10px; border-bottom: 1px solid var(--line); font-size: 14px; }
.co-lines li { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; }
.co-lines li span:last-child { white-space: nowrap; }
.co-terms { margin: 12px 0; font-size: 14px; }
.order-status h1 { font-size: 24px; margin: 0 0 10px; }
.os-state { font-size: 18px; margin: 0 0 16px; line-height: 1.5; }
.os-cancelled strong { color: #8a1c13; }
.os-steps li span { font-size: 0; }
.os-steps li.done span, .os-steps li.active span { font-size: 13px; }
.os-info { display: grid; gap: 6px; margin: 0 0 16px; }
.os-info div { display: grid; grid-template-columns: 140px 1fr; gap: 10px; }
.os-info dt { color: var(--muted); }
.os-info dd { margin: 0; }
@media (max-width: 600px) {
    .os-steps { flex-wrap: wrap; }
    .os-steps li { flex: 1 1 40%; }
    .os-info div { grid-template-columns: 1fr; gap: 0; }
}

/* =========================================================
   ÉTLAP - KERESŐ (2026-10-26)
   A ragadós kategóriasáv elején 🔍 gomb; rákoppintva a kategóriák helyén
   keresőmező nyílik (.cat-wrap.searching). A nyilak a .cat-scroll-hoz igazodnak.
   ========================================================= */
.cat-wrap { display: flex; align-items: center; }
.cat-scroll { position: relative; flex: 1; min-width: 0; }
.cat-search-btn {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin-left: 12px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: #fff;
    color: var(--text);
    cursor: pointer;
}
.cat-search-btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.cat-search { display: none; flex: 1; align-items: center; gap: 8px; padding: 8px 12px; }
.cat-wrap.searching .cat-search { display: flex; }
.cat-wrap.searching .cat-scroll,
.cat-wrap.searching .cat-search-btn { display: none; }
.cat-search input {
    flex: 1;
    min-width: 0;
    height: 40px;
    padding: 0 16px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #fff;
    color: var(--text);
    font: inherit;
    font-size: 16px;   /* 16px alatt az iPhone ránagyít a mezőre */
    -webkit-appearance: none;
    appearance: none;
}
.cat-search input::-webkit-search-cancel-button { display: none; }
.cat-search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06); }
.cat-search-close {
    flex: none;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #e9e5df;
    color: var(--text);
    font-size: 24px;
    line-height: 38px;
    cursor: pointer;
}
.cat-search-close:hover { background: var(--accent); color: #fff; }
.search-empty { display: none; margin: 24px 0; text-align: center; color: var(--muted); font-size: 16px; }
.search-empty.show { display: block; }
.is-hidden { display: none !important; }
@media (min-width: 700px) {
    .cat-search-btn { margin-left: 20px; }
    .cat-search { padding: 10px 20px; }
}

/* =========================================================
   NEVOGATE-LOGÓ (2026-10-26) - élesítési követelmény
   Lábléc: fehér logó, 180 x 33 px; pénztár: kék logó, 80 x 15 px (minimum 80 px széles)
   ========================================================= */
.footer-payment { margin: 0 0 12px; color: #aaa; font-size: 13px; }
.footer-payment p { margin: 0 0 8px; }
.ng-logo-footer { display: inline-block; line-height: 0; }
.ng-logo-footer img { display: block; width: 180px; height: auto; max-width: none; }
.co-pay-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 .5em; }
.co-pay .co-pay-head h3 { margin: 0; }
.ng-logo-checkout { flex: none; display: inline-block; line-height: 0; }
.ng-logo-checkout img { display: block; width: 80px; height: auto; max-width: none; }

/* Pénztár - leadás gombja (2026-10-26): felirat és összeg két sorban, egyik sem törik szét */
.co-submit { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; line-height: 1.25; }
.co-submit-label, .co-submit-price { white-space: nowrap; }
.co-submit-price { font-size: 1.15em; }
.co-submit-price:empty { display: none; }

/* Jogi oldalak táblázatai (2026-10-26): a .box "overflow-wrap: anywhere" szabálya a keskeny oszlopokban
   a szavakat bárhol eltörte ("adatfeldolgo|zó", "Regisztráci|ó"). Itt csak szóközönként törünk
   (az oszlop legalább a leghosszabb szó szélességű), minden oszlop legalább 8em széles - keskeny
   képernyőn a táblázat vízszintesen görgethető (.rich-text table: overflow-x: auto). */
.legal-doc td, .legal-doc th {
    min-width: 8em;
    overflow-wrap: normal;
    word-break: normal;
    vertical-align: top;
}
