/* ── Section ── */
.cat-section {
    background: var(--site-section-bg, #f9f9f9);
}

/* ── Header ── */
.cat-section__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cat-section__title {
    font-size: 1.25rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--site-text, #1a1a1a);
    display: inline-block;
    padding-bottom: 7px;
    border-bottom: 3px solid var(--site-primary, #1a1a2e);
    margin-bottom: 0;
}

.cat-all-btn {
    display: inline-flex;
    align-items: center;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--site-primary, #1a1a2e);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    padding-bottom: 2px;
    transition: border-color 0.25s ease;
}

.cat-all-btn:hover {
    color: var(--site-primary, #1a1a2e);
    text-decoration: none;
    border-color: var(--site-primary, #1a1a2e);
}

/* ── Swiper wrapper ── */
.cat-swiper-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cat-swiper {
    flex: 1;
    overflow: hidden;
}

/* ── Nav arrows ── */
.cat-nav {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--site-primary, #1a1a2e);
    background: #fff;
    color: var(--site-primary, #1a1a2e);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition:
        background 0.2s,
        color 0.2s;
}

.cat-nav:hover {
    background: var(--site-primary, #1a1a2e);
    color: #fff;
}

/* ── Card ── */
.cat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 16px 10px 14px;
    background: #fff;
    border-radius: 16px;
    border: 1.5px solid #e8e8e8;
    transition:
        box-shadow 0.25s,
        transform 0.25s,
        border-color 0.25s;
    text-decoration: none;
}

.cat-card:hover {
    box-shadow: 0 8px 28px rgba(34, 66, 41, 0.13);
    transform: translateY(-3px);
    border-color: var(--site-primary, #1a1a2e);
    text-decoration: none;
}

/* ── Image circle ── */
.cat-card__img-wrap {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #f1f4f2;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: background 0.25s;
}

.cat-card:hover .cat-card__img-wrap {
    background: #e6efe8;
}

.cat-card__img {
    width: 82px;
    height: 82px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.cat-card:hover .cat-card__img {
    transform: scale(1.1);
}

/* ── Name ── */
.cat-card__name {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--site-text, #1a1a1a);
    text-align: center;
    margin: 0;
    line-height: 1.3;
    transition: color 0.2s;
}

.cat-card:hover .cat-card__name {
    color: var(--site-primary, #1a1a2e);
}

/* ── RTL nav arrows ── */
[dir="rtl"] .cat-nav--prev i {
    transform: rotate(180deg);
}
[dir="rtl"] .cat-nav--next i {
    transform: rotate(180deg);
}
