/* 24racks Store — restrained category cards.
   The catalog uses cards for scanability, not as decorative containers. */

.store-filter-bar {
    width: min(calc(100% - 32px), 1040px);
    margin-top: -25px;
    padding: 0;
    overflow-x: auto;
    border: 0;
    border-bottom: 1px solid var(--border-dim);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.store-filter {
    flex: 1 0 auto;
    min-height: 42px;
    padding: 10px 15px 9px;
    border: 0;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    background: transparent;
    font-size: 12px;
}

.store-filter:hover,
.store-filter:focus-visible {
    color: var(--text-1);
    background: transparent;
}

.store-filter:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: -2px;
    box-shadow: none;
}

.store-filter.is-active {
    border-color: var(--brand);
    color: var(--text-1);
    background: transparent;
}

.category-card-grid {
    align-items: stretch;
    margin-top: 2px;
}

.category-card--refined {
    display: flex;
    flex-direction: column;
    min-height: 326px;
    padding: 24px;
    overflow: hidden;
    border: 1px solid var(--border-dim);
    border-radius: 14px;
    background: var(--bg-elevated);
    box-shadow: none;
    transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.category-card--refined::before,
.category-card--refined::after {
    content: none;
}

.category-card--refined:hover {
    border-color: color-mix(in srgb, var(--brand) 48%, var(--border-dim));
    background: var(--bg-hover);
    transform: translateY(-3px);
}

.category-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 18px;
}

.category-card--refined .category-card__count,
.category-card__index {
    margin: 0;
    color: var(--text-3);
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 750;
    letter-spacing: .1em;
    line-height: 1.1;
    text-transform: uppercase;
}

.category-card__index {
    color: var(--blue-text);
}

.category-card__identity {
    margin-top: 23px;
}

.category-card__identity h3 {
    margin: 0;
    color: var(--text-1);
    font-family: var(--font-display);
    font-size: clamp(21px, 2vw, 25px);
    font-weight: 800;
    letter-spacing: -.035em;
    line-height: 1.08;
}

.category-card__identity p {
    display: -webkit-box;
    margin: 10px 0 0;
    overflow: hidden;
    color: var(--text-2);
    font-size: 12px;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.category-card--refined .category-card__plans {
    margin: 22px 0 0;
    padding-top: 15px;
    border-top: 1px solid var(--border-dim);
}

.category-card--refined .category-card__plans > span {
    display: block;
    margin-bottom: 8px;
    color: var(--text-3);
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 750;
    letter-spacing: .09em;
    line-height: 1.2;
    text-transform: uppercase;
}

.category-card--refined .category-card__plans ul {
    display: grid;
    gap: 5px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.category-card--refined .category-card__plans li {
    overflow: hidden;
    color: var(--text-2);
    font-size: 12px;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.category-card--refined .category-card__plans li::before {
    content: "—";
    margin-right: 7px;
    color: var(--blue-text);
}

.category-card__footer {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-top: auto;
    padding-top: 22px;
}

.category-card--refined .category-card__price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 3px 5px;
    margin: 0;
    font-variant-numeric: tabular-nums;
}

.category-card--refined .category-card__price > span {
    width: 100%;
    color: var(--text-3);
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 750;
    letter-spacing: .08em;
    line-height: 1;
    text-transform: uppercase;
}

.category-card--refined .category-card__price strong {
    color: var(--text-1);
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -.04em;
    line-height: 1;
}

.category-card--refined .category-card__price small {
    color: var(--text-3);
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 650;
}

.category-card__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    color: var(--text-1);
    background: transparent;
    font-size: 12px;
    font-weight: 760;
    text-decoration: none;
    white-space: nowrap;
    transition: border-color .18s ease, background .18s ease, color .18s ease;
}

.category-card__cta > span:last-child {
    color: var(--blue-text);
    font-size: 16px;
    line-height: 1;
    transition: transform .18s ease;
}

.category-card__cta:hover,
.category-card__cta:focus-visible {
    border-color: var(--brand);
    color: #fff;
    background: var(--brand);
}

.category-card__cta:hover > span:last-child,
.category-card__cta:focus-visible > span:last-child {
    color: currentColor;
    transform: translateX(3px);
}

.category-card__cta:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 3px;
}

@media (max-width: 640px) {
    .store-filter-bar {
        width: calc(100% - 24px);
        margin-top: -18px;
    }

    .store-filter {
        flex: 0 0 auto;
        min-width: auto;
        padding-inline: 13px;
    }

    .category-card--refined {
        min-height: 300px;
        padding: 21px;
    }

    .category-card__identity {
        margin-top: 20px;
    }

    .category-card__identity h3 {
        font-size: 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .category-card--refined,
    .category-card__cta,
    .category-card__cta > span:last-child {
        transition: none;
    }

    .category-card--refined:hover {
        transform: none;
    }
}
