:root {

    --shop-green: #2d5a27;

    --shop-accent: #e67e22;

    --shop-light: #f8f9fa;

    --shop-text: #2c3e50;

    --shop-gray: #bdc3c7;

    --header-height: 70px;

}

/* GŁÓWNY KONTENER - FUNDAMENT RESPONSYWNOŚCI */
.container {
    max-width: 1200px; /* Maksymalna szerokość na komputerze */
    margin: 0 auto;    /* Wyśrodkowanie */
    padding: 0 20px;   /* KLUCZOWE: Marginesy boczne na telefonach */
    width: 100%;       /* Zapewnia responsywność */
    box-sizing: border-box; /* Padding nie rozpycha strony na boki */
}

/* Zapobiega poziomemu przesuwaniu się strony (horizontal scroll) */
html, body {
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

*, *:before, *:after {
    box-sizing: inherit;
}



html { scroll-behavior: smooth; scroll-padding-top: var(--header-height); }

body { font-family: 'Poppins', sans-serif; margin: 0; color: var(--shop-text); background-color: #fff; line-height: 1.6; }



/* HEADER */

header { 

    position: fixed; top: 0; left: 0; width: 100%; padding: 1rem 5%; 

    display: flex; justify-content: space-between; align-items: center; 

    z-index: 2000; box-sizing: border-box; transition: 0.4s;

    background: linear-gradient(to bottom, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);

}

header.scrolled { background: white; padding: 0.7rem 5%; box-shadow: 0 2px 15px rgba(0,0,0,0.1); }

header.scrolled .nav-menu a, header.scrolled .nav-phone, header.scrolled .logo-text { color: var(--shop-text); text-shadow: none; }



.logo-text { font-weight: bold; font-size: 1.3rem; color: white; font-family: Montserrat; text-shadow: 0 1px 4px rgba(0,0,0,0.5); }

.nav-menu { display: flex; gap: 20px; align-items: center; }

.nav-menu a { text-decoration: none; color: white; font-weight: 500; font-size: 0.85rem; text-shadow: 0 1px 4px rgba(0,0,0,0.5); transition: 0.3s; }

.nav-cta { background: var(--shop-green); color: white !important; padding: 8px 18px; border-radius: 25px; text-shadow: none !important; }

.nav-phone { text-decoration: none; font-weight: bold; color: white; text-shadow: 0 1px 4px rgba(0,0,0,0.5); }



/* HERO */

.hero { 

    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.3)), url('https://twojogrodnik.olsztyn.pl/wp-content/uploads/2026/01/e2454a6a-7918-4975-bdde-f80f87c44daa.jpg'); 

    background-size: cover; background-position: center; color: white; 

    padding: 110px 5% 50px; text-align: center; 

}

.hero h1 { font-family: 'Montserrat', sans-serif; font-size: 2.2rem; margin: 0 auto; max-width: 900px; text-shadow: 0 2px 10px rgba(0,0,0,0.4); line-height: 1.2; }

.hero p { font-size: 1rem; margin: 15px auto 20px; max-width: 700px; opacity: 0.9; }



/* SEKCJE INFORMACYJNE */

.section-padding { padding: 20px 5%; text-align: center; }

.section-title { color: var(--shop-green); font-family: 'Montserrat', sans-serif; margin-bottom: 10px; font-size: 1.8rem; }

.line { width: 50px; height: 3px; background: var(--shop-accent); margin: 0 auto 30px; }



.grid-info { display: grid; grid-template-columns: repeat(4, 1fr); gap: 25px; max-width: 1200px; margin: 0 auto; }

.info-item { text-align: center; }

.icon-circle { width: 60px; height: 60px; background: var(--shop-light); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 28px; color: var(--shop-green); border: 1px solid #eee; margin: 0 auto 15px; }

.info-item h4 { margin-bottom: 10px; color: var(--shop-green); }

.info-item p { font-size: 0.85rem; color: #666; margin: 0; line-height: 1.5; }



/* SYSTEM FILTRÓW */

.shop-section { background: var(--shop-light); padding: 20px 5%; border-top: 1px solid #eee; }

.filter-group { margin-bottom: 25px; text-align: center; }

.filter-label { display: block; font-size: 0.75rem; font-weight: bold; color: #aaa; text-transform: uppercase; margin-bottom: 10px; letter-spacing: 1px; }

.filter-btn { padding: 8px 22px; margin: 4px; border-radius: 25px; border: 1px solid var(--shop-gray); background: white; cursor: pointer; transition: 0.3s; font-size: 0.85rem; font-weight: 600; }

.filter-btn.active { background: var(--shop-green); color: white; border-color: var(--shop-green); }



/* PRODUKTY - RESPONSIVE GRID */

.product-grid { 

    display: grid; 

    grid-template-columns: repeat(4, 1fr); 

    gap: 20px; 

    max-width: 1400px; 

    margin: 0 auto; 

}



@media (max-width: 1200px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }

@media (max-width: 950px) { 

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

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

    .nav-menu { display: none; }

}

@media (max-width: 600px) { 

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

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

    .hero h1 { font-size: 1.6rem; }

    .section-title { font-size: 1.4rem; }

    .img-container { height: 300px; }

}



.card { background: white; border-radius: 15px; overflow: hidden; border: 1px solid #eee; transition: 0.3s; display: flex; flex-direction: column; }

.img-container { width: 100%; height: 240px; background: #fff; display: flex; align-items: center; justify-content: center; padding: 10px; box-sizing: border-box; }

.card img { max-width: 100%; max-height: 100%; object-fit: contain; }

.card-body { padding: 15px; text-align: center; flex-grow: 1; }

.card-body h3 { font-size: 1rem; margin: 0 0 10px; }

.price { font-size: 1.2rem; font-weight: bold; color: var(--shop-green); display: block; margin: 5px 0; }



.material-dots { display: flex; justify-content: center; gap: 6px; margin-bottom: 12px; }

.dot { width: 14px; height: 14px; border-radius: 50%; border: 1px solid #ddd; }

.dot.beton { background-color: #bdc3c7; }

.dot.drewno { background-color: #a0522d; }

.dot.corten { background-color: #d35400; }



.btn-sm { display: block; padding: 12px; border-radius: 10px; font-weight: bold; cursor: pointer; border: none; width: 100%; text-decoration: none; text-align: center; font-size: 0.9rem; }

.btn-green { background: var(--shop-green); color: white; }

.btn-gray { background: #f8f9fa; color: #666; margin-top: 8px; }



/* DLACZEGO MY */

.grid-why { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 40px; max-width: 1200px; margin: 0 auto; }

.why-item .icon { font-size: 40px; color: var(--shop-green); margin-bottom: 15px; }

.why-item h4 { color: var(--shop-green); margin-bottom: 10px; }

.why-item p { font-size: 0.9rem; color: #666; }



/* NOWOCZESNY FORMULARZ - ZWARTY UKŁAD */

#zamowienie {

    background: #fff;

    border-radius: 30px;

    box-shadow: 0 10px 40px rgba(0,0,0,0.04);

    border: 1px solid #f0f0f0;

    margin-top: 40px !important;

    margin-bottom: 40px !important;

    padding: 40px !important; /* Mniejszy padding wewnętrzny */

}



#zamowienie h2 {

    font-size: 1.5rem;

    margin-bottom: 20px;

    letter-spacing: -0.5px;

}



#zamowienie-form {

    display: grid;

    grid-template-columns: 1fr 1fr; /* Dwie kolumny */

    gap: 15px 25px; /* Kompaktowe odstępy */

}



/* Pola na całą szerokość (Selecty i Wiadomość) */

.full-width {

    grid-column: span 2;

}



#zamowienie-form .form-group {

    margin-bottom: 0; /* Usuwamy marginesy, gap załatwia sprawę */

}



#zamowienie-form label {

    font-size: 0.85rem;

    margin-bottom: 6px;

    color: #444;

}



#zamowienie-form input, 

#zamowienie-form select, 

#zamowienie-form textarea {

    padding: 10px 14px;

    font-size: 0.9rem;

    margin-bottom: 0;

    background: #fdfdfd;

    border: 1px solid #e0e0e0;

    transition: all 0.3s;

}



#zamowienie-form input:focus {

    border-color: var(--shop-green);

    background: #fff;

    outline: none;

}



/* Styl dla sekcji donic wewnątrz formularza */

.donica-grid-compact {

    grid-column: span 2;

    background: #f8faf8;

    padding: 15px;

    border-radius: 12px;

    border: 1px solid #edf2ed;

    display: flex;

    flex-wrap: wrap;

    gap: 15px;

    justify-content: space-between;

}



.donica-grid-compact label {

    margin-bottom: 0 !important;

    font-size: 0.85rem;

    font-weight: 500;

}



/* Responsywność dla formularza */

@media (max-width: 768px) {

    #zamowienie-form {

        grid-template-columns: 1fr;

    }

    .full-width, .donica-grid-compact {

        grid-column: span 1;

    }

    #zamowienie {

        padding: 25px !important;

    }

}

/* MODAL */

.modal { display: none; position: fixed; z-index: 3000; left: 0; top: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.92); overflow-y: auto; }

.modal-content { background: white; margin: 3% auto; padding: 20px; width: 95%; max-width: 650px; border-radius: 25px; position: relative; z-index: 1000;text-align: center; }

.close-modal {

    position: absolute;

    top: 15px;

    right: 20px;

    font-size: 35px;

    font-weight: bold;

    color: #333;

    cursor: pointer;

    z-index: 9999; /* Musi być wyższy niż kontener zdjęć */

    background: rgba(255, 255, 255, 0.9); /* Delikatne tło dla widoczności */

    width: 45px;

    height: 45px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    transition: all 0.3s ease;

    line-height: 1;

}



.close-modal:hover {

    background: rgba(255, 255, 255, 0.9);

    color: #000;

}

.main-modal-img { width: 100%; height: 350px; display: flex; align-items: center; justify-content: center; background: #fff; margin-bottom: 20px; border-radius: 15px; }

.main-modal-img img { max-width: 100%; max-height: 100%; object-fit: contain; }

/* Styl dla miniatur w oknie modalnym */

.thumb-box {

    display: flex;

    justify-content: center;

    gap: 12px;

    margin: 15px 0;

    padding: 5px;

}



.thumb {

    width: 80px;

    height: 80px;

    border: 2px solid #eee;

    border-radius: 8px;

    cursor: pointer;

    overflow: hidden;

    transition: all 0.2s ease;

    background: #fff;

    display: flex;

    align-items: center;

    justify-content: center;

}



.thumb img {

    width: 100%;

    height: 100%;

    object-fit: cover; /* To sprawi, że zdjęcia zawsze wypełnią kwadrat miniatury */

}



.thumb.active {

    border-color: var(--shop-green);

    transform: scale(1.05);

    box-shadow: 0 2px 8px rgba(0,0,0,0.1);

}



footer { background: #2c3e50; color: white; padding: 40px 5% 30px; text-align: center; }

.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 30px; max-width: 1200px; margin: 0 auto 30px; text-align: left; }

/* Styl dla polityki wysuwanej z dołu */

.policy-bottom-sheet {

    position: fixed;

    bottom: -100%; /* Ukryta pod ekranem */

    left: 0;

    width: 100%;

    height: auto;

    max-height: 80vh;

    background: white;

    z-index: 9999;

    transition: bottom 0.5s cubic-bezier(0.25, 1, 0.5, 1);

    box-shadow: 0 -10px 30px rgba(0,0,0,0.2);

    border-radius: 25px 25px 0 0;

    padding: 20px;

    display: block;

}



.policy-bottom-sheet.open {

    bottom: 0; /* Wysunięta */

}



.policy-handle {

    width: 40px;

    height: 5px;

    background: #ccc;

    border-radius: 5px;

    margin: 0 auto 15px auto;

    cursor: pointer;

}



.policy-inner-content {

    max-width: 600px;

    margin: 0 auto;

    position: relative;

    padding-bottom: 20px;

}



.close-policy-btn {

    position: absolute;

    top: -10px;

    right: 0;

    font-size: 28px;

    cursor: pointer;

    color: #999;

}



.policy-text {

    font-size: 0.95rem;

    line-height: 1.6;

    color: #444;

    max-height: 50vh;

    overflow-y: auto;

}



.policy-text p {

    margin-bottom: 15px;

}



/* Opcjonalne: Przyciemnienie tła */

.policy-backdrop {

    position: fixed;

    top: 0; left: 0; width: 100%; height: 100%;

    background: rgba(0,0,0,0.4);

    display: none;

    z-index: 9998;

}

.policy-backdrop.active {

    display: block;

}


/* --- STATYCZNA SEKCJA KORZYŚCI --- */
.strefa-korzysci {
    width: 100%;
    max-width: 1200px; /* Zwiększone, by 5 kart miało oddech */
    margin: 0 auto;
    padding: 60px 20px;
    box-sizing: border-box;
}

.kontener-kategorii {
    display: grid !important;
    /* KLUCZOWA ZMIANA: 5 kolumn w jednym rzędzie */
    grid-template-columns: repeat(5, 1fr) !important; 
    gap: 15px; /* Nieco mniejszy odstęp, by zmieścić wszystko */
    width: 100%;
}

.karta-statyczna {
    background: #fdfdfd;
    border: 1px solid #eee;
    padding: 25px 10px; /* Mniejszy padding boczny */
    border-radius: 20px;
    text-align: center;
    transition: transform 0.3s ease;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.karta-statyczna h4 {
    font-size: 0.95rem; /* Nieco mniejsza czcionka tytułu */
    margin: 10px 0;
    color: var(--shop-green);
}

.karta-statyczna p {
    font-size: 0.8rem; /* Mniejsza czcionka opisu dla lepszego dopasowania */
    line-height: 1.4;
    color: #666;
    margin: 0;
}

.ikona-kat {
    font-size: 24px;
    margin-bottom: 5px;
}

/* --- RESPONSYWNOŚĆ --- */
@media (max-width: 1100px) {
    .kontener-kategorii {
        grid-template-columns: repeat(3, 1fr) !important; /* 3 karty na średnich ekranach */
    }
}

@media (max-width: 768px) {
    .kontener-kategorii {
        grid-template-columns: repeat(2, 1fr) !important; /* 2 karty na tabletach */
    }
}

@media (max-width: 600px) {
    .strefa-korzysci {
        padding: 40px 15px !important; 
    }
    .kontener-kategorii {
        grid-template-columns: 1fr !important; /* 1 karta na telefonach */
        gap: 15px;
    }
    .karta-statyczna {
        padding: 25px 20px;
        max-width: 100%;
    }
    .karta-statyczna h4 { font-size: 1.1rem; }
    .karta-statyczna p { font-size: 0.9rem; }
}
/* Centrowanie widgetu zabezpieczającego na mobile */
.cf-turnstile {
    margin: 0 auto;
    max-width: 100%;
}
/* GŁÓWNA POPRAWKA RESPONSYWNOŚCI FORMULARZA */
@media (max-width: 768px) {
    #zamowienie {
        padding: 20px 15px !important; /* Mniejszy padding, by zyskać miejsce na boki */
        margin: 20px 10px !important;
    }

    #zamowienie-form {
        display: flex !important; /* Przejście z grid na flex dla pewności */
        flex-direction: column;
        gap: 15px;
    }

    .full-width, .donica-grid-compact {
        grid-column: span 1; /* Reset grida */
        width: 100%;
    }

    #zamowienie-form input, 
    #zamowienie-form select, 
    #zamowienie-form textarea {
        width: 100% !important; /* Wymuszenie pełnej szerokości */
        font-size: 16px !important; /* Zapobiega auto-zoomowi na iPhone */
        box-sizing: border-box;
    }

    .donica-grid-compact {
        flex-direction: column; /* Ustawienie opcji donic jedna pod drugą */
        align-items: flex-start;
        gap: 10px;
    }
}

/* --- MOBILNA REWOLUCJA DLA FORMULARZA --- */
@media (max-width: 600px) {
    #zamowienie {
        padding: 25px 15px !important; /* Mniejsze marginesy wewnętrzne */
        margin: 20px auto !important;
        width: 95% !important; /* Formularz nie dotyka krawędzi ekranu */
        box-sizing: border-box;
    }

    /* Rozbijamy grid na jedną kolumnę */
    #zamowienie-form {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
    }

    /* Naprawa rzędu Wymiary/Układ */
    .form-row {
        grid-template-columns: 1fr !important; /* Jedna kolumna na mobile */
    }

    /* Pola email i telefon obok siebie - teraz jedno pod drugim */
    #zamowienie-form .form-group {
        width: 100% !important;
    }

    /* Checkboxy donic - żeby nie wystawały */
    .donica-grid-compact {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: flex-start !important;
        gap: 15px !important;
        padding: 15px !important;
    }

    .donica-grid-compact label {
        font-size: 0.9rem !important;
        width: calc(50% - 10px); /* Dwie opcje w rzędzie na mobile */
    }

    /* Naprawa przycisku - na całą szerokość */
    #zamowienie-form button[type="submit"] {
        grid-column: span 1 !important;
        width: 100% !important;
        padding: 15px !important;
        font-size: 0.9rem !important;
    }
    
    /* Większe pola tekstowe dla palców (UX) */
    input[type="text"], input[type="email"], input[type="tel"], select, textarea {
        font-size: 16px !important; /* Ważne: zapobiega przybliżaniu ekranu w iPhone */
        height: auto !important;
    }
}
/* NAPRAWA POLITYKI PRYWATNOŚCI NA MOBILE */
.policy-bottom-sheet {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100vw !important; /* Zapobiega wyjeżdżaniu poza ekran */
    left: 0 !important;
    right: 0 !important;
    padding: 20px !important;
    overflow-x: hidden !important;
}

.policy-inner-content {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 auto !important;
}

.policy-text {
    word-wrap: break-word !important; /* Rozbija zbyt długie wyrazy */
    overflow-y: auto;
    padding-right: 5px;
}

@media (max-width: 600px) {
    .policy-bottom-sheet {
        padding: 15px !important;
        border-radius: 20px 20px 0 0 !important;
    }
}
/* ==========================================
   POPRAWIONA SEKCJA MOBILNA (Nawigacja)
   ========================================== */

/* 1. Styl hamburgera (widoczny tylko na mobile) */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 3001; /* Zwiększone, by zawsze być nad tłem menu */
}

.menu-toggle .bar {
    width: 30px;
    height: 3px;
    background-color: white; /* Biały na start (tło hero) */
    border-radius: 10px;
    transition: all 0.3s linear;
    position: relative;
    transform-origin: 1px;
}

/* GWARANCJA WIDOCZNOŚCI "X": Zmiana koloru na czarny po otwarciu menu */
#mobile-menu.is-active .bar {
    background-color: #1a1a1a !important;
}

/* Zmiana koloru hamburgera na scrollu (gdy header robi się biały) */
header.scrolled .menu-toggle .bar {
    background-color: #333;
}

/* 2. Ukrywanie elementów na desktopie */
.mobile-only { display: none; }

/* 3. MEDIA QUERY - GŁÓWNA NAPRAWA */
@media (max-width: 950px) {
    .menu-toggle {
        display: flex; /* Pokazujemy hamburgera */
    }

    .desktop-only {
        display: none !important; /* Ukrywamy numer tel z paska głównego */
    }

    .nav-menu {
        display: flex !important; 
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        
        /* Pozycjonowanie */
        position: fixed;
        top: 0;
        left: -100%; /* Ukryte */
        width: 100%;
        height: 100vh;
        
        /* Wygląd panelu */
        background-color: #ffffff !important;
        padding-top: 100px; 
        transition: left 0.4s ease-in-out;
        z-index: 3000;
        box-shadow: 0 0 20px rgba(0,0,0,0.2);
    }

    /* Aktywacja menu */
    .nav-menu.active {
        left: 0;
    }

    /* Linki wewnątrz menu mobilnego */
    .nav-menu a {
        color: #1a1a1a !important; /* Ciemny tekst na białym tle */
        font-size: 1.4rem !important;
        font-weight: 600;
        margin: 15px 0;
        text-shadow: none !important;
        text-decoration: none;
    }

    /* Przycisk CTA w wersji mobilnej */
    .nav-menu .nav-cta {
        background-color: var(--shop-green) !important;
        color: white !important;
        padding: 15px 40px !important;
        border-radius: 50px;
        margin-top: 20px;
    }

    .mobile-only {
        display: block;
        color: var(--shop-green) !important;
        font-weight: bold;
    }

    /* Animacja hamburgera w znak X */
    #mobile-menu.is-active .bar:nth-child(1) {
        transform: rotate(45deg);
    }
    #mobile-menu.is-active .bar:nth-child(2) {
        opacity: 0;
        transform: translateX(20px);
    }
    #mobile-menu.is-active .bar:nth-child(3) {
        transform: rotate(-45deg);
    }
}

/* Logotyp na mobile */
@media (max-width: 600px) {
    .logo-text {
        font-size: 1.1rem;
    }
}
@media (max-width: 950px) {
    .shop-section {
        padding-top: 10px !important; /* Minimalny odstęp na mobile */
    }
    
    #oferta {
        margin-top: 0 !important;
    }
}