/* === Fondo oscuro del popup === */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Oscurece el fondo */
    display: none;
    z-index: 999; /* Debe estar detrás del popup */
}

/* Popup Estilos */
#popup-carrito {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    width: 400px;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: none;
}

.popup-content {
    text-align: center;
}

.close-popup {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
}

.close-popup:hover {
    color: red;
}

.popup-title {
    font-size: 18px;
    color: #0056b3;
    font-weight: bold;
    text-align: center;
}

.popup-imagen {
    width: 80%;
    height: auto;
    border-radius: 5px;
}

.popup-rating {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 10px 0;
}

.popup-rating i {
    color: gold;
}

.popup-extra {
    font-size: 14px;
    color: #555;
    margin-top: 10px;
}

.popup-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-carrito {
    background: #ffc107;
    color: #000;
    padding: 10px;
    border: none;
    cursor: pointer;
    font-weight: bold;
    border-radius: 5px;
    border-style: solid;
    border-color: transparent;
}

.btn-carrito:hover {
    background: #FFF;
    color: #ffc107;
    border-style: solid;
    border-color: #ffc107;
}

.btn-seguir {
    background: #007bff;
    color: white;
    padding: 10px;
    border: none;
    cursor: pointer;
    font-weight: bold;
    border-radius: 5px;
    border-style: solid;
    border-color: transparent;
}

.btn-seguir:hover {
    background: #FFF;
    color: #007bff;
    border-style: solid;
    border-color: #007bff;
}

/* Mostrar popup */
.hidden {
    display: none;
}

@media (max-width: 768px) {
    #popup-carrito {
        width: 80%;
    }
}