.catalog-hero {
    padding: 8rem 0 4rem;
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.1) 0%, rgba(0, 212, 255, 0.1) 100%);
    text-align: center;
}

.catalog-hero h1 {
    font-family: var(--font-display);
    font-size: 3.5rem;
    margin-bottom: 1rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.catalog-section {
    padding: 4rem 0;
}

.catalog-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 3rem;
}

.catalog-filters {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.catalog-filters h3 {
    font-family: var(--font-display);
    margin-bottom: 2rem;
    color: var(--secondary-color);
}

.filter-group {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.filter-group:last-of-type {
    border-bottom: none;
}

.filter-group h4 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.filter-group label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    cursor: pointer;
    color: var(--gray-text);
    transition: color 0.3s ease;
}

.filter-group label:hover {
    color: var(--light-text);
}

.filter-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.catalog-filters .btn {
    width: 100%;
    margin-top: 1rem;
}

.catalog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.results-count {
    color: var(--gray-text);
    font-size: 1.1rem;
}

.sort-select {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--light-text);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-family: var(--font-primary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.sort-select:hover {
    border-color: var(--primary-color);
}

.sort-select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.product-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(0, 102, 255, 0.3);
}

.product-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.product-info {
    padding: 1.5rem;
}

.product-info h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.product-price {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.product-category {
    color: var(--gray-text);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.product-card .btn {
    width: 100%;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    overflow-y: auto;
}

.modal-content {
    background: var(--dark-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    max-width: 1200px;
    width: 100%;
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--light-text);
    font-size: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1;
}

.modal-close:hover {
    background: var(--primary-color);
    transform: rotate(90deg);
}

.modal-body {
    padding: 3rem;
}

.modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.modal-image img {
    width: 100%;
    border-radius: 16px;
}

.modal-details h2 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.modal-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.modal-description {
    color: var(--gray-text);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.modal-details h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
    color: var(--secondary-color);
}

.modal-specs {
    list-style: none;
    margin-bottom: 2rem;
}

.modal-specs li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--gray-text);
}

.modal-specs li strong {
    color: var(--light-text);
    margin-right: 0.5rem;
}

.modal-features {
    list-style: none;
    margin-bottom: 2rem;
}

.modal-features li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--gray-text);
}

.modal-features i {
    color: var(--secondary-color);
}

.modal-details .btn-lg {
    width: 100%;
    margin-top: 2rem;
}

@media (max-width: 1024px) {
    .catalog-layout {
        grid-template-columns: 1fr;
    }
    
    .catalog-filters {
        position: static;
    }
    
    .modal-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .catalog-hero h1 {
        font-size: 2.5rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .catalog-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .sort-select {
        width: 100%;
    }
    
    .modal-body {
        padding: 2rem 1.5rem;
    }
    
    .modal-details h2 {
        font-size: 2rem;
    }
}