/* ESTILOS MODAL SIMPLIFICADOS */
#productModal .modal-dialog {
    max-width: fit-content;
    margin: 20px auto;
}

#productModal .modal-content {
    background: transparent;
    border: none;
    box-shadow: none;
}

#productModal .modal-header {
    border: none;
    padding: 0;
    z-index: 1000;
}

#productModal .modal-header .btn-close {
    background: rgba(0,0,0,0.7);
    border-radius: 50%;
    padding: 8px;
    opacity: 1;
    background-size: 1em;
}

#productModal .modal-body {
    padding: 0;
    text-align: center;
}

#modalProductImage {
    max-height: 85vh;
    max-width: 90vw;
    width: auto;
    height: auto;
    border-radius: 0px;
}

/* RESPONSIVE PARA MÓVILES */
@media (max-width: 768px) {
    #productModal .modal-dialog {
        margin: 10px auto;
        max-width: 95vw;
    }
    
    #modalProductImage {
        max-height: 80vh;
        max-width: 95vw;
    }
    
    /* Forzar visibilidad en móviles */
    #productModal.modal.show {
        display: block !important;
        opacity: 1 !important;
    }
}

/* CORREGIR BOTÓN CERRAR */
#productModal .modal-header .btn-close {
    background: rgba(0,0,0,0.7) url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e") !important;
    border-radius: 50% !important;
    padding: 10px !important;
    opacity: 1 !important;
    background-size: 1em !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    border: 2px solid white !important;
    width: 20px !important;
    height: 20px !important;
}

/*#productModal .modal-header .btn-close:hover {
    background: rgba(0,0,0,0.9) url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e") !important;
}*/

/* Posición del header 
#productModal .modal-header {
    border: none !important;
    position: absolute !important;
    top: 15px !important;
    right: 15px !important;
    z-index: 1000 !important;
    background: transparent !important;
    padding: 0 !important;
}*/




/* Estilos para el acordeón de categorías */
#categoriesAccordion .accordion-button {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 1rem 1.5rem;
    border: none;
    box-shadow: none;
}

#categoriesAccordion .accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, #218838, #1e9e7f);
    color: white;
}

#categoriesAccordion .accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

#categoriesAccordion .accordion-body {
    max-height: 60vh;
    overflow-y: auto;
    padding: 0;
}

/* Estilos para la lista dentro del acordeón */
#categoriesAccordion .templatemo-categorias {
    padding: 1rem;
}

#categoriesAccordion .templatemo-categorias li {
    border-bottom: 1px solid #eee;
    padding: 0.8rem 0;
}

#categoriesAccordion .templatemo-categorias li:last-child {
    border-bottom: none;
}

#categoriesAccordion .templatemo-categorias a {
    font-size: 1rem !important;
    color: #333;
    padding: 0.5rem 0;
}

#categoriesAccordion .templatemo-categorias a:hover {
    color: #28a745;
}