/* ========== Home promo sections (amazing deals, newest products, …) ========== */

.home-promo-section--amazing {
    --home-promo-header-bg: #ef4056;
    --home-promo-header-fg: #fff;
    --home-promo-more-fg: #fff;
}

.home-promo-section--newest {
    --home-promo-header-bg: #f0f0f2;
    --home-promo-header-fg: #212529;
    --home-promo-more-fg: #3f4064;
}

.home-promo-section__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    background: var(--home-promo-header-bg);
    color: var(--home-promo-header-fg);
}

.home-promo-section__header-main {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.home-promo-section__title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.5;
    color: var(--home-promo-header-fg);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.home-promo-section__more {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    color: var(--home-promo-more-fg);
    font-size: 0.875rem;
    font-weight: 400;
    text-decoration: none;
    white-space: nowrap;
}

.home-promo-section__more i {
    font-size: 1.125rem;
    line-height: 1;
}

@media (min-width: 992px) {
    .home-promo-section--has-items {
        --home-promo-inline-pad: 24px;
    }

    .home-promo-section__title {
        font-size: 1.125rem;
    }

    .home-promo-section--has-items .home-promo-section__header {
        padding: 16px var(--home-promo-inline-pad) 80px;
        border-radius: 12px 12px 0 0;
    }

    .home-promo-section--has-items .home-promo-section__body {
        position: relative;
        z-index: 1;
        margin-top: -56px;
        padding-inline: var(--home-promo-inline-pad);
        padding-bottom: 8px;
    }
}

@media (max-width: 991.98px) {
    .home-main .home-promo-section .container {
        max-width: 100%;
        padding-inline: 0;
    }

    .home-main .home-promo-section .product-carousel-wrap {
        margin-inline: calc(var(--home-inline-inset) * -1);
    }

    .home-main .home-promo-section .product-carousel {
        padding: 0 var(--home-inline-inset) 8px;
    }

    .home-promo-section__header {
        padding: 24px var(--home-inline-inset, calc(4.5455% + 0.364px)) 96px;
        border-radius: 0;
    }

    .home-promo-section__header-main {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
    }

    .home-promo-section__title {
        white-space: normal;
        overflow: visible;
        text-overflow: unset;
    }

    .home-promo-section__more {
        font-size: 14px;
    }

    .home-promo-section--has-items .home-promo-section__body {
        position: relative;
        z-index: 1;
        margin-top: -72px;
        padding-inline: var(--home-inline-inset, calc(4.5455% + 0.364px));
    }
}
