/* === بخش کانتینر اصلی === */
.cs-categories-list-container {
    padding: 0 15px;
}

.cs-categories-list__heading {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2.5rem;
    color: #1a1a1a;
}

/* === ریپر آیتم‌ها (نمایش آزاد با فلکس) === */
.cs-categories-list__wrapper {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.375rem; /* گپ ۶px بین کارت‌ها */
}

/* === آیتم دسته‌بندی (پیل شکل) === */
.cs-category-item {
    display: flex;
    flex-direction: row;       /* پیش‌فرض آیکون سمت چپ */
    align-items: center;
    justify-content: center;
    gap: 0.375rem;             /* فاصله ۶px بین آیکون و متن */
    width: max-content;
    background-color: #ffffff; /* یا var(--cs-layout-background) اگر تعریف شده */
    box-shadow: 0px 5px 25px 0px rgba(114, 114, 255, 0.12);
    padding: 0.75rem 1.25rem 0.75rem 1.125rem;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
    border-radius: 100px;
    position: relative;
    border: none;
}

/* حالت آیکون سمت راست */
.cs-category-item--icon-right {
    flex-direction: row-reverse;
}

/* هاور: سایه بیشتر و کمی بالاآمدن */
.cs-category-item:hover {
    box-shadow: 0px 8px 30px 0px rgba(114, 114, 255, 0.22);
    transform: translateY(-2px);
}

/* === بخش آیکون === */
.cs-category-item__icon-box {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}

.cs-category-item__icon img {
    display: block;
    width: 24px;
    height: 24px;
    object-fit: contain;
    border-radius: 4px; /* گوشه‌های نرم برای آیکون */
}

/* === عنوان و لینک === */
.cs-category-item__title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    position: relative;
    z-index: 2;
}

.cs-category-item__title a {
    color: #29294B;
    text-decoration: none; /* حذف زیرخط */
    transition: color 0.2s;
}

.cs-category-item:hover .cs-category-item__title a {
    color: #1e1e3a; /* کمی تیره‌تر در هاور */
}

/* === لینک پوششی (تمام کارت قابل کلیک) === */
.cs-category-item__link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    text-indent: -9999px;
    overflow: hidden;
}

/* === واکنش‌گرایی === */
@media (max-width: 767px) {
    .cs-category-item {
        padding: 0.6rem 1.2rem;
        gap: 0.3rem;
    }
    .cs-category-item__title {
        font-size: 16px;
    }
    .cs-category-item__icon img {
        width: 22px;
        height: 22px;
    }
}