/* style.css */

:root {
    --primary-color: #d32f2f; /* Czerwony pizzerii - używany do akcentów */
    --dark-color: #2b2b2b; /* Ciemny grafit */
    --light-color: #f4f4f4;
    --white: #ffffff;
    --gray-text: #666666;
    --success-color: #4caf50; /* Zielony do ceny */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--light-color);
    color: var(--dark-color);
    line-height: 1.6;
    scroll-behavior: smooth;
}

/* === NAWIGACJA === */
nav {
    background-color: var(--dark-color);
    color: var(--white);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

nav h1 {
    font-size: 1.5rem;
    letter-spacing: 1px;
}

nav ul {
    list-style: none;
    display: flex;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: var(--white);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: var(--primary-color);
}

/* === BOHATER (HERO SECTION) === */
.hero {
    /* Opcjonalnie podmień tło url() na link do zdjęcia frontu Twojej pizzerii */
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('https://via.placeholder.com/1920x600?text=Twoje+Tlo+Pizzerii') center/cover;
    color: var(--white);
    text-align: center;
    padding: 80px 20px;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* === ZAKTUALIZOWANY BOKS CENOWY === */
.price-box {
    background-color: var(--dark-color);
    color: var(--white);
    display: inline-block;
    padding: 25px 50px;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.5);
    margin-bottom: 15px;
    border: 2px solid var(--success-color);
}

.old-price {
    display: block;
    text-decoration: line-through;
    color: #aaaaaa;
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.new-price {
    display: block;
    font-size: 3.5rem;
    font-weight: bold;
    color: var(--success-color);
    line-height: 1.1;
    margin-bottom: 5px;
}

.nego-note {
    display: block;
    font-size: 0.95rem;
    color: #cccccc;
    font-weight: normal;
    font-style: italic;
}

.subtitle {
    font-size: 1rem !important;
    opacity: 0.8;
}

/* === FILTRY KATEGORII === */
.filters {
    text-align: center;
    padding: 25px 20px;
    background-color: var(--white);
    border-bottom: 1px solid #ddd;
    position: sticky;
    top: 60px; /* Zaraz pod nawigacją */
    z-index: 900;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.filter-btn {
    background-color: var(--light-color);
    border: 1px solid #ccc;
    padding: 10px 20px;
    margin: 5px;
    cursor: pointer;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: bold;
    transition: all 0.3s ease;
}

.filter-btn.active, .filter-btn:hover {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

/* === SIATKA PRODUKTÓW === */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    background-color: #eaeaea;
    cursor: pointer; /* Łapka sugerująca możliwość powiększenia */
    transition: opacity 0.3s;
}

.card img:hover {
    opacity: 0.85; /* Efekt najechania na zdjęcie */
}

.card-content {
    padding: 20px;
}

.card-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--dark-color);
    min-height: 55px;
}

.card-desc {
    font-size: 0.95rem;
    color: var(--gray-text);
    margin-bottom: 15px;
    min-height: 70px; 
}

.card-price {
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--primary-color);
    border-top: 1px solid #eee;
    padding-top: 15px;
    text-align: right;
}

/* === SEKCJA KONTAKTOWA === */
.info-section {
    background-color: var(--dark-color);
    color: var(--white);
    padding: 60px 20px;
    text-align: center;
}

.info-container {
    max-width: 800px;
    margin: 0 auto;
}

.info-container h3 {
    font-size: 2rem;
    margin-bottom: 25px;
    color: var(--primary-color);
}

.info-container p {
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.contact-btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 15px 40px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.3rem;
    border-radius: 5px;
    margin-top: 25px;
    transition: background 0.3s;
}

.contact-btn:hover {
    background-color: #b71c1c;
}

/* === MODAL (Powiększanie zdjęć / Lightbox) === */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 5vh;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 85vh;
    object-fit: contain; /* Gwarantuje oryginalne proporcje bez ucinania */
    border-radius: 4px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.5);
    animation: zoom 0.3s ease;
}

@keyframes zoom {
    from {transform: scale(0.9); opacity: 0;}
    to {transform: scale(1); opacity: 1;}
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #f1f1f1;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close-modal:hover,
.close-modal:focus {
    color: var(--primary-color);
    text-decoration: none;
}

/* === WERSJA MOBILNA === */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        text-align: center;
    }
    nav ul {
        margin-top: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    nav ul li {
        margin: 5px 10px;
    }
    .hero h2 {
        font-size: 2.2rem;
    }
    .price-box {
        padding: 20px;
    }
    .new-price {
        font-size: 2.5rem;
    }
    .filters {
        top: 0;
        padding: 15px 10px;
    }
    .filter-btn {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
    .close-modal {
        top: 10px;
        right: 20px;
        font-size: 40px;
    }
}