/* ====================================================
   Category Type Tabs — pill row with horizontal scroll
   Extracted from template-parts/category-slider.php
   ==================================================== */

.category-slider {
    background: #fff;
}

.category-slider__container {
    overflow: hidden;
}

.category-row {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    padding: 14px 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;       /* Firefox */
    -ms-overflow-style: none;    /* IE/Edge */
    align-items: center;
}

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

/* Thumbnail — retained for backward compat, hidden in pill mode */
.category-img {
    display: none;
}

.category-link-button .category-card a,
.all-link .all-btn {
    font-weight: 500;
    font-size: 14px;
    background-color: transparent;
    border: 1.5px solid #FF7396;
    color: #FF7396;
    outline: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    border-radius: 200px;
    padding: 9px 18px;
    display: inline-block;
    cursor: pointer;
    text-transform: capitalize;
    white-space: nowrap;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
    line-height: 1;
}

.category-link-button .category-card a:hover,
.all-link .all-btn:hover,
.category-link-button .category-card a.active,
.all-link .all-btn.active {
    background-color: #FF7396;
    color: #fff;
}

.all-link {
    text-align: center;
    flex-shrink: 0;
}

.category-card {
    flex-shrink: 0;
}

/* Prevent global .button_section margin from lifting the active tab in flex row */
.category-row .button_section {
    margin-bottom: 0;
    display: flex;
    align-items: center;
}

@media (min-width: 768px) {
    .category-row {
        padding: 16px 0;
        flex-wrap: wrap;
        overflow-x: visible;
        gap: 8px;
        justify-content: center;
    }

    .category-link-button .category-card a,
    .all-link .all-btn {
        font-size: 15px;
        padding: 10px 22px;
    }
}
