/* Container & Layout */
.brand-slider-container {
    position: relative;
    padding: 0 20px;
}

.brand-slider {
    overflow: hidden;
}

/* The Individual Card */
.brand-card {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 70px; 
    padding: 12px 16px;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #f3f4f6; /* gray-100 */
    transition: all 0.3s ease;
    text-decoration: none;
    margin: 5px; /* space for shadow */
    outline: none!important;
}

.brand-card:hover {
    border-color: #e5a2c9;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.brand-logo {
    max-height: 56px; /* max-h-14 */
    width: auto;
    object-fit: contain;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.brand-card:hover .brand-logo {
    opacity: 1;
}

/* Navigation Buttons */
.brand-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #71043D;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s ease;
}

/* Ensure the SVGs have actual dimensions and are visible */
.brand-slider-btn svg {
    width: 16px !important;
    height: 16px !important;
    display: block; /* Prevents alignment issues */
    overflow: visible; /* Ensures strokes aren't clipped */
}

/* Ensure the path inherits the color from the button */
.brand-slider-btn svg path {
    stroke: #71043D !important; /* Force the color directly if currentColor fails */
}

/* Fix flex centering for the button icon */
.brand-slider-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.brand-slider-container:hover .brand-slider-btn {
    opacity: 1;
}

.brand-slider-btn:hover, .brand-slider-btn:active, .brand-slider-btn:focus, .brand-slider-btn:visited {
    background-color: #f4e0eb;
}

.brand-slider-btn.prev { left: -10px; }
.brand-slider-btn.next { right: -10px; }

.brand-slider-btn:disabled {
    opacity: 0 !important;
    pointer-events: none;
}

/* Ensure the Mega Menu content doesn't clip the slider or shadows */
.ast-mm-custom-content, 
.recommended-brand-list-container {
    overflow: visible !important;
}
.recommended-brand-list-container {
    max-width: 1200px !important; /* Ensure it can expand to fit the slider */
    margin: 0 auto; /* Center it within the Mega Menu */
}

/* Fix for the massive width issue if JS fails to update immediately */
.brand-slider .swiper-slide {
    width: auto;
}