/* =====================================================
   52. PRODUCT GALLERY CAROUSEL & PARALLAX
   Style dla karuzeli Bootstrap i parallax banneru
===================================================== */

/* ===================================
   PARALLAX BANNER - 100% SZEROKOŚCI
   =================================== */

.product-parallax-banner {
    position: relative;
    width: 100%;
    max-height: 600px;
    min-height: 500px;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    overflow: hidden;
    padding: 60px 0;
    will-change: background-position;
}

/* Container wewnątrz banneru */
.product-parallax-banner .container {
    position: relative;
    z-index: 10;
    background: transparent
}

/* ===================================
   BOOTSTRAP CAROUSEL - GALERIA PRODUKTU
   =================================== */
.product-image-carousel {
    position: relative;
    z-index: 2;
    background: url('../images/pod_produkt.webp') center center no-repeat;
    background-size: cover;
    border-radius: 0;
    padding: 24px;
    box-shadow: none;
}

.product-image-carousel .carousel-inner {
    border-radius: 0;
    overflow: hidden;
    padding: 30px;
}

.product-image-carousel .carousel-item {
    transition: transform 0.6s ease-in-out;
}

.product-image-carousel .carousel-item img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

/* Carousel Controls (strzałki) */
.product-image-carousel .carousel-control-prev,
.product-image-carousel .carousel-control-next {
    width: 50px;
    height: 50px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(214, 194, 161, 0.7);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease, background 0.3s ease;
}

.product-image-carousel:hover .carousel-control-prev,
.product-image-carousel:hover .carousel-control-next {
    opacity: 1;
}

.product-image-carousel .carousel-control-prev:hover,
.product-image-carousel .carousel-control-next:hover {
    background: rgba(214, 194, 161, 0.95);
}

.product-image-carousel .carousel-control-prev {
    left: 10px;
}

.product-image-carousel .carousel-control-next {
    right: 10px;
}

.product-image-carousel .carousel-control-prev-icon,
.product-image-carousel .carousel-control-next-icon {
    width: 24px;
    height: 24px;
}

/* Indicators (kropki) */
.product-image-carousel .carousel-indicators {
    margin-bottom: -10px;
    z-index: 2;
    display: none !important;
}

.product-image-carousel .carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(214, 194, 161, 0.5);
    border: none;
    margin: 0 6px;
    opacity: 1;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.product-image-carousel .carousel-indicators [data-bs-target].active {
    background-color: #d6c2a1;
    transform: scale(1.3);
}

/* ===================================
   RESPONSIVENESS - MOBILE
   =================================== */

@media (max-width: 992px) {
    .product-parallax-banner {
        min-height: 400px;
    }

    .product-image-carousel {
        padding: 16px;
    }

    .product-image-carousel .carousel-item img {
        max-height: 400px;
    }
}

@media (max-width: 768px) {
    .product-parallax-banner {
        min-height: 350px;
        padding: 30px 0;
    }

    .product-image-carousel {
        padding: 12px;
    }

    .product-image-carousel .carousel-item img {
        max-height: 300px;
    }

    .product-image-carousel .carousel-control-prev,
    .product-image-carousel .carousel-control-next {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 576px) {
    .product-parallax-banner {
        min-height: 300px;
        padding: 20px 0;
    }

    .product-image-carousel .carousel-item img {
        max-height: 250px;
    }
}

/* ===================================
   PRZEZROCZYSTE TŁO PRODUKTÓW
   Produkty z przezroczystym tłem
   =================================== */

.product-image-carousel .carousel-item img.has-transparency {
    background: linear-gradient(135deg, #f7e9d3 0%, #ffffff 100%);
    padding: 20px;
}

/* Shimmer effect podczas ładowania obrazków */
.product-image-carousel .carousel-item.loading {
    background: linear-gradient(90deg, #f5f5f5 25%, #e0e0e0 50%, #f5f5f5 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* ===================================
   ZOOM EFFECT NA HOVER (opcjonalny)
   =================================== */

.product-image-carousel .carousel-item img {
    transition: transform 0.5s ease;
}

.product-image-carousel .carousel-item:hover img {
    transform: scale(1.03);
}
