/* ── Page Header ── */
.page-header {
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border);
    padding: 3rem 0;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 0% 100%, rgba(201, 169, 110, 0.06) 0%, transparent 60%);
}

.page-header-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.1;
}

.breadcrumb-custom {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 0.75rem;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    position: relative;
    z-index: 2;
}

.breadcrumb-custom a {
    color: var(--text-muted);
    transition: color 0.2s;
}

.breadcrumb-custom a:hover {
    color: var(--accent);
}

.breadcrumb-sep {
    color: var(--border-light);
}

/* ── Filter Sidebar ── */
.filter-panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 2px;
    padding: 1.5rem;
    position: sticky;
    top: 88px;
}

.filter-heading {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}

.filter-section {
    margin-bottom: 1.5rem;
}

.filter-section-title {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.filter-section-title i {
    font-size: 0.7rem;
    transition: transform 0.2s;
}

/* ── Size / Fabric Filter Pills ── */
.size-checkboxs {
    display: none;
}

/* replaced by pill system */

.filter-pills-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.25rem;
}

.filter-pill-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.3rem 0.75rem;
    border: 1px solid var(--border-light);
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    border-radius: 1px;
    cursor: pointer;
    transition: border-color 0.18s, background 0.18s, color 0.18s;
    user-select: none;
    white-space: nowrap;
}

.filter-pill-label:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.filter-pill-label input[type="checkbox"] {
    display: none;
}

.filter-pill-label.pill-active {
    background: var(--accent-muted);
    border-color: var(--accent);
    color: var(--accent);
}

/* Collapsible filter section */
.filter-section-body {
    overflow: hidden;
    transition: max-height 0.3s ease;
    max-height: 999px;
}

.filter-section-body.collapsed {
    max-height: 0 !important;
}

.filter-section-title i {
    font-size: 0.7rem;
    transition: transform 0.2s;
    color: var(--text-muted);
}

.filter-section.collapsed .filter-section-title i {
    transform: rotate(-90deg);
}

/* ── Sort & Controls ── */
.listing-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 1.5rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.results-count {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.results-count strong {
    color: var(--text-primary);
}

.sort-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sort-label {
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    white-space: nowrap;
}

.view-toggle {
    display: flex;
    border: 1px solid var(--border-light);
    border-radius: 1px;
    overflow: hidden;
}

.view-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 0.4rem 0.65rem;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.view-btn.active,
.view-btn:hover {
    background: var(--accent);
    color: #000;
}

/* ── Active Filters ── */
.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--accent-muted);
    border: 1px solid rgba(201, 169, 110, 0.3);
    color: var(--accent);
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    padding: 0.3rem 0.7rem;
    border-radius: 1px;
}

.filter-tag a {
    color: var(--accent);
    line-height: 1;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.filter-tag a:hover {
    opacity: 1;
}

/* ── Product Grid ── */
.products-grid {}

.products-grid.list-view .product-card {
    display: flex;
    flex-direction: row;
}

.products-grid.list-view .img-wrap {
    width: 180px;
    flex-shrink: 0;
}

.products-grid.list-view .img-wrap img {
    aspect-ratio: 1;
}

/* ── Empty State ── */
.empty-state {
    text-align: center;
    padding: 5rem 2rem;
}

.empty-icon {
    font-size: 3rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.empty-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.empty-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

/* ── Range Slider ── */
.price-range {
    display: flex;
    gap: 0.5rem;
    overflow: hidden;
    transition: max-height 0.3s ease;
    max-height: 999px;
}

.price-range.collapsed {
    max-height: 0 !important;
}

.price-input-group {
    flex: 1;
}

.price-input-group label {
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    display: block;
    margin-bottom: 0.3rem;
}

/* ── Vendor Checkboxes ── */
.vendor-list {
    max-height: 200px;
    overflow-y: auto;
}

.vendor-list::-webkit-scrollbar {
    width: 2px;
}

.vendor-list::-webkit-scrollbar-thumb {
    background: var(--accent);
}

.custom-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.3rem 0;
    cursor: pointer;
    font-size: 0.82rem;
    color: var(--text-secondary);
    transition: color 0.2s;
}

.custom-check:hover {
    color: var(--text-primary);
}

.custom-check input[type="radio"] {
    accent-color: var(--accent);
}