/* ===================== Categories listing page ===================== */

.cats-hero {
    background: linear-gradient(180deg, #f8f5ef 0%, #fdfaf3 100%);
    border-bottom: 1px solid #ece6d6;
    padding: 56px 0 44px;
}

.cats-breadcrumb {
    color: #8a7a55;
    font-size: 13px;
    margin-bottom: 14px;
}

.cats-breadcrumb a {
    color: #8a7a55;
    text-decoration: none;
}

.cats-breadcrumb a:hover {
    color: #b07e46;
}

.cats-breadcrumb .sep {
    margin: 0 8px;
    color: #c5b58c;
}

.cats-hero-title {
    font-size: clamp(1.9rem, 4.5vw, 3rem);
    font-weight: 700;
    color: #1f1d18;
    letter-spacing: -0.5px;
    margin: 0 0 10px;
}

.cats-hero-intro {
    color: #5b554a;
    max-width: 640px;
    font-size: 1.02rem;
    line-height: 1.7;
    margin: 0;
}

.cats-section {
    padding: 60px 0 80px;
    background: #ffffff;
}

.cats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 28px;
}

.cat-card {
    background: #fff;
    border: 1px solid #ece6d6;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .25s ease, box-shadow .25s ease;
    box-shadow: 0 4px 18px rgba(20, 16, 8, 0.04);
}

.cat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(20, 16, 8, 0.09);
}

.cat-card-img {
    position: relative;
    aspect-ratio: 16 / 11;
    background: #f3ead4;
    overflow: hidden;
    display: block;
}

.cat-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.cat-card:hover .cat-card-img img {
    transform: scale(1.05);
}

.cat-card-count {
    position: absolute;
    bottom: 12px;
    inset-inline-start: 12px;
    background: rgba(31, 29, 24, 0.85);
    color: #fdfaf3;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 999px;
    letter-spacing: .3px;
}

.cat-card-body {
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex: 1 1 auto;
}

.cat-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f1d18;
    line-height: 1.3;
    margin: 0;
}

.cat-card-title a {
    color: inherit;
    text-decoration: none;
}

.cat-card-title a:hover {
    color: #b07e46;
}

.cat-card-subs-label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #8a7a55;
    font-weight: 600;
    margin-bottom: 8px;
}

.cat-card-subs-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cat-card-sub {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f8f5ef;
    border: 1px solid #ece6d6;
    color: #2e2a23;
    font-size: 13px;
    padding: 6px 12px;
    border-radius: 999px;
    text-decoration: none;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.cat-card-sub:hover {
    background: #b07e46;
    border-color: #b07e46;
    color: #fff;
}

.cat-card-sub em {
    font-style: normal;
    font-size: 11px;
    color: #8a7a55;
    font-weight: 600;
}

.cat-card-sub:hover em {
    color: #fdfaf3;
}

.cat-card-cta {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #b07e46;
    font-weight: 600;
    text-decoration: none;
    font-size: .95rem;
}

.cat-card-cta:hover {
    color: #8a5d2c;
}

[dir="rtl"] .cat-card-cta svg {
    transform: scaleX(-1);
}

.cats-empty {
    text-align: center;
    color: #8a7a55;
    padding: 60px 0;
    font-size: 1.05rem;
}
