/* My Candy Shop HomeSlider 1.4.1 sans fleches -- strictly scoped to .mcs-homeslider.
 * No #homeslider ID, no bxSlider CSS/JS, no global mobile-header rules.
 * Do not introduce unscoped selectors in this stylesheet.
 */
.mcs-homeslider {
    --mcs-accent: #12bce4;
    --mcs-slider-height: 300px;
    --mcs-mobile-ratio: 5 / 6;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    position: relative;
    z-index: 0;
    margin: 0 0 22px;
    overflow: hidden;
    border-radius: 12px;
    background: #f5f7fa;
}
.mcs-homeslider *, .mcs-homeslider *::before, .mcs-homeslider *::after { box-sizing: border-box; }
.mcs-homeslider__viewport {
    width: 100%;
    height: var(--mcs-slider-height);
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    touch-action: pan-x pan-y;
    outline-offset: -3px;
}
.mcs-homeslider__viewport::-webkit-scrollbar { display: none; }
.mcs-homeslider__track {
    display: flex !important;
    width: 100%;
    height: 100%;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    gap: 0 !important;
}
.mcs-homeslider__slide {
    display: block;
    flex: 0 0 100%;
    min-width: 0;
    width: 100%;
    height: 100%;
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}
.mcs-homeslider__link,
.mcs-homeslider__picture {
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
}
.mcs-homeslider__media {
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    object-fit: cover;
    object-position: center;
    background: transparent;
}
.mcs-homeslider__media--mobile { display: none; }
.mcs-homeslider--enhanced .mcs-homeslider__viewport { cursor: grab; }
.mcs-homeslider--dragging .mcs-homeslider__viewport { cursor: grabbing; scroll-behavior: auto; user-select: none; }
/* Soft pill dots on the banner. */
.mcs-homeslider__pagination {
    position: absolute;
    z-index: 3;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: none;
    justify-content: center;
    align-items: center;
    gap: 8px;
    width: max-content;
    max-width: calc(100% - 22px);
    min-height: 30px;
    padding: 7px 11px;
    background: rgba(17,24,39,.27);
    border-radius: 30px;
    box-shadow: 0 3px 14px rgba(0,0,0,.10);
}
.mcs-homeslider--enhanced .mcs-homeslider__pagination:not(:empty) { display: flex; }
.mcs-homeslider__dot {
    display: block;
    flex: 0 0 auto;
    width: 8px;
    height: 8px;
    padding: 0;
    margin: 0;
    border: none;
    border-radius: 100px;
    background: rgba(255,255,255,.72);
    box-shadow: none;
    cursor: pointer;
    transition: width .24s ease, background .24s ease, opacity .24s ease;
}
.mcs-homeslider__dot:hover { background: #fff; }
.mcs-homeslider__dot[aria-current="true"] { width: 24px; background: var(--mcs-accent); }
.mcs-homeslider__dot:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
@media (max-width: 767px) {
    .mcs-homeslider { margin-bottom: 14px; border-radius: 9px; }
    .mcs-homeslider__viewport {
        height: auto;
        min-height: 0;
        aspect-ratio: var(--mcs-mobile-ratio);
        scroll-padding-inline: 0;
        /* iOS and Android swipe horizontally with native momentum + snap. */
        touch-action: pan-x pan-y;
    }
    .mcs-homeslider__media--desktop.mcs-homeslider__media--has-mobile { display: none; }
    .mcs-homeslider__media--mobile { display: block; }
    .mcs-homeslider__pagination { bottom: 12px; gap: 7px; }
    .mcs-homeslider__dot { width: 7px; height: 7px; }
    .mcs-homeslider__dot[aria-current="true"] { width: 21px; }
}
@media (prefers-reduced-motion: reduce) {
    .mcs-homeslider__viewport { scroll-behavior: auto; }
    .mcs-homeslider__dot { transition: none; }
}
