/* ═══════════════════════════════════════════════════════════════
   category-nav.css — Storefront Category Filter Bar
   Blended pill bar below the title block. Left-aligned, scrollable.
   ═══════════════════════════════════════════════════════════════ */

/* ─── Container ─── */
#cat-nav {
    display: flex;
    align-items: center;
}

/* ─── Inner — horizontal scroll row ─── */
#cat-nav-inner {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 2px 0;
}
#cat-nav-inner::-webkit-scrollbar { display: none; }

/* ─── Pills ─── */
.cn-pill {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 18px;
    border-radius: 100px;
    font-family: 'Outfit', 'Inter', system-ui, sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: rgba(0,0,0,.4);
    background: transparent;
    border: 1.5px solid rgba(0,0,0,.1);
    cursor: pointer;
    transition: all .3s cubic-bezier(.4,0,.2,1);
    text-decoration: none;
    white-space: nowrap;
    user-select: none;
    -webkit-user-select: none;
}

/* Icon inside pill */
.cn-pill svg {
    width: 13px;
    height: 13px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
    opacity: .7;
}

/* ─── Hover ─── */
.cn-pill:hover {
    color: var(--accent, #2D6A4F);
    border-color: rgba(var(--accent-rgb, 45,106,79), .3);
    background: rgba(var(--accent-rgb, 45,106,79), .04);
    transform: translateY(-1px);
}

/* ─── Active ─── */
.cn-pill.cn-active {
    color: #fff;
    background: var(--accent, #2D6A4F);
    border-color: var(--accent, #2D6A4F);
    box-shadow: 0 3px 12px rgba(var(--accent-rgb, 45,106,79), .22);
}
.cn-pill.cn-active svg { opacity: 1; }
.cn-pill.cn-active:hover {
    box-shadow: 0 5px 20px rgba(var(--accent-rgb, 45,106,79), .32);
    transform: translateY(-1px);
    filter: brightness(1.08);
}

/* ─── Count badge ─── */
.cn-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 100px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1;
    background: rgba(0,0,0,.06);
    color: rgba(0,0,0,.35);
    transition: all .3s;
}
.cn-pill:hover .cn-count {
    background: rgba(var(--accent-rgb, 45,106,79), .1);
    color: var(--accent, #2D6A4F);
}
.cn-pill.cn-active .cn-count {
    background: rgba(255,255,255,.22);
    color: #fff;
}
.cn-pill.cn-active:hover .cn-count {
    background: rgba(255,255,255,.28);
}

/* ─── Divider ─── */
.cn-divider {
    flex-shrink: 0;
    width: 1px;
    height: 20px;
    background: rgba(0,0,0,.1);
    margin: 0 4px;
}

/* ─── Section highlight ─── */
.category-section.cn-highlight {
    animation: cn-pulse .6s ease-out;
}
@keyframes cn-pulse {
    0% { box-shadow: inset 0 0 0 0 rgba(var(--accent-rgb, 45,106,79), .12); }
    40% { box-shadow: inset 0 0 0 3px rgba(var(--accent-rgb, 45,106,79), .06); }
    100% { box-shadow: inset 0 0 0 0 transparent; }
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
    #cat-nav-inner { gap: 6px; }
    .cn-pill {
        padding: 7px 14px;
        font-size: 10px;
        letter-spacing: 1px;
    }
    .cn-count {
        min-width: 18px;
        height: 18px;
        font-size: 9px;
    }
}
