/* ==========================================================================
   Category pills above the product list (brand, offers and search pages).
   Markup: storefront/listing/_category-pills.blade.php
   One row that scrolls sideways. The last 24px on the right fade, so a pill
   cut by the edge shows there are more; a short row never reaches the fade.
   ========================================================================== */

.category-pills {
    margin: 0 0 12px;
    padding: 2px 2px 4px;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(to right, #000000 calc(100% - 24px), transparent);
    mask-image: linear-gradient(to right, #000000 calc(100% - 24px), transparent);
}

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

.category-pill {
    flex: 0 0 auto;
    height: 34px;
    padding: 0 14px;
    border: 1px solid #E2DCEB;
    border-radius: 999px;
    background: #FFFFFF;
    color: #2A1052;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    -webkit-tap-highlight-color: transparent;
}

.category-pill:last-child {
    margin-right: 24px;     /* room to scroll the last pill out of the fade */
}

.category-pill__count {
    color: #9A90AE;
    font-size: 12px;
    font-weight: 600;
}

.category-pill.is-selected {
    background: #2A1052;
    border-color: #2A1052;
    color: #FFFFFF;
}

.category-pill.is-selected .category-pill__count {
    color: #D9CCF2;
}

.category-pill:focus-visible {
    outline: 2px solid #D91E5B;
    outline-offset: 2px;
}
