/*
 * -------------------------------------------
 * STYLE CSS (WYGLĄD) - GŁÓWNY ARKUSZ
 * -------------------------------------------
 */

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Roboto', sans-serif; background-color: #f8f9fa; color: #333; line-height: 1.6; }
.container { width: 70%; max-width: 1600px; margin: 0 auto; }
img { max-width: 100%; height: auto; }
a { text-decoration: none; color: #007bff; }

/* --- Nagłówek --- */
.site-header { background-color: #ffffff; padding: 15px 0; border-bottom: 1px solid #e9ecef; box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03); position: sticky; top: 0; z-index: 1000; }
.header-content { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.8rem; font-weight: 700; color: #222; }
.logo span { color: #007bff; }
.main-nav ul { display: flex; list-style: none; }
.main-nav li { margin-left: 25px; }
.main-nav a { font-weight: 700; color: #555; transition: color 0.2s ease-in-out; }
.main-nav a:hover { color: #007bff; }

/* --- Baner / Slider --- */
.banner-slider { width: 100%; max-width: 1600px; height: 750px; margin: 25px auto 0; position: relative; overflow: hidden; background-color: #000; border-radius: 8px; }
.slide { position: absolute; width: 100%; height: 100%; opacity: 0; transition: opacity 1s ease-in-out; background-size: cover; background-position: center center; background-repeat: no-repeat; }
.slide.active { opacity: 1; }
.slider-arrow { position: absolute; top: 50%; transform: translateY(-50%); background-color: rgba(0, 0, 0, 0.4); color: #fff; padding: 10px 15px; font-size: 24px; font-weight: bold; border-radius: 5px; cursor: pointer; z-index: 10; user-select: none; transition: background-color 0.2s ease; }
.slider-arrow:hover { background-color: rgba(0, 0, 0, 0.7); }
.slider-arrow.prev { left: 15px; }
.slider-arrow.next { right: 15px; }

/* --- Sekcja Kafelków Produktów (POPRAWIONE) --- */
/* --- Sekcja Kafelków Produktów (TWARDE LIMITY) --- */
.product-section { padding: 60px 0; }
.product-section h2 { font-size: 2.2rem; text-align: center; margin-bottom: 40px; }

.product-grid { 
    display: grid; 
    /* Wymuszamy RÓWNE 4 kolumny na komputerach - koniec ze ściskaniem! */
    grid-template-columns: repeat(4, 1fr); 
    gap: 30px; 
}



.product-card { background-color: #ffffff; border-radius: 8px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05); overflow: hidden; display: flex; flex-direction: column; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.product-card:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1); }
.product-card img { display: block; width: 100%; height: 250px; object-fit: cover; }
.product-content { padding: 20px; flex-grow: 1; display: flex; flex-direction: column; }
.product-title { font-size: 1.2rem; font-weight: 700; color: #333; margin-bottom: 15px; }
.product-title a { color: inherit; text-decoration: none; }
.product-title a:hover { color: #007bff; }
.product-specs { list-style: none; margin-bottom: 20px; font-size: 0.9rem; color: #555; flex-grow: 1; }
.product-specs li { padding: 4px 0; border-bottom: 1px dashed #eee; }
.product-footer { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid #eee; padding-top: 15px; margin-top: 10px; }
.product-price { font-size: 1.5rem; font-weight: 700; color: #007bff; white-space: nowrap; margin-right: 10px; }
.product-button { background-color: #007bff; color: #ffffff; padding: 10px 16px; border-radius: 8px; font-weight: 700; font-size: 0.9rem; transition: background-color 0.2s ease, transform 0.2s ease; text-decoration: none; text-align: center; white-space: nowrap; flex-shrink: 0; }
.product-button:hover { background-color: #0069d9; transform: translateY(-1px); }

/* --- Sekcje Główne (O Nas / Dlaczego my) --- */
.intro-wrapper { background-color: #ffffff; border-radius: 8px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05); padding: 50px 40px; margin-top: 40px; }
.about-us-layout { display: flex; align-items: center; gap: 40px; margin-bottom: 50px; }
.about-us-text { flex: 1.2; }
.about-us-text h2 { font-size: 2.2rem; color: #222; margin-bottom: 15px; }
.about-us-text p { font-size: 1.1rem; line-height: 1.7; color: #555; margin-bottom: 20px; }
.about-us-image { flex: 1; }
.about-us-image img { width: 100%; border-radius: 8px; box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1); }
.section-title { font-size: 2.2rem; text-align: center; color: #222; margin-bottom: 40px; }
.features-grid { display: flex; gap: 30px; border-top: 1px solid #eee; padding-top: 40px; }
.feature-item { flex: 1; text-align: center; padding: 20px; }
.feature-icon { font-size: 3rem; margin-bottom: 15px; }
.feature-item h3 { font-size: 1.4rem; color: #333; margin-bottom: 10px; }
.feature-item p { font-size: 0.95rem; color: #666; line-height: 1.6; }

/*
 * -------------------------------------------
 * SZCZEGÓŁY KARTY PRODUKTU I OPISÓW (NAPRAWIONE)
 * -------------------------------------------
 */

/*
 * -------------------------------------------
 * PROFESJONALNY LAYOUT KARTY PRODUKTU (HERO)
 * -------------------------------------------
 */

.product-hero-wrapper {
    display: flex;
    gap: 30px;
    margin-top: 40px;
    align-items: stretch;
}

/* Lewy kafelek - Zdjęcie */
.product-image-box {
    flex: 1;
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: center;
    align-items: center;
}

.product-image-box img {
    max-width: 100%;
    max-height: 500px;
    object-fit: contain;
}

/* Prawy kafelek - Informacje i przycisk */
.product-buy-box {
    flex: 1.2;
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

.product-title-large {
    font-size: 2.2rem;
    color: #111;
    margin-bottom: 15px;
    line-height: 1.3;
}

.product-price-large {
    font-size: 2.8rem;
    font-weight: 700;
    color: #28a745; /* Kolor zielony wzbudza zaufanie */
    margin-bottom: 25px;
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.price-brutto {
    font-size: 1rem;
    font-weight: 400;
    color: #777;
}

/* Trust Badges - Odznaki Zaufania */
.trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
    padding: 20px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.badge {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 200px;
}

.badge-icon {
    font-size: 1.8rem;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f8f9fa;
}

.badge-icon.green { background: #e8f5e9; } /* Jasnozielone tło dla dostawy */
.badge-icon.blue { background: #e3f2fd; } /* Jasnoniebieskie dla gwarancji */

.badge-text {
    display: flex;
    flex-direction: column;
    font-size: 0.9rem;
}

.badge-text strong { color: #333; }
.badge-text span { color: #666; font-size: 0.85rem; }

/* Krótka specyfikacja w ramce Buy Box */
.product-specs-short h3 {
    font-size: 1.1rem;
    color: #444;
    margin-bottom: 15px;
}

.product-specs-short ul {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.product-specs-short li {
    position: relative;
    padding: 6px 0 6px 20px;
    font-size: 0.95rem;
    color: #555;
    border-bottom: 1px solid #f8f9fa;
}

/* Wypunktowanie jako mały 'ptaszek' */
.product-specs-short li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #007bff;
    font-weight: bold;
}

/* Obszar zakupu */
.buy-action-area {
    margin-top: auto; /* Wypycha przycisk na sam dół kafelka */
    text-align: center;
}

.btn-buy-now {
    display: block;
    background-color: #28a745;
    color: #fff;
    font-size: 1.4rem;
    font-weight: 700;
    padding: 20px;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background-color 0.2s, transform 0.2s;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.btn-buy-now:hover {
    background-color: #218838;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

.secure-shopping {
    margin-top: 10px;
    font-size: 0.85rem;
    color: #777;
}

/* Nagłówek przed długim opisem */
.description-header {
    margin-top: 50px;
    padding-bottom: 10px;
    border-bottom: 2px solid #007bff;
}

.description-header h2 {
    font-size: 1.8rem;
    color: #222;
}

/* 
 * Reszta starego kodu od długich opisów HTML 
 * (zostaje bez zmian, bo to już poprawiliśmy w baza.php) 
 */
.product-description-section { background-color: #ffffff; margin-top: 30px; padding: 30px 40px; border-radius: 12px; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05); }
.product-description-section h3 { font-size: 2.2rem; margin-bottom: 20px; text-align: center; color: #333; padding-bottom: 10px; display: inline-block; width: 100%;}
.product-description-section h4 { font-size: 1.6rem; margin-bottom: 15px; margin-top: 30px; color: #444;}
.product-description-section p { font-size: 1.05rem; line-height: 1.7; color: #444; margin-bottom: 20px; }
.product-description-section img { width: 100%; max-width: 800px; display: block; margin: 20px auto; border-radius: 8px; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); }
.desc-row { display: flex; align-items: center; margin-bottom: 40px; gap: 40px; }
.desc-row.reverse { flex-direction: row-reverse; }
.desc-col-img { flex: 1; min-width: 300px; }
.desc-col-img img { width: 100%; border-radius: 8px; margin: 0; max-width: 100%;}
.desc-col-text { flex: 1.5; }
.product-description-section .desc-col-text h3 { font-size: 1.8rem; margin-bottom: 15px; border-bottom: none; }
.product-description-section .desc-col-text h4 { font-size: 1.5rem; margin-top: 0; }
.styled-list { list-style: none; padding-left: 0; margin-bottom: 20px; font-size: 1.05rem;}
.styled-list li { padding: 5px 0; border-bottom: 1px dashed #eee; color: #555; }
.product-gallery { margin-bottom: 30px; }
.product-gallery-main img { width: 100%; border-radius: 8px; border: 1px solid #eee; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05); }
.video-container { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; max-width: 100%; background: #000; margin: 30px auto; border-radius: 8px; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); }
.video-container iframe, .video-container object, .video-container embed { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }
.desc-col-text .video-container { max-width: 800px; margin-left: auto; margin-right: auto; }

/* Responsywność dla Hero Section */


/*
 * -------------------------------------------
 * STYLE DLA PROFESJONALNEJ STOPKI
 * -------------------------------------------
 */
.site-footer {
    background-color: #111;
    color: #b0b0b0;
    padding: 60px 0 0 0;
    font-size: 0.95rem;
    margin-top: 60px;
    border-top: 3px solid #007bff;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 50px;
}

.footer-col h3 {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.footer-col h3 span { color: #007bff; }

.footer-col h4 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: #b0b0b0;
    text-decoration: none;
    transition: color 0.3s ease, padding-left 0.3s ease;
    display: block;
}

.footer-col ul li a:hover {
    color: #fff;
    padding-left: 5px;
    text-decoration: none;
}

.contact-info p {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-bottom {
    background-color: #080808;
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid #222;
    font-size: 0.85rem;
}



/* Opinie Klientów (Aktualizacja dla 4 opinii Google) */
.testimonials-section {
    padding: 60px 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 kolumny, 2 wiersze = idealne dla 4 opinii */
    gap: 30px;
}

.testimonial-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-top: 4px solid #4285F4; /* Niebieski kolor kojarzący się z Google */
}

.google-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.google-icon {
    width: 25px;
    height: 25px;
}

.stars {
    font-size: 1.2rem;
    line-height: 1;
}

.testimonial-card p {
    font-style: italic;
    color: #555;
    margin-bottom: 25px;
    font-size: 1.05rem;
    line-height: 1.6;
}

.author {
    display: flex;
    flex-direction: column;
}

.author strong {
    color: #111;
    font-size: 1.1rem;
}

.author span {
    color: #777;
    font-size: 0.85rem;
    margin-top: 3px;
}

/*
 * =========================================================
 * 🚀 OPTYMALIZACJA MOBILNA I TABLETY (RESPONSYWNOŚĆ)
 * =========================================================
 */

/* --- Laptopy i mniejsze ekrany (do 1200px) --- */
@media (max-width: 1200px) {
    .container { width: 90%; }
    .banner-slider { height: 500px; }
}

/* --- Tablety (do 992px) --- */
@media (max-width: 992px) {
    /* Siatka produktów - 2 kolumny */
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 20px;}
    
    /* Układ pionowy dla sekcji dzielonych */
    .product-hero-wrapper, .order-container, .about-us-layout, .features-grid, .desc-row, .desc-row.reverse { 
        flex-direction: column; 
        gap: 20px; 
    }
    
    .desc-col-img { min-width: 100%; }
    .order-summary { position: static; /* Wyłączenie "pływającego" podsumowania na tablecie */ }
    
    /* Stopka i kategorie */
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .categories-grid, .testimonials-grid { grid-template-columns: 1fr; }
}

/* --- Smartfony (do 768px) - CZYSTY WYGLĄD JAK W APLIKACJI --- */
@media (max-width: 768px) {
    /* 1. Kontener i menu */
    .container { width: 92%; }
    .header-content { flex-direction: column; text-align: center; gap: 10px; }
    .main-nav ul { flex-wrap: wrap; justify-content: center; gap: 15px; margin: 0; padding: 0;}
    .main-nav li { margin: 0; }
    .logo { font-size: 1.6rem; }
    
    /* 2. Slider */
    .banner-slider { height: 220px; margin-top: 15px; border-radius: 8px; }
    .slider-arrow { padding: 6px 10px; font-size: 16px; }
    
    /* 3. Zmniejszenie ogromnych fontów */
    h1, .product-title-large, .checkout-header h1 { font-size: 1.8rem !important; line-height: 1.3; }
    h2, .section-title, .product-section h2, .about-us-text h2, .description-header h2 { font-size: 1.5rem !important; }
    h3, .product-description-section h3 { font-size: 1.3rem !important; }
    h4, .product-description-section h4 { font-size: 1.2rem !important; margin-top: 20px; }
    p, .styled-list li { font-size: 0.95rem !important; line-height: 1.5; }
    .product-price-large { font-size: 2.2rem; }
    
    /* 4. Kafelki produktów (1 w rzędzie, ładne proporcje) */
    .product-grid { grid-template-columns: 1fr; gap: 20px; }
    .product-card img { height: 220px; }
    
    /* 5. REDUKCJA PADDINGÓW (Kluczowe, by tekst nie był ściśnięty!) */
    .product-image-box, .product-buy-box, .product-description-section, .intro-wrapper, .order-form, .order-summary, .custom-pc-banner, .testimonial-card { 
        padding: 20px; 
    }
    
    /* 6. Opisy "Allegro" */
    .desc-row { margin-bottom: 30px; }
    .product-description-section img { margin: 15px auto; }
    .video-container { margin: 15px auto; }
    
    /* 7. Kup Teraz i Zaufanie */
    .trust-badges { flex-direction: column; gap: 15px; align-items: flex-start; }
    .badge { min-width: 100%; } /* Na telefonie ikony zaufania zajmują całą szerokość */
    .btn-buy-now { font-size: 1.1rem; padding: 15px; }
    .btn-cta { padding: 12px 25px; font-size: 1rem; }
    
    /* 8. Formularz zamówienia */
    .form-row { flex-direction: column; gap: 0; }
    .form-group { margin-bottom: 15px; }
    .submit-button { font-size: 1.1rem; padding: 15px; }
    
    /* 9. Stopka i Banner Cookies */
    .footer-grid { grid-template-columns: 1fr; gap: 30px; text-align: center; }
    .contact-info p { justify-content: center; }
    .footer-col ul li a:hover { padding-left: 0; }
    
    #cookie-banner { flex-direction: column; gap: 15px; text-align: center; }
    #cookie-accept { width: 100%; } /* Wielki przycisk ciasteczek ułatwia kliknięcie palcem */
}
/*
 * -------------------------------------------
 * E-SPORTOWY PANEL INFORMACYJNY (JASNY CYBER THEME)
 * -------------------------------------------
 */
.marro-cyber-panel {
    position: relative;
    background: #ffffff; /* Czyste, jasne tło premium */
    border: 1px solid #e1ebf5;
    border-radius: 12px;
    padding: 40px;
    margin: 30px 0 50px 0;
    overflow: hidden;
    color: #444;
    font-family: 'Roboto', sans-serif;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05); /* Subtelny cień nadający głębi */
}

/* Animowane, gamingowe tło (subtelny gradient RGB) */
.cyber-glow-bg {
    position: absolute;
    top: 0; left: 0; right: 0; height: 4px;
    background: linear-gradient(90deg, #00f3ff, #7000ff, #00f3ff);
    background-size: 200% auto;
    animation: rgbGlow 3s linear infinite;
}

@keyframes rgbGlow {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

/* Nagłówek panelu */
.cyber-header {
    text-align: left;
    margin-bottom: 35px;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: #7000ff; /* Fioletowy akcent, idealnie widoczny na białym */
    margin-bottom: 15px;
    text-transform: uppercase;
}

.pulsing-dot {
    width: 10px;
    height: 10px;
    background-color: #7000ff;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(112, 0, 255, 0.4);
    animation: pulse 1.5s infinite alternate;
}

@keyframes pulse {
    0% { transform: scale(0.8); opacity: 0.5; box-shadow: 0 0 5px rgba(112, 0, 255, 0.2); }
    100% { transform: scale(1.2); opacity: 1; box-shadow: 0 0 15px rgba(112, 0, 255, 0.7); }
}

.cyber-header h3 {
    color: #111;
    font-size: 2.2rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    padding: 0;
}

.cyber-header p {
    font-size: 1.1rem;
    color: #555;
}

.cyber-header p span {
    color: #007bff;
    font-weight: 700;
}

/* Karty z pytaniami */
.cyber-questions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 40px;
}

.cyber-card {
    background: #f8fbff; /* Delikatny, niebieskawy odcień */
    border: 1px solid #dce7f5;
    padding: 20px 25px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
}

.cyber-card:hover {
    transform: translateX(10px);
    border-color: #7000ff;
    background: #ffffff;
    box-shadow: -5px 5px 20px rgba(112, 0, 255, 0.08);
}

.cyber-num {
    color: #7000ff;
    font-weight: 900;
    font-size: 1.4rem;
    letter-spacing: 1px;
    min-width: 50px;
}

.cyber-text {
    font-size: 1.05rem;
    color: #333;
    line-height: 1.5;
    font-weight: 500;
}

/* Sekcja podsumowania (Akcja) */
.cyber-action {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.action-yes {
    display: flex;
    align-items: center;
    gap: 15px;
    background: linear-gradient(90deg, rgba(40, 167, 69, 0.1), transparent);
    border-left: 4px solid #28a745;
    padding: 20px;
    border-radius: 4px;
}

.action-yes .action-icon {
    font-size: 2rem;
}

.action-yes .action-text {
    font-size: 1.15rem;
    color: #111;
}

.action-yes strong {
    color: #198754;
}

.action-bonus {
    background: #ffffff;
    border: 1px dashed #adb5bd;
    padding: 20px;
    border-radius: 8px;
    color: #444;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
}

.animated-star {
    font-size: 1.4rem;
    animation: spin-tilt 3s infinite linear;
    display: inline-block;
}

@keyframes spin-tilt {
    0% { transform: rotate(-10deg) scale(1); }
    50% { transform: rotate(10deg) scale(1.2); }
    100% { transform: rotate(-10deg) scale(1); }
}

.neon-badge {
    background: #ff007c;
    color: #fff;
    padding: 5px 12px;
    border-radius: 4px;
    font-weight: 800;
    font-size: 0.9rem;
    letter-spacing: 1px;
    box-shadow: 0 4px 10px rgba(255, 0, 124, 0.25);
    text-transform: uppercase;
}

/* Responsywność */
@media (max-width: 768px) {
    .marro-cyber-panel { padding: 25px 20px; }
    .cyber-header h3 { font-size: 1.8rem; }
    .cyber-card { flex-direction: column; align-items: flex-start; gap: 10px; padding: 15px; }
    .action-yes { flex-direction: column; text-align: center; }
    .action-bonus { flex-direction: column; text-align: center; }
}