/* ============================
   Mini-Cart Custom Styles
   ============================ */

/* Conteneur du mini-cart */
.custom-mini-cart-wrapper {
    display: flex;
    flex-direction: column;
    height: 100%; /* occupe toute la hauteur dispo du off-canvas */
    max-height: calc(100vh - 120px); /* laisse de la place pour le footer */
    overflow-y: auto; /* scroll vertical si besoin */
    overflow-x: hidden; /* empêche le scroll horizontal */
    padding-right: 8px; /* éviter que le scroll cache le contenu */
    box-sizing: border-box;
}

/* Chaque produit */
.custom-mini-cart-wrapper .custom-product {
    padding: 1rem 0;
}

/* Organisation interne du produit */
.custom-product-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* En-tête : nom + prix */
.custom-product-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.product-price,
.product-name {
    font-size: 1rem;
    font-weight: 600;
}

/* Détails : quantité + taille */
.product-details {
    display: flex;
    flex-direction: column; /* passe en colonne pour lisibilité */
    gap: 0.5rem;
}

.product-details span {
    font-size: 0.875rem; /* taille uniforme des spans */
}

/* Bouton "Remove" */
.custom-mini-cart-wrapper .product-remove {
    text-align: right; /* alignement à droite */
}

.custom-mini-cart-wrapper .product-remove a.remove {
    display: inline-block;   /* lien normal */
    width: auto;             /* largeur selon texte */
    height: auto;
    color: #942020 !important;          /* rouge fixe */
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    background: none !important;
    border: none;
    padding: 0;
    cursor: pointer;
}

/* Hover : uniquement soulignement */
.custom-mini-cart-wrapper .product-remove a.remove:hover {
    color: #FAA8A8 !important;          /* reste rouge */
    text-decoration: underline;
}

/* Supprimer la croix WooCommerce par défaut */
.custom-mini-cart-wrapper .product-remove a.remove::before {
    content: none !important;
}

/* Taille des images produits */
.custom-gallery-image {
    height: 16.75rem !important;
    object-fit: contain; /* garde les proportions */
}

/* Footer cart fixé en bas */
.custom-cart-footer {
    border-top: 1px solid #ddd;
    padding: 16px;
    background: #fff;
    position: sticky;
    bottom: 0;
}

/* Informations footer cart*/

.subtotal, woocommerce-Price-amount amount {
    font-size: 1.125rem;
}

.subtotal strong {
    font-weight: 300;
}

bdi{
    font-weight: 600;
}

.custom-cart-footer{
    padding: 0px !important;
}

.subtotal{
    padding-top: 1rem;
}

/* Style bouton*/

.cart-buttons{
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-top: 1rem;
}

.cart-buttons a{
    width: 100% !important;
}

.cart-buttons a.view-cart {
    pointer-events: none;
    opacity: 0.5;
    cursor: not-allowed;
    display: none !important;
}



/* lightbox*/
.elementor-menu-cart__container{
    background-color: transparent !important;
}

.elementor-menu-cart__main{
    box-shadow: none !important;
}