.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;
}

/* فاصله یکسان بین بخش‌های صفحه اصلی */
.home-main>.home-section {
    margin-top: 0;
    margin-bottom: 1.5rem;
}

.home-main>.home-section:last-child {
    margin-bottom: 0;
}

@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__carousel {
        border-radius: 0.75rem;
    }

    .home-banner__item {
        border-radius: 0.75rem;
    }
}

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

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

.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;
}

.home-carousel-wrap {
    position: relative;
}

.home-products-section .carousel-nav-buttons.home-carousel-nav-overlay {
    display: flex;
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 2;
}

.home-products-section .carousel-nav-buttons.home-carousel-nav-overlay .carousel-nav-btn {
    pointer-events: auto;
}

.home-products-section .carousel-nav-buttons.home-carousel-nav-overlay .carousel-nav-prev {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
}

.home-products-section .carousel-nav-buttons.home-carousel-nav-overlay .carousel-nav-next {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
}

@media screen and (min-width: 992px) {
    .home-products-section .single-row-header-related .single-row-title {
        width: auto;
        margin-bottom: 0;
    }
}

.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(195, 195, 206, 0.3);
    border-radius: 50%;
    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-radius: 12px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

@media screen and (max-width: 991.98px) {
    .home-products-section .home-carousel {
        padding-bottom: 16px;
    }

    .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);
    }
}

/* ========== پیشنهاد شگفت انگیز (Special Offer) ========== */
.special-offer-section {
    max-width: 1320px;
    margin-right: auto;
    margin-left: auto;
    padding-right: 0;
    padding-left: 0;
}

@media (max-width: 991.98px) {
    .special-offer-section {
        padding-right: 0.75rem;
        padding-left: 0.75rem;
    }
}

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

.special-offer-section__outer {
    background: #dc3545;
    border-radius: 10px;
    overflow: hidden;
}

.special-offer-section__container {
    display: flex;
    flex-direction: row;
    align-items: stretch;
}

/* پنل دسکتاپ: فقط در عرض بالا */
.special-offer-section__panel--desktop {
    display: flex;
    flex-shrink: 0;
    width: 200px;
    background: #dc3545;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 1.25rem 0.75rem;
    gap: 1rem;
}

.special-offer-section__panel--mobile {
    display: none;
}

.special-offer-section__countdown {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
}

.special-offer-section__countdown-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    padding: 0.4rem 0.35rem;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 6px;
}

.special-offer-section__countdown-sep {
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    margin: 0 1px;
}

.special-offer-section__percent-icon {
    display: block;
    color: #fff;
    font-size: 2rem;
    line-height: 1;
}

.special-offer-section__percent-icon i {
    font-size: inherit;
}

.special-offer-section__picture {
    display: block;
    width: 100%;
    max-width: 100px;
}

.special-offer-section__img {
    width: 100%;
    height: auto;
    display: block;
}

.special-offer-section__view-all {
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    transition: opacity 0.2s;
}

.special-offer-section__view-all:hover {
    color: #fff;
    opacity: 0.9;
}

.special-offer-section__view-all i {
    font-size: 0.9rem;
}

/* نوار موبایل/تبلت */
@media (max-width: 991.98px) {
    .special-offer-section__panel--desktop {
        display: none;
    }

    .special-offer-section__panel--mobile {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 0.6rem 1rem;
        background: #dc3545;
        gap: 0.75rem;
        min-height: 52px;
    }

    .special-offer-section__view-all-link {
        color: #fff;
        font-size: 0.9375rem;
        font-weight: 600;
        display: inline-flex;
        align-items: center;
        gap: 0.25rem;
        order: 3;
        flex-shrink: 0;
    }

    .special-offer-section__view-all-link:hover {
        color: #fff;
        opacity: 0.9;
    }

    .special-offer-section__view-all-link i {
        font-size: 1.1rem;
    }

    .special-offer-section__panel--mobile .special-offer-section__countdown {
        order: 2;
        margin-right: auto;
        margin-left: auto;
    }

    .special-offer-section__title-wrap {
        order: 1;
        display: flex;
        align-items: center;
        gap: 0.35rem;
        flex-shrink: 0;
    }

    .special-offer-section__title-img {
        height: 36px;
        width: auto;
        max-width: 90px;
        display: block;
        object-fit: contain;
    }

    .special-offer-section__container {
        flex-direction: column;
    }
}

/* ناحیه محصولات - فاصله کناره مثل products-grid home-carousel (از container-fluid) */
.special-offer-section__products-wrap {
    flex: 1;
    min-width: 0;
    position: relative;
    padding: 1rem 0;
    background: #dc3545;
}

/* مکان دکمه‌ها فقط بر اساس ساختار بخش پیشنهاد شگفت انگیز (نسبت به .special-offer-section__products-wrap) */
.special-offer-section__nav {
    display: flex;
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 2;
}

.special-offer-section__nav .carousel-nav-btn {
    pointer-events: auto;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid rgba(195, 195, 206, 0.3);
    border-radius: 50%;
    background: #fff;
    color: #333;
}

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

.special-offer-section__nav .carousel-nav-btn:disabled {
    border-color: rgba(0, 0, 0, 0.12);
    color: rgba(0, 0, 0, 0.35);
    cursor: default;
}

.special-offer-section__nav .carousel-nav-btn i {
    font-size: 1.25rem;
}

.special-offer-section__nav .carousel-nav-prev {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
}

.special-offer-section__nav .carousel-nav-next {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
}

.special-offer-section__carousel {
    display: flex;
    flex-wrap: nowrap;
    gap: 0;
    overflow-x: auto;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
    padding-bottom: 4px;
}

.special-offer-section__carousel::-webkit-scrollbar {
    display: none;
}

.special-offer-section__card-link {
    flex: 0 0 20%;
    max-width: 20%;
    padding: 0.5rem;
    min-width: 0;
}

@media (max-width: 991.98px) {
    .special-offer-section__products-wrap {
        padding: 0.75rem 0;
    }

    .special-offer-section__card-link {
        flex: 0 0 calc(33.333% - 6px);
        max-width: calc(33.333% - 6px);
        padding: 0.25rem;
        border-radius: 8px;
        margin-left: 4px;
    }

    .special-offer-section__card-link:first-child {
        margin-right: 0;
    }

    .special-offer-section__carousel {
        gap: 8px;
    }
}

@media (max-width: 600px) {
    .special-offer-section__card-link {
        flex: 0 0 calc(50% - 4px);
        max-width: calc(50% - 4px);
    }

    .special-offer-section__panel--mobile {
        padding: 0.5rem 0.75rem;
        min-height: 48px;
    }

    .special-offer-section__countdown-item {
        min-width: 1.9rem;
        padding: 0.28rem 0.3rem;
        font-size: 0.875rem;
    }
}