

/* Start:/local/templates/main/css/recommended-cars.css?17925394602817*/
/* Recommended cars carousel (RecommendedCars::show, js/recommended-cars.js).
   Desktop: title with arrows on the right, 3 cards per step. Phone: swipe one card, no arrows.
   The section keeps .home__popular for its spacing and the cards' styles. */

.home__popular.cx-rec h2 {
    margin-bottom: 0;
}

.cx-rec__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 2.25rem;
}

.cx-rec__nav {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

.cx-rec__arrow {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    border: none;
    background: #15171c;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: background-color 0.25s ease, transform 0.25s ease;
}

.cx-rec__arrow svg {
    width: 1.375rem;
    height: 1.375rem;
    transition: transform 0.25s ease;
}

/* Hover: orange, the arrow nudges the way it points */
.cx-rec__arrow:hover:not(:disabled) {
    background: var(--color-primary);
}

.cx-rec__prev:hover:not(:disabled) svg {
    transform: translateX(-0.1875rem);
}

.cx-rec__next:hover:not(:disabled) svg {
    transform: translateX(0.1875rem);
}

.cx-rec__arrow:active:not(:disabled) {
    transform: scale(0.96);
}

.cx-rec__arrow:focus-visible {
    outline: 0.125rem solid var(--color-primary);
    outline-offset: 0.1875rem;
}

/* At the start / end of the list: a quiet light circle */
.cx-rec__arrow:disabled {
    background: #eceef2;
    color: #a7abb8;
    cursor: default;
}

/* Swiper hides the arrows (swiper-button-lock) when everything fits on one screen */
.cx-rec__arrow.swiper-button-lock {
    display: none;
}

/* Progress line under the cards: grey track, orange part = how far along the list you are */
.cx-rec .cx-rec__pagination,
.cx-rec .cx-rec__pagination.swiper-pagination-progressbar.swiper-pagination-horizontal {
    position: relative;
    left: auto;
    top: auto;
    bottom: auto;
    /* inset from both ends, a little shorter than the row of cards */
    width: calc(100% - 5rem);
    height: max(3px, 0.25rem);
    margin: 2.5rem auto 0;
    border-radius: 0.25rem;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.08);
}

.cx-rec .cx-rec__pagination .swiper-pagination-progressbar-fill {
    background: var(--color-primary);
    border-radius: inherit;
}

.cx-rec .cx-rec__pagination.swiper-pagination-lock {
    display: none;
}

@media (max-width: 991px) {
    .cx-rec__head {
        margin-bottom: 1rem;
    }

    .cx-rec__nav {
        display: none;
    }

    .cx-rec .cx-rec__pagination,
    .cx-rec .cx-rec__pagination.swiper-pagination-progressbar.swiper-pagination-horizontal {
        width: 100%;
        margin-top: 1.5rem;
        height: 0.25rem;
    }
}

/* End */
/* /local/templates/main/css/recommended-cars.css?17925394602817 */
