/* Products Page Styles */
.page-header {
    background:
        radial-gradient(900px 400px at 90% -10%, rgba(124, 58, 237, 0.18), transparent 60%),
        radial-gradient(700px 300px at -10% 30%, rgba(79, 70, 229, 0.15), transparent 60%),
        linear-gradient(180deg, #f5f3ff 0%, #ffffff 100%);
    padding: 72px 0;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.page-title {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    margin-bottom: 10px;
    color: var(--text);
    font-weight: var(--font-weight-extrabold);
    letter-spacing: -0.02em;
}

.page-description {
    font-size: 16px;
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto;
}

.products-page {
    padding: 64px 0;
    background: var(--bg);
}

.products-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 28px;
    align-items: start;
}

/* Sidebar */
.products-sidebar {
    position: sticky;
    top: calc(var(--header-h, 76px) + 16px);
}

.sidebar-section {
    background: var(--surface);
    padding: 22px;
    border-radius: var(--radius-md);
    margin-bottom: 18px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-xs);
}

.sidebar-title {
    font-size: 15px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
    font-weight: var(--font-weight-bold);
}

.sidebar-title i {
    color: var(--primary);
}

.search-form {
    display: flex;
    gap: 8px;
}

.search-form .form-input {
    flex: 1;
    padding: 10px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    background: var(--surface);
    color: var(--text);
    transition: var(--transition);
}

.search-form .form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}

.search-form .btn {
    padding: 10px 14px;
}

.category-filter {
    list-style: none;
    padding: 0;
}

.category-filter > li {
    margin-bottom: 4px;
}

.category-filter a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    color: var(--text-2);
    font-size: 14px;
    font-weight: var(--font-weight-medium);
}

.category-filter a:hover {
    background: var(--primary-soft);
    color: var(--primary);
}

.category-filter a.active {
    background: var(--primary-gradient);
    color: var(--text-inverse);
    box-shadow: var(--shadow-primary);
}

.category-filter .count {
    background: var(--surface-3);
    color: var(--text-muted);
    padding: 2px 10px;
    border-radius: var(--radius-full);
    font-size: 11.5px;
    font-weight: var(--font-weight-semibold);
}

.category-filter a.active .count {
    background: rgba(255, 255, 255, 0.25);
    color: var(--text-inverse);
}

.subcategory-filter {
    list-style: none;
    margin-right: 16px;
    margin-top: 6px;
}

.subcategory-filter a {
    font-size: 13px;
    padding: 8px 12px;
}

/* Products Main */
.products-main {
    background: var(--surface);
    border-radius: var(--radius-md);
    padding: 28px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-xs);
}

.products-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-soft);
    flex-wrap: wrap;
    gap: 12px;
}

.products-info p {
    color: var(--text-muted);
    font-size: 14px;
    margin: 0;
}

.no-products {
    text-align: center;
    padding: 80px 20px;
}

.no-products i {
    font-size: 64px;
    color: var(--text-faint);
    margin-bottom: 20px;
    display: inline-block;
    padding: 24px;
    background: var(--surface-3);
    border-radius: 50%;
}

.no-products h3 {
    font-size: 22px;
    margin-bottom: 10px;
    color: var(--text);
}

.no-products p {
    color: var(--text-muted);
    margin-bottom: 28px;
}

/* Responsive */
@media (max-width: 992px) {
    .products-layout {
        grid-template-columns: 1fr;
    }

    .products-sidebar {
        position: static;
    }

    .sidebar-section {
        margin-bottom: 14px;
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 48px 0;
    }

    .page-title {
        font-size: 24px;
    }

    .products-main {
        padding: 20px;
    }

    .products-grid {
        grid-template-columns: 1fr !important;
    }
}
