/* Modal Styles - Mobile First Approach */
.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.85); 
    backdrop-filter: blur(8px);
    animation: fadeIn 0.3s ease-out;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.modal-content {
    background-color: #ffffff;
    margin: auto; 
    padding: 0;
    width: 100%;
    max-width: 500px; /* Default max-width for mobile/tablet feel */
    border-radius: 24px;
    position: relative;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
    animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal-body {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.modal-image-container {
    width: 100%;
    height: 300px; /* Fixed height for mobile */
    background: #f8f8f8;
    position: relative;
}

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

.modal-details {
    padding: 24px;
    display: flex;
    flex-direction: column;
    background: white;
}

.product-category {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--lux-orange);
    font-weight: 800;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
    display: block;
}

.modal-details h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 16px;
    line-height: 1.2;
    color: var(--lux-black);
}

.modal-details p {
    font-family: var(--font-body);
    font-size: 1rem;
    color: #555;
    margin-bottom: 32px;
    line-height: 1.6;
}

/* Green WhatsApp Button */
.btn-whatsapp-large {
    background-color: #25D366;
    color: white;
    font-size: 1rem;
    font-weight: 700;
    padding: 16px 24px;
    border-radius: 999px; /* Pill shape */
    text-transform: uppercase;
    letter-spacing: 1px;
    width: 100%;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background-color 0.3s, transform 0.2s;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp-large:hover {
    background-color: #128C7E;
    transform: translateY(-2px);
    color: white;
    text-decoration: none;
}

.modal-close {
    color: var(--lux-black);
    background: white;
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.modal-close:hover {
    background: #f0f0f0;
    transform: scale(1.1);
}

/* Animations */
@keyframes fadeIn {
    from {opacity: 0}
    to {opacity: 1}
}

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

/* Desktop Responsiveness */
@media (min-width: 768px) {
    .modal-content {
        max-width: 900px;
        flex-direction: row;
        height: auto;
        max-height: 85vh;
    }

    .modal-body {
        flex-direction: row;
        height: 100%;
    }

    .modal-image-container {
        width: 55%; /* Image takes more space on desktop */
        height: auto;
        min-height: 500px;
    }

    .modal-details {
        width: 45%;
        padding: 40px;
        justify-content: center;
        overflow-y: auto; /* Scrollable content if needed */
    }

    .modal-details h2 {
        font-size: 2.5rem;
    }

    .modal-close {
        top: 20px;
        right: 20px;
        background: rgba(255,255,255,0.9);
    }
}
