
/* Popup Slider Modal Styles */
.popup-slider-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.popup-slider-overlay.show {
    display: flex;
    opacity: 1;
}

.popup-slider-container {
    position: relative;
    max-width: 95%;
    max-height: 95vh;
    width: 1200px;
    background: transparent;
    border-radius: 12px;
    overflow: visible;
    box-shadow: none;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    padding-bottom: 0;
}

.popup-slider-overlay.show .popup-slider-container {
    transform: scale(1);
}

.popup-slider-close {
    position: absolute;
    top: 0;
    right: 0;
    width: 45px;
    height: 45px;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 0;
    backdrop-filter: blur(5px);
    transform: translate(50%, -50%);
}

.popup-slider-close:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translate(50%, -50%) rotate(90deg);
}


.popup-slider-nav {
    position: absolute;
    top: 45%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 0;
    backdrop-filter: blur(5px);
}

.popup-slider-nav:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translateY(-50%) scale(1.1);
}

.popup-slider-prev {
    left: 15px;
}

.popup-slider-next {
    right: 15px;
}

.popup-slider-wrapper {
    position: relative;
    width: 100%;
    min-height: 300px;
    border-radius: 12px;
    display: block;
}

.popup-slider-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    opacity: 0;
    transition: opacity 0.5s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 15px;
    z-index: 1;
}

.popup-slider-item.active {
    opacity: 1;
}

.popup-image-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.popup-slider-item img {
    max-width: 1000px;
    max-height: 85vh;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    border-radius: 12px;
}

.popup-detail-link {
    margin-top: 0;
    display: inline-block;
    padding: 8px 15px;
    background: none;
    color: #fff;
    text-decoration: none;
    border-radius: 30px;
    border: 1px solid #fff;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 10001;
    position: relative;
    pointer-events: auto;
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0.3);
    touch-action: manipulation;
}

.popup-detail-link:hover {
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.popup-slider-wrapper {
    border-radius: 12px;
}

.popup-slider-item {
    border-radius: 12px;
    overflow: hidden;
}

.popup-slider-controls {
    position: relative;
    bottom: auto;
    left: auto;
    transform: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    z-index: 1;
    width: 100%;
    margin-top: 15px;
    padding-top: 15px;
}

.popup-slider-indicators {
    display: flex;
    gap: 10px;
}

.popup-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.popup-indicator.active {
    background: #fff;
    width: 30px;
    border-radius: 6px;
}

.popup-slider-counter {
    position: absolute;
    top: 0;
    left: 0;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    white-space: nowrap;
    font-family: 'Montserrat', sans-serif;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10001;
    backdrop-filter: blur(5px);
    text-align: center;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    padding: 0;
}

.popup-slider-counter svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 50px;
    height: 50px;
    transform: rotate(-90deg);
}

.popup-slider-counter svg circle {
    fill: none;
    stroke: #fff;
    stroke-width: 2.5;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.1s linear;
}


@media (max-width: 768px) {


    .popup-slider-close {
        width: 40px;
        height: 40px;
        top: 0;
        right: 0;
        transform: translate(50%, -50%);
    }
    
    .popup-slider-close:hover {
        transform: translate(50%, -50%) rotate(90deg);
    }
    
    .popup-detail-link {
        padding: 8px 16px;
        font-size: 12px;
        z-index: 10001;
        position: relative;
    }
    
    .popup-slider-item img {
        max-width: min(100%, 500px);
        max-height: none;
    }
    
    .popup-slider-nav {
        width: 40px;
        height: 40px;
    }
    
    .popup-slider-prev {
        left: 10px;
    }
    
    .popup-slider-next {
        right: 10px;
    }
    
    .popup-slider-controls {
        bottom: auto;
        margin-top: 12px;
        gap: 8px;
    }
    
    .popup-slider-container {
        padding-bottom: 0;
    }
    
    .popup-slider-indicators {
        gap: 8px;
    }
    
    .popup-indicator {
        width: 10px;
        height: 10px;
    }
    
    .popup-indicator.active {
        width: 25px;
    }
    
}
