@media (max-width: 991px) {
    body {
        padding-bottom: 84px !important;
        overflow-x: hidden;
    }

    #footer.xl-pb-70 {
        padding-bottom: 0 !important;
    }

    img,
    video,
    iframe {
        max-width: 100%;
    }

    #header.header-default {
        position: sticky;
        top: 0;
        z-index: 1000002;
        background: #fff;
    }

    #header .wrapper-header {
        min-height: 56px;
        padding-top: 6px;
        padding-bottom: 6px;
    }

    .logo-header img,
    #header .logo {
        max-height: 44px;
        width: auto;
    }

    .tf-toolbar-bottom {
        z-index: 1000006 !important;
        background: #fff;
        box-shadow: 0 -1px 0 rgba(0, 0, 0, .08);
    }

    .flat-title .title {
        font-size: 22px !important;
        color: #1a1a1a;
    }

    .marquee-wrapper {
        overflow: hidden;
    }

    .initial-child-container {
        width: max-content !important;
        animation: shop-marquee 22s linear infinite !important;
    }

    .wg-cls,
    .wg-cls .image.img-style,
    .wg-cls .equal-img {
        height: 190px !important;
        max-height: 190px !important;
    }

    .custom-radius .image img,
    .custom-radius .equal-img {
        width: 100%;
        height: 190px !important;
        object-fit: cover;
        border-radius: 110px 110px 10px 10px !important;
    }

    .swiper-button-prev,
    .swiper-button-next {
        display: none !important;
    }

    .tf-product-media-wrap .swiper-button-prev,
    .tf-product-media-wrap .swiper-button-next {
        display: flex !important;
    }

    .best_seller_section {
        padding-top: 12px !important;
        padding-bottom: 12px !important;
    }

    .best_seller_section .swiper-button-prev,
    .best_seller_section .swiper-button-next,
    .slider-wrapper > button {
        width: 36px;
        height: 36px;
    }

    .card-product .name,
    .card-product .title,
    .card-product .product-title {
        font-size: 14px;
        line-height: 1.35;
    }

    .tf-product-media-wrap .row {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 8px;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
        padding-bottom: 8px;
        -webkit-overflow-scrolling: touch;
    }

    .tf-product-media-wrap .col-auto {
        width: auto;
        flex: 0 0 auto;
        padding: 0;
    }

    .thumb-img,
    .slider-image {
        border-radius: 12px;
    }

    .thumb-img {
        width: 72px !important;
        height: 96px !important;
        object-fit: cover;
    }

    .tf-product-info-list h5,
    .tf-product-info-heading h5 {
        font-size: 20px;
        line-height: 1.3;
    }

    body:has(.variant-size) {
        padding-bottom: 230px !important;
    }

    body:not(:has(.variant-size)):has(.btn-add-to-cart) {
        padding-bottom: 146px !important;
    }

    .variant-picker-item.variant-size {
        position: fixed !important;
        left: 0;
        right: 0;
        bottom: 136px;
        z-index: 1000005;
        margin: 0 !important;
        padding: 8px 12px 6px;
        background: #fff;
        box-shadow: 0 -8px 18px rgba(0, 0, 0, .06);
    }

    .variant-size .variant-picker-label {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        margin-bottom: 6px;
        font-size: 13px;
    }

    .variant-size.needs-size .variant-picker-label::after {
        content: "Tap your size, then add to cart";
        color: #8a4b08;
        font-size: 12px;
        font-weight: 600;
    }

    .variant-size .variant-picker-values {
        display: flex !important;
        flex-wrap: nowrap;
        gap: 8px;
        margin: 0 !important;
        overflow-x: auto;
    }

    .size-btn {
        min-width: 44px;
        min-height: 40px;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        flex: 0 0 auto;
    }

    .size-btn.active,
    .size-btn.bg-dark {
        outline: 2px solid #111;
        outline-offset: 1px;
    }

    .tf-product-total-quantity .wg-quantity,
    .group-btn .wg-quantity {
        position: fixed !important;
        left: 12px !important;
        bottom: 82px !important;
        width: 132px !important;
        min-width: 132px;
        z-index: 1000005;
        margin: 0 !important;
        display: inline-flex !important;
        align-items: center;
        overflow: hidden;
        background: #f1f1f1;
    }

    .tf-product-total-quantity .wg-quantity .btn-quantity,
    .tf-product-total-quantity .wg-quantity .quantity-product,
    .group-btn .wg-quantity .btn-quantity,
    .group-btn .wg-quantity .quantity-product {
        position: static !important;
        flex: 1 1 0;
        width: auto !important;
        min-width: 0;
        height: 42px;
    }

    .popup-shopping-cart .wg-quantity,
    .tf-mini-cart .wg-quantity,
    .tf-mini-cart-item .wg-quantity {
        position: static !important;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        bottom: auto !important;
        width: auto !important;
        min-width: 112px;
        z-index: auto !important;
        transform: none !important;
        margin: 0 !important;
        display: inline-flex !important;
        align-items: center;
        overflow: hidden;
        flex: 0 0 auto;
    }

    .popup-shopping-cart .wg-quantity .btn-quantity,
    .popup-shopping-cart .wg-quantity .quantity-product,
    .tf-mini-cart-item .wg-quantity .btn-quantity,
    .tf-mini-cart-item .wg-quantity .quantity-product {
        position: static !important;
        flex: 0 0 34px;
        width: 34px !important;
        min-width: 34px;
        height: 34px !important;
    }

    #shop-chat-close {
        position: fixed;
        top: 10px;
        right: 10px;
        z-index: 1000012;
        min-height: 40px;
        padding: 0 16px;
        border: 0;
        border-radius: 999px;
        background: #111;
        color: #fff;
        font-size: 14px;
        font-weight: 600;
    }

    .tf-product-info-list .btn-add-to-cart,
    .group-btn .btn-add-to-cart {
        position: fixed !important;
        left: 148px !important;
        right: 12px !important;
        bottom: 78px !important;
        width: auto !important;
        min-height: 48px !important;
        z-index: 1000005 !important;
        border-radius: 999px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .offcanvas.popup-shopping-cart {
        z-index: 1000008 !important;
        padding-bottom: 74px;
        box-sizing: border-box;
    }

    .offcanvas-backdrop {
        z-index: 1000004 !important;
    }

    .popup-shopping-cart .tf-mini-cart-bottom {
        background: #fff;
    }

    .popup-shopping-cart .tf-mini-cart-bottom-wrap {
        padding: 12px 16px 8px;
    }

    .popup-shopping-cart .tf-mini-cart-view-checkout {
        display: block;
    }

    .popup-shopping-cart .tf-mini-cart-view-checkout .tf-btn,
    .popup-shopping-cart .tf-mini-cart-view-checkout button {
        width: 100% !important;
        min-height: 48px;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
    }

    body:has(#shoppingCart.show) .variant-picker-item.variant-size,
    body:has(#shoppingCart.show) .tf-product-info-list .wg-quantity,
    body:has(#shoppingCart.show) .tf-product-total-quantity .wg-quantity,
    body:has(#shoppingCart.show) .group-btn .wg-quantity,
    body:has(#shoppingCart.show) .tf-product-info-list .btn-add-to-cart,
    body:has(#shoppingCart.show) .group-btn .btn-add-to-cart {
        visibility: hidden !important;
        pointer-events: none !important;
    }

    .tf-page-cart .tf-btn,
    .cart-checkout .tf-btn,
    .checkout-cart .tf-btn {
        width: 100%;
        min-height: 48px;
    }

    .modal-order-detail .modal-dialog {
        max-width: calc(100vw - 24px);
        margin: 12px auto;
    }

    .modal-order-detail .list-infor {
        display: flex;
        flex-wrap: wrap;
        gap: 8px 12px;
    }

    .tb-order-detail .top {
        display: none;
    }

    .tb-order-detail .order-detail-item {
        display: flex !important;
        flex-wrap: wrap;
        gap: 6px 14px;
        align-items: center;
        padding: 12px 0;
        border-bottom: 1px solid #eee;
    }

    .tb-order-detail .order-detail-item .item {
        display: block !important;
        width: auto !important;
    }

    .tb-order-detail .order-detail-item .item:first-child {
        flex: 1 0 100%;
    }

    .tb-order-detail .item[data-title]::before {
        content: attr(data-title) ": ";
        color: #777;
        font-size: 12px;
    }

    .my-account-nav {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        margin-bottom: 16px;
        padding-bottom: 4px;
    }

    .my-account-nav li {
        flex: 0 0 auto;
    }

    .my-account-nav a,
    .my-account-nav button {
        min-height: 40px;
        display: inline-flex;
        align-items: center;
    }

    .my-account-nav button.dropdown-item {
        background: transparent;
        border: 0;
        padding: 0;
        color: inherit;
        font: inherit;
    }

    .box-check-list {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .box-check-list > li,
    .box-check {
        width: 100%;
    }

    .wd-form-address .cols {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .wd-form-address input,
    .wd-form-address select,
    .wd-form-address textarea,
    input,
    select,
    textarea {
        font-size: 16px;
    }

    .wd-form-address input,
    .wd-form-address select,
    .wd-form-address textarea {
        width: 100%;
        min-height: 46px;
    }

    .wrap-account-order {
        overflow: visible;
    }

    .wrap-account-order table,
    .wrap-account-order tbody {
        display: block;
        width: 100%;
    }

    .wrap-account-order thead {
        display: none;
    }

    .wrap-account-order tr.tf-order-item {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px 12px;
        border: 1px solid #ece7e1;
        border-radius: 14px;
        padding: 14px;
        margin: 0 0 12px;
        background: #fff;
    }

    .wrap-account-order td {
        display: block;
        border: 0;
        padding: 0;
        width: auto;
    }

    .wrap-account-order td::before {
        display: block;
        margin-bottom: 2px;
        color: #888;
        font-size: 11px;
        letter-spacing: .04em;
        text-transform: uppercase;
    }

    .wrap-account-order td:nth-child(1)::before { content: "Order"; }
    .wrap-account-order td:nth-child(2)::before { content: "Date"; }
    .wrap-account-order td:nth-child(3)::before { content: "Status"; }
    .wrap-account-order td:nth-child(4)::before { content: "Total"; }
    .wrap-account-order td:nth-child(5) { grid-column: 1 / -1; }
    .wrap-account-order td:nth-child(5)::before { content: none; }

    .wrap-account-order .view-detail {
        display: inline-flex;
        min-height: 40px;
        align-items: center;
        justify-content: center;
        border: 1px solid #111;
        border-radius: 999px;
        padding: 0 16px;
    }

    .flat-spacing,
    .flat-spacing-25,
    .tf-page-title {
        padding-top: 28px !important;
        padding-bottom: 28px !important;
    }

    .tf-cart-item,
    .tf-mini-cart-item {
        align-items: flex-start;
    }
}

@keyframes shop-marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}
