/* =============================================
   CATEGORIES SECTION
   ============================================= */

.cats-section {
    background: transparent;
    border-top: none;
    border-bottom: none;
    padding: 0;
}

/* ── Scroll wrapper with right fade-out mask ── */
.cats-scroll-wrap {
    position: relative;
}

.cats-scroll-wrap::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 72px;
    background: linear-gradient(to left, #ffffff 0%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}

/* ── Category pill row ── */
.cats-row {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 18px 0;
    padding-right: 72px;
}

.cats-row::-webkit-scrollbar {
    display: none;
}

/* ── Single category pill ── */
.cat-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    flex: 0 0 auto;
    padding: 9px 18px;
    border-radius: 100px;
    border: 1.5px solid #E2E8F0;
    background: #F8FAFC;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    outline: none;
    font-family: inherit;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    -webkit-tap-highlight-color: transparent;
}

.cat-pill:hover {
    border-color: #CBD5E1;
    background: #ffffff;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.09);
    transform: translateY(-1px);
}

.cat-pill.active {
    background: linear-gradient(135deg, #13618C 0%, #1a7a3d 100%);
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(19, 97, 140, 0.32);
    transform: translateY(-1px);
}

/* ── Pill icon ── */
.cat-pill__icon {
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748B;
    flex-shrink: 0;
    transition: color 0.2s ease;
}

.cat-pill:hover .cat-pill__icon {
    color: #334155;
}

.cat-pill.active .cat-pill__icon {
    color: rgba(255, 255, 255, 0.9);
}

/* ── Pill label ── */
.cat-pill__label {
    font-size: 13.5px;
    font-weight: 600;
    color: #334155;
    line-height: 1;
    transition: color 0.2s ease;
}

.cat-pill:hover .cat-pill__label {
    color: #0F172A;
}

.cat-pill.active .cat-pill__label {
    color: #ffffff;
}

/* =============================================
   SUB-CATEGORY PILLS
   ============================================= */

.subcats-wrap {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                padding 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.25s ease;
    opacity: 0;
    padding: 0;
    border-top: 1px solid transparent;
}

.subcats-wrap.open {
    max-height: 80px;
    padding: 0 0 18px;
    opacity: 1;
    border-top-color: #F1F5F9;
}

.subcats-row {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-top: 14px;
    padding-right: 72px;
}

.subcats-row::-webkit-scrollbar {
    display: none;
}

/* ── Single sub-category pill ── */
.sub-pill {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    padding: 7px 16px;
    border-radius: 100px;
    border: 1.5px solid #E2E8F0;
    background: transparent;
    cursor: pointer;
    transition: all 0.18s ease;
    white-space: nowrap;
    outline: none;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    color: #475569;
    -webkit-tap-highlight-color: transparent;
}

.sub-pill:hover {
    border-color: #94A3B8;
    color: #0F172A;
    background: #F8FAFC;
    transform: translateY(-1px);
}

.sub-pill.active {
    background: linear-gradient(135deg, #13618C 0%, #1a7a3d 100%);
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 3px 10px rgba(19, 97, 140, 0.28);
}

/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 768px) {
    .cat-pill {
        padding: 8px 14px;
    }

    .cat-pill__label {
        font-size: 13px;
    }

    .sub-pill {
        font-size: 12px;
        padding: 6px 13px;
    }
}

@media (max-width: 480px) {
    .cat-pill {
        padding: 8px 12px;
        gap: 6px;
    }

    .cat-pill__label {
        font-size: 12.5px;
    }

    .cat-pill__icon {
        width: 14px;
        height: 14px;
    }
}


/* Categories Carousel */
