
        .js-cookie-consent {
            display: none !important;
        }
        /* Desktop Google Translate */
        #google_element {
            width: 135px;
            height: 30px;
            border-radius: 3px;
            font-size: 14px;
            color: #fff;
            z-index: 1000000000 !important;
            position: relative !important;
        }

        /* Google Translate dropdown - ensure it appears above everything */
        /* Use maximum z-index value to ensure it's above header-fixed */
        .goog-te-menu-frame,
        .goog-te-menu,
        .goog-te-menu2,
        .goog-te-menu2-frame,
        div[id*="google_translate_element"],
        div[class*="goog-te-menu"],
        iframe[title*="Language"],
        iframe[title*="Translate"] {
            z-index: 2147483647 !important; /* Maximum z-index value (2^31 - 1) */
            position: fixed !important;
        }

        .goog-te-menu-frame iframe,
        iframe[title*="Language"],
        iframe[title*="Translate"] {
            z-index: 2147483647 !important; /* Maximum z-index value */
        }

        /* Ensure header doesn't block dropdown */
        .main_header,
        .main_header.header-fixed,
        .header {
            overflow: visible !important;
        }
        .goog-te-gadget .goog-te-combo {
            margin: 2px 0  !important;
        }
        .main_header {
            min-height: 75px !important;
        }

        /* =============================================
           MOBILE HEADER LAYOUT - 20:60:20
           Only affects screens < 768px
        ============================================= */
        @media (max-width: 767px) {
            /* Mobile header wrapper */
            .mobile-header-wrapper {
                padding: 10px 0;
            }

            /* Mobile header row - flexbox 20:60:20 */
            .mobile-header-row {
                display: flex;
                flex-wrap: nowrap;
                align-items: center;
                width: 100%;
            }

            /* Language button - 20% left */
            .mobile-lang-section {
                flex: 0 0 20%;
                max-width: 20%;
                display: flex;
                align-items: center;
                justify-content: center;
                position: relative;
            }

            /* Logo - 60% center */
            .mobile-logo-section {
                flex: 0 0 60%;
                max-width: 60%;
                display: flex;
                align-items: center;
                justify-content: center;
            }

            .mobile-logo-section .logo {
                max-height: 40px;
                width: auto;
            }

            /* Icons - 20% right */
            .mobile-icons-section {
                flex: 0 0 20%;
                max-width: 20%;
                display: flex;
                align-items: center;
                justify-content: center;
                gap: 8px;
            }

            .mobile-icons-section .cart_box {
                font-size: 20px;
                color: #fff;
                position: relative;
            }

            .mobile-icons-section .qut_counter {
                position: absolute;
                top: -5px;
                right: -5px;
                font-size: 10px;
                background: #f00;
                color: #fff;
                border-radius: 50%;
                padding: 2px 5px;
                min-width: 16px;
                text-align: center;
            }

            /* Header Nav - 70:30 */
            .header_nav .row {
                display: flex !important;
                flex-wrap: nowrap !important;
                align-items: center !important;
            }

            .header_nav .row > div:first-child {
                flex: 0 0 70% !important;
                max-width: 70% !important;
            }

            .header_nav .row > div:last-child {
                flex: 0 0 30% !important;
                max-width: 30% !important;
            }

            .header_nav .navigation-landscape #navFilterToggle {
                float: right !important;
            }
        }

        /* Filter icon replacing the theme .nav-toggle hamburger:
           hidden on desktop, pinned to the right of the nav bar on mobile */
        #navFilterToggle {
            display: none;
            position: absolute;
            top: 50%;
            right: 15px;
            transform: translateY(-50%);
            font-size: 20px;
            color: #ffffff;
            cursor: pointer;
            padding: 6px;
        }

        .navigation-portrait #navFilterToggle {
            display: block;
        }

        .entry-title {
            overflow: hidden;
            display: -webkit-box;
            -webkit-line-clamp: 2; /* number of lines to show */
            line-clamp: 2;
            -webkit-box-orient: vertical;
        }
        .skiptranslate {
            z-index: -1 !important;
        }
        body {
            z-index: 1 !important;
            top: 0px !important;
        }
        #cats_menu {
            height: auto;
        }
        #cats_menu a {
           padding: 9px 10px !important;
        }
        /*#cats_menu > ul > li > ul {*/
        /*    max-height: 800px;*/
        /*}*/
        /* CAROUSEL HEIGHT - Được quản lý bởi JavaScript trong home.blade.php */
        /*
        .carousel-slider {
            width: 100%;
            height: auto;
            min-height: 420px;
            max-height: 520px;
        }
        .carousel-slider img {
            max-width: 100% !important;
            height: 100% !important;
            object-fit: cover;
        }
        */
        .img-search {
            max-width: 45px;
            max-height: 55px;
            margin-right: 25px;
        }

        .tbl_cart_product_thumb {
            width: 150px;
            height: auto;
        }

        .table-mobile {
            display: none !important;
        }

        #cats_menu .sub-category {
            max-width: 900px;
            min-width: 800px;
            padding: 15px;
        }

        #cats_menu .innersubcategories {
            max-width: 600px;
            min-width: 500px;
            padding: 15px;
        }

        #cats_menu ul ul ul {
            top: 15px;
        }

        .value-button:hover {
            cursor: pointer;
        }

        .sub-category, .innersubcategories {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
        }
        #cats_menu a {
            border-bottom: none !important;
        }

        .sub-category > li {
            flex: 0 0 calc(25% - 10px);
            list-style: none;
            box-shadow: 2px 2px #8f8c8c42 !important;
        }
        .innersubcategories > li {
            flex: 0 0 calc(50% - 10px);
            list-style: none;
            box-shadow: 2px 2px #8f8c8c42 !important;
        }

        #cats_menu ul li.has-sub > a:after {
            content: '';
            position: absolute;
            top: 50%;
            left: 5px;
            margin-top: -9px;
        }

        #myCategories {
            width: 80%;
            border: 1px solid #978e8e40;
            border-radius: 3px;
            background-color: #ffffff;
        }

        /* Responsive carousel heights - DISABLED, managed by home.blade.php JS */
        /*
        @media (max-width: 576px) {
            .carousel-slider {
                min-height: 230px !important;
                max-height: 260px !important;
                height: auto !important;
            }
            .carousel-slider img {
                height: 100% !important;
            }
        }

        @media (min-width: 577px) and (max-width: 992px) {
            .carousel-slider {
                min-height: 380px !important;
                max-height: 420px !important;
                height: auto !important;
            }
        }

        @media (min-width: 1280px) {
            #cats_menu {
                height: 700px !important;
            }
            .carousel-slider {
                min-height: 700px !important;
                max-height: 700px !important;
                height: 700px !important;
            }
        }
        */

        #custom-side-menu {
            background-color: #ffffff;
        }

        #custom-side-menu li a {
            padding: 9.5px 15px;
            font-weight: 700;
            font-size: 16.5px;
        }
        #custom-side-menu li.dropdown a span {
            position: relative;
            top: 1px;
            float: right;
        }

        #myCategories {
            min-height: 700px;
        }

        #custom-side-menu ul.nav-second-level,
        #custom-side-menu ul.nav-third-level {
            display: none;
            padding-left: 10px;
        }

        #custom-side-menu li.active > a {
            font-weight: bold;
        }
        .ti-angle-left:hover {
            cursor: pointer;
        }

        .ti-angle-left:before {
            content: "\e64a"; /* Biểu tượng mũi tên mặc định */
            transition: transform 0.2s ease; /* Thêm hiệu ứng chuyển động */
        }

        .ti-angle-left.rotate:before {
            content: "\e64b"; /* Biểu tượng mũi tên xuống, bạn có thể điều chỉnh mã này */
            transform: rotate(90deg); /* Nếu muốn dùng quay thay vì đổi biểu tượng */
        }
        .header-fixed{
            position: fixed;
            z-index: 999999999999999999999;
            width: 100%;
            top: 0;
            -webkit-transition: 0.2s ease-in;
            -o-transition: 0.2s ease-in;
            transition: 0.2s ease-in;
            -webkit-animation-duration: 0.5s;
            animation-duration: 0.5s;
            -webkit-animation-name: slideInDown;
            animation-name: slideInDown;
            /* Optimize for GPU acceleration on mobile */
            will-change: transform, opacity;
            -webkit-backface-visibility: hidden;
            backface-visibility: hidden;
        }
        
        /* Reduce animation on mobile for better performance and prevent jump */
        @media (max-width: 767px) {
            .header-fixed {
                -webkit-animation: none !important;
                animation: none !important;
                transition: none !important;
            }
        }
        
        /* Placeholder styles to prevent layout shift */
        .header-placeholder,
        .header-nav-placeholder {
            display: none;
            width: 100%;
            margin: 0;
            padding: 0;
        }

        #navigation ul li a {
            font-size: 20px;
            font-weight: 600;
            padding: 20px 25px;
        }

        .shopby_categories a {
            font-size: 20px;
            font-weight: 600;
        }

        @media  screen and (max-width: 1439px) {
            #custom-side-menu li a {
                font-size: 15.5px !important;
                font-weight: 600 !important;
            }
        }

        @media (min-width: 1024px) and (max-width: 1440px) {
            #navigation ul li a {
                font-size: 15.5px;
                font-weight: 600;
                padding: 20px 15px;
            }
        }

        @media  only screen and (max-width: 576px) {

            #navigation ul li a {
                font-size: 16px;
                font-weight: 600;
                padding: 15px;
            }

            .shopby_categories a {
                font-size: 16px;
                font-weight: 600;
            }

            .product-box-image, .img-fluid {
                max-height: 155px !important;
            }

            .entry-title {
                font-size: 13px !important;
                line-height: 15px !important;
            }

            .cart {
                font-size: 13px !important;
                height: 45px !important;
            }

            .col-6 {
                padding-left: 5px !important;
                padding-right: 5px !important;
            }

            .mb-4 {
                margin-bottom: 1rem !important;
            }

            .gray {
                padding-top: 40px !important;
            }

            .ss_cart_left .cart_box {
                width: 30px !important;
                height: 30px !important;
            }
            .Coupon-Box {
                margin-top: 25px !important;
                margin-bottom: 30px !important;
            }
            /* Carousel height - managed by home.blade.php JS
            .carousel-slider img {
                object-fit: fill !important;
                height: 100%;
            }
            .carousel-slider {
                height: 200px !important;
            }
            */

            .img-search {
                max-width: 25px;
                max-height: 35px;
                margin-right: 15px;
            }

            .woo_product_caption {
                font-size: 0.8em;
            }

            .tbl_cart_product_thumb {
                width: 80px;
                height: auto;
            }

            .tbl_cart_product_caption {
                display: block !important;
            }

            .table-desktop {
                display: none !important;
            }

            .table-mobile {
                display: block !important;
            }
        }
        .item-list {
            width: 110% !important;
        }

        /* Desktop search suggestions: khớp đúng bề rộng thanh tìm kiếm
           (.item-list định vị absolute theo .input-group nên 100% = input-group) */
        .main_header #countryList.item-list {
            width: 100% !important;
        }

        /* =============================================
           CART SIDEBAR - DESKTOP STYLING
           Professional UI improvements for cart display
        ============================================= */

        /* Cart Sidebar Container - Desktop */
        #rightMenu.w3-ch-sideBar {
            width: 420px !important;
            max-width: 90vw;
            background: #ffffff;
            box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
        }

        /* Header Section - General styling for rightMenu-scroll */
        .rightMenu-scroll {
            position: relative;
            background: #ffffff;
            padding: 20px 25px;
            border-bottom: 2px solid #e0e0e0;
        }

        /* =============================================
           LEFT MENU (Mobile Category Navigation) - Redesign
           Brand drawer: navy header, icon rows, 3-level tree
        ============================================= */
        #leftMenu.w3-ch-sideBar-left {
            position: fixed !important;
            z-index: 999999999999999999999 !important;
            width: 302px;
            max-width: 86vw;
            min-width: 0;
            background: #ffffff;
            box-shadow: 0 18px 44px rgba(13, 21, 48, 0.28);
            border-radius: 0 16px 16px 0;
            height: calc(100vh - 55px);
            overflow: hidden;
        }

        /* Wrapper: reset the shared cart-header styling, header is .flixel */
        #leftMenu .rightMenu-scroll {
            position: relative !important;
            background: transparent !important;
            padding: 0 !important;
            border-bottom: none !important;
            z-index: 1 !important;
        }

        /* Drawer header - brand navy bar */
        #leftMenu .flixel {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            padding: 15px 12px 15px 18px;
            background: linear-gradient(135deg, #141a3c 0%, #1f2b60 100%);
        }

        #leftMenu .cart_heading {
            display: flex;
            align-items: center;
            gap: 10px;
            color: #ffffff !important;
            font-size: 14px !important;
            font-weight: 700 !important;
            letter-spacing: 0.8px;
            text-transform: uppercase;
            line-height: 1.3;
            min-width: 0;
        }

        #leftMenu .cart_heading i {
            color: #6ea8ff;
            font-size: 16px;
            flex: 0 0 auto;
        }

        /* Close button - ghost style inside header flow (overrides red cart button) */
        #leftMenu .rightMenu-scroll .w3-button {
            position: static !important;
            flex: 0 0 auto;
            width: 34px !important;
            height: 34px !important;
            background: rgba(255, 255, 255, 0.12) !important;
            border: 1px solid rgba(255, 255, 255, 0.28) !important;
            border-radius: 10px !important;
            color: #ffffff !important;
            box-shadow: none !important;
        }

        #leftMenu .rightMenu-scroll .w3-button:hover {
            background: rgba(255, 255, 255, 0.24) !important;
            box-shadow: none !important;
            transform: none;
        }

        #leftMenu .rightMenu-scroll .w3-button i {
            font-size: 13px;
        }

        /* Scrollable category area */
        #leftMenu .right-ch-sideBar {
            max-height: calc(100vh - 55px - 64px);
            overflow-y: auto;
            overflow-x: hidden;
            padding: 6px 0 18px;
            background: #ffffff;
            overscroll-behavior: contain;
        }

        #leftMenu .right-ch-sideBar::-webkit-scrollbar {
            width: 5px;
        }

        #leftMenu .right-ch-sideBar::-webkit-scrollbar-track {
            background: transparent;
        }

        #leftMenu .right-ch-sideBar::-webkit-scrollbar-thumb {
            background: #c9d4e6;
            border-radius: 3px;
        }

        /* Neutralize theme float on spans inside links */
        #leftMenu .d-navigation ul li.dropdown a span {
            float: none;
            position: static;
            top: 0;
        }

        /* Level 1 - category rows */
        #leftMenu #side-menu-mobile {
            list-style: none;
            padding: 0 10px;
            margin: 0;
        }

        #leftMenu #side-menu-mobile > li {
            position: relative;
            width: auto;
            margin: 2px 0;
        }

        #leftMenu #side-menu-mobile > li.dropdown > a {
            display: flex;
            align-items: center;
            gap: 12px;
            width: 100%;
            padding: 10px 46px 10px 10px;
            border-bottom: none;
            border-radius: 11px;
            font-size: 14px;
            font-weight: 600;
            color: #2a3350;
            transition: background 0.18s ease, color 0.18s ease;
        }

        #leftMenu .leftmenu-cat-icon {
            flex: 0 0 26px;
            width: 26px;
            height: 26px;
            border-radius: 7px;
            object-fit: cover;
            background: #f1f5fb;
            border: 1px solid #e6ecf6;
        }

        #leftMenu .leftmenu-cat-name {
            flex: 1;
            min-width: 0;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        /* Chevron toggle - big tap target, absolutely placed on the row */
        #leftMenu #side-menu-mobile li.dropdown > .ti-angle-left {
            position: absolute;
            top: 7px;
            right: 4px;
            width: 38px;
            height: 38px;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 0;
            border-radius: 10px;
            color: #93a0bc;
            font-size: 11px;
            cursor: pointer;
            transition: background 0.18s ease, color 0.18s ease;
        }

        #leftMenu #side-menu-mobile li.dropdown > .ti-angle-left:hover {
            background: #eef3fc;
            color: #175ce8;
        }

        /* Hover / expanded states */
        #leftMenu #side-menu-mobile > li.dropdown:hover > a {
            background: #f3f7ff;
            color: #175ce8;
        }

        #leftMenu #side-menu-mobile > li.dropdown.active > a {
            background: #ecf3ff;
            color: #175ce8;
            box-shadow: inset 3px 0 0 #175ce8;
        }

        #leftMenu #side-menu-mobile > li.dropdown.active > .ti-angle-left {
            background: #e2edff;
            color: #175ce8;
        }

        /* Level 2 - subcategories */
        #leftMenu .nav-second-level {
            list-style: none;
            margin: 2px 0 8px 26px !important;
            padding: 4px 0 4px 12px !important;
            border-left: 2px solid #e2eaf7;
        }

        /* .nav is flex in Bootstrap - full-width items keep one per row */
        #leftMenu .nav-second-level > li {
            position: relative;
            width: 100%;
        }

        #leftMenu .nav-second-level > li > a {
            display: block;
            width: 100%;
            padding: 8px 38px 8px 10px;
            border-bottom: none;
            border-radius: 8px;
            font-size: 13px;
            font-weight: 500;
            color: #4a5674;
            transition: background 0.18s ease, color 0.18s ease;
        }

        #leftMenu .nav-second-level > li > a:hover,
        #leftMenu .nav-second-level > li.active > a {
            background: #f3f7ff;
            color: #175ce8;
        }

        #leftMenu .nav-second-level > li.dropdown > .ti-angle-left {
            top: 2px;
            right: 2px;
            width: 32px;
            height: 32px;
            font-size: 10px;
        }

        /* Level 3 - inner subcategories */
        #leftMenu .nav-third-level {
            list-style: none;
            margin: 0 0 4px 10px !important;
            padding: 2px 0 2px 10px !important;
            border-left: 2px dashed #e7edf8;
        }

        #leftMenu .nav-third-level li {
            width: 100%;
        }

        #leftMenu .nav-third-level li a {
            display: block;
            width: 100%;
            padding: 7px 10px;
            border-bottom: none;
            border-radius: 7px;
            font-size: 12.5px;
            color: #6b7590;
            transition: background 0.18s ease, color 0.18s ease;
        }

        #leftMenu .nav-third-level li a::before {
            content: '';
            display: inline-block;
            width: 5px;
            height: 5px;
            border-radius: 50%;
            background: #c3cde0;
            margin-right: 9px;
            vertical-align: 2px;
        }

        #leftMenu .nav-third-level li a:hover {
            background: #f3f7ff;
            color: #175ce8;
        }

        /* View All - pinned CTA row */
        #leftMenu .leftmenu-view-all {
            margin: 12px 0 0 !important;
        }

        #leftMenu .leftmenu-view-all a {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            width: 100%;
            padding: 12px;
            border-bottom: none;
            border-radius: 11px;
            background: #175ce8;
            color: #ffffff;
            font-size: 13.5px;
            font-weight: 700;
            letter-spacing: 0.3px;
            transition: background 0.18s ease;
        }

        #leftMenu .leftmenu-view-all a:hover {
            background: #0f4cc7;
            color: #ffffff;
        }

        @media (prefers-reduced-motion: reduce) {
            #leftMenu, #leftMenu * {
                transition: none !important;
                animation: none !important;
            }
        }

        .cart_heading {
            color: #3a3b3d !important;
            font-size: 22px !important;
            font-weight: 700 !important;
            margin: 0 !important;
            padding: 0 !important;
            letter-spacing: 0.5px;
        }

        .rightMenu-scroll .w3-button {
            position: absolute !important;
            top: 18px !important;
            right: 15px !important;
            background: #dc3545 !important;
            border: 2px solid #ffffff !important;
            border-radius: 50% !important;
            width: 40px !important;
            height: 40px !important;
            padding: 0 !important;
            display: flex !important;
            align-items: center !important;
            justify-content: center !important;
            color: #ffffff !important;
            box-shadow: 0 2px 8px rgba(220, 53, 69, 0.4) !important;
            transition: all 0.2s ease !important;
            z-index: 10 !important;
        }

        .rightMenu-scroll .w3-button:hover {
            background: #c82333 !important;
            box-shadow: 0 4px 12px rgba(220, 53, 69, 0.6) !important;
            transform: scale(1.1);
        }

        .rightMenu-scroll .w3-button i {
            font-size: 20px;
            font-weight: bold;
        }

        /* Content Area */
        #side-scroll.right-ch-sideBar {
            max-height: calc(100vh - 80px);
            overflow-y: auto;
            overflow-x: hidden;
            padding: 0;
            background: #ffffff;
        }

        /* Custom Scrollbar */
        #side-scroll.right-ch-sideBar::-webkit-scrollbar {
            width: 6px;
        }

        #side-scroll.right-ch-sideBar::-webkit-scrollbar-track {
            background: #f5f5f5;
        }

        #side-scroll.right-ch-sideBar::-webkit-scrollbar-thumb {
            background: #c0c0c0;
            border-radius: 3px;
        }

        /* Cart Items Container */
        .cart_select_items {
            padding: 20px 2px;
            background: #ffffff;
        }

        /* Single Product Item - Desktop */
        .product.cart_selected_single {
            display: flex;
            gap: 15px;
            padding: 18px 0;
            border-bottom: 1px dashed #e0e0e0;
        }

        .product.cart_selected_single:last-child {
            border-bottom: none;
        }

        /* Product Image - Desktop */
        .cart_selected_single_thumb {
            flex-shrink: 0;
            width: 90px;
            height: 90px;
            border-radius: 8px;
            overflow: hidden;
            background: #f8f9fa;
            border: 1px solid #e9ecef;
        }

        .cart_selected_single_thumb a {
            display: block;
            width: 100%;
            height: 100%;
        }

        .cart_selected_single_thumb img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        /* Product Details - Desktop */
        .cart_selected_single_caption {
            flex: 1;
            min-width: 0;
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .cart_selected_single_caption .product_title {
            font-size: 15px !important;
            font-weight: 500 !important;
            color: #3a3b3d !important;
            margin: 0 !important;
            padding: 0 !important;
            line-height: 1.4 !important;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        /* Variations (Color, Size) - Desktop */
        .cart_selected_single_caption .woo_pr_color {
            margin: 0 !important;
            padding: 0 !important;
            gap: 8px;
        }

        .cart_selected_single_caption .sku_preflix_first h6 {
            font-size: 12px !important;
            font-weight: 600 !important;
            color: #3a3b3d !important;
            margin: 0 !important;
            text-transform: uppercase;
            letter-spacing: 0.3px;
        }

        .cart_selected_single_caption .custom-varient.custom-size {
            margin: 0 !important;
        }

        .cart_selected_single_caption .custom-control-label {
            background: #f8f9fa !important;
            border: 1px solid #dee2e6 !important;
            border-radius: 4px !important;
            color: #3a3b3d !important;
            font-size: 12px !important;
            font-weight: 500 !important;
            padding: 4px 10px !important;
            min-width: auto !important;
            display: inline-block;
        }

        /* Price and Quantity - Desktop */
        .cart_selected_single_caption .numberof_item {
            font-size: 13px !important;
            color: #3a3b3d !important;
            font-weight: 500 !important;
            margin: 0 !important;
        }

        /* Price Section - Desktop */
        .cart_selected_single_caption .cart_price {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-top: 8px;
            padding-top: 8px;
            border-top: 1px solid #f0f0f0;
        }

        .cart_selected_single_caption .cart_price h6 {
            display: flex !important;
            align-items: center !important;
            justify-content: space-between !important;
            width: 100% !important;
            margin: 0 !important;
            padding: 0 !important;
            gap: 10px;
        }

        .cart_selected_single_caption .cart_price a {
            color: #dc3545 !important;
            font-size: 16px !important;
            padding: 6px 8px !important;
            display: flex !important;
            align-items: center !important;
            justify-content: center !important;
        }

        .cart_selected_single_caption .cart_price span {
            font-size: 16px !important;
            font-weight: 700 !important;
            color: #3a3b3d !important;
        }

        /* Subtotal Section */
        .cart_subtotal {
            background: #e8e9ea;
            padding: 20px 25px;
            border-top: 2px solid rgba(0, 0, 0, 0.1);
            border-bottom: 2px solid rgba(0, 0, 0, 0.1);
            margin: 0;
        }

        .cart_price h6 span {
            margin-left: 1rem !important;
        }

        .cart_subtotal h6 {
            display: flex !important;
            justify-content: space-between !important;
            align-items: center !important;
            font-size: 18px !important;
            font-weight: 700 !important;
            color: #2c3e50 !important;
            margin: 0 !important;
            padding: 0 !important;
        }

        .cart_subtotal h6 .theme-cl {
            color: #1a3760 !important;
            font-size: 20px !important;
            font-weight: 800 !important;
        }

        /* Action Button */
        .cart_action {
            padding: 20px 25px;
            background: #ffffff;
        }

        .cart_action ul {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        .cart_action ul li {
            margin: 0;
            padding: 0;
        }

        .cart_action .btn-go-cart {
            width: 100% !important;
            padding: 14px 20px !important;
            font-size: 16px !important;
            font-weight: 600 !important;
            background: #1a3760 !important;
            color: #ffffff !important;
            border: none !important;
            border-radius: 8px !important;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        /* Empty Cart State */
        #side-scroll .col-lg-12.text-center {
            padding: 40px 25px;
            background: #ffffff;
        }

        #side-scroll .col-lg-12.text-center img {
            max-width: 150px;
            margin: 0 auto 20px;
            opacity: 0.7;
        }

        #side-scroll .error_title {
            font-size: 20px !important;
            font-weight: 700 !important;
            color: #3a3b3d !important;
            margin-bottom: 10px !important;
        }

        #side-scroll .col-lg-12.text-center p {
            color: #3a3b3d !important;
        }

        #side-scroll .text-primary {
            color: #1a3760 !important;
            font-weight: 600 !important;
        }

        #side-scroll .btn-primary {
            background: #1a3760 !important;
            border-color: #1a3760 !important;
            color: #ffffff !important;
            padding: 10px 25px !important;
            border-radius: 6px !important;
            font-weight: 600 !important;
            margin-top: 15px !important;
        }

        /* =============================================
           MOBILE RESPONSIVE STYLES
           Optimized sizes for mobile devices
        ============================================= */
        @media (max-width: 768px) {
            /* Cart Sidebar - Full width on mobile */
            #rightMenu.w3-ch-sideBar {
                width: 100% !important;
                max-width: 100vw;
            }

            /* Header - Smaller padding on mobile - General styling */
            .rightMenu-scroll {
                padding: 15px 20px;
            }

            /* Left Menu - Ensure it's above fixed header on mobile */
            #leftMenu.w3-ch-sideBar-left {
                z-index: 999999999999999999999 !important;
                position: fixed !important;
                top: 55px !important;
                height: calc(100vh - 55px) !important;
            }

            /* Left menu keeps its own header layout on mobile (no cart padding) */
            #leftMenu .rightMenu-scroll {
                padding: 0 !important;
                z-index: 1 !important;
            }

            /* Ensure content area in leftMenu is scrollable on mobile */
            #leftMenu .right-ch-sideBar {
                max-height: calc(100vh - 55px - 64px);
                overflow-y: auto;
            }

            .cart_heading {
                font-size: 18px !important;
            }

            .rightMenu-scroll .w3-button {
                width: 38px !important;
                height: 38px !important;
                top: 14px !important;
                right: 12px !important;
                background: #dc3545 !important;
                border: 2px solid #ffffff !important;
                color: #ffffff !important;
                box-shadow: 0 2px 8px rgba(220, 53, 69, 0.4) !important;
            }

            .rightMenu-scroll .w3-button i {
                font-size: 18px;
                font-weight: bold;
            }

            /* Cart Items Container - Smaller padding */
            .cart_select_items {
                padding: 15px 18px;
            }

            /* Product Item - Smaller gap and padding */
            .product.cart_selected_single {
                gap: 12px;
                padding: 15px 0;
            }

            /* Product Image - Smaller on mobile */
            .cart_selected_single_thumb {
                width: 70px;
                height: 70px;
                border-radius: 6px;
            }

            /* Product Details - Smaller font sizes */
            .cart_selected_single_caption {
                gap: 6px;
            }

            .cart_selected_single_caption .product_title {
                font-size: 14px !important;
                line-height: 1.3 !important;
            }

            .cart_selected_single_caption .sku_preflix_first h6 {
                font-size: 11px !important;
            }

            .cart_selected_single_caption .custom-control-label {
                font-size: 11px !important;
                padding: 3px 8px !important;
            }

            .cart_selected_single_caption .numberof_item {
                font-size: 12px !important;
            }

            /* Price Section - Smaller on mobile */
            .cart_selected_single_caption .cart_price {
                margin-top: 6px;
                padding-top: 6px;
            }

            .cart_selected_single_caption .cart_price a {
                font-size: 14px !important;
                padding: 5px 6px !important;
            }

            .cart_selected_single_caption .cart_price span {
                font-size: 15px !important;
            }

            /* Subtotal - Smaller padding and font */
            .cart_subtotal {
                padding: 15px 18px;
            }

            .cart_subtotal h6 {
                font-size: 16px !important;
            }

            .cart_subtotal h6 .theme-cl {
                font-size: 18px !important;
            }

            /* Action Button - Smaller padding */
            .cart_action {
                padding: 15px 18px;
            }

            .cart_action .btn-go-cart {
                padding: 12px 18px !important;
                font-size: 14px !important;
            }

            /* Empty Cart State - Smaller on mobile */
            #side-scroll .col-lg-12.text-center {
                padding: 30px 18px;
            }

            #side-scroll .col-lg-12.text-center img {
                max-width: 120px;
                margin: 0 auto 15px;
            }

            #side-scroll .error_title {
                font-size: 18px !important;
            }

            #side-scroll .btn-primary {
                padding: 8px 20px !important;
                font-size: 14px !important;
            }
            .cart_price h6 span {
                margin-left: 3rem !important;
            }
        }

        /* Extra small devices */
        @media (max-width: 576px) {
            /* Even smaller padding - General styling */
            .rightMenu-scroll {
                padding: 12px 15px;
            }

            /* Left menu header manages its own padding via .flixel */
            #leftMenu .rightMenu-scroll {
                padding: 0 !important;
            }

            .cart_heading {
                font-size: 16px !important;
            }

            .cart_select_items {
                padding: 12px 15px;
            }

            .product.cart_selected_single {
                gap: 10px;
                padding: 12px 0;
            }

            /* Smaller image on very small screens */
            .cart_selected_single_thumb {
                width: 60px;
                height: 60px;
            }

            .cart_selected_single_caption .product_title {
                font-size: 13px !important;
            }

            .cart_subtotal {
                padding: 12px 15px;
            }

            .cart_subtotal h6 {
                font-size: 15px !important;
            }

            .cart_subtotal h6 .theme-cl {
                font-size: 17px !important;
            }

            .cart_action {
                padding: 12px 15px;
            }

            .cart_action .btn-go-cart {
                padding: 10px 15px !important;
                font-size: 13px !important;
            }
        }

        /* =============================================
           DELETE ITEM MODAL Z-INDEX FIX FOR MOBILE ONLY
           Ensure Bootstrap modal appears above cart-display on mobile
        ============================================= */
        @media (max-width: 767px) {
            
            /* Bootstrap modal container - z-index cao hơn backdrop */
            body #deleteItemModal.modal,
            body #deleteItemModal.modal.show,
            body #deleteItemModal.modal.fade.show {
                z-index: 999999999999999999999 !important;
            }
            
            /* Modal dialog và modal-dialog-centered - z-index cao nhất, nằm trên backdrop */
            body #deleteItemModal.modal .modal-dialog,
            body #deleteItemModal.modal .modal-dialog.modal-dialog-centered {
                z-index: 999999999999999999999 !important;
                position: relative !important;
            }
            
            /* Modal content - z-index cao */
            body #deleteItemModal.modal .modal-content {
                z-index: 999999999999999999999 !important;
                position: relative !important;
            }
            
            /* SweetAlert z-index cao để nằm trên cart-display */
            body .sweet-alert,
            body .sweet-overlay {
                z-index: 999999999999999999999 !important;
            }
            
            /* Ensure cart-display doesn't overlap modal - override inline style */
            body #cart-display,
            body #cart-display .w3-ch-sideBar,
            body #cart-display #rightMenu.w3-ch-sideBar {
                z-index: 99999999999999999997 !important;
            }
            
            /* Đảm bảo delete button có thể click được - z-index cao để nằm trên các element khác */
            body .delete-cart-item,
            body .delete-cart-item * {
                position: relative !important;
                z-index: 9999 !important;
            }
            
            body .cart_selected_single_caption .cart_price a.delete-cart-item,
            body .cart_selected_single_caption .cart_price a.delete-cart-item * {
                position: relative !important;
                z-index: 9999 !important;
            }
            
            /* Đảm bảo cart_price không bị đè */
            body .cart_selected_single_caption .cart_price {
                position: relative !important;
                z-index: 1 !important;
            }
            
            body .cart_selected_single_caption .cart_price h6 {
                position: relative !important;
                z-index: 1 !important;
            }
        }

        /* =============================================
           DELETE ITEM MODAL SCROLL PRESERVATION
           Prevent modal from changing scroll position
        ============================================= */
        /* Đảm bảo Bootstrap modal không làm thay đổi scroll position */
        #deleteItemModal.modal {
            overflow: hidden !important;
        }
        
        /* Ngăn body scroll khi modal hiển thị nhưng giữ nguyên scroll position */
        body.modal-open {
            overflow: hidden !important;
            padding-right: 0 !important;
        }
        
        /* Đảm bảo modal backdrop không trigger scroll */
        .modal-backdrop {
            position: fixed !important;
            top: 0 !important;
            left: 0 !important;
        }
        
        /* Đảm bảo modal dialog không trigger scroll */
        #deleteItemModal .modal-dialog {
            margin: 1.75rem auto !important;
            max-height: calc(100vh - 3.5rem) !important;
            overflow-y: auto !important;
        }

        /* =============================================
           FLOATING CART ICON - FIXED POSITION
           Hiển thị icon giỏ hàng fixed bên phải, cách top 1/3 khi scroll xuống
           Áp dụng cho tất cả các trang
        ============================================= */
        #floating-cart-icon {
            position: fixed;
            right: 20px;
            top: 33.33vh; /* 1/3 từ top */
            z-index: 9999;
            display: none;
            transition: opacity 0.3s ease, transform 0.3s ease;
        }

        #floating-cart-icon.show {
            display: block;
            opacity: 1;
            transform: scale(1);
        }

        #floating-cart-icon .floating-cart-btn {
            width: 60px;
            height: 60px;
            background: #1a3760;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
            cursor: pointer;
            transition: all 0.3s ease;
            position: relative;
            color: #fff;
            font-size: 24px;
        }

        #floating-cart-icon .floating-cart-btn:hover {
            background: #0f2540;
            transform: scale(1.1);
            box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
        }

        #floating-cart-icon .qut_counter {
            position: absolute;
            top: -5px;
            right: -5px;
            background: #dc3545;
            color: #fff;
            border-radius: 50%;
            width: 24px;
            height: 24px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
            font-weight: bold;
            border: 2px solid #fff;
        }

        /* Mobile adjustments */
        @media (max-width: 767px) {
            #floating-cart-icon {
                right: 15px;
            }

            #floating-cart-icon .floating-cart-btn {
                width: 50px;
                height: 50px;
                font-size: 20px;
            }

            #floating-cart-icon .qut_counter {
                width: 20px;
                height: 20px;
                font-size: 10px;
            }
        }
    


    /* Header layout fixes */
    .header .main_header {
        padding: 10px 15px;
    }

    .header .main_header .logo {
        max-height: 52px;
        width: auto;
        object-fit: contain;
        margin-left: 8px;
    }

    .header .main_header .row.align-items-center {
        align-items: center !important;
    }

    .header .main_header .header-actions {
        width: 100%;
    }

    /* ========================================
       Google Translate Widget - Desktop
       ======================================== */
    #google_element {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        min-height: 30px;
        /* Widget is driven programmatically via changeLanguage() and shifted
           off-screen (left: -9999px); collapse its width so it doesn't reserve
           invisible space that pushes the centered search box off balance */
        width: 0;
        flex-shrink: 0;
        position: relative;
        z-index: 1000000000 !important; /* Higher than header-fixed */
        pointer-events: auto !important;
    }

    /* Ensure Google Translate works even when header is fixed */
    .main_header.header-fixed #google_element {
        z-index: 1000000000 !important;
        position: relative !important;
    }

    #google_element .goog-te-gadget {
        display: block !important;
        visibility: visible !important;
        font-size: 12px;
        color: #fff;
        font-family: inherit;
        pointer-events: auto !important;
    }

    #google_element .goog-te-gadget-simple {
        display: block !important;
        visibility: visible !important;
        background-color: transparent;
        border: 1px solid rgba(255, 255, 255, 0.3);
        border-radius: 4px;
        padding: 4px 8px;
        cursor: pointer !important;
        pointer-events: auto !important;
        position: relative;
        z-index: 1000000001 !important;
    }

    #google_element .goog-te-gadget-simple:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }

    #google_element .goog-te-menu-value {
        color: #fff !important;
        pointer-events: auto !important;
    }

    #google_element .goog-te-menu-value span {
        color: #fff !important;
        pointer-events: auto !important;
    }

    /* ========================================
       DESKTOP HEADER LAYOUT (≥768px)
       Logo ← 35px → Search (centered) ← 35px → Cart
       ======================================== */
    @media (min-width: 768px) {
        .desktop-header-wrapper {
            padding: 0;
        }

        /* Ensure Google Translate is visible and clickable on desktop */
        #google_element {
            display: block !important;
            visibility: visible !important;
            opacity: 1 !important;
            position: relative !important;
            z-index: 1000000000 !important; /* Higher than header-fixed */
            pointer-events: auto !important;
        }

        /* When header is fixed, ensure Google Translate still works */
        .main_header.header-fixed #google_element {
            z-index: 1000000000 !important;
            position: relative !important;
        }

        #google_element .goog-te-gadget,
        #google_element .goog-te-gadget-simple {
            display: block !important;
            visibility: visible !important;
            opacity: 1 !important;
            pointer-events: auto !important;
            cursor: pointer !important;
        }

        #google_element .goog-te-gadget-simple {
            position: relative !important;
            z-index: 1000000001 !important;
        }

        /* Ensure Google Translate dropdown menu appears above all elements on desktop */
        .goog-te-menu-frame,
        .goog-te-menu,
        .goog-te-menu2,
        .goog-te-menu2-frame,
        div[id*="google_translate_element"],
        div[class*="goog-te-menu"],
        iframe[title*="Language"],
        iframe[title*="Translate"] {
            z-index: 2147483647 !important; /* Maximum z-index value */
            position: fixed !important;
        }

        .goog-te-menu-frame iframe,
        iframe[title*="Language"],
        iframe[title*="Translate"] {
            z-index: 2147483647 !important; /* Maximum z-index value */
        }

        /* Desktop Header Layout - 3:6:3 columns */
        .desktop-header-wrapper .row {
            align-items: center;
            margin: 0;
        }

        /* Desktop Header Row - Flexbox container for logo, search, cart */
        .desktop-header-row {
            display: flex;
            flex-wrap: nowrap;
            align-items: center;
            width: 100%;
            gap: 20px;
        }

        /* Left Section (col-3) - Google Translate + Logo */
        /* Equal flex with .desktop-cart-section so the search stays truly centered */
        .desktop-logo-section {
            flex: 1 1 0;
            justify-content: flex-start;
            display: flex;
            align-items: center;
            gap: 12px;
            height: 100%;
            pointer-events: auto;
        }

        .desktop-logo-section .desktop-lang-section {
            pointer-events: auto;
            display: flex;
            align-items: center;
        }

        .desktop-logo-section .desktop-lang-btn {
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .desktop-logo-section .nav-brand {
            pointer-events: auto;
            display: flex;
            align-items: center;
        }

        /* Center Section (col-6) - Search */
        .desktop-search-section {
            display: flex;
            align-items: center;
            justify-content: center;
            height: 100%;
            flex: 0 1 600px;
            min-width: 0;
        }

        .desktop-search-section .search_blocks {
            width: 100%;
            max-width: 600px;
        }

        /* On smaller laptops the fixed-width logo/translate block can't shrink;
           narrow the search a bit so it can still sit at the true center */
        @media (max-width: 1399px) {
            .desktop-search-section {
                flex-basis: 500px;
            }
        }

        .desktop-search-section .input-group {
            width: 100%;
        }

        /* Right Section (col-3) - Cart */
        .desktop-cart-section {
            display: flex;
            align-items: center;
            justify-content: flex-end;
            height: 100%;
            flex: 1 1 0;
        }

        .desktop-cart-section .shop_cart {
            display: flex;
            align-items: center;
        }

        .desktop-cart-section .single_shop_cart {
            display: flex;
            align-items: center;
        }
    }

    /* ========================================
       Custom Mobile Language Button
       ======================================== */
    .mobile-lang-btn {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.2);
        border: 1px solid rgba(255, 255, 255, 0.4);
        color: #fff;
        font-size: 18px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.2s ease;
        padding: 0;
        line-height: 1;
    }

    .mobile-lang-btn:hover,
    .mobile-lang-btn:focus {
        background: rgba(255, 255, 255, 0.3);
        outline: none;
    }

    .header-google-mobile {
        position: relative;
    }

    .mobile-lang-dropdown {
        position: absolute;
        top: 100%;
        left: 0;
        background: #fff;
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        min-width: 80px;
        z-index: 9999;
        margin-top: 8px;
        overflow: hidden;
    }

    .mobile-lang-dropdown a {
        display: block;
        padding: 10px 12px;
        color: #333;
        text-decoration: none;
        font-size: 14px;
        border-bottom: 1px solid #eee;
        transition: background 0.2s;
    }

    .mobile-lang-dropdown a:last-child {
        border-bottom: none;
    }

    .mobile-lang-dropdown a:hover {
        background: #f5f5f5;
    }

    /* ========================================
       Desktop Language Button
       ======================================== */
    .desktop-lang-btn {
        min-width: 36px;
        height: 36px;
        border-radius: 4px;
        border: 1px solid rgba(255, 255, 255, 0.3);
        color: red;
        font-size: 13px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.2s ease;
        padding: 0 8px;
        line-height: 1;
        white-space: nowrap;
    }

    .desktop-lang-btn:hover,
    .desktop-lang-btn:focus {
        background: rgba(255, 255, 255, 0.1);
        border-color: rgba(255, 255, 255, 0.5);
        outline: none;
    }

    .desktop-lang-btn .lang-text {
        padding-left: 5px;
        font-size: 13px;
    }

    .desktop-lang-section {
        position: relative;
    }

    .desktop-lang-dropdown {
        position: absolute;
        top: calc(100% + 8px);
        left: 0;
        background: #fff;
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        min-width: 100px;
        z-index: 99999 !important; /* Higher z-index to ensure it appears above everything */
        overflow: hidden;
        pointer-events: auto !important;
    }

    .desktop-lang-dropdown a {
        display: block;
        padding: 10px 12px;
        color: #333;
        text-decoration: none;
        font-size: 14px;
        border-bottom: 1px solid #eee;
        transition: background 0.2s;
    }

    .desktop-lang-dropdown a:last-child {
        border-bottom: none;
    }

    .desktop-lang-dropdown a:hover {
        background: #f5f5f5;
    }

    /* Google Translate banner (appears at top) */
    .goog-te-banner-frame.skiptranslate {
        display: none !important;
    }

    body {
        top: 0 !important;
    }

    /* Google Translate dropdown positioning - ensure it appears above everything */
    /* Google Translate creates iframe and appends to body, so we need very high z-index */
    .goog-te-menu-frame {
        max-width: 100% !important;
        z-index: 2147483647 !important; /* Maximum z-index value (2^31 - 1) */
        position: fixed !important;
        top: auto !important;
        left: auto !important;
    }

    /* Ensure Google Translate dropdown is clickable */
    .goog-te-menu-frame,
    .goog-te-menu-frame iframe {
        pointer-events: auto !important;
        z-index: 2147483647 !important; /* Maximum z-index value */
    }

    /* Google Translate dropdown menu and all related elements */
    .goog-te-menu,
    .goog-te-menu-frame,
    .goog-te-menu-value,
    .goog-te-menu2,
    .goog-te-menu2-frame,
    .goog-te-menu2-value,
    .goog-te-menu-frame iframe,
    .goog-te-menu-frame .goog-te-menu-value,
    div[id*="google_translate_element"],
    div[class*="goog-te-menu"],
    iframe[title*="Language"],
    iframe[title*="Translate"] {
        z-index: 2147483647 !important; /* Maximum z-index value */
        position: fixed !important;
    }

    /* Ensure body and html don't block dropdown */
    body,
    html {
        overflow-x: hidden !important;
    }

    /* Ensure header doesn't create stacking context that blocks dropdown */
    .main_header,
    .main_header.header-fixed,
    .header,
    .desktop-header-wrapper,
    .desktop-logo-section {
        overflow: visible !important;
        position: relative !important;
    }

    /* Desktop: Ensure dropdown appears correctly */
    @media (min-width: 768px) {
        .goog-te-menu-frame {
            z-index: 2147483647 !important; /* Maximum z-index value for desktop */
            position: fixed !important;
        }

        .goog-te-menu,
        .goog-te-menu-frame,
        .goog-te-menu-value,
        .goog-te-menu2,
        .goog-te-menu2-frame,
        .goog-te-menu2-value,
        .goog-te-menu-frame iframe,
        div[id*="google_translate_element"],
        div[class*="goog-te-menu"],
        iframe[title*="Language"],
        iframe[title*="Translate"] {
            z-index: 2147483647 !important; /* Maximum z-index value */
            position: fixed !important;
        }

        /* Prevent any overlay from blocking Google Translate */
        .desktop-header-wrapper,
        .desktop-logo-section {
            overflow: visible !important;
        }

        /* Ensure header-fixed doesn't block Google Translate */
        .main_header.header-fixed {
            position: relative; /* Keep fixed but allow children to have higher z-index */
        }

        .main_header.header-fixed .desktop-logo-section #google_element {
            z-index: 1000000000 !important;
            position: relative !important;
        }
    }

    /* Mobile: Keep mobile functionality intact */
    @media (max-width: 767px) {
        #google_element {
            display: none !important;
        }

        #google_element_mobile {
            position: absolute;
            left: -9999px;
            visibility: hidden;
        }
    }

    .search_blocks .input-group {
        height: 44px;
    }

    .search_blocks .form-control {
        height: 44px;
    }

    .search_blocks .search_btn {
        height: 44px;
    }

    Nav bar
    .header_nav {
        padding: 10px 0;
    }

    .header_nav .row {
        align-items: center;
    }

    Nav menu height alignment
    .navigation-landscape .nav-menu > li > a {
        height: 46px;
        line-height: 46px;
        padding: 0 18px;
        font-weight: 600;
    }

    .nav-menus-wrapper {
        align-items: center;
    }


    /* Tablet & mobile adjustments */
    @media (max-width: 992px) {
        .header_nav {
            padding: 6px 0;
        }

        .navigation-landscape .nav-menu > li > a {
            padding: 0 14px;
            height: 42px;
            line-height: 42px;
        }
    }

    /* ========================================
       Mobile Specific Styles
       ======================================== */
    @media (max-width: 767px) {
        .header .main_header {
            padding: 10px 0;
        }


        /* Logo optimization - fit in 60% width */
        .header .main_header .logo {
            max-height: 38px;
            max-width: 100%;
            width: auto;
            height: auto;
            display: block;
            object-fit: contain;
        }

        /* Icons styling - compact for 20% width */
        .header .main_header .shop_cart {
            display: flex;
            gap: 6px;
            align-items: center;
            justify-content: center;
        }

        .header .main_header .shop_cart .single_shop_cart {
            margin: 0 !important;
        }

        .header .main_header .shop_cart .cart_box {
            font-size: 20px;
            padding: 4px;
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            min-width: 24px;
            height: 32px;
        }

        .header .main_header .shop_cart .qut_counter {
            font-size: 8px;
            padding: 2px 4px;
            min-width: 16px;
            height: 16px;
            line-height: 12px;
            position: absolute;
            top: -2px;
            right: -2px;
            border-radius: 8px;
            font-weight: 600;
        }

        /* Hide cart text on mobile */
        .header .main_header .shop_cart .ss_cart_content {
            display: none !important;
        }

        /* Search collapse */
        .search_blocks .input-group,
        .search_blocks .form-control,
        .search_blocks .search_btn {
            height: 40px;
        }

        #myCategories {
            max-height: 400px;
        }
    }

    /* ========================================
       DETAIL PAGE MEGA MENU (Desktop Only)
       ======================================== */
    @media (min-width: 992px) {
        /* Header-2 Location - Left side container */
        .header-2-location {
            display: flex;
            align-items: center;
            justify-content: flex-start;
        }

        /* Category Menu Wrapper */
        .detail-category-menu-wrapper {
            position: relative;
            flex-shrink: 0;
        }


        /* Category Menu Button */
        .detail-category-menu-btn {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 10px 18px;
            background: #2776e5;
            color: #fff;
            text-decoration: none;
            font-weight: 600;
            font-size: 17px;
            border-radius: 4px;
            transition: all 0.3s ease;
            white-space: nowrap;
            height: 46px;
            line-height: 26px;
        }

        /* Home page category menu - hidden by default, shown when scrolling */
        /* Giữ nguyên vị trí ban đầu, chỉ thay đổi visibility */
        .home-category-menu {
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.3s ease, visibility 0.3s ease;
        }

        .home-category-menu.show-on-scroll {
            opacity: 1;
            visibility: visible;
        }

        .detail-category-menu-btn:hover {
            background: #0d47a1;
            color: #fff;
        }

        .detail-category-menu-btn i.ti-angle-down {
            font-size: 12px;
            transition: transform 0.3s ease;
        }

        .detail-category-menu-btn.active i.ti-angle-down {
            transform: rotate(180deg);
        }

        /* Mega Menu Container */
        .detail-category-mega-menu {
            display: none;
            position: absolute;
            top: calc(100% + 8px);
            left: 0;
            width: 100vw;
            max-width: 100vw;
            background: #fff;
            border: 1px solid #ddd;
            border-radius: 4px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
            z-index: 10000;
        }


        .detail-category-mega-menu.show {
            display: block;
        }

        /* Mega Menu Container Layout */
        .mega-menu-container {
            display: flex;
            max-height: 600px;
            overflow: hidden;
        }

        /* Left Sidebar - Categories */
        .mega-menu-sidebar {
            width: 280px;
            background: #f8f9fa;
            border-right: 1px solid #e0e0e0;
            overflow-y: auto;
            overflow-x: hidden;
            flex-shrink: 0;
        }

        .mega-menu-sidebar::-webkit-scrollbar {
            width: 6px;
        }

        .mega-menu-sidebar::-webkit-scrollbar-track {
            background: #f1f1f1;
        }

        .mega-menu-sidebar::-webkit-scrollbar-thumb {
            background: #888;
            border-radius: 3px;
        }

        .mega-menu-sidebar::-webkit-scrollbar-thumb:hover {
            background: #555;
        }

        #detail-category-list {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        #detail-category-list .category-item {
            border-bottom: 1px solid #e0e0e0;
        }

        #detail-category-list .category-item:last-child {
            border-bottom: none;
        }

        #detail-category-list .category-link {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 14px 16px;
            color: #333;
            text-decoration: none;
            font-size: 14px;
            font-weight: 500;
            transition: all 0.2s ease;
        }

        #detail-category-list .category-item:hover .category-link,
        #detail-category-list .category-item.active .category-link {
            background: #1a3760;
            color: #fff;
        }

        #detail-category-list .category-icon {
            width: 20px;
            height: 20px;
            object-fit: contain;
            flex-shrink: 0;
        }

        #detail-category-list .category-name {
            flex: 1;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        /* View All Item */
        #detail-category-list .view-all-item {
            background: #fff;
            border-top: 2px solid #1a3760;
            margin-top: 8px;
        }

        #detail-category-list .view-all-item .category-link {
            font-weight: 600;
            color: #1a3760;
            justify-content: center;
        }

        #detail-category-list .view-all-item:hover .category-link {
            background: #1a3760;
            color: #fff;
        }

        /* Right Content Panel - Subcategories */
        .mega-menu-content {
            flex: 1;
            overflow-y: auto;
            overflow-x: hidden;
            background: #fff;
        }

        .mega-menu-content::-webkit-scrollbar {
            width: 6px;
        }

        .mega-menu-content::-webkit-scrollbar-track {
            background: #f1f1f1;
        }

        .mega-menu-content::-webkit-scrollbar-thumb {
            background: #888;
            border-radius: 3px;
        }

        .mega-menu-content::-webkit-scrollbar-thumb:hover {
            background: #555;
        }

        .subcategory-panel {
            padding: 20px;
        }

        .subcategory-panel .empty-state {
            text-align: center;
            padding: 60px 20px;
            color: #999;
            font-size: 14px;
        }

        /* Subcategory Grid */
        .subcategory-grid {
            display: grid;
            grid-template-columns: repeat(5, 1fr);
            gap: 20px;
        }

        .subcategory-item {
            display: flex;
            flex-direction: column;
            padding-left: 15px;
            padding-right: 15px;
        }

        .subcategory-item-title {
            font-size: 15px;
            font-weight: 600;
            color: #1a3760;
            margin-bottom: 10px;
            padding-bottom: 8px;
            border-bottom: 2px solid #1a3760;
        }

        .subcategory-item-title a {
            color: #1a3760;
            text-decoration: none;
            transition: color 0.2s;
        }

        .subcategory-item-title a:hover {
            color: #0d47a1;
        }

        .innersubcategory-list {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        .innersubcategory-list li {
            margin-bottom: 6px;
            margin-left: 15px;
        }

        .innersubcategory-list li:last-child {
            margin-bottom: 0;
        }

        .innersubcategory-list a {
            display: block;
            padding: 6px 0;
            color: #666;
            text-decoration: none;
            font-size: 13px;
            transition: all 0.2s;
            font-weight: 600;
        }

        .innersubcategory-list a:hover {
            color: #1a3760;
            padding-left: 8px;
        }

        /* Responsive adjustments for mega menu */
        @media (max-width: 1400px) {
            .subcategory-grid {
                grid-template-columns: repeat(4, 1fr);
                gap: 18px;
            }
        }

        @media (max-width: 1200px) {
            .mega-menu-sidebar {
                width: 240px;
            }

            .subcategory-grid {
                grid-template-columns: repeat(3, 1fr);
                gap: 16px;
            }
        }

        @media (max-width: 992px) {
            .subcategory-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 14px;
            }
        }
    }

    /* Hide mega menu on tablet and mobile */
    @media (max-width: 991px) {
        .detail-category-menu-btn,
        .detail-category-mega-menu {
            display: none !important;
        }
    }



/* ========================================
   HOME CATEGORIES MENU (beside slider)
   DESKTOP ONLY - Menu có d-none d-lg-block
   ======================================== */

/* Container */
#banner_desktop .row {
    display: flex;
    align-items: stretch;
}

/* Menu column - CHIỀU CAO TỰ ĐỘNG theo nội dung */
#home-categories-col {
    padding: 0 !important;
    padding-right: 10px !important; /* Khoảng cách với slider */
    /* KHÔNG đặt height - JavaScript sẽ set */
}

/* Menu container */
.home-categories-menu {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    width: 100%;
    display: flex;
    flex-direction: column;
}

/* Header menu */
.home-categories-header {
    background: #1a3760;
    color: #fff;
    padding: 14px 15px;
    font-weight: 600;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

/* Menu list - scrollbar chỉ xuất hiện khi mở submenu */
#home-side-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin; /* Firefox */
    scrollbar-color: transparent transparent; /* Ẩn mặc định */
}

/* Hiện scrollbar khi hover hoặc scroll */
#home-side-menu:hover {
    scrollbar-color: rgba(0,0,0,0.2) transparent;
}

/* Custom scrollbar - NHỎ và ĐẸP (Chrome, Safari, Edge) */
#home-side-menu::-webkit-scrollbar {
    width: 4px;
}
#home-side-menu::-webkit-scrollbar-track {
    background: transparent;
}
#home-side-menu::-webkit-scrollbar-thumb {
    background: transparent;
    border-radius: 4px;
}
/* Hiện scrollbar khi hover */
#home-side-menu:hover::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.2);
}
#home-side-menu::-webkit-scrollbar-thumb:hover {
    background: rgba(0,0,0,0.35);
}

#home-side-menu > li {
    position: relative;
    border-bottom: 1px solid #f0f0f0;
}

#home-side-menu > li:last-child {
    border-bottom: none;
}

#home-side-menu > li > a {
    display: block;
    padding: 12px 15px;
    padding-right: 40px;
    color: #333;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#home-side-menu > li > a img {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    vertical-align: middle;
    object-fit: contain;
}

#home-side-menu > li:hover > a {
    background: #f0f7ff;
    color: #1a3760;
}

/* Arrow - CỐ ĐỊNH vị trí, không bị lệch khi mở submenu */
#home-side-menu > li .submenu-arrow {
    position: absolute;
    right: 12px;
    top: 12px; /* Bằng padding-top của <a> */
    height: 22px; /* Chiều cao cố định = line-height của text */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #1a3760;
    cursor: pointer;
    padding: 0 8px;
    z-index: 10;
    transition: transform 0.2s, color 0.2s;
}

#home-side-menu > li:hover .submenu-arrow {
    color: #0d47a1;
}

/* View All item - nổi bật */
#home-side-menu > li.view-all-item {
    background: #f8f9fa;
    border-top: 1px solid #e0e0e0;
}

#home-side-menu > li.view-all-item > a {
    color: #1a3760;
    font-weight: 600;
    text-align: center;
    padding-right: 15px;
}

#home-side-menu > li.view-all-item > a:hover {
    background: #1a3760;
    color: #fff;
}

/* Submenu Level 1 - ACCORDION style */
#home-side-menu .home-submenu {
    display: none;
    list-style: none;
    padding: 0;
    margin: 0;
    padding-left: 20px;
    background: #f8f9fa;
    border-left: 3px solid #1a3760;
}

/* Arrow rotation khi active - chỉ rotate, không lệch */
#home-side-menu > li.has-submenu.active > .submenu-arrow {
    transform: rotate(-90deg);
}

#home-side-menu .home-submenu > li {
    border-bottom: 1px dashed #e0e0e0;
    position: relative;
}

#home-side-menu .home-submenu > li:last-child {
    border-bottom: none;
}

#home-side-menu .home-submenu > li > a {
    display: block;
    padding: 10px 15px;
    padding-right: 35px;
    color: #555;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s;
    font-weight: 500;
}

#home-side-menu .home-submenu > li > a:hover {
    background: #e8f0fe;
    color: #1a3760;
}

#home-side-menu .home-submenu > li .submenu-arrow {
    position: absolute;
    right: 8px;
    top: 10px; /* Bằng padding-top của <a> */
    height: 20px; /* Chiều cao cố định */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #1a3760;
    cursor: pointer;
    padding: 0 5px;
    transition: transform 0.2s, color 0.2s;
}

#home-side-menu .home-submenu > li.has-submenu.active > .submenu-arrow {
    transform: rotate(-90deg);
}

/* Submenu Level 2 - ACCORDION style */
#home-side-menu .home-submenu-inner {
    display: none;
    list-style: none;
    padding: 0;
    margin: 0;
    padding-left: 15px;
    background: #f0f0f0;
    border-left: 2px solid #4a90d9;
}

#home-side-menu .home-submenu-inner > li {
    border-bottom: 1px dashed #ddd;
}

#home-side-menu .home-submenu-inner > li:last-child {
    border-bottom: none;
}

#home-side-menu .home-submenu-inner > li > a {
    display: block;
    padding: 8px 15px;
    color: #666;
    font-size: 12px;
    text-decoration: none;
}

#home-side-menu .home-submenu-inner > li > a:hover {
    background: #e8e8e8;
    color: #1a3760;
}

/* Slider column */
#banner_desktop .col-lg-9 {
    display: flex;
}

/* Slider - CHIỀU CAO SẼ ĐƯỢC SET BỞI JAVASCRIPT */
@media (min-width: 992px) {
    #banner_desktop .col-lg-9 {
        display: flex;
        padding: 0 !important;
        padding-left: 10px !important;
    }
    #banner_desktop .carousel {
        width: 100%;
        background: #f5f5f5; /* Nền khi ảnh không fill đầy */
    }
    #banner_desktop .carousel-slider img {
        width: 100%;
        object-fit: contain; /* Hiển thị đầy đủ ảnh, không bị cắt */
        display: block;
    }
}

/* Slider - sẽ được override bởi CSS phía dưới */
#banner_desktop .carousel {
    width: 100%;
}

.woo_product_thumb {
    width: 100% !important;
    aspect-ratio: 1 / 1;
    position: relative;
    overflow: hidden;
    padding: 0 !important;
    margin: 0 !important;
}
.woo_product_thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    margin: 0 !important;
    padding: 0 !important;
}
.product-box-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    margin: 0 !important;
    padding: 0 !important;
}

/* Đảm bảo khối product-home và ảnh full chiều rộng của card */
.product-home {
    width: 100%;
}
/* Non-mobile: thu hẹp gutter của cột Bootstrap (mặc định 15px) xuống 5px mỗi bên;
   !important để chắc chắn ghi đè .col-* của bootstrap.min.css */
@media (min-width: 768px) {
    .product-home {
        padding-left: 5px !important;
        padding-right: 5px !important;
    }
}
.product-home a {
    display: block;
    width: 100%;
    padding: 0 !important;
}
.product-home .woo_product_grid {
    width: 100%;
    padding: 0 !important;
}
.product-home .woo_product_thumb {
    width: 100% !important;
    max-width: 100%;
    align-self: stretch;
}
.product-home .product-box-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Carousel base styles (cho tất cả devices) */
#banner_desktop .carousel {
    width: 100%;
}
#banner_desktop .carousel-slider {
    position: relative;
    overflow: hidden;
    width: 100%;
}

/* Fix carousel height on mobile to prevent layout shift */
@media (max-width: 991px) {
    /* Full-bleed slider: remove the Bootstrap container/row/col side gutters */
    #banner_desktop {
        padding-left: 0;
        padding-right: 0;
    }

    #banner_desktop .row {
        margin-left: 0;
        margin-right: 0;
    }

    #banner_desktop .col-lg-9 {
        padding-left: 0;
        padding-right: 0;
    }

    #banner_desktop .carousel {
        position: relative;
        width: 100%;
    }

    /* Set fixed aspect ratio for carousel inner to prevent layout shift */
    #banner_desktop .carousel-inner {
        position: relative;
        width: 100%;
        aspect-ratio: 16 / 9;
        min-height: 200px;
        max-height: 400px;
    }

    /* Ensure only active carousel item is visible (Bootstrap default behavior) */
    #banner_desktop .carousel-item {
        display: none !important;
        width: 100%;
    }

    #banner_desktop .carousel-item.active {
        display: block !important;
        height: 100%;
    }

    #banner_desktop .carousel-slider {
        position: relative;
        width: 100%;
        height: 100%;
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    #banner_desktop .carousel-slider a {
        display: block;
        width: 100%;
        height: 100%;
    }

    /* Ensure images fill container without changing height */
    #banner_desktop .carousel-slider img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }
}

/* Product card responsive styles */
.woo_product_grid {
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow 0.3s ease;
    padding: 0 !important;
}

.woo_product_grid:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.woo_product_caption {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

/* Đảm bảo tất cả cards có cùng chiều cao */
.row[style*="display: flex"] {
    display: flex !important;
    flex-wrap: wrap;
}

.row[style*="display: flex"] > div {
    display: flex !important;
}

.row[style*="display: flex"] .woo_product_grid {
    width: 100%;
    display: flex;
    flex-direction: column;
}

/* Responsive: Đảm bảo col-6 trên mobile vẫn hoạt động */
@media (max-width: 576px) {
    .row[style*="display: flex"] > .col-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (min-width: 577px) and (max-width: 768px) {
    .row[style*="display: flex"] > .col-sm-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (min-width: 769px) {
    .row[style*="display: flex"] > .col-lg-4 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
}

@media (min-width: 1200px) {
    .row[style*="display: flex"] > .col-xl-3 {
        flex: 0 0 25%;
        max-width: 25%;
    }
}

.product-name-home {
    font-size: 16px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    color: #333 !important;
    margin-bottom: 6px !important;
    min-height: 45px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center !important;
}

.product-vendor-sku {
    font-size: 12px;
    color: #666;
    margin-bottom: 8px;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
    text-align: center;
}

.product-package {
    font-size: 12px;
    color: #0ABC76;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
}

.product-variations {
    display: flex;
    gap: 4px;
    margin-bottom: 10px;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    justify-content: center;
}

.product-variations::-webkit-scrollbar {
    display: none;
}

.product-variations span {
    font-size: 10px;
    padding: 2px 5px;
    background-color: #f5f5f5;
    border-radius: 3px;
    white-space: nowrap;
    flex-shrink: 0;
}

.product-price-home {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
}

.woo_btn_action {
    padding: 0 12px 12px;
    margin-top: auto;
}

.woo_btn_action .btn {
    width: 100%;
    padding: 4px 10px;
    font-size: 11px;
    height: auto;
    line-height: 1.4;
    min-height: 32px;
}

/* Responsive cho smartphone */
@media (max-width: 576px) {
    /* Đảm bảo row flex hoạt động tốt trên mobile */
    .row[style*="display: flex"] {
        display: flex !important;
        flex-wrap: wrap;
    }

    .row[style*="display: flex"] > div {
        display: flex !important;
        width: 100%;
    }

    .product-name-home {
        font-size: 13px !important;
        min-height: 32px;
        margin-bottom: 4px !important;
        line-height: 1.25 !important;
    }

    .product-vendor-sku {
        font-size: 10px;
        margin-bottom: 4px;
        line-height: 1.3;
    }

    .product-package {
        font-size: 11px;
        margin-bottom: 4px;
    }

    .product-price-home {
        font-size: 14px;
        margin-bottom: 0; /* sát nút mua trên mobile */
    }

    .product-variations span {
        font-size: 9px;
        padding: 2px 4px;
    }

    .product-variations {
        gap: 3px;
        margin-bottom: 6px;
    }

    .woo_btn_action {
        padding: 0 8px 8px;
        margin-top: 6px;
    }

    .woo_btn_action .btn {
        font-size: 10px;
        padding: 3px 8px;
        min-height: 26px;
    }

    .woo_product_thumb {
        width: 100%;
        aspect-ratio: 1 / 1;
        height: auto;
        justify-content: center;
        align-items: center;
    }

    .woo_product_caption {
        padding: 6px 8px 8px !important; /* rút ngắn khoảng cách trên mobile */
    }

    /* Carousel height - managed by JS on desktop */
}

/* Tablet */
@media (min-width: 577px) and (max-width: 768px) {
    /* Đảm bảo row flex hoạt động tốt trên tablet */
    .row[style*="display: flex"] {
        display: flex !important;
        flex-wrap: wrap;
    }

    .row[style*="display: flex"] > div {
        display: flex !important;
    }

    .product-name-home {
        font-size: 13px !important;
    }

    .woo_product_thumb {
        width: 100%;
        aspect-ratio: 1 / 1;
        height: auto;
    }

    .woo_btn_action .btn {
        font-size: 11px;
        padding: 4px 10px;
        min-height: 30px;
    }

    /* Carousel height - managed by JS on desktop */
}

@media (max-width: 992px) {
    /* Carousel height - managed by JS on desktop */
}

@media (min-width: 1280px) {
    #banner_desktop {
        margin-bottom: 5rem;
    }
    /* Bỏ height cố định - để flexbox stretch tự nhiên */
}



                            @media (min-width: 992px) {
                                #home-categories-col {
                                    height: ${menuHeight}px !important;
                                }
                                .home-categories-menu {
                                    height: 100% !important;
                                    overflow: hidden !important;
                                }
                                #banner_desktop .col-lg-9,
                                #banner_desktop .carousel,
                                #banner_desktop .carousel-inner,
                                #banner_desktop .carousel-item,
                                #banner_desktop .carousel-slider,
                                #banner_desktop .carousel-slider a {
                                    height: ${menuHeight}px !important;
                                }
                                #banner_desktop .carousel-slider img {
                                    height: ${menuHeight}px !important;
                                    width: 100% !important;
                                    object-fit: contain !important; /* Hiển thị đầy đủ, không cắt */
                                    background: #f5f5f5; /* Nền cho phần trống */
                                }
                            }
                        


        /* ========================================
           FLOATING CART ICON - FIXED POSITION
           Hiển thị icon giỏ hàng fixed bên phải, cách top 1/3 khi scroll xuống
        ======================================== */
        #floating-cart-icon {
            position: fixed;
            right: 20px;
            top: 33.33vh; /* 1/3 từ top */
            z-index: 9999;
            display: none;
            transition: opacity 0.3s ease, transform 0.3s ease;
        }

        #floating-cart-icon.show {
            display: block;
            opacity: 1;
            transform: scale(1);
        }

        #floating-cart-icon .floating-cart-btn {
            width: 60px;
            height: 60px;
            background: #1a3760;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
            cursor: pointer;
            transition: all 0.3s ease;
            position: relative;
            color: #fff;
            font-size: 24px;
        }

        #floating-cart-icon .floating-cart-btn:hover {
            background: #0f2540;
            transform: scale(1.1);
            box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
        }

        #floating-cart-icon .qut_counter {
            position: absolute;
            top: -5px;
            right: -5px;
            background: #dc3545;
            color: #fff;
            border-radius: 50%;
            width: 24px;
            height: 24px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
            font-weight: bold;
            border: 2px solid #fff;
        }

        /* Mobile adjustments */
        @media (max-width: 767px) {
            #floating-cart-icon {
                right: 15px;
            }

            #floating-cart-icon .floating-cart-btn {
                width: 50px;
                height: 50px;
                font-size: 20px;
            }

            #floating-cart-icon .qut_counter {
                width: 20px;
                height: 20px;
                font-size: 10px;
            }
        }
    


    /* ==================== Modal shell ==================== */
    .advanced-filter-modal {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 999999;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    @media (max-width: 767px) {
        .advanced-filter-modal {
            z-index: 9999999 !important;
        }
    }

    .advanced-filter-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(23, 50, 94, 0.55);
        z-index: 1;
    }

    .advanced-filter-content {
        position: relative;
        z-index: 2;
        background: #fff;
        border-radius: 12px;
        width: 90%;
        max-width: 1000px;
        max-height: 90vh;
        display: flex;
        flex-direction: column;
        box-shadow: 0 18px 50px rgba(23, 50, 94, 0.30);
    }

    .advanced-filter-header {
        padding: 16px 22px;
        border-bottom: 1px solid #e4e9f2;
        display: flex;
        align-items: center;
        gap: 12px;
        border-radius: 12px 12px 0 0;
        position: relative;
        z-index: 3;
    }

    .advanced-filter-header h4 {
        margin: 0;
        font-size: 19px;
        font-weight: 700;
        color: #1a3760;
    }

    .af-total-badge {
        min-width: 24px;
        height: 24px;
        padding: 0 7px;
        border-radius: 999px;
        background: #dc3a47;
        color: #fff;
        font-size: 12px;
        font-weight: 700;
        display: none;
        align-items: center;
        justify-content: center;
        font-variant-numeric: tabular-nums;
    }

    .af-total-badge.af-on {
        display: inline-flex;
    }

    .advanced-filter-close {
        margin-left: auto;
        background: none;
        border: none;
        color: #000;
        font-size: 22px;
        cursor: pointer;
        padding: 0;
        width: 36px;
        height: 36px;
        display: flex !important;
        align-items: center;
        justify-content: center;
        border-radius: 6px;
        transition: background 0.2s;
        position: relative;
        z-index: 10;
        flex-shrink: 0;
    }

    .advanced-filter-close:hover {
        background: #f0f3f9;
    }

    .advanced-filter-close i {
        display: block !important;
        font-size: 20px;
        line-height: 1;
        color: #000;
    }

    .advanced-filter-body {
        padding: 18px 22px;
        overflow-y: auto;
        flex: 1;
    }

    .advanced-filter-footer {
        padding: 14px 22px;
        border-top: 1px solid #e4e9f2;
        display: flex;
        justify-content: space-between;
        gap: 10px;
        background: #f6f8fb;
        border-radius: 0 0 12px 12px;
    }

    .advanced-filter-footer .btn {
        flex: 1;
        padding: 12px 20px;
        border-radius: 6px;
        font-weight: 700;
        cursor: pointer;
        border: none;
        transition: all 0.2s;
        font-variant-numeric: tabular-nums;
    }

    .advanced-filter-footer .btn-secondary {
        background: #6c757d;
        color: #fff;
    }

    .advanced-filter-footer .btn-secondary:hover {
        background: #5a6268;
    }

    .advanced-filter-footer .btn-primary {
        background: #007bff;
        color: #fff;
    }

    .advanced-filter-footer .btn-primary:hover {
        background: #0056b3;
    }

    /* ==================== Sections grid ==================== */
    .af-grid {
        display: grid;
        /* minmax(0,1fr): let tracks shrink below min-content so long option text can't overflow */
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 12px 16px;
    }

    .af-sec {
        border: 1px solid #edf0f6;
        border-radius: 10px;
        background: #fff;
    }

    .af-sec-full {
        grid-column: 1 / -1;
    }

    .af-sec-head {
        width: 100%;
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 11px 14px;
        background: transparent;
        border: 0;
        text-align: left;
        cursor: pointer;
    }

    .af-sec-title {
        font-size: 11.5px;
        font-weight: 700;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        color: #5a6478;
    }

    .af-sec-count {
        font-size: 11px;
        font-weight: 700;
        color: #1e6fd9;
        background: #e8f0fc;
        border-radius: 999px;
        padding: 1px 8px;
        font-variant-numeric: tabular-nums;
        display: none;
    }

    .af-sec-count.af-on {
        display: inline-block;
    }

    .af-scope-pill {
        font-size: 11px;
        font-weight: 600;
        color: #5a6478;
        background: #f4f6fb;
        border: 1px solid #dde3ee;
        border-radius: 999px;
        padding: 2px 10px;
        max-width: 46%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .af-scope-pill.af-active {
        color: #1e6fd9;
        background: #e8f0fc;
        border-color: transparent;
    }

    .af-chev {
        margin-left: auto;
        color: #8b93a7;
        transition: transform 0.2s;
        font-size: 12px;
    }

    .af-sec.af-closed .af-chev {
        transform: rotate(-90deg);
    }

    .af-sec-body {
        padding: 2px 14px 14px;
    }

    .af-sec.af-closed .af-sec-body {
        display: none;
    }

    /* ==================== Inputs ==================== */
    .af-field {
        width: 100%;
        border: 1px solid #dde3ee;
        border-radius: 7px;
        background: #fff;
        padding: 10px 12px;
        outline: none;
        font-size: 14px;
        color: #1c2333;
        height: auto;
    }

    .af-field:focus {
        border-color: #1e6fd9;
        box-shadow: 0 0 0 3px #e8f0fc;
    }

    .af-field::placeholder {
        color: #8b93a7;
    }

    .af-field:disabled {
        opacity: 0.45;
        background: #f6f8fb;
    }

    .af-search-row {
        position: relative;
    }

    .af-search-row .af-field {
        padding-left: 38px;
    }

    .af-search-ic {
        position: absolute;
        left: 13px;
        top: 50%;
        transform: translateY(-50%);
        color: #8b93a7;
        font-size: 14px;
    }

    .af-select-grid {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
    }

    select.af-field {
        -webkit-appearance: none;
        appearance: none;
        max-width: 100%;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        background-image: linear-gradient(45deg, transparent 50%, #8b93a7 50%), linear-gradient(135deg, #8b93a7 50%, transparent 50%);
        background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
        background-size: 5px 5px;
        background-repeat: no-repeat;
        padding-right: 34px;
    }

    /* ==================== Chips ==================== */
    .af-chips {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    .af-chip {
        display: inline-flex;
        align-items: center;
        gap: 7px;
        border: 1px solid #dde3ee;
        background: #f4f6fb;
        border-radius: 999px;
        padding: 6px 13px;
        font-size: 13.5px;
        font-weight: 500;
        color: #1c2333;
        cursor: pointer;
        user-select: none;
        transition: all 0.15s;
        margin: 0;
    }

    .af-chip:hover {
        border-color: #1e6fd9;
    }

    .af-chip input[type="checkbox"] {
        position: absolute;
        opacity: 0;
        width: 0;
        height: 0;
        pointer-events: none;
    }

    .af-chip.af-checked {
        background: #1a3760;
        border-color: #1a3760;
        color: #fff;
    }

    .af-chip small {
        color: inherit;
        opacity: 0.65;
        font-size: 12px;
    }

    .af-color-dot {
        width: 12px;
        height: 12px;
        border-radius: 50%;
        border: 1px solid rgba(0, 0, 0, 0.18);
        flex: none;
        display: inline-block;
    }

    .af-chip.af-checked .af-color-dot {
        border-color: rgba(255, 255, 255, 0.5);
    }

    /* ==================== Price ==================== */
    .af-price-custom {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-top: 12px;
    }

    .af-price-custom .af-field {
        width: 110px;
        text-align: right;
        font-variant-numeric: tabular-nums;
    }

    .af-price-sep {
        color: #8b93a7;
    }

    .af-unit {
        color: #5a6478;
        font-size: 13px;
    }

    /* ==================== Rozmiar ==================== */
    .af-size-selected {
        display: flex;
        flex-wrap: wrap;
        gap: 7px;
        margin-bottom: 9px;
    }

    .af-size-selected:empty {
        display: none;
    }

    .af-tag {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        background: #e8f0fc;
        color: #1e6fd9;
        border: 1px solid transparent;
        border-radius: 999px;
        padding: 4px 6px 4px 12px;
        font-size: 13px;
        font-weight: 600;
    }

    .af-tag button {
        border: 0;
        background: transparent;
        color: inherit;
        font-size: 14px;
        line-height: 1;
        width: 20px;
        height: 20px;
        border-radius: 50%;
        padding: 0;
        cursor: pointer;
    }

    .af-tag button:hover {
        background: rgba(30, 111, 217, 0.18);
    }

    .af-size-box {
        position: relative;
    }

    .af-size-list {
        position: absolute;
        z-index: 30;
        top: calc(100% + 4px);
        left: 0;
        right: 0;
        max-height: 210px;
        overflow-y: auto;
        background: #fff;
        border: 1px solid #dde3ee;
        border-radius: 8px;
        box-shadow: 0 10px 28px rgba(23, 50, 94, 0.16);
        display: none;
    }

    .af-size-list.af-open {
        display: block;
    }

    .af-size-list button {
        display: flex;
        width: 100%;
        justify-content: space-between;
        border: 0;
        background: transparent;
        padding: 9px 13px;
        text-align: left;
        cursor: pointer;
        font-size: 14px;
        color: #1c2333;
    }

    .af-size-list button:hover,
    .af-size-list button:focus {
        background: #e8f0fc;
    }

    .af-size-list .af-count {
        color: #8b93a7;
        font-size: 12.5px;
        font-variant-numeric: tabular-nums;
    }

    .af-size-hint {
        margin: 10px 0 7px;
        font-size: 11px;
        color: #8b93a7;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        font-weight: 700;
    }

    .af-empty-msg {
        padding: 11px 13px;
        color: #8b93a7;
        font-size: 13.5px;
    }

    /* ==================== Loading ==================== */
    .af-loading {
        display: flex;
        align-items: center;
        gap: 8px;
        color: #8b93a7;
        font-size: 13.5px;
        padding: 6px 0;
    }

    .af-spinner {
        display: inline-block;
        width: 15px;
        height: 15px;
        border: 2px solid #edf0f6;
        border-top: 2px solid #5a6478;
        border-radius: 50%;
        animation: afspin 1s linear infinite;
    }

    @keyframes  afspin {
        0% { transform: rotate(0deg); }
        100% { transform: rotate(360deg); }
    }

    /* ==================== Active filters bar (results page) ==================== */
    .af-active-bar {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 8px;
        margin: 0 0 18px;
    }

    .af-active-bar .af-tag {
        background: #fff;
        border: 1px solid #dde3ee;
        color: #1c2333;
        text-decoration: none;
    }

    .af-active-bar .af-tag b {
        color: #8b93a7;
        font-weight: 600;
        font-size: 12px;
        margin-right: 2px;
    }

    .af-active-bar .af-tag .af-x {
        color: #8b93a7;
        font-weight: 700;
    }

    .af-active-bar .af-tag:hover .af-x {
        color: #dc3a47;
    }

    .af-clear-all {
        color: #1e6fd9;
        font-weight: 600;
        font-size: 13px;
        text-decoration: underline;
        text-underline-offset: 3px;
    }

    .af-no-results {
        text-align: center;
        padding: 60px 20px;
        color: #5a6478;
    }

    .af-no-results h3 {
        color: #1a3760;
        font-size: 20px;
        margin-bottom: 10px;
    }

    /* ==================== Tablet ==================== */
    @media (min-width: 768px) and (max-width: 1024px) {
        .advanced-filter-content {
            max-width: 720px;
        }

        .af-grid {
            grid-template-columns: minmax(0, 1fr);
        }

        .af-select-grid {
            grid-template-columns: minmax(0, 1fr);
        }
    }

    /* ==================== Mobile: full-screen bottom sheet ==================== */
    @media (max-width: 767px) {
        .advanced-filter-content {
            width: 100%;
            max-width: 100%;
            height: 100%;
            max-height: 100%;
            border-radius: 0;
        }

        .advanced-filter-header {
            border-radius: 0;
            position: sticky;
            top: 0;
            background: #fff;
            z-index: 5;
        }

        .advanced-filter-footer {
            border-radius: 0;
            position: sticky;
            bottom: 0;
            flex-wrap: wrap;
            box-shadow: 0 -6px 18px rgba(23, 50, 94, 0.08);
        }

        .advanced-filter-footer .btn-primary {
            flex: 1 1 100%;
            order: 1;
            min-height: 48px;
        }

        .advanced-filter-footer .btn-secondary {
            flex: 1 1 100%;
            order: 2;
            min-height: 44px;
        }

        .advanced-filter-body {
            padding: 14px;
        }

        .af-grid {
            grid-template-columns: minmax(0, 1fr);
            gap: 10px;
        }

        .af-select-grid {
            grid-template-columns: minmax(0, 1fr);
        }

        /* Touch targets >= 44px, font 16px prevents iOS auto-zoom */
        .af-field {
            min-height: 46px;
            font-size: 16px;
        }

        .af-sec-head {
            min-height: 48px;
        }

        .af-chip {
            padding: 9px 15px;
            font-size: 14px;
            min-height: 38px;
        }

        .advanced-filter-close {
            width: 44px;
            height: 44px;
        }

        .af-size-list {
            max-height: 250px;
        }

        .af-price-custom {
            flex-wrap: wrap;
        }

        .af-price-custom .af-field {
            flex: 1;
            width: auto;
        }
    }
