/* =========================================
   MINI CART BUTTONS STYLE
========================================= */
.woocommerce-mini-cart__buttons {
    display: flex;
    gap: 10px;
    margin: 12px;
}

.woocommerce-mini-cart__buttons a {
    flex: 1;
    text-align: center;
    padding: 11px 12px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 14px;
    text-decoration: none;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.view-cart-btn {
    background: #fff;
    color: #333;
    border: 1px solid #ddd;
}
.view-cart-btn:hover {
    background: #f5f5f5;
    border-color: #ccc;
    transform: translateY(-2px);
    color: #000;
}

.checkout-btn {
    background: #ef5252;
    color: #fff !important;
    border: 1px solid #ef5252;
    box-shadow: 0 6px 15px rgba(239, 82, 82, 0.2);
}
.checkout-btn:hover {
    background: #ff3b3b;
    border-color: #ff3b3b;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(239, 82, 82, 0.35);
}

.woocommerce-mini-cart__buttons a:active {
    transform: scale(0.97);
}

/* =========================================
   MINI CART ULTRA PRO (DESKTOP)
========================================= */
.ma-mini-cart {
    right: 40px !important;   
    margin-top: -2.4%;           
    border-top: 3px solid #ef5252;
    border-radius: 0 !important;
}

.widget_shopping_cart, .woocommerce.widget_shopping_cart {
    padding: 16px;
}

.woocommerce-mini-cart {
    list-style: none;
    margin: 0;
    padding: 0;
}

.woocommerce-mini-cart-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0;
    padding: 0;
    margin-bottom: 0;
    border-bottom: 0.5px solid #c5c7cc;
}

.owp-grid-wrap {
    display: flex;
    width: 100%;
    gap: 12px;
    align-items: center;
}

.owp-grid.thumbnail {
    width: 78px;
    flex-shrink: 0;
    border-right: 1px solid #c5c7cc;
}
.owp-grid.thumbnail img {
    width: 78px;
    height: 90px;
    object-fit: cover;
    border-radius: 0;
    transition: all .3s ease;
}
.woocommerce-mini-cart-item:hover img {
    filter: brightness(1.1);
}

.owp-grid.content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.owp-grid.content h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 6px;
    font-family: 'inter', sans-serif;
}
.owp-grid.content h3 a {
    color: #222;
    text-decoration: none;
    transition: all .2s ease;
}
.owp-grid.content h3 a:hover {
    color: #ef5252;
}

.owp-grid.content .variation {
    font-size: 12px;
    color: #777;
    margin-top: 3px;
}
.owp-grid.content .quantity {
    font-size: 14px;
    color: #777777;
    margin-top: 6px;
    font-family: 'inter', sans-serif;
}
.owp-grid.content .quantity span {
    font-weight: 600;
    color: #1bd634;
}

.remove.remove_from_cart_button {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    border-radius: 50%;
    background: #f5f5f5;
    color: #999;
    transition: all .25s ease;
}
.remove.remove_from_cart_button:hover {
    background: #ef5252;
    color: #fff;
    transform: rotate(90deg);
}

.woocommerce-mini-cart__total {
    margin-top: 14px;
    padding: 12px 14px;
    background: #f9f9f9;
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    border: 1px solid #eee;
}

.woocommerce-mini-cart__empty-message {
    text-align: center;
    padding: 20px;
    color: #777;
    font-size: 14px;
}
.owp-cart-shop-link {
    display: inline-block;
    margin-top: 10px;
    color: #ef5252;
    font-weight: 500;
    text-decoration: none;
}
.owp-cart-shop-link:hover {
    text-decoration: underline;
}

/* ===================================================================
       AMÉLIORATIONS MOBILE & TABLETTE
       =================================================================== */
@media (max-width: 991px) {
    
    .ma-mini-cart {
        right: 16px !important; 
        width: calc(100vw - 182px) !important; 
        margin-top: 0 !important;
        border-radius: 0 0 12px 12px !important;
        border-top: 3px solid #ef5252 !important;
        max-height: 70vh;
        overflow-y: auto;
    }

    .owp-grid.thumbnail {
        width: 65px;
        border-right: none;
        border-bottom: none;
        padding-right: 0;
    }
    .owp-grid.thumbnail img {
        width: 65px;
        height: 75px;
        border-radius: 8px;
    }

    .owp-grid-wrap {
        gap: 10px;
        padding: 12px 0;
    }

    .remove.remove_from_cart_button {
        width: 28px;
        height: 28px;
        top: 5px;
        right: 5px;
        font-size: 16px;
    }

    .owp-grid.content h3 {
        font-size: 14px;
        padding-right: 30px;
    }
}

@media (max-width: 480px) {
    .ma-mini-cart {
        right: -12px !important;
        width: calc(100vw - 24px) !important;
    }

    .owp-grid.thumbnail {
        width: 55px;
    }
    .owp-grid.thumbnail img {
        width: 55px;
        height: 65px;
    }
    
    .owp-grid.content h3 {
        font-size: 13px;
    }
    
    .woocommerce-mini-cart__buttons a {
        padding: 10px 8px;
        font-size: 12px;
    }
}