.home-catalog {
    position: relative;
    overflow: visible;
    background: transparent;
}

.home-catalog__viewport {
    overflow: hidden;
}

.home-catalog__track {
    display: flex;
    transition: transform .28s ease;
}

.home-catalog__track.is-static {
    justify-content: center;
}

.home-catalog__item {
    flex: 0 0 25%;
    padding: 16px 10px;
}

.home-catalog__arrow {
    position: absolute;
    top: 50%;
    z-index: 3;
    width: 38px;
    height: 54px;
    transform: translateY(-50%);
    border: 1px solid #d9dddf;
    border-radius: 3px;
    background: rgba(255, 255, 255, .94);
    color: #7d8589;
    font-size: 34px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
}

.home-catalog__arrow--prev {
    left: -18px;
}

.home-catalog__arrow--next {
    right: -18px;
}

.home-catalog__arrow:disabled {
    opacity: .3;
    cursor: default;
}

.home-catalog__arrow[hidden] {
    display: none;
}

.home-catalog .catalog-product-card {
    height: 100%;
}

.home-catalog .catalog-product-card:last-child:nth-child(odd) {
    grid-column: auto;
    width: auto;
    justify-self: stretch;
}

.catalog-product-card__bundle-label {
    position: absolute;
    left: 10px;
    bottom: 10px;
    padding: 4px 8px;
    border-radius: 3px;
    background: rgba(255, 255, 255, .94);
    color: #7a8700;
    font-size: 12px;
    font-weight: 700;
}

@media (max-width: 980px) {
    .home-catalog__item {
        flex-basis: 50%;
    }

    .home-catalog__arrow--prev {
        left: -10px;
    }

    .home-catalog__arrow--next {
        right: -10px;
    }
}

@media (max-width: 720px) {
    .home-catalog__item {
        flex-basis: 100%;
        padding-inline: 8px;
    }

    .home-catalog__arrow {
        width: 34px;
        height: 48px;
        border-color: #a9c000;
        background: #bed600;
        color: #fff;
    }

    .home-catalog__arrow:hover:not(:disabled),
    .home-catalog__arrow:focus-visible:not(:disabled) {
        background: #a9c000;
    }

    .home-catalog__arrow--prev {
        left: 2px;
    }

    .home-catalog__arrow--next {
        right: 2px;
    }
}

/* Homepage catalog cards form one continuous framed strip. */
.home-catalog__viewport {
    border-top: 1px solid var(--agu-border);
    border-bottom: 1px solid var(--agu-border);
}

.home-catalog__item {
    padding: 0;
    border-left: 1px solid var(--agu-border);
}

.home-catalog__item:last-child {
    border-right: 1px solid var(--agu-border);
}

.home-catalog .catalog-product-card,
.home-catalog .catalog-product-card:last-child:nth-child(odd) {
    width: 100%;
    height: 100%;
    border: 0;
    padding: 24px 20px 26px;
}

.home-catalog__track.is-static .home-catalog__item:first-child {
    border-left: 1px solid var(--agu-border);
}

@media (max-width: 720px) {
    .home-catalog__item {
        padding: 0;
    }
}

.home-catalog__viewport {
    border-top: 0;
}


/* Keep static homepage products at the normal four-column card width. */
@media (min-width: 721px) {
    .home-catalog__track.is-static .home-catalog__item {
        flex-basis: 25%;
    }
}

/* Homepage product cards follow the compact store-card hierarchy. */
.home-catalog .catalog-product-card__body {
    gap: 5px;
    padding: 10px 0 14px;
}

.home-catalog .catalog-product-card__name {
    color: #4b5357;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.25;
}

.home-catalog .catalog-product-card__model {
    color: #7f8991;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.home-catalog .catalog-product-card__price {
    margin-top: 5px;
}

.home-catalog .catalog-product-card__price strong {
    font-size: 19px;
}

.home-catalog .catalog-product-card__actions {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
}

.home-catalog .catalog-product-card__actions .button {
    width: 100%;
    min-height: 38px;
}

/* Softer homepage store-card finish. */
.home-catalog .catalog-product-card__discount {
    right: auto;
    left: 10px;
}

.home-catalog .catalog-product-card__body {
    gap: 4px;
    padding: 9px 0 12px;
}

.home-catalog .catalog-product-card__name {
    color: #50595e;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.25;
}

.home-catalog .catalog-product-card__model {
    color: #858e93;
    font-size: 11.5px;
    font-weight: 400;
    letter-spacing: .02em;
}

.home-catalog .catalog-product-card__price {
    margin-top: 6px;
}

.home-catalog .catalog-product-card__price strong {
    color: #465056;
    font-size: 18px;
    font-weight: 500;
}

.home-catalog .catalog-product-card__actions {
    width: min(100%, 186px);
    justify-self: center;
    gap: 6px;
}

.home-catalog .catalog-product-card__actions .button {
    width: 100%;
    min-height: 32px;
    border-radius: 3px;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 500;
}

.home-catalog .catalog-product-card__more {
    border-color: var(--agu-lime);
    color: var(--agu-lime-dark);
}



/* Homepage badge and casing; keep the established homepage typography. */
.home-catalog .catalog-product-card__badge {
    display: inline-flex;
    width: fit-content;
    max-width: 100%;
    align-self: center;
    border-radius: 3px;
    background: var(--catalog-badge-color, #bccf00);
    color: #fff;
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.2;
    text-transform: none;
}

.home-catalog .catalog-product-card:not(.catalog-product-card--bundle) .catalog-product-card__name,
.home-catalog .catalog-product-card:not(.catalog-product-card--bundle) .catalog-product-card__model {
    text-transform: uppercase;
}

/* Homepage keeps its vertical card composition. */
.home-catalog .catalog-product-card {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr auto;
    min-height: 0;
}

.home-catalog .catalog-product-card__media {
    grid-column: 1;
    grid-row: 1;
    min-height: 235px;
    padding: 0;
}

.home-catalog .catalog-product-card__media img,
.home-catalog .catalog-product-card__image-placeholder {
    height: 235px;
}

.home-catalog .catalog-product-card__body {
    grid-column: 1;
    grid-row: 2;
    text-align: center;
    justify-items: center;
}

.home-catalog .catalog-product-card__actions {
    grid-column: 1;
    grid-row: 3;
}

.home-catalog .catalog-product-card__badge {
    justify-self: center;
}

/* Neutralize listing-only geometry inside the homepage carousel. */
.home-catalog .catalog-product-card__media img {
    max-width: 310px;
}

.home-catalog .catalog-product-card__image-placeholder {
    width: min(100%, 310px);
}

.home-catalog .catalog-product-card__body {
    align-content: start;
}

.home-catalog .catalog-product-card__price {
    justify-content: center;
}

.home-catalog .catalog-product-card__actions {
    padding: 0;
}


