/* === menu-core === */
@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@400;500;600;700;800;900&display=swap');
        :root {
            --primary:#1c2c21;
            --primary-soft:#283e2e;
            --accent:#bfa37a;
            --bg:#faf8f5;
            --border:#e9e3d9;
            --light:#f4efe6;
            --text:#202921;
            --card:#ffffff;
        }
        * { box-sizing:border-box; }
        html { scroll-behavior:smooth; }
        body {
            margin:0;
            font-family:'Quicksand',sans-serif;
            background:var(--bg);
            color:var(--text);
            -webkit-tap-highlight-color:transparent;
            padding-bottom:104px;
        }
        button, a, input, textarea { -webkit-tap-highlight-color:transparent; }
        button:disabled { cursor:not-allowed; }
        .hide-scroll { scrollbar-width:none; -ms-overflow-style:none; }
        .hide-scroll::-webkit-scrollbar { display:none; }
        .line-clamp-2 { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
        .safe-bottom { padding-bottom:max(12px, env(safe-area-inset-bottom)); }

        .glass-header {
            background:#ffffff;
            backdrop-filter:none;
            -webkit-backdrop-filter:none;
        }
        .product-card {
            transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
            content-visibility:auto;
            contain-intrinsic-size:360px;
        }
        .product-card:hover { transform:translateY(-3px); box-shadow:0 14px 34px rgba(28,44,33,.11); border-color:color-mix(in srgb, var(--accent) 55%, var(--border)); }
        .product-card:active { transform:scale(.985); }
        .product-picture { display:block; width:100%; height:100%; }
        .product-picture > img { display:block; width:100%; height:100%; }
        .product-image { transition:transform .35s ease; }
        .product-card:hover .product-image { transform:scale(1.035); }
        .category-btn { transition:all .18s ease; }
        .category-btn:active { transform:scale(.96); }

        .contact-dock {
            position:fixed;
            right:18px;
            top:50%;
            transform:translateY(-50%);
            z-index:35;
            display:flex;
            flex-direction:column;
            gap:10px;
        }
        .contact-bubble {
            width:48px;
            height:48px;
            border-radius:999px;
            display:flex;
            align-items:center;
            justify-content:center;
            border:3px solid white;
            box-shadow:0 10px 24px rgba(15,23,42,.18);
            transition:transform .18s ease, box-shadow .18s ease;
            color:white;
            font-weight:900;
            text-decoration:none;
        }
        .contact-bubble:hover { transform:translateX(-4px) scale(1.06); box-shadow:0 14px 30px rgba(15,23,42,.24); }
        .contact-zalo { background:#0068ff; }
        .contact-instagram { background:linear-gradient(135deg,#f9ce34,#ee2a7b 52%,#6228d7); }
        .contact-messenger { background:linear-gradient(135deg,#00b2ff,#006aff 50%,#a033ff); }
        .contact-tooltip {
            position:absolute;
            right:58px;
            background:#111827;
            color:white;
            font-size:10px;
            font-weight:800;
            padding:6px 9px;
            border-radius:9px;
            white-space:nowrap;
            opacity:0;
            pointer-events:none;
            transform:translateX(6px);
            transition:.18s ease;
        }
        .contact-bubble:hover .contact-tooltip { opacity:1; transform:translateX(0); }

        .mobile-contact-strip { display:none; }
        .cart-shell { align-items:stretch; justify-content:flex-end; padding:0; }
        .cart-panel {
            width:min(560px,100%);
            height:100%;
            max-height:none;
            border-radius:28px 0 0 28px;
            animation:slideDrawerIn .24s ease both;
        }
        @keyframes slideDrawerIn { from { transform:translateX(100%); opacity:.4; } to { transform:translateX(0); opacity:1; } }
        @keyframes sheetUp { from { transform:translateY(100%); opacity:.5; } to { transform:translateY(0); opacity:1; } }
        @keyframes toastIn { 0% { transform:translate(-50%,14px) scale(.94); opacity:0; } 100% { transform:translate(-50%,0) scale(1); opacity:1; } }
        @keyframes cartPulse { 0%,100% { transform:scale(1); } 50% { transform:scale(1.09); } }
        .cart-pulse { animation:cartPulse .35s ease; }

        #cart-toast {
            position:fixed;
            left:50%;
            bottom:106px;
            z-index:60;
            transform:translateX(-50%);
            background:#111827;
            color:white;
            border-radius:999px;
            padding:10px 14px;
            font-size:11px;
            font-weight:800;
            box-shadow:0 14px 30px rgba(15,23,42,.25);
            display:none;
            align-items:center;
            gap:8px;
            white-space:nowrap;
        }
        #cart-toast.show { display:flex; animation:toastIn .22s ease both; }

        .swal-contact-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; margin-top:14px; }
        .swal-contact-link { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:5px; border-radius:14px; padding:10px 4px; color:white !important; text-decoration:none !important; font-size:10px; font-weight:900; }
        .swal-contact-link i, .swal-contact-link .zalo-letter { font-size:20px; }

        /* --- PRODUCT DETAIL / IMAGE PREVIEW --- */
        .product-card { cursor:pointer; }
        .product-detail-modal {
            align-items:center;
            justify-content:center;
            padding:18px;
        }
        .product-detail-panel {
            width:min(940px, 100%);
            max-height:min(92vh, 860px);
            border-radius:28px;
            animation:productDetailIn .22s ease both;
        }
        @keyframes productDetailIn {
            from { transform:translateY(18px) scale(.975); opacity:0; }
            to { transform:translateY(0) scale(1); opacity:1; }
        }
        .product-detail-image-wrap {
            min-height:360px;
            background:var(--light);
        }
        .product-detail-image-wrap img {
            width:100%;
            height:100%;
            object-fit:cover;
            max-height:68vh;
            transition:transform .25s ease;
        }
        .product-detail-image-wrap:hover img { transform:scale(1.02); }
        .image-zoom-shell {
            align-items:center;
            justify-content:center;
            padding:18px;
            cursor:zoom-out;
        }
        .image-zoom-shell img {
            max-width:min(96vw, 1200px);
            max-height:92vh;
            object-fit:contain;
            border-radius:20px;
            box-shadow:0 24px 80px rgba(0,0,0,.42);
            animation:productDetailIn .18s ease both;
        }
        .detail-qty-button:active { transform:scale(.93); }

        /* --- MOBILE INLINE SMART FILTER + SAP RETAIL/BOX OPTIONS --- */
        .mobile-filter-bar { display:none; }
        .mobile-smart-filter {
            background:#ffffff;
            backdrop-filter:none;
            -webkit-backdrop-filter:none;
            overflow:hidden;
            transform-origin:top center;
            transition:none;
        }
        .mobile-filter-expanded,
        .mobile-filter-compact {
            transform-origin:top center;
            transition:none;
        }
        .mobile-filter-expanded {
            opacity:1;
            transform:translateY(0) scale(1);
            visibility:visible;
            pointer-events:auto;
        }
        .mobile-filter-compact {
            display:flex;
            opacity:0;
            transform:translateY(10px) scale(.96);
            visibility:visible;
            pointer-events:none;
            overflow:hidden;
        }
        .mobile-category-strip {
            display:flex; gap:7px; overflow-x:auto; padding-bottom:2px;
            scrollbar-width:none; -ms-overflow-style:none;
        }
        .mobile-category-strip::-webkit-scrollbar { display:none; }
        .mobile-compact-control {
            position:relative; width:43px; height:43px; min-width:43px; border-radius:14px;
            display:flex; flex-direction:column; align-items:center; justify-content:center; gap:2px;
            background:var(--light); border:1px solid var(--border); color:var(--primary);
            box-shadow:0 4px 12px rgba(15,23,42,.05);
        }
        .mobile-compact-control i { font-size:13px; }
        .mobile-compact-control span { font-size:7px; line-height:1; font-weight:900; }
        .mobile-compact-control.filter-active {
            background:var(--primary); color:white; border-color:var(--primary);
        }
        .mobile-compact-control.filter-active i { color:var(--accent); }
        .mobile-compact-control select {
            position:absolute; inset:0; width:100%; height:100%; opacity:0; cursor:pointer;
        }
        .mobile-compact-summary {
            min-width:0; flex:1; height:43px; border-radius:14px; padding:0 10px;
            display:flex; align-items:center; background:var(--light); border:1px solid var(--border);
            color:var(--primary); font-size:9px; font-weight:900; line-height:1.25;
            white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
        }
        .mobile-compact-search {
            display:none; flex:1; min-width:0; align-items:center; gap:7px;
        }
        .mobile-smart-filter.compact-search-open .mobile-compact-default { display:none; }
        .mobile-smart-filter.compact-search-open .mobile-compact-search { display:flex; }
        .mobile-filter-active-badge {
            position:absolute; right:-3px; top:-3px; min-width:17px; height:17px; padding:0 4px;
            border-radius:999px; display:none; align-items:center; justify-content:center;
            background:#f43f5e; color:white; border:2px solid white; font-size:8px; font-weight:900;
        }
        .mobile-filter-active-badge.show { display:flex; }
        .sap-mode-button.active { background:var(--primary); color:white; border-color:var(--primary); }
        .sap-mode-button:not(.active) { background:white; color:var(--primary); border-color:var(--border); }
        .sap-price-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px; }
        .sap-price-chip { border:1px solid var(--border); border-radius:10px; padding:6px 7px; background:var(--light); }

        @media (min-width:768px) {
            #floating-cart { bottom:calc(16px + env(safe-area-inset-bottom, 0px)); padding:10px 18px 10px 12px; }
        }
        @media (min-width:1280px) {
            .catalog-layout { grid-template-columns:260px minmax(0,1fr); align-items:start; }
            .desktop-filter-sidebar { display:block; position:sticky; top:92px; }
            .mobile-filter-bar { display:none; }
            #products-grid { grid-template-columns:repeat(4,minmax(0,1fr)); }
            #floating-cart { left:auto; right:82px; width:360px; bottom:22px; padding:10px 18px 10px 12px; }
        }
        @media (min-width:1536px) {
            #products-grid { grid-template-columns:repeat(5,minmax(0,1fr)); }
        }
        @media (max-width:1279px) {
            .desktop-filter-sidebar { display:none; }
            .mobile-filter-bar { display:block; }
        }
        @media (min-width:768px) and (max-width:1279px) {
            html:not(.zoey-filter-motion) #mobile-filter-anchor .mobile-filter-expanded {
                display:block !important;
                max-height:none !important;
                opacity:1 !important;
                transform:none !important;
                visibility:visible !important;
                pointer-events:auto !important;
            }
            html:not(.zoey-filter-motion) #mobile-filter-anchor .mobile-filter-compact { display:none !important; }
        }
        @media (max-width:767px) {
            body { padding-bottom:96px; }
            .contact-dock { display:none; }
            .mobile-contact-strip { display:flex; }
            .desktop-contact-row { display:none !important; }
            .hero-section { padding:11px 13px; border-radius:18px; }
            .hero-title { font-size:16px; line-height:1.15; }
            .hero-copy { font-size:9.5px; line-height:1.45; margin-top:6px !important; max-width:95%; }
            .mobile-contact-strip { margin-top:8px !important; gap:7px !important; }
            .mobile-contact-strip .contact-bubble { width:34px !important; height:34px !important; }
            .mobile-contact-strip > span { font-size:9px !important; }
            .sticky-tools { top:68px; border-radius:18px; padding:6px; }
            #mobile-filter-anchor {
                position:sticky;
                height:190px;
                background:#ffffff !important;
                backdrop-filter:none !important;
                -webkit-backdrop-filter:none !important;
                box-shadow:0 3px 12px rgba(15,23,42,.07) !important;
                contain:layout paint;
                isolation:isolate;
                transform:translateZ(0);
            }
            #mobile-filter-anchor .mobile-filter-expanded,
            #mobile-filter-anchor .mobile-filter-compact {
                position:absolute;
                left:6px;
                right:6px;
                top:6px;
                margin:0;
            }
            #mobile-filter-anchor .mobile-filter-expanded {
                visibility:visible;
                overflow:hidden;
            }
            #mobile-filter-anchor .mobile-filter-compact {
                max-height:none;
                visibility:visible;
            }
            #products-grid { gap:10px; }
            .product-card {
                border-radius:16px;
                box-shadow:none !important;
            }
            .product-card:active { transform:scale(.98); }
            .product-card .backdrop-blur,
            .product-detail-panel .backdrop-blur {
                backdrop-filter:none !important;
                -webkit-backdrop-filter:none !important;
            }
            .product-card .product-copy { padding:10px; }
            .product-card .product-detail { display:none; }
            .product-card .product-name { font-size:12px; min-height:34px; }
            .product-card .product-price { font-size:16px; line-height:1.05; }
            .product-card .product-unit { font-size:9px; display:block; }
            .product-card .sap-price-chip .price-value { font-size:13px; line-height:1.05; }
            .product-card .add-icon { width:34px; height:34px; border-radius:11px; }
            .cart-shell { align-items:flex-end; justify-content:center; }
            .cart-panel { width:100%; height:auto; max-height:94vh; border-radius:26px 26px 0 0; animation:sheetUp .24s ease both; }
            #floating-cart {
                left:10px;
                right:10px;
                width:auto;
                max-width:560px;
                margin:0 auto;
                bottom:calc(10px + env(safe-area-inset-bottom, 0px));
                padding:9px 16px 9px 10px;
                box-sizing:border-box;
            }
            #floating-cart-total {
                font-size:17.5px;
                line-height:1.1;
                white-space:nowrap;
            }
            #cart-toast { bottom:calc(82px + env(safe-area-inset-bottom, 0px)); max-width:calc(100vw - 24px); }
            .product-detail-modal { align-items:flex-end; padding:0; }
            .product-detail-panel {
                width:100%;
                max-height:96vh;
                border-radius:26px 26px 0 0;
                animation:sheetUp .24s ease both;
            }
            .product-detail-image-wrap { min-height:0; height:min(43vh, 390px); }
            .product-detail-image-wrap img { max-height:100%; }
        }
        @media (max-width:390px) {
            .brand-subtitle-mobile { display:none; }
            .category-btn { padding-left:13px !important; padding-right:13px !important; }
        }

        @media (prefers-reduced-motion: reduce) {
            .mobile-smart-filter,
            .mobile-filter-expanded,
            .mobile-filter-compact { transition:none !important; }
        }

        @media (hover:none) and (pointer:coarse) {
            .product-card:hover .product-image { transform:none; }
        }
    

        /* --- MOBILE CARD DENSITY + RESPONSIVE TYPE + DRAGGABLE PRODUCT SHEET --- */
        .product-attribute-grid {
            display:flex;
            flex-wrap:wrap;
            gap:6px;
        }
        .product-attribute-chip {
            min-width:0;
            display:flex;
            align-items:center;
            gap:5px;
            padding:5px 7px;
            border-radius:999px;
            background:#fff;
            border:1px solid var(--border);
            color:#64748b;
            font-size:9px;
            font-weight:900;
            line-height:1;
        }
        .product-attribute-chip span {
            min-width:0;
            overflow:hidden;
            text-overflow:ellipsis;
            white-space:nowrap;
        }
        .product-card-footer { margin-top:auto; padding-top:10px; }
        .single-price-block { display:flex; align-items:baseline; gap:5px; min-width:0; }
        .sap-price-label { font-size:8px; color:#94a3b8; font-weight:900; text-transform:uppercase; letter-spacing:.025em; }
        .sap-price-unit { font-size:8px; color:#94a3b8; font-weight:800; line-height:1.15; }
        .detail-sheet-handle { display:none; }
        .detail-scroll-area { overscroll-behavior-y:contain; -webkit-overflow-scrolling:touch; }

        @media (max-width:767px) {
            body { font-size:13px; line-height:1.45; }
            .brand-title-mobile { font-size:14px !important; }
            .hero-title { font-size:15px; }
            .hero-copy { font-size:10px; line-height:1.42; }
            .catalog-heading-row { flex-wrap:wrap; align-items:flex-start; gap:8px; }
            .catalog-heading-row > div:first-child { min-width:0; flex:1 1 150px; }
            .catalog-heading-row #category-title { font-size:15px; line-height:1.15; }
            .catalog-heading-row #catalog-status { font-size:9.5px; line-height:1.35; }
            .sort-control { min-width:0 !important; width:100%; }
            .sort-control select { font-size:11px !important; padding-top:9px !important; padding-bottom:9px !important; }

            #products-grid { gap:8px; }
            .product-card .product-copy { position:relative; padding:9px; }
            .product-card .product-code-name-wrap { padding-right:36px; }
            .product-card .product-code { font-size:7.8px; line-height:1.08; }
            .product-card .product-name { font-size:12px; line-height:1.2; min-height:29px; margin-top:3px; }
            .product-card .product-attribute-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); margin-top:7px; gap:4px; }
            .product-card .product-attribute-chip { padding:4px 5px; gap:4px; font-size:8.5px; border-radius:8px; }
            .product-card .product-attribute-chip:only-child { grid-column:1 / -1; }
            .product-card .product-attribute-chip i { font-size:8px; }
            .product-card-footer { display:block !important; padding-top:8px; }
            .product-card .single-price-block { gap:4px; }
            .product-card .product-price { font-size:14.5px; line-height:1; white-space:nowrap; }
            .product-card .product-unit { font-size:8.5px; line-height:1.15; }
            .product-card .sap-price-grid { gap:4px; }
            .product-card .sap-price-chip { min-width:0; border-radius:9px; padding:5px 4px; background:#fff; }
            .product-card .sap-price-label { font-size:7.5px; line-height:1; }
            .product-card .sap-price-chip .price-value { display:block; margin-top:3px; font-size:clamp(12px,3.45vw,14px); line-height:1; white-space:nowrap; letter-spacing:-.02em; }
            .product-card .sap-price-unit { display:block; margin-top:3px; font-size:7.5px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
            .product-card .add-icon {
                position:absolute;
                top:8px;
                right:8px;
                width:31px;
                height:31px;
                border-radius:10px;
                font-size:12px;
                box-shadow:none;
            }

            .product-detail-panel {
                will-change:transform;
                touch-action:pan-y;
                transform:translate3d(0,0,0);
            }
            .detail-sheet-handle {
                display:flex;
                position:absolute;
                left:50%;
                top:7px;
                transform:translateX(-50%);
                z-index:35;
                width:46px;
                height:20px;
                border-radius:999px;
                background:rgba(255,255,255,.92);
                align-items:center;
                justify-content:center;
                pointer-events:none;
                box-shadow:0 2px 8px rgba(15,23,42,.08);
            }
            .detail-sheet-handle span { width:25px; height:4px; border-radius:999px; background:#cbd5e1; }
            .product-detail-panel > button[aria-label="Đóng chi tiết sản phẩm"] { width:38px; height:38px; top:8px; right:9px; }
            .detail-scroll-area { max-height:96vh !important; }
            .product-detail-image-wrap { height:min(38vh,330px); }
            #detail-product-name { font-size:18px !important; line-height:1.18; }
            #detail-product-description { font-size:11px !important; line-height:1.48; }
            #detail-product-tags { gap:5px; margin-top:10px !important; }
            #detail-product-tags > span { font-size:9px !important; padding:6px 8px !important; gap:5px !important; }
            #detail-sap-mode-wrap { margin-top:12px !important; padding:7px !important; }
            #detail-sap-mode-wrap > div:first-child { font-size:9px !important; padding:2px 4px 6px !important; }
            .sap-mode-button { padding:9px 8px !important; min-width:0; }
            .sap-mode-button > span:first-child { font-size:11px !important; line-height:1.15; }
            .sap-mode-button > span:last-child { font-size:10.5px !important; line-height:1.2; margin-top:4px !important; }
            .detail-price-summary { margin-top:12px !important; padding:11px !important; display:grid !important; grid-template-columns:minmax(0,1.35fr) minmax(0,.65fr); align-items:end; gap:8px; }
            .detail-price-summary .detail-summary-label { font-size:9px !important; }
            #detail-product-price { font-size:20px !important; line-height:1.05; }
            #detail-product-unit { font-size:9px !important; }
            #detail-product-available { font-size:11px !important; }
            .product-detail-panel .detail-content-column { padding:16px 14px 14px !important; min-height:0 !important; }
            .product-detail-panel .detail-quantity-title { font-size:11px !important; }
            #detail-add-cart-btn { padding-top:13px !important; padding-bottom:13px !important; font-size:12px !important; }
        }

        @media (max-width:365px) {
            .product-card .product-copy { padding:8px; }
            .product-card .product-name { font-size:11.6px; }
            .product-card .product-price { font-size:14px; }
            .product-card .sap-price-chip .price-value { font-size:10.5px; }
            .product-card .sap-price-label,
            .product-card .sap-price-unit { font-size:7px; }
        }

        /* --- 2026-06-27: RESTORE DESKTOP + MOBILE CARD/FILTER FIX --- */
        .product-attribute-mobile { display:none; }
        .currency-symbol { display:inline-block; font-size:.74em; line-height:1; white-space:nowrap; margin-left:.07em; text-decoration:underline; text-decoration-thickness:1.2px; text-underline-offset:2px; vertical-align:baseline; transform:translateY(-0.02em); }

        @media (min-width:768px) {
            /* Desktop/tablet keep the original catalog geometry. */
            .catalog-layout > section { min-width:0; }
            .product-attribute-desktop { display:flex; }
        }

        @media (max-width:767px) {
            /* Stable sticky filter: the wrapper keeps the layout space while both states morph inside it. */
            #mobile-filter-anchor {
                position:sticky !important;
                top:68px !important;
                overflow:hidden !important;
                min-height:55px;
                height:178px;
                padding:6px !important;
                margin-bottom:10px !important;
                background:#fff !important;
                border:1px solid var(--border) !important;
                border-radius:16px !important;
                box-shadow:0 4px 14px rgba(15,23,42,.08) !important;
                contain:none !important;
                isolation:isolate;
                z-index:35 !important;
                will-change:height;
            }
            #mobile-filter-anchor .mobile-filter-expanded,
            #mobile-filter-anchor .mobile-filter-compact {
                position:absolute !important;
                left:6px !important;
                right:6px !important;
                top:6px !important;
                width:auto !important;
                margin:0 !important;
                will-change:opacity,transform;
                backface-visibility:hidden;
                transform-origin:top center;
            }
            #mobile-filter-anchor .mobile-filter-expanded { z-index:1; }
            #mobile-filter-anchor .mobile-filter-compact { z-index:2; }
            #mobile-filter-anchor .mobile-filter-expanded .grid.grid-cols-2 { gap:6px !important; }
            #mobile-filter-anchor input,
            #mobile-filter-anchor select { min-height:40px; font-size:12px !important; }

            /* Card structure inspired by the supplied sketch, but optimized for real two-column screens. */
            #products-grid { gap:9px !important; align-items:stretch; }
            .product-card { border-radius:18px !important; overflow:hidden; }
            .product-card .product-copy { padding:10px 9px 9px !important; min-height:0; }
            .product-card .product-code-name-wrap { padding-right:42px !important; }
            .product-card .product-code { font-size:7.8px !important; line-height:1.05 !important; }
            .product-card .product-name {
                font-size:12.1px !important;
                line-height:1.18 !important;
                min-height:31px !important;
                margin-top:3px !important;
                -webkit-line-clamp:2;
            }
            .product-card .product-detail { display:none !important; }
            .product-attribute-desktop { display:none !important; }
            .product-attribute-mobile { display:flex; min-width:0; }
            .product-attribute-mobile-chip {
                display:block;
                max-width:100%;
                padding:4px 8px;
                border:1px solid var(--border);
                border-radius:999px;
                background:#fff;
                color:var(--primary);
                font-size:7.8px;
                font-weight:900;
                line-height:1.05;
                white-space:nowrap;
                overflow:hidden;
                text-overflow:ellipsis;
            }
            .product-card-footer { display:block !important; padding-top:10px !important; margin-top:auto; }
            .product-card .add-icon {
                position:absolute !important;
                top:10px !important;
                right:9px !important;
                width:36px !important;
                height:36px !important;
                min-height:36px !important;
                border-radius:11px !important;
                font-size:14px !important;
                box-shadow:none !important;
            }
            .product-card .single-price-block {
                display:flex !important;
                align-items:baseline !important;
                gap:5px !important;
                min-width:0;
                padding-top:1px;
            }
            .product-card .product-price {
                font-size:clamp(14px,4.6vw,17px) !important;
                line-height:.98 !important;
                letter-spacing:-.045em;
                white-space:nowrap;
            }
            .product-card .product-unit {
                display:inline !important;
                font-size:9px !important;
                line-height:1 !important;
                white-space:nowrap;
            }
            .product-card .sap-price-grid {
                display:grid !important;
                grid-template-columns:repeat(2,minmax(0,1fr)) !important;
                gap:6px !important;
                width:100%;
            }
            .product-card .sap-price-chip {
                min-width:0;
                padding:7px 6px 6px !important;
                border:1px solid var(--border) !important;
                border-radius:11px !important;
                background:#fff !important;
            }
            .product-card .sap-price-label {
                font-size:8px !important;
                line-height:1 !important;
                letter-spacing:0 !important;
                text-transform:none !important;
                color:#64748b !important;
            }
            .product-card .sap-price-chip .price-value {
                display:block;
                margin-top:4px !important;
                font-size:clamp(12.5px,3.55vw,15px) !important;
                line-height:1 !important;
                letter-spacing:-.035em !important;
                white-space:nowrap;
                overflow:visible;
            }
            .product-card .sap-price-unit {
                display:block;
                margin-top:4px !important;
                font-size:7.5px !important;
                line-height:1.05 !important;
                white-space:nowrap;
                overflow:hidden;
                text-overflow:ellipsis;
                color:#64748b !important;
            }
            #floating-cart-icon {
                width:38px !important;
                height:38px !important;
                flex:0 0 auto;
                background:#fff !important;
                color:var(--primary) !important;
                border-color:rgba(255,255,255,.92) !important;
                box-shadow:0 3px 10px rgba(15,23,42,.18) !important;
            }
            #floating-cart-icon i { color:var(--primary) !important; }
        }

        @media (max-width:365px) {
            .product-card .product-name { font-size:11.8px !important; }
            .product-card .sap-price-chip { padding-left:4px !important; padding-right:4px !important; }
            .product-card .sap-price-chip .price-value { font-size:11.5px !important; }
        }


        /* --- 2026-06-28: UNIFIED PRODUCT CARD ON TABLET / DESKTOP --- */
        @media (min-width:768px) {
            /* Only the product-card content is unified; catalog/sidebar geometry stays unchanged. */
            .product-card {
                border-radius:18px !important;
                overflow:hidden;
            }
            .product-card .product-copy {
                position:relative;
                padding:10px 9px 9px !important;
                min-height:0;
            }
            .product-card .product-code-name-wrap { padding-right:42px !important; }
            .product-card .product-code {
                font-size:7.8px !important;
                line-height:1.05 !important;
            }
            .product-card .product-name {
                font-size:12.3px !important;
                line-height:1.18 !important;
                min-height:29px !important;
                margin-top:3px !important;
                -webkit-line-clamp:2;
            }
            .product-card .product-detail { display:none !important; }
            .product-attribute-desktop { display:none !important; }
            .product-attribute-mobile {
                display:flex !important;
                min-width:0;
                margin-top:7px !important;
            }
            .product-attribute-mobile-chip {
                display:block;
                max-width:100%;
                padding:4px 8px;
                border:1px solid var(--border);
                border-radius:999px;
                background:#fff;
                color:var(--primary);
                font-size:7.8px;
                font-weight:900;
                line-height:1.05;
                white-space:nowrap;
                overflow:hidden;
                text-overflow:ellipsis;
            }
            .product-card-footer {
                display:block !important;
                padding-top:10px !important;
                margin-top:auto;
            }
            .product-card .add-icon {
                position:absolute !important;
                top:10px !important;
                right:9px !important;
                width:36px !important;
                height:36px !important;
                min-height:36px !important;
                border-radius:11px !important;
                font-size:14px !important;
                box-shadow:none !important;
            }
            .product-card .single-price-block {
                display:flex !important;
                align-items:baseline !important;
                gap:5px !important;
                min-width:0;
                padding-top:1px;
            }
            .product-card .product-price {
                font-size:clamp(15.5px,1.2vw,18px) !important;
                line-height:.98 !important;
                letter-spacing:-.035em;
                white-space:nowrap;
            }
            .product-card .product-unit {
                display:inline !important;
                font-size:9px !important;
                line-height:1 !important;
                white-space:nowrap;
            }
            .product-card .sap-price-grid {
                display:grid !important;
                grid-template-columns:repeat(2,minmax(0,1fr)) !important;
                gap:6px !important;
                width:100%;
            }
            .product-card .sap-price-chip {
                min-width:0;
                padding:7px 6px 6px !important;
                border:1px solid var(--border) !important;
                border-radius:11px !important;
                background:#fff !important;
            }
            .product-card .sap-price-label {
                font-size:8px !important;
                line-height:1 !important;
                letter-spacing:0 !important;
                text-transform:none !important;
                color:#64748b !important;
            }
            .product-card .sap-price-chip .price-value {
                display:block;
                margin-top:4px !important;
                font-size:clamp(13px,1.02vw,15px) !important;
                line-height:1 !important;
                letter-spacing:-.025em !important;
                white-space:nowrap;
                overflow:visible;
            }
            .product-card .sap-price-unit {
                display:block;
                margin-top:4px !important;
                font-size:7.5px !important;
                line-height:1.05 !important;
                white-space:nowrap;
                overflow:hidden;
                text-overflow:ellipsis;
                color:#64748b !important;
            }
        }


    

        /* === 2026-06-28 FINAL CARD FLOW + WIDE DESKTOP === */
        /* Use the available desktop width instead of keeping a narrow centered 1500px canvas. */
        @media (min-width:1280px) {
            header > div,
            main {
                width:calc(100% - 24px) !important;
                max-width:none !important;
                margin-left:auto !important;
                margin-right:auto !important;
            }
            main { padding-left:0 !important; padding-right:0 !important; }
            .catalog-layout {
                grid-template-columns:248px minmax(0,1fr) !important;
                gap:18px !important;
            }
            #products-grid {
                grid-template-columns:repeat(5,minmax(0,1fr)) !important;
                gap:14px !important;
                align-items:start !important;
            }
        }
        @media (min-width:1500px) {
            #products-grid { grid-template-columns:repeat(6,minmax(0,1fr)) !important; }
        }

        /* The old card reserved 42px for a cart icon beside the title. The icon is now on the image. */
        .product-card .product-code-name-wrap {
            padding-right:0 !important;
            min-width:0 !important;
        }
        .product-card .product-code {
            font-size:7.5px !important;
            line-height:1.05 !important;
            letter-spacing:.035em !important;
        }
        .product-card .product-name {
            min-height:0 !important;
            height:auto !important;
            margin-top:3px !important;
            font-size:12px !important;
            line-height:1.2 !important;
            overflow-wrap:anywhere;
        }
        .product-card .product-meta-wrap {
            margin-top:6px !important;
            min-width:0;
        }
        .product-card .product-meta-chip {
            max-width:100%;
            padding:3px 7px !important;
            gap:4px !important;
            font-size:7.5px !important;
            line-height:1.05 !important;
            color:#94a3b8 !important;
        }
        .product-card .product-meta-chip i {
            font-size:7px !important;
        }
        .product-card .product-meta-chip span {
            overflow:hidden;
            text-overflow:ellipsis;
            white-space:nowrap;
        }

        /* Let one-line names pull the color/tone chip upward; two-line names naturally push it down. */
        .product-card .product-copy { justify-content:flex-start !important; }
        .product-card .product-card-footer {
            margin-top:10px !important;
            padding-top:0 !important;
        }

        /* Lighter secondary copy in both price boxes, matching the rest of the card. */
        .product-card .sap-price-label,
        .product-card .sap-price-unit,
        .product-card .product-unit {
            color:#94a3b8 !important;
        }

        /* Only the small currency letter is underlined. The number itself never is. */
        .product-card .product-price,
        .product-card .sap-price-chip .price-value {
            text-decoration:none !important;
        }
        .currency-symbol {
            display:inline-block !important;
            font-size:.72em !important;
            line-height:1 !important;
            margin-left:.06em !important;
            text-decoration:underline !important;
            text-decoration-thickness:1.1px !important;
            text-underline-offset:2px !important;
            vertical-align:baseline !important;
        }

        /* Slightly larger prices in the two wax-flower boxes, with safe fit. */
        .product-card .sap-price-chip {
            min-width:0 !important;
            overflow:hidden !important;
        }
        .product-card .sap-price-chip .price-value {
            font-size:clamp(13px,1.02vw,15.5px) !important;
            white-space:nowrap !important;
            letter-spacing:-.035em !important;
        }

        @media (max-width:767px) {
            .product-card .product-code { font-size:7.2px !important; }
            .product-card .product-name {
                font-size:11.6px !important;
                line-height:1.18 !important;
                min-height:0 !important;
            }
            .product-card .product-meta-wrap { margin-top:5px !important; }
            .product-card .product-meta-chip {
                font-size:7.2px !important;
                padding:3px 6px !important;
            }
            .product-card .product-price {
                font-size:clamp(13px,4.25vw,16px) !important;
            }
            .product-card .sap-price-chip .price-value {
                font-size:clamp(12.5px,3.55vw,15px) !important;
            }
        }


        /* ===== Desktop card layout updated to follow the mobile card visual rhythm ===== */
        @media (min-width:1280px) {
            main {
                max-width:min(1920px, calc(100vw - 28px)) !important;
                padding-left:16px !important;
                padding-right:16px !important;
            }
            .catalog-layout {
                grid-template-columns:236px minmax(0,1fr) !important;
                gap:16px !important;
                align-items:start !important;
            }
            .desktop-filter-sidebar {
                width:236px !important;
            }
            .hero-section { border-radius:28px !important; }
            #products-grid {
                grid-template-columns:repeat(5, minmax(0,1fr)) !important;
                gap:14px !important;
            }
            .product-card {
                border-radius:20px !important;
            }
            .product-card .product-copy {
                padding:10px 10px 9px !important;
                min-height:0 !important;
            }
            .product-card .product-code-name-wrap {
                padding-right:0 !important;
            }
            .product-card .product-code {
                font-size:8px !important;
                line-height:1.05 !important;
                margin-bottom:3px !important;
                letter-spacing:.01em !important;
            }
            .product-card .product-name {
                font-size:13px !important;
                line-height:1.18 !important;
                min-height:0 !important;
                margin-top:0 !important;
                display:-webkit-box !important;
                -webkit-line-clamp:2 !important;
                -webkit-box-orient:vertical !important;
                overflow:hidden !important;
                text-wrap:balance;
            }
            .product-card .product-detail {
                display:none !important;
            }
            .product-card .product-meta-wrap {
                margin-top:6px !important;
                display:flex !important;
                flex-wrap:wrap !important;
                gap:5px !important;
            }
            .product-card .product-meta-chip {
                font-size:8px !important;
                line-height:1 !important;
                padding:4px 7px !important;
                gap:4px !important;
                border-radius:999px !important;
            }
            .product-card .product-meta-chip i {
                font-size:7.5px !important;
            }
            .product-card-footer {
                padding-top:9px !important;
                margin-top:auto !important;
            }
            .product-card .single-price-block {
                gap:3px !important;
                align-items:flex-start !important;
            }
            .product-card .product-price {
                font-size:clamp(14px, 1.05vw, 18px) !important;
                line-height:1.02 !important;
                letter-spacing:-0.02em !important;
            }
            .product-card .product-unit,
            .product-card .sap-price-label,
            .product-card .sap-price-unit {
                color:#94a3b8 !important;
            }
            .product-card .product-unit {
                font-size:8px !important;
                line-height:1.1 !important;
            }
            .product-card .sap-price-grid {
                gap:6px !important;
            }
            .product-card .sap-price-chip {
                min-width:0 !important;
                padding:6px 7px !important;
                border-radius:10px !important;
                background:#fff !important;
                border:1px solid #f2bfd0 !important;
            }
            .product-card .sap-price-label,
            .product-card .sap-price-unit {
                font-size:7.5px !important;
                line-height:1.08 !important;
            }
            .product-card .sap-price-chip .price-value {
                font-size:clamp(12.5px, 0.95vw, 16px) !important;
                line-height:1.02 !important;
                margin-top:3px !important;
                letter-spacing:-0.02em !important;
            }
            .card-image-action {
                width:34px !important;
                height:34px !important;
                right:8px !important;
                bottom:8px !important;
                border-radius:11px !important;
            }
        }
        @media (min-width:1440px) {
            #products-grid {
                grid-template-columns:repeat(6, minmax(0,1fr)) !important;
            }
        }
        @media (min-width:1800px) {
            main {
                max-width:min(2080px, calc(100vw - 32px)) !important;
            }
            #products-grid {
                grid-template-columns:repeat(6, minmax(0,1fr)) !important;
            }
        }

    

        /* ===== Fine-tune per latest feedback: smaller code/chip, better currency symbol, less eager name wrapping ===== */
        .currency-symbol {
            position: relative !important;
            top: -0.10em !important;
            font-size: .68em !important;
            line-height: 1 !important;
            text-decoration-thickness: 1px !important;
            text-underline-offset: 1px !important;
        }
        .product-card .product-name {
            overflow-wrap: normal !important;
            word-break: normal !important;
            hyphens: none !important;
            text-wrap: pretty !important;
        }
        @media (max-width:767px) {
            .product-card .product-code {
                font-size: 6.8px !important;
                letter-spacing: .015em !important;
            }
            .product-card .product-name {
                font-size: 11.3px !important;
                line-height: 1.17 !important;
            }
            .product-card .product-meta-chip {
                font-size: 6.9px !important;
                padding: 2.5px 6px !important;
                gap: 3px !important;
            }
            .product-card .product-meta-chip i {
                font-size: 6.7px !important;
            }
        }
        @media (min-width:1280px) {
            .product-card .product-code {
                font-size: 7px !important;
                line-height: 1.02 !important;
                letter-spacing: .01em !important;
                margin-bottom: 2px !important;
            }
            .product-card .product-name {
                font-size: 12.4px !important;
                line-height: 1.16 !important;
                text-wrap: pretty !important;
                -webkit-line-clamp: 2 !important;
            }
            .product-card .product-meta-wrap {
                margin-top: 5px !important;
                gap: 4px !important;
            }
            .product-card .product-meta-chip {
                font-size: 7px !important;
                line-height: 1 !important;
                padding: 3px 6px !important;
                gap: 3px !important;
            }
            .product-card .product-meta-chip i {
                font-size: 6.8px !important;
            }
            .product-card .product-price {
                font-size: clamp(14.8px, 1.05vw, 18px) !important;
            }
            .product-card .sap-price-chip .price-value {
                font-size: clamp(13.2px, 0.96vw, 16.2px) !important;
            }
        }

    

        /* ===== v3 fixes: keep /đơn vị under price and slightly enlarge attribute chip ===== */
        .product-card .single-price-block {
            display: flex !important;
            flex-direction: column !important;
            align-items: flex-start !important;
            justify-content: flex-start !important;
            gap: 1px !important;
            min-width: 0 !important;
        }
        .product-card .product-price {
            display: block !important;
            line-height: .96 !important;
        }
        .product-card .product-unit {
            display: block !important;
            width: 100% !important;
            margin-top: 2px !important;
            line-height: 1.08 !important;
            white-space: nowrap !important;
        }
        .product-card .product-meta-chip {
            font-size: 7.6px !important;
            padding: 3.5px 8px !important;
            border-radius: 999px !important;
            gap: 4px !important;
        }
        .product-card .product-meta-chip i {
            font-size: 7.3px !important;
        }
        .currency-symbol {
            top: -0.16em !important;
        }
        @media (max-width: 767px) {
            .product-card .product-meta-chip {
                font-size: 7.6px !important;
                padding: 3px 8px !important;
            }
            .product-card .product-meta-chip i {
                font-size: 7.2px !important;
            }
            .product-card .product-unit {
                font-size: 7.8px !important;
            }
        }
        @media (min-width: 1024px) {
            .product-card .product-meta-chip {
                font-size: 8.1px !important;
                padding: 4px 9px !important;
            }
            .product-card .product-meta-chip i {
                font-size: 7.8px !important;
            }
            .product-card .product-code {
                font-size: 6.6px !important;
            }
            .product-card .product-unit {
                font-size: 8.2px !important;
            }
        }

    

        /* ===== V4: single-price unit stays on same baseline; product code slightly larger ===== */
        .product-card .single-price-block {
            display:flex !important;
            flex-direction:row !important;
            align-items:baseline !important;
            justify-content:flex-start !important;
            gap:5px !important;
            min-width:0 !important;
        }
        .product-card .product-price {
            display:inline-block !important;
            flex:0 0 auto !important;
            line-height:1 !important;
        }
        .product-card .product-unit {
            display:inline-block !important;
            width:auto !important;
            margin:0 !important;
            padding:0 !important;
            line-height:1 !important;
            white-space:nowrap !important;
            vertical-align:baseline !important;
            transform:none !important;
        }
        .product-card .product-code {
            font-size:7.3px !important;
            line-height:1.05 !important;
            letter-spacing:.015em !important;
        }
        @media (max-width:767px) {
            .product-card .product-code {
                font-size:7.1px !important;
            }
            .product-card .single-price-block {
                gap:4px !important;
            }
            .product-card .product-unit {
                font-size:8px !important;
            }
        }
        @media (min-width:1280px) {
            .product-card .product-code {
                font-size:7.4px !important;
            }
            .product-card .product-unit {
                font-size:8.4px !important;
            }
        }

    

        /* === ZOEY REQUEST PATCH 2026-07-04: chỉ chỉnh phần được yêu cầu === */
        @media (max-width:767px) {
            #mobile-filter-anchor .mobile-filter-compact .mobile-compact-default {
                gap:6px !important;
                align-items:center !important;
            }
            #compact-search-button.mobile-compact-control {
                width:auto !important;
                min-width:104px !important;
                flex:1 1 118px !important;
                max-width:148px !important;
                height:43px !important;
                flex-direction:row !important;
                justify-content:flex-start !important;
                padding:0 12px !important;
                gap:7px !important;
                border-radius:14px !important;
            }
            #compact-search-button.mobile-compact-control span {
                display:block !important;
                font-size:10px !important;
                line-height:1 !important;
                white-space:nowrap !important;
            }
            #compact-category-control.mobile-compact-control,
            #compact-color-control.mobile-compact-control,
            #tone-filter-compact-wrap.mobile-compact-control,
            #compact-reset-button.mobile-compact-control {
                width:40px !important;
                min-width:40px !important;
                height:43px !important;
            }
            #mobile-filter-summary-text.mobile-compact-summary {
                flex:0 0 82px !important;
                width:82px !important;
                height:43px !important;
                padding:0 8px !important;
                justify-content:center !important;
                text-align:center !important;
                font-size:8.5px !important;
                line-height:1.12 !important;
                white-space:normal !important;
            }
            @media (max-width:374px) {
                #compact-search-button.mobile-compact-control {
                    min-width:94px !important;
                    flex-basis:104px !important;
                    padding:0 10px !important;
                }
                #mobile-filter-summary-text.mobile-compact-summary {
                    flex-basis:74px !important;
                    width:74px !important;
                    padding:0 6px !important;
                    font-size:8px !important;
                }
                #compact-category-control.mobile-compact-control,
                #compact-color-control.mobile-compact-control,
                #tone-filter-compact-wrap.mobile-compact-control,
                #compact-reset-button.mobile-compact-control {
                    width:38px !important;
                    min-width:38px !important;
                }
            }
        }

/* === zoey-menu-variant-selector-css === */
.product-variant-selector select{appearance:auto;}
.product-variant-selector{margin-top:.45rem;}

/* === zoey-menu-banner-hq-v44-style === */
/* V44 - hiển thị banner HQ: giữ ảnh WebP nét, không áp dụng hiệu ứng làm mềm */
.zoey-banner-slide img{
  image-rendering:auto!important;
  backface-visibility:hidden!important;
  transform:translateZ(0)!important;
  filter:none!important;
}
