/* ═══════════════════════════════════════════════════════════════════════════
   CHỢ XE ĐẠP — HỆ THIẾT KẾ  ·  tối giản hiện đại
   Nguồn đặc tả: 03-trien-khai/00-tai-lieu/02-HE-THONG-THIET-KE.md (§1 token · §3.0 phong cách · §4 trang)
   Thứ tự nạp: Flatsome → cxd-fonts.css → TỆP NÀY. Mọi selector bắt đầu bằng body.cxd để thắng Flatsome
   mà KHÔNG phải dùng !important (chỗ nào bắt buộc dùng thì có chú thích vì sao).
   ⛔ Đừng thêm mã màu rời — chỉ dùng biến ở :root. Đổi token thì phải TÍNH LẠI bảng tương phản §1.3.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── 0. TOKEN ─────────────────────────────────────────────────────────────── */
:root{
  /* thương hiệu — KHÓA, đo từ CHO-XE-DAP-LOGO.pdf */
  --brand-yellow:#FFF200; --brand-cyan:#00AEEF; --brand-black:#231F20;
  /* sắc độ phái sinh — chỉ cho trạng thái */
  --cyan-700:#00719C; --cyan-50:#E6F7FD; --yellow-600:#D9CE00; --yellow-50:#FFFDE6;
  /* trung tính */
  --ink:#231F20; --ink-2:#55525A; --ink-3:#6E6A73; --line:#E4E2E6; --surface:#FFFFFF; --bg:#FAFAFB;
  /* v2 thể thao (15/10/2026): nền tối của banner/dải tối · ô ảnh sản phẩm (ảnh nền trắng hoà vào bằng multiply) · chữ phụ trên nền tối */
  --night:#151314; --night-2:#211E1F; --tile:#F1F1EE; --on-night-2:#C9C5CC;
  /* ngữ nghĩa */
  --ok:#16794C; --ok-bg:#E9F6EF; --warn:#9A6400; --warn-bg:#FFF6E5; --danger:#C02B2B; --danger-bg:#FCEDED;

  /* chữ — Be Vietnam Pro (tiêu đề) · Nunito Sans (thân). Cả hai ĐỦ ký tự tiếng Việt; Rubik thì không. */
  --font-head:'Be Vietnam Pro',system-ui,-apple-system,'Segoe UI',sans-serif;
  --font-body:'Nunito Sans',system-ui,-apple-system,'Segoe UI',sans-serif;
  /* thang 1.25 */
  --fs-12:.75rem; --fs-14:.875rem; --fs-16:1rem; --fs-20:1.25rem; --fs-25:1.5625rem; --fs-31:1.9375rem; --fs-39:2.4375rem; --fs-49:3.0625rem;
  --lh-tight:1.2; --lh-body:1.6;

  /* khoảng cách — nhịp 4/8 */
  --s-1:4px; --s-2:8px; --s-3:12px; --s-4:16px; --s-6:24px; --s-8:32px; --s-12:48px; --s-16:64px;
  /* hình khối */
  --r-sm:4px; --r-md:8px; --r-lg:12px; --r-pill:999px;
  --shadow-1:0 1px 3px rgba(35,31,32,.08);
  --shadow-2:0 8px 24px rgba(35,31,32,.12);
  --container:1280px;
  /* chuyển động — ngắn, chỉ để giải thích (§3.0 quy tắc 6) */
  --t-fast:150ms; --t-base:220ms; --ease:cubic-bezier(.2,.7,.2,1);
  /* tầng — một thang duy nhất */
  --z-sticky:40; --z-mega:60; --z-bottomnav:80; --z-overlay:100;
  /* kích thước cố định để KHÔNG nhảy bố cục khi cuộn (CLS) */
  --h-header-m:60px; --h-bottomnav:64px;
}

/* ── 1. NỀN TẢNG ──────────────────────────────────────────────────────────── */
html{scroll-behavior:smooth}
body.cxd{background:var(--bg);color:var(--ink);font-family:var(--font-body);font-size:var(--fs-16);line-height:var(--lh-body);
  -webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
body.cxd h1,body.cxd h2,body.cxd h3,body.cxd h4,body.cxd h5,body.cxd h6,
body.cxd .heading-font,body.cxd .nav>li>a,body.cxd .button,body.cxd .price,body.cxd .alt-font{font-family:var(--font-head)}
body.cxd h1,body.cxd h2,body.cxd h3,body.cxd h4{color:var(--ink);font-weight:600;line-height:var(--lh-tight);letter-spacing:-.01em;
  text-transform:none;text-wrap:balance}
body.cxd h1{font-size:var(--fs-39)} body.cxd h2{font-size:var(--fs-31)} body.cxd h3{font-size:var(--fs-25)} body.cxd h4{font-size:var(--fs-20)}
@media (max-width:549px){body.cxd h1{font-size:var(--fs-31)} body.cxd h2{font-size:var(--fs-25)} body.cxd h3{font-size:var(--fs-20)}}
body.cxd p{text-wrap:pretty}
/* ⛔ KHÔNG ép font-size cho p/li/td bằng !important — nó nuốt sạch thứ bậc chữ (skill-flatsome §19). */
body.cxd a{color:var(--cyan-700);transition:color var(--t-fast) var(--ease)}
body.cxd a:hover{color:var(--ink)}
body.cxd ::selection{background:var(--brand-yellow);color:var(--ink)}
body.cxd img{height:auto}
/* tiêu điểm bàn phím — luôn nhìn thấy (WCAG 2.4.7). Nền tối thì đổi sang vàng. */
body.cxd :focus-visible{outline:3px solid var(--cyan-700);outline-offset:2px;border-radius:var(--r-sm)}
body.cxd .dark :focus-visible,body.cxd #footer :focus-visible{outline-color:var(--brand-yellow)}
.cxd-sr-only{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
body.cxd .container,body.cxd .row{max-width:var(--container)}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}
  body.cxd *,body.cxd *::before,body.cxd *::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}

/* ── 2. NÚT — ĐÚNG 3 KIỂU (§3 bảng khác biệt) ────────────────────────────────
   chính = nền vàng + chữ ĐEN · phụ = viền đen · chữ = cyan-700.
   ⛔ Chữ trắng trên vàng hoặc cyan là CẤM (1,17:1 / 2,53:1). */
body.cxd .button,body.cxd button.button,body.cxd input[type=submit].button,body.cxd .wp-element-button{
  display:inline-flex;align-items:center;justify-content:center;gap:var(--s-2);text-align:center;
  font-weight:600;font-size:var(--fs-16);letter-spacing:0;text-transform:none;min-height:44px;line-height:1.2;
  padding:0 var(--s-6);border-radius:var(--r-md);box-shadow:none;text-shadow:none;margin-bottom:0;
  transition:background-color var(--t-fast) var(--ease),color var(--t-fast) var(--ease),border-color var(--t-fast) var(--ease),box-shadow var(--t-fast) var(--ease)}
/* ① chính */
body.cxd .button.primary,body.cxd .button.alt,body.cxd .single_add_to_cart_button,body.cxd .add_to_cart_button,
body.cxd .checkout-button,body.cxd .woocommerce-mini-cart__buttons .button.checkout,body.cxd .woocommerce-message .button,body.cxd #place_order,body.cxd .wp-element-button,body.cxd .wp-block-search__button{background:var(--brand-yellow);color:var(--ink);border:1.5px solid var(--brand-yellow)}
body.cxd .button.primary:hover,body.cxd .button.alt:hover,body.cxd .single_add_to_cart_button:hover,body.cxd .add_to_cart_button:hover,
body.cxd .checkout-button:hover,body.cxd .woocommerce-mini-cart__buttons .button.checkout:hover,body.cxd .woocommerce-message .button:hover,body.cxd #place_order:hover,body.cxd .wp-element-button:hover{background:var(--yellow-600);border-color:var(--yellow-600);color:var(--ink);box-shadow:var(--shadow-1)}
/* ② phụ */
body.cxd .button.secondary,body.cxd .button.is-outline,body.cxd .button.secondary.is-outline,body.cxd .woocommerce-mini-cart__buttons .button:not(.checkout){background:transparent;color:var(--ink);border:1.5px solid var(--ink)}
body.cxd .button.secondary:hover,body.cxd .button.is-outline:hover,body.cxd .woocommerce-mini-cart__buttons .button:not(.checkout):hover{background:var(--ink);color:#fff;border-color:var(--ink)}
/* ③ chữ */
body.cxd .button.is-link,body.cxd .button.is-underline{background:transparent;border:0;color:var(--cyan-700);padding:0;min-height:44px}
body.cxd .button.is-link:hover,body.cxd .button.is-underline:hover{color:var(--ink);background:transparent}
body.cxd .wp-block-search__button{white-space:nowrap}
body.cxd .button[disabled],body.cxd .button.disabled{opacity:.45;cursor:not-allowed;box-shadow:none}
/* nút nhỏ vẫn đủ vùng chạm 44px (chiều cao), không đổi chữ */
body.cxd .button.is-small,body.cxd .button.is-xsmall{min-height:44px;font-size:var(--fs-14)}

/* ── 3. BIỂU MẪU ──────────────────────────────────────────────────────────── */
body.cxd input[type=text],body.cxd input[type=email],body.cxd input[type=tel],body.cxd input[type=search],body.cxd input[type=number],
body.cxd input[type=password],body.cxd select,body.cxd textarea{min-height:44px;border:1.5px solid var(--line);border-radius:var(--r-md);background:var(--surface);
  color:var(--ink);font-size:var(--fs-16);box-shadow:none;padding:0 var(--s-4);transition:border-color var(--t-fast) var(--ease),box-shadow var(--t-fast) var(--ease)}
body.cxd textarea{padding:var(--s-3) var(--s-4)}
body.cxd input:hover,body.cxd select:hover,body.cxd textarea:hover{border-color:var(--ink-3)}
body.cxd input:focus,body.cxd select:focus,body.cxd textarea:focus{border-color:var(--cyan-700);box-shadow:0 0 0 3px var(--cyan-50);outline:0}
body.cxd ::placeholder{color:var(--ink-3);opacity:1}
body.cxd label{font-weight:600;font-size:var(--fs-14);color:var(--ink)}
body.cxd .wpcf7-not-valid-tip,body.cxd .woocommerce-error,body.cxd .required{color:var(--danger)}
body.cxd .wpcf7-not-valid{border-color:var(--danger)}

/* ── 4. NHÃN / HUY HIỆU — chỉ hiện khi có giá khuyến mãi THẬT ───────────────── */
body.cxd .badge-container{margin:var(--s-2) 0 0 var(--s-2)}
body.cxd .badge .badge-inner{background:var(--brand-yellow);color:var(--ink);font-family:var(--font-head);font-weight:700;font-size:var(--fs-12);
  border-radius:var(--r-pill);padding:var(--s-1) var(--s-3);line-height:1.4;letter-spacing:0;text-transform:none}
body.cxd .badge .badge-inner.on-sale{background:var(--brand-yellow);color:var(--ink)}
body.cxd .badge.badge-circle{background:transparent}
body.cxd .out-of-stock-label{background:var(--ink);color:#fff;border-radius:var(--r-pill)}

/* ── 5. THẺ SẢN PHẨM — không viền, không bóng khi nghỉ ───────────────────── */
body.cxd .product-small.box,body.cxd .product-small .box{border:0;box-shadow:none;background:transparent;border-radius:var(--r-lg);overflow:visible}
body.cxd .product-small .box-image{background:var(--surface);border-radius:var(--r-lg);overflow:hidden;aspect-ratio:4/3}
body.cxd .product-small .box-image{position:relative;width:100%;margin:0;flex:none}
body.cxd .product-small .box-image .image-none,body.cxd .product-small .box-image .image-cover{padding-top:0!important;position:absolute;inset:0}
/* cover, không phải contain: ảnh của khách TỈ LỆ KHÁC NHAU (1600×1200 · 640×479 · 800×505 · 600×360) và nhiều tấm có nền phố; contain sẽ để lộ dải trắng không đều */
body.cxd .product-small .box-image img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center;transition:transform var(--t-base) var(--ease)}
/* ảnh NGANG (tỉ lệ >1,4 — xem cxd-shop.php): contain, để không cắt mất hai đầu xe; nền trắng cho dải thừa */
body.cxd .product-small .box-image img[data-cxd-ngang]{object-fit:contain;background:#fff}
body.cxd .product-small:hover .box-image img{transform:scale(1.03)}
body.cxd .product-small .box-text{padding:var(--s-3) var(--s-1) var(--s-2);text-align:left}
body.cxd .product-small .name.product-title,body.cxd .product-small .title-wrapper{margin:0}
body.cxd .product-small .name a{font-family:var(--font-head);font-weight:600;font-size:var(--fs-16);line-height:22px;min-height:44px;color:var(--ink);text-transform:none;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
  text-wrap:wrap /* tên hàng hoá do khách nhập: KHÔNG balance (skill-flatsome §8 ngoại lệ) */}
body.cxd .product-small .name a:hover{color:var(--cyan-700)}
body.cxd .product-small .price-wrapper{margin-top:var(--s-2)}
body.cxd .price,body.cxd .price .amount{font-family:var(--font-head);font-weight:700;font-size:var(--fs-20);color:var(--ink);line-height:1.2}
body.cxd .price del,body.cxd .price del .amount{font-weight:500;font-size:var(--fs-14);color:var(--ink-3)}
body.cxd .price ins{background:transparent;text-decoration:none}
body.cxd .star-rating{font-size:var(--fs-12);margin:var(--s-1) 0 0}
body.cxd .star-rating span::before{color:var(--ink)}
/* nút thêm giỏ: hiện khi rê chuột trên máy tính; LUÔN hiện trên điện thoại (không có rê chuột) */
body.cxd .product-small .add-to-cart-button{margin-top:var(--s-3)}
@media (hover:hover) and (min-width:850px){
  body.cxd .product-small .add-to-cart-button{opacity:0;transform:translateY(4px);transition:opacity var(--t-base) var(--ease),transform var(--t-base) var(--ease)}
  body.cxd .product-small:hover .add-to-cart-button,body.cxd .product-small:focus-within .add-to-cart-button{opacity:1;transform:none}
  body.cxd .product-small:hover .box-image{box-shadow:var(--shadow-2)}
}

/* ── 6. HEADER — 2 TẦNG ───────────────────────────────────────────────────── */
body.cxd #header .header-wrapper{background:var(--surface)}
body.cxd #masthead.header-main{background:var(--surface);border-bottom:0}   /* một đường kẻ duy nhất: dưới tầng menu */
body.cxd #masthead .header-inner{gap:var(--s-6)}
/* logo: Flatsome in width=168 height=76 cố định → ép tỉ lệ thật của SVG (3,18:1), nếu không logo bị méo */
body.cxd #logo{width:auto;flex:0 0 auto}
body.cxd #logo a{display:flex;align-items:center;min-height:44px}
body.cxd #logo img,body.cxd #logo .header_logo{width:auto;height:auto;max-width:none;max-height:52px;aspect-ratio:489/154;display:block}
body.cxd .header-logo-dark,body.cxd .header-logo-sticky{display:none}   /* chỉ dùng 1 logo — 3 ảnh trùng là rác */
/* tìm kiếm: nằm GIỮA, rộng, không giấu sau kính lúp */
body.cxd #masthead .flex-left.flex-grow{justify-content:center}
body.cxd #masthead .header-search-form{width:100%;max-width:560px;margin:0 auto}
body.cxd #masthead .searchform-wrapper .flex-row{gap:0}
body.cxd #masthead .search-field{min-height:44px;border-radius:var(--r-md) 0 0 var(--r-md);border-right:0;background:var(--bg);margin:0}
body.cxd .button.ux-search-submit,body.cxd .ux-search-submit{background:var(--brand-yellow);color:var(--ink);border:1.5px solid var(--brand-yellow);min-height:44px;width:48px;padding:0;
  border-radius:0 var(--r-md) var(--r-md) 0;margin:0}
body.cxd .button.ux-search-submit:hover,body.cxd .ux-search-submit:hover{background:var(--yellow-600);border-color:var(--yellow-600)}
body.cxd .ux-search-submit .icon-search{color:var(--ink);font-size:18px}
/* hotline + cửa hàng + giỏ — cụm hành động bên phải: rõ, tương phản cao, ≥44px (UI/UX 21/10/2026) */
body.cxd .header-contact-wrapper a{color:var(--ink);font-family:var(--font-head);font-weight:700;font-size:1.125rem;text-transform:none;letter-spacing:0;min-height:48px;display:inline-grid;grid-template-columns:auto auto;grid-template-rows:auto auto;column-gap:var(--s-3);align-items:center;line-height:1.15;white-space:nowrap}
body.cxd .header-contact-wrapper a::before{content:"Hotline tư vấn";grid-column:2;grid-row:1;align-self:end;font-family:var(--font-body);font-weight:500;font-size:var(--fs-12);line-height:1.2;color:var(--ink-2)}
body.cxd .header-contact-wrapper a span{grid-column:2;grid-row:2;align-self:start}
body.cxd .header-contact-wrapper .icon-phone{grid-column:1;grid-row:1/3;width:44px;height:44px;border-radius:50%;background:var(--brand-yellow);color:var(--ink);font-size:20px!important;display:inline-flex;align-items:center;justify-content:center;transition:background var(--t-fast) var(--ease)}
body.cxd .header-contact-wrapper a:hover{color:var(--ink)}
body.cxd .header-contact-wrapper a:hover .icon-phone{background:var(--yellow-600)}
body.cxd .header-button-1 .button.is-outline{min-height:44px;padding:0 var(--s-6);font-size:var(--fs-14);font-weight:700;color:var(--ink);background:transparent;border:2px solid var(--ink);transition:background var(--t-fast) var(--ease),color var(--t-fast) var(--ease)}
body.cxd .header-button-1 .button.is-outline:hover{background:var(--ink);color:#fff;border-color:var(--ink)}
body.cxd .header-cart-title{display:none}
body.cxd .cart-item .header-cart-link{width:48px;height:48px;min-width:48px;min-height:48px;padding:0;border-radius:50%;background:var(--ink);display:inline-flex;align-items:center;justify-content:center;transition:background var(--t-fast) var(--ease)}
body.cxd .cart-item .header-cart-link:hover{background:#3A3538}
body.cxd .cart-item .cart-icon,body.cxd .cart-item .cart-icon::before{color:var(--brand-yellow);border-color:var(--brand-yellow)}   /* túi vàng trên nền đen: tương phản ~16:1 */
body.cxd .cart-item .cart-icon strong{background:var(--brand-yellow);color:var(--ink);border:0;font-family:var(--font-head);font-weight:700;font-size:var(--fs-12)}
body.cxd .cart-item.has-dropdown::before,body.cxd .cart-item.has-dropdown::after{display:none!important}   /* mũi tên khung giỏ của Flatsome đè khuyết đáy nút tròn */
body.cxd .cart-item .cart-icon{margin:0;transform:scale(.85);transform-origin:center}   /* margin:0 — Flatsome để lề trái 10px làm túi lệch phải */   /* túi nằm gọn trong nút, chừa lề */
body.cxd .cart-item.has-dropdown .nav-dropdown{margin-top:var(--s-2)}
body.cxd .header-contact-wrapper a:focus-visible,body.cxd .header-button-1 .button:focus-visible,body.cxd .cart-item .header-cart-link:focus-visible{outline:3px solid var(--cyan-700);outline-offset:3px}
/* tầng 2 — menu */
body.cxd #wide-nav.header-bottom{background:var(--surface);border-bottom:1px solid var(--line);min-height:48px}
body.cxd #wide-nav .header-bottom-nav>li:first-child>a.nav-top-link{padding-left:0}   /* chữ mục đầu thẳng mép logo — KHÔNG dùng lề âm: nó làm mục cuối rớt dòng */
body.cxd #wide-nav .header-bottom-nav>li:first-child>a.nav-top-link::after{left:0}
body.cxd #wide-nav .header-bottom-nav{flex-wrap:nowrap}
body.cxd #wide-nav .nav>li>a.nav-top-link{font-family:var(--font-head);font-weight:500;font-size:var(--fs-14);color:var(--ink);text-transform:none;letter-spacing:0;
  min-height:48px;padding:0 var(--s-4);display:inline-flex;align-items:center;position:relative}
body.cxd #wide-nav .nav>li>a.nav-top-link::after{content:"";position:absolute;left:var(--s-4);right:var(--s-4);bottom:0;height:3px;background:var(--brand-yellow);
  transform:scaleX(0);transform-origin:left;transition:transform var(--t-base) var(--ease)}
body.cxd #wide-nav .nav>li:hover>a.nav-top-link::after,body.cxd #wide-nav .nav>li.active>a.nav-top-link::after,
body.cxd #wide-nav .nav>li.current-menu-item>a.nav-top-link::after{transform:scaleX(1)}
body.cxd #wide-nav .nav>li>a.nav-top-link:hover,body.cxd #wide-nav .nav>li.active>a.nav-top-link{color:var(--ink)}
body.cxd #wide-nav .icon-angle-down{font-size:12px;opacity:.6;margin-left:var(--s-1)}

/* ── 7. MEGA MENU — cơ chế gốc Flatsome, 2–3 cột, không ảnh, không bóng nặng ─── */
body.cxd .menu-item-design-container-width>.nav-dropdown{background:var(--surface);border:1px solid var(--line);border-top:0;border-radius:0 0 var(--r-lg) var(--r-lg);
  box-shadow:var(--shadow-2);padding:var(--s-6) var(--s-8);z-index:var(--z-mega)}
/* Mega ÔM nội dung và neo dưới mục cha. !important vì Flatsome ghi inline `inset` + `width:1250px` bằng JS để trải toàn container
   — với 1–3 cột ngắn nó để lại một mảng trắng khổng lồ (thấy được khi chụp màn hình 02/10). */
body.cxd #wide-nav .menu-item-design-container-width>.nav-dropdown{width:max-content!important;min-width:280px;max-width:min(960px,calc(100vw - 32px));left:0!important;right:auto!important}
/* mục cuối thanh menu (Dòng xe): ô xổ neo mép PHẢI để không tràn ra ngoài màn hình (đo 03/10/2026: tràn 1 cột ở 1440px) */
body.cxd #wide-nav .header-nav>li.menu-item-design-container-width:last-child>.nav-dropdown{left:auto!important;right:0!important}
body.cxd .nav-dropdown-col{padding-right:var(--s-8)}
body.cxd .nav-dropdown-col:last-child{padding-right:0}
body.cxd .nav-dropdown-col>a{font-family:var(--font-head);font-weight:600;font-size:var(--fs-14);color:var(--ink-3);text-transform:none;letter-spacing:0;
  border:0;padding:0 0 var(--s-2);pointer-events:none;cursor:default}      /* tiêu đề cột — không phải liên kết */
body.cxd .nav-column li>a{font-family:var(--font-body);font-weight:400;font-size:var(--fs-16);color:var(--ink-2);text-transform:none;letter-spacing:0;
  padding:var(--s-2) 0;min-height:44px;display:flex;align-items:center;border:0;transition:color var(--t-fast) var(--ease),transform var(--t-fast) var(--ease)}
body.cxd .nav-column li>a:hover{color:var(--cyan-700);transform:translateX(2px)}
body.cxd .nav-dropdown li{border:0}
body.cxd .nav-dropdown-default{border-radius:var(--r-md);box-shadow:var(--shadow-2);border:1px solid var(--line)}
/* ⛔ Cột BÊN TRONG mega cũng mang class nav-dropdown-default → không gỡ thì mỗi cột có viền + bóng riêng (đo được, 02/10) */
body.cxd .nav-column.nav-dropdown-default,body.cxd .nav-dropdown-col .sub-menu{border:0;box-shadow:none;border-radius:0;background:transparent;padding:0}
body.cxd #header .top-divider{display:none}   /* đường kẻ thừa của Header Builder — còn đúng một đường dưới tầng menu */

/* ── 8. FOOTER — nền đen thương hiệu, chữ trắng ───────────────────────────── */
body.cxd #footer{background:var(--ink);color:#fff}
body.cxd .cxd-footer{background:var(--ink)}
body.cxd .cxd-footer,body.cxd .cxd-footer p,body.cxd .cxd-footer li{color:#fff}
body.cxd .cxd-footer a{color:#fff;text-decoration:none;transition:color var(--t-fast) var(--ease)}
body.cxd .cxd-footer a:hover{color:var(--brand-yellow)}
body.cxd .cxd-footer .cxd-ft-title{font-family:var(--font-head);font-weight:600;font-size:var(--fs-14);color:#C9C6CD;margin:0 0 var(--s-3);letter-spacing:0;text-transform:none}
body.cxd .cxd-footer ul{list-style:none;margin:0;padding:0}
body.cxd .cxd-footer ul li{margin:0}
body.cxd .cxd-footer ul li a{display:inline-flex;align-items:center;min-height:44px;min-width:44px}
body.cxd .cxd-footer .cxd-ft-logo{display:inline-block;min-height:44px}
body.cxd .cxd-footer .cxd-ft-hotline{font-family:var(--font-head);font-weight:700;font-size:var(--fs-20);color:var(--brand-yellow)}
body.cxd .cxd-footer .cxd-ft-note{color:#C9C6CD;font-size:var(--fs-14)}
body.cxd .cxd-footer a.cxd-diachi,body.cxd .cxd-footer .cxd-diachi{display:inline-block;max-width:28em;padding:0;font-size:var(--fs-14);line-height:1.45;color:#fff}
body.cxd .cxd-footer p.cxd-ft-dong{display:flex;flex-direction:column;align-items:flex-start;gap:2px;margin:12px 0 0}
body.cxd .cxd-footer .cxd-ft-nhan{color:#C9C6CD;font-size:var(--fs-14);line-height:1.3}
body.cxd .footer-absolute,body.cxd .absolute-footer{background:var(--ink);color:#C9C6CD;border-top:1px solid rgba(255,255,255,.12);font-size:var(--fs-14)}
body.cxd .absolute-footer a{color:#fff}

/* ── 9. THANH ĐIỀU HƯỚNG ĐÁY — chỉ điện thoại, 5 mục (≤5: ui-ux-pro-max `bottom-nav-limit`) ── */
.cxd-bottomnav{display:none}
@media (max-width:849px){
  /* chừa chỗ cho thanh đáy ở CHÂN FOOTER (không phải body) để nền đen liền mạch, không lộ dải sáng dưới footer */
  body.cxd #footer{padding-bottom:calc(var(--h-bottomnav) + env(safe-area-inset-bottom))}
  .cxd-bottomnav{display:grid;grid-template-columns:repeat(5,1fr);position:fixed;left:0;right:0;bottom:0;z-index:var(--z-bottomnav);
    height:calc(var(--h-bottomnav) + env(safe-area-inset-bottom));padding-bottom:env(safe-area-inset-bottom);
    background:var(--surface);border-top:1px solid var(--line);box-shadow:0 -4px 16px rgba(35,31,32,.06)}
  body.cxd .cxd-bottomnav a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-height:44px;color:var(--ink-2);
    font-family:var(--font-head);font-weight:500;font-size:var(--fs-12);line-height:1.2;text-decoration:none;position:relative;
    transition:color var(--t-fast) var(--ease)}
  body.cxd .cxd-bottomnav a svg{width:24px;height:24px;stroke:currentColor;fill:none;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
  body.cxd .cxd-bottomnav a[aria-current=page]{color:var(--ink);font-weight:600}
  body.cxd .cxd-bottomnav a[aria-current=page]::before{content:"";position:absolute;top:0;left:30%;right:30%;height:3px;background:var(--brand-yellow);border-radius:0 0 3px 3px}
  body.cxd .cxd-bottomnav a:active{background:var(--bg)}
  body.cxd .cxd-bottomnav a.cxd-goi{color:var(--ink)}
  body.cxd .cxd-bottomnav a.cxd-goi svg{stroke:var(--cyan-700)}
  body.cxd #back-to-top,body.cxd .back-to-top{bottom:calc(var(--h-bottomnav) + 16px + env(safe-area-inset-bottom))!important} /* !important: Flatsome ghi vị trí inline */
}

/* ── 10. HEADER ĐIỆN THOẠI + MENU TRƯỢT ───────────────────────────────────── */
@media (max-width:849px){
  body.cxd #masthead.header-main{min-height:var(--h-header-m)}
  body.cxd #masthead .header-inner{gap:var(--s-2)}
  body.cxd #logo img,body.cxd #logo .header_logo{max-height:40px}
  body.cxd #masthead .mobile-nav a.nav-top-link,body.cxd #masthead .nav-icon a{min-width:44px;min-height:44px;display:inline-flex;align-items:center;justify-content:center;color:var(--ink)}
  body.cxd #masthead .icon-menu,body.cxd #masthead .icon-search{font-size:22px}
}
body.cxd .mobile-sidebar,body.cxd .off-canvas .sidebar-menu{background:var(--surface)}
body.cxd .nav-sidebar.nav-vertical>li>a{font-family:var(--font-head);font-weight:600;font-size:var(--fs-16);color:var(--ink);text-transform:none;letter-spacing:0;min-height:48px;display:flex;align-items:center}
body.cxd .nav-sidebar.nav-vertical>li ul li a{font-family:var(--font-body);font-weight:400;color:var(--ink-2);text-transform:none;min-height:44px;display:flex;align-items:center}
body.cxd .nav-sidebar.nav-vertical li{border-color:var(--line)}
body.cxd #main-menu-overlay,body.cxd .main-menu-overlay{background:rgba(35,31,32,.5)}   /* scrim 50% — đủ tách lớp nổi */

/* ── 11. DẢI KHOẢNG CÁCH GIỮA CÁC KHỐI TRANG — thưa (§3: cách khối 48–64px) ──── */
body.cxd .section{padding-top:var(--s-12);padding-bottom:var(--s-12)}
@media (max-width:549px){body.cxd .section{padding-top:var(--s-8);padding-bottom:var(--s-8)}}

/* ── 12. BREADCRUMB + TIÊU ĐỀ TRANG — viết hoa chữ đầu, không IN HOA toàn bộ (§3 bảng khác biệt) ── */
body.cxd .breadcrumbs,body.cxd .woocommerce-breadcrumb{font-family:var(--font-body);font-size:var(--fs-14);text-transform:none;letter-spacing:0;font-weight:400;color:var(--ink-3)}
body.cxd .breadcrumbs a{color:var(--ink-2)} body.cxd .breadcrumbs a:hover{color:var(--cyan-700)}
body.cxd .breadcrumbs .divider{opacity:.5;margin:0 var(--s-2)}
body.cxd .shop-page-title .page-title-inner,body.cxd .page-title-inner{padding-top:var(--s-6);padding-bottom:var(--s-4)}
body.cxd .woocommerce-result-count{font-size:var(--fs-14);color:var(--ink-3)}

/* ── 13. GỌN: bỏ "Xem nhanh" (không có trong đặc tả; chữ cyan trên vàng trái quy tắc "vàng chỉ đi với chữ đen") ── */
body.cxd .quick-view{display:none}
/* Vùng bấm ≥44px MÀ KHÔNG đổi bố cục: đệm 11px + lề âm 11px (kỹ thuật đệm-bù). Đo 02/10: tên SP cao 22px, breadcrumb 19px. */
/* vùng chạm tên SP: 2 dòng × 22px = 44px — min-height thay vì đệm, vì đệm làm line-clamp lộ dòng thứ 3 */
body.cxd .breadcrumbs a{display:inline-block;padding:12px 0;margin:-12px 0}

/* ── 14. TIÊU ĐỀ TRANG SHOP + CĂN GIÁ ──────────────────────────────────── */
body.cxd .cxd-page-title{font:700 clamp(24px,3vw,32px)/1.25 var(--font-head,'Be Vietnam Pro',sans-serif);color:var(--ink,#231F20);margin:8px 0 24px;text-wrap:balance}
/* giá luôn nằm đáy thẻ → hai thẻ cùng hàng không lệch dòng khi một thẻ có giá cũ */
body.cxd .products>.col>.col-inner{display:flex;flex-direction:column;height:100%}
body.cxd .products .product-small .box{display:flex;flex-direction:column;flex:1}
body.cxd .products .product-small .box-text{display:flex;flex-direction:column;flex:1}
body.cxd .products .product-small .box-text .price-wrapper{margin-top:auto}
/* thẻ SP trang chủ (.cxd-sp, không nằm trong .products) — cùng cách căn hàng; QC 17/10 THE-01 */
body.cxd .cxd-sp .row[class*="-columns-"]>.col>.col-inner{display:flex;flex-direction:column;height:100%}
body.cxd .cxd-sp .row[class*="-columns-"] .product-small .box{display:flex;flex-direction:column;flex:1}
body.cxd .cxd-sp .row[class*="-columns-"] .product-small .box-text{display:flex;flex-direction:column;flex:1}
body.cxd .cxd-sp .row[class*="-columns-"] .product-small .box-text .price-wrapper{margin-top:auto}
body.cxd .cxd-lien-he{font:600 16px/1.4 var(--font-head,'Be Vietnam Pro',sans-serif);color:var(--cyan-700,#00719C)}

/* ── 15. HEADER DÍNH — logo giữ cỡ đã chốt (Flatsome tự phình logo theo header_height_sticky) ───────── */
/* logo lúc dính là <img class="header-logo-sticky"> riêng của Flatsome, max-height = header_height_sticky → ép nhỏ hơn để có lề trên/dưới */
body.cxd .stuck #logo img.header-logo-sticky{max-height:40px!important;width:auto;height:auto;margin:0} /* !important: Flatsome in inline .stuck #logo img{max-height:…!important} */

/* ── 16. "XEM THÊM / THU GỌN" DÙNG CHUNG — .cxd-more[data-cxd-more] (JS: cxd-more.js) ───────────────── */
body.cxd .cxd-more.is-gon{max-height:var(--cxd-more-h,12em);overflow:hidden;position:relative}
body.cxd .cxd-more.is-gon::after{content:"";position:absolute;left:0;right:0;bottom:0;height:9em;background:linear-gradient(to bottom,rgba(255,255,255,0) 0%,rgba(255,255,255,.45) 22%,rgba(255,255,255,.9) 58%,#fff 80%);pointer-events:none}
body.cxd .cxd-more.is-gon.is-mo{max-height:none;overflow:visible}
body.cxd .cxd-more.is-gon.is-mo::after{display:none}
body.cxd .cxd-more__btn{position:relative;z-index:1;display:flex;align-items:center;justify-content:center;gap:8px;width:max-content;max-width:calc(100% - 32px);min-height:44px;margin:16px auto 8px;padding:0 22px;border:1.5px solid var(--ink,#231F20);border-radius:var(--r-md,8px);background:#fff;box-shadow:0 8px 22px rgba(35,31,32,.08);font:600 var(--fs-14)/1 var(--font-head);color:var(--ink,#231F20);text-transform:none;letter-spacing:0;cursor:pointer}
body.cxd .cxd-more.is-gon:not(.is-mo)+.cxd-more__btn{margin-top:-22px}
body.cxd .cxd-more__btn:hover{background:var(--ink,#231F20);color:#fff}
body.cxd .cxd-more__btn svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round;transition:transform var(--t-base) var(--ease)}
body.cxd .cxd-more__btn[aria-expanded="true"] svg{transform:rotate(180deg)}

/* ── 17. LIGHTBOX (Magnific) — nút đóng đủ vùng chạm 44px; nhãn "Đóng" do cxd-a11y.js gắn ──────────── */
body.cxd .mfp-wrap .mfp-close{width:44px;height:44px;line-height:44px}

/* ── 18. NÚT XOÁ KHỎI GIỎ (giỏ trượt + trang giỏ hàng) — vùng chạm 44px, vòng tròn 24px vẽ bằng ::before ──
   Flatsome vẽ viền ngay trên thẻ <a> 24×24 nên không nới vùng chạm được; ẩn chữ × gốc (font-size:0) và vẽ lại. */
body.cxd a.remove{display:flex;align-items:center;justify-content:center;width:44px;height:44px;border:0;border-radius:0;background:none;font-size:0!important;line-height:1!important}
body.cxd a.remove::before{content:"\00d7";display:flex;align-items:center;justify-content:center;width:24px;height:24px;border:2px solid currentColor;border-radius:50%;font:700 19px/1 var(--font-head)}


/* §19 — vùng chạm liên kết "(n đánh giá)" cạnh sao: ≥44px (QC chéo cxd-reviews QC-01) */
.woocommerce-review-link{display:inline-flex;align-items:center;min-height:44px;padding:0 4px}

/* §20 — nút Gửi của Contact Form 7: chữ tối trên nền vàng (trắng trên vàng bị cấm), vùng chạm ≥44px */
body.cxd .wpcf7 input.wpcf7-submit,body.cxd .wpcf7 .wpcf7-submit{color:var(--ink,#231F20);min-height:44px;padding-inline:28px;font-weight:700;text-shadow:none}
body.cxd .wpcf7 input.wpcf7-submit:hover,body.cxd .wpcf7 input.wpcf7-submit:focus-visible{color:var(--ink,#231F20)}

/* menu chính dùng được bằng bàn phím (03/10/2026): mở khi focus nằm trong mục + trạng thái do JS (aria-expanded) */
body.cxd #wide-nav .header-nav>li.has-dropdown:focus-within>.nav-dropdown,body.cxd #wide-nav .header-nav>li.has-dropdown.cxd-mo>.nav-dropdown{visibility:visible!important;opacity:1!important;pointer-events:auto;display:block;transform:none;max-height:none;left:-15px} /* max-height + left: Flatsome để max-height:0 và left:-99999px cho .nav-dropdown, chỉ mở lại ở :hover/.current-dropdown → mở bằng tiêu điểm (bấm, Tab) thì khung cao 0 / nằm ngoài màn hình (04/11/2026) */
body.cxd #wide-nav .header-nav>li>a:focus-visible{outline:3px solid var(--cyan-700);outline-offset:2px;border-radius:var(--r-sm,4px)}
body.cxd .nav-dropdown a:focus-visible{outline:3px solid var(--cyan-700);outline-offset:-2px}
body.cxd #wide-nav .header-nav>li.has-dropdown.cxd-dong>.nav-dropdown{visibility:hidden!important;opacity:0!important}
/* liên kết breadcrumb: vùng chạm ≥44px (liên kết ngắn như "Giant" từng chỉ rộng 34px) */
body.cxd .woocommerce-breadcrumb a{display:inline-block;min-width:44px;min-height:44px;line-height:44px;text-align:center}
