.product-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 18px;
}

.product-modal.active {
    opacity: 1;
    visibility: visible;
}

.product-modal-content {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 0;
    position: relative;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.product-modal.active .product-modal-content {
    transform: scale(1);
}

.product-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #666;
    z-index: 10;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.product-modal-close:hover {
    background-color: #f0f0f0;
    color: #333;
}

.product-modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 40px;
}

.product-modal-image {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
}

.product-modal-image img {
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
}

.product-modal-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.product-modal-category {
    font-size: 14px;
    color: #666;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.product-modal-name {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin: 0;
    line-height: 1.2;
}

.product-modal-prices {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.product-modal-price-regular {
    font-size: 16px;
    color: #999;
    text-decoration: line-through;
}

.product-modal-discount {
    background-color: #e74c3c;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.product-modal-price-with-discount {
    font-size: 24px;
    font-weight: 700;
    color: #27ae60;
}

.product-modal-description {
    margin-top: 20px;
}

.product-modal-description h3 {
    margin: 0 0 15px 0;
    font-size: 18px;
    color: #333;
    font-weight: 600;
}

.product-modal-description p {
    margin: 0 0 10px 0;
    color: #555;
    line-height: 1.6;
}

.product-modal-description p:last-child {
    margin-bottom: 0;
}

.product-modal-actions {
    margin-top: 30px;
    display: flex;
    gap: 15px;
}

.product-modal-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    justify-content: center;
}

.product-modal-btn-primary {
    background-color: #27ae60;
    color: white;
}

.product-modal-btn-primary:hover {
    background-color: #219a52;
    transform: translateY(-2px);
}

/* Hacer que las tarjetas de productos sean clickeables */
.product-card {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
    .product-modal-content {
        width: 95%;
        max-height: 95vh;
    }

    .product-modal-body {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
    }

    .product-modal-image {
        order: 1;
    }

    .product-modal-info {
        order: 2;
    }

    .product-modal-name {
        font-size: 24px;
    }

    .product-modal-actions {
        margin-top: 20px;
    }
}

@media (max-width: 480px) {
    .product-modal-body {
        padding: 15px;
    }

    .product-modal-close {
        top: 10px;
        right: 15px;
    }
}