/* Stylowanie dla ciała strony z subtelnym gradientowym tłem */
body {
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8), rgba(40, 40, 40, 0.9)), 
                radial-gradient(circle at center, rgba(50, 50, 255, 0.3), rgba(0, 150, 0, 0.2) 60%);
    background-blend-mode: overlay;
    background-color: #333; /* Kolor bazowy */
    color: #ffffff;
    margin: 0;
    padding: 0;
}

/* Kontener dla produktów w układzie siatki 4 kolumn */
.product-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    max-width: 1200px;
    width: 100%;
    margin: 20px auto;
    padding: 20px;
}

/* Styl nagłówka */
.header {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background-color: #333;
    padding: 15px 20px;
    color: #fff;
    border-bottom: 1px solid #444;
}

.header .logo h1 {
    font-size: 1.5rem;
    color: #ff4500;
    margin: 0;
}

.navigation {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.navigation button {
    color: #fff;
    background-color: #ff4500;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.navigation button:hover {
    background-color: #e03d00;
}

/* Styl stopki */
.footer {
    width: 100%;
    text-align: center;
    padding: 20px;
    background-color: #333;
    color: #fff;
    font-size: 0.9rem;
    border-top: 1px solid #444;
}

.footer p {
    margin: 0;
    line-height: 1.5;
}

/* Stylowanie dla każdego produktu */
.product {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.product:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.product h2 {
    font-size: 1.2rem;
    margin: 10px 0;
    color: #333;
}

/* Stylizacja galerii zdjęć */
.image-slider {
    position: relative;
    width: 100%;
    max-width: 220px;
    margin: 0 auto 15px;
}

.image-slider img {
    display: none;
    width: 100%;
    border-radius: 5px;
    transition: opacity 0.5s ease;
}

.image-slider img.active {
    display: block;
    opacity: 1;
}

/* Przyciski nawigacyjne galerii */
.image-slider .prev, .image-slider .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: 24px;
    height: 24px;
    padding: 5px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    background-color: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 50%;
    transform: translateY(-50%);
    user-select: none;
}

.image-slider .prev {
    left: -10px;
}

.image-slider .next {
    right: -10px;
}

/* Kontener na cenę i przycisk kup */
.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

/* Cena produktu */
.price {
    font-size: 1.2rem;
    color: #ff4500;
    font-weight: bold;
}

/* Styl przycisku Kup */
.buy-button {
    padding: 10px 15px;
    font-size: 1rem;
    color: white;
    background-color: #ff4500;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.buy-button:hover {
    background-color: #e03d00;
}

/* Stylizacja głównego zdjęcia */
.main-image {
    width: 100%;
    max-width: 200px; /* Maksymalna szerokość głównego zdjęcia */
    height: auto;     /* Automatyczne dostosowanie wysokości proporcjonalnie */
    border-radius: 5px;
    margin: 10px 0;
    object-fit: cover; /* Dostosowanie obrazu do ramki bez zniekształceń */
}

/* Stylizacja responsywna dla urządzeń mobilnych */
@media (max-width: 768px) {
    .product-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .header .logo h1 {
        font-size: 1.2rem;
    }

    .navigation button {
        padding: 6px 12px;
        font-size: 0.9rem;
    }
    
    .product h2 {
        font-size: 1rem;
    }

    .price {
        font-size: 1rem;
    }
}
