/* Styles/popup.css */
.producto-popup {
    display: none;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-color: rgba(0, 0, 0, 0.85) !important;
    z-index: 1000 !important;
    overflow-y: auto !important;
    backdrop-filter: blur(5px) !important;
    padding: 20px !important;
}

.popup-content {
    position: relative !important;
    background-color: white !important;
    width: 90% !important;
    max-width: 1000px !important;
    margin: 20px auto !important;
    padding: 0 !important;
    border-radius: 20px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
    overflow: hidden !important;
    animation: popupFadeIn 0.3s ease-out !important;
}

.popup-details {
    max-height: 80vh !important;
    overflow-y: auto !important;
    scrollbar-width: thin !important;
    display: grid !important;
    grid-template-columns: 40% 60% !important;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%) !important;
}

.popup-details::-webkit-scrollbar {
    width: 8px !important;
}

.popup-details::-webkit-scrollbar-track {
    background: #f0f0f0 !important;
    border-radius: 4px !important;
}

.popup-details::-webkit-scrollbar-thumb {
    background: #0205a9 !important;
    border-radius: 4px !important;
}

@keyframes popupFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-popup {
    position: absolute !important;
    right: 20px !important;
    top: 20px !important;
    background: rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(5px) !important;
    color: #FF4444 !important;
    border: 2px solid #FF4444 !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 18px !important;
    font-weight: bold !important;
    z-index: 1 !important;
    transition: all 0.3s ease !important;
}

.close-popup:hover {
    background: #FF4444 !important;
    color: white !important;
    transform: rotate(90deg) !important;
}

.popup-image {
    padding: 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%) !important;
}

.popup-image img {
    width: 100% !important;
    max-width: 300px !important;
    height: auto !important;
    object-fit: contain !important;
    border-radius: 15px !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1) !important;
    transition: transform 0.3s ease !important;
}

.popup-image img:hover {
    transform: scale(1.05) !important;
}

.popup-info {
    padding: 40px !important;
    border-left: 1px solid #eee !important;
}

.popup-info h2 {
    color: #2c3e50 !important;
    font-size: 2.5em !important;
    font-weight: 700 !important;
    margin-bottom: 20px !important;
    line-height: 1.2 !important;
}

.popup-info .precio {
    font-size: 2.8em !important;
    color: #003087 !important;
    font-weight: 700 !important;
    margin-bottom: 25px !important;
    text-shadow: 0 2px 4px rgba(46, 204, 113, 0.2) !important;
}

.popup-info .categoria {
    display: inline-block !important;
    padding: 8px 16px !important;
    background: linear-gradient(135deg, #003087 0%, #003087 100%) !important;
    color: #ffffff !important;
    border-radius: 30px !important;
    font-weight: 600 !important;
    font-size: 1em !important;
    margin-bottom: 25px !important;
    box-shadow: 0 2px 5px rgba(46, 125, 50, 0.1) !important;
}

.popup-info .contenido {
    color: #555 !important;
    line-height: 1.8 !important;
    font-size: 1.1em !important;
    background: #f8f9fa !important;
    padding: 20px !important;
    border-radius: 15px !important;
    margin-top: 20px !important;
}

.productos-sugeridos {
    padding: 20px !important;
    background: #f8f9fa !important;
    border-top: 1px solid #eee !important;
    margin-top: 10px !important;
    width: 100% !important;
    grid-column: 1 / -1 !important;
}

.productos-sugeridos h3 {
    color: #2c3e50 !important;
    font-size: 1.5em !important;
    text-align: center !important;
    margin-bottom: 20px !important;
    position: relative !important;
    font-weight: 600 !important;
}

.productos-sugeridos h3:after {
    content: '' !important;
    display: block !important;
    width: 60px !important;
    height: 3px !important;
    background: #003087 !important;
    margin: 10px auto !important;
    border-radius: 2px !important;
}

.sugeridos-container {
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: space-between !important;
    gap: 20px !important;
    overflow-x: auto !important;
    padding: 20px 0 !important;
    width: 100% !important;
    min-width: 0 !important;
}

.producto-sugerido {
    flex: 1 1 200px !important;
    min-width: 200px !important;
    max-width: 300px !important;
    height: 250px !important;
    background: white !important;
    padding: 15px !important;
    border-radius: 10px !important;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08) !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    border: 1px solid #eee !important;
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    margin: 0 !important;
}

.producto-sugerido:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1) !important;
    border-color: #003087 !important;
}

.producto-sugerido img {
    width: 120px !important;
    height: 120px !important;
    object-fit: contain !important;
    margin-bottom: 10px !important;
    transition: transform 0.3s ease !important;
}

.producto-sugerido:hover img {
    transform: scale(1.05) !important;
}

.producto-sugerido h4 {
    font-size: 0.85em !important;
    color: #2c3e50 !important;
    margin: 0 0 10px 0 !important;
    line-height: 1.4 !important;
    font-weight: 600 !important;
    max-height: 2.8em !important;
    overflow: hidden !important;
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    width: 100% !important;
    padding: 0 5px !important;
    text-align: center !important;
}

.producto-sugerido .precio {
    color: #003087 !important;
    font-weight: bold !important;
    font-size: 1em !important;
    position: absolute !important;
    bottom: 15px !important;
    left: 0 !important;
    right: 0 !important;
    margin: 0 auto !important;
    text-align: center !important;
}

@media (max-width: 1200px) {
    .popup-content {
        max-width: 900px !important;
    }
}

@media (max-width: 992px) {
    .popup-details {
        grid-template-columns: 1fr !important;
    }

    .popup-content {
        width: 95% !important;
    }

    .popup-image {
        padding: 20px !important;
    }

    .popup-image img {
        max-height: 350px !important;
    }

    .popup-info {
        padding: 20px !important;
        border-left: none !important;
        border-top: 1px solid #eee !important;
    }

    .popup-info h2 {
        font-size: 24px !important;
    }

    .popup-info .precio {
        font-size: 28px !important;
    }
}

@media (max-width: 768px) {
    .sugeridos-container {
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 10px !important;
        max-width: 500px !important;
    }

    .producto-sugerido {
        min-height: 180px !important;
    }
}

@media (max-width: 576px) {
    .popup-content {
        width: 100% !important;
        margin: 10px auto !important;
        padding: 15px !important;
    }

    .close-popup {
        width: 35px !important;
        height: 35px !important;
        right: 15px !important;
        top: 15px !important;
    }

    .popup-image {
        padding: 10px !important;
    }

    .popup-image img {
        max-height: 250px !important;
    }

    .productos-sugeridos {
        padding: 15px 10px !important;
    }

    .sugeridos-container {
        gap: 8px !important;
        padding: 5px !important;
    }

    .producto-sugerido {
        padding: 10px !important;
        min-height: 160px !important;
    }

    .producto-sugerido img {
        width: 70px !important;
        height: 70px !important;
        margin-bottom: 8px !important;
    }

    .producto-sugerido h4 {
        font-size: 0.8em !important;
        margin-bottom: 8px !important;
    }

    .producto-sugerido .precio {
        font-size: 0.9em !important;
        bottom: 10px !important;
    }

    .productos-sugeridos h3 {
        font-size: 20px !important;
    }

    .popup-info h2 {
        font-size: 20px !important;
    }

    .popup-info .precio {
        font-size: 24px !important;
    }

    .popup-info .categoria {
        font-size: 16px !important;
    }

    .popup-info {
        padding: 10px !important;
    }
}

@media (max-width: 360px) {
    .popup-content {
        padding: 10px !important;
    }

    .popup-image img {
        max-height: 200px !important;
    }

    .popup-info h2 {
        font-size: 18px !important;
    }

    .popup-info .precio {
        font-size: 22px !important;
    }

    .producto-sugerido {
        min-height: 150px !important;
    }

    .producto-sugerido img {
        width: 60px !important;
        height: 60px !important;
    }

    .producto-sugerido h4 {
        font-size: 0.75em !important;
    }
}

/* Styles/popup.css */
.whatsapp-button {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 20px;
    background-color: #25D366;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
}