.ms-products-slider-section {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
    font-family: var(--font-family, sans-serif);
}

.ms-products-slider-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 40px;
}

.ms-products-slider-title {
    font-size: var(--fs-32);
    font-weight: 300;
    margin: 0;
    color: var(--text-dark);
    letter-spacing: -0.5px;
}

.ms-products-slider-view-all {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: var(--fs-14);
    color: var(--text-secondary);
    text-decoration: none;
    cursor: pointer;
    transition: color 0.3s;
}

.ms-products-slider-view-all:hover {
    color: var(--text-dark);
}

.ms-view-all-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: var(--bg-gray-200);
    border-radius: 50%;
    color: var(--text-gray-500);
}

/* ============================================================
   CUSTOM SCROLL-SNAP SLIDER (replaces Splide)
   ============================================================ */
.ms-custom-slider {
    position: relative;
}

.ms-custom-slider-track {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 20px;
}

.ms-custom-slider-track::-webkit-scrollbar {
    display: none;
}

.ms-custom-slider-track > li.product,
.ms-custom-slider-track > .ms-product-card {
    flex: 0 0 calc(25% - 22.5px);
    min-width: 0;
    scroll-snap-align: start;
    margin-bottom: 0 !important;
}

/* Arrows */
.ms-custom-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: var(--white);
    border: 1px solid var(--border-strong);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px var(--overlay-light);
    z-index: 10;
    padding: 0;
}

.ms-custom-arrow:hover {
    background: var(--bg-dark);
    color: var(--white);
    border-color: var(--bg-dark);
}

.ms-custom-arrow--prev {
    left: -24px;
}

.ms-custom-arrow--next {
    right: -24px;
}

/* Responsive */
@media (max-width: 1024px) {
    .ms-custom-slider-track {
        gap: 20px;
    }
    .ms-custom-slider-track > li.product,
    .ms-custom-slider-track > .ms-product-card {
        flex: 0 0 calc(33.333% - 13.33px);
    }
}

@media (max-width: 768px) {
    .ms-custom-slider-track {
        gap: 15px;
    }
    .ms-custom-slider-track > li.product,
    .ms-custom-slider-track > .ms-product-card {
        flex: 0 0 calc(50% - 7.5px);
    }
}

@media (max-width: 600px) {
    .ms-products-slider-title {
        font-size: var(--fs-24);
    }
    .ms-custom-arrow--prev {
        left: 0;
    }
    .ms-custom-arrow--next {
        right: 0;
    }
}

@media (max-width: 480px) {
    .ms-custom-slider-track {
        gap: 10px;
    }
    .ms-custom-slider-track > li.product,
    .ms-custom-slider-track > .ms-product-card {
        flex: 0 0 calc(50% - 5px);
    }
}