    /* --- DEFINICJA ZMIENNYCH --- */
    :root {
        /* --- 1. FONTY --- */
        --font-primary: 'Ubuntu', sans-serif;                /* Nagłówki, przyciski, ceny */
        --font-secondary: 'Mulish', -apple-system, sans-serif; /* Tekst główny, opisy */

        /* --- 2. KOLORY MARKI (Brand) --- */
        --color-primary: #ff6b35;       /* Główny akcent (Pomarańcz) */
        --color-primary-light: #fff3e0; /* Tło aktywnych elementów (jasny pomarańcz) */
        --color-secondary: #1a1a1a;     /* Główny ciemny (Przyciski, Ważne elementy) */
        --color-tertiary: #e93333;      /* Wyróżnienia (Polecane - Czerwony) */
        --color-stars: #ffa500;         /* Gwiazdki ocen (Złoty) */

        /* --- 3. KOLORY TEKSTU --- */
        --text-primary: #1a1a1a;    /* Nagłówki, główna treść */
        --text-secondary: #404040;  /* Opisy, akapity, ikony */
        --text-tertiary: #a4a4a4;   /* Metadane (waga, cena, puste gwiazdki, placeholdery) */
        --text-inverse: #ffffff;    /* Tekst na ciemnym tle (np. w przyciskach, nagłówku) */

        /* --- 4. KOLORY TŁA (Backgrounds) --- */
        --bg-main: #fbfbfb;         /* Tło strony */
        --bg-header: #ffffff;       /* Tło nagłówka (fallback) */
        --bg-nav: rgba(255, 255, 255, 0.98); /* Tło nawigacji (blur) */
        --bg-footer: #fafafa;       /* Tło stopki */
        --bg-card: #ffffff;         /* Tło kart dań i sekcji */
        --bg-input: #fafafa;        /* Tło wyszukiwarki */
        --bg-open: #f1f0ed;         /* Tło "dzisiaj" w godzinach */
        
        /* Dodatkowe tła systemowe */
        --bg-hover: #f5f5f5;        /* Uniwersalne tło po najechaniu */
        --bg-tooltip: #1a1a1a;      /* Tło dymków */
        --bg-overlay: rgba(0, 0, 0, 0.95); /* Tło modala ze zdjęciem */
        --bg-hint-pulse: rgba(255, 107, 53, 0.5); /* Cień pulsującej podpowiedzi */

        /* --- 5. OBRAMOWANIA I CIENIE --- */
        --border-card: #e5e5e5;     /* Linie podziału, karty */
        --border-input: #999999;    /* Obramowanie searcha (domyślne #9e9e9e zamienione na jedną zmienną) */
        --shadow-default: 0 2px 12px rgba(0, 0, 0, 0.08);
        --shadow-nav: 0 2px 8px rgba(0, 0, 0, 0.06);
        --shadow-tooltip: 0 8px 32px rgba(0, 0, 0, 0.15);
        --shadow-modal-img: 0 20px 60px rgba(0, 0, 0, 0.5);

        /* --- 6. INNE --- */
        --radius-card: 12px;
        --radius-btn: 50px;

        /* --- 7. BRAKUJĄCE ZMIENNE --- */
        --bg-search: #ffffff;
        --link-color: #ff6b35;
        --link-hover: #e55a2b;
    }

    /* --- ZMIENNE DLA TRYBU CIEMNEGO --- */
    [data-theme="dark"] {
        --color-primary-light: #4d3105;
        --color-tertiary: #ad4a4a;

        --bg-main: #121212;
        --bg-header: #1e1e1e; /* Ciemny nagłówek jeśli nie ma zdjęcia */
        --bg-nav: rgba(30, 30, 30, 0.98);
        --bg-footer: #181818;
        --bg-card: #1e1e1e;
        --bg-input: #2a2a2a;
        --bg-open: #2d2d2d;
        
        --bg-hover: #2c2c2c;
        --bg-tooltip: #333333;
        --bg-overlay: rgba(0, 0, 0, 0.95);
        --bg-hint-pulse: rgba(255, 107, 53, 0.2);

        --border-card: #363636;

        --text-primary: #f5f5f5;
        --text-secondary: #d4d4d4;
        --text-tertiary: #888888;
        --text-inverse: #ffffff;

        --color-secondary: #ffffff; /* Białe przyciski na ciemnym tle */
        --color-border: #333333;
        --border-input: #444444;
        
        --btn-primary-bg: #ffffff;
        --btn-primary-text: #1a1a1a;
        --btn-primary-hover: #e0e0e0;
        
        --shadow-default: 0 4px 20px rgba(0, 0, 0, 0.4);
        --shadow-nav: 0 2px 8px rgba(0, 0, 0, 0.3);

        --bg-search: #1e1e1e;
        --link-color: #ff8c5a;
        --link-hover: #ffa070;
    }

    /* --- GLOBALNE --- */
    * { margin: 0; padding: 0; box-sizing: border-box; }
    
    body { 
        font-family: var(--font-secondary); 
        background: var(--bg-main); 
        color: var(--text-primary); 
        line-height: 1.6; 
    }
    
    body.modal-open, html.modal-open { overflow: hidden !important; height: 100% !important; touch-action: none; }

    /* --- ACCESSIBILITY: Skip Link & 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;
    }

    .skip-link {
        position: absolute;
        top: -100%;
        left: 50%;
        transform: translateX(-50%);
        background: var(--color-secondary);
        color: #fff;
        padding: 0.75rem 1.5rem;
        border-radius: 0 0 8px 8px;
        z-index: 9999;
        font-weight: 600;
        text-decoration: none;
        transition: top 0.2s ease;
    }

    .skip-link:focus {
        top: 0;
    }

    /* Fonty Ubuntu */
    .header-title, .category-btn, .section-title, .item-name, 
    .item-weight, .price, .footer-section-title, .footer-title, .footer-buttons { 
        font-family: var(--font-primary); 
    }

    /* --- UTILITY CLASSES (zastępują Tailwind CDN) --- */
    .min-h-screen { min-height: 100vh; }
    .container { width: 100%; }
    .mx-auto { margin-left: auto; margin-right: auto; }
    .px-4 { padding-left: 1rem; padding-right: 1rem; }
    .py-8 { padding-top: 2rem; padding-bottom: 2rem; }
    .max-w-5xl { max-width: 64rem; }
    .grid { display: grid; }
    .gap-4 { gap: 1rem; }
    .mb-16 { margin-bottom: 4rem; }
    .pr-12 { padding-right: 3rem; }

    /* --- NAGŁÓWEK --- */
    .header {
        position: relative;
        background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('cover.avif'); 
        background-size: cover; 
        background-position: center; 
        border-bottom: 1px solid var(--border-card); 
        padding: 6rem 0 4rem 0;
        text-align: center; 
        z-index: 200;
    }
    .header-title { 
        font-size: 2rem; 
        font-weight: 700; 
        color: var(--text-inverse); 
        letter-spacing: -0.02em; 
        margin-bottom: 0.5rem; 
    }
    .header-subtitle { 
        font-size: 1.25rem; 
        color: var(--text-inverse); 
        font-weight: 600; 
    }
    .header-rating { 
        display: flex; align-items: center; justify-content: center; gap: 0.5rem; 
        margin-top: 0.75rem; margin-bottom: 0.5rem; font-size: 0.9375rem; 
    }
    .rating-number { font-weight: 600; color: var(--text-inverse); }
    .rating-count { color: var(--text-inverse); }
    .rating-stars { display: flex; align-items: center; gap: 2px; color: var(--color-stars); }
    .star { font-size: 1rem; }
    .star-full, .star-partial::before { color: var(--color-stars); }
    .star-partial { position: relative; display: inline-block; }
    .star-partial::before { content: '★'; position: absolute; overflow: hidden; width: 40%; }
    .star-partial::after { content: '★'; color: var(--border-card); } /* Użyłem border-card jako "szarego" dla gwiazdki */

    /* --- NAWIGACJA --- */
    .category-nav {
        position: sticky;
        top: 0;
        z-index: 100;
        background: var(--bg-nav);
        backdrop-filter: blur(10px); 
        border-bottom: 1px solid var(--border-card);
        transition: box-shadow 0.3s ease;
    }
    .category-nav-container { max-width: 1280px; margin: 0 auto; display: flex; align-items: center; padding: 0 1rem; }
    .category-nav-scroll { flex: 1; overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; }
    .category-nav-scroll::-webkit-scrollbar { display: none; }
    .category-nav-inner { display: flex; gap: 0.5rem; padding: 1rem 0; }
    .category-nav-inner::after { content: ''; display: block; min-width: 120px; flex-shrink: 0; }

    .category-btn { 
        white-space: nowrap; padding: 0.5rem 1.25rem; font-size: 0.875rem; 
        font-weight: 500; color: var(--text-secondary); 
        background: transparent; border: 1px solid transparent; 
        border-radius: 24px; cursor: pointer; transition: all 0.2s ease; 
    }
    .category-btn:hover { color: var(--text-primary); background: var(--bg-hover); }
    .category-btn.active { background: var(--color-secondary); color: var(--bg-card); border-color: var(--color-secondary); }

    /* --- PRZYCISK ULUBIONE (KOSZYK) --- */
    .favorites-icon-btn { 
        position: relative; flex-shrink: 0; width: 60px; height: 60px; 
        background: var(--bg-card); color: var(--text-primary); 
        border: none; border-radius: 100px; cursor: pointer;
        display: flex; align-items: center; justify-content: center; 
        transition: all 0.2s ease; border-left: 2px solid var(--border-card); 
    }
    .favorites-icon-btn:hover { background: var(--bg-tooltip); color: var(--text-inverse); }
    
    .favorites-icon-btn .favorite-icon { width: 24px; height: 24px; }
    .favorites-icon-btn .favorite-icon path { fill: currentColor; }
    
    .favorites-badge { 
        position: absolute; top: 8px; right: 8px; 
        background: var(--color-primary); color: var(--text-inverse); 
        border-radius: 10px; padding: 2px 6px; font-size: 0.7rem; 
        font-weight: 600; min-width: 18px; text-align: center; 
    }
    
    .favorites-icon-btn.hint-pulse { animation: hintPulse 1s ease-in-out 3; }
    @keyframes hintPulse {
        0%, 100% { transform: scale(1); }
        50% { transform: scale(1.15); }
    }

    /* --- WYSZUKIWARKA --- */
    .search-container {
        position: sticky;
        /* To ustawimy dynamicznie w JS, ale na start dajemy bezpieczną wartość */
        top: 55px;
        z-index: 90; /* Niżej niż nav -> chowa się pod nim */
        background: var(--bg-search);
        border-bottom: 1px solid var(--border-card);
        box-shadow: var(--shadow-default);
        padding: 0.75rem 1rem;

        /* Klucz do płynności - używamy transformacji sprzętowej */
        transition: transform 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
        will-change: transform;
    }

    .search-container.collapsed {
        transform: translateY(-100%);
        pointer-events: none; /* Zapobiega przypadkowym kliknięciom, gdy jest schowany */
    }

    .search-wrapper { max-width: 1280px; margin: 0 auto; position: relative; }
    .search-input { 
        width: 100%; padding: 0.75rem 2.25rem 0.75rem 1rem; font-size: 1rem; 
        border: 2px solid var(--border-input); /* Użyłem #999 z definicji */
        border-radius: 12px; outline: none; transition: all 0.2s ease; 
        background: var(--bg-input); color: var(--text-primary);
    }
    .search-input:focus { 
        border-color: var(--color-secondary); background: var(--bg-card); 
        box-shadow: var(--shadow-default); 
    }
    .search-input::placeholder { color: var(--text-tertiary); }
    
    .search-icon { 
        position: absolute; right: 1rem; top: 50%; transform: translateY(-50%); 
        width: 24px; height: 24px; pointer-events: none; 
    }
    .search-icon svg { width: 100%; height: 100%; fill: var(--text-tertiary); }
    
    .clear-search { 
        position: absolute; right: 0.6rem; top: 50%; transform: translateY(-50%); 
        background: transparent; border: none; color: var(--text-secondary); 
        cursor: pointer; font-size: 1.25rem; padding: 0.25rem; 
        display: none; transition: color 0.2s ease; 
    }
    .clear-search:hover { color: var(--text-primary); }
    .clear-search.show { display: block; }
    .clear-search.show + .search-icon, .search-wrapper:has(.clear-search.show) .search-icon { display: none; }


    /* --- CHIPSY --- */
    .filter-chips-scroll {
        display: flex;
        gap: 0.5rem;
        overflow-x: auto;
        padding-top: 0.5rem;
        padding-bottom: 0;
        scrollbar-width: none;
        -ms-overflow-style: none;
        
        max-width: 1280px;
        width: 100%;
        margin: 0 auto;

        mask-image: linear-gradient(to right, black 90%, transparent 100%);
        -webkit-mask-image: linear-gradient(to right, black 90%, transparent 100%);
    }
    .filter-chips-scroll::-webkit-scrollbar { display: none; }

    .filter-chip {
        display: inline-flex;
        align-items: center;
        gap: 0.375rem;
        padding: 0.4rem 0.85rem;
        background: var(--bg-input);
        border: 1px solid var(--border-card);
        border-radius: 50px;
        font-family: var(--font-primary);
        font-size: 0.8125rem;
        font-weight: 500;
        color: var(--text-secondary);
        white-space: nowrap;
        cursor: pointer;
        transition: all 0.2s ease;
        user-select: none;
    }

    .filter-chip svg {
        width: 14px;
        height: 14px;
        fill: currentColor;
        opacity: 0.7;
    }

    /* Stan: Najechany */
    .filter-chip:hover {
        background: var(--bg-hover);
        color: var(--text-primary);
        border-color: var(--text-tertiary);
    }

    /* Stan: Aktywny (Kliknięty) */
    .filter-chip.active {
        background: var(--color-secondary); /* Ciemny w jasnym motywie, Biały w ciemnym */
        color: var(--bg-card);            /* Kontrastowy kolor tekstu */
        border-color: var(--color-secondary);
        box-shadow: none;                 /* Usunięcie pomarańczowej poświaty */
    }

    /* Opcjonalnie: upewnijmy się, że ikona też zmienia kolor na kontrastowy */
    .filter-chip.active svg {
        opacity: 1;
        fill: currentColor;
    }

    /* Styl dla zablokowanego filtra (brak wyników przy tym połączeniu) */
    .filter-chip.disabled {
        opacity: 0.3;
        pointer-events: none; /* Nie da się kliknąć */
        border-color: transparent;
        background: var(--bg-hover);
}
    
    /* --- GŁÓWNA ZAWARTOŚĆ (MENU) --- */
    .menu-item.hidden { display: none; }
    .section-hidden { display: none; }
    .no-results { text-align: center; padding: 4rem 2rem; display: none; }
    .no-results.show { display: block; }
    .no-results-icon { font-size: 4rem; margin-bottom: 1rem; opacity: 0.3; color: var(--text-tertiary); }
    .no-results-title { font-size: 1.25rem; font-weight: 600; color: var(--text-primary); margin-bottom: 0.5rem; }
    .no-results-text { font-size: 0.9375rem; color: var(--text-secondary); }

    .section-title { 
        font-size: 2.0625rem; font-weight: 600; margin-bottom: 1.5rem; margin-left: 20px; 
        color: var(--text-primary); letter-spacing: -0.02em; 
    }

    .menu-item { 
        background: var(--bg-card); 
        border: 1px solid var(--border-card); 
        border-radius: var(--radius-card); 
        padding: 1.75rem; transition: all 0.2s ease; position: relative; 
    }
    .menu-item:hover { 
        border-color: var(--text-tertiary); 
        box-shadow: var(--shadow-default); 
    }

    .item-name { 
        font-size: 1.2rem; font-weight: 700; color: var(--text-primary); 
        margin-bottom: 0.5rem; letter-spacing: -0.01em; 
        display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; 
    }
    .item-desc { font-size: 1rem; color: var(--text-secondary); line-height: 1.5; }
    .item-weight { font-size: 0.875rem; color: var(--text-tertiary); margin: 0; white-space: nowrap; }
    
    .weight-tags-row { display: flex; flex-direction: row; align-items: center; gap: 1rem; margin-bottom: 0.5rem; }
    .item-tags { display: flex; flex-direction: row; align-items: center; gap: 1rem; margin: 0; }
    
    .price-row { display: flex; align-items: center; justify-content: space-between; margin-top: 0.75rem; }
    .price { color: var(--text-tertiary); font-weight: 300; font-size: 1.125rem; margin-top: 0.75rem; }

    /* Badges */
    .recommended-badge { 
        display: inline-flex; align-items: center; background: transparent; 
        color: var(--color-tertiary); padding: 0.25rem 0.5rem; 
        border: 1px solid var(--color-tertiary); border-radius: 6px; 
        font-size: 0.75rem; font-weight: 500; vertical-align: middle; 
    }
    .new-badge { 
        display: inline-flex; align-items: center; background: transparent; 
        color: var(--text-primary); padding: 0.25rem 0.5rem; 
        border: 1px solid var(--text-primary); border-radius: 6px; 
        font-size: 0.75rem; font-weight: 500; vertical-align: middle; 
    }

    /* --- PRZYCISKI AKCJI (Serce, Aparat) --- */
    .favorite-btn { 
        position: absolute; top: 1.25rem; right: 1.25rem; 
        background: transparent; border: none; width: 36px; height: 36px; 
        display: flex; align-items: center; justify-content: center; 
        cursor: pointer; transition: all 0.2s ease; border-radius: 50%; 
    }
    .favorite-btn:hover { background: var(--bg-hover); transform: scale(1.1); }
    .favorite-btn.active { background: var(--color-primary-light); }
    .favorite-icon { width: 24px; height: 24px; transition: all 0.2s ease; }
    .favorite-icon path { fill: var(--text-secondary); transition: fill 0.2s ease; }
    .favorite-btn.active .favorite-icon path { fill: var(--color-primary); }

    .photo-btn { 
        display: inline-flex; align-items: center; justify-content: center; 
        width: 32px; height: 32px; background: transparent; border: none; 
        border-radius: 50%; cursor: pointer; transition: all 0.2s ease; 
        vertical-align: middle; padding: 0; 
    }
    .photo-btn:hover { background: var(--bg-hover); transform: scale(1.1); }
    .camera-icon { width: 20px; height: 20px; fill: var(--text-secondary); transition: fill 0.2s ease; }
    .photo-btn:hover .camera-icon { fill: var(--text-primary); }

    /* --- TAGI I IKONY --- */
    .tag-icon { width: 1rem; height: 1rem; cursor: help; position: relative; display: flex; align-items: center; justify-content: center; }
    .tag-icon svg { width: 100%; height: 100%; }
    .tag-icon path { fill: var(--text-tertiary); }
    .tag-icon:hover path { fill: var(--text-primary); }
    
    .tag-tooltip { 
        position: absolute; bottom: calc(100% + 8px); left: 50%; 
        transform: translateX(-50%); background: var(--bg-tooltip); 
        color: var(--text-inverse); padding: 0.5rem 0.75rem; 
        border-radius: 6px; font-size: 1rem; white-space: nowrap; 
        pointer-events: none; opacity: 0; transition: opacity 0.2s ease; z-index: 40; 
    }
    .tag-tooltip::after { 
        content: ''; position: absolute; top: 100%; left: 50%; 
        transform: translateX(-50%); border: 4px solid transparent; 
        border-top-color: var(--bg-tooltip); 
    }
    .tag-icon:hover .tag-tooltip { animation: tooltipFade 3s forwards; }

    /* --- TOOLTIP DOLNY --- */
    .tooltip-bubble { 
        position: fixed; bottom: 4rem; right: 2rem; 
        background: var(--bg-tooltip); color: var(--text-inverse); 
        padding: 1.25rem 1.5rem; border-radius: 16px; 
        box-shadow: var(--shadow-tooltip); max-width: 320px; 
        z-index: 2000; animation: slideInUp 0.5s ease; display: none; 
    }
    .tooltip-bubble.show { display: block; }
    .tooltip-close { 
        position: absolute; top: 0.75rem; right: 0.75rem; 
        background: transparent; border: none; 
        color: rgba(255, 255, 255, 0.6); 
        cursor: pointer; font-size: 1.25rem; line-height: 1; 
        padding: 0.25rem; transition: color 0.2s ease; 
    }
    .tooltip-close:hover { color: var(--text-inverse); }
    .tooltip-content { padding-right: 1.5rem; }
    .tooltip-title { font-weight: 600; margin-bottom: 0.5rem; font-size: 1rem; }
    .tooltip-text { font-size: 0.875rem; line-height: 1.5; color: rgba(255, 255, 255, 0.85); }
    .tooltip-icon { display: inline-block; margin-right: 0.25rem; }

    /* --- EKRAN ULUBIONYCH --- */
    .favorites-screen { 
        position: fixed; top: 0; left: 0; width: 100%; height: 100%; 
        background: var(--bg-card); z-index: 1001; overflow-y: auto; 
        display: none; animation: slideInRight 0.3s ease; 
    }
    .favorites-screen.show { display: block; }
    .favorites-header { 
        position: sticky; top: 0; z-index: 10; 
        background: var(--bg-card); border-bottom: 1px solid var(--border-card); 
        padding: 1rem; display: flex; align-items: center; gap: 1rem; 
    }
    .back-btn { 
        background: transparent; border: none; width: 40px; height: 40px; 
        display: flex; align-items: center; justify-content: center; 
        cursor: pointer; border-radius: 50%; transition: all 0.2s ease; flex-shrink: 0; 
    }
    .back-btn:hover { background: var(--bg-hover); }
    .back-icon { width: 24px; height: 24px; fill: var(--text-primary); }
    
    .favorites-header-title { font-size: 1.5rem; font-weight: 600; color: var(--text-primary); flex: 1; }
    .favorites-total { font-size: 1.25rem; font-weight: 700; color: var(--text-primary); white-space: nowrap; }
    .favorites-content { padding: 2rem 1rem; max-width: 1280px; margin: 0 auto; }
    .favorites-empty { text-align: center; padding: 4rem 2rem; }
    .favorites-empty-icon { font-size: 4rem; color: var(--border-card); margin-bottom: 1rem; }
    .favorites-empty-title { font-size: 1.25rem; font-weight: 600; color: var(--text-primary); margin-bottom: 0.5rem; }
    .favorites-empty-text { font-size: 0.9375rem; color: var(--text-secondary); }

    /* --- MODAL ZDJĘCIA --- */
    .photo-modal { 
        position: fixed; top: 0; left: 0; right: 0; bottom: 0; 
        width: 100%; height: 100%; background: var(--bg-overlay); 
        z-index: 1002; display: none; align-items: center; justify-content: center; 
        padding: 2rem; animation: fadeIn 0.2s ease; overflow: hidden; 
    }
    .photo-modal.show { display: flex; }
    .photo-modal-content { 
        position: relative; max-width: 600px; max-height: 90vh; width: 100%; 
        animation: scaleIn 0.3s ease; overflow: hidden; border-radius: 12px; 
    }
    .photo-modal-image { width: 100%; height: auto; border-radius: 12px; box-shadow: var(--shadow-modal-img); }
    .photo-modal-close { 
        position: absolute; top: 0; right: 0; background: var(--bg-card); 
        border: none; color: var(--color-primary); width: 60px; height: 60px; 
        border-radius: 0 12px 0 20px; cursor: pointer; 
        display: flex; align-items: center; justify-content: center; 
        transition: all 0.2s ease; box-shadow: var(--shadow-default); z-index: 10; 
    }
    .photo-modal-close:hover { background: var(--bg-hover); }
    .close-icon { width: 24px; height: 24px; }
    .close-icon path { fill: var(--color-primary); }
    .photo-modal-caption { color: var(--text-inverse); text-align: center; margin-top: 1rem; font-size: 1rem; font-weight: 500; }

    /* --- FOOTER --- */
    .footer { 
        background: var(--bg-footer); border-top: 1px solid var(--border-card); 
        padding: 6rem 1rem 4rem 1rem; margin-top: 4rem; 
    }
    .footer-content { max-width: 1280px; margin: 0 auto; text-align: center; }
    .footer-title { 
        font-size: 2rem; font-weight: 700; color: var(--text-primary); 
        margin-bottom: 1.5rem; letter-spacing: -0.02em; 
    }
    .footer-section { margin-bottom: 4rem; }
    .footer-section-title { 
        font-size: 0.875rem; font-weight: 600; color: var(--text-tertiary); 
        text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.75rem; 
    }
    .footer-text { font-size: 1rem; color: var(--text-secondary); line-height: 1.6; }
    
    .hours-grid { 
        display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); 
        gap: 0.75rem; max-width: 800px; margin: 1rem auto 0; 
    }
    .hours-item { 
        display: flex; justify-content: space-between; padding: 0.5rem 1rem; 
        background: var(--bg-card); border: 1px solid var(--border-card); 
        border-radius: 8px; font-size: 0.9375rem; transition: all 0.2s ease; 
    }
    .hours-item.today { 
        background: var(--bg-open); border-color: var(--color-primary); border-left-width: 3px; 
    }
    .hours-item.today .hours-day, .hours-item.today .hours-time { color: var(--text-primary); font-weight: 600; }
    .hours-day { color: var(--text-primary); font-weight: 500; }
    .hours-time { color: var(--text-secondary); }

    /* --- PRZYCISK SECONDARY --- */
    .btn-secondary {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        padding: 0.75rem 1.5rem;
        
        /* Kluczowe dla stylu "Outline": */
        background: transparent;                 /* Przezroczyste tło */
        border: 2px solid var(--color-secondary); /* Ramka w kolorze tekstu */
        color: var(--color-secondary);            /* Tekst w kolorze ramki */
        
        border-radius: 50px; /* Spójne z resztą */
        font-family: var(--font-primary);
        font-weight: 600;
        text-decoration: none;
        cursor: pointer;
        transition: all 0.2s ease;
    }

    .btn-secondary:hover {
        background: var(--color-secondary); /* Tło staje się pełne */
        color: var(--bg-card);              /* Tekst zmienia się na kontrastowy (np. biały w dzień) */
        transform: translateY(-2px);
        box-shadow: var(--shadow-default);
    }

    /* --- PRZYCISK W STOPCE --- */
    .footer-buttons { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-top: 1rem; }
    .social-link, .directions-btn, .phone-btn { 
        display: inline-flex; align-items: center; gap: 0.5rem; 
        padding: 0.75rem 1.5rem; 
        
        /* ZMIANA TUTAJ: Używamy zmiennych dedykowanych przyciskom */
        background: var(--btn-primary-bg); 
        color: var(--btn-primary-text); 
        
        text-decoration: none; 
        border-radius: 50px; font-weight: 500; transition: all 0.2s ease; margin: 0; 
    }
    .social-link:hover, .directions-btn:hover, .phone-btn:hover {
        background: var(--bg-tooltip); color: var(--text-inverse); transform: translateY(-2px); box-shadow: var(--shadow-tooltip);
    }
    .phone-icon, .directions-icon, .instagram-icon { width: 20px; height: 20px; fill: currentColor; }

    .footer-copyright { 
        margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--border-card); 
        font-size: 0.75rem; color: var(--text-secondary); text-align: center; 
    }
    .footer-copyright strong { font-weight: 600; color: var(--text-primary); }
    .footer-copyright a { 
        color: var(--link-color); text-decoration: none; font-weight: 600; 
        transition: color 0.2s ease; 
    }
    .footer-copyright a:hover { color: var(--link-hover); }

    /* --- ANIMACJE --- */
    @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
    @keyframes scaleIn { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }
    @keyframes slideInUp { from { transform: translateY(100px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
    @keyframes slideOutDown { from { transform: translateY(0); opacity: 1; } to { transform: translateY(100px); opacity: 0; } }
    @keyframes tooltipFade { 0% { opacity: 1; } 90% { opacity: 1; } 100% { opacity: 0; } }
    
    /* --- MEDIA QUERIES --- */
    @media (min-width: 641px) and (max-width: 1024px) {
        .search-container { padding: 0.75rem 1.5rem; }
        .menu-item { padding: 1.5rem; }
        .section-title { font-size: 2rem; }
        .container { padding-left: 1.5rem; padding-right: 1.5rem; }
        .filter-chip { font-size: 0.8125rem; padding: 0.375rem 0.75rem; }
    }

    @media (max-width: 640px) {
        .search-container { padding: 0.75rem; }
        .filter-chips-scroll { padding-right: 33vw; }
        .category-nav-container { padding: 0 0 0 12px; }
        .favorites-icon-btn { width: 60px; height: 60px; margin-left: 10px; }
        .favorites-badge { top: 6px; right: 6px; }
        .favorites-header-title { font-size: 1.25rem; }
        .favorites-total { font-size: 1.125rem; }
        .section-title { font-size: 1.8125rem; }
        .menu-item { padding: 1.25rem; }
        .header-title { font-size: 2.5rem; }
        .header-rating { font-size: 0.875rem; gap: 0.375rem; }
        .star { font-size: 0.9375rem; }
        .item-name { font-size: 1.4rem; }
        .no-results { padding: 3rem 1rem; }
        .no-results-icon { font-size: 3rem; }
        .no-results-title { font-size: 1.125rem; }
        .tooltip-bubble { bottom: 3rem; right: 1.5rem; left: 3.5rem; max-width: none; }
        .footer { padding: 6rem 1rem 8rem 1rem; margin-top: 3rem; }
        .footer-title { font-size: 1.5rem; }
        .hours-grid { grid-template-columns: 1fr; }
        .footer-buttons { flex-direction: column; align-items: stretch; }
        .phone-btn, .directions-btn, .social-link { width: 100%; justify-content: center; }
        .photo-modal { padding: 1rem; }
        .photo-modal-content { max-width: 100%; }
        .photo-modal-close { width: 52px; height: 52px; border-radius: 0 12px 0 18px; }
        .close-icon { width: 20px; height: 20px; }
    }

    /* --- PRZYCISK ZMIANY MOTYWU (JASNY/CIEMNY) --- */
    .theme-toggle-btn {
        width: 36px;
        height: 36px;
        background: transparent;
        border: 2px solid var(--color-border);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        color: var(--text-primary);
        transition: all 0.2s ease;
    }
    .theme-toggle-btn:hover {
        background: var(--bg-hover);
    }
    .theme-toggle-btn svg {
        width: 16px;
        height: 16px;
    }
    
    /* Logika wyświetlania ikon */
    .sun-icon { display: none; }
    .moon-icon { display: block; }

    /* Gdy tryb ciemny jest aktywny, zamień ikony */
    [data-theme="dark"] .sun-icon { display: block; }
    [data-theme="dark"] .moon-icon { display: none; }
    
.header .theme-toggle-btn {
        /* Wymuszamy biały kolor, bo tło nagłówka jest zawsze ciemne */
        color: #ffffff; 
        border-color: rgba(255, 255, 255, 0.6);
        
        position: absolute;
        top: 1.5rem;
        right: 1.5rem;
        z-index: 20;
    }

    /* Efekt po najechaniu w nagłówku */
    .header .theme-toggle-btn:hover {
        background: rgba(255, 255, 255, 0.15); /* Delikatne białe podświetlenie */
        border-color: #ffffff; /* Pełna biała ramka */
    }

/* --- INFO ALERGENY --- */
    .info-btn {
        position: absolute;
        bottom: 1.9rem;
        right: 1.9rem;
        
        width: 16px;
        height: 16px;
        
        background: transparent;
        border-radius: 50%;
        
        display: flex;
        align-items: center;
        justify-content: center;
        
        cursor: pointer;
        color: var(--text-tertiary);
        transition: all 0.2s ease;
        z-index: 2;
        padding: 0;
    }

    /* Efekt po najechaniu */
    .info-btn:hover {
        background: var(--bg-hover);
        color: var(--text-primary);
        transform: scale(1.1);
    }
    
    .info-btn svg {
        width: 24px;
        height: 24px;
        stroke-width: 1.5;
    }

    .search-container:focus-within {
        transform: translateY(0) !important;
        pointer-events: auto !important;
    }

    /* --- FIX MOBILNY: BLOKADA POZYCJI PODCZAS PISANIA --- */
    .search-container.search-active {
        transform: translateY(0) !important; /* Zawsze widoczny */
        opacity: 1 !important;
        pointer-events: auto !important;
        z-index: 101 !important;
        transition: none !important;
    }

    /* --- FOCUS-VISIBLE (A11Y: nawigacja klawiaturą) --- */
    .category-btn:focus-visible,
    .favorite-btn:focus-visible,
    .filter-chip:focus-visible,
    .favorites-icon-btn:focus-visible,
    .info-btn:focus-visible,
    .photo-btn:focus-visible,
    .theme-toggle-btn:focus-visible,
    .back-btn:focus-visible,
    .btn-secondary:focus-visible,
    .phone-btn:focus-visible,
    .directions-btn:focus-visible,
    .social-link:focus-visible,
    .search-input:focus-visible {
        outline: 2px solid var(--color-primary);
        outline-offset: 2px;
    }

    /* --- ANIMACJA FAVORITE POP --- */
    @keyframes favoritePop {
        0% { transform: scale(1); }
        50% { transform: scale(1.3); }
        100% { transform: scale(1); }
    }
    .favorite-btn.animate-pop {
        animation: favoritePop 0.3s ease;
    }

    /* --- BRAKUJĄCA ANIMACJA slideInRight --- */
    @keyframes slideInRight {
        from { transform: translateX(100%); opacity: 0; }
        to { transform: translateX(0); opacity: 1; }
    }

    /* --- PREFERS-REDUCED-MOTION (A11Y) --- */
    @media (prefers-reduced-motion: reduce) {
        *, *::before, *::after {
            animation-duration: 0.01ms !important;
            animation-iteration-count: 1 !important;
            transition-duration: 0.01ms !important;
            scroll-behavior: auto !important;
        }
    }

/* Confirm modal */
.confirm-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(4px);
}

.confirm-modal {
    background: var(--card-bg, #fff);
    border-radius: 16px;
    padding: 24px;
    max-width: 320px;
    width: 90%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.confirm-modal-message {
    font-size: 1rem;
    margin: 0 0 20px;
    text-align: center;
    color: var(--text-primary, #1a1a1a);
}

.confirm-modal-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.confirm-modal-cancel,
.confirm-modal-confirm {
    flex: 1;
    padding: 10px 16px;
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}

.confirm-modal-cancel {
    background: var(--bg-secondary, #f0f0f0);
    color: var(--text-primary, #1a1a1a);
}

.confirm-modal-confirm {
    background: #e53935;
    color: #fff;
}

.confirm-modal-cancel:active,
.confirm-modal-confirm:active {
    opacity: 0.7;
}

/* --- UPDATE BANNER --- */
.update-banner {
    position: fixed;
    bottom: -60px;
    left: 0;
    right: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 0.875rem 1.5rem;
    background: var(--color-secondary);
    color: #fff;
    font-size: 0.9375rem;
    font-weight: 500;
    transition: bottom 0.3s ease;
}
.update-banner.show { bottom: 0; }
.update-banner button {
    background: #fff;
    color: var(--color-secondary);
    border: none;
    padding: 0.375rem 1rem;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.875rem;
    cursor: pointer;
}