/* Reset i podstawy */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Open Sans', sans-serif; /* Prosta czcionka tekstu */
    line-height: 1.6;
    color: #2d3436; /* Ciemny grafit - bardzo czytelny */
    background-color: #ffffff; /* Czysta biel zamiast beżu */
}

/* Nagłówki - zmiana na nowoczesny Sans-Serif */
h1, h2, h3, .logo {
    font-family: 'Montserrat', sans-serif; /* Nowoczesna, gruba czcionka */
    color: #1a1a1a; /* Prawie czarny */
    font-weight: 700;
    text-transform: uppercase; /* Bardziej nowoczesny wygląd */
    letter-spacing: -0.5px;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

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

/* Navbar */
.navbar {
    background: #ffffff;
    /* Mocny cień oddzielający menu */
    box-shadow: 0 4px 6px rgba(0,0,0,0.1); 
    border-bottom: 4px solid #d35400; /* Mocny akcent na dole */
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

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

.logo { 
    font-size: 1.6rem; 
    font-weight: 800; 
    color: #d35400; /* Kolor logo */
}

.nav-links { display: flex; gap: 25px; }
.nav-links a { 
    font-weight: 600; 
    font-size: 0.95rem;
    color: #636e72;
    text-transform: uppercase;
    transition: color 0.3s; 
}
.nav-links a:hover { color: #d35400; }
.active-link { color: #d35400 !important; }

.cta-btn {
    background: #d35400; /* Mocny, nasycony kolor */
    color: white !important;
    padding: 10px 20px;
    border-radius: 4px; /* Mniejsze zaokrąglenia = nowocześniej */
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(211, 84, 0, 0.3);
    transition: transform 0.2s;
}
.cta-btn:hover {
    background: #ba4a00;
    transform: translateY(-2px);
}

/* Burger Menu (Ikona) */
.burger { display: none; cursor: pointer; }
.burger div { width: 25px; height: 3px; background-color: #2d3436; margin: 5px; }

/* Hero Section */
.hero {
    /* Upewnij się, że masz plik tlo_chleb.webp */
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('Szafki_z_chlebami.webp'); 
    background-size: cover;
    background-position: center;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero h1 { 
    font-size: 3.5rem; /* Większy nagłówek */
    color: white; 
    margin-bottom: 1.5rem; 
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 1.2rem;
    color: #ecf0f1;
    max-width: 700px;
    margin: 0 auto;
}

.btn-main {
    display: inline-block;
    background: #d35400;
    color: white;
    padding: 15px 35px;
    border-radius: 4px; /* Bardziej kanciasty przycisk */
    margin-top: 30px;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    transition: all 0.3s;
    border: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}
.btn-main:hover { 
    background: #e67e22; 
    transform: scale(1.05);
}

/* Sekcje ogólne */
.section { padding: 80px 0; }

/* Tło alternatywne - Chłodny szary zamiast beżu */
.bg-light { 
    background-color: #f4f6f7; 
    border-top: 1px solid #dfe6e9;
    border-bottom: 1px solid #dfe6e9;
}

h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: #2d3436;
    position: relative;
    display: inline-block;
    width: 100%;
}

/* Ozdobna linia pod nagłówkiem */
h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: #d35400;
    margin: 15px auto 0;
}

/* Grid O Nas */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.05rem;
    color: #636e72;
}

.about-img img { 
    width: 100%; 
    border-radius: 4px; 
    box-shadow: 20px 20px 0px #d35400; /* Nowoczesny, płaski cień */
}

/* Produkty i Oferta (Grid) */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}
.product-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    /* Czysty cień */
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    text-align: center;
    padding-bottom: 25px;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #eee;
}
.product-card:hover { 
    transform: translateY(-10px); 
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
    border-color: #d35400;
}
.product-card img { width: 100%; height: 240px; object-fit: cover; }
.product-card h3 { 
    margin: 20px 0 10px; 
    color: #2d3436;
    font-size: 1.4rem;
}
.product-card p { padding: 0 25px; font-size: 0.95rem; color: #636e72; }

/* --- SEKCJA AKTUALNOŚCI (FACEBOOK) --- */
.fb-centered-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.section-title { font-size: 2.5rem; color: #2d3436; margin-bottom: 10px; }
.section-subtitle { margin-bottom: 40px; color: #636e72; font-size: 1.1rem;}

/* Kontener wtyczki */
.fb-plugin-container {
    width: 500px !important;
    max-width: 95vw;
    margin: 0 auto;
    display: block;
    min-height: 800px;
}

.fb-page-wrapper {
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 1px solid #eee;
}

.fb-page, .fb-page span, .fb-page iframe {
    width: 500px !important;
    max-width: 100% !important;
    height: 800px !important;
    min-height: 800px !important;
}

/* --- STYLE DLA PODSTRONY WYPIEKI --- */

/* Nagłówek podstrony - Ciemny, nowoczesny */
.page-header {
    background: #2d3436; /* Ciemny grafit */
    color: white;
    padding: 50px 0;
    text-align: center;
    margin-bottom: 50px;
}

.page-header h1 {
    font-size: 2.8rem;
    margin-bottom: 10px;
    color: white;
}

.page-header p {
    color: #bdc3c7; /* Jasny szary */
    font-size: 1.1rem;
    font-weight: 400;
}

/* Kontrolki filtrowania */
.filter-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.filter-btn {
    background: white;
    border: 2px solid #d35400;
    color: #d35400;
    padding: 12px 35px;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 4px; /* Kanciaste przyciski */
    transition: 0.3s;
    font-family: 'Montserrat', sans-serif;
}
.filter-btn.active, .filter-btn:hover {
    background: #d35400;
    color: white;
    box-shadow: 0 5px 15px rgba(211, 84, 0, 0.3);
}

/* Ukrywanie/Pokazywanie kategorii */
.products-category { display: none; animation: fadeIn 0.4s ease-out; }
.products-category.active-category { display: block; }

.category-title {
    text-align: center;
    margin-bottom: 40px;
    color: #2d3436;
    font-size: 2rem;
    border-bottom: none;
}
/* Linia pod tytułem kategorii */
.category-title::after {
    background: #b2bec3; /* Szara linia */
}

.weight { 
    font-weight: 700; 
    color: #d35400; /* Pomarańczowy akcent */
    margin-top: 10px; 
    display: block;
    text-transform: uppercase;
    font-size: 0.9rem;
}
.desc { 
    font-size: 0.9rem; 
    color: #636e72; 
    margin-bottom: 5px; 
    font-style: normal; /* Usunięto kursywę dla nowoczesności */
}

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

/* --- Karuzela zdjęć produktu --- */
.carousel {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: #f4f6f7;
}
.carousel-track {
    display: flex;
    height: 100%;
    transition: transform 0.45s ease;
}
.carousel-track img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    flex-shrink: 0;
}
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(26,26,26,0.45);
    color: #fff;
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 2;
}
.carousel-arrow:hover { background: #d35400; }
.carousel-arrow.prev { left: 10px; }
.carousel-arrow.next { right: 10px; }

.carousel-dots {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 6px;
    z-index: 2;
}
.carousel-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.6);
    border: 1px solid rgba(0,0,0,0.15);
    cursor: pointer;
    transition: background 0.2s;
}
.carousel-dots .dot.active { background: #d35400; border-color: #d35400; }

/* --- Sekcja: Adres sklepu --- */
.store-location {
    background: #fff;
}
.store-location-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}
.store-address-box h3 {
    color: #d35400;
    font-size: 1.3rem;
    margin-bottom: 15px;
}
.store-address-box p {
    color: #636e72;
    margin-bottom: 12px;
    font-size: 1.05rem;
}
.store-address-box .placeholder-note {
    display: inline-block;
    margin-top: 15px;
    background: #fdf1e7;
    border: 1px dashed #d35400;
    color: #d35400;
    padding: 8px 14px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
}
.store-map {
    width: 100%;
    height: 320px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 1px solid #eee;
}
.store-map iframe { width: 100%; height: 100%; border: 0; }

@media (max-width: 768px) {
    .store-location-grid { grid-template-columns: 1fr; }
    .store-map { height: 250px; }
}

/* --- Blog: pusty stan (brak artykułów) --- */
.blog-empty-state {
    max-width: 600px;
    margin: 20px auto;
    text-align: center;
    padding: 60px 30px;
    background: #fdfaf5;
    border: 1px dashed #d35400;
    border-radius: 10px;
}
.blog-empty-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}
.blog-empty-state h2 {
    color: #2d3436;
    font-size: 1.5rem;
    margin-bottom: 15px;
}
.blog-empty-state p {
    color: #636e72;
    margin-bottom: 25px;
    line-height: 1.6;
}
.cta-btn-secondary {
    display: inline-block;
    padding: 12px 28px;
    background: transparent;
    color: #d35400;
    border: 2px solid #d35400;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
}
.cta-btn-secondary:hover {
    background: #d35400;
    color: #fff;
}

/* --- Karuzela z jednym zdjęciem: brak strzałek/kropek --- */
.carousel.single-image .carousel-track img {
    width: 100%;
}

/* --- Skład i alergeny --- */
.ingredients {
    font-size: 0.88rem;
    color: #555;
    line-height: 1.5;
    margin: 10px 0 8px;
}
.ingredients strong {
    color: #2d3436;
}
.allergens {
    font-size: 0.85rem;
    margin-bottom: 10px;
}
.allergens summary {
    cursor: pointer;
    color: #2d3436;
    font-weight: 600;
    list-style: none;
}
.allergens summary::-webkit-details-marker { display: none; }
.allergens summary::marker { content: ""; }
.allergens summary .toggle-label {
    color: #d35400;
    font-weight: 600;
    text-decoration: underline;
}
.allergens[open] summary .toggle-label {
    text-decoration: none;
}
.allergens-list {
    margin-top: 6px;
    color: #555;
    line-height: 1.5;
}

/* Kursor sugerujący powiększenie po kliknięciu */
.carousel-track img {
    cursor: zoom-in;
}

/* --- Lightbox: powiększenie zdjęcia na pełny ekran --- */
.lightbox-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(20, 15, 10, 0.92);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}
.lightbox-overlay.active {
    display: flex;
}
.lightbox-img {
    max-width: 90vw;
    max-height: 88vh;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    cursor: default;
}
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    background: none;
    border: none;
    color: #fff;
    font-size: 2.5rem;
    line-height: 1;
    cursor: pointer;
    padding: 5px 10px;
}
.lightbox-close:hover { color: #d35400; }
.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.15);
    color: #fff;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.4rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.lightbox-arrow:hover { background: #d35400; }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

@media (max-width: 768px) {
    .lightbox-arrow { width: 40px; height: 40px; font-size: 1.1rem; }
    .lightbox-prev { left: 8px; }
    .lightbox-next { right: 8px; }
    .lightbox-close { top: 10px; right: 15px; font-size: 2rem; }
}

/* Footer */
footer {
    background: #1e272e; /* Ciemny granat/szary */
    color: #ecf0f1;
    padding: 70px 0 20px;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
    text-align: center;
}
.footer-hours h3, .footer-info h3 { 
    color: #d35400; 
    margin-bottom: 20px; 
    font-size: 1.4rem;
    text-transform: uppercase;
}
.footer-info p, .footer-hours p {
    color: #bdc3c7;
    margin-bottom: 10px;
}
.footer-placeholder-note {
    color: #d35400 !important;
    font-size: 0.8rem;
    font-style: italic;
}
.copyright { 
    text-align: center; 
    border-top: 1px solid #34495e; 
    padding-top: 20px; 
    font-size: 0.85rem; 
    color: #7f8c8d;
}

/* Responsywność */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-links.nav-active {
        display: flex; flex-direction: column;
        position: absolute; right: 0; top: 70px;
        background: white; width: 100%; padding: 20px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        border-bottom: 4px solid #d35400;
    }
    .burger { display: block; }
    .about-grid, .footer-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 2.5rem; }
    .about-img img { box-shadow: none; margin-top: 30px;}
}