/* ===== RESET / SCOPE ======================================================
   All rules are prefixed with .cat- so they never clash with Bootstrap.
   site.css uses !important on h1/h2/h3/a — we must counter with !important.
   ========================================================================== */

.cat-page *,
.cat-page *::before,
.cat-page *::after { box-sizing: border-box; }

/* Override site.css global typography within .cat-page */
.cat-page h1,
.cat-page h2,
.cat-page h3 {
    font-size: inherit !important;
    letter-spacing: normal !important;
    line-height: 1.3 !important;
    color: inherit !important;
    margin: 0 !important;
}
.cat-page a:not(.btn):hover {
    color: inherit !important;
}
.cat-page p {
    margin: 0;
}

/* ----- layout wrapper ---------------------------------------------------- */
.cat-page {
    display: flex !important;
    gap: 2rem;
    width: 100%;
    padding: 1.5rem 15px 3rem;
    align-items: flex-start;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
}
@media (min-width: 576px)  { .cat-page { max-width: 540px;  margin: 0 auto; } }
@media (min-width: 768px)  { .cat-page { max-width: 720px;  } }
@media (min-width: 992px)  { .cat-page { max-width: 960px;  } }
@media (min-width: 1200px) { .cat-page { max-width: 1140px; } }
@media (min-width: 1400px) { .cat-page { max-width: 1300px; } }
@media (min-width: 1900px) { .cat-page { max-width: 1680px; } }

/* ===== SIDEBAR ============================================================ */
.cat-sidebar {
    display: none;
    width: 260px;
    flex-shrink: 0;
    position: sticky;
    top: 100px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    overflow: hidden;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}
@media (min-width: 768px) {
    .cat-sidebar { display: block; }
}

.cat-sidebar::-webkit-scrollbar { width: 4px; }
.cat-sidebar::-webkit-scrollbar-track { background: transparent; }
.cat-sidebar::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 2px; }

/* search box inside sidebar */
.cat-sidebar-search {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f3f4f6;
}
.cat-sidebar-search input {
    width: 100%;
    padding: 0.5rem 0.625rem 0.5rem 2rem;
    font-size: 0.8125rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    background: #f9fafb url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E") no-repeat 0.625rem center;
    color: #374151;
    transition: border-color .15s, box-shadow .15s;
    outline: none;
}
.cat-sidebar-search input:focus {
    border-color: #ccea4a;
    box-shadow: 0 0 0 3px rgba(204,234,74,.2);
}

/* nav list */
.cat-nav { list-style: none; margin: 0; padding: 0.25rem 0; }
.cat-nav-item { margin: 0; }

.cat-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.45rem 1rem;
    font-size: 0.8125rem;
    color: #374151;
    text-decoration: none;
    transition: background .12s, color .12s;
    cursor: pointer;
}
.cat-nav-link:hover { background: #f9fafb; color: #111827 !important; text-decoration: none !important; }
.cat-nav-link.cat-active {
    background: #fbfde8;
    color: #111827 !important;
    font-weight: 600;
    border-left: 3px solid #ccea4a;
    padding-left: calc(1rem - 3px);
}

.cat-nav-link-inner { display: flex; align-items: center; gap: 0.5rem; }

.cat-nav-count {
    font-size: 0.6875rem;
    color: #9ca3af;
    background: #f3f4f6;
    padding: 0.1rem 0.4rem;
    border-radius: 9999px;
    min-width: 1.5rem;
    text-align: center;
}
.cat-active .cat-nav-count {
    background: #ecf5b3;
    color: #111827;
}

/* sidebar section label — collapsible toggle */
.cat-sidebar-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.625rem 1rem;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #9ca3af;
    border-top: 1px solid #f3f4f6;
    margin-top: 0.25rem;
    cursor: pointer;
    transition: color .12s;
    user-select: none;
}
.cat-sidebar-section:hover { color: #6b7280; }
.cat-sidebar-section-arrow {
    transition: transform .2s;
    flex-shrink: 0;
}
.cat-sidebar-section.collapsed .cat-sidebar-section-arrow {
    transform: rotate(-90deg);
}
.cat-sidebar-collapsible {
    overflow: hidden;
    max-height: 300px;
    transition: max-height .25s ease;
}
.cat-sidebar-collapsible.collapsed {
    max-height: 0;
}

/* ===== MAIN CONTENT ======================================================= */
.cat-main { flex: 1; min-width: 0; }

/* breadcrumb */
.cat-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    color: #9ca3af;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}
.cat-breadcrumb a { color: #6b7280 !important; text-decoration: none !important; transition: color .12s; }
.cat-breadcrumb a:hover { color: #111827 !important; }
.cat-breadcrumb-sep { color: #d1d5db; }
.cat-breadcrumb-current { color: #374151; font-weight: 500; }

/* ─── HERO (listing mode) ──────────────────────────────────────────────────── */
.cat-hero {
    background: #ccea4a;
    border-radius: 1rem;
    padding: 2.5rem 2.5rem 2rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}
.cat-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #111827;
    background: rgba(255,255,255,.6);
    border-radius: 9999px;
    padding: 0.25rem 0.75rem;
    margin-bottom: 0.75rem;
}
.cat-hero h1 {
    font-size: 2rem !important;
    font-weight: 800 !important;
    margin: 0 0 0.5rem !important;
    line-height: 1.2 !important;
    color: #111827 !important;
}
.cat-hero-accent {
    color: #111827 !important;
}
.cat-hero-desc {
    font-size: 0.9375rem;
    color: #111827;
    margin: 0 0 1.25rem;
    max-width: 560px;
    line-height: 1.6;
    padding-bottom: 22px;
}
.cat-hero-stats {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.cat-hero-stat {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.875rem;
    background: rgba(255,255,255,.5);
    border-radius: 9999px;
    padding: 0.35rem 0.875rem;
}
.cat-hero-stat-value { font-weight: 700; color: #111827; }
.cat-hero-stat-label { color: #6b7280; }

/* ─── CONTROLS BAR ─────────────────────────────────────────────────────────── */
.cat-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    gap: 1rem;
}
.cat-controls-title {
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    color: #111827 !important;
    margin: 0 !important;
}

/* ─── CATEGORY GRID ─────────────────────────────────────────────────────────── */
.cat-grid-section-label {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #9ca3af;
    margin: 0 0 0.75rem;
}

/* Featured: 2-column */
.cat-grid-featured {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    margin-bottom: 2rem;
}

/* Regular: 3-column */
.cat-grid-regular {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}

/* Category Card */
.cat-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    transition: transform .18s, box-shadow .18s, border-color .18s;
    position: relative;
}
.cat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0,0,0,.08);
    border-color: #d4e85a;
    text-decoration: none !important;
    color: inherit !important;
}

/* Card image area */
.cat-card-img {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #f8fafb;
}

/* Thumbnail grid — 2x2 grid of actual illustrations (matches production) */
.cat-card-thumbgrid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    padding: 14px;
    background: #f9fafb;
}
.cat-card-featured .cat-card-thumbgrid {
    padding: 16px;
    gap: 8px;
}
.cat-card-thumbgrid img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
    border-radius: 6px;
    background: #fff;
    padding: 4px;
}
.cat-card-thumb-empty {
    width: 100%;
    aspect-ratio: 1;
    background: #f3f4f6;
    border-radius: 6px;
}

/* no-image placeholder */
.cat-card-no-image {
    width: 100%;
    padding: 3rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #fbfde8, #f5fad4);
}
.cat-card-no-image svg { opacity: .3; }

/* Asset count badge overlay */
.cat-card-badge {
    position: absolute;
    bottom: 0.5rem;
    right: 0.5rem;
    background: rgb(204, 234, 74);
    color: #111827;
    font-size: 0.6875rem;
    font-weight: 700;
    padding: 0.2rem 0.625rem;
    border-radius: 9999px;
    letter-spacing: .01em;
}

/* Card body */
.cat-card-body {
    padding: 0.75rem 1rem 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.cat-card-name {
    font-size: 0.9375rem !important;
    font-weight: 700 !important;
    color: #111827 !important;
    margin: 0 !important;
    line-height: 1.3 !important;
}
.cat-card-featured .cat-card-name { font-size: 1.0625rem !important; }

.cat-card-desc {
    font-size: 0.8125rem;
    color: #6b7280;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
}

.cat-card-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.375rem;
}
.cat-card-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 0.15rem 0.5rem;
    border-radius: 9999px;
}
.cat-card-tag-illus { background: #fff7ed; color: #c2410c; }
.cat-card-tag-sub   { background: #fbfde8; color: #111827; }

/* ─── BROWSE BY STYLE SECTION ──────────────────────────────────────────────── */
.cat-styles-section {
    margin: 2rem 0 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}
.cat-styles-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}
.cat-styles-title {
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    color: #111827 !important;
    margin: 0 0 0.25rem !important;
}
.cat-styles-desc {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0;
}
.cat-styles-viewall {
    font-size: 0.875rem;
    font-weight: 600;
    color: #111827;
    text-decoration: none;
    white-space: nowrap;
    margin-top: 0.25rem;
}
.cat-styles-viewall:hover { text-decoration: underline !important; color: #111827 !important; }

.cat-styles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}
.cat-style-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.25rem 1rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    text-decoration: none;
    color: inherit;
    transition: border-color .15s, box-shadow .15s;
}
.cat-style-card:hover {
    border-color: #d4e85a;
    box-shadow: 0 4px 12px rgba(0,0,0,.06);
    text-decoration: none;
    color: inherit;
}
.cat-style-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fbfde8;
    border-radius: 0.625rem;
    margin-bottom: 0.625rem;
}
/* Distinct color per style */
.cat-style-icon-lime   { background: #fbfde8; color: #4d5e0f; }
.cat-style-icon-blue   { background: #eff6ff; color: #2563eb; }
.cat-style-icon-purple { background: #f5f3ff; color: #7c3aed; }
.cat-style-icon-pink   { background: #fdf2f8; color: #db2777; }
.cat-style-icon-amber  { background: #fffbeb; color: #d97706; }
.cat-style-icon-teal   { background: #f0fdfa; color: #0d9488; }
.cat-style-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.125rem;
}
.cat-style-count {
    font-size: 0.75rem;
    color: #9ca3af;
}

/* ─── INFO SECTION ─────────────────────────────────────────────────────────── */
.cat-info-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2.5rem;
    padding: 2rem;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
}
.cat-info-title {
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    color: #111827 !important;
    margin: 0 0 0.75rem !important;
}
.cat-info-subtitle {
    font-size: 1rem !important;
    font-weight: 700 !important;
    color: #111827 !important;
    margin: 0 0 0.75rem !important;
}
.cat-info-text {
    font-size: 0.875rem;
    color: #4b5563;
    line-height: 1.7;
    margin: 0 0 0.75rem;
}
.cat-info-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.cat-info-list li {
    font-size: 0.875rem;
    color: #4b5563;
    line-height: 1.7;
    padding-left: 1.75rem;
    position: relative;
    margin-bottom: 0.5rem;
}
.cat-info-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    width: 18px;
    height: 18px;
    background: #ecf5b3;
    border-radius: 50%;
}
.cat-info-list li::after {
    content: "\2713";
    position: absolute;
    left: 4px;
    top: 3px;
    font-size: 11px;
    font-weight: 800;
    color: #4d5e0f;
}

/* ─── CTA BANNER (outside .cat-page flex layout for full-width) ───────────── */
.cat-cta-wrapper {
    width: 100%;
    padding: 0 15px 2rem;
    margin: 0 auto;
}
@media (min-width: 576px)  { .cat-cta-wrapper { max-width: 540px; } }
@media (min-width: 768px)  { .cat-cta-wrapper { max-width: 720px; } }
@media (min-width: 992px)  { .cat-cta-wrapper { max-width: 960px; } }
@media (min-width: 1200px) { .cat-cta-wrapper { max-width: 1140px; } }
@media (min-width: 1400px) { .cat-cta-wrapper { max-width: 1300px; } }
@media (min-width: 1900px) { .cat-cta-wrapper { max-width: 1680px; } }
.cat-cta {
    background: #111827;
    border-radius: 1.25rem;
    padding: 3.5rem 2rem;
    text-align: center;
}
.cat-cta-title {
    font-size: 1.75rem !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    margin: 0 0 0.5rem !important;
    letter-spacing: -0.01em;
}
.cat-cta-desc {
    font-size: 1rem;
    color: #94a3b8;
    margin: 0 auto 1.5rem;
    max-width: 480px;
}
.cat-cta-buttons {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}
.cat-cta-btn {
    display: inline-flex;
    align-items: center;
    padding: 0 24px;
    height: 48px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 24px;
    text-decoration: none;
    transition: background 0.18s, box-shadow 0.18s, transform 0.12s;
}
.cat-cta-btn:hover { transform: translateY(-1px); text-decoration: none; }
.cat-cta-btn-primary {
    background: var(--brand-lime);
    color: var(--brand-dark);
}
.cat-cta-btn-primary:hover { box-shadow: 0 6px 20px rgba(204,234,74,.45); color: var(--brand-dark) !important; }
.cat-cta-btn-secondary {
    background: rgba(255,255,255,.1);
    color: #fff;
    border: 1px solid rgba(255,255,255,.2);
}
.cat-cta-btn-secondary:hover { background: rgba(255,255,255,.15); color: #fff !important; }

/* ─── CATEGORY DETAIL HEADER ────────────────────────────────────────────────── */
.cat-detail-header {
    background: #ccea4a;
    border-radius: 1rem;
    padding: 2.5rem 2.5rem 2rem;
    margin-bottom: 1.5rem;
}
.cat-detail-header h1 {
    font-size: 1.75rem !important;
    font-weight: 800 !important;
    color: #111827 !important;
    margin: 0 0 0.375rem !important;
}
.cat-detail-header .cat-hero-desc { margin-bottom: 0.75rem; }
.cat-detail-stats {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}
.cat-detail-stat {
    font-size: 0.875rem;
    background: rgba(255,255,255,.5);
    border-radius: 9999px;
    padding: 0.25rem 0.75rem;
    color: #111827;
}
.cat-detail-stat strong { color: #111827; }

/* subcategory pills */
.cat-subcats {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}
.cat-subcat-pill {
    font-size: 0.8125rem;
    font-weight: 500;
    color: #374151;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 9999px;
    padding: 0.3rem 0.875rem;
    text-decoration: none;
    transition: background .12s, border-color .12s, color .12s;
}
.cat-subcat-pill:hover {
    background: #fbfde8;
    border-color: #ccea4a;
    color: #111827;
    text-decoration: none;
}
.cat-subcat-pill-active {
    background: #fbfde8;
    border-color: #ccea4a;
    color: #111827;
}

/* ─── SORT BAR (detail mode) ───────────────────────────────────────────────── */
.cat-sort-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    padding: 0.375rem 0.75rem;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    flex-wrap: nowrap;
}
.cat-sort-group {
    display: inline-flex;
    align-items: center;
    gap: 0;
    padding: 0;
    background: transparent;
    border-radius: 0;
    border: none;
}
.cat-sort-select {
    padding: 0.375rem 1.25rem 0.375rem 0.25rem;
    font-size: 0.8125rem;
    font-weight: 600;
    border: none;
    background: transparent;
    color: #111827;
    cursor: pointer;
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.125rem center;
    background-size: 10px;
    line-height: 1;
}
.cat-sort-select:focus {
    outline: 2px solid #ccea4a;
    outline-offset: 1px;
    border-radius: 4px;
}
.cat-sort-divider {
    width: 1px;
    height: 1.25rem;
    background: #d1d5db;
    flex-shrink: 0;
}
.cat-sort-count {
    margin-left: auto;
    font-size: 0.8125rem;
    color: #9ca3af;
    white-space: nowrap;
    padding-right: 0.25rem;
}
.cat-sort-count strong {
    color: #111827;
    font-weight: 700;
}
@media (max-width: 640px) {
    .cat-sort-bar {
        border-radius: 0.75rem;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    .cat-sort-count { width: 100%; text-align: center; }
}

/* ─── ILLUSTRATION GRID (detail mode) ──────────────────────────────────────── */
.cat-illus-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.cat-illus-card {
    position: relative;
    border-radius: 0.75rem;
    overflow: hidden;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    aspect-ratio: 1;
    cursor: pointer;
    transition: transform .15s, box-shadow .15s;
    text-decoration: none;
}
.cat-illus-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,.09);
    text-decoration: none;
}
.cat-illus-card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0.5rem;
    transition: transform .25s;
}
.cat-illus-card:hover img { transform: scale(1.05); }

/* hover overlay */
.cat-illus-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.72) 0%, rgba(0,0,0,.0) 55%);
    opacity: 0;
    transition: opacity .2s;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0.75rem;
}
.cat-illus-card:hover .cat-illus-overlay { opacity: 1; }
.cat-illus-overlay-name {
    font-size: 0.75rem;
    font-weight: 500;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.cat-illus-overlay-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.625rem;
    font-weight: 600;
    background: rgba(255,255,255,.2);
    color: #fff;
    border-radius: 9999px;
    padding: 0.1rem 0.45rem;
    margin-bottom: 0.25rem;
    width: fit-content;
}

/* load more */
.cat-load-more {
    display: block;
    margin: 1.5rem auto 0;
    padding: 0.625rem 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #111827;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 9999px;
    cursor: pointer;
    transition: background .15s, border-color .15s;
}
.cat-load-more:hover {
    background: #fbfde8;
    border-color: #ccea4a;
}

/* empty state */
.cat-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 1rem;
    color: #9ca3af;
    font-size: 1rem;
}
.cat-empty svg { margin-bottom: 1rem; opacity: .4; }

/* ─── RESPONSIVE ────────────────────────────────────────────────────────────── */
@media (min-width: 768px) {
    .cat-illus-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
    .cat-illus-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1280px) {
    .cat-illus-grid { grid-template-columns: repeat(5, 1fr); }
}

@media (max-width: 1023px) {
    .cat-grid-featured { grid-template-columns: 1fr; }
    .cat-grid-regular  { grid-template-columns: repeat(2, 1fr); }
    .cat-styles-grid { grid-template-columns: repeat(2, 1fr); }
    .cat-info-section { grid-template-columns: 1fr; }
}
/* Mobile filter bar */
.cat-mobile-bar {
    padding: 0.75rem 1rem;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}
.cat-mobile-select {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    color: #374151;
    background: #fff;
}
.cat-nav-spaced {
    padding-bottom: 1rem;
}
.cat-more-label {
    margin-top: 0.5rem;
}

@media (max-width: 767px) {
    .cat-page { padding: 1rem 0.75rem 2rem; }
    .cat-grid-regular { grid-template-columns: 1fr; }
    .cat-grid-featured { grid-template-columns: 1fr; }
    .cat-styles-grid { grid-template-columns: 1fr 1fr; }
    .cat-hero h1 { font-size: 1.375rem !important; }
    .cat-detail-header h1 { font-size: 1.375rem !important; }
    .cat-cta { padding: 2rem 1.25rem; }
    .cat-cta-title { font-size: 1.375rem; }
}
