.catalog-header {
    padding: 140px 0 60px;
    text-align: center;
}

.catalog-header h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 56px;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
}

.catalog-controls {
    display: flex;
    gap: 20px;
    margin-bottom: 50px;
    flex-wrap: wrap;
    align-items: center;
}

.filter-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    flex: 1;
}

.filter-btn {
    padding: 12px 24px;
    background: rgba(10, 22, 40, 0.6);
    border: 1px solid rgba(0, 102, 204, 0.3);
    border-radius: 8px;
    color: var(--light);
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Rajdhani', sans-serif;
    font-size: 15px;
    font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--gradient);
    border-color: var(--secondary);
    transform: translateY(-2px);
}

.search-box {
    position: relative;
    flex: 0 0 300px;
}

.search-box input {
    width: 100%;
    padding: 12px 45px 12px 20px;
    background: rgba(10, 22, 40, 0.6);
    border: 1px solid rgba(0, 102, 204, 0.3);
    border-radius: 8px;
    color: var(--light);
    font-family: 'Rajdhani', sans-serif;
    font-size: 15px;
}

.search-box input:focus {
    outline: none;
    border-color: var(--secondary);
}

.search-box i {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--secondary);
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 35px;
}

.catalog-product-card {
    background: rgba(10, 22, 40, 0.6);
    border: 1px solid rgba(0, 102, 204, 0.2);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
}

.catalog-product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow);
    border-color: var(--secondary);
}

.catalog-product-image {
    width: 100%;
    height: 240px;
    object-fit: cover;
}

.catalog-product-body {
    padding: 25px;
}

.catalog-product-category {
    color: var(--secondary);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.catalog-product-body h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--light);
}

.catalog-product-body p {
    color: var(--gray);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.catalog-product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.catalog-product-price {
    font-family: 'Orbitron', sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: var(--secondary);
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 10000;
    padding: 20px;
    overflow-y: auto;
    animation: fadeIn 0.3s ease-out;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--dark);
    border: 1px solid rgba(0, 102, 204, 0.3);
    border-radius: 20px;
    max-width: 900px;
    width: 100%;
    position: relative;
    animation: slideUp 0.4s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid var(--danger);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    color: var(--danger);
    font-size: 20px;
    z-index: 1;
}

.modal-close:hover {
    background: var(--danger);
    color: white;
    transform: rotate(90deg);
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 40px;
}

.modal-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 12px;
}

.modal-info h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 32px;
    margin-bottom: 15px;
    color: var(--light);
}

.modal-category {
    color: var(--secondary);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    display: block;
}

.modal-description {
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: 25px;
}

.modal-specs {
    background: rgba(10, 22, 40, 0.4);
    border: 1px solid rgba(0, 102, 204, 0.2);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
}

.modal-specs h4 {
    color: var(--secondary);
    font-family: 'Orbitron', sans-serif;
    margin-bottom: 15px;
    font-size: 18px;
}

.modal-specs ul {
    list-style: none;
}

.modal-specs li {
    color: var(--gray);
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 102, 204, 0.1);
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-specs li:last-child {
    border-bottom: none;
}

.modal-specs li i {
    color: var(--secondary);
    font-size: 12px;
}

.modal-price {
    font-family: 'Orbitron', sans-serif;
    font-size: 36px;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 25px;
}

.modal-actions {
    display: flex;
    gap: 15px;
}

.btn-add-cart {
    flex: 1;
    padding: 16px;
    background: var(--gradient);
    border: none;
    border-radius: 8px;
    color: white;
    font-family: 'Rajdhani', sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-add-cart:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 102, 204, 0.4);
}

@media (max-width: 968px) {
    .modal-body {
        grid-template-columns: 1fr;
    }

    .catalog-controls {
        flex-direction: column;
    }

    .search-box {
        flex: 1;
        width: 100%;
    }

    .catalog-header h1 {
        font-size: 40px;
    }
}