/* =========================================
   MODAL STYLES
   ========================================= */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal.active,
.modal.open {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-height: 90vh;
    overflow-y: auto;
    animation: slideIn 0.3s ease;
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #e2e8f0;
}

.modal-close {
    font-size: 2rem;
    cursor: pointer;
    color: #64748b;
    transition: color 0.2s;
}

.modal-close:hover {
    color: #0f172a;
}

.product-modal-content {
    width: 900px;
    max-width: 95vw;
}

.product-modal-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 2rem;
    border-bottom: 1px solid #e2e8f0;
}

#modal-product-image {
    width: 100%;
    height: 400px;
    object-fit: contain;
    background: #f8fafc;
    border-radius: 12px;
}

.product-modal-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.product-modal-actions {
    display: flex;
    gap: 1rem;
    padding: 2rem;
    border-top: 1px solid #e2e8f0;
    justify-content: center;
    flex-wrap: wrap;
}

.product-modal-actions button {
    flex: 1;
    min-width: 200px;
}

@media (max-width: 768px) {
    .product-modal-header {
        grid-template-columns: 1fr;
    }

    .product-modal-content {
        width: 100%;
    }
}

/* Article Modal */
.article-content {
    width: 800px;
    max-width: 95vw;
    padding: 2rem;
}
