* {
    box-sizing: border-box;
}

/* --- IMPORT CZCIONEK --- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,500;1,500&family=Poppins:wght@300;400;600&display=swap');

/* --- GŁÓWNE USTAWIENIA STRONY --- */
html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif !important;
    font-size: 110%;
    background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.7)), url('pizza3.jpg');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    color: white;
    
    /* TO JEST KLUCZ: Ustawia stronę jako pionową kolumnę na min. 100% wysokości ekranu */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden; 
}

iframe, img {
    max-width: 100%;
}

/* --- NAWIGACJA (GŁÓWNY PASEK) --- */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    padding: 15px 20px;
    backdrop-filter: blur(5px);
}

.nav-left {
    display: flex;
    flex-direction: row !important;
    align-items: center;
    gap: 25px;
}

.nav-left a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-family: 'Playfair Display', serif;
    transition: 0.3s;
}

.nav-left a:hover {
    color: #ff4d4d;
}

.dropdown {
    position: relative;
    display: inline-block !important; 
    margin: 0 !important;
}

.dropdown-content {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.95);
    min-width: 180px;
    display: none;
    flex-direction: column;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    margin-top: 15px;
}

.dropdown-content a {
    padding: 12px;
    text-align: center;
    display: block;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.dropdown-content a:hover {
    background: #ff4d4d;
    color: white;
}

.dropdown:hover .dropdown-content {
    display: flex;
}

.nav-socials {
    display: flex;
    flex-direction: row !important;
    align-items: center;
    gap: 15px;
}

.nav-social-btn {
    text-decoration: none !important;
    color: white !important;
    font-weight: 600 !important;
    padding: 8px 20px !important;
    border-radius: 20px !important;
    font-size: 0.9em !important;
    transition: transform 0.2s ease;
    display: inline-block !important;
    font-family: 'Poppins', sans-serif !important;
}

.nav-social-btn:hover {
    transform: scale(1.1);
}

.nav-fb { background-color: #1877F2 !important; border: none !important; }
.nav-ig { background: linear-gradient(45deg, #f09433, #dc2743, #bc1888) !important; border: none !important; }

/* --- WIELKI TYTUŁ STRONY GŁÓWNEJ (HERO) --- */
.hero {
    height: 60vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin-top: 80px; 
}

.hero h1 {
    font-size: 6em;
    margin: 0;
    color: #fff;
    text-shadow: 4px 4px 15px rgba(0,0,0,0.9); 
}

/* --- WSPÓLNE KONTENERY (DLA INDEX I MENU) --- */
.container, .menu, .order, .end {
    max-width: 1200px;
    margin: auto;
    text-align: center;
    padding: 60px 20px;
}

.container {
    padding-top: 140px; 
}

h1 {
    font-size: 48px;
    margin-bottom: 30px;
}

h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: #ff4d4d;
}

/* --- KAFELKI MENU --- */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 20px;
}

.card {
    background-color: rgba(0, 114, 40, 0.1);
    padding: 30px;
    border-radius: 40px;
    backdrop-filter: blur(10px);
    transition: 0.3s;
    box-shadow: 10px 5px 15px rgba(0,0,0,0.5);
}

.card:hover {
    transform: translateY(-5px) scale(1.03);
    background: rgba(255,255,255,0.15);
}

/* --- FORMULARZ ZAMÓWIENIA --- */
form {
    margin-top: 30px;
}

input, select {
    width: 250px;
    padding: 12px;
    margin: 10px;
    border: none;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
}

button {
    padding: 12px 25px;
    border: none;
    border-radius: 10px;
    background: #ff4d4d;
    color: white;
    cursor: pointer;
    transition: 0.3s;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1.1em;
}

button:hover {
    background: #ff1a1a;
}

#sekcja-pizza label, #order-form label {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    text-align: left !important;
    margin-bottom: 12px !important;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9em;
}

#sekcja-pizza input[type="checkbox"], #order-form input[type="radio"] {
    width: 22px !important;
    height: 22px !important;
    margin: 0 12px 0 0 !important;
    padding: 0 !important;
    flex-shrink: 0 !important;
    cursor: pointer !important;
}

/* --- JEDYNA I POPRAWNA STOPKA (FOOTER) --- */
footer {
    margin-top: auto; /* Dopycha stopkę na dół strony, jeśli treści jest mało */
    width: 100%;
    background: #000;
    text-align: center;
    padding: 25px 20px;
    border-top: 1px solid #444;
    z-index: 10;
}

footer p {
    margin: 0;
    font-size: 1rem;
    color: #ccc;
    letter-spacing: 1px;
}

/* --- PŁYWAJĄCY PRZYCISK ZAMÓWIENIA (STICKY CART) --- */
.floating-cart-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #ff4d4d;
    color: white;
    text-decoration: none;
    padding: 15px 25px;
    border-radius: 50px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1.2em;
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
    z-index: 1000;
    transition: transform 0.3s ease, background 0.3s ease;
}

.floating-cart-btn:hover {
    transform: scale(1.1) translateY(-5px); 
    background: #ff1a1a;
}

/* --- BANER: STWÓRZ WŁASNĄ PIZZĘ --- */
.wlasna-pizza-banner {
    background: linear-gradient(135deg, #ff9800, #ff4d4d);
    padding: 40px 20px;
    border-radius: 20px;
    text-align: center;
    margin: 0 auto 50px;
    max-width: 900px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.4);
    color: white;
}

.wlasna-pizza-banner h3 {
    font-size: 2.5em;
    margin: 0 0 10px;
    font-family: 'Playfair Display', serif;
}

.wlasna-btn {
    background: white !important;
    color: #ff4d4d !important;
    font-size: 1.2em !important;
    padding: 15px 40px !important;
    border-radius: 50px !important;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    margin-top: 20px;
}

.wlasna-btn:hover {
    transform: scale(1.05);
    background: #ffe6e6 !important;
}

/* Wnętrze okienka z własną pizzą */
#sekcja-wlasna label {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    text-align: left !important;
    margin-bottom: 12px !important;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9em;
}

#sekcja-wlasna input[type="checkbox"], #sekcja-wlasna input[type="radio"] {
    width: 22px !important;
    height: 22px !important;
    margin: 0 12px 0 0 !important;
    flex-shrink: 0 !important;
    cursor: pointer !important;
}

/* --- DOPIESZCZENIE STYLU MODALA (OKIENKA) --- */
#pizza-modal > div {
    font-size: 1rem !important; 
    line-height: 1.5;
    font-family: 'Poppins', sans-serif !important; 
}

#modal-nazwa-pizzy {
    font-size: 1.8em !important;
    margin-bottom: 5px !important;
    color: #ffc107 !important;
}

#pizza-modal p, #pizza-modal span {
    font-size: 1rem !important;
    margin: 5px 0 !important;
}

#sekcja-wlasna label, #sekcja-pizza label, #order-form label {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    text-align: left !important;
    margin-bottom: 12px !important;
    font-size: 0.9em !important;
}

#sekcja-wlasna p {
    font-size: 1rem !important;
    color: #ffc107 !important;
    margin-bottom: 5px !important;
    font-weight: 600;
}

#pizza-modal input[type="checkbox"], #pizza-modal input[type="radio"] {
    width: 22px !important;
    height: 22px !important;
    margin: 0 12px 0 0 !important;
    flex-shrink: 0 !important;
    cursor: pointer !important;
}

/* --- EFEKT POWIĘKSZANIA KONTAKTU --- */
.end > a {
    display: inline-block;
    transition: transform 0.3s ease;
}

.end > a:hover {
    transform: scale(1.15); 
}

/* --- RESPONSOWNOŚĆ (TELEFONY I MAŁE EKRANY) --- */
@media (max-width: 768px) {
    .floating-cart-btn {
        bottom: 20px;
        right: 20px;
        font-size: 1.1em;
        padding: 12px 20px;
    }
    body, .container, .menu, .order, .end { 
        font-size: 100% !important; 
    }
    
    .top-nav {
        flex-direction: column !important;
        gap: 10px !important;
        padding: 10px 5px !important;
    }
    
    .nav-left { gap: 15px !important; }
    .nav-socials { gap: 10px !important; }
    
    .nav-social-btn {
        padding: 6px 12px !important;
        font-size: 0.85em !important;
    }

    .hero { 
        margin-top: 100px; 
        height: 35vh; 
    }
    .hero h1 { font-size: 3.5em !important; }

    .container { padding-top: 140px !important; }

    h1 { font-size: 32px !important; margin-bottom: 20px !important; }
    h2 { font-size: 26px !important; margin-top: 30px !important; }

    .menu-grid { 
        grid-template-columns: 1fr !important; 
        gap: 20px !important;
    }

    .card {
        padding: 20px !important;
        border-radius: 20px !important;
    }

    .dodaj-btn {
        width: 100% !important; 
        margin-top: 15px !important;
        padding: 15px !important;
        font-size: 16px !important;
    }

    input, select { 
        width: 100% !important; 
        margin: 10px 0 !important; 
    }
}