:root {
    --primary-orange: #a11116;
    --primary-orange-hover: #a40b0b;
    --dark-bg: #111827;
    --dark-header: #1f2937;
    --light-bg: #f9fafb;
    --border-color: #e5e7eb;
    --text-main: #1f2937;
    --text-muted: #6b7280;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Google Sans", "Roboto", 'Segoe UI', sans-serif !important;
    font-optical-sizing: auto;

}
/* Nowoczesny, okrągły i wyraźny przycisk zamykania (sidebar koszyka i modale) */
.btn-close-sidebar,
.btn-close-modal {
    background: #f3f4f6 !important;
    color: #4b5563 !important;
    border: 1px solid #e5e7eb !important;
    width: 38px;
    height: 38px;
    border-radius: 50% !important; /* Idealne koło */
    font-size: 1.4rem !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0 !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    outline: none;
}

/* Efekt po najechaniu myszką (czerwony akcent) */
.btn-close-sidebar:hover,
.btn-close-modal:hover {
    transform: scale(1.08);
    box-shadow: 0 4px 6px rgba(185, 28, 28, 0.15);
}

/* Płynne przewijanie strony */
html {
    scroll-behavior: smooth;
}

/* Przyklejone menu kategorii na górze ekranu */
.sticky-nav-container {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: var(--light-bg, #f9fafb);
    padding: 15px 0;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px -6px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid var(--border-color, #e5e7eb);
}

/* Odsunięcie sekcji, aby przyklejone menu nie zasłaniało tytułu kategorii */
.category-section {
    scroll-margin-top: 100px;
    margin-bottom: 60px;
}

/* Stylowanie Modala Koszyka */
.cart-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(17, 24, 39, 0.7);
    backdrop-filter: blur(4px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1050;
}

.cart-modal {
    background: #fdfaf6;
    /* Lekki kremowy kolor tła ze screena */
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.cart-modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid #e5e7eb;
}

.cart-modal-title {
    font-size: 1.25rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
}

.cart-modal-subtitle {
    font-size: 0.85rem;
    color: #6b7280;
    display: none;
}

/* Zgodnie ze screenem nie ma tego tekstu pod tytułem */

.btn-close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    width: 32px;
    height: 32px;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #111;
}

.cart-modal-body {
    padding: 0 24px 24px;
    overflow-y: auto;
    flex-grow: 1;
}

.option-group {
    margin-top: 24px;
}

.option-group-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 12px;
}

.option-group-title {
    font-weight: 800;
    font-size: 1.05rem;
    color: #000;
}

.option-group-subtitle {
    font-size: 0.8rem;
    color: #666;
    margin-top: 2px;
}

/* Kolory akcentu zmienione na czerwony wg życzenia */
.badge-required {
    background: #fef2f2;
    color: #b91c1c;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 12px;
    border: 1px solid #fecaca;
}

.option-item {
    border: 1px solid transparent;
    border-radius: 12px;
    padding: 10px 0;
    margin-bottom: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s;
}

.option-label {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-grow: 1;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    color: #111;
}

.option-price {
    color: #111;
    font-size: 0.95rem;
    font-weight: 500;
}

.option-label input[type="radio"],
.option-label input[type="checkbox"] {
    display: none;
}

.custom-radio {
    width: 20px;
    height: 20px;
    border: 2px solid #9ca3af;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}

.option-label input[type="radio"]:checked+.custom-radio {
    border-color: #b91c1c;
}

.option-label input[type="radio"]:checked+.custom-radio::after {
    content: '';
    width: 10px;
    height: 10px;
    background: #b91c1c;
    border-radius: 50%;
}

.custom-checkbox {
    width: 20px;
    height: 20px;
    border: 2px solid #9ca3af;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}

.option-item.selected .custom-checkbox {
    border-color: #b91c1c;
    background-color: #b91c1c;
}

.option-item.selected .custom-checkbox::after {
    content: '✓';
    color: white;
    font-size: 14px;
    font-weight: bold;
}

.qty-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.qty-btn {
    background: #e5e5e0;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
}

.qty-val {
    font-weight: 700;
    font-size: 0.95rem;
    width: 15px;
    text-align: center;
}

.cart-modal-footer {
    padding: 16px 24px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: 16px;
    align-items: center;
    background: #fdfaf6;
    border-radius: 0 0 16px 16px;
}

.main-qty-controls {
    display: flex;
    align-items: center;
    background: #e5e5e0;
    border-radius: 8px;
    padding: 4px;
}

.main-qty-btn {
    background: transparent;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.2rem;
    cursor: pointer;
    color: #111;
}

.main-qty-val {
    width: 40px;
    text-align: center;
    font-weight: 700;
    font-size: 1.1rem;
    color: #111;
}

.btn-submit-cart {
    flex-grow: 1;
    background: #b91c1c;
    color: white;
    border: none;
    padding: 16px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}


body {
    background-color: var(--light-bg);
    color: var(--text-main);
}

a {
    text-decoration: none;
}

ul {
    list-style: none;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================
           TOP BAR (Czarny pasek na górze)
           ========================================== */
.top-bar {
    background-color: #000;
    color: var(--white);
    font-size: 0.8rem;
    padding: 8px 0;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.top-bar-left span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.top-bar-left .status {
    color: #10b981;
    font-weight: bold;
}

.top-bar-right {
    display: flex;
    gap: 20px;
}

.top-bar-right .highlight {
    color: white;
    font-weight: bold;
}

/* ==========================================
           HEADER (Logo, Menu, Koszyk)
           ========================================== */
.main-header {
    background-color: var(--white);
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    background: var(--primary-orange);
    color: white;
    font-weight: bold;
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.logo-text h1 {
    font-size: 1.2rem;
    font-weight: 900;
    letter-spacing: -0.5px;
    margin-bottom: 2px;
}

.logo-text span {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.header-nav {
    background-color: var(--light-bg);
    border-radius: 30px;
    padding: 5px;
    display: flex;
    gap: 5px;
    border: 1px solid var(--border-color);
}

.header-nav a {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-main);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-nav a.active {
    background-color: var(--dark-header);
    color: var(--white);
}

.cart-btn {
    background-color: var(--primary-orange);
    color: var(--white);
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

/* ==========================================
           SUB HEADER (Lokalizacja i Typ Odbioru)
           ========================================== */
.sub-header {
    background: var(--white);
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.sub-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.breadcrumbs {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.breadcrumbs strong {
    color: var(--text-main);
}

.order-settings {
    display: flex;
    align-items: center;
    background: var(--light-bg);
    border-radius: 30px;
    border: 1px solid var(--border-color);
    padding: 4px;
}

.order-type-btn {
    padding: 8px 16px;
    border-radius: 20px;
    border: none;
    background: transparent;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
}

.order-type-btn.active {
    background: var(--primary-orange);
    color: var(--white);
}

.address-badge {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 500;
}

.payment-info {
    font-size: 0.85rem;
    color: var(--primary-orange);
    background: white;
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid #ffe4cc;
}

/* ==========================================
           NAWIGACJA KATEGORII
           ========================================== */
.category-nav {
    padding: 20px 0;
    display: flex;
    gap: 15px;
    overflow-x: auto;
    scrollbar-width: none;
    /* Firefox */
}

.category-nav::-webkit-scrollbar {
    display: none;
}

/* Chrome */
.category-pill {
    background: var(--white);
    border: 1px solid var(--border-color);
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.category-pill:hover {
    border-color: var(--primary-orange);
}

.category-pill.active {
    background: var(--dark-header);
    color: var(--white);
    border-color: var(--dark-header);
}

/* ==========================================
           GŁÓWNY BANER KATEGORII
           ========================================== */
.category-banner {
    background: var(--white);
    border-radius: 16px;
    padding: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.banner-text .badge {
    display: inline-block;
    background: #fff5eb;
    color: var(--primary-orange);
    font-size: 0.8rem;
    font-weight: bold;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 15px;
    border: 1px solid #ffe4cc;
}

.banner-text h2 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--dark-bg);
}

.banner-text p {
    color: var(--text-muted);
    max-width: 600px;
    line-height: 1.5;
}

.banner-img {
    max-width: 360px;
}

.banner-img img {
    border-radius: 12px;
    max-width: 360px;
}

/* ==========================================
           SIATKA PRODUKTÓW
           ========================================== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.product-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    position: relative;
}

.product-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary-orange);
    color: white;
    font-size: 0.7rem;
    font-weight: bold;
    padding: 4px 10px;
    border-radius: 12px;
}

.product-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--dark-bg);
}

.product-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.4;
    flex-grow: 1;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-price {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--dark-bg);
}

.btn-add {
    background: var(--primary-orange);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: background 0.2s;
}

.btn-add:hover {
    background: var(--primary-orange-hover);
}

/* ==========================================
           INFO BOX (Na dole strony)
           ========================================== */
.info-box {
    background: #fff5eb;
    border: 1px solid #ffe4cc;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 40px;
}

.info-box-icon {
    color: var(--primary-orange);
    font-size: 1.5rem;
}

.info-box-text strong {
    display: block;
    margin-bottom: 5px;
    color: var(--dark-bg);
}

.info-box-text p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ==========================================
           STOPKA (Footer)
           ========================================== */
.site-footer {
    background-color: var(--dark-bg);
    color: #d1d5db;
    padding: 60px 0 20px;
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 2fr 2fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.footer-logo-icon {
    background: var(--primary-orange);
    color: white;
    font-weight: bold;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
}

.footer-logo-text {
    color: white;
    font-weight: 800;
    font-size: 1.2rem;
}

.footer-col h4 {
    color: white;
    font-size: 1rem;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.footer-col ul li {
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
}

.footer-col a {
    color: #d1d5db;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: var(--primary-orange);
}

.footer-highlight-box {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-highlight-box p {
    color: var(--primary-orange);
    font-size: 0.85rem;
    font-weight: bold;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #9ca3af;
}

/* Responsywność dla mniejszych ekranów */
@media (max-width: 992px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: 1fr;
    }

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

    .category-banner {
        flex-direction: column;
        text-align: center;
    }

    .banner-img {
        margin-top: 20px;
    }

    .top-bar {
        display: none;
    }
}

/* ========================================================================= */
/* Polaczone z theme1.css (audyt wydajnosci - mniej blokujacych requestow CSS) */
/* ========================================================================= */

html {
    scroll-behavior: smooth;
    background-color: #f9fafb;
}

body {
    background-color: #f9fafb;
    margin: 0;
    padding: 0;
    font-family: sans-serif;
}

.main-header {
    background: #fff;
    padding: 15px 0;
    border-bottom: 1px solid #e5e7eb;
}

.sticky-nav-container {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: #f9fafb;
    padding: 15px 0;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px -6px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid #e5e7eb;
}

.category-section {
    scroll-margin-top: 100px;
    margin-bottom: 60px;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(17, 24, 39, 0.7);
    backdrop-filter: blur(4px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1050;
}

.custom-modal {
    background: #fdfaf6;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    /* overflow: hidden tutaj (nie na .modal-header) jest to, co daje zdjęciu
       produktu w nagłówku TYLKO górne zaokrąglone rogi - obcina je dokładnie
       do tego samego promienia co cały popup, bo nagłówek siedzi w jego
       górnej krawędzi. */
    overflow: hidden;
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid #e5e7eb;
    position: relative;
}

/* Wysokość nagłówka z tłem-zdjęciem produktu - klasa doklejana przez JS
   (openProductModal w home.php) TYLKO gdy dodawany produkt ma zdjęcie.
   Wcześniej min-height siedziało wprost w .modal-header (albo #productModal
   .modal-header), więc powiększało nagłówek nawet produktom bez zdjęcia
   i "wyciekało" do modala podsumowania zamówienia (checkout). */
.modal-header-img {
    min-height: 250px;
}

/* Zdjęcie produktu (opcjonalne) jako tło nagłówka popupu - pod obrazkiem
   jasna nakładka (::after), żeby nazwa produktu została czytelna niezależnie
   od tego, co jest na zdjęciu. */
.modal-header-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}
.modal-header-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.modal-header-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.55);
}
/* Zapewnia, że przycisk zamykania zawsze zostaje NAD tłem nagłówka */
#productModal .btn-close-modal {
    z-index: 2;
}

.modal-title {
    font-size: 1.3rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
    color: #111;
    position: relative;
    z-index: 1;
}

/* Powiększony tytuł - tylko w modalu produktu (nad zdjęciem w tle). */
#productModal .modal-title {
    font-size: 2rem;
}

.btn-close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    width: 32px;
    height: 32px;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #111;
}

.modal-body {
    padding: 0 24px 24px;
    overflow-y: auto;
    flex-grow: 1;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: 16px;
    align-items: center;
    background: #fdfaf6;
    border-radius: 0 0 16px 16px;
}

.btn-red {
    background: #b91c1c;
    color: white;
    border: none;
    padding: 16px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    width: 100%;
    transition: background 0.2s;
}

.btn-red:hover {
    background: #991b1b;
}

.btn-red:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.option-group {
    margin-top: 24px;
}

.option-group-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 12px;
}

.option-group-title {
    font-weight: 800;
    font-size: 1.05rem;
    color: #000;
}

.option-group-subtitle {
    font-size: 0.8rem;
    color: #666;
    margin-top: 2px;
}

.badge-required {
    background: #fef2f2;
    color: #b91c1c;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 12px;
    border: 1px solid #fecaca;
}

.option-item {
    border: 1px solid transparent;
    border-radius: 12px;
    padding: 10px 0;
    margin-bottom: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s;
}

.option-label {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-grow: 1;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    color: #111;
}

.option-price {
    color: #111;
    font-size: 0.95rem;
    font-weight: 500;
}

.option-label input[type="radio"],
.option-label input[type="checkbox"] {
    display: none;
}

.custom-radio {
    width: 20px;
    height: 20px;
    border: 2px solid #9ca3af;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}

.option-label input[type="radio"]:checked+.custom-radio {
    border-color: #b91c1c;
}

.option-label input[type="radio"]:checked+.custom-radio::after {
    content: '';
    width: 10px;
    height: 10px;
    background: #b91c1c;
    border-radius: 50%;
}

.custom-checkbox {
    width: 20px;
    height: 20px;
    border: 2px solid #9ca3af;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}

.option-item.selected .custom-checkbox {
    border-color: #b91c1c;
    background-color: #b91c1c;
}

.option-item.selected .custom-checkbox::after {
    content: '✓';
    color: white;
    font-size: 14px;
    font-weight: bold;
}

.qty-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.qty-btn {
    background: #e5e5e0;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
}

.qty-val {
    font-weight: 700;
    font-size: 0.95rem;
    width: 15px;
    text-align: center;
}

.main-qty-controls {
    display: flex;
    align-items: center;
    background: #e5e5e0;
    border-radius: 8px;
    padding: 4px;
}

.main-qty-btn {
    background: transparent;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.2rem;
    cursor: pointer;
    color: #111;
}

.main-qty-val {
    width: 40px;
    text-align: center;
    font-weight: 700;
    font-size: 1.1rem;
    color: #111;
}

.cart-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1100;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
}

.cart-sidebar-overlay.open {
    opacity: 1;
    visibility: visible;
}

.cart-sidebar {
    position: fixed;
    top: 0;
    right: -450px;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background: #fdfaf6;
    z-index: 1101;
    display: flex;
    flex-direction: column;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.1);
}

.cart-sidebar.open {
    right: 0;
}

.sidebar-header {
    padding: 20px 24px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
}

.sidebar-header h2 {
    font-size: 1.25rem;
    font-weight: 800;
    margin: 0;
}

.sidebar-body {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px 24px;
}

.cart-item-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 15px;
    margin-bottom: 15px;
    border-bottom: 1px solid #e5e7eb;
}

.cart-item-info {
    flex-grow: 1;
    padding-right: 15px;
}

.cart-item-title {
    font-weight: 700;
    font-size: 1rem;
    color: #111;
    margin-bottom: 4px;
}

.cart-item-options {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.4;
}

.cart-item-price-col {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    min-width: 80px;
}

.cart-item-price {
    font-weight: 700;
    font-size: 1rem;
    color: #111;
    margin-bottom: 10px;
}

.btn-remove-item {
    background: #fef2f2;
    color: #b91c1c;
    border: none;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    font-weight: bold;
}

.empty-cart-msg {
    text-align: center;
    color: #6b7280;
    margin-top: 50px;
    font-size: 1.1rem;
}

.sidebar-footer {
    padding: 20px 24px;
    background: #fff;
    border-top: 1px solid #e5e7eb;
}

.time-picker-box {
    background: #f9fafb;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #e5e7eb;
}

.time-picker-box label {
    display: block;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 8px;
    color: #111;
}

.time-picker-box select {
    width: 100%;
    padding: 10px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 1rem;
    outline: none;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 15px;
    color: #111;
}

.checkout-modal {
    max-width: 600px;
}

.checkout-info-box {
    background: #fff;
    border: 1px solid #e5e7eb;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.checkout-info-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.checkout-info-row:last-child {
    margin-bottom: 0;
}

.checkout-info-label {
    color: #6b7280;
}

.checkout-info-value {
    font-weight: 700;
    color: #111;
    text-align: right;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 6px;
    color: #374151;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s;
}

.form-group input:focus {
    border-color: #b91c1c;
}

.checkout-products-list {
    max-height: 250px;
    overflow-y: auto;
    margin-bottom: 15px;
    border-bottom: 1px dashed #d1d5db;
}

.checkout-product-item {
    display: flex;
    flex-direction: column;
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid #e5e7eb;
}

.checkout-product-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.cpi-title {
    font-weight: 800;
    font-size: 1.05rem;
    color: #111;
}

.cpi-options {
    font-size: 0.85rem;
    color: #4b5563;
    margin-top: 4px;
    line-height: 1.4;
}

.success-icon-box {
    background: #dcfce7;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.success-icon-box svg {
    stroke: #16a34a;
    width: 40px;
    height: 40px;
}

.floating-cart-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #b91c1c;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 12px 24px;
    box-shadow: 0 8px 20px rgba(185, 28, 28, 0.4);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 1040;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.floating-cart-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.floating-cart-btn:hover {
    background: #991b1b;
    transform: translateY(-3px);
}

.f-cart-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.f-cart-title {
    font-size: 0.8rem;
    line-height: 1;
    opacity: 0.9;
    font-weight: bold;
}

.f-cart-price {
    font-size: 1.2rem;
    font-weight: 800;
}

.closed-banner {
    background: #b91c1c;
    color: #fff;
    text-align: center;
    padding: 15px;
    font-weight: bold;
    font-size: 1.05rem;
}

/* STYLE DLA PRZYCISKÓW WARIANTÓW */
.variant-btn {
    width: 100%;
    background: #fff;
    color: #b91c1c;
    border: 2px solid #b91c1c;
    padding: 10px 14px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s;
}

.variant-btn:hover {
    background: #b91c1c;
    color: #fff;
}

.variant-btn .v-name {
    flex-grow: 1;
    text-align: left;
}

.variant-btn .v-price {
    font-weight: 800;
}

/* STYLE DLA PRZYCISKÓW WYBORU FORMY PŁATNOŚCI (podsumowanie zamówienia) */
.payment-method-group {
    display: flex;
    gap: 10px;
}

.payment-method-btn {
    flex: 1;
    background: #fff;
    color: #4b5563;
    border: 2px solid #d1d5db;
    padding: 14px 10px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
}

.payment-method-btn:hover {
    border-color: #9ca3af;
}

/* Celowo ciemniejsza czerwień niż przycisk "Zamawiam" (#b91c1c), żeby zaznaczona
   forma płatności nie wyglądała jak drugi przycisk składania zamówienia */
.payment-method-btn.active {
    background: #7f1d1d;
    border-color: #7f1d1d;
    color: #fff;
}

@media (max-width: 768px) {
    .sub-header {
        display: none !important;
    }

    .main-header .container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 15px;
        padding: 10px 15px;
    }

    .logo-area {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }

    .logo-area img {
        max-width: 150px;
    }

    .logo-text h1 {
        font-size: 1.2rem;
        white-space: normal;
    }

    .cart-btn {
        width: 100%;
        justify-content: center;
        padding: 14px;
    }

    .category-nav {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 10px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .category-nav::-webkit-scrollbar {
        display: none;
    }

    .category-pill {
        flex: 0 0 auto;
    }

    .category-banner {
        flex-direction: column;
        text-align: center;
    }

    .banner-text {
        padding-right: 0;
    }

    .banner-img img {
        width: 100%;
        height: auto;
        max-height: 200px;
        object-fit: cover;
        margin-top: 15px;
    }

    .product-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .custom-modal {
        width: calc(100% - 20px);
        margin: 10px;
        max-height: calc(100vh - 20px);
    }

    .modal-body {
        padding: 0 15px 15px;
    }

    .modal-footer {
        flex-direction: column;
        gap: 10px;
        padding: 15px;
    }

    .main-qty-controls {
        width: 100%;
        justify-content: space-between;
    }

    .btn-red {
        width: 100%;
    }

    .cart-sidebar {
        width: 100%;
        max-width: 100%;
        right: -100%;
    }

    .floating-cart-btn {
        bottom: 20px;
        right: 20px;
        left: 20px;
        justify-content: center;
        border-radius: 12px;
        padding: 16px;
    }
}