/* cxd-polish.css — lớp hoàn thiện UI (21/10/2026). Nạp SAU cxd-refine.
   Quy tắc màu (Tình chốt 21/10): vàng #FFF200 trên nền trắng chỉ đạt 1,13:1 → KHÔNG dùng làm nút chính / icon trên nền sáng.
   · CTA chính trên nền sáng  = xanh cyan của logo --cta #00AEEF + chữ mực #231F20 (6,4:1) + viền cyan đậm --cta-edge #0090C8 (tách nền trắng 3,6:1)
   · Vàng trên nền sáng       = luôn có viền mực (--ink) để tách nền
   · Vàng trên nền tối (hero, banner, đáy trang) giữ nguyên: ink/vàng 15:1 */

:root{
  --cta:#00AEEF; --cta-hover:#2BC0F5; --cta-press:#0098D6; --cta-edge:#0090C8; --cta-ink:#231F20; --cta-ring:rgba(0,174,239,.38);
  --ring-ink:inset 0 0 0 1px var(--ink);
  --cta-grad:linear-gradient(180deg,#2BBFF6 0%,#00AEEF 100%); --cta-grad-hover:linear-gradient(180deg,#52CCFA 0%,#14B7F3 100%);
}

/* ═══ 1. CTA CHÍNH = XANH ═══ */
body.cxd :is(.button.primary,.button.alt,.single_add_to_cart_button,.add_to_cart_button,.checkout-button,
  .woocommerce-mini-cart__buttons .button.checkout,.woocommerce-message .button,#place_order,.wp-element-button,.wp-block-search__button),
body.cxd .cxd-sp__buy form.cart .ux-buy-now-button,
body.cxd .cxd-sp__buy form.cart:not(:has(.ux-buy-now-button)) .single_add_to_cart_button,
body.cxd .cxd-pbar__mua,
body.cxd #secondary .cxd-wg-cta .wp-block-button__link,
.cxd-ck-modal .cxd-ck-btn,.cxd-ck-inline .cxd-ck-btn,
.cxd-ti__btn,
html body .cxd-leads-form button.cxd-leads-submit{
  background:var(--cta-grad);border:1px solid rgba(0,144,200,.8);border-radius:12px;color:var(--cta-ink);font-weight:700;letter-spacing:.005em;box-shadow:0 8px 16px -10px rgba(0,174,239,.75),inset 0 1px 0 rgba(255,255,255,.35)}
body.cxd :is(.button.primary,.button.alt,.single_add_to_cart_button,.add_to_cart_button,.checkout-button,
  .woocommerce-mini-cart__buttons .button.checkout,.woocommerce-message .button,#place_order,.wp-element-button,.wp-block-search__button):is(:hover,:focus-visible),
body.cxd .cxd-sp__buy form.cart .ux-buy-now-button:is(:hover,:focus-visible),
body.cxd .cxd-pbar__mua:is(:hover,:focus-visible),
body.cxd #secondary .cxd-wg-cta .wp-block-button__link:is(:hover,:focus-visible),
.cxd-ck-modal .cxd-ck-btn:is(:hover,:focus-visible),.cxd-ck-inline .cxd-ck-btn:is(:hover,:focus-visible),
.cxd-ti__btn:is(:hover,:focus-visible),
html body .cxd-leads-form button.cxd-leads-submit:is(:hover,:focus-visible){
  background:var(--cta-grad-hover);border-color:rgba(0,144,200,.9);color:var(--cta-ink);box-shadow:0 12px 22px -12px rgba(0,174,239,.9),inset 0 1px 0 rgba(255,255,255,.4)}
body.cxd :is(.button.primary,.button.alt,.single_add_to_cart_button,.checkout-button,#place_order):active,
body.cxd .cxd-sp__buy form.cart .ux-buy-now-button:active,
html body .cxd-leads-form button.cxd-leads-submit:active{background:var(--cta-press);border-color:var(--cta-edge);color:var(--cta-ink)}
body.cxd :is(.button.primary,.button.alt,.single_add_to_cart_button,#place_order,.ux-buy-now-button):focus-visible,
html body .cxd-leads-form button.cxd-leads-submit:focus-visible{outline:3px solid var(--cta-ring);outline-offset:2px}
/* trang sản phẩm có "Mua ngay": chỉ "Mua ngay" là CTA xanh; "Thêm vào giỏ" là nút phụ viền mực */
body.cxd .cxd-sp__buy form.cart:has(.ux-buy-now-button) .single_add_to_cart_button{background:transparent!important;border:1.5px solid var(--ink)!important;color:var(--ink)!important;box-shadow:none!important}
body.cxd .cxd-sp__buy form.cart:has(.ux-buy-now-button) .single_add_to_cart_button:is(:hover,:focus-visible){background:var(--ink)!important;border-color:var(--ink)!important;color:#fff!important}
body.cxd .cxd-pbar__them{background:transparent;border:1.5px solid var(--ink);color:var(--ink)}
/* nút phụ (viền mực) giữ nguyên; nút "Thêm vào giỏ" cạnh "Mua ngay" vẫn là viền mực */

/* ═══ 2. VÀNG TRÊN NỀN SÁNG → CÓ VIỀN MỰC ═══ */
body.cxd .badge .badge-inner,body.cxd .product-small .badge .badge-inner,
body.cxd .cxd-fs__badge,body.cxd .cxd-fs--noi .cxd-fs__nhan,
:is(.cxd-stores,.cxd-strip) .cxd-store__main,
body.cxd .cxd-ti__steps li:nth-child(odd) .cxd-ti__num{box-shadow:var(--ring-ink)}
body.cxd .header-contact-wrapper .icon-phone{box-shadow:var(--ring-ink)}
body.cxd .button.ux-search-submit,body.cxd .ux-search-submit{border:1.5px solid var(--ink);box-shadow:none}
body.cxd .cxd-lx__o.is-vang a{box-shadow:inset 0 0 0 1px rgba(35,31,32,.22)}
/* gạch trang trí vàng–xanh trước tiêu đề mục / đường chân menu / thanh trạng thái: bỏ vàng trên nền trắng */
.cxd-bl-h1::before,body.cxd .cxd-ti--steps .cxd-ti__h::before,
body.cxd.single-post .entry-category a::before,body.cxd .blog-archive .entry-category a::before{background:var(--cta)}
.cxd-tg::before{background:var(--cta)}
body.cxd #wide-nav .nav>li>a.nav-top-link::after{background:linear-gradient(90deg,var(--ink) 0 70%,var(--cta) 70%)}
.cxd-cn.is-on{box-shadow:inset 4px 0 0 var(--cta)}
body.cxd .wc_payment_methods li:has(input:checked){box-shadow:inset 4px 0 0 var(--cta)}
body.cxd .cxd-ti__chip input:checked+span{box-shadow:var(--ring-ink)}

/* ═══ 3. ĐIỆN THOẠI (≤849px) ═══ */
@media (max-width:849.98px){
  /* 3a. Header gọn, có chiều sâu nhẹ */
  body.cxd #masthead .header-main{background:var(--surface);box-shadow:0 1px 0 var(--line),0 8px 20px -14px rgba(35,31,32,.4)}
  body.cxd #masthead .header-main .header-inner{min-height:64px}
  body.cxd #masthead .header-logo img,body.cxd #masthead .header_logo{max-height:44px;width:auto}
  /* 3b. Icon menu + tìm kiếm: cùng bộ Lucide nét 1.75 với thanh dưới (thay chữ icon Flatsome nét đậm, lệch) */
  body.cxd #masthead .nav-icon a,body.cxd #masthead .header-search a.nav-top-link{
    width:44px;height:44px;min-width:44px;padding:0;display:inline-flex;align-items:center;justify-content:center;
    border:1.5px solid var(--line);border-radius:50%;background:var(--bg);color:var(--ink);transition:background var(--t-fast) var(--ease),border-color var(--t-fast) var(--ease)}
  body.cxd #masthead .nav-icon a:active,body.cxd #masthead .header-search a.nav-top-link:active{background:var(--line)}
  body.cxd #masthead .nav-icon a i,body.cxd #masthead .header-search a.nav-top-link i{
    font-size:0;width:22px;height:22px;display:block;margin:0;line-height:0;background:currentColor;
    -webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-position:center;mask-position:center;-webkit-mask-size:contain;mask-size:contain}
  body.cxd #masthead .nav-icon a i::before,body.cxd #masthead .header-search a.nav-top-link i::before{content:none}
  body.cxd #masthead .header-search a.nav-top-link i{
    -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7.5'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E");
    mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7.5'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E")}
  body.cxd #masthead .nav-icon a i{
    -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round'%3E%3Cpath d='M4 7h16M4 12h16M4 17h10'/%3E%3C/svg%3E");
    mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round'%3E%3Cpath d='M4 7h16M4 12h16M4 17h10'/%3E%3C/svg%3E")}
  body.cxd .cart-item .header-cart-link{width:44px;height:44px;min-width:44px;min-height:44px}

  /* 3c. Menu trượt: băng thương hiệu + nút đóng nằm trong băng + hàng mục rõ */
  body.cxd #main-menu.mobile-sidebar{box-shadow:12px 0 40px rgba(35,31,32,.35)}   /* chiều rộng 300px do Flatsome cố định — đừng nới (khung chứa cắt nội dung) */
  body.cxd #main-menu .sidebar-menu{padding:0}
  body.cxd #main-menu .sidebar-menu::before{content:"";display:block;height:76px;background:#231F20 url("../img/logo-ngang-nen-toi.svg") 20px center/auto 46px no-repeat;
    border-bottom:4px solid transparent;border-image:linear-gradient(90deg,var(--brand-yellow) 0 62%,var(--brand-cyan) 62%) 1}
  body.cxd .mfp-wrap:has(#main-menu) .mfp-close{position:fixed;top:16px;right:auto;left:calc(300px - 56px);width:44px;height:44px;line-height:44px;
    border-radius:50%;background:rgba(255,255,255,.14);color:#fff;opacity:1;font-size:26px}
  body.cxd .mfp-wrap:has(#main-menu) .mfp-close:active{background:rgba(255,255,255,.28)}
  body.cxd #main-menu .nav-sidebar>li.header-search-form{padding:16px 16px 12px;border-bottom:0}
  body.cxd #main-menu input.search-field{min-height:48px;border-radius:12px 0 0 12px;border:1.5px solid #C9C6CC;border-right:0;background:var(--bg)}
  body.cxd #main-menu .ux-search-submit{width:52px;min-height:48px;border-radius:0 12px 12px 0}
  body.cxd .nav-sidebar.nav-vertical>li>a{min-height:54px;padding:0 20px;font-size:1.0625rem;font-weight:700;letter-spacing:-.005em}
  body.cxd .nav-sidebar.nav-vertical>li>a:active,body.cxd .nav-sidebar.nav-vertical>li.active>a{background:var(--yellow-50)}
  body.cxd .nav-sidebar.nav-vertical>li.current-menu-item>a,body.cxd .nav-sidebar.nav-vertical>li.current-menu-ancestor>a{box-shadow:inset 4px 0 0 var(--cta)}
  body.cxd .nav-sidebar.nav-vertical>li ul{background:var(--bg);border-left:3px solid var(--cta);margin:0 0 0 20px}
  body.cxd .nav-sidebar.nav-vertical>li ul li a{padding:0 16px;min-height:46px;font-size:1rem}
  body.cxd .nav-sidebar.nav-vertical li.menu-item-has-children>a .toggle,body.cxd .nav-sidebar.nav-vertical .toggle i{color:var(--ink-2)}

  /* 3d. Thanh icon đáy: nền mờ kính, mục đang chọn = viên thuốc mực + icon vàng, "Gọi" = viên thuốc xanh (CTA) */
  .cxd-bottomnav{background:rgba(255,255,255,.94);-webkit-backdrop-filter:saturate(1.4) blur(14px);backdrop-filter:saturate(1.4) blur(14px);
    border-top:1px solid var(--line);box-shadow:0 -10px 28px -14px rgba(35,31,32,.35);padding-top:6px}
  body.cxd .cxd-bottomnav a{gap:3px;font-size:.6875rem;font-weight:600;letter-spacing:.01em;color:var(--ink-2)}
  body.cxd .cxd-bottomnav a svg{box-sizing:border-box;width:56px;height:32px;padding:4px 16px;border-radius:999px;stroke-width:1.75;
    transition:background var(--t-fast) var(--ease),stroke var(--t-fast) var(--ease)}
  body.cxd .cxd-bottomnav a[aria-current=page]{color:var(--ink);font-weight:700}
  body.cxd .cxd-bottomnav a[aria-current=page]::before{display:none}
  body.cxd .cxd-bottomnav a[aria-current=page] svg{background:var(--ink);stroke:var(--brand-yellow)}
  body.cxd .cxd-bottomnav a:active svg{background:var(--line)}
  body.cxd .cxd-bottomnav a.cxd-goi{color:var(--cyan-700);font-weight:700}
  body.cxd .cxd-bottomnav a.cxd-goi svg{background:var(--cta);stroke:var(--cta-ink)}
  body.cxd .cxd-bottomnav a.cxd-goi:active svg{background:var(--cta-press)}
}

/* ═══ 4. POPUP TƯ VẤN: băng thương hiệu đen + vạch vàng/xanh, nút CTA xanh ═══ */
.cxd-leads-dialog{border:0;border-radius:20px;overflow:hidden;box-shadow:0 28px 64px -16px rgba(35,31,32,.6);max-width:min(440px,calc(100vw - 32px))}
.cxd-leads-dialog::backdrop{background:rgba(35,31,32,.62);-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}
.cxd-leads-dialog .cxd-leads-box{padding:0 0 24px}
html body .cxd-leads-dialog h2.cxd-leads-title{position:relative;margin:0;padding:30px 64px 24px 24px;background:#231F20;color:#fff;
  font-size:1.5rem;line-height:1.2;letter-spacing:-.01em}
html body .cxd-leads-dialog h2.cxd-leads-title::after{content:"";position:absolute;left:0;right:0;bottom:0;height:5px;
  background:linear-gradient(90deg,var(--brand-yellow) 0 62%,var(--brand-cyan) 62% 100%)}
.cxd-leads-dialog .cxd-leads-desc{margin:0;padding:20px 24px 4px;color:var(--ink-2);font-size:1rem;line-height:1.5}
.cxd-leads-dialog .cxd-leads-form{padding:12px 24px 0}
.cxd-leads-dialog .cxd-leads-done{padding:28px 24px 8px}
html body .cxd-leads-dialog button.cxd-leads-close{z-index:3;top:18px;right:16px;width:40px;height:40px;border-radius:50%;background:rgba(255,255,255,.16);color:#fff}
html body .cxd-leads-dialog button.cxd-leads-close:hover{background:rgba(255,255,255,.28);color:#fff}
html body .cxd-leads-dialog .cxd-leads-form input.cxd-leads-input{min-height:52px;border:1.5px solid #C9C6CC;border-radius:12px;font-size:1rem;background:#fff}
html body .cxd-leads-dialog .cxd-leads-form input.cxd-leads-input:focus-visible{border-color:var(--cta);outline:3px solid var(--cta-ring);outline-offset:0}
html body .cxd-leads-dialog .cxd-leads-form button.cxd-leads-submit{min-height:56px;border-radius:12px;font-size:1.0625rem;font-weight:700;letter-spacing:.005em}

/* ═══ 5. HEADER DESKTOP (≥850px) — tối giản, hiện đại (21/10/2026) ═══ */
@media (min-width:850px){
  /* vạch nhận diện vàng–xanh trên cùng, giống vạch trên logo */
  body.cxd #masthead::before{content:"";display:block;height:4px;background:linear-gradient(90deg,var(--brand-yellow) 0 62%,var(--brand-cyan) 62% 100%)}
  body.cxd #masthead .header-main{background:var(--surface)}
  body.cxd #masthead .header-main .header-inner{min-height:84px}
  /* tìm kiếm: viên thuốc, nút tìm là phân đoạn đen–vàng liền khối */
  body.cxd #masthead .header-search-form{max-width:600px}
  body.cxd #masthead .search-field{min-height:50px;border-radius:999px 0 0 999px;border:1.5px solid #E2E0E6;border-right:0;background:#F5F5F7;padding-left:22px;font-size:1rem;box-shadow:none;transition:border-color var(--t-fast) var(--ease),background var(--t-fast) var(--ease),box-shadow var(--t-fast) var(--ease)}
  body.cxd #masthead .search-field:hover{background:#F0F0F3}
  body.cxd #masthead .search-field:focus{background:#fff;border-color:var(--cta);box-shadow:0 0 0 3px var(--cta-ring);outline:0}
  body.cxd #masthead .button.ux-search-submit,body.cxd #masthead .ux-search-submit{background:var(--ink);border:1.5px solid var(--ink);border-radius:0 999px 999px 0;width:60px;min-height:50px;color:var(--brand-yellow);transition:background var(--t-fast) var(--ease)}
  body.cxd #masthead .ux-search-submit .icon-search,body.cxd #masthead .ux-search-submit i{color:var(--brand-yellow);font-size:19px}
  body.cxd #masthead .button.ux-search-submit:hover,body.cxd #masthead .ux-search-submit:hover{background:#3A3538;border-color:#3A3538}
  /* "Cửa hàng": CTA xanh dạng viên thuốc + icon ghim */
  body.cxd .header-button-1 .button.is-outline{display:inline-flex;align-items:center;gap:8px;min-height:48px;padding:0 22px 0 18px;border-radius:999px!important;background:var(--cta);border:2px solid var(--cta-edge);color:var(--cta-ink);font-weight:700;letter-spacing:.005em;box-shadow:0 8px 18px -8px rgba(0,174,239,.85)}
  body.cxd .header-button-1 .button.is-outline::before{content:"";width:18px;height:18px;flex:none;background:currentColor;
    -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E") center/contain no-repeat;
    mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E") center/contain no-repeat}
  body.cxd .header-button-1 .button.is-outline:is(:hover,:focus-visible){background:var(--cta-hover);border-color:var(--cta-edge);color:var(--cta-ink);transform:translateY(-1px);box-shadow:0 12px 22px -10px rgba(0,174,239,.9)}
  body.cxd .header-button-1 .button.is-outline:active{transform:none;background:var(--cta-press);border-color:var(--cta-edge)}
  /* hotline + giỏ: khoảng cách đều */
  body.cxd #masthead .header-nav-main.nav-right{gap:var(--s-4)}
  body.cxd #masthead .header-nav-main.nav-right>li{margin:0}
  body.cxd #masthead .header-contact-wrapper a{font-size:1.1875rem}
  /* tầng menu cấp 1: một dòng. Chỉ a.nav-top-link — không đụng chữ/lưới menu con */
  body.cxd #wide-nav.header-bottom{border-bottom:0;box-shadow:0 10px 24px -18px rgba(35,31,32,.45),0 1px 0 var(--line);min-height:48px}
  body.cxd #wide-nav .header-bottom-nav>li>a.nav-top-link{font-weight:600;font-size:.8125rem;letter-spacing:-.01em;border-radius:999px;transition:background var(--t-fast) var(--ease),color var(--t-fast) var(--ease)}
  body.cxd #wide-nav .header-bottom-nav>li:not(.active):not(.current-menu-item)>a.nav-top-link:hover{background:#F1F1F4}
  body.cxd #wide-nav .header-bottom-nav>li.current-menu-item>a.nav-top-link,body.cxd #wide-nav .header-bottom-nav>li.active>a.nav-top-link{font-weight:700}
}

@media (min-width:850px){
  body.cxd #wide-nav .header-bottom-nav>li>a.nav-top-link{white-space:nowrap;padding-left:.375rem;padding-right:.375rem;font-size:.8125rem}
  /* cột phải của thanh menu đang trống — bỏ đi để mục cấp 1 dùng hết khung */
  body.cxd #wide-nav .flex-col.flex-right:not(:has(li)){display:none}
  body.cxd #wide-nav .flex-col.flex-left{flex:1 1 auto;min-width:0;width:auto}
  body.cxd #wide-nav .header-bottom-nav.nav-left{display:flex;flex-wrap:nowrap;justify-content:space-between;width:100%}
  body.cxd #wide-nav .header-bottom-nav>li{margin:0;flex:0 0 auto}
  body.cxd #wide-nav .header-bottom-nav>li>a.nav-top-link::after{left:.375rem;right:.375rem}
  body.cxd #wide-nav .header-bottom-nav>li>a.nav-top-link .icon-angle-down{margin-left:2px;font-size:11px}
}

/* ═══ 6. THANH ICON ĐÁY ĐIỆN THOẠI — nổi bật hơn (21/10/2026): mỗi icon nằm trong viên thuốc riêng, nét đậm hơn, nhãn đậm ═══ */
@media (max-width:849.98px){
  body.cxd .cxd-bottomnav a{color:var(--ink);font-size:.71875rem;font-weight:700;gap:4px}
  body.cxd .cxd-bottomnav a svg{width:60px;height:36px;padding:5px 17px;stroke:var(--ink);stroke-width:2.1;background:#EDEDF1;
    transition:background var(--t-fast) var(--ease),stroke var(--t-fast) var(--ease),transform var(--t-fast) var(--ease)}
  body.cxd .cxd-bottomnav a:active svg{transform:scale(.94)}
  body.cxd .cxd-bottomnav a[aria-current=page] svg{background:var(--ink);stroke:var(--brand-yellow);box-shadow:0 6px 14px -6px rgba(35,31,32,.6)}
  body.cxd .cxd-bottomnav a.cxd-goi{color:var(--cyan-700)}
  body.cxd .cxd-bottomnav a.cxd-goi svg{background:var(--cta);stroke:var(--cta-ink);box-shadow:0 6px 14px -6px rgba(0,174,239,.8)}
}

/* ═══ 7. TÍCH HỢP cxd-contact-bar: tránh đè thanh icon đáy / thanh mua hàng; nằm dưới lớp phủ menu & popup ═══ */
:root{--cxd-cbar-z:70}
@media (max-width:849.98px){
  :root{--cxd-cbar-offset-bottom:calc(var(--h-bottomnav,64px) + 20px + env(safe-area-inset-bottom));--cxd-cbar-bar-offset-bottom:calc(var(--h-bottomnav,64px) + env(safe-area-inset-bottom))}
  body.single-product{--cxd-cbar-offset-bottom:calc(92px + 20px + env(safe-area-inset-bottom));--cxd-cbar-bar-offset-bottom:calc(76px + env(safe-area-inset-bottom))}
}

/* nút "lên đầu trang" xếp NGAY TRÊN nút nổi liên hệ (không đè), thẳng tâm với nó */
body.cxd #top-link,body.cxd .back-to-top{right:calc(var(--cxd-cbar-offset-side,16px) + 8px)!important;bottom:calc(var(--cxd-cbar-offset-bottom-lg,24px) + 68px)!important}
@media (max-width:849.98px){
  body.cxd #top-link,body.cxd .back-to-top{bottom:calc(var(--cxd-cbar-offset-bottom,88px) + 68px + env(safe-area-inset-bottom,0px))!important}
}

/* ═══ 8. TRANG CHUYÊN MỤC — bộ lọc GỌN + DÍNH dưới header khi cuộn (21/10/2026) ═══ */
:root{--cxd-sticky-top:114px}                      /* header dính: 60 (chính) + 54 (menu) */
@media (max-width:849.98px){:root{--cxd-sticky-top:60px}}   /* điện thoại: chỉ header 60 */

/* gọn: bớt khoảng trống đầu trang */
body.cxd.archive .cxd-page-title,body.cxd.tax-product_cat .cxd-page-title{font-size:1.75rem;line-height:1.15;margin:0}
body.cxd .cxd-toolbar{margin:0 0 8px}
body.cxd .cxd-toolbar .woocommerce-ordering select.orderby{min-height:38px;font-size:.875rem;padding-top:0;padding-bottom:0}
body.cxd .woocommerce-result-count{font-size:.8125rem}

/* hàng chip danh mục con: thấp 36px, chữ nhỏ hơn */
body.cxd nav.cxd-chips{margin:0 0 6px}
body.cxd nav.cxd-chips ul{gap:8px}
body.cxd nav.cxd-chips li a{min-height:36px;height:36px;padding:0 14px;font-size:.875rem;line-height:1}
body.cxd nav.cxd-chips li a small{font-size:.6875rem;color:var(--ink-2)} /* bỏ opacity:.75 — số đếm chỉ đạt 3,18:1 (QC UI-01 04/11); --ink-2 trên nền trắng ≥ 7:1 */

/* thanh bộ lọc: nút nhỏ gọn 38px, DÍNH dưới header */
body.cxd .cxd-pf{position:sticky;top:var(--cxd-sticky-top);z-index:45;isolation:isolate;margin:0 0 12px;padding:6px 0}
body.cxd .cxd-pf::before{content:"";position:absolute;z-index:-1;top:0;bottom:0;left:50%;width:100vw;transform:translateX(-50%);background:#fff;
  border-bottom:1px solid transparent;transition:border-color var(--t-fast) var(--ease),box-shadow var(--t-fast) var(--ease)}
body.cxd .cxd-pf.is-stuck::before{border-bottom-color:var(--line);box-shadow:0 10px 18px -14px rgba(35,31,32,.35)}
body.cxd .cxd-pf__group>summary{min-height:38px;height:38px;padding:0 14px;font-size:.875rem;line-height:1}
body.cxd .cxd-pf__open{min-height:40px;height:40px;padding:0 16px;font-size:.9375rem}

@media (max-width:849.98px){
  body.cxd .cxd-page-title{font-size:1.5rem}
  body.cxd nav.cxd-chips li a{height:34px;min-height:34px;font-size:.8125rem;padding:0 12px}
  body.cxd .cxd-pf{padding:8px 0;margin:0 0 10px}
}

/* ═══ 9. THU GỌN PHẦN DÍNH để nhường chỗ cho danh sách (21/10/2026) — máy tính: 176→~134px, điện thoại: 124→~100px ═══ */
:root{--cxd-sticky-top:92px}                       /* header dính 52 + menu 40 */
@media (max-width:849.98px){:root{--cxd-sticky-top:52px}}

@media (min-width:850px){
  body.cxd .header-wrapper.stuck #masthead::before{display:none}                        /* bỏ vạch nhận diện 4px khi dính */
  body.cxd .header-wrapper.stuck #masthead .header-inner{min-height:52px;height:52px}
  body.cxd .header-wrapper.stuck #masthead .search-field{min-height:38px}
  body.cxd .header-wrapper.stuck #masthead .button.ux-search-submit,body.cxd .header-wrapper.stuck #masthead .ux-search-submit{min-height:38px;width:48px}
  body.cxd .header-wrapper.stuck .header-contact-wrapper a{min-height:40px;column-gap:8px;font-size:1.0625rem}
  body.cxd .header-wrapper.stuck .header-contact-wrapper a::before{display:none}         /* bỏ nhãn "Hotline tư vấn", số nằm giữa */
  body.cxd .header-wrapper.stuck .header-contact-wrapper a span{grid-row:1;align-self:center}
  body.cxd .header-wrapper.stuck .header-contact-wrapper .icon-phone{width:36px;height:36px;font-size:17px!important;grid-row:1}
  body.cxd .header-wrapper.stuck .header-button-1 .button.is-outline{min-height:38px;padding:0 16px 0 14px;font-size:.875rem;box-shadow:none}
  body.cxd .header-wrapper.stuck .cart-item .header-cart-link{width:38px;height:38px;min-width:38px;min-height:38px}
  body.cxd .header-wrapper.stuck #wide-nav.header-bottom{min-height:40px;height:40px;box-shadow:0 8px 16px -14px rgba(35,31,32,.45),0 1px 0 var(--line)}
  body.cxd .header-wrapper.stuck #wide-nav .header-bottom-nav>li>a.nav-top-link{font-size:.8125rem;min-height:34px;padding-top:0;padding-bottom:0}
  body.cxd .header-wrapper.stuck #wide-nav .header-bottom-nav>li>a.nav-top-link::after{bottom:2px}
  /* thanh bộ lọc */
  body.cxd .cxd-pf{padding:4px 0;margin-bottom:10px}
  body.cxd .cxd-pf__group>summary{min-height:36px;height:36px;padding:0 13px}
}

/* 850–1199px: khung menu cấp 1 hẹp hơn */
@media (min-width:850px) and (max-width:1199.98px){
  body.cxd #wide-nav .header-bottom-nav>li>a.nav-top-link,
  body.cxd .header-wrapper.stuck #wide-nav .header-bottom-nav>li>a.nav-top-link{padding-left:.25rem;padding-right:.25rem;font-size:.75rem}
  body.cxd #wide-nav .header-bottom-nav>li>a.nav-top-link::after{left:.25rem;right:.25rem}
}
/* ≤1099px */
@media (min-width:850px) and (max-width:1099.98px){
  body.cxd #wide-nav .header-bottom-nav>li>a.nav-top-link,
  body.cxd .header-wrapper.stuck #wide-nav .header-bottom-nav>li>a.nav-top-link{padding-left:.125rem;padding-right:.125rem;font-size:.6875rem}
  body.cxd #wide-nav .header-bottom-nav>li>a.nav-top-link::after{left:.125rem;right:.125rem}
}
/* ≤949px: 10 mục cấp 1 vừa khít khung ~838px */
@media (min-width:850px) and (max-width:949.98px){
  body.cxd #wide-nav .header-bottom-nav>li>a.nav-top-link,
  body.cxd .header-wrapper.stuck #wide-nav .header-bottom-nav>li>a.nav-top-link{padding-left:.0625rem;padding-right:.0625rem;font-size:.625rem}
  body.cxd #wide-nav .header-bottom-nav>li>a.nav-top-link::after{left:.0625rem;right:.0625rem}
}
/* ≥1280px: chữ cấp 1 14px, giãn tới đúng mép giỏ (hàng trên chừa 24px sau icon) */
@media (min-width:1280px){
  body.cxd #wide-nav .header-bottom-nav.nav-left{padding-right:24px}
  body.cxd #wide-nav .header-bottom-nav>li>a.nav-top-link,
  body.cxd .header-wrapper.stuck #wide-nav .header-bottom-nav>li>a.nav-top-link{padding-left:.375rem;padding-right:.375rem;font-size:.875rem}
  body.cxd #wide-nav .header-bottom-nav>li>a.nav-top-link::after{left:.375rem;right:.375rem}
}
@media (max-width:849.98px){
  body.cxd .header-wrapper.stuck #masthead .header-inner{min-height:52px;height:52px}
  body.cxd .header-wrapper.stuck #masthead .header-logo img,body.cxd .header-wrapper.stuck #masthead .header_logo{max-height:36px}
  body.cxd .header-wrapper.stuck #masthead .nav-icon a,body.cxd .header-wrapper.stuck #masthead .header-search a.nav-top-link{width:44px;height:44px}
  body.cxd .header-wrapper.stuck .cart-item .header-cart-link{width:44px;height:44px}
  body.cxd .cxd-pf{padding:4px 0;margin-bottom:8px}
  body.cxd .cxd-pf__open{min-height:40px;height:40px}
}

/* tinh chỉnh 9b: header dính trên điện thoại ĐÚNG 52px (Flatsome để 60px → đè lên thanh lọc); thanh lọc không còn khoảng trống thừa */
@media (max-width:849.98px){
  body.cxd .header-wrapper.stuck #masthead,body.cxd .header-wrapper.stuck #masthead .header-inner{height:52px!important;min-height:52px!important;max-height:52px!important}
  body.cxd .header-wrapper.stuck #masthead .header-logo img,body.cxd .header-wrapper.stuck #masthead img.header_logo{max-height:34px!important;width:auto}
  body.cxd .header-wrapper.stuck #masthead .nav-icon a,body.cxd .header-wrapper.stuck #masthead .header-search a.nav-top-link,body.cxd .header-wrapper.stuck .cart-item .header-cart-link{width:42px;height:42px;min-width:42px;min-height:42px}
}
body.cxd .cxd-pf__form,body.cxd .cxd-pf__groups{min-height:0}
/* khung chip "đang lọc": chỉ chừa lề khi có chip (rỗng thì không chiếm 12px trong phần dính) */
body.cxd .cxd-pf__chips{margin-top:0}
body.cxd .cxd-pf__chips:has(*){margin-top:8px}

/* ═══ 10. BỘ LỌC ĐIỆN THOẠI — hàng chip cuộn ngang kiểu cellphones (21/10/2026) ═══
   Cuộn ngang chỉ trên .cxd-pf__row. Form và sheet không được overflow/sticky khi bảng đang mở:
   Safari cắt position:fixed theo tổ tiên đó, nên bảng lọc chìm còn một dòng. */
@media (max-width:849.98px){
  body.cxd .cxd-pf__form{display:block;overflow:visible;margin:0;padding:0}
  body.cxd .cxd-pf__row{display:flex;align-items:center;gap:8px;flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden;margin:0 -16px;padding:0 16px;
    -webkit-overflow-scrolling:touch;scrollbar-width:none;scroll-padding-inline:16px}
  /* gợi ý "còn chip bên phải": lớp mờ ở mép thanh — không phủ lên sheet (sheet được JS đưa ra body) */
  body.cxd .cxd-pf::after{content:"";position:absolute;z-index:2;top:0;bottom:0;right:-16px;width:44px;pointer-events:none;background:linear-gradient(to right,rgba(255,255,255,0),#fff 80%)}
  body.cxd .cxd-pf__row::-webkit-scrollbar{display:none}
  /* "Bộ lọc" = chip đầu tiên, nổi bật (viền mực + biểu tượng phễu) */
  body.cxd .cxd-pf__open,body.cxd .cxd-pfm__chip{flex:none;display:inline-flex;align-items:center;gap:6px;height:38px;min-height:38px;padding:0 14px;border-radius:12px;
    font:600 .875rem/1 var(--font-body);white-space:nowrap;cursor:pointer;-webkit-tap-highlight-color:transparent;transition:background var(--t-fast) var(--ease),color var(--t-fast) var(--ease),transform var(--t-fast) var(--ease)}
  body.cxd .cxd-pf__open{background:#fff;color:var(--ink);border:1.5px solid var(--ink)}
  body.cxd .cxd-pf__open .cxd-pf__ic{width:18px;height:18px}
  body.cxd .cxd-pf__badge{display:inline-grid;place-items:center;min-width:18px;height:18px;padding:0 5px;border-radius:999px;background:var(--cta);color:var(--cta-ink);font:700 .6875rem/1 var(--font-body)}
  body.cxd .cxd-pfm__chip{background:#F1F1F4;color:var(--ink);border:1.5px solid transparent}
  body.cxd .cxd-pfm__chip svg{flex:none;color:var(--ink-2)}
  body.cxd .cxd-pfm__chip:active,body.cxd .cxd-pf__open:active{transform:scale(.96)}
  /* chip có mục đã chọn: nền cyan + số */
  body.cxd .cxd-pfm__chip.is-on{background:var(--cta);border-color:var(--cta-edge);color:var(--cta-ink)}
  body.cxd .cxd-pfm__chip.is-on svg{color:var(--cta-ink)}
  body.cxd .cxd-pfm__n{display:inline-grid;place-items:center;min-width:18px;height:18px;padding:0 5px;border-radius:999px;background:var(--ink);color:#fff;font:700 .6875rem/1 var(--font-body)}
  body.cxd .cxd-pfm__n[hidden]{display:none}
}
@media (max-width:849.98px){
  body.cxd .cxd-pfm__chip,body.cxd .cxd-pf__open{margin:0!important;text-transform:none!important;letter-spacing:0!important;font-size:.875rem!important;font-weight:600!important;line-height:1!important;box-shadow:none}
  body.cxd .cxd-pfm__chip span,body.cxd .cxd-pf__open span{text-transform:none}
}

/* Bảng mở: bỏ sticky/isolation của thanh (Safari dùng chúng làm containing block của position:fixed).
   Sheet đã nằm trên body nên z-index đặt trên chính sheet, không trên thanh. */
@media (max-width:849.98px){
  body.cxd .cxd-pf.is-open,
  body.cxd .cxd-pf:has(> .cxd-pf__form > .cxd-pf__sheet:target){position:static;isolation:auto;overflow:visible;z-index:auto}
  body.cxd .cxd-pf__sheet.is-open{z-index:10000}
  body.cxd .cxd-pf__scrim.is-open{z-index:9999}
}
html.cxd-pf-lock body.cxd{overflow-x:clip} /* clip (KHÔNG hidden): vẫn cắt phần tràn ngang ~1px của hàng chip lề âm — với visible, điện thoại nở khung nhìn 375→391 khi mở bảng lọc, nút X/"Xem kết quả" bị cắt (QC UI-04 04/11); hidden thì body thành khung cuộn riêng và cắt bảng (lỗi Safari 30/10) */
html.cxd-pf-lock .cxd-cbar-fab,html.cxd-pf-lock .cxd-bottomnav,html.cxd-pf-lock #top-link,html.cxd-pf-lock .back-to-top{visibility:hidden}

/* ═══ 11. THẺ SẢN PHẨM + TÊN SẢN PHẨM CHI TIẾT — chữ gọn, màu hài hoà (21/10/2026) ═══
   Tên mực 600 cỡ 15px · giá mực 700 cỡ 18px (giá khuyến mãi đỏ, giá cũ xám) · sao hổ phách, sao rỗng xám nhạt */
body.cxd .product-small .name a,body.cxd .product-small .name.product-title a,body.cxd .product-small .name{font-size:.9375rem;line-height:1.35;font-weight:600;letter-spacing:-.005em;min-height:0;color:var(--ink)}
body.cxd .product-small .name a{min-height:calc(1.35em * 2)}
body.cxd .product-small .name a:hover{color:var(--cyan-700)}
body.cxd .product-small .box-text{padding:10px 4px 0}
body.cxd .product-small .price,body.cxd .product-small .price .amount,body.cxd .product-small .price>.amount{font-size:1.125rem;font-weight:700;letter-spacing:-.01em;line-height:1.2}
body.cxd .product-small .price ins .amount{color:var(--danger)}
body.cxd .product-small .price del,body.cxd .product-small .price del .amount{font-size:.8125rem;font-weight:500;color:var(--ink-3)}
body.cxd .product-small .price .woocommerce-Price-currencySymbol{font-size:.75em}
/* sao đánh giá: hổ phách thay vì đen; sao rỗng xám nhạt; nhỏ gọn */
body.cxd .star-rating{font-size:.8125rem;margin:4px 0 2px;letter-spacing:1px}
body.cxd .star-rating::before{color:#D9D7DD}
body.cxd .star-rating span::before{color:#D98E00}
@media (max-width:549px){
  body.cxd .product-small .name a,body.cxd .product-small .name{font-size:.8125rem;line-height:1.35}
  body.cxd .product-small .price,body.cxd .product-small .price .amount,body.cxd .product-small .price>.amount{font-size:1rem}
}
/* tên sản phẩm ở TRANG CHI TIẾT: nhỏ lại (trước ~40px) */
body.cxd.single-product h1.product-title,body.cxd.single-product .product-title.entry-title,body.cxd.single-product .product-info h1{font-size:1.625rem;line-height:1.25;font-weight:700;letter-spacing:-.01em;margin-bottom:.5rem}
@media (max-width:849.98px){
  body.cxd.single-product h1.product-title,body.cxd.single-product .product-title.entry-title,body.cxd.single-product .product-info h1{font-size:1.3125rem;line-height:1.3}
}
body.cxd .product-small .price ins,body.cxd .product-small .price ins .amount,body.cxd .product-small .price ins bdi{font-size:1.125rem}
@media (max-width:549px){body.cxd .product-small .price ins,body.cxd .product-small .price ins .amount,body.cxd .product-small .price ins bdi{font-size:1rem}}

/* ═══ 12. TINH CHỈNH "bớt thô" (21/10/2026): viền mảnh 1px · bóng mềm · cyan chuyển sắc nhẹ · huy hiệu viên thuốc · giá/khối flash-sale gọn ═══ */
@media (min-width:850px){
  /* hotline */
  body.cxd .header-contact-wrapper .icon-phone{width:40px;height:40px;font-size:18px!important;background:linear-gradient(145deg,#FFFA94 0%,#FFF200 55%,#F6E900 100%);box-shadow:inset 0 0 0 1px rgba(35,31,32,.85),0 6px 12px -6px rgba(35,31,32,.4)}
  body.cxd .header-contact-wrapper a{font-size:1.0625rem;letter-spacing:.01em}
  body.cxd .header-contact-wrapper a::before{font-size:.6875rem;letter-spacing:.02em;text-transform:none}
  /* nút Cửa hàng: viền 1px, chuyển sắc, vệt sáng trên cùng */
  body.cxd .header-button-1 .button.is-outline{min-height:44px;padding:0 20px 0 16px;gap:7px;background:var(--cta-grad);border:1px solid rgba(0,144,200,.8);font-weight:600;font-size:.9375rem;letter-spacing:0;
    box-shadow:0 8px 16px -10px rgba(0,174,239,.8),inset 0 1px 0 rgba(255,255,255,.4)}
  body.cxd .header-button-1 .button.is-outline::before{width:17px;height:17px}
  body.cxd .header-button-1 .button.is-outline:is(:hover,:focus-visible){background:var(--cta-grad-hover);border-color:rgba(0,144,200,.9);transform:translateY(-1px);box-shadow:0 12px 20px -12px rgba(0,174,239,.95),inset 0 1px 0 rgba(255,255,255,.45)}
  /* giỏ */
  body.cxd .cart-item .header-cart-link{width:44px;height:44px;min-width:44px;min-height:44px;box-shadow:0 6px 12px -8px rgba(35,31,32,.8)}
  body.cxd .header-wrapper.stuck .header-contact-wrapper .icon-phone{width:34px;height:34px;font-size:16px!important}
  body.cxd .header-wrapper.stuck .cart-item .header-cart-link{width:38px;height:38px;min-width:38px;min-height:38px}
}
/* huy hiệu giảm giá: viên thuốc nhỏ thay vòng tròn to (cả thẻ và trang chi tiết) */
body.cxd .badge-container .badge{width:auto!important;height:auto!important;min-width:0!important;min-height:0!important;background:none!important;margin:0}
body.cxd .badge-container{margin:10px 0 0 10px}
body.cxd .badge .badge-inner,body.cxd .badge .badge-inner.on-sale,body.cxd .product-small .badge .badge-inner{display:inline-flex;align-items:center;justify-content:center;height:22px;min-height:0;padding:0 9px;border-radius:999px;
  background:linear-gradient(180deg,#FFF98F,#FFF200);color:var(--ink);font:700 .75rem/1 var(--font-head);letter-spacing:.01em;box-shadow:inset 0 0 0 1px rgba(35,31,32,.85);border:0}
/* giá ở trang chi tiết: gọn hơn */
body.cxd .cxd-sp__buy .price-wrapper .price,body.cxd .cxd-sp__buy .price-wrapper .price .amount{font-size:1.75rem;line-height:1.15;letter-spacing:-.015em}
body.cxd .cxd-sp__buy .price-wrapper .price{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap}
body.cxd .cxd-sp__buy .price-wrapper del,body.cxd .cxd-sp__buy .price-wrapper del .amount{font-size:.9375rem;font-weight:500;color:var(--ink-3)}
body.cxd .cxd-sp__buy .price-wrapper .price .woocommerce-Price-currencySymbol{font-size:.7em}
/* khối flash-sale ở trang chi tiết: thẻ vàng nhạt + viền mảnh thay vì khối vàng đặc */
body.cxd .cxd-fs--box{margin:14px 0;padding:14px 16px;border-radius:14px;background:linear-gradient(180deg,#FFFBD9,#FFF6B0);border:1px solid #EEE07A;box-shadow:none}
body.cxd .cxd-fs--box .cxd-fs__lbl{font-size:.8125rem;font-weight:600;color:var(--ink-2)}
body.cxd .cxd-fs--box .cxd-fs__t{font-size:1.0625rem}
body.cxd .cxd-fs--box .cxd-fs__t b{min-width:2.1ch;padding:3px 7px;border-radius:7px;background:var(--ink);color:#fff;font-weight:600}
body.cxd .cxd-fs--box .cxd-fs__days{font-size:.875rem}
body.cxd .cxd-fs--box .cxd-fs__days b{font-size:1.0625rem;padding:3px 7px}
body.cxd .cxd-fs--box .cxd-fs__sold{margin-top:10px}
body.cxd .cxd-fs--box .cxd-fs__bar{height:6px;background:rgba(35,31,32,.12)}
body.cxd .cxd-fs--box .cxd-fs__bar>span{background:var(--ink)}
body.cxd .cxd-fs--box .cxd-fs__sold-t{font-size:.8125rem;color:var(--ink-2)}
/* nút mua ở trang chi tiết */
body.cxd .cxd-sp__buy form.cart .ux-buy-now-button{min-height:50px;font-size:1rem}
body.cxd .cxd-sp__buy form.cart:has(.ux-buy-now-button) .single_add_to_cart_button{border:1px solid var(--ink)!important;border-radius:12px;min-height:48px;font-weight:600}
body.cxd .cxd-sp__buy form.cart .quantity{border-radius:12px}
body.cxd .cxd-sp__buy form.cart .quantity,body.cxd .cxd-sp__buy form.cart .quantity .qty,body.cxd .cxd-sp__buy form.cart .quantity .button{border-color:#DAD8DE}
body.cxd .cxd-sp__buy .price-wrapper .price del,body.cxd .cxd-sp__buy .price-wrapper .price del .amount,body.cxd .cxd-sp__buy .price-wrapper .price del bdi{font-size:.9375rem;font-weight:500;color:var(--ink-3);letter-spacing:0}

/* ═══ 10. TRANG DANH MỤC: chip danh mục con + hàng thương hiệu luôn MỘT hàng (04/11/2026) ═══
 * Thừa thì cuộn ngang: mép phải mờ dần + nút "›" trên máy tính (cxd-hang-loc.js gắn lớp is-tran / o-cuoi). */
body.cxd nav.cxd-chips{position:relative;display:flex;align-items:center;gap:10px;flex-wrap:nowrap}
body.cxd nav.cxd-chips ul{flex:1 1 auto;min-width:0;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;scroll-snap-type:x proximity;padding-bottom:2px}
body.cxd nav.cxd-chips ul::-webkit-scrollbar{display:none}
body.cxd nav.cxd-chips li{flex:none;scroll-snap-align:start}
body.cxd nav.cxd-chips li a{padding:0 12px;white-space:nowrap}
body.cxd nav.cxd-chips.is-tran:not(.o-cuoi) ul{-webkit-mask-image:linear-gradient(90deg,#000 calc(100% - 64px),transparent);mask-image:linear-gradient(90deg,#000 calc(100% - 64px),transparent)}
body.cxd .cxd-chips__toi{display:none}
@media (min-width:850px){
  body.cxd nav.cxd-chips.is-tran:not(.o-cuoi) .cxd-chips__toi{display:grid;place-items:center;position:absolute;right:0;top:50%;transform:translateY(-50%);width:32px;height:32px;padding:0;margin:0;border:1px solid var(--line);border-radius:50%;background:#fff;color:var(--ink);font:600 20px/1 var(--font-head);box-shadow:0 2px 8px rgba(35,31,32,.12);cursor:pointer}
  body.cxd nav.cxd-chips .cxd-chips__toi:hover{border-color:var(--ink)}
}
body.cxd .cxd-chips__nhan{flex:none;font-size:.8125rem;color:var(--ink-3)}
/* hàng thương hiệu: ô bo 10px (khác chip tròn của danh mục con), logo hoặc chữ tên */
body.cxd nav.cxd-chips--hang{margin:2px 0 8px}
body.cxd nav.cxd-chips--hang li a{min-width:84px;justify-content:center;border-radius:10px;padding:0 14px}
body.cxd nav.cxd-chips--hang .cxd-hang-loc__logo{display:block;max-height:22px;max-width:84px;width:auto;height:auto;object-fit:contain}
body.cxd nav.cxd-chips--hang a[aria-pressed="true"]{border-color:var(--ink);box-shadow:inset 0 0 0 1px var(--ink),inset 0 -3px 0 var(--brand-cyan);background:var(--surface);color:var(--ink)}
body.cxd.cxd-co-hang-loc .cxd-pf__group[data-cxd-pf-group="pa_thuong-hieu"]{display:none}
@media (max-width:849.98px){
  body.cxd nav.cxd-chips{margin-left:calc(var(--s-4)*-1);margin-right:calc(var(--s-4)*-1)} /* tràn sát mép màn hình như ý cxd-archive.css; chip đầu thẳng lề tiêu đề */
  body.cxd nav.cxd-chips--hang{display:block}
  body.cxd nav.cxd-chips--hang .cxd-chips__nhan{display:block;margin:0 0 4px;padding:0 var(--s-4)}
  body.cxd nav.cxd-chips--hang li a{min-width:72px}
}
/* ô hãng gọn và ĐỀU: cùng khổ 96×40, logo nằm giữa, hãng chưa logo hiện tên */
body.cxd nav.cxd-chips--hang li a{width:96px;min-width:0;height:40px;min-height:40px;padding:0 8px;overflow:hidden;font-size:.8125rem}
body.cxd nav.cxd-chips--hang .cxd-hang-loc__logo{max-height:26px;max-width:80px}
body.cxd nav.cxd-chips.is-tran ul{cursor:grab}
body.cxd nav.cxd-chips ul.is-keo{cursor:grabbing;scroll-snap-type:none;user-select:none}
body.cxd nav.cxd-chips ul.is-keo a{pointer-events:none}
@media (max-width:849.98px){body.cxd nav.cxd-chips--hang li a{width:84px}}

/* ═══ 11. TRANG HÃNG + TRANG /thuong-hieu/ (04/11/2026) ═══ */
/* đầu trang hãng: logo nhỏ cạnh tên ở H1; mô tả là chữ thường, bỏ khối nền xám */
body.cxd .cxd-h1-logo{display:inline-flex;align-items:center;justify-content:center;height:48px;padding:6px 12px;margin-right:14px;border:1px solid var(--line);border-radius:12px;background:#fff;vertical-align:middle}
body.cxd .cxd-h1-logo img{display:block;max-height:34px;max-width:140px;width:auto;height:auto;object-fit:contain}
body.cxd .cxd-hang-dau{display:block;margin:0 0 var(--s-4);padding:0;background:none;border:0;max-width:72ch}
/* lưới hãng: mọi ô cùng khung — đầu ô cao 48px (logo hoặc tên), loại xe giữ chỗ 2 dòng, số xe sát đáy */
body.cxd .cxd-goc__luoi li{display:flex}
body.cxd .cxd-goc__o{flex:1;min-height:0;gap:8px}
body.cxd .cxd-goc__dau{display:flex;align-items:center;height:48px}
body.cxd .cxd-goc__dau img{display:block;max-height:40px;max-width:160px;width:auto;height:auto;object-fit:contain}
body.cxd .cxd-goc__dau strong{font:600 var(--fs-20)/1.2 var(--font-head)}
body.cxd .cxd-goc__o>span:not(.cxd-goc__dau){min-height:2.9em;line-height:1.45}
@media (max-width:849.98px){body.cxd .cxd-h1-logo{height:40px;padding:4px 10px;margin-right:10px}body.cxd .cxd-h1-logo img{max-height:28px;max-width:110px}}
/* nhãn đứng trước hàng điều kiện đang lọc (khuôn ghi đè woocommerce/cxd-product-filter/chips.php) */
body.cxd .cxd-pf__chip-nhan{display:flex;align-items:center;margin:0;padding:0 2px 0 0;font:600 .8125rem/1 var(--font-head);color:var(--ink-2);white-space:nowrap}

/* ═══ 12. THANH LỌC DÍNH GỌN MỘT HÀNG (04/11/2026) — máy tính 188→~144px, điện thoại 194→~150px ═══
 * Máy tính: nút lọc | vạch | "Bạn đã chọn: …" trên CÙNG một hàng, ở MỌI trạng thái (không đổi cao lúc bắt đầu dính → danh sách không giật).
 * Nhiều điều kiện → phần chip vuốt/cuộn ngang. Điện thoại: chip đã chọn 1 hàng vuốt ngang (trước xuống 2 hàng). */
body.cxd .cxd-pf__chiplist{flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;-webkit-overflow-scrolling:touch}
body.cxd .cxd-pf__chiplist::-webkit-scrollbar{display:none}
body.cxd .cxd-pf__chiplist>li{flex:none}
@media (min-width:850px){
  body.cxd .cxd-pf{display:flex;align-items:center;gap:12px}
  body.cxd .cxd-pf__form{flex:none}
  body.cxd .cxd-pf__chips{flex:1 1 auto;min-width:0;margin-top:0!important}
  body.cxd .cxd-pf__chips:has(li){padding-left:12px;border-left:1px solid var(--line)}
  body.cxd .cxd-pf a.cxd-pf__chip,body.cxd .cxd-pf a.cxd-pf__clearall{min-height:36px}
}
@media (max-width:849.98px){
  body.cxd .cxd-pf__chips:has(*){margin-top:4px}
  body.cxd .cxd-pf__chiplist{margin-left:calc(var(--s-4)*-1);margin-right:calc(var(--s-4)*-1);padding:0 var(--s-4)}
  body.cxd .cxd-pf a.cxd-pf__chip,body.cxd .cxd-pf a.cxd-pf__clearall{min-height:40px}
}

/* ═══ 13. SỬA THEO QC C2 04/11/2026 (qc/qc-04-11-2026-ui/PHIEU-LOI.md) ═══ */
/* UI-02: trang có thanh lọc dính — Chrome chọn điểm neo cuộn trong vùng tiêu đề/chip/thanh lọc, lúc header + thanh lọc chuyển sang dính
   nó bù scrollY đúng chiều cao header (nấc cuộn 100px nhảy 224px). Tắt điểm neo ở #main chỉ trên trang có thanh lọc. */
body.cxd:has(.cxd-pf) #main{overflow-anchor:none}
/* UI-06: khối bài viết — ô trong cùng hàng cao bằng nhau (col đã giãn, col-inner/box thì chưa) */
body.cxd .row > .col.post-item > .col-inner{height:100%}
body.cxd .row > .col.post-item .box-blog-post{height:100%;display:flex;flex-direction:column}
body.cxd .row > .col.post-item .box-blog-post > .box-text{flex:1 1 auto}
body.cxd .row > .col.post-item .box-blog-post > .box-image{flex:0 0 auto;width:100%} /* HQ-01: trong cột flex, ảnh bìa (padding-top %) bị co về 0×0 → giữ nguyên khổ */
/* UI-07: chỉ báo tiêu điểm cho ảnh sản phẩm và ô số lượng (theme/Flatsome để outline:none) */
body.cxd .product-images .product-gallery-slider:focus-visible,body.cxd .woocommerce-product-gallery__image a:focus-visible,body.cxd .product-images .image-tools a:focus-visible,body.cxd .product-thumbnails a:focus-visible,
body.cxd .quantity input:focus-visible,body.cxd .quantity .ux-quantity__button:focus-visible{outline:3px solid var(--cyan-700,#00719C)!important;outline-offset:2px} /* GN-01: #00AEEF chỉ ~2,5:1 trên nền trắng → xanh đậm đủ 3:1 như phần còn lại của web */

/* Giá KHÔNG khuyến mãi cũng màu đỏ như giá khuyến mãi (trước: đen — trông như chưa xong; Tình 16/11/2026).
   Giá thường là .amount nằm thẳng trong .price (giá giảm nằm trong <ins>, giá gốc trong <del> giữ màu xám). */
body.cxd :is(.cxd-sp__buy .price-wrapper,.product-small,.woocommerce-variation-price) .price>.amount,
body.cxd :is(.cxd-sp__buy .price-wrapper,.product-small,.woocommerce-variation-price) .price>.amount bdi{color:var(--danger)}

/* Tiêu đề khối trang chủ: dấu nghiêng 2 màu vàng–xanh như "Mục lục" blog (Tình 16/11/2026 — đè quyết định cũ "bỏ vàng trên nền trắng"
   cho riêng chỗ này; phần vàng có nửa xanh đậm bên dưới nên vẫn thấy rõ trên nền trắng). */
body .cxd-sec .section-title-main::before{background:linear-gradient(180deg,var(--brand-yellow) 0 62%,var(--brand-cyan) 62% 100%)}

/* Nhãn giảm giá: thẻ nghiêng đỏ chữ trắng (trước: viên vàng viền mực — đơn điệu, Tình 16/11/2026). Nghiêng như các chi tiết thương hiệu
   (ô biểu tượng cam kết, dấu tiêu đề), cùng tông với giá bán màu đỏ. Chữ trắng trên #C9201F ≈ 5,6:1. Chỉ nhãn giảm giá (.on-sale). */
body.cxd .badge .badge-inner.on-sale,body.cxd .product-small .badge .badge-inner.on-sale{height:24px;padding:0 10px;border-radius:6px;
  background:linear-gradient(135deg,#F0453B 0%,#C9201F 100%)!important;color:#fff;font:800 12.5px/1 var(--font-head);letter-spacing:.02em;
  box-shadow:0 4px 10px -3px rgba(201,32,31,.55)!important;border:0;transform:skewX(-10deg)}
body.cxd .badge .badge-inner.on-sale .onsale{display:inline-block;color:#fff;transform:skewX(10deg)}
body.cxd .cxd-sp__gal .badge .badge-inner.on-sale{height:28px;padding:0 12px;font-size:14px}
@media (max-width:549px){body.cxd .product-small .badge .badge-inner.on-sale{height:21px;padding:0 8px;font-size:11.5px}}
