.home {
    margin-top: 6rem;
}

.home-main>.home-section {
    margin-bottom: 1.5rem;
}

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

@media (max-width: 991.98px) {
    .home {
        margin-top: 2rem;
    }
}

/* ========== بنرها ========== */
.home-banner {
    max-width: 1320px;
    margin-right: auto;
    margin-left: auto;
}

.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%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

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

@media (max-width: 991.98px) {
    .home-banner__carousel {
        border-radius: 0.75rem;
    }
}

/* ========== بخش‌های محصولات ========== */
.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: 0;
    text-align: right;
}

/* دکمه‌های ناوبری دسکتاپ */
.home-products-section .desktop-nav-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
}

@media (max-width: 991.98px) {
    .home-products-section .desktop-nav-buttons {
        display: none;
    }
}

.home-products-section .desktop-nav-btn {
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid #e0e0e0;
    border-radius: 50%;
    background: #ffffff;
    color: #333;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.home-products-section .desktop-nav-btn svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

.home-products-section .desktop-nav-btn:hover:not(:disabled) {
    background: #f8f9fa;
    border-color: #c0c0c0;
    transform: scale(1.05);
}

.home-products-section .desktop-nav-btn:active:not(:disabled) {
    transform: scale(0.95);
}

.home-products-section .desktop-nav-btn:disabled {
    background: #f5f5f5;
    border-color: #e8e8e8;
    color: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

/* کاروسل محصولات */
.home-products-section .home-carousel {
    display: flex;
    flex-wrap: nowrap;
    gap: 12px;
    padding: 4px 0 8px;
    scroll-behavior: smooth;
}

/* آیتم مشاهده بیشتر */
.home-products-section .more-item-link {
    flex: 0 0 auto;
    width: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
}

.home-products-section .more-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-width: 100px;
    padding: 0 10px;
    transition: all 0.3s ease;
}

.home-products-section .more-item:hover {
    transform: translateY(-4px);
}

.home-products-section .more-item-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 1px solid #d4d4d4;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    transition: all 0.3s ease;
}

.home-products-section .more-item:hover .more-item-circle {
    border-color: #333;
    transform: scale(1.05);
}

.home-products-section .more-item-circle svg {
    width: 28px;
    height: 28px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

.home-products-section .more-item-text {
    font-size: 0.875rem;
    font-weight: 500;
    color: #333;
    text-align: center;
    white-space: nowrap;
}

/* اسکرول بار برای موبایل و تبلت */
@media (max-width: 991.98px) {
    .home-products-section .home-carousel {
        overflow-x: auto;
        scrollbar-width: thin;
    }
    
    .home-products-section .home-carousel::-webkit-scrollbar {
        height: 6px;
    }
    
    .home-products-section .home-carousel::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 3px;
    }
    
    .home-products-section .home-carousel::-webkit-scrollbar-thumb {
        background: #c1c1c1;
        border-radius: 3px;
    }
    
    .home-products-section .more-item-link {
        margin-right: 15px;
    }
    
    .home-products-section .more-item {
        min-width: 80px;
        gap: 10px;
    }
    
    .home-products-section .more-item-circle {
        width: 50px;
        height: 50px;
    }
    
    .home-products-section .more-item-circle svg {
        width: 24px;
        height: 24px;
    }
    
    .home-products-section .more-item-text {
        font-size: 0.75rem;
    }
}

/* دسکتاپ - مخفی کردن اسکرول بار */
@media (min-width: 992px) {
    .home-products-section .home-carousel {
        overflow-x: hidden;
    }
    
    .home-products-section .home-carousel::-webkit-scrollbar {
        display: none;
    }
    
    .home-products-section .home-carousel {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
}

.home-products-section .home-carousel>a:not(.more-item-link) {
    flex: 0 0 calc(20% - 9.6px);
    max-width: calc(20% - 9.6px);
}

/* ========== ریسپانسیو ========== */
@media screen and (max-width: 991.98px) {
    .home-products-section .single-row-title {
        font-size: 1rem;
    }
    
    .home-products-section .home-carousel>a:not(.more-item-link) {
        flex: 0 0 calc(33.3333% - 8px);
        max-width: calc(33.3333% - 8px);
    }
}

@media screen and (max-width: 600px) {
    .home-products-section .home-carousel {
        gap: 8px;
    }
    
    .home-products-section .home-carousel>a:not(.more-item-link) {
        flex: 0 0 calc(50% - 4px);
        max-width: calc(50% - 4px);
    }
    
    .home-products-section .more-item-link {
        margin-right: 10px;
    }
    
    .home-products-section .more-item {
        min-width: 70px;
        gap: 8px;
    }
    
    .home-products-section .more-item-circle {
        width: 45px;
        height: 45px;
    }
    
    .home-products-section .more-item-circle svg {
        width: 20px;
        height: 20px;
    }
    
    .home-products-section .more-item-text {
        font-size: 0.7rem;
    }
}