/* Catalogue Specifics */
.catalogue-hero {
    background-color: var(--lux-black);
    background-image: linear-gradient(135deg, rgba(0, 0, 0, 0.9), rgba(0, 89, 150, 0.8)), url('/public/images/5834887138510572917.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 80px 0;
    text-align: center;
    margin-bottom: 0;
}

.catalogue-hero h1 {
    color: white;
    font-size: 3.5rem;
    margin-bottom: 16px;
}

.catalogue-hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.9;
}

/* Products Grid */
.products {
    padding: 60px 0 100px;
    min-height: 600px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 40px;
}

.product-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.product-image {
    height: 300px;
    width: 100%;
    overflow: hidden;
    position: relative;
    background: #f0f0f0;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.08);
}

.product-info {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-category {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--lux-orange);
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.product-info h3 {
    font-size: 1.4rem;
    margin-bottom: 8px;
}

.product-info p {
    color: var(--muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
    flex-grow: 1;
}

.product-action {
    margin-top: auto;
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.85rem;
    width: 100%;
    text-align: center;
}

/* Modal Styles */
.modal {
    display: none; 
    position: fixed; 
    z-index: 2000; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0,0,0,0.8); 
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s;
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto; 
    padding: 0;
    border: 1px solid #888;
    width: 90%;
    max-width: 1000px;
    border-radius: var(--radius);
    position: relative;
    box-shadow: 0 25px 50px rgba(0,0,0,0.3);
    animation: slideIn 0.3s;
    overflow: hidden;
}

.modal-body {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
}

.modal-image-container {
    height: 600px;
    background: #f0f0f0;
}

.modal-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-details {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.modal-details h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
    line-height: 1.1;
}

.modal-details p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 32px;
    line-height: 1.8;
}

.modal-close {
    color: white;
    background: rgba(0,0,0,0.5);
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 10;
}

.modal-close:hover,
.modal-close:focus {
    background: var(--lux-orange);
    text-decoration: none;
}

@keyframes fadeIn {
    from {opacity: 0}
    to {opacity: 1}
}

@keyframes slideIn {
    from {transform: translateY(-50px); opacity: 0}
    to {transform: translateY(0); opacity: 1}
}

@media (max-width: 980px) {
    .products-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .modal-body {
        grid-template-columns: 1fr;
    }
    
    .modal-image-container {
        height: 400px;
    }
    
    .modal-content {
        margin: 2% auto;
        width: 95%;
    }
}

@media (max-width: 640px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .catalogue-hero h1 {
        font-size: 2.5rem;
    }
    
    .modal-image-container {
        height: 300px;
    }
    
    .modal-details h2 {
        font-size: 1.8rem;
    }
    
    .modal-details {
        padding: 24px;
    }
}
