/*
 * Polecamy — frontend
 * Tylko mechanika slidera, dopasowanie plakatów i styl nawigacji.
 * Moduł celowo nie narzuca tła, ramek, nagłówków ani dekoracji obrazów.
 */

.mp-polecamy-slider {
    position: relative;
    overflow: hidden;
}

.mp-polecamy-track {
    display: flex;
    width: 100%;
    transition: transform 620ms ease;
    will-change: transform;
}

.mp-polecamy-slider.is-resetting .mp-polecamy-track {
    transition: none;
}

.mp-polecamy-slide {
    flex: 0 0 100%;
    min-width: 0;
    aspect-ratio: var(--mp-polecamy-aspect-ratio, auto);
    display: flex;
    align-items: center;
    justify-content: center;
}

.mp-polecamy-slide img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
}

.mp-polecamy-arrow {
    position: absolute;
    top: 50%;
    z-index: 5;
    display: grid;
    place-items: center;
    width: 32px;
    height: 46px;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: rgba(36, 36, 36, 0.54);
    color: #fff;
    box-shadow: 0 18px 38px rgba(37, 32, 26, 0.14);
    cursor: pointer;
    transform: translateY(-50%);
    transition: background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.mp-polecamy-arrow:hover,
.mp-polecamy-arrow:focus-visible {
    outline: none;
    background: rgba(36, 56, 77, 0.78);
    transform: translateY(-50%) scale(1.02);
    box-shadow: 0 18px 38px rgba(37, 32, 26, 0.14);
}

.mp-polecamy-arrow-prev {
    left: 9px;
}

.mp-polecamy-arrow-next {
    right: 9px;
}

.mp-polecamy-arrow span {
    display: block;
    width: 11px;
    height: 11px;
    border-top: 3px solid currentColor;
    border-right: 3px solid currentColor;
}

.mp-polecamy-arrow-prev span {
    margin-left: 4px;
    transform: rotate(-135deg);
}

.mp-polecamy-arrow-next span {
    margin-right: 4px;
    transform: rotate(45deg);
}

.mp-polecamy-slider.is-single-slide .mp-polecamy-arrow {
    display: none;
}

@media (max-width: 782px) {
    .mp-polecamy-arrow {
        width: 30px;
        height: 42px;
    }

    .mp-polecamy-arrow-prev {
        left: 6px;
    }

    .mp-polecamy-arrow-next {
        right: 6px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mp-polecamy-track {
        transition: none;
    }
}
