body {
    font-family: sans-serif;
    background: transparent;
    margin: 0;
    padding: 0; /* حاشیه کلی صفحه حذف شد */
    direction: rtl;
}

/* فاصله فقط مخصوص نوار اسکرول دسته‌بندی */
.carousel-container {
    overflow-x: auto;
    white-space: nowrap;
    padding: 40px 0; /* فقط بالا و پایین */
    text-align: center;
}

.carousel {
    display: inline-flex;
    justify-content: flex-start;
    gap: 40px;
    padding: 10px 20px;
}

.category-item {
    text-align: center;
    flex: 0 0 auto;
}

.category-icon {
    position: relative;
    width: 130px;
    height: 130px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    overflow: hidden;
    background: transparent;
}

.category-icon img {
    width: 130px;
    height: auto;
    transition: transform 0.2s ease;
    z-index: 2;
}

.category-icon:hover img {
    transform: scale(1.15);
}

.category-icon:hover {
    transform: scale(1.06);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.category-title {
    margin-top: 10px;
    font-size: 14px;
    font-weight: bold;
    color: #111;
}

/* گرادینت‌های رنگی مختلف برای پس‌زمینه آیکون‌ها */
.gradient1 {
    background: linear-gradient(135deg, #fddb92, #d1fdff);
}
.gradient2 {
    background: linear-gradient(135deg, #c2e9fb, #a1c4fd);
}
.gradient3 {
    background: linear-gradient(135deg, #fcb69f, #ffecd2);
}
.gradient4 {
    background: linear-gradient(135deg, #a1c4fd, #c2e9fb);
}
.gradient5 {
    background: linear-gradient(135deg, #96fbc4, #f9f586);
}
.gradient6 {
    background: linear-gradient(135deg, #e0c3fc, #8ec5fc);
}
.gradient7 {
    background: linear-gradient(135deg, #ff9a9e, #fad0c4);
}
.gradient8 {
    background: linear-gradient(135deg, #84fab0, #8fd3f4);
}

/* انیمیشن نمایش تدریجی */
@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fade-in {
    animation: fadeSlideIn 3s ease;
}
