@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css');

#wvr-virtual-fitting-room {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    padding: 40px 0;
    background: #f9f9f9;
}

.wvr-slider-container {
    width: 100%;
    max-width: 1200px;
    padding: 0 20px;
}

.wvr-slider {
    display: flex;
    overflow: hidden;
}

.wvr-slide {
    position: relative;
    transition: all 0.4s ease;
    transform: scale(0.85);
    opacity: 0.4;
    padding: 10px;
}

.wvr-slide.slick-center {
    transform: scale(1.05);
    opacity: 1;
    z-index: 2;
}

.wvr-slide img {
    max-width: 100%;
    max-height: 380px;
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    object-fit: cover;
}

.wvr-add-to-cart {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: #1e1e1e;
    color: #fff;
    border: none;
    padding: 10px;
    cursor: pointer;
    display: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: background 0.3s ease;
}

.wvr-add-to-cart:hover {
    background: #ff4081;
}

.wvr-add-to-cart i {
    font-size: 20px;
}

.wvr-slide.slick-center .wvr-add-to-cart {
    display: flex;
}

/* Modal */
#wvr-variant-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 30, 30, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

#wvr-variant-modal-content {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    max-width: 480px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    position: relative;
}

#wvr-variant-options {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 300px;
    overflow-y: auto;
    padding-right: 10px;
}

.wvr-variant {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s ease;
}
.wvr-variant:hover {
    background: #f4f4f4;
}

#wvr-select-variant,
#wvr-variant-modal-close {
    margin-top: 20px;
    padding: 10px 20px;
    background: #1e88e5;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    margin-right: 10px;
    transition: background 0.3s ease;
}

#wvr-variant-modal-close {
    background: #dc3545;
}

#wvr-select-variant:hover {
    background: #1565c0;
}
#wvr-variant-modal-close:hover {
    background: #c82333;
}

/* Wskaźnik ładowania */
#wvr-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 30, 30, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
}

.wvr-loading-content {
    display: flex;
    align-items: center;
    justify-content: center;
}

.wvr-spinner {
    border: 5px solid rgba(255, 255, 255, 0.2);
    border-top: 5px solid #ffffff;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsywność */
@media (max-width: 768px) {
    .wvr-slide img {
        max-height: 300px;
    }

    .wvr-add-to-cart {
        width: 35px;
        height: 35px;
    }

    .wvr-add-to-cart i {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .wvr-slide img {
        max-height: 250px;
    }

    #wvr-variant-modal-content {
        padding: 20px;
    }

    .wvr-variant {
        font-size: 14px;
    }
}

/* Styl dla kontenera górnego slidera */
#wvr-virtual-fitting-room .wvr-slider-container:first-child {
    margin-bottom: -60px; /* nachodzenie dolnego slidera na górny */
    z-index: 2;
    position: relative;
}

/* Styl dla kontenera dolnego slidera */
#wvr-virtual-fitting-room .wvr-slider-container:last-child {
    z-index: 1;
    position: relative;
}

