.home-main,
.home-products-section--empty {
    max-width: 1320px;
    margin-right: auto;
    margin-left: auto;
    padding-right: 0;
    padding-left: 0;
    box-sizing: border-box;
}

.home {
    margin-top: 6rem;
}

@media (max-width: 991.98px) {
    .home {
        margin-top: 2rem;
    }
    .home-products-section--empty {
        padding-right: 0.75rem;
        padding-left: 0.75rem;
    }
}

@media (max-width: 375px) {
    .home-products-section--empty {
        padding-right: 0.5rem;
        padding-left: 0.5rem;
    }
}

.home-banner {
    max-width: 1320px;
    margin-right: auto;
    margin-left: auto;
    padding-right: 0;
    padding-left: 0;
}

.home-banner__wrapper {
    width: 100%;
}

.home-banner__carousel {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
    border-radius: 0.5rem;
}

.home-banner__carousel::-webkit-scrollbar {
    display: none;
}

.home-banner__item {
    flex: 0 0 100%;
    width: 100%;
    min-width: 0;
    overflow: hidden;
    border-radius: 0.5rem;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.home-banner__link {
    display: block;
    line-height: 0;
    text-decoration: none;
}

.home-banner__picture {
    display: block;
    width: 100%;
}

.home-banner__img {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 991.98px) {
    .home-banner {
        padding-right: 0;
        padding-left: 0;
        max-width: none;
        width: 100vw;
        margin-left: calc(-50vw + 50%);
        margin-right: calc(-50vw + 50%);
    }
    .home-banner__wrapper {
        padding-right: 0;
        padding-left: 0;
    }
    .home-banner__carousel {
        border-radius: 0.75rem;
    }
    .home-banner__item {
        border-radius: 0.75rem;
    }
}

.home-products-section.single-row-section {
    margin-top: 0;
    margin-bottom: 0;
}

.home-products-section .single-row-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.deal-header-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    flex: 1;
    min-width: 0;
}

.deal-header-row .single-row-title {
    margin: 0;
    padding-bottom: 0;
}

.home-products-section .single-row-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #212529;
    margin: 12px 0 14px;
    text-align: right;
    padding-bottom: 0.5rem;
}

.deal-countdown {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.deal-countdown__label {
    color: #6c757d;
}

.deal-countdown__value {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.5rem;
    background-color: #424242;
    border-radius: 0.25rem;
    color: #fff;
    font-variant-numeric: tabular-nums;
}

.deal-countdown__value .deal-countdown__sep {
    margin: 0 0.1rem;
}

.deal-countdown__value .deal-countdown__ended {
    color: #dc3545;
    font-weight: 600;
}

@media screen and (min-width: 992px) {
    .home-products-section .single-row-header-related .carousel-nav-buttons {
        display: flex;
        margin-right: 1.25rem;
    }
    .home-products-section .single-row-header-related .single-row-title {
        width: auto;
        margin-bottom: 0;
    }
    .home-products-section .deal-countdown__value {
        height: 40px;
        padding: 0 0.75rem;
        box-sizing: border-box;
    }
}

.home-view-more-link {
    color: #3f4064;
    font-weight: 500;
}

@media screen and (max-width: 991px) {
    .home-view-more-link {
        font-size: 0.875rem;
    }
}

@media screen and (max-width: 575px) {
    .home-view-more-link {
        font-size: 0.8125rem;
    }
}

.home-products-section .carousel-nav-buttons {
    display: none;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.home-products-section .carousel-nav-btn {
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid rgba(0, 0, 0, 0.25);
    border-radius: 8px;
    background: #fff;
    color: #333;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s, color 0.2s, background-color 0.2s;
}

.home-products-section .carousel-nav-btn i {
    font-size: 1.25rem;
}

.home-products-section .carousel-nav-btn:hover:not(:disabled) {
    border-color: rgba(0, 0, 0, 0.4);
    color: #000;
    background: #fff;
}

.home-products-section .carousel-nav-btn:disabled {
    border-color: rgba(0, 0, 0, 0.12);
    color: rgba(0, 0, 0, 0.35);
    cursor: default;
}

.home-products-section .home-carousel {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 12px;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.home-products-section .home-carousel::-webkit-scrollbar {
    display: none;
}

.home-products-section .home-carousel > a {
    flex: 0 0 calc(20% - 6.4px);
    max-width: calc(20% - 6.4px);
}

.home-products-section .product-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

@media screen and (max-width: 991.98px) {
    .deal-countdown__label {
        font-size: 0.75rem;
    }
    .home-products-section .home-carousel {
        -ms-overflow-style: auto;
        scrollbar-width: thin;
        padding-bottom: 16px;
    }
    .home-products-section .home-carousel::-webkit-scrollbar {
        display: block;
        height: 8px;
    }
    .home-products-section .home-carousel::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.06);
        border-radius: 4px;
    }
    .home-products-section .home-carousel::-webkit-scrollbar-thumb {
        background: rgba(0, 0, 0, 0.2);
        border-radius: 4px;
    }
    .home-products-section .home-carousel::-webkit-scrollbar-thumb:hover {
        background: rgba(0, 0, 0, 0.35);
    }
    .home-products-section .single-row-title {
        font-size: 1rem;
    }
}

@media screen and (min-width: 601px) and (max-width: 991.98px) {
    .home-products-section .home-carousel > a {
        flex: 0 0 calc(33.3333% - 5.33px);
        max-width: calc(33.3333% - 5.33px);
    }
    .home-products-section .single-row-title {
        padding-right: 1rem;
    }
}

@media screen and (max-width: 600px) {
    .home-products-section .home-carousel {
        gap: 6px;
    }
    .home-products-section .home-carousel > a {
        flex: 0 0 calc(50% - 3px);
        max-width: calc(50% - 3px);
    }
}

@media screen and (max-width: 480px) {
    .home-products-section .home-carousel {
        gap: 4px;
    }
    .home-products-section .home-carousel > a {
        flex: 0 0 calc(50% - 2px);
        max-width: calc(50% - 2px);
    }
}
