/* ==========================================================================
   MINICART MODAL - Lunettes de Marque
   Style minimaliste luxe - Noir & Blanc
   ========================================================================== */

/* Container principal */
.elementor-shortcode {
    font-family: 'Montserrat', sans-serif;
    color: #1a1a1a;
}

/* Bouton close minicart */
.dialog-close-button.dialog-lightbox-close-button{
    /*display : none !important;*/
}



/* ==========================================================================
   LISTE DES PRODUITS
   ========================================================================== */

.elementor-menu-cart__products {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem 0;
    max-height: 50vh;
    overflow-y: auto;
}

/* ==========================================================================
   CARTE PRODUIT
   ========================================================================== */

.elementor-menu-cart__product {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
}

/* ==========================================================================
   IMAGE PRODUIT
   ========================================================================== */

.elementor-menu-cart__product-image {
    flex-shrink: 0;
    width: 90px;
    height: 90px;
    border-radius: 4px;
    overflow: hidden;
    background: #f3f3f3;
    border: 1px solid #e5e5e5;
}

.elementor-menu-cart__product-image a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

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

/* ==========================================================================
   INFOS PRODUIT (Nom + Prix + Marque)
   ========================================================================== */

.elementor-menu-cart__product-name {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.elementor-menu-cart__product-name a {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1a1a1a;
    text-decoration: none;
    letter-spacing: 0.3px;
}

.elementor-menu-cart__product-name a:hover {
    color: #555;
}

/* Marque du produit */
.elementor-menu-cart__product-name .cart-item-brand {
    display: block;
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #494949;
    margin-bottom: 0.25rem;
}

/* ==========================================================================
   PRIX
   ========================================================================== */

.elementor-menu-cart__product-price {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #666;
}

.elementor-menu-cart__product-price .product-quantity {
    color: #999;
    font-weight: 400;
}

.elementor-menu-cart__product-price .woocommerce-Price-amount {
    font-weight: 600;
    color: #1a1a1a;
}

/* ==========================================================================
   BOUTON SUPPRIMER
   ========================================================================== */

.elementor-menu-cart__product-remove {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.elementor-menu-cart__product-remove a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    text-decoration: none;
    font-size: 1.25rem;
    line-height: 1;
    transition: all 0.3s ease;
}

.elementor-menu-cart__product-remove a::before {
    font-family: 'lunettesdemarque' !important;
    content: '\e9a3';
    font-style: normal;
    color : #e10c0c;
}

.elementor-menu-cart__product-remove a:hover {
    background: #ffd1d1;
    color: #fff;
}

/* Cacher le doublon de lien */
.elementor-menu-cart__product-remove a:not(:first-child) {
    display: none;
}

/* ==========================================================================
   SOUS-TOTAL
   ========================================================================== */

.elementor-menu-cart__subtotal {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 0;
    margin-top: 0.5rem;
    border-top: 1px solid #d3d3d3;
}

.elementor-menu-cart__subtotal strong {
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #666;
}

.elementor-menu-cart__subtotal .woocommerce-Price-amount {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a1a1a;
}

/* ==========================================================================
   BOUTONS FOOTER
   ========================================================================== */

.elementor-menu-cart__footer-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-top: 1rem;
}

.elementor-menu-cart__footer-buttons .elementor-button {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-decoration: none;
    border-radius: 3px;
}

/* Bouton "Voir le panier" - Outline noir */
.elementor-button--view-cart {
    background-color: white !important;
    border: 2px solid #1a1a1a;
    color: #1a1a1a !important;
    font-weight: 600 !important;

}

.elementor-button--view-cart:hover {
    border: 2px solid #616161;
    background-color: #f1f1f1 !important;
    color: #616161 !important;
}

/* Bouton "Commander" - Noir plein */
.elementor-button--checkout {
    background: #1a1a1a;
    border: 2px solid #1a1a1a;
    color: #fff;
    font-weight: 600 !important;
}

.elementor-button--checkout:hover {
    background: #333;
    border-color: #333;

}

/* ==========================================================================
   PANIER VIDE
   ========================================================================== */

.woocommerce-mini-cart__empty-message,
.elementor-menu-cart__products:empty::before {
    content: 'Votre panier est vide';
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    color: #999;
    font-size: 0.9rem;
    font-style: italic;
    text-align: center;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 480px) {
    .elementor-menu-cart__product {
        gap: 0.75rem;
        padding: 0.75rem 0;
    }

    .elementor-menu-cart__product-image {
        width: 70px;
        height: 70px;
    }

    .elementor-menu-cart__product-name a {
        font-size: 0.8rem;
    }

    .elementor-menu-cart__product-price {
        font-size: 0.75rem;
    }

    .elementor-menu-cart__product-remove a {
        width: 32px;
        height: 32px;
        font-size: 1.1rem;
    }

    .elementor-menu-cart__footer-buttons .elementor-button {
        padding: 0.875rem 1.5rem;
        font-size: 0.75rem;
        letter-spacing: 1px;
    }
}


/* Container de l'icône panier */
.panier {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Pastille rouge */
.cart-pastille {
    position: absolute;
    top: -0.25rem;
    right: -0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 0.35rem;
    background: #e53935;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.65rem;
    font-weight: 600;
    border-radius: 50%;
}

/* Cacher si panier vide */
.cart-pastille:empty {
    display: none;
}

