/* --- category-carousel.css --- */
/* استایل های اصلی کتگوری کاروسل */
.ms-category-carousel {
    padding: 15px 0;
}

.ms-category-carousel .swiper-slide {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 12.5%;
}

@media (max-width: 1024px) {
    .ms-category-carousel .swiper-slide {
        width: 20%;
    }
}

@media (max-width: 767px) {
    .ms-category-carousel .swiper-slide {
        width: 25%;
    }
}

.ms-category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: transparent;
    border: none;
    border-radius: 0;
    text-decoration: none;
    transition: all 0.3s ease;
    height: auto;
    width: 100%;
}

.ms-category-image {
    overflow: hidden;
    margin-bottom: 8px;
}

.ms-category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}

.ms-category-content {
    flex: none;
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    text-align: center;
}

.ms-category-title {
    font-size: 14px;
    font-weight: 500;
    color: #192736;
    margin: 0;
    transition: color 0.3s ease;
    font-family: 'IRANSans', sans-serif;
    overflow-wrap: anywhere;
    text-align: center;
}

.ms-category-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: auto;
}

.ms-category-carousel .swiper-slide > .ms-category-card {
    height: auto;
}

/* فلش های ناوبری */
.ms-category-carousel .swiper-button-next,
.ms-category-carousel .swiper-button-prev {
    color: #111111;
    width: 22px;
    height: 22px;
    top: calc(50% + 12px);
    background: transparent;
}

.ms-category-carousel .swiper-button-next:after,
.ms-category-carousel .swiper-button-prev:after {
    font-size: 12px;
    font-weight: 600;
}

/* نقاط ناوبری */
.ms-category-carousel .swiper-pagination {
    position: relative;
    margin-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 8px;
}

.ms-category-carousel .swiper-pagination-bullet {
    background: #CCCCCC;
    opacity: 1;
    width: 44px;
    height: 44px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ms-category-carousel .swiper-pagination-bullet:after {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: inherit;
    opacity: 0.7;
}

.ms-category-carousel .swiper-pagination-bullet-active {
    background: #111111;
}

.ms-category-carousel .swiper-pagination-bullet-active:after {
    background: #ffffff;
    opacity: 1;
    width: 16px;
    height: 16px;
}

.ms-category-carousel .swiper-pagination-bullet:focus {
    outline: 2px solid #25A595;
    outline-offset: 2px;
}

@media (max-width: 767px) {
    .ms-category-carousel .swiper-pagination {
        margin-top: 15px;
        gap: 8px;
        padding: 6px;
    }

    .ms-category-carousel .swiper-pagination-bullet {
        width: 36px;
        height: 36px;
    }

    .ms-category-carousel .swiper-pagination-bullet:after {
        width: 10px;
        height: 10px;
    }

    .ms-category-carousel .swiper-pagination-bullet-active:after {
        width: 14px;
        height: 14px;
    }
}

@media (max-width: 480px) {
    .ms-category-carousel .swiper-pagination {
        gap: 6px;
        padding: 4px;
    }

    .ms-category-carousel .swiper-pagination-bullet {
        width: 32px;
        height: 32px;
        min-width: 32px;
        min-height: 32px;
    }
}

/* پیغام خالی */
.ms-empty-message {
    text-align: center;
    padding: 40px 20px;
    color: #6b7280;
    font-family: 'IRANSans', sans-serif;
    font-size: 16px;
    background: #f9fafb;
    border-radius: 8px;
    border: 2px dashed #e5e7eb;
}

/* حالت Fallback برای وقتی Swiper لود نمی شود */
.ms-category-carousel.fallback .swiper-wrapper {
    display: grid !important;
    gap: 8px;
    margin: 0 !important;
    grid-template-columns: repeat(8, 1fr);
}

.ms-category-carousel.fallback .swiper-slide {
    padding: 0 !important;
    height: auto !important;
}

.ms-category-carousel.fallback .swiper-button-next,
.ms-category-carousel.fallback .swiper-button-prev {
    display: none !important;
}

@media (max-width: 1024px) {
    .ms-category-carousel.fallback .swiper-wrapper {
        grid-template-columns: repeat(5, 1fr) !important;
    }
}

@media (max-width: 767px) {
    .ms-category-carousel.fallback .swiper-wrapper {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 480px) {
    .ms-category-carousel.fallback .swiper-wrapper {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* --- custom-slider.css --- */
/* -------------------- استایل های اسلایدر سفارشی -------------------------*/
.ms-custom-slider {
    position: relative;
    overflow: hidden;
    margin-bottom: 0 !important;
    width: 100%;
}

.ms-custom-slider.ms-auto-height {
    height: auto !important;
}

.ms-custom-slider.ms-auto-height .swiper-slide {
    height: auto;
}

.ms-custom-slider.ms-auto-height .ms-slide-image {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.ms-custom-slider.ms-custom-height .swiper-slide {
    height: 100%;
}

.ms-custom-slider.ms-custom-height .ms-slide-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ms-custom-slider .swiper-slide {
    position: relative;
}

.ms-slide-image {
    width: 100%;
    display: block;
}

.ms-slide-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

/* استایل های Swiper برای اسلایدر سفارشی */
.ms-custom-slider .swiper-button-next,
.ms-custom-slider .swiper-button-prev {
    color: #ffffff;
    width: 44px;
    height: 44px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.ms-custom-slider .swiper-button-next:after,
.ms-custom-slider .swiper-button-prev:after {
    font-size: 18px;
    font-weight: bold;
}

.ms-custom-slider .swiper-button-prev {
    right: 20px;
    left: auto;
}

.ms-custom-slider .swiper-button-next {
    left: 20px;
    right: auto;
}

/* نقاط ناوبری - بهبود یافته برای Touch targets */
.ms-custom-slider .swiper-pagination {
    position: absolute;
    bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 8px;
}

.ms-custom-slider .swiper-pagination-bullet {
    background: #CCCCCC;
    opacity: 1;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    margin: 0 !important;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* نقطه فعال با ظاهری واضح تر */
.ms-custom-slider .swiper-pagination-bullet-active {
    background: #111111;
}

/* ایجاد دایره داخلی برای حفظ ظاهر قدیمی اما با منطقه کلیک بزرگتر */
.ms-custom-slider .swiper-pagination-bullet:after {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: inherit;
    opacity: 0.7;
}

.ms-custom-slider .swiper-pagination-bullet-active:after {
    background: #111111;
    opacity: 1;
}

/* بهبود accessibility - focus state */
.ms-custom-slider .swiper-pagination-bullet:focus {
}




/* ریسپانسیو برای نقاط ناوبری */
@media (max-width: 1024px) {
    .ms-custom-slider .swiper-button-next,
    .ms-custom-slider .swiper-button-prev {
        width: 40px;
        height: 40px;
    }
    
    .ms-custom-slider .swiper-button-next:after,
    .ms-custom-slider .swiper-button-prev:after {
        font-size: 16px;
    }
    
    .ms-custom-slider .swiper-pagination {
        bottom: 15px;
        gap: 10px;
    }
    
    .ms-custom-slider .swiper-pagination-bullet {
    }
}

@media (max-width: 767px) {
    .ms-custom-slider .swiper-button-next,
    .ms-custom-slider .swiper-button-prev {
        width: 36px;
        height: 36px;
        display: none;
    }
    
    .ms-custom-slider .swiper-button-next:after,
    .ms-custom-slider .swiper-button-prev:after {
        font-size: 14px;
    }
    
    .ms-custom-slider .swiper-pagination {
        bottom: 10px;
        gap: 8px;
        padding: 6px;
    }
    
    .ms-custom-slider .swiper-pagination-bullet {
    margin: 0 6px !important;
    }
    
    .ms-custom-slider .swiper-pagination-bullet:after {
        width: 10px;
        height: 10px;
    }
    
    .ms-custom-slider .swiper-pagination-bullet-active:after {

    }
}

@media (max-width: 480px) {
    .ms-custom-slider .swiper-pagination {
        bottom: 8px;
        gap: 6px;
        padding: 4px;
    }
    
    .ms-custom-slider .swiper-pagination-bullet {
    }
    
    .ms-custom-slider .swiper-pagination-bullet:after {
        width: 8px;
        height: 8px;
    }
    
    .ms-custom-slider .swiper-pagination-bullet-active:after {

    }
}

/* حالت Fallback */
.ms-custom-slider.fallback .swiper-wrapper {
    display: flex !important;
    flex-direction: column;
    gap: 10px;
}

.ms-custom-slider.fallback .swiper-slide {
    display: block !important;
    width: 100% !important;
}

.ms-custom-slider.fallback .swiper-pagination,
.ms-custom-slider.fallback .swiper-button-next,
.ms-custom-slider.fallback .swiper-button-prev {
    display: none !important;
}

/* ریسپانسیو برای اسلایدر سفارشی */
@media (max-width: 1024px) {
    .ms-custom-slider .swiper-button-next,
    .ms-custom-slider .swiper-button-prev {
        width: 36px;
        height: 36px;
    }
    
    .ms-custom-slider .swiper-button-next:after,
    .ms-custom-slider .swiper-button-prev:after {
        font-size: 16px;
    }
    
    .ms-custom-slider .swiper-pagination {
        bottom: 15px;
    }
}

@media (max-width: 767px) {
    .ms-custom-slider .swiper-button-next,
    .ms-custom-slider .swiper-button-prev {
        width: 32px;
        height: 32px;
        display: none;
    }
    
    .ms-custom-slider .swiper-button-next:after,
    .ms-custom-slider .swiper-button-prev:after {
        font-size: 14px;
    }
    
    .ms-custom-slider .swiper-pagination {
        bottom: 10px;
    }
    
    /* نمایش اسلایدها در حالت Fallback برای موبایل */
    .ms-custom-slider.fallback .swiper-slide:not(:first-child) {
        display: none !important;
    }
}

/* بهبود نمایش در حالت ویرایشگر المنتور */
.elementor-editor-active .ms-custom-slider {
    min-height: 300px;
}

.elementor-editor-active .ms-custom-slider:before {
    content: "اسلایدر سفارشی - در حالت ویرایش";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #666;
    font-family: 'IRANSans';
    font-size: 14px;
    z-index: 1;
}

.elementor-editor-active .ms-custom-slider .swiper-slide {
    position: relative;
    z-index: 2;
}

/* انیمیشن برای اسلایدها */
.ms-custom-slider .swiper-slide {
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.ms-custom-slider .swiper-slide-active {
    opacity: 1;
}

/* استایل برای تصاویر لود نشده */
.ms-slide-image:not([src]) {
    background: #f8f9fa;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ms-slide-image:not([src]):after {
    content: "تصویر اسلاید";
    color: #999;
    font-family: 'IRANSans';
    font-size: 14px;
}

/* پشتیبانی از حالت RTL */
.ms-custom-slider .swiper-rtl .swiper-button-next {
    right: auto;
    left: 20px;
}

.ms-custom-slider .swiper-rtl .swiper-button-prev {
    left: auto;
    right: 20px;
}

/* استایل برای حالت autoplay */
.ms-custom-slider .swiper-pagination-bullet {
    transition: all 0.3s ease;
}

/* بهبود عملکرد تاچ در موبایل */
.ms-custom-slider .swiper-wrapper {
    touch-action: pan-y;
}

/* استایل برای زمانی که اسلایدر در حال لودینگ است */
.ms-custom-slider.swiper-container-initialized .swiper-slide {
    opacity: 1;
}

/* پشتیبانی از افکت fade */
.ms-custom-slider .swiper-fade .swiper-slide {
    opacity: 0 !important;
}

.ms-custom-slider .swiper-fade .swiper-slide-active,
.ms-custom-slider .swiper-fade .swiper-slide-duplicate-active {
    opacity: 1 !important;
}

@media (min-width: 768px) {
    .ms-custom-slider .swiper {
        padding-bottom: 60px;
    }
}

/* استایل برای دسکتاپ های بزرگ */
@media (min-width: 1440px) {
    .ms-custom-slider .swiper-button-next,
    .ms-custom-slider .swiper-button-prev {
        width: 50px;
        height: 50px;
    }
    
    .ms-custom-slider .swiper-button-next:after,
    .ms-custom-slider .swiper-button-prev:after {
        font-size: 20px;
    }
}

/* استایل برای تبلت در حالت landscape */
@media (max-width: 1024px) and (orientation: landscape) {
    .ms-custom-slider.ms-auto-height .ms-slide-image {
        max-height: 80vh;
        object-fit: contain;
    }
}

/* پشتیبانی از حالت چاپ */
@media print {
    .ms-custom-slider .swiper-button-next,
    .ms-custom-slider .swiper-button-prev,
    .ms-custom-slider .swiper-pagination {
        display: none !important;
    }
    
    .ms-custom-slider .swiper-wrapper {
        display: block !important;
    }
    
    .ms-custom-slider .swiper-slide {
        display: block !important;
        page-break-inside: avoid;
        margin-bottom: 20px;
    }
}

/* استایل های بهینه سازی LCP برای اسلایدر */
.ms-lcp-image {
    content-visibility: auto;
    will-change: transform;
}

.ms-custom-slider[data-lcp-optimized="true"] .swiper-slide-active img {
    animation: msLCPLoaded 0.3s ease-out;
}

@keyframes msLCPLoaded {
    0% { opacity: 0.9; transform: translateY(5px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* کاهش motion برای کاربرانی که ترجیح می دهند */
@media (prefers-reduced-motion: reduce) {
    .ms-custom-slider .swiper-slide,
    .ms-custom-slider .swiper-pagination-bullet,
    .ms-custom-slider .swiper-button-next,
    .ms-custom-slider .swiper-button-prev {
        transition: none !important;
    }
    
    @keyframes msLCPLoaded {
        0% { opacity: 1; }
        100% { opacity: 1; }
    }
}

/* بهبود accessibility برای اسکرین ریدرها */
.ms-custom-slider .swiper-pagination-bullet {
    position: relative;
}

.ms-custom-slider .swiper-pagination-bullet .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* اضافه کردن label برای accessibility */
.ms-custom-slider .swiper-pagination-bullet[aria-label] {
    cursor: pointer;
}

/* استایل focus برای keyboard navigation */
.ms-custom-slider .swiper-pagination-bullet:focus-visible {
    outline: 3px solid #25A595;
    outline-offset: 3px;
    box-shadow: 0 0 0 3px rgba(37, 165, 149, 0.3);
}

/* افزایش contrast برای accessibility */
.ms-custom-slider .swiper-pagination-bullet-active {
    background: #111111;
    box-shadow: 0 0 0 2px #ffffff;
}

@media (prefers-contrast: high) {
    .ms-custom-slider .swiper-pagination-bullet-active {
        background: #000000;
        box-shadow: 0 0 0 3px #ffffff;
    }
}

/* --- banners-carousel.css --- */
/*--------------------------- استایل های بنر کاروسل --------------------------*/
.ms-banners-carousel {
    position: relative;
    padding: 15px 0;
}

.ms-banner-slide {
    display: flex;
    align-items: center;
    justify-content: center;
}

.ms-banner-link {
    display: block;
    width: 100%;
    text-decoration: none;
}

.ms-banner-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

/* فلش های ناوبری برای بنرها */
.ms-banners-carousel .swiper-button-next,
.ms-banners-carousel .swiper-button-prev {
    color: #111111;
    width: 22px;
    height: 22px;
    top: calc(50% + 12px);
    background: transparent;
}

.ms-banners-carousel .swiper-button-next:after,
.ms-banners-carousel .swiper-button-prev:after {
    font-size: 12px;
    font-weight: 600;
}

/* نقاط ناوبری - بهبود یافته برای Touch targets */
.ms-banners-carousel .swiper-pagination {
    position: relative;
    margin-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 8px;
}

.ms-banners-carousel .swiper-pagination-bullet {
    background: #CCCCCC;
    opacity: 1;
    width: 44px;
    height: 44px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ms-banners-carousel .swiper-pagination-bullet:after {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: inherit;
    opacity: 0.7;
}

.ms-banners-carousel .swiper-pagination-bullet-active {
    background: #111111;
}

.ms-banners-carousel .swiper-pagination-bullet-active:after {
    background: #ffffff;
    opacity: 1;
    width: 16px;
    height: 16px;
}

/* بهبود accessibility - focus state */
.ms-banners-carousel .swiper-pagination-bullet:focus {
    outline: 2px solid #25A595;
    outline-offset: 2px;
}




@media (max-width: 767px) {
    .ms-banners-carousel .swiper-pagination {
        margin-top: 15px;
        gap: 8px;
        padding: 6px;
    }
    
    .ms-banners-carousel .swiper-pagination-bullet {
        width: 36px;
        height: 36px;
    }
    
    .ms-banners-carousel .swiper-pagination-bullet:after {
        width: 10px;
        height: 10px;
    }
    
    .ms-banners-carousel .swiper-pagination-bullet-active:after {
        width: 14px;
        height: 14px;
    }
}

@media (max-width: 480px) {
    .ms-banners-carousel .swiper-pagination {
        gap: 6px;
        padding: 4px;
    }
    
    .ms-banners-carousel .swiper-pagination-bullet {
        width: 32px;
        height: 32px;
        min-width: 32px;
        min-height: 32px;
    }
}

/* حالت Fallback */
.ms-banners-carousel.fallback .swiper-wrapper {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin: 0 !important;
}

.ms-banners-carousel.fallback .swiper-slide {
    padding: 0 !important;
}

@media (max-width: 1024px) {
    .ms-banners-carousel.fallback .swiper-wrapper {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 767px) {
    .ms-banners-carousel.fallback .swiper-wrapper {
        grid-template-columns: 1fr !important;
    }
    
    .ms-banners-carousel .swiper-pagination {
        margin-top: 15px;
    }
}

/* --- brand-carousel.css --- */
/* -------------------- استایل های برند کاروسل -------------------------*/
.ms-brand-carousel-widget {
    width: 100%;
}

.ms-brand-carousel {
    position: relative;
    padding: 0px;
}

.ms-brand-slide {
    display: flex;
    align-items: center;
    justify-content: center;
}

.ms-brand-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    width: 100%;
}

.ms-brand-image {
    overflow: hidden;
    margin-bottom: 10px;
}

.ms-brand-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.ms-brand-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ms-brand-title {
    font-size: 14px;
    font-weight: 400;
    color: #7a7a7a;
    margin: 0;
    transition: color 0.3s ease;
    font-family: 'IRANSans', sans-serif;
}

.ms-brand-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

/* استایل هدر برند */
.ms-brand-carousel-widget .ms-widget-header {
    margin-bottom: 0px;
}

.ms-brand-carousel-widget .ms-header-title {
    font-size: 16px;
    font-weight: 500;
    color: #192736;
    margin: 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #25A595;
    display: inline-block;
    font-family: 'IRANSans', sans-serif;
}

/* فلش های ناوبری برای برندها */
.ms-brand-carousel .swiper-button-next,
.ms-brand-carousel .swiper-button-prev {
    color: #111111;
    width: 22px;
    height: 22px;
    top: calc(50% + 12px);
    background: transparent;
}

.ms-brand-carousel .swiper-button-next:after,
.ms-brand-carousel .swiper-button-prev:after {
    font-size: 12px;
    font-weight: 600;
}

/* موقعیت فلش ها */
.ms-brand-carousel .swiper-button-prev {
    right: -8px;
}

.ms-brand-carousel .swiper-button-next {
    left: -8px;
}

/* نقاط ناوبری - بهبود یافته برای Touch targets */
.ms-brand-carousel .swiper-pagination {
    position: relative;
    margin-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 8px;
}

.ms-brand-carousel .swiper-pagination-bullet {
    background: #CCCCCC;
    opacity: 1;
    width: 44px;
    height: 44px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ms-brand-carousel .swiper-pagination-bullet:after {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: inherit;
    opacity: 0.7;
}

.ms-brand-carousel .swiper-pagination-bullet-active {
    background: #111111;
}

.ms-brand-carousel .swiper-pagination-bullet-active:after {
    background: #ffffff;
    opacity: 1;
    width: 16px;
    height: 16px;
}

/* بهبود accessibility - focus state */
.ms-brand-carousel .swiper-pagination-bullet:focus {
    outline: 2px solid #25A595;
    outline-offset: 2px;
}




@media (max-width: 767px) {
    .ms-brand-carousel .swiper-pagination {
        margin-top: 15px;
        gap: 8px;
        padding: 6px;
    }
    
    .ms-brand-carousel .swiper-pagination-bullet {
        width: 36px;
        height: 36px;
    }
    
    .ms-brand-carousel .swiper-pagination-bullet:after {
        width: 10px;
        height: 10px;
    }
    
    .ms-brand-carousel .swiper-pagination-bullet-active:after {
        width: 14px;
        height: 14px;
    }
}

@media (max-width: 480px) {
    .ms-brand-carousel .swiper-pagination {
        gap: 6px;
        padding: 4px;
    }
    
    .ms-brand-carousel .swiper-pagination-bullet {
        width: 32px;
        height: 32px;
        min-width: 32px;
        min-height: 32px;
    }
}

/* حالت Fallback */
.ms-brand-carousel.fallback .swiper-wrapper {
    display: grid !important;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
    margin: 0 !important;
}

.ms-brand-carousel.fallback .swiper-slide {
    padding: 0 !important;
}

@media (max-width: 1024px) {
    .ms-brand-carousel.fallback .swiper-wrapper {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}

@media (max-width: 767px) {
    .ms-brand-carousel.fallback .swiper-wrapper {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .ms-brand-carousel .swiper-pagination {
        margin-top: 15px;
    }
}
