/* Store Hub — mobile-first category nav and layout */

.storehub-page-header {
    justify-content: center;
    text-align: center;
    margin-bottom: var(--spacing-md);
}

.storehub-page-header .page-header-content {
    align-items: center;
}

.storehub-categories {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
    padding-bottom: 0.75rem;
}

.storehub-categories-scroll {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.5rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    padding: 0.25rem 0;
    margin: 0 -0.25rem;
    scrollbar-width: thin;
}

.storehub-categories-scroll::-webkit-scrollbar {
    height: 4px;
}

.storehub-category-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
    scroll-snap-align: start;
    min-height: 44px;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md, 6px);
    font-weight: 600;
    font-size: 0.9375rem;
    text-decoration: none;
    color: var(--gray-700);
    background: var(--gray-100);
    border: 1px solid transparent;
    white-space: nowrap;
}

.storehub-category-pill:hover {
    color: var(--primary);
    background: var(--gray-50);
}

.storehub-category-pill:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.storehub-category-pill.is-active {
    color: #fff;
    background: var(--primary);
    border-color: var(--primary);
}

.storehub-category-pill .pill-icon {
    font-size: 0.85rem;
    opacity: 0.85;
}

.storehub-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
}

.package-placeholder {
    background: linear-gradient(135deg, #cf2e3e 0%, #b02836 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: 3rem;
    color: white;
}

.package-price {
    font-weight: 600;
    color: var(--primary);
    font-size: 1.1rem;
}

.card-meta {
    font-size: 0.875rem;
    color: var(--gray-600);
    margin: 0.25rem 0;
}

@media (min-width: 576px) {
    .storehub-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (min-width: 992px) {
    .storehub-page-header {
        align-items: center;
        text-align: center;
    }

    .storehub-page-header .page-header-content {
        width: 100%;
        align-items: center;
    }

    .storehub-categories-scroll {
        flex-wrap: wrap;
        justify-content: center;
        overflow-x: visible;
    }
}
