/* ============================================
   MP Cart Style - Sidebar Carrello Migliorata
   ============================================ */

/* Container principale sidebar */
.elementor-menu-cart__main {
    background: #ffffff;
    border-radius: 12px 0 0 12px;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.15);
    padding: 20px;
    width: 380px;
}

/* ============================================
   RIMUOVI PUNTI ELENCO
   ============================================ */
.elementor-menu-cart__products,
.elementor-menu-cart__products ul,
.woocommerce-mini-cart,
.widget_shopping_cart_content ul,
.widget_shopping_cart ul.cart_list,
.widget_shopping_cart ul.product_list_widget {
    list-style: none !important;
    padding-left: 0 !important;
    margin: 0 !important;
}

.elementor-menu-cart__products li,
.woocommerce-mini-cart li,
.widget_shopping_cart li,
.mini_cart_item {
    list-style: none !important;
    list-style-type: none !important;
}

.elementor-menu-cart__products li::before,
.woocommerce-mini-cart li::before,
.widget_shopping_cart li::before,
.mini_cart_item::before {
    content: none !important;
    display: none !important;
}

/* ============================================
   PRODOTTI NEL CARRELLO - Layout
   ============================================ */
.elementor-menu-cart__product,
.woocommerce-mini-cart-item,
.mini_cart_item {
    display: flex !important;
    align-items: center !important;
    gap: 12px;
    padding: 15px 0 !important;
    border-bottom: 1px solid #e8e8e8 !important;
    margin: 0 !important;
}

.elementor-menu-cart__product:last-child,
.woocommerce-mini-cart-item:last-child,
.mini_cart_item:last-child {
    border-bottom: none !important;
}

/* ============================================
   IMMAGINI PRODOTTO - Dimensioni controllate
   ============================================ */
.elementor-menu-cart__product-image,
.woocommerce-mini-cart-item img,
.mini_cart_item img {
    width: 60px !important;
    min-width: 60px !important;
    max-width: 60px !important;
    height: 60px !important;
    object-fit: cover !important;
    border-radius: 8px !important;
    border: 1px solid #e0e0e0 !important;
    flex-shrink: 0 !important;
}

.elementor-menu-cart__product-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

/* ============================================
   DETTAGLI PRODOTTO
   ============================================ */
.elementor-menu-cart__product-name,
.elementor-menu-cart__product-name a,
.woocommerce-mini-cart-item a:not(.remove),
.mini_cart_item a:not(.remove),
.widget_shopping_cart_content a:not(.remove) {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #333 !important;
    text-decoration: none !important;
    line-height: 1.3 !important;
    display: block !important;
}

.elementor-menu-cart__product-name:hover,
.elementor-menu-cart__product-name a:hover,
.woocommerce-mini-cart-item a:not(.remove):hover,
.mini_cart_item a:not(.remove):hover,
.widget_shopping_cart_content a:not(.remove):hover {
    color: #369EDD !important;
}

.elementor-menu-cart__product-price,
.woocommerce-mini-cart-item .quantity {
    font-size: 13px !important;
    color: #369EDD !important;
    font-weight: 700 !important;
    margin-top: 5px !important;
}

/* ============================================
   PULSANTE RIMUOVI
   ============================================ */
.elementor-menu-cart__product .remove,
.woocommerce-mini-cart-item .remove,
.remove_from_cart_button {
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    background: #f5f5f5 !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 16px !important;
    color: #999 !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    margin-left: auto !important;
}

.elementor-menu-cart__product .remove:hover,
.woocommerce-mini-cart-item .remove:hover,
.remove_from_cart_button:hover {
    background: #ff4757 !important;
    color: #fff !important;
}

/* ============================================
   SUBTOTALE
   ============================================ */
.elementor-menu-cart__subtotal,
.woocommerce-mini-cart__total {
    background: #f0f7fc !important;
    padding: 15px !important;
    border-radius: 10px !important;
    margin: 15px 0 !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    font-size: 16px !important;
    font-weight: 700 !important;
}

.elementor-menu-cart__subtotal .woocommerce-Price-amount,
.woocommerce-mini-cart__total .woocommerce-Price-amount {
    color: #369EDD !important;
    font-size: 18px !important;
}

/* ============================================
   PULSANTI FOOTER
   ============================================ */
.elementor-menu-cart__footer-buttons,
.woocommerce-mini-cart__buttons {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    margin-top: 15px !important;
}

.elementor-menu-cart__footer-buttons .elementor-button,
.woocommerce-mini-cart__buttons a {
    display: block !important;
    text-align: center !important;
    padding: 14px 20px !important;
    border-radius: 25px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
}

/* Pulsante Visualizza Carrello */
.elementor-menu-cart__footer-buttons .elementor-button--view-cart,
.woocommerce-mini-cart__buttons a:first-child {
    background: transparent !important;
    border: 2px solid #369EDD !important;
    color: #369EDD !important;
}

.elementor-menu-cart__footer-buttons .elementor-button--view-cart:hover,
.woocommerce-mini-cart__buttons a:first-child:hover {
    background: #369EDD !important;
    color: #fff !important;
}

/* Pulsante Checkout */
.elementor-menu-cart__footer-buttons .elementor-button--checkout,
.woocommerce-mini-cart__buttons a.checkout {
    background: #369EDD !important;
    border: 2px solid #369EDD !important;
    color: #fff !important;
}

.elementor-menu-cart__footer-buttons .elementor-button--checkout:hover,
.woocommerce-mini-cart__buttons a.checkout:hover {
    background: #2a8bc7 !important;
    border-color: #2a8bc7 !important;
}

/* ============================================
   PULSANTE CHIUDI
   ============================================ */
.elementor-menu-cart__close-button {
    position: absolute !important;
    top: 15px !important;
    right: 15px !important;
    width: 36px !important;
    height: 36px !important;
    background: #f5f5f5 !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    border: none !important;
}

.elementor-menu-cart__close-button:hover {
    background: #369EDD !important;
    color: #fff !important;
    transform: rotate(90deg) !important;
}

.elementor-menu-cart__close-button svg {
    width: 14px !important;
    height: 14px !important;
}

/* ============================================
   TITOLO HEADER CARRELLO
   ============================================ */
.elementor-menu-cart__main-heading {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #333 !important;
    margin-bottom: 15px !important;
    padding-bottom: 15px !important;
    border-bottom: 2px solid #369EDD !important;
}

/* ============================================
   CARRELLO VUOTO
   ============================================ */
.elementor-menu-cart__empty-message,
.woocommerce-mini-cart__empty-message {
    text-align: center !important;
    padding: 40px 20px !important;
    color: #999 !important;
    font-size: 15px !important;
}

/* ============================================
   SCROLLBAR PERSONALIZZATA
   ============================================ */
.elementor-menu-cart__products::-webkit-scrollbar {
    width: 6px;
}

.elementor-menu-cart__products::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.elementor-menu-cart__products::-webkit-scrollbar-thumb {
    background: #369EDD;
    border-radius: 3px;
}

.elementor-menu-cart__products::-webkit-scrollbar-thumb:hover {
    background: #2a8bc7;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 480px) {
    .elementor-menu-cart__main {
        width: 100% !important;
        border-radius: 0 !important;
    }
    
    .elementor-menu-cart__product-image,
    .woocommerce-mini-cart-item img,
    .mini_cart_item img {
        width: 50px !important;
        min-width: 50px !important;
        max-width: 50px !important;
        height: 50px !important;
    }
}
