/* Page panier — mobile uniquement */
@media (max-width: 767.98px) {

    body.page-panier .cart-trending-wrap {
        position: relative;
        z-index: 1;
        clear: both;
        margin-top: 0.5rem;
        padding-top: 0.25rem;
        background: #fff;
    }

    body.page-panier .trending-products-section {
        position: relative;
        z-index: 1;
        margin-bottom: 1.5rem !important;
        padding-bottom: 1rem !important;
    }

    body.page-panier .trending-products-section h2 {
        font-size: 1.15rem;
        padding-bottom: 0.85rem !important;
        margin-bottom: 0.75rem !important;
    }

    body.page-panier .trending-products-swiper .swiper-slide {
        min-width: 0;
        overflow: hidden;
    }

    body.page-panier .trending-products-swiper .swiper-product-card {
        min-width: 0;
        overflow: hidden;
    }

    body.page-panier .trending-products-swiper .h6.mb-3 {
        font-size: 0.82rem;
        line-height: 1.25;
        min-height: 2.5rem;
    }

    body.page-panier .trending-products-swiper .h6.mb-3 del {
        display: block;
        font-size: 0.72rem;
    }

    body.page-panier .trending-products-swiper .product-card-actions .btn-add-to-cart,
    body.page-panier .trending-products-swiper .product-card-actions .btn.btn-dark {
        height: 36px !important;
        padding: 0 8px !important;
        font-size: 0.68rem !important;
    }

    body.page-panier .trending-products-swiper .product-card-actions .btn-favorite {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        max-width: 36px !important;
        min-height: 36px !important;
        max-height: 36px !important;
    }

    body.page-panier .cart-page-list-wrapper {
        position: relative;
        z-index: 20;
        background: #fff;
        overflow: visible;
        padding: 0;
        margin: 0;
    }

    body.page-panier .cart-page-table {
        display: none !important;
    }

    body.page-panier .cart-page-coupon {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    body.page-panier .cart-mobile-list {
        display: flex !important;
        flex-direction: column !important;
        gap: 0 !important;
        margin-bottom: 2rem !important;
        position: relative;
        z-index: 20;
    }

    body.page-panier .cart-mobile-item {
        display: block !important;
        padding: 0.85rem 0 !important;
        margin: 0 !important;
        border-bottom: 1px solid #dee2e6 !important;
        background: #fff !important;
        position: relative !important;
        z-index: 21 !important;
        isolation: isolate;
        contain: layout;
        overflow: hidden;
    }

    body.page-panier .cart-mobile-row-top {
        display: flex !important;
        flex-direction: row !important;
        align-items: flex-start !important;
        gap: 0.65rem !important;
        width: 100% !important;
    }

    body.page-panier .cart-mobile-thumb {
        flex: 0 0 56px !important;
        width: 56px !important;
        height: 56px !important;
        border-radius: 6px;
        overflow: hidden;
        background: #f3f4f6;
        display: block !important;
    }

    body.page-panier .cart-mobile-thumb img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        display: block !important;
    }

    body.page-panier .cart-mobile-info {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.25rem !important;
    }

    body.page-panier .cart-mobile-title {
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        width: 100% !important;
        font-size: 0.875rem !important;
        font-weight: 600 !important;
        line-height: 1.35 !important;
        color: inherit;
        text-decoration: none;
        white-space: normal !important;
        word-break: break-word !important;
    }

    body.page-panier .cart-mobile-price {
        display: block !important;
        width: 100% !important;
        font-size: 0.875rem !important;
        font-weight: 700 !important;
        line-height: 1.2 !important;
        white-space: nowrap !important;
        word-break: keep-all !important;
    }

    body.page-panier .cart-mobile-remove {
        flex: 0 0 24px !important;
        width: 24px !important;
        height: 24px !important;
        margin: 0 !important;
        padding: 0 !important;
        position: static !important;
        align-self: flex-start !important;
    }

    body.page-panier .cart-mobile-row-bottom {
        display: flex !important;
        align-items: center !important;
        margin-top: 0.55rem !important;
        padding-left: calc(56px + 0.65rem) !important;
        min-height: 1.75rem !important;
        height: 1.75rem !important;
    }

    body.page-panier .cart-mobile-qty {
        display: inline-flex !important;
        flex-direction: row !important;
        align-items: center !important;
        flex: 0 0 auto !important;
        width: 7.25rem !important;
        min-width: 7.25rem !important;
        max-width: 7.25rem !important;
    }

    body.page-panier .cart-mobile-qty .btn-icon {
        width: 1.65rem !important;
        height: 1.65rem !important;
        min-width: 1.65rem !important;
        padding: 0 !important;
        text-decoration: none !important;
        border-bottom: none !important;
        box-shadow: none !important;
    }

    body.page-panier .cart-mobile-qty .btn-icon::before,
    body.page-panier .cart-mobile-qty .btn-icon::after {
        display: none !important;
    }

    body.page-panier .cart-mobile-qty .form-control {
        width: 2.25rem !important;
        min-width: 2.25rem !important;
        max-width: 2.25rem !important;
        flex: 0 0 2.25rem !important;
        padding: 0.1rem !important;
        font-size: 0.75rem !important;
        text-align: center !important;
        font-variant-numeric: tabular-nums;
    }

    /* Offcanvas panier */
    #shoppingCart .cart-item {
        display: grid !important;
        grid-template-columns: 56px minmax(0, 1fr) !important;
        column-gap: 0.65rem !important;
        row-gap: 0.45rem !important;
        align-items: start !important;
    }

    #shoppingCart .cart-item > .cart-item-img-wrap {
        grid-column: 1 !important;
        grid-row: 1 / 3 !important;
        width: 56px !important;
        height: 56px !important;
        --cart-item-img-size: 56px !important;
    }

    #shoppingCart .cart-item > .w-100 {
        grid-column: 2 !important;
        grid-row: 1 / 3 !important;
        width: auto !important;
        min-width: 0 !important;
        padding: 0 1.25rem 0 0 !important;
    }

    #shoppingCart .cart-offcanvas-item-title {
        font-size: 0.78rem !important;
        line-height: 1.35 !important;
        white-space: normal !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }

    #shoppingCart .cart-offcanvas-item-price .text-nowrap {
        white-space: nowrap !important;
        font-weight: 700 !important;
    }

    #shoppingCart .cart-item .count-input {
        display: inline-flex !important;
        width: auto !important;
        max-width: 7.5rem !important;
    }

    #shoppingCart > #cartFooter[hidden],
    #shoppingCart > #cartFooter.cart-footer-hidden {
        display: none !important;
    }

    #shoppingCart > #cartFooter:not([hidden]):not(.cart-footer-hidden) {
        display: flex !important;
        flex-direction: column !important;
    }

    #shoppingCart .cart-offcanvas-footer-actions {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        width: 100% !important;
        gap: 0.625rem !important;
    }

    #shoppingCart .cart-offcanvas-footer-actions .btn {
        flex: 1 1 0 !important;
        min-width: 0 !important;
        min-height: 48px !important;
        height: 48px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
}
