/* Products of the same line – card slider. Defaults follow the "Derzeit beliebt" section:
   light grey band, centred heading, white cards, taupe uppercase brand, thin grey
   chevrons at the edges, small round dots. Everything is overridable from the widget's
   style tab; fonts inherit from the theme until set there. */

.m1881w-sl {
    --m1881w-spv: 5;
    --m1881w-gap: 12px;
    --m1881w-peek: 0px;
    --m1881w-arrow: 26px;
    --m1881w-arrow-offset: 12px;
    --m1881w-dot: #c8c8c8;
    --m1881w-dot-active: #111;
    --m1881w-dot-size: 7px;
    background-color: #f8f8f8;
    padding: 56px 0 40px;
}

.m1881w-sl__heading {
    margin: 0 0 48px;
    padding: 0 16px;
    color: #111;
    font-size: 2.4em;
    font-weight: 400;
    line-height: 1.2;
    text-align: center;
}

/* -- track ------------------------------------------------------------------ */

.m1881w-sl__viewport {
    position: relative;
}

.m1881w-sl .m1881w-sl__track {
    display: flex;
    gap: var(--m1881w-gap);
    margin: 0;
    padding: 0 var(--m1881w-peek);
    list-style: none;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 var(--m1881w-peek);
    scroll-behavior: smooth;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.m1881w-sl__track::-webkit-scrollbar {
    display: none;
}

.m1881w-sl .m1881w-sl__slide {
    flex: 0 0 calc((100% - (var(--m1881w-spv) - 1) * var(--m1881w-gap)) / var(--m1881w-spv));
    min-width: 0;
    margin: 0;
    padding: 0;
    scroll-snap-align: start;
    display: flex;
}

/* Fewer cards than fit: auto margins on the outer cards center the row. Unlike
   justify-content: center, auto margins drop to zero once the row overflows, so a full
   slider still starts at its first card instead of cutting it off unreachably. */
.m1881w-sl--center .m1881w-sl__slide:first-child {
    margin-left: auto;
}

.m1881w-sl--center .m1881w-sl__slide:last-child {
    margin-right: auto;
}

/* -- card ------------------------------------------------------------------- */

.m1881w-sl .m1881w-sl__card {
    display: flex;
    flex-direction: column;
    width: 100%;
    background-color: #fff;
    color: inherit;
    text-decoration: none;
    transition: box-shadow 0.2s ease;
}

.m1881w-sl .m1881w-sl__card:hover,
.m1881w-sl .m1881w-sl__card:focus {
    color: inherit;
    text-decoration: none;
}

.m1881w-sl .m1881w-sl__card:focus-visible {
    outline: 1px solid #111;
    outline-offset: -1px;
}

.m1881w-sl__media {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    height: 340px;
    padding: 40px 24px 16px;
}

.m1881w-sl .m1881w-sl__img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.m1881w-sl__body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    padding: 12px 24px 32px;
    text-align: left;
}

.m1881w-sl__brand {
    display: block;
    margin-bottom: 8px;
    color: #8a8178;
    font-size: 0.8em;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.m1881w-sl__title {
    display: block;
    margin-bottom: 6px;
    color: #111;
    font-size: 1.05em;
    line-height: 1.35;
}

.m1881w-sl__price {
    display: block;
    color: #111;
    font-size: 0.9em;
}

.m1881w-sl__price del {
    opacity: 0.5;
    margin-right: 6px;
}

.m1881w-sl__price ins {
    text-decoration: none;
}

/* -- arrows ----------------------------------------------------------------- */

.m1881w-sl .m1881w-sl__arrow {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: calc(var(--m1881w-arrow) + 16px);
    height: calc(var(--m1881w-arrow) * 2);
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    color: #c8c8c8;
    cursor: pointer;
    transform: translateY(-50%);
    transition: color 0.15s ease, opacity 0.15s ease;
}

.m1881w-sl .m1881w-sl__arrow:hover,
.m1881w-sl .m1881w-sl__arrow:focus {
    background: none;
    color: #111;
}

.m1881w-sl .m1881w-sl__arrow:focus-visible {
    outline: 1px solid #111;
}

.m1881w-sl .m1881w-sl__arrow[disabled] {
    opacity: 0.3;
    cursor: default;
}

.m1881w-sl .m1881w-sl__arrow[hidden] {
    display: none;
}

.m1881w-sl__arrow svg {
    display: block;
    width: calc(var(--m1881w-arrow) / 2);
    height: var(--m1881w-arrow);
}

.m1881w-sl__arrow--prev {
    left: var(--m1881w-arrow-offset);
}

.m1881w-sl__arrow--next {
    right: var(--m1881w-arrow-offset);
}

/* -- dots ------------------------------------------------------------------- */

.m1881w-sl__dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 24px;
}

.m1881w-sl__dots[hidden] {
    display: none;
}

.m1881w-sl .m1881w-sl__dot {
    width: calc(var(--m1881w-dot-size) + 8px);
    height: calc(var(--m1881w-dot-size) + 8px);
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.m1881w-sl .m1881w-sl__dot::before {
    content: "";
    width: var(--m1881w-dot-size);
    height: var(--m1881w-dot-size);
    border-radius: 50%;
    background: var(--m1881w-dot);
    transition: background-color 0.15s ease;
}

.m1881w-sl .m1881w-sl__dot:hover,
.m1881w-sl .m1881w-sl__dot:focus {
    background: none;
}

.m1881w-sl .m1881w-sl__dot.is-active::before {
    background: var(--m1881w-dot-active);
}

@media (prefers-reduced-motion: reduce) {
    .m1881w-sl .m1881w-sl__track {
        scroll-behavior: auto;
    }
}

.m1881w-notice {
    padding: 12px 16px;
    border: 1px dashed #bbb;
    color: #666;
    font-size: 13px;
}
