﻿/* ==========================================================================
   /* ==========================================================================
   1. ZMIENNE I RESET
   ========================================================================== */
:root {
    --corten: #b87333;
    --corten-hover: #d2691e;
    --antracyt: #2a2a2a;
    --black: #1a1a1a;
    --white: #ffffff;
    --bg-light: #f4f4f4;
    --transition: 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 62.5%; scroll-behavior: smooth; }
body {
    font-family: 'Inter', sans-serif;
    font-size: 1.6rem;
    line-height: 1.6;
    color: #333;
    background: var(--white);
    overflow-x: hidden;
}

/* ==========================================================================
   2. NAWIGACJA I HEADER
   ========================================================================== */
.main-header {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('../img/hero-dark.webp') center/cover no-repeat;
    min-height: 450px;
    display: flex;
    flex-direction: column;
}

.navigation-bar { background: url('../img/tlonav.jpg') center/cover no-repeat; position: fixed; top: 0; width: 100%; z-index: 2000; border-bottom: 2px solid rgba(255,255,255,0.2); }

.hamburger {
    display: none; /* Ukrywamy hamburger na komputerach */
}
.header-content {
    max-width: 1400px; margin: 0 auto;
    display: flex; justify-content: space-between; align-items: center;
    padding: 0 20px; height: 90px;
}

.logo img { max-height: 60px; }

/* Menu Desktop */
.main-ul { display: flex; list-style: none; }
.main-ul li { position: relative; }
.main-ul li a {
    color: var(--white); text-decoration: none; padding: 35px 20px;
    display: block; font-weight: 700; font-size: 1.3rem; text-transform: uppercase;
    transition: var(--transition);
}

.main-ul li a:hover, .main-ul li.selected > a { color: var(--corten); }

/* Dropdown */
.dropdown {
    position: absolute; top: 90px; left: 0; background: var(--black);
    min-width: 220px; display: none; list-style: none; border-top: 3px solid var(--corten);
}
.dropdown li a { padding: 15px 20px; text-transform: none; border-bottom: 1px solid #222; }
.has-sub:hover .dropdown { display: block; }

/* Hero Text */
.hero-text-container {
    max-width: 1200px; margin: 150px auto 0; padding: 0 20px; color: var(--white);
}
.hero-text-container .captionTitle h1{ font-size: clamp(2.8rem, 5vw, 4.2rem) !important; font-weight: 900; line-height: 1.1; margin-bottom: 20px; } .hero-text-container .header-seo-text { font-size: 1.5rem !important; max-width: 600px; line-height: 1.6; }

============================================================
  
   SEKCJA: WIATY (NARZĘDZIA I OPAŁ) - THEME (MAX 1400px)
   ========================================================================== */

/* ==========================================================================
   WYSKALOWANIE MAIN DO 1400px (GWARANTOWANE)
   ========================================================================== */

/* Celujemy w obie klasy, żeby mieć pewność */
main.wiaty-theme, 
main.main-container {
    display: block !important;       /* Wymusza standardowy model blokowy */
    width: 95% !important;           /* Margines boczny na tabletach */
    max-width: 1400px !important;    /* Twoja docelowa szerokość */
    margin-left: auto !important;    /* Magia centrowania */
    margin-right: auto !important;   /* Magia centrowania */
    padding: 0 !important;           /* Reset paddingów, które mogą rozpychać */
    float: none !important;          /* Usuwa ewentualne pływanie */
    box-sizing: border-box !important;
}

/* Fix dla sekcji wewnątrz, żeby nie uciekały na boki */
.wiaty-theme section {
    width: 100% !important;
    max-width: 1400px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
}

/* Opcjonalnie: Dodaj to na chwilę, żeby zobaczyć czy działa (czerwona ramka) */
/* main.wiaty-theme { border: 2px solid red !important; } */

/* SIATKA PRODUKTÓW - Dopasowana do 1400px */
.wiaty-theme .product-showcase {
    display: grid;
    /* Zmieniamy na 2 kolumny dla wiat, bo są szersze (16:9) */
    grid-template-columns: repeat(2, 1fr); 
    gap: 30px;
    margin-bottom: 60px;
}

.wiaty-theme .product-card {
    background: #fff;
    border: 1px solid #eef0f2;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.wiaty-theme .product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* PROPORCJE ZDJĘĆ - Idealne dla wiat */
.wiaty-theme .img-container {
    width: 100%;
    aspect-ratio: 16 / 9; 
    overflow: hidden;
    background: #f4f4f4;
}

.wiaty-theme .product-card img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.wiaty-theme .img-container {
    /* ... reszta Twojego kodu ... */
    border-bottom: 1px solid #eee; /* Oddzieli zdjęcie od białego tła karty */
}
/* TYPOGRAFIA */
.wiaty-theme .product-title {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--antracyt);
    padding: 20px 20px 5px;
}

.wiaty-theme .product-desc {
    font-size: 1.2rem;
    color: #666;
    line-height: 1.5;
    padding: 0 20px 15px;
}

/* CECHY JAKOŚCIOWE */
.wiaty-theme .quality-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin: 50px 0;
}

.wiaty-theme .quality-item-v2 {
    background: #fdfdfd;
    padding: 30px;
    border-radius: 10px;
    border-bottom: 4px solid var(--antracyt);
    text-align: center;
}

.wiaty-theme .quality-item-v2:hover {
    border-color: var(--corten);
}

/* TABELA */
.wiaty-theme .table-container {
    margin: 40px 0;
    border-radius: 12px;
    overflow-x: auto;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border: 1px solid #eee;
}

.wiaty-theme .obrzeza-table {
    width: 100%;
    border-collapse: collapse;
}

.wiaty-theme .obrzeza-table th {
    background: var(--antracyt);
    color: #fff;
    padding: 20px;
    text-align: left;
}

.wiaty-theme .obrzeza-table td {
    padding: 18px 20px;
    border-bottom: 1px solid #f0f0f0;
}

/* MOBILKI */
@media (max-width: 992px) {
    .wiaty-theme .product-showcase,
    .wiaty-theme .quality-info-grid {
        grid-template-columns: 1fr; /* Na tabletach wszystko w jednej kolumnie */
    }
}
/* ==========================================================================
   SKALOWANIE PRZYCISKÓW (WIATY 1400px)
   ========================================================================== */

/* 1. Przyciski w kartach produktów */
.wiaty-theme .btn-card {
    display: block;
    width: calc(100% - 40px); /* Skaluje się do szerokości karty z marginesem */
    max-width: 300px;         /* Żeby nie był za szeroki na dużym ekranie */
    margin: auto 20px 20px;   /* 'auto' na górze wypycha przycisk zawsze na dół karty */
    padding: 16px 25px;       /* Większy padding dla lepszego kliknięcia */
    background: var(--antracyt);
    color: #fff !important;
    text-decoration: none;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 2px solid var(--antracyt);
}

.wiaty-theme .btn-card:hover {
    background: var(--corten);
    border-color: var(--corten);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

/* 2. Główny przycisk CTA (ten pod tabelą / pulsujący) */
.wiaty-theme .btn-obrzeza {
    display: inline-block;
    min-width: 320px;          /* Solidna podstawa */
    padding: 20px 45px;
    font-size: 1.4rem;
    font-weight: 900;
    text-transform: uppercase;
    color: #fff !important;
    background: var(--antracyt);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.4s;
    text-decoration: none;
}

.wiaty-theme .btn-obrzeza:hover {
    background: var(--corten);
    transform: scale(1.05);
}

/* Wyśrodkowanie kontenera przycisku głównego */
.wiaty-theme .cta-action {
    padding: 50px 0;
    text-align: center;
}
/* ==========================================================================
   5. FOOTER I IKONY
   ========================================================================== */
.main-footer { background: var(--black); color: #999; padding: 60px 0 0; margin-top: 100px; }
.footer-container {
    max-width: 1200px; margin: 0 auto; padding: 0 20px 40px;
    display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px;
}
.footer-column h3 { color: var(--white); margin-bottom: 20px; border-left: 3px solid var(--corten); padding-left: 15px; }

.social-links { display: flex; gap: 15px; margin-top: 15px; }
.social-icon {
    width: 40px; height: 40px; background: #333; color: white;
    display: flex; align-items: center; justify-content: center;
    text-decoration: none; border-radius: 50%; transition: 0.3s;
}
.social-icon:hover { background: var(--corten); transform: translateY(-3px); }

.footer-bottom { background: #111; padding: 20px; text-align: center; font-size: 1.2rem; }

/* ==========================================================================
   6. RWD (MOBILNE)
   ========================================================================== */
@media (max-width: 1100px) {
    .hamburger { display: flex; flex-direction: column; gap: 5px; cursor: pointer; }
    .hamburger span { width: 30px; height: 3px; background: white; transition: 0.3s; }
   .hamburger { 
        display: flex; 
        flex-direction: column; 
        gap: 5px; 
        cursor: pointer; 
        z-index: 2100; /* Musi być wyżej niż nav-menu */
        padding: 10px;
        position: relative;
    }

    .hamburger span { 
        width: 30px; 
        height: 3px; 
        background: white; /* Kolor kresek gdy menu jest zamknięte */
        transition: all 0.3s ease-in-out; 
        display: block;
        transform-origin: center;
    }
    
    /* KLUCZ: Zmiana koloru na czarny po otwarciu, żeby widzieć krzyżyk na białym tle menu */
    .hamburger.active span {
        background: #000; 
    }

    /* Tworzenie krzyżyka (X) */
    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
        transform: translateX(-20px);
    }

    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    .nav-menu {
        position: fixed; top: 0; right: -100%; width: 280px; height: 100vh;
        background: var(--white); padding-top: 100px; transition: 0.4s; z-index: 1999;
    }
    .nav-menu.active { right: 0; box-shadow: -5px 0 15px rgba(0,0,0,0.3); }
    .main-ul { flex-direction: column; }
    .main-ul li a { color: var(--black); padding: 15px 30px; border-bottom: 1px solid #eee; }
    
    .dropdown { position: static; display: none; background: #f9f9f9; }
    
    .product-row, .product-row.reverse { grid-template-columns: 1fr; gap: 30px; }
    .info-grid { grid-template-columns: 1fr; }
}
/* Pokazywanie submenu na mobile po kliknięciu */
    .nav-menu .has-sub.open .dropdown {
        display: block !important;
        width: 100%;
    }
/* Profesjonalna strzałka V przy submenu */
    .has-sub > a::after {
        content: "\f078"; /* Kod ikony chevron-down w FontAwesome */
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
        font-size: 1rem;
        margin-left: 8px;
        display: inline-block;
        transition: transform 0.3s ease; /* Animacja obrotu */
    }

    /* Obrót strzałki po otwarciu menu */
    .has-sub.open > a::after {
        transform: rotate(180deg);
        color: var(--corten);
    }
  
