/* ===== Catalog Page Styles ===== */

/* Catalog Header */
.catalog-header {
    padding: 160px 0 80px;
    background: linear-gradient(180deg, var(--dark-light) 0%, var(--dark) 100%);
    text-align: center;
}

.catalog-header-content {
    max-width: 700px;
    margin: 0 auto;
}

.page-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: var(--white);
    margin: 16px 0;
    line-height: 1.1;
}

.page-subtitle {
    font-size: 1.125rem;
    color: var(--gray-400);
    max-width: 600px;
    margin: 0 auto;
}

/* Catalog Filters */
.catalog-filters {
    padding: 32px 0;
    background: var(--dark);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: sticky;
    top: 80px;
    z-index: 100;
}

.filter-bar {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: center;
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.filter-select {
    width: 100%;
    padding: 12px 16px;
    background: var(--dark-lighter);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    color: var(--gray-300);
    font-size: 0.9375rem;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2371717a' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
    transition: var(--transition);
}

.filter-select:hover,
.filter-select:focus {
    border-color: var(--primary);
    outline: none;
}

.search-group {
    position: relative;
    flex: 2;
}

.search-input {
    width: 100%;
    padding: 12px 16px 12px 48px;
    background: var(--dark-lighter);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    color: var(--gray-300);
    font-size: 0.9375rem;
    transition: var(--transition);
}

.search-input:hover,
.search-input:focus {
    border-color: var(--primary);
    outline: none;
}

.search-input::placeholder {
    color: var(--gray-500);
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: var(--gray-500);
    pointer-events: none;
}

/* Product Grid */
.catalog-products {
    padding: 60px 0 80px;
    background: var(--dark);
    min-height: 60vh;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 32px;
}

/* Product Card */
.product-card {
    position: relative;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-8px);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.product-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 6px 12px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: var(--radius-sm);
    z-index: 1;
}

.product-badge.new {
    background: linear-gradient(135deg, var(--success) 0%, #16a34a 100%);
}

.product-image {
    padding: 40px;
    background: linear-gradient(180deg, var(--dark-lighter) 0%, var(--dark-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.product-card:hover .product-icon {
    transform: scale(1.1) rotate(5deg);
}

.product-icon svg {
    width: 40px;
    height: 40px;
    color: white;
}

.product-content {
    padding: 24px;
}

.product-category {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
}

.product-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 12px;
}

.product-description {
    font-size: 0.9375rem;
    color: var(--gray-400);
    line-height: 1.6;
    margin-bottom: 16px;
}

.product-features {
    list-style: none;
    margin-bottom: 20px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.product-features li {
    font-size: 0.875rem;
    color: var(--gray-300);
    padding-left: 20px;
    position: relative;
}

.product-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 50%;
}

.product-footer {
    display: flex;
    gap: 12px;
}

.btn-sm {
    padding: 10px 16px;
    font-size: 0.875rem;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 80px 20px;
    color: var(--gray-500);
}

.no-results svg {
    width: 64px;
    height: 64px;
    margin-bottom: 24px;
    opacity: 0.5;
}

.no-results h3 {
    font-size: 1.5rem;
    color: var(--gray-300);
    margin-bottom: 8px;
}

.no-results p {
    color: var(--gray-500);
}

/* CTA Section */
.catalog-cta {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--dark-light) 0%, var(--dark-lighter) 100%);
    text-align: center;
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 16px;
}

.cta-content p {
    font-size: 1.125rem;
    color: var(--gray-400);
    margin-bottom: 32px;
}

/* Light Mode Adjustments */
[data-theme="light"] .catalog-header {
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

[data-theme="light"] .catalog-filters {
    background: var(--bg-primary);
    border-bottom-color: var(--border-color);
}

[data-theme="light"] .filter-select,
[data-theme="light"] .search-input {
    background: var(--bg-secondary);
    border-color: var(--border-color);
    color: var(--text-primary);
}

[data-theme="light"] .catalog-products {
    background: var(--bg-primary);
}

[data-theme="light"] .product-card {
    background: var(--card-bg);
    border-color: var(--card-border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .product-image {
    background: linear-gradient(180deg, var(--bg-tertiary) 0%, var(--bg-secondary) 100%);
}

[data-theme="light"] .product-title {
    color: var(--text-primary);
}

[data-theme="light"] .product-description {
    color: var(--text-secondary);
}

[data-theme="light"] .catalog-cta {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
}

[data-theme="light"] .cta-content h2 {
    color: var(--text-primary);
}

/* Responsive */
@media (max-width: 768px) {
    .catalog-header {
        padding: 120px 0 60px;
    }

    .filter-bar {
        flex-direction: column;
    }

    .filter-group {
        width: 100%;
    }

    .search-group {
        flex: 1;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .product-features {
        grid-template-columns: 1fr;
    }

    .product-footer {
        flex-direction: column;
    }

    .product-footer .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 1.75rem;
    }

    .page-subtitle {
        font-size: 1rem;
    }

    .catalog-filters {
        top: 70px;
    }
}
