/* ========================================
   CAROUSEL ABERTO - Base Styles
   ======================================== */

.custom-open-carousel-wrapper {
    position: relative !important;
    width: 100%;
    overflow: hidden !important;
    z-index: 9;
    margin-bottom: 30px;
}

.custom-open-carousel-wrapper .swiper {
    position: relative;
    width: 100%;
    overflow: visible;
}

/* ========================================
   SLIDES E ITENS
   ======================================== */

.custom-open-carousel-wrapper .swiper-slide {
    height: auto;
    display: flex;
    align-items: stretch;
}

.custom-open-carousel-wrapper .carousel-item {
    position: relative;
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
}

.custom-open-carousel-wrapper .carousel-item a {
    display: block;
    width: 100%;
}

.custom-open-carousel-wrapper .carousel-item img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.custom-open-carousel-wrapper .carousel-item:hover img {
    transform: scale(1.05);
    filter: brightness(0.9);
}

/* ========================================
   NAVEGAÇÃO
   ======================================== */

.custom-open-carousel-wrapper .swiper-button-prev,
.custom-open-carousel-wrapper .swiper-button-next {
    color: #fff !important;
    background-color: rgba(0, 0, 0, 0.5);
    width: 50px !important;
    height: 50px !important;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.custom-open-carousel-wrapper .swiper-button-prev:after,
.custom-open-carousel-wrapper .swiper-button-next:after {
    font-size: 18px !important;
}

.custom-open-carousel-wrapper .swiper-button-prev:hover,
.custom-open-carousel-wrapper .swiper-button-next:hover {
    background-color: rgba(255, 255, 255, 0.3);
    color: #000 !important;
}

/* ========================================
   ÍCONES (Lock, Hourglass)
   ======================================== */

.custom-open-carousel-wrapper .lock-icon,
.custom-open-carousel-wrapper .hourglass-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 17px;
    color: #4a4a4a;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    z-index: 10;
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

.hide-comments {
    display: none !important;
}

.carousel-item-message {
    text-align: center !important;
}

/* ========================================
   RESPONSIVO - Mobile
   ======================================== */

@media (max-width: 767px) {
    .custom-open-carousel-wrapper .swiper-button-prev,
    .custom-open-carousel-wrapper .swiper-button-next {
        width: 35px !important;
        height: 35px !important;
    }

    .custom-open-carousel-wrapper .swiper-button-prev:after,
    .custom-open-carousel-wrapper .swiper-button-next:after {
        font-size: 14px !important;
    }

    .custom-open-carousel-wrapper .lock-icon,
    .custom-open-carousel-wrapper .hourglass-icon {
        width: 35px;
        height: 35px;
        font-size: 18px;
        top: 5px;
        right: 5px;
    }
}

@media (max-width: 480px) {
    .custom-open-carousel-wrapper .lock-icon,
    .custom-open-carousel-wrapper .hourglass-icon {
        width: 30px;
        height: 30px;
        font-size: 14px;
        top: 10px;
        right: 10px;
    }
}

/* ========================================
   SINGLE SLIDE FIX - Mobile
   Quando há apenas 1 slide, limitar tamanho
   ======================================== */

@media (max-width: 767px) {
    .custom-open-carousel-wrapper.single-slide .swiper-slide {
        max-width: 80% !important;
        margin: 0 auto !important;
    }

    .custom-open-carousel-wrapper.single-slide .swiper-wrapper {
        justify-content: center !important;
    }
}
