/* --- KONCEPCJA 3: PODSTRONA "EDYTORSKA" (Zakładki) --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;700;800&display=swap');

html {
    scroll-behavior: smooth;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Poppins', sans-serif; line-height: 1.6; background-color: #f4f4f4; color: #333; }
.container { max-width: 1200px; margin: auto; padding: 0 20px; overflow: auto; }
a { text-decoration: none; color: inherit; }

/* --- Nagłówek --- */
header { background: #fff; color: #333; padding: 20px 0; border-bottom: 1px solid #ddd; }
header .container { display: flex; justify-content: space-between; align-items: center; }
header h1 { font-size: 28px; font-weight: 700; }
header nav ul { list-style: none; margin: 0; padding: 0; } /* Reset dla flex */
header nav ul li { display: inline-block; margin-left: 20px; }
header nav ul li a { font-size: 16px; font-weight: 700; transition: color 0.3s ease; }
header nav ul li a:hover, header nav ul li a.active { color: #6a11cb; }

/* --- NOWY STYL: Przycisk koszyka --- */
.btn-cart {
    background: #6a11cb;
    color: #fff;
    padding: 8px 16px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s ease;
    font-family: 'Poppins', sans-serif;
    margin-left: 20px; /* Odstęp od nawigacji */
}
.btn-cart:hover {
    background: #5a0eb3;
}


/* --- Style banera (bez zmian) --- */
.hero-carousel { width: 100%; position: relative; background: #f0f0f0; }
.slideshow-container { max-width: 100%; position: relative; margin: auto; overflow: hidden; }
.slide-wrapper { display: flex; width: 400%; transition: transform 0.6s ease-in-out; }
.mySlides { width: 25%; min-height: 60vh; background-size: contain; background-position: center right; background-repeat: no-repeat; display: flex; align-items: center; position: relative; background-color: #f0f0f0; }
.hero-content { max-width: 1200px; margin: auto; padding: 0 40px; color: #333; width: 100%; }
.hero-content h2 { font-size: 48px; font-weight: 800; margin-bottom: 15px; max-width: 50%; }
.hero-content p { font-size: 20px; margin-bottom: 25px; max-width: 50%; }
.btn { display: inline-block; background: #6a11cb; color: #fff; padding: 15px 30px; border: none; border-radius: 5px; font-size: 18px; font-weight: 700; cursor: pointer; transition: background 0.3s ease; }
.btn:hover { background: #5a0eb3; }
.prev, .next { cursor: pointer; position: absolute; top: 50%; transform: translateY(-50%); width: auto; padding: 16px; color: #333; font-weight: bold; font-size: 24px; transition: 0.3s ease; user-select: none; background-color: rgba(255, 255, 255, 0.3); }
.prev { left: 0; border-radius: 0 3px 3px 0; }
.next { right: 0; border-radius: 3px 0 0 3px; }
.prev:hover, .next:hover { background-color: rgba(255, 255, 255, 0.7); }

/* --- Style siatki (bez zmian) --- */
.product-grid { padding: 60px 0; }
.product-grid h2 { text-align: center; font-size: 36px; margin-bottom: 40px; }
.grid-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.product-card { background: #fff; border-radius: 10px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); text-align: left; overflow: hidden; transition: transform 0.3s ease, box-shadow 0.3s ease; display: flex; flex-direction: column; }
.product-card img { width: 100%; height: 300px; object-fit: cover; margin-bottom: 0; border-radius: 0; }
.product-card h3 { font-size: 20px; margin: 15px; }
.product-card .price { margin-top: auto; font-size: 18px; font-weight: 700; color: #333; margin-bottom: 15px; margin-left: 15px; margin-right: 15px; }
.btn-buy { display: block; text-align: center; width: calc(100% - 30px); margin: 0 15px 15px 15px; padding: 12px; background: #333; color: #fff; border: none; border-radius: 5px; font-size: 16px; font-weight: 700; cursor: pointer; transition: background 0.3s ease; }
.btn-buy:hover { background: #000; }

/* --- Stopka --- */
footer { background: #333; color: #aaa; text-align: center; padding: 40px 0; }
.footer-links { margin-top: 15px; }
.footer-links a { color: #aaa; margin: 0 10px; font-size: 14px; transition: color 0.3s ease; }
.footer-links a:hover { color: #fff; }


/* --- STYLE PODSTRONY PRODUKTU --- */
.product-page-container {
    max-width: 1100px;
    margin: 40px auto;
    background: #fff;
    border-radius: 10px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 30px;
}
.product-image {
    background: #f0f0f0;
    border-radius: 10px;
    padding: 20px;
}
.product-image img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}
.thumbnail-gallery {
    display: none;
}
.product-details {
    padding-top: 20px;
}
.product-details h1 { font-size: 36px; font-weight: 700; margin-bottom: 15px; }
.product-details .product-price { font-size: 28px; font-weight: 700; color: #6a11cb; margin-bottom: 20px; }
.product-details > .product-description {
    display: none;
}
.product-options { margin-bottom: 30px; }
.product-options label { font-weight: 700; margin-right: 10px; }
.product-options select { padding: 10px; font-size: 16px; border: 1px solid #ddd; border-radius: 5px; }
.btn-add-to-cart { width: 100%; margin-bottom: 40px; }
.product-tabs {
    display: flex;
    border-bottom: 1px solid #ddd;
    margin-bottom: 20px;
}
.tab-link {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 700;
    padding: 10px 20px;
    border: none;
    background: none;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
}
.tab-link.active {
    color: #6a11cb;
    border-bottom-color: #6a11cb;
}
.tab-content {
    display: none;
    line-height: 1.7;
    font-size: 15px;
}
.tab-content.active {
    display: block;
}

/* --- STYLE PODSTRONY KONTAKTU --- */
.contact-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 40px;
    background: #fff;
    border-radius: 10px;
    text-align: center;
}
.contact-container h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
}
.contact-container p {
    font-size: 18px;
    color: #555;
    margin-bottom: 30px;
}
.contact-form {
    text-align: left;
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 5px;
}
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    font-family: 'Poppins', sans-serif;
    border: 1px solid #ddd;
    border-radius: 5px;
}
.contact-container .btn {
    width: 100%;
}

/* --- Podstrony prawne --- */
.legal-content {
    background: #fff;
    padding: 40px;
    margin: 40px auto;
    border-radius: 10px;
}
.legal-content h2 {
    font-size: 32px;
    margin-bottom: 20px;
}
.legal-content h3 {
    font-size: 24px;
    margin-top: 30px;
    margin-bottom: 15px;
}
.legal-content p, .legal-content li {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 15px;
}
.legal-content ul {
    padding-left: 20px;
}


/* --- RESPONSIVE (MOBILE) --- */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
    }
    header nav {
        margin-top: 15px;
    }
    header nav ul li {
        margin: 0 10px;
    }
    /* Poprawka dla koszyka na mobilce */
    .btn-cart {
        margin-top: 15px;
        width: 100%;
    }

    /* Baner mobilny */
    .mySlides {
        min-height: 40vh;
        background-position: center;
    }
    .hero-content {
        padding: 0 20px;
    }
    .hero-content h2 {
        font-size: 32px;
        max-width: 100%;
        text-align: center;
    }
    .hero-content p {
        font-size: 16px;
        max-width: 100%;
        text-align: center;
    }
    .hero-content .btn {
        width: 100%;
    }
    .prev, .next {
        font-size: 18px;
        padding: 10px;
    }

    /* Siatka mobilna */
    .product-grid {
        padding: 40px 0;
    }
    .product-grid h2 {
        font-size: 28px;
    }
    .grid-container {
        gap: 15px;
    }

    /* Strona produktu mobilna */
    .product-page-container {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
        margin: 20px auto;
    }
    .product-details {
        padding-top: 0;
    }
    .product-details h1 {
        font-size: 28px;
    }
    .product-details .product-price {
        font-size: 24px;
    }
    .product-tabs {
        flex-direction: column;
    }
    .tab-link {
        border-bottom: 1px solid #ddd;
    }

    /* Strona kontaktu mobilna */
    .contact-container {
        padding: 20px;
        margin: 20px auto;
    }
    .contact-container h2 {
        font-size: 28px;
    }

    /* Strony prawne mobilne */
    .legal-content {
        padding: 20px;
        margin: 20px auto;
    }
}