/* ============================================================
 * Shortcode: [brand_slider] / [product_brands_slider]
 * File: assets/css/brand-slider.css
 * ============================================================ */

.brand-slider-wrapper {
    position: relative;
    max-width: 1240px;
    margin: 0 auto;
    padding: 25px 45px;
    background: #ffffff;
    overflow: hidden;
}

.brand-swiper-container {
    padding: 12px 6px !important;
    margin: -12px -6px !important;
    overflow: visible !important;
}

/* Fallback display before Swiper initializes or in UX Builder */
.brand-swiper-container:not(.swiper-initialized) .swiper-wrapper {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    align-items: center;
}

.brand-swiper-container:not(.swiper-initialized) .swiper-slide {
    width: 100% !important;
}

/* Swiper Slide & Brand Card */
.brand-swiper-container .swiper-slide {
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-item-card {
    width: 100%;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    background: #ffffff;
    border: 1px solid #edf2f7;
    border-radius: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    position: relative;
    z-index: 1;
}

.brand-item-card:hover {
    border-color: #B80E22;
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(184, 14, 34, 0.15);
    z-index: 10;
}

.brand-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.brand-logo-img {
    max-width: 100%;
    max-height: 75px;
    object-fit: contain;
    filter: grayscale(0%);
    transition: all 0.3s ease;
    display: block;
}

.brand-item-card:hover .brand-logo-img {
    transform: scale(1.06);
}

.brand-name-text {
    font-size: 15px;
    font-weight: 700;
    color: #2d3748;
    text-align: center;
}

/* Navigation Buttons */
.brand-slider-wrapper .brand-btn-prev,
.brand-slider-wrapper .brand-btn-next {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #4a5568;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.25s ease;
    top: 50%;
    margin-top: -19px;
}

.brand-slider-wrapper .brand-btn-prev::after,
.brand-slider-wrapper .brand-btn-next::after {
    font-size: 14px;
    font-weight: 700;
}

.brand-slider-wrapper .brand-btn-prev {
    left: 4px;
}

.brand-slider-wrapper .brand-btn-next {
    right: 4px;
}

.brand-slider-wrapper .brand-btn-prev:hover,
.brand-slider-wrapper .brand-btn-next:hover {
    background: #c8102e;
    color: #ffffff;
    border-color: #c8102e;
    transform: scale(1.08);
}

/* Pagination Dots */
.brand-slider-wrapper .brand-pagination {
    position: relative;
    margin-top: 18px;
    bottom: 0 !important;
}

.brand-slider-wrapper .brand-pagination .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: #cbd5e0;
    opacity: 1;
    transition: all 0.3s ease;
    margin: 0 4px;
}

.brand-slider-wrapper .brand-pagination .swiper-pagination-bullet-active {
    background: #c8102e;
    width: 14px;
    border-radius: 5px;
}

/* Responsive */
@media (max-width: 991px) {
    .brand-slider-wrapper {
        padding: 20px 30px;
    }
    
    .brand-item-card {
        height: 85px;
    }
    
    .brand-logo-img {
        max-height: 60px;
    }
}

@media (max-width: 640px) {
    .brand-slider-wrapper {
        padding: 15px 5px;
    }
    
    .brand-slider-wrapper .brand-btn-prev,
    .brand-slider-wrapper .brand-btn-next {
        display: none;
    }
    
    .brand-swiper-container:not(.swiper-initialized) .swiper-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }
}
