/* ============================================
   RESTORANPILOT — Minimal Dark Theme
   ============================================ */

:root {
    --bg: #0d0d0d;
    --bg-alt: #141414;
    --bg-card: #1a1a1a;
    --bg-card-hover: #222;
    --accent: #e63946;
    --accent-aa: #cc2936; /* AA-contrast red for #fff text on small UI (badges, pills, buttons) */
    --accent-glow: #ff4d5a;
    --gold: #f4a261;
    --text: #e0e0e0;
    --text-dim: #888;
    --border: rgba(255,255,255,0.06);
    --border-strong: rgba(255,255,255,0.1);
    --overlay: rgba(0,0,0,0.7);
    --header-bg: rgba(13,13,13,0.92);
    --radius: 10px;
    --max-w: 1240px;
    --gap: 1rem;
    --header-h: 60px;
    --font: 'Inter', 'Inter Fallback', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Metrics-matched fallback so the Inter web-font swap causes ~0 layout shift (CLS) */
@font-face {
    font-family: 'Inter Fallback';
    src: local('Arial');
    ascent-override: 90.20%;
    descent-override: 22.48%;
    line-gap-override: 0.00%;
    size-adjust: 107.40%;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; opacity: 0; transition: opacity .3s ease; }
img.is-loaded { opacity: 1; }
img[loading="lazy"]:not(.is-loaded) { background: var(--bg-alt); }
button { cursor: pointer; border: none; font-family: inherit; }

/* ── Accessibility ──────────────────────────── */

/* Screen reader only */
.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;
}

/* Focus visible ring for all interactive elements */
:focus-visible {
    outline: 2px solid var(--accent-glow);
    outline-offset: 2px;
    border-radius: 3px;
}

/* Skip to content */
.skip-link {
    position: fixed; top: -100px; left: 1rem;
    background: var(--accent); color: #fff;
    font-weight: 700; font-size: 0.85rem;
    padding: 0.5rem 1rem; border-radius: 0 0 6px 6px;
    z-index: 9999; text-decoration: none;
    transition: top 0.2s;
}
.skip-link:focus { top: 0; }
.skip-link:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* Remove outline for mouse clicks, keep for keyboard */
:focus:not(:focus-visible) { outline: none; }

/* ============================================
   HEADER
   ============================================ */

.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--header-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    height: var(--header-h);
}

.header__inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 1.25rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 800;
    font-size: 1.35rem;
    letter-spacing: 2px;
}

.logo__icon { font-size: 1.5rem; }

.nav {
    display: flex;
    gap: 2rem;
}

.nav__link {
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-dim);
    transition: color 0.2s;
}

.nav__link:hover { color: var(--accent); }

/* Language dropdown (header) */
.lang-dd { position: relative; }
.lang-dd__toggle {
    list-style: none; cursor: pointer; display: flex; align-items: center; gap: .35rem;
    font-size: .78rem; font-weight: 700; letter-spacing: .5px; color: var(--text-dim);
    padding: .32rem .6rem; border: 1px solid var(--border-strong); border-radius: 8px;
    transition: color .2s, border-color .2s;
}
.lang-dd__toggle::-webkit-details-marker { display: none; }
.lang-dd__toggle:hover, .lang-dd[open] .lang-dd__toggle { color: #fff; border-color: var(--accent); }
.lang-dd__caret { transition: transform .2s; flex-shrink: 0; }
.lang-dd[open] .lang-dd__caret { transform: rotate(180deg); }
.lang-dd__menu {
    position: absolute; top: calc(100% + .4rem); right: 0; min-width: 9rem;
    background: var(--bg-card); border: 1px solid var(--border-strong); border-radius: 10px;
    padding: .3rem; display: flex; flex-direction: column; gap: .1rem;
    box-shadow: 0 12px 32px rgba(0,0,0,.45); z-index: 200;
}
.lang-dd__item {
    font-size: .82rem; font-weight: 600; color: var(--text-dim);
    padding: .45rem .65rem; border-radius: 6px; transition: color .15s, background .15s;
}
.lang-dd__item:hover { color: #fff; background: var(--bg-card-hover); }
.lang-dd__item.is-active { color: #fff; background: var(--accent-aa); }

.cart-btn {
    position: relative;
    background: var(--accent);
    color: #fff;
    font-size: 1rem;
    padding: 0.45rem 0.9rem;
    border-radius: var(--radius);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    transition: background 0.2s, transform 0.15s;
}

.cart-btn:hover { background: var(--accent-glow); transform: scale(1.04); }
.cart-btn:active { transform: scale(0.97); }

.cart-btn__count {
    background: #fff;
    color: var(--accent);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cart-btn__count--bump { transform: scale(1.5); }

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    position: relative;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: 
        radial-gradient(ellipse 80% 60% at 50% 30%, rgba(230,57,70,0.12) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 80% 80%, rgba(244,162,97,0.06) 0%, transparent 50%),
        linear-gradient(180deg, #0d0000 0%, #1a0505 30%, #140202 60%, #0a0000 100%);
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

@media (min-width: 768px) {
    .hero {
        min-height: 55vh;
        max-height: 70vh;
    }
}

.hero__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    /* LCP slika — bez fade-in-a, prikazuje se čim stigne */
    opacity: 1;
    transition: none;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: 
        linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.25) 40%, rgba(0,0,0,0.55) 100%);
    z-index: 1;
}

.hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 720px;
    padding: 2.5rem 1.5rem;
    animation: heroFadeIn 0.8s ease-out;
}

@media (min-width: 768px) {
    .hero__content {
        padding: 2rem 2rem;
    }
}

@keyframes heroFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.hero__badge {
    display: inline-block;
    background: rgba(230,57,70,0.15);
    border: 1px solid rgba(230,57,70,0.3);
    color: var(--accent-glow);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    padding: 0.4rem 1.2rem;
    border-radius: 30px;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(4px);
}

.hero__logo {
    display: block;
    width: auto;
    height: auto;
    max-height: 96px;
    max-width: min(320px, 80%);
    margin: 0 auto 1.75rem;
    filter: drop-shadow(0 6px 18px rgba(0,0,0,0.45));
}
@media (max-width: 480px) {
    .hero__logo { max-height: 68px; }
}

.hero__title {
    font-size: clamp(1.9rem, 5.5vw, 3.4rem);
    font-weight: 900;
    color: #fff;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    text-shadow: 0 4px 24px rgba(0,0,0,0.5);
}

.hero__title span,
.hero__title em {
    color: var(--accent-glow);
    font-style: normal;
}

.hero__desc {
    font-size: clamp(0.95rem, 2vw, 1.2rem);
    color: rgba(255,255,255,0.7);
    line-height: 1.7;
    max-width: 540px;
    min-height: 3.4em; /* reserve 2 lines so web-font swap doesn't shift the CTA (CLS) */
    margin: 0 auto 2rem;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
    font-weight: 400;
}

.hero__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    padding: 0.85rem 2.5rem;
    border-radius: 50px;
    transition: all 0.25s ease;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(230,57,70,0.35);
    letter-spacing: 0.3px;
}

.hero__btn:hover {
    background: var(--accent-glow);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(230,57,70,0.45);
}

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

/* Decorative bottom curve */
.hero::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(180deg, transparent 0%, var(--bg) 100%);
    z-index: 3;
}

/* ============================================
   MENU
   ============================================ */

.menu {
    max-width: var(--max-w);
    margin: 2.5rem auto;
    padding: 0 1.25rem;
}

.menu__title {
    font-size: 1.8rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 0.3rem;
}

.menu__subtitle {
    text-align: center;
    color: var(--text-dim);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

/* Closed banner */
.closed-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: rgba(239,68,68,0.1);
    border: 1px solid rgba(239,68,68,0.3);
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    margin: 0 auto 1.5rem;
    max-width: 600px;
    animation: fadeInDown 0.4s ease;
}
.closed-banner__icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}
.closed-banner__msg {
    font-size: 0.9rem;
    color: #f87171;
    font-weight: 500;
    margin: 0;
}
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Filters */
.menu__filters {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.menu__filter {
    background: var(--bg-card);
    color: var(--text-dim);
    padding: 0.4rem 1.1rem;
    border-radius: 30px;
    font-size: 0.82rem;
    font-weight: 500;
    transition: all 0.2s;
}

.menu__filter:hover { color: var(--text); background: var(--bg-card-hover); }
.menu__filter--active { background: var(--accent-aa); color: #fff; }

/* Grid */
.menu__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
}

/* Category heading inside the menu grid */
.menu__cat-title {
    grid-column: 1 / -1;
    margin: 1.25rem 0 0;
    /* Kad se skoči na #cat-slug, sticky header (--header-h) ne prekriva naslov */
    scroll-margin-top: calc(var(--header-h) + 0.75rem);
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: 0.02em;
}
.menu__cat-title:first-child { margin-top: 0; }

/* Card */
.menu-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.25s, box-shadow 0.25s;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.menu-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.4);
}

.menu-card__img {
    width: 100%;
    height: auto;
    aspect-ratio: 1/1;
    object-fit: cover;
    object-position: center;
    background: var(--bg-alt);
    transition: transform 0.4s;
    /* Bez opacity:0 čekanja — slika se iscrtava čim pristigne, preko pozadine */
    opacity: 1;
}

.menu-card:hover .menu-card__img { transform: scale(1.04); }

.menu-card__body {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.menu-card__title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.menu-card__desc {
    font-size: 0.8rem;
    color: var(--text-dim);
    margin-bottom: 0.75rem;
    flex: 1;
}

.menu-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--border);
    padding-top: 0.7rem;
}

.menu-card__price {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--accent-glow);
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.4rem;
}
.menu-card__price-old {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dim);
    text-decoration: line-through;
}
.menu-card__save {
    font-size: 0.7rem;
    font-weight: 700;
    color: #fff;
    background: var(--accent-aa, #cc2936);
    border-radius: 999px;
    padding: 0.1rem 0.5rem;
    white-space: nowrap;
}

.menu-card__add {
    background: var(--accent-aa);
    color: #fff;
    font-weight: 600;
    font-size: 0.8rem;
    padding: 0.35rem 0.9rem;
    border-radius: 6px;
    transition: background 0.2s, transform 0.15s;
}

.menu-card__add:hover { background: var(--accent-glow); transform: scale(1.04); }
.menu-card__add:active { transform: scale(0.96); }

.menu-card__badge {
    position: absolute;
    top: 0.65rem;
    right: 0.65rem;
    background: var(--accent-aa);
    color: #fff;
    font-size: 0.66rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
}

/* ============================================
   ABOUT
   ============================================ */

.about {
    background: var(--bg-alt);
    padding: 4rem 1.25rem;
}

.about__inner {
    max-width: var(--max-w);
    margin: 0 auto;
}

.about__title {
    font-size: 1.6rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 2.5rem;
}

.about__cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.about__card {
    text-align: center;
    padding: 2rem 1.5rem;
}

.about__icon { font-size: 2.5rem; display: block; margin-bottom: 1rem; }

.about__card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.about__card p {
    font-size: 0.85rem;
    color: var(--text-dim);
}

/* ============================================
   ORDER VIA (Wolt / Glovo / Mister D)
   ============================================ */

.order-via {
    padding: 3rem 1.25rem;
    text-align: center;
}

.order-via__inner {
    max-width: var(--max-w);
    margin: 0 auto;
}

.order-via__title {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.order-via__subtitle {
    font-size: 0.95rem;
    color: var(--text-dim);
    margin-bottom: 1.5rem;
}

.order-via__grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.order-via__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.75rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    transition: transform 0.15s, box-shadow 0.15s;
    box-shadow: 0 4px 14px rgba(0,0,0,0.25);
}

.order-via__btn:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0,0,0,0.3); }

.order-via__icon { font-size: 1.15rem; }

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background: var(--bg-alt);
    padding: 3rem 1.25rem 1.5rem;
    border-top: 1px solid var(--border);
}

.footer__inner {
    max-width: var(--max-w);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer__col h3 { font-size: 0.9rem; font-weight: 700; margin-bottom: 0.7rem; }

.footer__col p {
    font-size: 0.82rem;
    color: var(--text-dim);
    margin-bottom: 0.25rem;
}

.footer__hours { list-style: none; padding: 0; margin: 0; }
.footer__hours li { font-size: 0.8rem; color: var(--text-dim); padding: 0.15rem 0; }
.footer__hours--closed { opacity: 0.45; }

.footer__col--logo { display: flex; align-items: center; justify-content: center; }

.footer__social { display: flex; gap: 0.6rem; margin-top: 0.6rem; }
.footer__social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--bg-card);
    color: var(--text-dim);
    transition: color 0.2s, background 0.2s, transform 0.15s;
}
.footer__social-link:hover { color: #fff; background: var(--accent-aa); transform: translateY(-2px); }

.footer__copy {
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-dim);
    max-width: var(--max-w);
    margin: 0 auto;
}

/* ============================================
   CART PANEL
   ============================================ */

.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 200;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.cart-overlay--open { opacity: 1; pointer-events: all; }

.cart-panel {
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    width: 33vw;
    min-width: 380px;
    max-width: 600px;
    background: var(--bg-card);
    z-index: 201;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -4px 0 30px rgba(0,0,0,0.5);
}

.cart-panel--open { transform: translateX(0); }

.cart-panel__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem;
    border-bottom: 1px solid var(--border-strong);
    flex-shrink: 0;
}

.cart-panel__header h3 { font-size: 1.1rem; }

.cart-panel__close {
    background: none;
    color: var(--text-dim);
    font-size: 1.2rem;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.cart-panel__close:hover { background: var(--bg-card-hover); color: var(--text); }

.cart-panel__items {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 1rem 1.25rem;
}

.cart-panel__empty {
    text-align: center;
    color: var(--text-dim);
    margin-top: 3rem;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
}

.cart-item__img {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    object-fit: cover;
    background: var(--bg-alt);
    flex-shrink: 0;
}

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

.cart-item__name {
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-item__price {
    font-size: 0.75rem;
    color: var(--text-dim);
}

.cart-item__meta {
    margin-top: 0.15rem;
    line-height: 1.3;
}

.cart-item__size {
    display: inline-block;
    font-size: 0.65rem;
    color: var(--text-dim);
    background: var(--bg-alt);
    border-radius: 4px;
    padding: 0.05rem 0.35rem;
    margin-right: 0.3rem;
}

.cart-item__extras {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-top: 0.2rem;
}

.cart-item__extra {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    color: #fff;
    background: rgba(230,57,70,0.15);
    border: 1px solid rgba(230,57,70,0.3);
    border-radius: 5px;
    padding: 0.1rem 0.45rem;
}

.cart-item__note {
    display: block;
    font-size: 0.7rem;
    color: #f4a261;
    font-weight: 500;
    margin-top: 0.2rem;
}

.cart-item__qty {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.cart-item__qty button {
    background: var(--bg-alt);
    color: var(--text);
    width: 26px;
    height: 26px;
    border-radius: 50%;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.cart-item__qty button:hover { background: var(--accent); color: #fff; }

.cart-item__qty span { min-width: 20px; text-align: center; font-weight: 600; font-size: 0.82rem; }

.cart-item__remove {
    background: none;
    color: var(--text-dim);
    font-size: 0.85rem;
    padding: 0.3rem;
    transition: color 0.2s;
}

.cart-item__remove:hover { color: var(--accent); }

.cart-panel__footer {
    padding: 1.25rem;
    border-top: 1px solid var(--border-strong);
    flex-shrink: 0;
}

.cart-panel__total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.cart-panel__order {
    width: 100%;
    background: var(--accent);
    color: #fff;
    padding: 0.75rem;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    transition: background 0.2s;
}

.cart-panel__order:hover { background: var(--accent-glow); }
.cart-panel__order:disabled { opacity: 0.4; cursor: not-allowed; }

.cart-panel__promo-btn {
    padding: 0.45rem 0.8rem;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.15s;
}
.cart-panel__promo-btn:hover { opacity: 0.85; }

/* ── Upsell strip ("often ordered with") ─────── */
.cart-panel__upsell {
    padding: 0 1.25rem 1rem;
}

.cart-panel__upsell-title {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-dim);
    margin-bottom: 0.5rem;
}

.cart-panel__upsell-row {
    display: flex;
    gap: 0.6rem;
    overflow-x: auto;
    padding-bottom: 0.2rem;
}

.cart-upsell-card {
    flex: 0 0 auto;
    width: 92px;
    text-align: center;
    background: var(--bg-alt);
    border-radius: 10px;
    padding: 0.5rem 0.4rem;
}

.cart-upsell-card__img {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    object-fit: cover;
    background: var(--bg-card, #1e1e2e);
    margin: 0 auto 0.35rem;
    display: block;
}

.cart-upsell-card__name {
    font-size: 0.68rem;
    font-weight: 600;
    line-height: 1.2;
    max-height: 2.4em;
    overflow: hidden;
}

.cart-upsell-card__price {
    font-size: 0.65rem;
    color: var(--text-dim);
    margin: 0.15rem 0 0.35rem;
}

.cart-upsell-card__add {
    width: 100%;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.68rem;
    font-weight: 600;
    padding: 0.3rem 0;
    cursor: pointer;
    transition: opacity 0.15s;
}
.cart-upsell-card__add:hover { opacity: 0.85; }

/* ── Checkout Form ──────────────────────────── */
.cart-panel__checkout {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 1rem 1.25rem;
    animation: fadeIn 0.2s ease;
}

.cart-panel__checkout-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-dim);
    margin-bottom: 0.75rem;
}

.cart-panel__back {
    background: none;
    color: var(--text-dim);
    font-size: 1.1rem;
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.cart-panel__back:hover { background: var(--bg-card-hover); color: var(--text); }

.cart-panel__field {
    display: block;
    margin-bottom: 0.65rem;
}

.cart-panel__field span {
    display: block;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-dim);
    margin-bottom: 0.2rem;
}

.cart-panel__field input,
.cart-panel__field textarea,
.cart-panel__field select {
    width: 100%;
    padding: 0.55rem 0.7rem;
    background: var(--bg);
    border: 1px solid var(--border-strong);
    border-radius: 6px;
    color: var(--text);
    font-size: 0.9rem;
    font-family: inherit;
    transition: border-color 0.2s;
}

.cart-panel__field input:focus,
.cart-panel__field textarea:focus,
.cart-panel__field select:focus {
    outline: none;
    border-color: var(--accent);
}

.cart-panel__field input::placeholder,
.cart-panel__field textarea::placeholder {
    color: var(--text-dim);
    opacity: 0.6;
}

.cart-panel__field select {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    padding-right: 2rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%23999' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
}

.cart-panel__field select:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.cart-panel__checkout .cart-panel__order {
    margin-top: 0.5rem;
}

.cart-panel__checkout-btn {
    width: 100%;
    background: var(--bg-card);
    color: var(--text);
    padding: 0.75rem;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.2s, border-color 0.2s;
}

.cart-panel__checkout-btn:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent);
}

.cart-panel__hint {
    font-size: 0.8rem;
    color: var(--accent);
    margin-top: 0.4rem;
    text-align: center;
}

/* ── Order type radio ──────────────────────── */
.cart-panel__order-type {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.cart-panel__radio {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 0.8rem;
    background: var(--bg-card);
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: border-color 0.2s, background 0.2s;
}

.cart-panel__radio:hover {
    border-color: var(--accent);
}

.cart-panel__radio:has(input:checked) {
    border-color: var(--accent);
    background: rgba(230,57,70,0.1);
}

.cart-panel__radio input[type="radio"] {
    accent-color: var(--accent);
}

/* ── Waiting for confirmation overlay ──────── */
#waitingOverlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    z-index: 500;
    align-items: center;
    justify-content: center;
}

.waiting-dialog {
    background: #1a1a1a;
    border: 2px solid var(--accent);
    border-radius: 20px;
    padding: clamp(2rem, 4vw, 3rem);
    text-align: center;
    width: calc(100% - 2rem);
    max-width: 400px;
    box-sizing: border-box;
}

.waiting-dialog--success {
    border-color: #16a34a;
}

@media (min-width: 768px) {
    .waiting-dialog {
        width: 36vw;
        min-width: 420px;
        max-width: 620px;
    }
}

.waiting-dialog__icon {
    font-size: 3rem;
    margin-bottom: 0.75rem;
}

.waiting-dialog__title {
    color: #fff;
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.waiting-dialog__title--success {
    color: #16a34a;
}

.waiting-dialog--cancelled {
    border-color: #dc2626;
}

.waiting-dialog__title--cancelled {
    color: #dc2626;
}

.waiting-dialog__text {
    color: #888;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.waiting-dialog__time {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.waiting-dialog__spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(230,57,70,0.2);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 1rem;
}

.waiting-dialog__status {
    color: var(--accent);
    font-size: 0.85rem;
}

.waiting-dialog__btn {
    background: #16a34a;
    color: #fff;
    border: none;
    padding: 0.75rem 2.5rem;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
}

.waiting-dialog__btn:hover {
    background: #15803d;
}

/* ── Spin animation ───────────────────────── */
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================
   TOAST
   ============================================ */

.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(120px);
    background: #2ecc71;
    color: #000;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.6rem 1.5rem;
    border-radius: 30px;
    z-index: 300;
    transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
}

.toast--show { transform: translateX(-50%) translateY(0); }

/* ============================================
   CUSTOMIZATION MODAL
   ============================================ */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    z-index: 400;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    overflow-y: auto;
}

.modal-overlay--open { opacity: 1; pointer-events: all; }

.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.92);
    width: 92%;
    max-width: 960px;
    max-height: 92vh;
    background: var(--bg-card);
    border-radius: 14px;
    z-index: 401;
    display: flex;
    flex-direction: column;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s, transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

.modal--open { opacity: 1; pointer-events: all; transform: translate(-50%, -50%) scale(1); }

.modal__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1.5rem 2rem 1.25rem;
    border-bottom: 1px solid var(--border-strong);
    flex-shrink: 0;
}

.modal__title { font-size: 1.2rem; font-weight: 700; }
.modal__subtitle { font-size: 0.82rem; color: var(--text-dim); margin-top: 0.2rem; }

.modal__close {
    background: none;
    color: var(--text-dim);
    font-size: 1.1rem;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.modal__close:hover { background: var(--bg-card-hover); color: var(--text); }

.modal__body {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 2rem;
    padding: 1.5rem 2rem;
    overflow-y: auto;
    flex: 1;
}

.modal__preview { text-align: center; }

.modal__img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    object-position: center;
    border-radius: 8px;
    background: var(--bg-alt);
    margin-bottom: 0.65rem;
}

.modal__options {
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
    min-width: 0;
}

.modal__section { }

.modal__label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.modal__desc {
    font-size: 0.85rem;
    color: #999;
    line-height: 1.4;
    margin: 0.25rem 0 0.75rem;
}
.modal__combo-price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.4rem;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--accent-glow);
}
.modal__combo-price s {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-dim);
}
.modal__combo-save {
    font-size: 0.7rem;
    font-weight: 700;
    color: #fff;
    background: var(--accent-aa, #cc2936);
    border-radius: 999px;
    padding: 0.1rem 0.5rem;
    white-space: nowrap;
}

/* Sizes */
.modal__sizes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.modal__size {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    padding: 0.65rem 0.5rem;
    background: var(--bg-alt);
    border-radius: 8px;
    color: var(--text-dim);
    font-size: 0.82rem;
    transition: all 0.2s;
    border: 2px solid transparent;
}

.modal__size:hover { color: var(--text); background: var(--bg-card-hover); }

.modal__size--active {
    border-color: var(--accent);
    color: var(--text);
    background: rgba(230,57,70,0.15);
}

.modal__size-name { font-weight: 700; font-size: 0.88rem; }
.modal__size-cm { font-size: 0.72rem; opacity: 0.7; }
.modal__size-plus { font-size: 0.72rem; color: var(--accent-glow); font-weight: 600; }

/* Extras */
.modal__extras {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.4rem;
}

.modal__extra {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.modal__extra input[type="checkbox"] {
    display: none;
}

.modal__extra-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0.5rem 0.7rem;
    background: var(--bg-alt);
    border-radius: 7px;
    font-size: 0.8rem;
    border: 2px solid transparent;
    transition: all 0.2s;
    gap: 0.5rem;
}

.modal__extra input:checked + .modal__extra-content {
    border-color: var(--accent);
    background: rgba(230,57,70,0.1);
    color: var(--text);
}

.modal__extra-name { font-weight: 500; }
.modal__extra-price {
    color: var(--accent-glow);
    font-weight: 600;
    flex-shrink: 0;
}

/* Note */
.modal__note {
    width: 100%;
    padding: 0.55rem 0.75rem;
    background: var(--bg-alt);
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    color: var(--text);
    font-family: var(--font);
    font-size: 0.8rem;
    resize: none;
    transition: border-color 0.2s;
}

.modal__note:focus { outline: none; border-color: var(--accent); }
.modal__note::placeholder { color: var(--text-dim); }

/* Footer */
.modal__footer {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 2rem;
    border-top: 1px solid var(--border-strong);
    flex-shrink: 0;
    flex-wrap: wrap;
}

/* Quantity */
.modal__qty {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    flex-shrink: 0;
}

.modal__qty-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--bg-alt);
    color: var(--text);
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.modal__qty-btn:hover { background: var(--accent); color: #fff; }

.modal__qty-num {
    min-width: 28px;
    text-align: center;
    font-weight: 700;
    font-size: 1rem;
}

.modal__total {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    font-size: 0.85rem;
    flex: 1;
}

.modal__total strong {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--accent-glow);
}

.modal__actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.modal__add-btn {
    padding: 0.7rem 1.4rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.88rem;
    white-space: nowrap;
    transition: background 0.2s, transform 0.15s;
}

.modal__add-btn--primary {
    background: var(--accent);
    color: #fff;
}

.modal__add-btn--primary:hover { background: var(--accent-glow); }
.modal__add-btn--primary:active { transform: scale(0.97); }

.modal__add-btn--secondary {
    background: var(--bg-alt);
    color: var(--text);
    border: 1px solid var(--border-strong);
}

.modal__add-btn--secondary:hover { background: var(--bg-card-hover); color: #fff; }
.modal__add-btn--secondary:active { transform: scale(0.97); }

/* Modal responsive */
@media (max-width: 600px) {
    .modal { width: 95%; border-radius: 12px 12px 0 0; bottom: 0; top: auto; left: 0; right: 0; transform: translateY(100%); max-height: 85vh; }
    .modal--open { transform: translateY(0); }
    .modal__body { grid-template-columns: 1fr; gap: 1rem; padding: 1rem; }
    .modal__preview { display: flex; align-items: center; gap: 1rem; text-align: left; }
    .modal__img { width: 70px; height: 70px; margin-bottom: 0; flex-shrink: 0; }
    .modal__sizes { grid-template-columns: repeat(3, 1fr); }
    .modal__extras { grid-template-columns: repeat(2, 1fr); }
    .modal__header { padding: 1rem; }
    .modal__footer { padding: 1rem; flex-direction: column; gap: 0.7rem; align-items: stretch; }
    .modal__actions { flex-direction: column; }
    .modal__add-btn { width: 100%; text-align: center; }
}

/* Narrower screens: extras back to 2 columns */
@media (min-width: 601px) and (max-width: 720px) {
    .modal__extras { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .hero-slider { height: 175px; margin: 0.75rem 0.75rem 0; border-radius: 8px; }
    .hero-slide { padding: 1rem 1.25rem; }
    .hero-slide__title { font-size: 1rem; }
    .hero-slide__desc { font-size: 0.75rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

    .menu { margin: 1.5rem auto; }
    .menu__grid { grid-template-columns: 1fr; gap: 0.75rem; }

    /* Wolt-style single-column list: image on the right (fills the row's full height, cropped via
       object-fit), floating "+" button pinned to its bottom-right corner. The image is intentionally
       NOT a fixed square — its height must always match the card's, which varies with description
       length, so the corner-pinned button (bottom/right, not a fixed pixel offset) always lands right. */
    .menu-card { flex-direction: row-reverse; position: relative; min-height: 100px; }
    .menu-card > div:first-child { flex: 0 0 108px; width: 108px; align-self: stretch; }
    .menu-card__img { height: 100%; aspect-ratio: auto; border-radius: 10px; }
    .menu-card__body { justify-content: center; }
    .menu-card__desc {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        flex: none;
    }
    .menu-card__footer { border-top: none; padding-top: 0; justify-content: flex-start; }
    .menu-card__add {
        position: absolute;
        right: 0.5rem;
        bottom: 0.5rem;
        width: 30px;
        height: 30px;
        padding: 0;
        border-radius: 50%;
        font-size: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .menu-card__add::before { content: "+"; font-size: 1.25rem; line-height: 1; }

    .nav { display: none; }
    .cart-panel { width: 100%; }

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

@media (max-width: 480px) {
    .hero-slider { height: 155px; }
    .hero-slide { padding: 0.75rem 1rem; }
    .menu-card { min-height: 90px; }
    .menu-card > div:first-child { flex: 0 0 90px; width: 90px; }
    .menu-card__body { padding: 0.75rem; }
    .menu-card__title { font-size: 0.9rem; }
    .menu-card__desc { font-size: 0.7rem; }
    .menu-card__price { font-size: 0.95rem; }
}

