/* ===================================
   SIPZZ - CAROUSEL.CSS
   Carousel and slider styles
   =================================== */

/* ===================================
   CAROUSEL CONTAINER
   =================================== */

.related-products-section,
.carousel-section {
    background-color: var(--bg-white);
    padding: 60px 0;
}

.related-products-section h2 {
    text-align: center;
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 50px;
}

.carousel-container {
    position: relative;
    padding: 0 40px;
}

.carousel-window {
    overflow: hidden;
}

.carousel-track {
    display: flex;
    gap: 20px;
    transition: transform 0.5s ease-in-out;
}

.carousel-track.no-transition {
    transition: none;
}

/* ===================================
   CAROUSEL NAVIGATION
   =================================== */

.carousel-btn {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: background-color 0.2s;
}

.carousel-btn:hover {
    background-color: #f0f0f0;
}

.carousel-btn-left {
    left: 0;
}

.carousel-btn-right {
    right: 0;
}

/* ===================================
   RELATED PRODUCT CARDS
   =================================== */

.related-product-card {
    text-decoration: none;
    color: inherit;
    display: block;
    flex-shrink: 0;
    width: calc(25% - 15px);
}

.related-product-card-image-wrapper {
    position: relative;
    background-color: transparent;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    transition: transform 0.2s ease-in-out;
}

.related-product-card-image-wrapper::after {
    content: '';
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 70%;
    height: 15px;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    filter: blur(15px);
    z-index: -1;
}

.related-product-card:hover .related-product-card-image-wrapper {
    transform: translateY(-5px);
}

.related-product-card-image-wrapper img {
    width: 100%;
    height: 250px;
    object-fit: contain;
}

.related-product-card-info h3 {
    font-size: 20px;
    font-weight: bold;
    margin: 0 0 5px 0;
    color: var(--text-primary);
}

.related-product-card-info p {
    font-size: 18px;
    font-weight: bold;
    margin: 0;
    color: var(--text-primary);
}

.related-product-card-colors {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

/* ===================================
   PRODUCT BADGES
   =================================== */

.product-badges {
    position: absolute;
    top: 15px;
    left: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.badge {
    background-color: #8cd2f4;
    color: #002855;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: bold;
    border-radius: 4px;
}

/* ===================================
   COLOR DOTS (Carousel variant selector)
   =================================== */

.color-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1px solid var(--text-primary);
    cursor: pointer;
}

/* ===================================
   RESPONSIVE
   =================================== */

@media (max-width: 1024px) {
    .related-product-card {
        width: calc(33.33% - 14px);
    }
}

@media (max-width: 900px) {
    .related-product-card {
        width: calc(50% - 10px);
    }
}

@media (max-width: 600px) {
    .carousel-container {
        padding: 0 10px;
    }

    .carousel-btn {
        display: none;
    }

    .carousel-window {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
    }

    .carousel-track {
        scroll-snap-align: start;
    }

    .related-product-card {
        width: 70%;
        scroll-snap-align: start;
    }
}