/* Style strony Sajgon Andrychów: ciemny motyw (braz, zloto), naglowek, pokaz zdjec na stronie glownej,
   menu, koszyk, formularze. Kolory i czcionki w zmiennych ponizej. */
:root {
    --color-bg: #120b06;
    --color-surface: #1c120b;   /* karty, tabele, pola formularzy */
    --color-text: #f3e6cc;
    --color-muted: #b9a888;
    --color-accent: #d9ad55;
    --color-accent-dark: #b88a35;
    --color-border: rgba(217, 173, 85, .22);
    --color-error: #ff9b8a;
    --radius: 10px;
    --container: 1200px;

    /* Kolory marki (z logo): ciemny braz + zloto */
    --brown-950: #1a0f08;
    --brown-900: #170d06;
    --brown-800: #2e1b10;
    --brown-700: #352011;
    --gold-light: #f6dc95;
    --gold: #d9ad55;
    --gold-dark: #a8792b;
    --cream: #f5e9d3;
    --gold-gradient: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 45%, var(--gold-dark) 100%);
    --font-display: 'Cinzel', 'Times New Roman', serif;   /* duze naglowki (jak w logo) */
    --font-ui: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;   /* tekst, menu, przyciski */
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: var(--font-ui); background: var(--color-bg); color: var(--color-text); line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-accent); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 560px; }
.page, .section { padding-top: 32px; padding-bottom: 48px; }
.small { font-size: .9rem; color: var(--color-muted); }

/* Przyciski */
.btn { display: inline-block; background: var(--color-accent); color: #1a0f08; border: 2px solid var(--color-accent); border-radius: var(--radius); padding: 10px 20px; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--color-accent-dark); border-color: var(--color-accent-dark); }
.btn-ghost { background: transparent; color: var(--color-accent); }
.btn-ghost:hover { color: #1a0f08; }
.btn-sm { padding: 6px 12px; font-size: .9rem; }

/* ---------------------------------------------------------------------------
   Naglowek: nowoczesny, minimalistyczny. Polprzezroczysta "pigulka" (rozmyte tlo pod spodem) plywajaca
   nad strona, przypieta u gory przy przewijaniu. Logo po lewej, menu na srodku, Zaloguj + Zamow po prawej.
   Telefon: logo, "Zamow" i okragly przycisk menu; menu rozwija sie w karcie pod naglowkiem.
   --------------------------------------------------------------------------- */
.site-header {
    position: sticky; top: 14px; z-index: 50;
    width: min(1400px, calc(100% - 28px)); margin: 14px auto 0;
    border-radius: 999px;
    background: rgba(16, 10, 6, .72);
    -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%);
    border: 1px solid rgba(217, 173, 85, .22);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
    color: var(--cream);
    transition: background-color .3s ease;
}
.site-header.is-scrolled { background: rgba(16, 10, 6, .9); }
.header-inner {
    display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 20px;
    max-width: none; height: 88px; padding: 0 14px 0 30px;
}

/* Lampiony zwisajace z dolnej krawedzi naglowka: dwie pary (przy logo i przy przyciskach), rozne dlugosci
   sznurkow i rozmiary, kazdy kolysze sie we wlasnym rytmie (punkt obrotu = miejsce zaczepienia). */
.header-lanterns { position: absolute; left: 0; right: 0; top: 100%; height: 0; pointer-events: none; }
.hang {
    --cord: 12px; --size: 64px;
    position: absolute; top: -1px; display: flex; flex-direction: column; align-items: center;
    transform-origin: 50% 0; animation: lantern-sway 7s ease-in-out infinite;
}
.hang::before { content: ''; width: 1px; height: var(--cord); background: linear-gradient(rgba(233, 188, 92, .9), rgba(233, 188, 92, .5)); }
.hang img { height: var(--size); width: auto; max-width: none; margin-top: -2px; filter: drop-shadow(0 0 10px rgba(255, 150, 50, .5)); }
.hang--l1 { left: 58px;  --cord: 8px;  --size: 84px; }
.hang--l2 { left: 122px; --cord: 34px; --size: 64px; animation-duration: 8.5s; animation-delay: -3s; }
.hang--r1 { right: 160px; --cord: 26px; --size: 68px; animation-duration: 7.8s; animation-delay: -1.5s; }
.hang--r2 { right: 90px;  --cord: 6px;  --size: 88px; animation-duration: 9s; animation-delay: -5s; }
@keyframes lantern-sway { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }
/* Podstrony (bez banera): miejsce pod naglowkiem, zeby lampiony wisialy nad pustym tlem, a nie nad tytulem */
body:not(.page-home) main { padding-top: 64px; }
/* Menu (przyklejone kolumny kategorii i koszyka): bez lampionow, mniej miejsca pod naglowkiem */
.page-menu .header-lanterns, .page-account .header-lanterns, .page-staff .header-lanterns { display: none; }
body.page-menu main, body.page-account main, body.page-staff main { padding-top: 24px; }

/* Logo: oryginalny napis SAJGON (obrazek z przezroczystym tlem) */
.brand { display: inline-flex; align-items: center; justify-self: start; }
.brand-logo { height: 64px; width: auto; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .5)); }

/* Menu na srodku: linki jak pigulki; aktywna strona - zloty napis na lekko zlotym tle ze zlota obwodka */
.main-nav { display: flex; align-items: center; justify-self: center; gap: 4px; }
.main-nav a {
    padding: 11px 18px; border-radius: 999px; white-space: nowrap;
    font-family: var(--font-ui); font-weight: 600; font-size: .9rem; letter-spacing: .08em; text-transform: uppercase;
    color: rgba(245, 233, 211, .85); text-decoration: none;
    transition: background-color .2s ease, color .2s ease;
}
.main-nav a:hover { background: rgba(245, 233, 211, .08); color: #fff; }
.main-nav a[aria-current="page"] { background: rgba(233, 188, 92, .14); color: #f3cb72; box-shadow: inset 0 0 0 1px rgba(233, 188, 92, .5); }

/* Przyciski: Zaloguj (obrys) + Zamow (zloty, pelny) */
.header-cta { display: flex; align-items: center; gap: 10px; justify-self: end; }
.pill {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 15px 28px; border-radius: 999px; white-space: nowrap; text-decoration: none;
    font-family: var(--font-ui); font-weight: 700; font-size: .88rem; letter-spacing: .08em; text-transform: uppercase;
    transition: transform .15s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.pill--gold { background: #e9bc5c; color: #1a0f08; box-shadow: 0 4px 18px rgba(233, 188, 92, .3); }
.pill--gold:hover { background: #f3cb72; transform: translateY(-1px); box-shadow: 0 6px 22px rgba(233, 188, 92, .45); }
.pill--ghost { color: var(--cream); border: 1px solid rgba(245, 233, 211, .22); background: rgba(245, 233, 211, .04); }
.pill--ghost:hover { border-color: rgba(233, 188, 92, .7); background: rgba(245, 233, 211, .08); }
.badge {
    display: inline-block; min-width: 20px; padding: 1px 6px; border-radius: 999px;
    background: #1a0f08; color: #f3cb72; font-size: .72rem; letter-spacing: 0; text-align: center;
}
.main-nav a:focus-visible, .pill:focus-visible, .nav-toggle:focus-visible, .brand:focus-visible {
    outline: 2px solid var(--gold-light); outline-offset: 3px;
}

/* Koszyk w naglowku: okragly przycisk z ikonka torby i zlotym licznikiem sztuk */
.cart-btn {
    position: relative; display: inline-flex; align-items: center; justify-content: center;
    width: 48px; height: 48px; border-radius: 50%; color: var(--cream); text-decoration: none;
    border: 1px solid rgba(245, 233, 211, .22); background: rgba(245, 233, 211, .04);
    transition: border-color .2s ease, background-color .2s ease;
}
.cart-btn:hover { border-color: rgba(233, 188, 92, .7); background: rgba(245, 233, 211, .08); }
.cart-btn:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; }
.cart-count {
    position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px;
    display: inline-flex; align-items: center; justify-content: center; border-radius: 999px;
    background: #e9bc5c; color: #1a0f08; font-size: .72rem; font-weight: 700; line-height: 1;
    box-shadow: 0 0 0 2px #120b06;
}
.cart-btn--mobile { display: none; }

/* Dymek "Twoje zamowienie" (zamowienie w trakcie - po powrocie na strone) */
.order-notice {
    position: fixed; right: 20px; bottom: 20px; z-index: 60;
    display: flex; align-items: center; gap: 14px; padding: 12px 12px 12px 18px; max-width: calc(100% - 40px);
    border-radius: 999px; background: rgba(16, 10, 6, .94); border: 1px solid rgba(233, 188, 92, .4);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .45); color: var(--cream);
    animation: notice-in .5s cubic-bezier(.2, .7, .2, 1) both;
}
.order-notice-dot { width: 10px; height: 10px; border-radius: 50%; background: #e9bc5c; box-shadow: 0 0 0 0 rgba(233, 188, 92, .6); animation: notice-pulse 2s infinite; flex: none; }
.order-notice-text { display: flex; flex-direction: column; line-height: 1.3; font-size: .88rem; }
.order-notice-text span { color: var(--color-muted); }
.order-notice-btn { padding: 10px 18px; }
@keyframes notice-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes notice-pulse { 0% { box-shadow: 0 0 0 0 rgba(233, 188, 92, .6); } 70% { box-shadow: 0 0 0 10px rgba(233, 188, 92, 0); } 100% { box-shadow: 0 0 0 0 rgba(233, 188, 92, 0); } }

/* Elementy tylko na telefon */
.mobile-order, .nav-toggle { display: none; }
.nav-toggle {
    width: 44px; height: 44px; padding: 0; border-radius: 50%; cursor: pointer;
    border: 1px solid rgba(245, 233, 211, .22); background: rgba(245, 233, 211, .04);
    flex-direction: column; align-items: center; justify-content: center; gap: 4px;
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--cream); border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mniejszy laptop: ciasniej */
@media (max-width: 1280px) {
    .main-nav a { padding: 10px 13px; font-size: .84rem; letter-spacing: .06em; }
    .pill { padding: 13px 20px; }
    .brand-logo { height: 56px; }
}

/* Tablet, maly laptop i telefon: menu + logowanie w karcie pod naglowkiem */
@media (max-width: 1150px) {
    .site-header { top: 8px; margin-top: 8px; width: calc(100% - 16px); border-radius: 22px; }
    .header-inner { display: flex; justify-content: space-between; gap: 8px; height: 70px; padding: 0 10px 0 18px; }
    .brand { margin-right: auto; }
    .brand-logo { height: 48px; }
    .mobile-order { display: inline-flex; padding: 12px 20px; }
    .nav-toggle { display: inline-flex; }

    .main-nav, .header-cta {
        display: none; position: absolute; left: 0; right: 0; padding: 0 10px;
        background: #100a06;
        border: 1px solid rgba(217, 173, 85, .22);
    }
    .site-header.nav-open .main-nav {
        display: flex; flex-direction: column; align-items: stretch; gap: 2px; justify-self: stretch;
        top: calc(100% + 8px); padding-top: 10px; border-bottom: 0; border-radius: 20px 20px 0 0;
    }
    .main-nav a { padding: 14px 16px; font-size: .92rem; }
    .site-header.nav-open .header-cta {
        display: flex; flex-direction: column; align-items: stretch; justify-self: stretch;
        top: calc(100% + 8px + var(--nav-height, 0px)); padding-top: 8px; padding-bottom: 14px;
        border-top: 0; border-radius: 0 0 20px 20px;
        box-shadow: 0 16px 30px rgba(0, 0, 0, .45);
    }
    /* lampiony: mniejsze; na podstronach chowamy je, zeby nie zaslanialy tytulu strony (na glownej wisza nad zdjeciem) */
    .hang { --size: 46px !important; }
    .hang--l1 { left: 30px; } .hang--l2 { left: 68px; } .hang--r1 { right: 96px; } .hang--r2 { right: 56px; }
    body:not(.page-home) .header-lanterns, .site-header.nav-open .header-lanterns { display: none; }
    body:not(.page-home) main { padding-top: 0; }
    .cart-btn--mobile { display: inline-flex; width: 44px; height: 44px; }
    .header-cta .cart-btn { display: none; }
    /* "Zamow" jest juz na stale w naglowku (.mobile-order) - w karcie zostaje tylko logowanie */
    .header-cta .pill--gold { display: none; }
    .header-cta .pill { padding: 14px; }
}
@media (max-width: 420px) {
    .brand-logo { height: 42px; }
    .mobile-order { padding: 11px 15px; }
}
@media (max-width: 420px) {
    .order-notice { left: 12px; right: 12px; bottom: 12px; max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
    .site-header *, .site-header { transition: none !important; }
    .order-notice, .order-notice-dot { animation: none; }
    .hang { animation: none; }
}

.inline-form { display: inline; margin: 0; }
.link-button { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-decoration: underline; }


/* ---------------------------------------------------------------------------
   Strona glowna: pelnoekranowy pokaz zdjec pod plywajacym naglowkiem.
   Slajdy leza jeden na drugim i przenikaja sie (opacity); aktywne zdjecie powoli sie oddala (efekt Kena Burnsa),
   tekst wjezdza od dolu. Przyciemnienie od lewej i od dolu - tekst zawsze czytelny.
   Przelaczanie: static/js/main.js ("Pokaz zdjec").
   --------------------------------------------------------------------------- */
.lead { font-size: 1.15rem; color: var(--color-muted); }
.hero {
    position: relative; overflow: hidden; background: #0d0804;
    height: 100vh; height: 100svh; min-height: 560px; max-height: 1100px;
    margin-top: -104px;   /* pod plywajacy naglowek (14 px odstepu + 90 px naglowka) */
}
.hero-slides { position: absolute; inset: 0; }
.hero-slide {
    position: absolute; inset: 0; opacity: 0; visibility: hidden;
    transition: opacity 1.2s ease, visibility 0s linear 1.2s;
}
.hero-slide.is-active { opacity: 1; visibility: visible; z-index: 1; transition: opacity 1.2s ease; }
.hero-img {
    position: absolute; inset: 0; width: 100%; height: 100%; max-width: none;
    object-fit: cover; object-position: var(--pos, 50% 50%); transform: scale(1.08);
}
.hero-slide.is-active .hero-img { animation: hero-zoom 9s ease-out forwards; }
@keyframes hero-zoom { from { transform: scale(1.08); } to { transform: scale(1); } }
/* przyciemnienie: mocne z lewej (tekst), od dolu (kropki) i od gory (naglowek) */
.hero-slide::after {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background:
        linear-gradient(90deg, rgba(12, 7, 3, .9) 0%, rgba(12, 7, 3, .62) 38%, rgba(12, 7, 3, .15) 72%, rgba(12, 7, 3, .25) 100%),
        linear-gradient(0deg, rgba(12, 7, 3, .9) 0%, transparent 32%),
        linear-gradient(180deg, rgba(12, 7, 3, .65) 0%, transparent 28%);
}
/* tresc i kropki wyrownane do szerokosci naglowka (do 1500 px), tekst zaczyna sie mniej wiecej pod logo */
.hero-content, .hero-controls { max-width: 1500px; padding-left: 40px; padding-right: 40px; }
.hero-content {
    position: relative; z-index: 2; height: 100%;
    display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
    padding-top: 130px; padding-bottom: 90px;
}
.hero-eyebrow {
    display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px;
    border: 1px solid rgba(217, 173, 85, .45); border-radius: 999px; background: rgba(12, 7, 3, .55);
    font-family: var(--font-ui); font-size: .74rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
    color: var(--gold-light);
}
.hero-eyebrow::before { content: ''; width: 7px; height: 7px; transform: rotate(45deg); background: var(--gold-gradient); }
.hero-title {
    margin: 22px 0 18px; max-width: 18ch;
    font-family: var(--font-display); font-weight: 700; font-size: clamp(2.4rem, 5.6vw, 4.8rem); line-height: 1.05;
    color: var(--cream); text-shadow: 0 4px 24px rgba(0, 0, 0, .55);
}
.hero-lead { margin: 0; max-width: 560px; font-size: clamp(1rem, 1.35vw, 1.2rem); line-height: 1.65; color: rgba(245, 233, 211, .86); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 16px 34px; border-radius: 999px; text-decoration: none;
    font-family: var(--font-ui); font-weight: 700; font-size: .88rem; letter-spacing: .1em; text-transform: uppercase;
    transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease;
}
.hero-btn--gold { background: #e9bc5c; color: #1a0f08; box-shadow: 0 6px 24px rgba(233, 188, 92, .35); }
.hero-btn--gold::after { content: '→'; font-family: system-ui, sans-serif; transition: transform .2s ease; }
.hero-btn--gold:hover { background: #f3cb72; transform: translateY(-2px); box-shadow: 0 10px 30px rgba(233, 188, 92, .5); }
.hero-btn--gold:hover::after { transform: translateX(4px); }
.hero-btn--outline {
    color: var(--cream); border: 1px solid rgba(245, 233, 211, .35); background: rgba(12, 7, 3, .35);
    -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.hero-btn--outline:hover { background: rgba(217, 173, 85, .16); border-color: var(--gold-light); transform: translateY(-2px); }
.hero-btn:focus-visible, .hero-dot:focus-visible, .hero-pause:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; }
/* tekst aktywnego slajdu wjezdza od dolu, kolejne elementy z opoznieniem */
.hero-slide.is-active .hero-eyebrow, .hero-slide.is-active .hero-title,
.hero-slide.is-active .hero-lead, .hero-slide.is-active .hero-actions { animation: hero-rise .9s cubic-bezier(.2, .7, .2, 1) both; }
.hero-slide.is-active .hero-title { animation-delay: .12s; }
.hero-slide.is-active .hero-lead { animation-delay: .24s; }
.hero-slide.is-active .hero-actions { animation-delay: .36s; }
@keyframes hero-rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

/* kropki i pauza */
.hero-controls { position: absolute; left: 0; right: 0; bottom: 28px; z-index: 3; display: flex; align-items: center; gap: 12px; }
.hero-dots {
    display: flex; align-items: center; gap: 8px; padding: 9px 14px;
    border-radius: 999px; background: rgba(12, 7, 3, .55); border: 1px solid rgba(217, 173, 85, .25);
}
.hero-dot { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 999px; background: rgba(245, 233, 211, .35); cursor: pointer; transition: width .3s ease, background-color .3s ease; }
.hero-dot:hover { background: rgba(245, 233, 211, .7); }
.hero-dot.is-active { width: 30px; background: var(--gold-gradient); }
.hero-pause {
    width: 36px; height: 36px; padding: 0; border-radius: 50%; cursor: pointer;
    border: 1px solid rgba(217, 173, 85, .35); background: rgba(12, 7, 3, .55);
    display: inline-flex; align-items: center; justify-content: center;
}
/* ikonka: dwie kreski (pauza) albo trojkat (odtwarzaj) */
.hero-pause-icon { width: 10px; height: 12px; border-left: 3px solid var(--gold-light); border-right: 3px solid var(--gold-light); }
.hero-pause[aria-pressed="true"] .hero-pause-icon {
    width: 0; height: 0; border-style: solid; border-width: 6px 0 6px 10px;
    border-color: transparent transparent transparent var(--gold-light); margin-left: 3px;
}

.section-title { font-family: var(--font-display); color: var(--gold-light); letter-spacing: .06em; }

/* Telefon i tablet: naglowek nizszy, tekst na dole zdjecia, mocniejsze przyciemnienie od dolu */
@media (max-width: 1150px) {
    .hero { margin-top: -80px; }   /* 8 px odstepu + 72 px naglowka */
    .hero-content, .hero-controls { padding-left: 20px; padding-right: 20px; }   /* 8 px odstepu + 78 px naglowka */
}
@media (max-width: 700px) {
    .hero { min-height: 600px; }
    .hero-content { justify-content: flex-end; padding-top: 110px; padding-bottom: 96px; }
    .hero-slide::after {
        background:
            linear-gradient(0deg, rgba(12, 7, 3, .95) 0%, rgba(12, 7, 3, .7) 40%, rgba(12, 7, 3, .15) 75%),
            linear-gradient(180deg, rgba(12, 7, 3, .6) 0%, transparent 25%);
    }
    .hero-eyebrow { font-size: .68rem; letter-spacing: .14em; padding: 6px 12px; }
    .hero-title { margin: 16px 0 12px; }
    .hero-actions { width: 100%; margin-top: 22px; }
    .hero-btn { flex: 1 1 auto; padding: 14px 18px; font-size: .85rem; }
    .hero-controls { bottom: 22px; }
}
@media (prefers-reduced-motion: reduce) {
    .hero-slide, .hero-slide.is-active { transition: none; }
    .hero-slide.is-active .hero-img, .hero-slide.is-active .hero-eyebrow, .hero-slide.is-active .hero-title,
    .hero-slide.is-active .hero-lead, .hero-slide.is-active .hero-actions { animation: none; }
    .hero-img { transform: none; }
}

/* Menu */
.category-nav { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
.menu-category { margin-bottom: 40px; scroll-margin-top: 80px; }
.dish-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.dish { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; }
.dish img { border-radius: calc(var(--radius) - 4px); margin-bottom: 12px; aspect-ratio: 4 / 3; object-fit: cover; }
.dish h3 { margin: 0 0 4px; font-size: 1.1rem; }
.dish p { margin: 0 0 12px; color: var(--color-muted); font-size: .95rem; }
.dish-footer { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.dish-footer form { margin: 0; }
.price { font-weight: 700; }

/* Tabele (koszyk, zamowienia) */
.table { width: 100%; border-collapse: collapse; margin-bottom: 24px; background: var(--color-surface); }
.table th, .table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--color-border); }

/* Formularze */
.field { margin-bottom: 16px; display: flex; flex-direction: column; gap: 4px; }
.field input:not([type=radio]):not([type=checkbox]), .field textarea, .field select { font: inherit; padding: 10px 12px; border: 1px solid var(--color-border); border-radius: var(--radius); background: var(--color-surface); color: var(--color-text); }
.field ul { list-style: none; padding: 0; margin: 0; }
.error, .field-error label { color: var(--color-error); }
.help { color: var(--color-muted); }
.help ul { margin: 4px 0 0; padding-left: 18px; }

/* Komunikaty (messages) */
.messages { padding-top: 16px; }
.message { padding: 10px 14px; border-radius: var(--radius); background: var(--color-surface); border: 1px solid var(--color-border); margin: 0 0 8px; }
.message-success { border-color: #2e8b57; }
.message-warning, .message-error { border-color: var(--color-error); }

/* Stopka (uklad jak w sole.pl): 4 kolumny, pasek z prawami autorskimi, wysrodkowane dane firmy */
.site-footer { background: #0b0603; border-top: 1px solid var(--color-border); color: rgba(245, 233, 211, .7); padding: 56px 0 28px; }
.footer-top {
    display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px;
    padding-bottom: 40px; border-bottom: 1px solid rgba(245, 233, 211, .1);
}
.footer-brand { display: inline-block; margin-bottom: 12px; }
.footer-brand img { width: 140px; height: auto; display: block; }
.footer-col p { margin: 0 0 16px; font-size: .9rem; line-height: 1.6; max-width: 300px; }
.footer-title { margin: 0 0 16px; font-family: var(--font-ui); font-size: .95rem; font-weight: 700; color: var(--cream); }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: .9rem; }
.footer-col a { color: rgba(245, 233, 211, .65); text-decoration: none; transition: color .2s ease; }
.footer-col a:hover { color: #f3cb72; }
.footer-hours { font-weight: 600; color: var(--cream); }
.footer-bottom {
    display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px;
    padding-top: 24px; font-size: .85rem;
}
.footer-bottom a { color: inherit; text-decoration: none; }
.footer-bottom a:hover { color: #f3cb72; text-decoration: underline; }
.footer-legal {
    margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(245, 233, 211, .1);
    font-size: .78rem; color: rgba(245, 233, 211, .55); text-align: center;
}
.social-links { display: flex; gap: 12px; }
.social-links a {
    display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%;
    border: 1px solid rgba(245, 233, 211, .2); transition: .2s ease;
}
.social-links a:hover { background: #e9bc5c; border-color: #e9bc5c; color: #1a0f08; }
@media (max-width: 960px) {
    .footer-top { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
    .footer-top { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------------------
   Strona glowna - "O nas": zdjecie w zlotej ramce z plakietka adresu | tekst + cztery wyrozniki + przyciski
   --------------------------------------------------------------------------- */
.about { padding: 88px 0; background: radial-gradient(ellipse at 15% 30%, rgba(233, 188, 92, .07), transparent 60%); }
.about-inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px 64px; align-items: center; }
.about-media { position: relative; margin: 0; }
.about-media::before {   /* zlota ramka przesunieta za zdjecie */
    content: ''; position: absolute; inset: 18px -18px -18px 18px; border-radius: 26px;
    border: 1px solid rgba(233, 188, 92, .45); pointer-events: none;
}
.about-media img {
    position: relative; display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 0;
    border-radius: 26px; box-shadow: 0 24px 60px rgba(0, 0, 0, .5);
}
.about-badge {
    position: absolute; left: -18px; bottom: 28px; display: flex; flex-direction: column; gap: 2px;
    padding: 14px 18px; border-radius: 16px; max-width: 80%;
    background: rgba(18, 11, 6, .9); border: 1px solid rgba(233, 188, 92, .35);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: 0 12px 30px rgba(0, 0, 0, .45);
}
.about-badge-label { font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #f3cb72; }
.about-badge a { color: var(--cream); text-decoration: none; font-weight: 600; }
.about-badge a:hover { color: #f3cb72; }
.about-eyebrow {
    display: inline-flex; align-items: center; gap: 10px; margin: 0 0 12px;
    font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: #f3cb72;
}
.about-eyebrow::before { content: ''; width: 28px; height: 1px; background: currentColor; }
.about-title { margin: 0 0 20px; font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3rem); line-height: 1.1; color: var(--cream); }
.about-body > p { color: rgba(245, 233, 211, .78); line-height: 1.7; margin: 0 0 14px; max-width: 560px; }
.about-body > .about-lead { font-size: 1.08rem; color: var(--cream); }
.about-features { grid-column: 1 / -1; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.about-features li {
    display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 16px;
    background: var(--color-surface); border: 1px solid var(--color-border);
}
.about-features strong { display: block; margin-bottom: 2px; color: var(--cream); font-size: .95rem; }
.about-features li > span:last-child { font-size: .85rem; color: var(--color-muted); line-height: 1.45; }
.about-icon {
    flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px;
    background: rgba(233, 188, 92, .12); font-size: 1.1rem;
}
.about-quote {
    margin: 22px 0; padding: 4px 0 4px 20px; border-left: 2px solid #e9bc5c;
    font-family: var(--font-display); font-size: 1.2rem; line-height: 1.45; color: #f3cb72; max-width: 560px;
}
.about-body > .about-signature { font-weight: 700; color: var(--cream); }
.about-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
@media (max-width: 900px) {
    .about { padding: 56px 0; }
    .about-inner { grid-template-columns: 1fr; gap: 44px; }
    .about-media { max-width: 460px; margin-right: 18px; }
    .about-media img { aspect-ratio: 4 / 3; }
    .about-features { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
    .about-features { grid-template-columns: 1fr; }
    .about-badge { left: 12px; bottom: 12px; }
    .about-actions .pill { flex: 1 1 100%; text-align: center; justify-content: center; }
}

/* ---------------------------------------------------------------------------
   Koszyk: lista dan (ilosc - / +) + podsumowanie z przyciskami; podpowiedz inna dla goscia i zalogowanego.
   --------------------------------------------------------------------------- */
.page-title { font-family: var(--font-display); font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin: 0 0 10px; color: var(--cream); }
.cart-note { margin: 0 0 28px; color: var(--color-muted); max-width: 720px; }
.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
.cart-items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.cart-item {
    display: grid; grid-template-columns: minmax(0, 1fr) auto 90px auto; align-items: center; gap: 18px;
    padding: 16px 20px; border-radius: 16px; background: var(--color-surface); border: 1px solid var(--color-border);
}
.cart-item-name { margin: 0; font-size: 1.05rem; font-family: var(--font-ui); font-weight: 600; }
.cart-item-price { font-size: .85rem; color: var(--color-muted); }
.cart-item-total { font-weight: 700; text-align: right; }
.cart-item-remove { margin: 0; }
.cart-item-remove .link-button { color: var(--color-muted); font-size: .85rem; }
.cart-item-remove .link-button:hover { color: var(--color-error); }
.qty { display: inline-flex; align-items: center; gap: 4px; padding: 4px; border-radius: 999px; border: 1px solid var(--color-border); }
.qty form { margin: 0; }
.qty-btn {
    width: 32px; height: 32px; border-radius: 50%; border: 0; cursor: pointer;
    background: rgba(245, 233, 211, .06); color: var(--cream); font-size: 1.1rem; line-height: 1;
}
.qty-btn:hover { background: rgba(233, 188, 92, .2); }
.qty-value { min-width: 26px; text-align: center; font-weight: 700; }
.cart-summary {
    position: sticky; top: 120px; display: flex; flex-direction: column; gap: 12px;
    padding: 22px; border-radius: 18px; background: var(--color-surface); border: 1px solid rgba(233, 188, 92, .3);
}
.cart-summary-title { margin: 0 0 4px; font-family: var(--font-display); font-size: 1.3rem; color: var(--gold-light); }
.cart-summary-row { display: flex; justify-content: space-between; gap: 12px; }
.cart-summary-muted { color: var(--color-muted); font-size: .88rem; }
.cart-summary-total { padding-top: 12px; margin-bottom: 6px; border-top: 1px solid var(--color-border); font-size: 1.2rem; font-weight: 700; }
.cart-summary-btn { width: 100%; }
.cart-summary-more { text-align: center; font-size: .9rem; text-decoration: none; }
.cart-empty { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding: 32px; border-radius: 18px; background: var(--color-surface); border: 1px solid var(--color-border); }
.cart-empty p { margin: 0; font-size: 1.1rem; }
@media (max-width: 900px) {
    .cart-layout { grid-template-columns: 1fr; }
    .cart-summary { position: static; }
}
@media (max-width: 560px) {
    .cart-item { grid-template-columns: minmax(0, 1fr) auto; gap: 10px 14px; padding: 14px 16px; }
    .cart-item-total { text-align: left; }
    .cart-item-remove { justify-self: end; }
}

/* Tekst tylko dla czytnikow ekranu (niewidoczny na ekranie) */
.visually-hidden {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------------------------------------------------------------------------
   Menu: trzy kolumny - kategorie | dania wybranej kategorii | koszyk (lepki przy przewijaniu).
   Telefon/tablet: wszystkie dania jedna lista do przewijania palcem; kategorie jako pasek skrotow u gory
   (podswietla sie kategoria, ktora wlasnie widac); koszyk na koncu listy + pasek na dole ekranu.
   --------------------------------------------------------------------------- */
.menu-page { max-width: 1400px; margin: 0 auto; padding: 0 28px 72px; }
.menu-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr) 340px; gap: 28px; align-items: start; }

.menu-cats {
    position: sticky; top: 124px; display: flex; flex-direction: column; gap: 2px;
    max-height: calc(100vh - 140px); overflow-y: auto; padding: 12px;
    border-radius: 20px; background: var(--color-surface); border: 1px solid var(--color-border);
    scrollbar-width: thin; scrollbar-color: rgba(233, 188, 92, .35) transparent;
}
.menu-cat {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 11px 14px; border-radius: 12px; text-decoration: none;
    color: rgba(245, 233, 211, .85); font-weight: 600; font-size: .95rem;
    transition: background-color .2s ease, color .2s ease;
}
.menu-cat:hover { background: rgba(245, 233, 211, .06); color: #fff; }
.menu-cat.is-active { background: rgba(233, 188, 92, .14); color: #f3cb72; box-shadow: inset 0 0 0 1px rgba(233, 188, 92, .5); }
.menu-cat-count { font-size: .75rem; font-weight: 600; color: var(--color-muted); }
.menu-cat.is-active .menu-cat-count { color: #f3cb72; }

.menu-panel-head { margin-bottom: 10px; }
.menu-panel-title { margin: 0; font-family: var(--font-display); font-size: clamp(1.8rem, 3vw, 2.4rem); color: var(--gold-light); }
.menu-panel-desc { margin: 4px 0 0; color: var(--color-muted); }
.menu-panel:not([hidden]) { animation: panel-in .35s ease both; }
@keyframes panel-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* kafelki dan: kwadrat ze zdjeciem, "i" w lewym gornym rogu, "+" w prawym, nazwa i cena na dole */
.dish-grid {
    list-style: none; margin: 0; padding: 0;
    display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px;
}
.dish-card {
    position: relative; aspect-ratio: 1; overflow: hidden; border-radius: 18px;
    background: var(--color-surface); border: 1px solid var(--color-border);
    transition: border-color .2s ease, transform .2s ease;
}
.dish-card:hover { border-color: rgba(233, 188, 92, .45); }
.dish-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.dish-card:hover .dish-img { transform: scale(1.04); }
.dish-img--empty {
    display: grid; place-items: center;
    background: radial-gradient(circle at 50% 40%, rgba(233, 188, 92, .12), transparent 70%), var(--color-surface);
}
.dish-img--empty img { width: 42%; opacity: .18; }
.dish-caption {
    position: absolute; left: 0; right: 0; bottom: 0; padding: 36px 12px 11px;
    background: linear-gradient(transparent, rgba(12, 7, 3, .78) 45%, rgba(12, 7, 3, .92));
}
.dish-name {
    margin: 0; font-family: var(--font-ui); font-size: .95rem; font-weight: 600; line-height: 1.25; color: #fff;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.dish-meta { display: flex; align-items: center; gap: 4px; margin-top: 3px; }
.dish-suggestion { display: block; margin-top: 2px; font-size: .66rem; color: rgba(245, 233, 211, .62); }
.dish-price { font-weight: 700; color: #f3cb72; white-space: nowrap; margin-right: 2px; }
.menu-spice, .menu-veg { font-size: .8rem; letter-spacing: -.1em; }

/* "i" - informacje (sklad, alergeny) jako nakladka na caly kafelek */
.dish-info-btn {
    position: absolute; top: 10px; left: 10px; z-index: 3;
    display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
    list-style: none; cursor: pointer; user-select: none;
    background: rgba(18, 11, 6, .72); border: 1px solid rgba(245, 233, 211, .35); color: var(--cream);
    font-family: Georgia, serif; font-style: italic; font-weight: 700; font-size: 1.05rem;
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: background-color .2s ease;
}
.dish-info-btn::-webkit-details-marker { display: none; }
.dish-info-btn:hover { background: rgba(233, 188, 92, .25); }
.dish-info-btn:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 2px; }
.dish-info[open] .dish-info-btn { background: var(--cream); color: #1a0f08; }
.dish-info-panel {
    position: absolute; inset: 0; z-index: 2; overflow-y: auto; overscroll-behavior: contain;
    padding: 52px 14px 14px; background: rgba(18, 11, 6, .96);
    font-size: .8rem; line-height: 1.45; color: rgba(245, 233, 211, .88);
    scrollbar-width: thin; scrollbar-color: rgba(233, 188, 92, .35) transparent;
    animation: info-in .2s ease both;
}
@keyframes info-in { from { opacity: 0; } to { opacity: 1; } }
.dish-info-panel p { margin: 0 0 7px; }
.dish-info-panel strong { color: #f3cb72; font-weight: 600; }
.dish-info-name { font-weight: 700; font-size: .92rem; color: #fff; }
.dish-info-tags { color: var(--color-muted); }
.allergen { text-decoration: underline dotted rgba(245, 233, 211, .4); text-underline-offset: 2px; }

/* "+" i "na miejscu" w prawym gornym rogu */
.dish-add { position: absolute; top: 10px; right: 10px; z-index: 3; margin: 0; }
.dish-add .add-btn { width: 36px; height: 36px; box-shadow: 0 4px 14px rgba(0, 0, 0, .4); }
.dish-onsite {
    position: absolute; top: 12px; right: 10px; z-index: 3; padding: 4px 10px; border-radius: 999px;
    background: rgba(18, 11, 6, .72); border: 1px solid rgba(245, 233, 211, .25); font-size: .72rem; color: var(--cream);
}
.add-btn {
    width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
    background: #e9bc5c; color: #1a0f08; font-size: 1.4rem; font-weight: 600; line-height: 1;
    transition: transform .15s ease, background-color .2s ease;
}
.add-btn:hover { background: #f3cb72; transform: scale(1.08); }
.add-btn:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; }
.add-btn.is-added { background: #7cc48a; font-size: 0; }
.add-btn.is-added::after { content: '✓'; font-size: 1.1rem; }

/* koszyk obok menu */
.menu-cart { position: sticky; top: 124px; }
.mini-cart {
    display: flex; flex-direction: column; gap: 12px; padding: 20px;
    border-radius: 20px; background: var(--color-surface); border: 1px solid rgba(233, 188, 92, .3);
    max-height: calc(100vh - 140px); overflow-y: auto;
    scrollbar-width: thin; scrollbar-color: rgba(233, 188, 92, .35) transparent;
}
.mini-cart-title { margin: 0; font-family: var(--font-display); font-size: 1.3rem; color: var(--gold-light); }
.mini-cart-items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.mini-cart-item {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: 'name name' 'qty line';
    gap: 6px 10px; align-items: center; padding-bottom: 10px; border-bottom: 1px solid var(--color-border);
}
.mini-cart-name { grid-area: name; font-size: .92rem; font-weight: 600; }
.mini-cart-item .qty { grid-area: qty; justify-self: start; }
.mini-cart-line { grid-area: line; font-weight: 700; font-size: .92rem; }
.qty--small .qty-btn { width: 28px; height: 28px; font-size: 1rem; }
.qty--small .qty-value { min-width: 22px; font-size: .9rem; }
.mini-cart-btn { width: 100%; }
.mini-cart-link { text-align: center; font-size: .9rem; }
.mini-cart-note { margin: 0; text-align: center; font-size: .78rem; color: var(--color-muted); }
.mini-cart-empty { margin: 0; color: var(--color-muted); line-height: 1.6; }
.cart-btn.is-bumped .cart-count { animation: bump .4s ease; }
@keyframes bump { 50% { transform: scale(1.35); } }

/* pasek koszyka na dole ekranu (telefon/tablet) */
.cart-bar { display: none; }

@media (max-width: 1250px) {
    .menu-layout { grid-template-columns: 220px minmax(0, 1fr) 300px; gap: 20px; }
}
@media (max-width: 1100px) {
    .menu-page { padding: 0 16px 100px; }
    .menu-layout { grid-template-columns: minmax(0, 1fr); gap: 14px; }
    /* kategorie: przewijany poziomy pasek przyklejony pod naglowkiem */
    .menu-cats {
        top: 86px; z-index: 5; flex-direction: row; max-height: none; overflow-x: auto; overflow-y: hidden;
        padding: 8px; border-radius: 16px; background: rgba(18, 11, 6, .95);
        -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); scrollbar-width: none;
    }
    .menu-cats::-webkit-scrollbar { display: none; }
    .menu-cat { white-space: nowrap; flex: none; padding: 9px 14px; }
    .menu-cat-count { display: none; }
    /* telefon: wszystkie kategorie jedna lista do przewijania palcem (pasek u gory = skroty) */
    .menu-panel[hidden] { display: block; }
    .menu-panel { scroll-margin-top: 150px; padding-top: 12px; }
    .menu-panel + .menu-panel { margin-top: 18px; }
    .menu-panel:not([hidden]) { animation: none; }
    /* koszyk na koncu listy (tez do przewiniecia), pasek na dole ekranu jako szybki skrot */
    .menu-cart { position: static; scroll-margin-top: 150px; }
    .mini-cart { max-height: none; }
    .cart-bar:not([hidden]) {
        position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40;
        display: flex; align-items: center; justify-content: space-between; gap: 12px;
        padding: 15px 22px; border-radius: 999px; text-decoration: none;
        background: #e9bc5c; color: #1a0f08; font-weight: 700; box-shadow: 0 10px 30px rgba(0, 0, 0, .45);
    }
    .page-menu .order-notice { bottom: 80px; }
}
@media (max-width: 560px) {
    /* telefon: dwa kafelki w rzedzie */
    .dish-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .dish-card { border-radius: 14px; }
    .dish-caption { padding: 30px 10px 9px; }
    .dish-name { font-size: .86rem; }
    .dish-info-btn { top: 8px; left: 8px; }
    .dish-add { top: 8px; right: 8px; }
    .dish-info-panel { padding: 48px 11px 11px; font-size: .76rem; }
}
@media (prefers-reduced-motion: reduce) {
    .menu-panel:not([hidden]), .cart-btn.is-bumped .cart-count, .dish-info-panel { animation: none; }
    .dish-img, .dish-card:hover .dish-img { transition: none; transform: none; }
}

/* ---------------------------------------------------------------------------
   Moje konto: spis sekcji po lewej (lepki) | karty z formularzami po prawej.
   Telefon: spis jako przewijany pasek, karty jedna pod druga.
   --------------------------------------------------------------------------- */
button.pill { cursor: pointer; border: 0; }
button.pill--ghost { border: 1px solid rgba(245, 233, 211, .22); }
.pill--sm { padding: 9px 16px; font-size: .74rem; }
.pill--danger { background: transparent; color: var(--color-error); border: 1px solid rgba(255, 155, 138, .5); cursor: pointer; }
.pill--danger:hover { background: rgba(255, 155, 138, .12); }
button.pill--danger { border: 1px solid rgba(255, 155, 138, .5); }

.account { max-width: 1080px; padding-bottom: 72px; }
.account-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }
.account-head form { margin: 0; }
.account-eyebrow { margin: 0 0 6px; font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: #f3cb72; }
.account-title { margin: 0; font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--cream); }
.account-sub { margin: 6px 0 0; color: var(--color-muted); }

.account-layout { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 28px; align-items: start; }
.account-nav {
    position: sticky; top: 124px; display: flex; flex-direction: column; gap: 2px; padding: 10px;
    border-radius: 18px; background: var(--color-surface); border: 1px solid var(--color-border);
}
.account-nav a { padding: 10px 14px; border-radius: 12px; color: rgba(245, 233, 211, .85); text-decoration: none; font-weight: 600; font-size: .95rem; }
.account-nav a:hover { background: rgba(245, 233, 211, .06); color: #fff; }
.account-nav .account-nav-danger { color: var(--color-error); }

.account-main { display: flex; flex-direction: column; gap: 20px; }
.account-card {
    scroll-margin-top: 120px; padding: 26px; border-radius: 20px;
    background: var(--color-surface); border: 1px solid var(--color-border);
}
.account-card--danger { border-color: rgba(255, 155, 138, .3); }
.account-card-title { margin: 0 0 6px; font-family: var(--font-display); font-size: 1.4rem; color: var(--gold-light); }
.account-card-desc { margin: 0 0 18px; color: var(--color-muted); font-size: .92rem; }
.account-card form { margin: 0; }
.account-card .field input:not([type=checkbox]) { background: var(--color-bg); }
.account-card .field label { font-weight: 600; font-size: .9rem; }
.account-card .field:has(input[type=checkbox]) { flex-direction: row-reverse; justify-content: flex-end; align-items: center; gap: 10px; }
.account-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.account-empty { margin: 8px 0 16px; color: var(--color-muted); }

.account-orders { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.account-order { padding: 16px 18px; border-radius: 16px; background: var(--color-bg); border: 1px solid var(--color-border); }
.account-order-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.account-order-no { font-weight: 700; color: var(--cream); text-decoration: none; }
.account-order-no:hover { color: #f3cb72; }
.account-order-meta { margin: 4px 0 8px; font-size: .85rem; color: var(--color-muted); }
.account-order-items { margin: 0 0 12px; font-size: .92rem; color: rgba(245, 233, 211, .85); }
.account-order-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.account-order-foot strong { font-size: 1.1rem; color: #f3cb72; }
.account-order-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.account-order-actions form { margin: 0; }

/* status zamowienia jako kolorowa plakietka */
.status { padding: 4px 10px; border-radius: 999px; font-size: .75rem; font-weight: 700; white-space: nowrap; background: rgba(245, 233, 211, .1); color: var(--cream); }
.status--new { background: rgba(233, 188, 92, .16); color: #f3cb72; }
.status--confirmed, .status--paid, .status--in_progress, .status--ready { background: rgba(124, 196, 138, .16); color: #9ad6a6; }
.status--cancelled { background: rgba(255, 155, 138, .14); color: var(--color-error); }

.account-delete summary { list-style: none; display: inline-flex; }
.account-delete summary::-webkit-details-marker { display: none; }
.account-delete[open] summary { display: none; }
.account-delete form { max-width: 420px; }

@media (max-width: 860px) {
    .account-layout { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .account-nav {
        top: 86px; z-index: 5; flex-direction: row; overflow-x: auto; scrollbar-width: none;
        padding: 8px; background: rgba(18, 11, 6, .95); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    }
    .account-nav::-webkit-scrollbar { display: none; }
    .account-nav a { flex: none; white-space: nowrap; padding: 8px 14px; }
    .account-card { padding: 20px 16px; scroll-margin-top: 160px; }
}
@media (max-width: 560px) {
    .account-grid { grid-template-columns: minmax(0, 1fr); }
    .account-order-foot { flex-direction: column; align-items: stretch; }
    .account-order-actions > * { flex: 1; }
    .account-order-actions .pill { width: 100%; }
}

/* ---------------------------------------------------------------------------
   Zamowienie (podsumowanie z dostawa) i strona Dostawa (tabela miejscowosci).
   --------------------------------------------------------------------------- */
.checkout-summary { margin: 8px 0 18px; padding: 16px 18px; border-radius: 16px; background: var(--color-surface); border: 1px solid var(--color-border); }
.checkout-min { margin: -8px 0 14px; font-size: .9rem; }
.checkout-form select { width: 100%; }

.delivery-facts { list-style: none; margin: 20px 0 36px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.delivery-facts li { padding: 16px 18px; border-radius: 16px; background: var(--color-surface); border: 1px solid var(--color-border); color: var(--color-muted); font-size: .92rem; }
.delivery-facts strong { display: block; margin-bottom: 4px; color: var(--cream); }
.delivery-table-wrap { overflow-x: auto; border-radius: 16px; border: 1px solid var(--color-border); }
.delivery-table { width: 100%; border-collapse: collapse; background: var(--color-surface); font-size: .95rem; }
.delivery-table th, .delivery-table td { padding: 11px 16px; text-align: left; border-bottom: 1px solid var(--color-border); white-space: nowrap; }
.delivery-table thead th { font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: #f3cb72; }
.delivery-table tbody th { font-weight: 600; color: var(--cream); }
.delivery-table tbody tr:last-child th, .delivery-table tbody tr:last-child td { border-bottom: 0; }
.delivery-note { margin: 18px 0; color: var(--color-muted); }
@media (max-width: 720px) {
    .delivery-facts { grid-template-columns: minmax(0, 1fr); }
    .delivery-table th, .delivery-table td { padding: 10px 12px; }
}
[data-delivery-only][hidden], [data-pickup-only][hidden] { display: none; }
@media (max-width: 560px) {
    /* telefon: bez kolumny z kodem pocztowym, tabela miesci sie bez przewijania na boki */
    .delivery-table th:nth-child(2), .delivery-table td:nth-child(2) { display: none; }
    .delivery-table th, .delivery-table td { white-space: normal; }
}

/* ---------------------------------------------------------------------------
   Galeria: duze zdjecie po lewej, cztery mniejsze po prawej; podglad na pelnym ekranie.
   Telefon: zdjecia przewijane palcem w bok.
   --------------------------------------------------------------------------- */
.gallery { position: relative; margin-top: 18px; }
.gallery-grid {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 8px;
    height: min(62vh, 560px); border-radius: 22px; overflow: hidden;
}
.gallery-item { position: relative; display: block; overflow: hidden; min-height: 0; background: var(--color-surface); }
.gallery-item:first-child { grid-column: span 2; grid-row: span 2; }
.gallery-item:nth-child(n+6) { display: none; }
.gallery-item img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease, filter .35s ease; }
.gallery-item:hover img { transform: scale(1.03); filter: brightness(1.08); }
.gallery-item:focus-visible { outline: 2px solid var(--gold-light); outline-offset: -4px; }
.gallery-all { position: absolute; right: 16px; bottom: 16px; padding: 11px 18px; font-size: .74rem; background: rgba(18, 11, 6, .86); }

.lightbox {
    width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
    background: rgba(8, 4, 2, .96); color: var(--cream);
}
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox::backdrop { background: rgba(8, 4, 2, .96); }
.lightbox-figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; max-width: calc(100vw - 150px); }
.lightbox-figure img { display: block; max-width: 100%; max-height: calc(100dvh - 90px); object-fit: contain; border-radius: 10px; }
.lightbox-figure figcaption { font-size: .92rem; text-align: center; }
.lightbox-count { margin-left: 8px; color: var(--color-muted); }
.lightbox-btn {
    position: absolute; z-index: 2; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; cursor: pointer;
    border: 1px solid rgba(245, 233, 211, .25); background: rgba(18, 11, 6, .7); color: var(--cream); font-size: 1.7rem; line-height: 1;
}
.lightbox-btn:hover { border-color: #e9bc5c; color: #f3cb72; }
.lightbox-close { top: 16px; right: 16px; }
.lightbox-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 16px; top: 50%; transform: translateY(-50%); }

@media (max-width: 720px) {
    .gallery-grid {
        display: flex; height: auto; gap: 8px; border-radius: 0; overflow-x: auto; scroll-snap-type: x mandatory;
        margin: 0 -16px; padding: 0 16px; scrollbar-width: none;
    }
    .gallery-grid::-webkit-scrollbar { display: none; }
    .gallery-item, .gallery-item:nth-child(n+6) { display: block; flex: 0 0 86%; aspect-ratio: 4 / 3; border-radius: 16px; scroll-snap-align: center; }
    .gallery-all { position: static; margin-top: 14px; width: 100%; }
    .lightbox-figure { max-width: 100vw; }
    .lightbox-prev, .lightbox-next { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .gallery-item img, .gallery-item:hover img { transition: none; transform: none; }
}

/* ---------------------------------------------------------------------------
   Panel obslugi /zamowienia/: duze, czytelne karty na komputer w lokalu.
   --------------------------------------------------------------------------- */
.nav-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: #e9bc5c; color: #1a0f08; font-size: .72rem; font-weight: 700; }
.staff-page { max-width: 1400px; padding-bottom: 72px; }
.staff-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.staff-head .page-title { margin-bottom: 2px; }
.staff-sub { margin: 0; color: var(--color-muted); font-size: .9rem; }
.staff-tools { display: flex; gap: 8px; flex-wrap: wrap; }
.staff-tools [aria-pressed="true"] { border-color: #e9bc5c; color: #f3cb72; }
.staff-board { display: flex; flex-direction: column; gap: 30px; }
.staff-section-title { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-family: var(--font-display); font-size: 1.35rem; color: var(--gold-light); }
.staff-section-title span { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 7px; border-radius: 999px; background: rgba(233, 188, 92, .16); font-family: var(--font-ui); font-size: .85rem; color: #f3cb72; }
.staff-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 14px; align-items: start; }
.staff-empty { margin: 0; color: var(--color-muted); }
.staff-order { display: flex; flex-direction: column; gap: 12px; padding: 18px; border-radius: 18px; background: var(--color-surface); border: 1px solid var(--color-border); }
.staff-section--accept .staff-order { border-color: rgba(233, 188, 92, .65); box-shadow: 0 0 0 1px rgba(233, 188, 92, .2); }
.staff-section--closed .staff-order { opacity: .72; }
.staff-order-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.staff-order-no { font-size: 1.35rem; font-weight: 700; color: var(--cream); text-decoration: none; }
.staff-order-time { font-size: .85rem; color: var(--color-muted); }
.staff-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.staff-badges .status { white-space: normal; }
.staff-info { display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 6px 10px; margin: 0; font-size: .95rem; line-height: 1.45; }
.staff-info dt { color: var(--color-muted); font-size: .82rem; padding-top: 2px; }
.staff-info dd { margin: 0; overflow-wrap: anywhere; }
.staff-info a { color: #f3cb72; text-decoration: none; }
.staff-notes { color: #f3cb72; font-weight: 600; }
.staff-items { list-style: none; margin: 0; padding: 10px 0; display: grid; gap: 4px; border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); }
.staff-items strong { color: #f3cb72; }
.staff-total { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0; color: var(--color-muted); font-size: .85rem; }
.staff-total strong { margin-left: auto; font-size: 1.25rem; color: var(--cream); }
.staff-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.staff-actions form { margin: 0; }
.staff-actions .pill--gold { padding: 13px 22px; }
@media (max-width: 420px) {
    .staff-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Kategoria jako zwykla lista bez zdjec (np. piwo) */
.menu-plain { list-style: none; margin: 0; padding: 4px 20px; max-width: 640px; border-radius: 18px; background: var(--color-surface); border: 1px solid var(--color-border); }
.menu-plain-row { display: flex; align-items: center; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--color-border); }
.menu-plain-row:last-child { border-bottom: 0; }
.menu-plain-row form { margin: 0; }
.menu-plain-name { flex: 1; min-width: 0; font-weight: 600; }
.menu-plain-name small { display: block; font-weight: 400; color: var(--color-muted); }
.menu-plain-price { font-weight: 700; color: #f3cb72; white-space: nowrap; }

/* Kontakt */
.contact-lead, .delivery-lead { margin: 0 0 24px; color: var(--color-muted); max-width: 640px; }
.contact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.contact-card { padding: 22px; border-radius: 18px; background: var(--color-surface); border: 1px solid var(--color-border); }
.contact-card h2 { margin: 0 0 12px; font-family: var(--font-display); font-size: 1.2rem; color: var(--gold-light); }
.contact-card address { margin: 0 0 16px; font-style: normal; line-height: 1.6; }
.contact-card p { margin: 0 0 6px; }
.contact-phone { font-size: 1.5rem; font-weight: 700; color: var(--cream); text-decoration: none; }
.contact-note { color: var(--color-muted); font-size: .9rem; }
.contact-hours { margin: 0; display: grid; gap: 8px; }
.contact-hours div { display: flex; justify-content: space-between; gap: 12px; }
.contact-hours dt { color: var(--color-muted); }
.contact-hours dd { margin: 0; font-weight: 600; white-space: nowrap; }
@media (max-width: 820px) {
    .contact-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Polityka prywatnosci */
.legal { max-width: 820px; line-height: 1.7; }
.legal h2 { margin: 30px 0 10px; font-family: var(--font-display); font-size: 1.25rem; color: var(--gold-light); }
.legal li { margin-bottom: 6px; }
.legal-date { margin: 0 0 18px; color: var(--color-muted); font-size: .9rem; }
.legal-table { width: 100%; border-collapse: collapse; margin: 10px 0; font-size: .93rem; }
.legal-table th, .legal-table td { padding: 9px 10px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--color-border); }
.legal-table th { color: #f3cb72; font-size: .8rem; }

/* Maly komunikat o prywatnosci w lewym dolnym rogu */
.privacy-box {
    position: fixed; left: 20px; bottom: 20px; z-index: 70; display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
    width: 300px; max-width: calc(100% - 24px); padding: 14px 16px; border-radius: 16px;
    background: rgba(16, 10, 6, .96); border: 1px solid rgba(233, 188, 92, .4); box-shadow: 0 10px 30px rgba(0, 0, 0, .45);
    font-size: .82rem; line-height: 1.45; color: rgba(245, 233, 211, .88);
}
.privacy-box[hidden] { display: none; }
.privacy-box p { margin: 0; }
@media (max-width: 560px) {
    .privacy-box { left: 12px; bottom: 12px; width: auto; right: 12px; }
}

/* Dwa krotkie pola obok siebie (numer domu | numer mieszkania) */
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }

/* Wylogowanie w naglowku: na komputerze okragla ikonka, w menu na telefonie pelny przycisk z napisem */
.logout-form { margin: 0; }
.logout-btn { width: 46px; height: 46px; padding: 0; }
.logout-text { display: none; }
@media (max-width: 1150px) {
    .logout-form { width: 100%; }
    .header-cta .logout-btn { width: 100%; height: auto; padding: 14px; }
    .logout-text { display: inline; }
}

/* Odbior / dowoz jako dwa kafelki */
.choice-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0 0 18px; padding: 0; border: 0; }
.choice-cards legend { grid-column: 1 / -1; margin-bottom: 8px; padding: 0; }
.choice-card { position: relative; display: block; cursor: pointer; }
.choice-card input { position: absolute; opacity: 0; pointer-events: none; }
.choice-card-body {
    display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; padding: 18px 12px; text-align: center;
    border-radius: 16px; background: var(--color-surface); border: 2px solid var(--color-border);
    transition: border-color .2s ease, background-color .2s ease, transform .15s ease;
}
.choice-card-icon { font-size: 1.8rem; line-height: 1; }
.choice-card-body strong { color: var(--cream); font-size: 1rem; }
.choice-card-body small { color: var(--color-muted); font-size: .8rem; }
.choice-card:hover .choice-card-body { border-color: rgba(233, 188, 92, .5); }
.choice-card input:checked + .choice-card-body { border-color: #e9bc5c; background: rgba(233, 188, 92, .1); }
.choice-card input:checked + .choice-card-body strong { color: #f3cb72; }
.choice-card input:focus-visible + .choice-card-body { outline: 2px solid var(--gold-light); outline-offset: 2px; }

/* Strona zamowienia: pole "Akceptacja zamowienia" */
.acceptance { margin: 6px 0 24px; padding: 18px 20px; border-radius: 18px; background: var(--color-surface); border: 1px solid var(--color-border); }
.acceptance p { margin: 0; }
.acceptance-label { font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--color-muted); }
.acceptance-state { display: flex; align-items: center; gap: 10px; margin: 6px 0 !important; font-size: 1.35rem; font-weight: 700; }
.acceptance-dot { width: 12px; height: 12px; border-radius: 50%; background: currentColor; flex: none; }
.acceptance-text { color: rgba(245, 233, 211, .8); font-size: .92rem; }
.acceptance--pending, .acceptance--unpaid { border-color: rgba(233, 188, 92, .5); }
.acceptance--pending .acceptance-state, .acceptance--unpaid .acceptance-state { color: #f3cb72; }
.acceptance--pending .acceptance-dot { animation: pulse 1.6s ease-in-out infinite; }
.acceptance--accepted { border-color: rgba(124, 196, 138, .55); }
.acceptance--accepted .acceptance-state { color: #9ad6a6; }
.acceptance--rejected { border-color: rgba(255, 155, 138, .5); }
.acceptance--rejected .acceptance-state { color: var(--color-error); }
@keyframes pulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .acceptance--pending .acceptance-dot { animation: none; } }

/* Kafelek niedostepny (karta przy dowozie) */
.choice-card.is-disabled { cursor: not-allowed; }
.choice-card.is-disabled .choice-card-body { opacity: .4; }

/* Zamowienie: na komputerze dwie kolumny (Dane | Szczegoly dostawy), pod nimi Uwagi i podsumowanie */
.checkout-page { max-width: 1040px; }
.checkout-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: stretch; }
.checkout-section { padding: 22px; border-radius: 20px; background: var(--color-surface); border: 1px solid var(--color-border); }
.checkout-section .field input:not([type=radio]):not([type=checkbox]), .checkout-section .field textarea, .checkout-section .field select { background: var(--color-bg); width: 100%; box-sizing: border-box; }
.checkout-heading {
    margin: 0 0 16px; padding-bottom: 10px; border-bottom: 1px solid var(--color-border);
    font-family: var(--font-ui); font-size: .82rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #f3cb72;
}
.checkout-notes { margin-top: 20px; }
/* pole uwag: tylko w dol (bez rozciagania na szerokosc poza ramke) */
.checkout-notes textarea { max-width: 100%; min-height: 110px; resize: vertical; }
.checkout-notes .field { margin-bottom: 0; }
.checkout-info { margin: 0 0 16px; padding: 12px 14px; border-radius: 12px; background: rgba(233, 188, 92, .08); border: 1px solid rgba(233, 188, 92, .3); font-size: .92rem; }
.checkout-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 20px; }
.checkout-footer .checkout-summary { flex: 0 1 520px; margin: 0; }
.checkout-privacy { margin: 18px 0 0; text-align: center; }
.checkout-submit { flex: none; padding: 16px 36px; font-size: 1rem; }
@media (max-width: 820px) {
    .checkout-grid { grid-template-columns: minmax(0, 1fr); }
    .checkout-section { padding: 18px 16px; }
    .checkout-footer { flex-direction: column; align-items: stretch; }
    .checkout-footer .checkout-summary { flex: none; }
    .checkout-submit { width: 100%; }
}
