/* ================================================
   CATEGORY PAGE - Tabs + Chips Navigation
   ================================================ */
.pg-cat-page {
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    color: var(--pg-dark);
    line-height: 1.6;
    width: 100%;
}

/* ---- Hero Banner ---- */
.pg-cat-hero {
    background: var(--pg-bg-page);
    padding: 48px 24px 40px;
    text-align: center;
}
.pg-cat-hero-inner {
    max-width: 1200px;
    margin: 0 auto;
}
.pg-cat-hero h1 {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-size: 32px;
    font-weight: 700;
    color: var(--pg-dark);
    margin: 0 0 8px 0;
    letter-spacing: -0.02em;
}
.pg-cat-hero h1 .pg-page-title-icon {
    width: 0.72em;
    height: 0.72em;
    flex: none;
    color: var(--pg-galaxy);
}
.pg-cat-hero-desc {
    font-size: 15px;
    color: var(--pg-grey);
    max-width: 600px;
    margin: 0 auto;
}
@media (min-width: 1025px) {
    .pg-cat-hero h1 { font-size: 38px; }
}

/* ---- Category Tabs (Level 2) ---- */
.pg-cat-nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.pg-cat-tabs-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
}
.pg-cat-tabs-wrapper::-webkit-scrollbar {
    display: none;
}

.pg-cat-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 16px 0;
}

.pg-cat-tab {
    min-height: 44px;
    padding: 10px 20px;
    border: 2px solid var(--pg-border-light);
    border-radius: 2px;
    background: var(--pg-white);
    font-size: 14px;
    font-weight: 600;
    color: var(--pg-grey);
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
    font-family: inherit;
    line-height: 1;
}

.pg-cat-tab:hover {
    border-color: var(--pg-border-medium);
    color: var(--pg-dark);
}

.pg-cat-tab.active {
    background: var(--pg-galaxy);
    border-color: var(--pg-galaxy);
    color: var(--pg-white);
}

/* ---- Category Chips (Level 3 grandchildren) ---- */
.pg-cat-chips-container {
    padding-bottom: 8px;
}

.pg-cat-chips {
    display: none;
    flex-wrap: wrap;
    gap: 8px;
    padding-bottom: 8px;
}
.pg-cat-chips::-webkit-scrollbar {
    display: none;
}

.pg-cat-chips.active {
    display: flex;
}

.pg-cat-chip {
    min-height: 40px;
    padding: 8px 16px;
    border: 1.5px solid var(--pg-border-light);
    border-radius: 2px;
    background: var(--pg-bg-light);
    font-size: 13px;
    font-weight: 500;
    color: var(--pg-grey);
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
    font-family: inherit;
    line-height: 1;
}

.pg-cat-chip:hover {
    border-color: var(--pg-galaxy);
    color: var(--pg-galaxy);
}

.pg-cat-chip.active {
    background: var(--pg-galaxy-light-bg);
    border-color: var(--pg-galaxy);
    color: var(--pg-galaxy);
    font-weight: 600;
}
