/* ═══ Catalog Page (main catalog with filters) ═══ */

/* ── HERO TAGLINE ── */
.hero {
    text-align: center;
    padding: 48px 32px 12px;
    max-width: 700px;
    margin: 0 auto;
}
.hero h1 {
    font-family: var(--font-display);
    font-size: 44px;
    font-weight: 400;
    color: var(--warm-brown);
    line-height: 1.15;
    letter-spacing: -0.5px;
    margin-bottom: 12px;
}
.hero h1 em {
    font-style: italic;
    color: var(--rose-deep);
}
.hero p {
    font-size: 15px;
    color: var(--text-muted);
    font-weight: 300;
    max-width: 420px;
    margin: 0 auto;
}

/* ── LAYOUT ── */
.main-layout {
    max-width: 1440px;
    margin: 0 auto;
    padding: 24px 32px 80px;
    display: flex;
    gap: 32px;
}

/* ── FILTER SIDEBAR ── */
.sidebar {
    width: 280px;
    flex-shrink: 0;
    position: sticky;
    top: 96px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    padding-right: 8px;
    scrollbar-width: thin;
    scrollbar-color: var(--blush) transparent;
}
.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-track { background: transparent; }
.sidebar::-webkit-scrollbar-thumb { background: var(--blush); border-radius: 4px; }

.filter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}
.filter-header h2 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 600;
    color: var(--warm-brown);
}
.filter-clear {
    font-size: 12px;
    font-weight: 500;
    color: var(--rose);
    cursor: pointer;
    border: none;
    background: none;
    font-family: var(--font-body);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: var(--transition);
}
.filter-clear:hover { color: var(--burgundy); }

.filter-group {
    margin-bottom: 20px;
}
.filter-group-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 10px 0;
    border: none;
    background: none;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    color: var(--warm-brown);
    letter-spacing: 0.03em;
    text-transform: uppercase;
}
.filter-group-title svg {
    width: 14px;
    height: 14px;
    color: var(--text-muted);
    transition: transform 0.25s ease;
}
.filter-group.collapsed .filter-group-title svg {
    transform: rotate(-90deg);
}
.filter-group-divider {
    height: 1px;
    background: var(--border);
    margin-bottom: 2px;
}
.filter-options {
    padding: 10px 0 4px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    overflow: hidden;
    transition: max-height 0.35s ease, opacity 0.25s ease;
    max-height: 300px;
    opacity: 1;
}
.filter-group.collapsed .filter-options {
    max-height: 0;
    opacity: 0;
    padding: 0;
}
.filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    border: 1.5px solid var(--border);
    border-radius: 100px;
    font-family: var(--font-body);
    font-size: 12.5px;
    font-weight: 400;
    color: var(--text-muted);
    background: var(--warm-white);
    cursor: pointer;
    transition: var(--transition);
    user-select: none;
}
.filter-pill:hover {
    border-color: var(--rose);
    color: var(--text);
}
.filter-pill.active {
    background: var(--blush);
    border-color: var(--rose);
    color: var(--warm-brown);
    font-weight: 500;
}
.filter-color-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1.5px solid rgba(0,0,0,0.1);
    flex-shrink: 0;
}

/* ── CONTENT AREA ── */
.content { flex: 1; min-width: 0; }

/* ── MOBILE FILTER TOGGLE ── */
.mobile-filter-toggle {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--warm-white);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    margin-bottom: 16px;
    transition: var(--transition);
}
.mobile-filter-toggle svg { width: 18px; height: 18px; color: var(--text-muted); }
.mobile-filter-toggle:hover { border-color: var(--rose); }
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(61,43,43,0.3);
    z-index: 200;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.sidebar-overlay.visible { opacity: 1; }
.sidebar-close {
    display: none;
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--warm-white);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}
.sidebar-close svg { width: 16px; height: 16px; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
    .sidebar {
        position: fixed;
        top: 0;
        left: -320px;
        width: 300px;
        height: 100vh;
        height: 100dvh;
        max-height: 100vh;
        background: var(--cream);
        z-index: 201;
        padding: max(24px, env(safe-area-inset-top, 24px)) 24px calc(24px + env(safe-area-inset-bottom, 0px));
        transition: left 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        border-right: 1px solid var(--border);
    }
    .sidebar.open { left: 0; }
    .sidebar-overlay.open { display: block; }
    .sidebar-close { display: flex; }
    .mobile-filter-toggle { display: flex; }
    .hero h1 { font-size: 34px; }
    .main-layout { padding: 16px 20px 60px; }
    .header-inner { padding: 0 20px; }
}
@media (max-width: 600px) {
    .hero { padding: 32px 20px 8px; }
    .hero h1 { font-size: 28px; }
}
