/* ═══════════════════════════════════════════════════════════════════════════
   TRANG CHỦ v2 — "THƯƠNG CHÂU AI" (hero đỏ + robot, dải lợi ích, thẻ dịch vụ, lối tắt)
   Nạp SAU các <style> inline của index.html (cùng độ ưu tiên thì file này thắng).
   Chỉ tạo kiểu — không đổi hành vi; mọi ID/hàm JS của tìm kiếm giữ nguyên.
   Ảnh: /common/images/home/*.jpg (cắt từ ảnh thiết kế; thay bản gốc độ phân giải cao khi có).
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  --hx-red: #d7092d;
  --hx-red-dk: #b30620;
  --hx-yellow: #ffd23a;
  --hx-ink: #1f2937;
}

body { background: linear-gradient(#ffffff 0, #f8f8fc 640px, #f6f7fb 100%); }

/* ───────────────────────── HERO ───────────────────────── */
.hx {
  position: relative;
  overflow: hidden;
  color: #fff;
  padding: clamp(22px, 2.6vw, 38px) 0 clamp(62px, 5vw, 80px);
  background:
    radial-gradient(900px 360px at 50% 0%, rgba(255, 60, 40, .55), transparent 72%),
    linear-gradient(90deg, #8f0001 0%, #a80101 24%, #c70203 50%, #c20203 76%, #a30001 100%);
  border-bottom-left-radius: 50% 38px;
  border-bottom-right-radius: 50% 38px;
}
.hx::after {                       /* hạt sáng nhẹ để nền không phẳng */
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(circle at 18% 22%, rgba(255, 255, 255, .06) 0 2px, transparent 3px) 0 0 / 46px 46px,
    radial-gradient(circle at 70% 60%, rgba(255, 255, 255, .04) 0 2px, transparent 3px) 0 0 / 58px 58px;
}

/* ảnh hai bên: robot (trái) · máy bay + xe tải (phải); mờ dần vào nền đỏ */
.hx-art {
  position: absolute; top: 0; z-index: 0; pointer-events: none;
  background-repeat: no-repeat; background-size: 100% 100%;
  -webkit-mask-image: linear-gradient(to right, #000 74%, transparent 100%), linear-gradient(to bottom, #000 74%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, #000 74%, transparent 100%), linear-gradient(to bottom, #000 74%, transparent 100%);
  mask-composite: intersect;
}
.hx-art--l {
  left: 0; width: clamp(290px, 28.4vw, 500px); aspect-ratio: 500 / 358;
  background-image: url('/common/images/home/hero-left-567dae8836df14a9a802272e73875736.jpg');
  background-image: image-set(url('/common/images/home/hero-left-40bc89a5dc3e65f0091af30013126cbd.avif') type('image/avif'), url('/common/images/home/hero-left-567dae8836df14a9a802272e73875736.jpg') type('image/jpeg'));
  -webkit-mask-image: linear-gradient(to right, #000 90%, transparent 100%), linear-gradient(to bottom, #000 74%, transparent 100%);
  mask-image: linear-gradient(to right, #000 90%, transparent 100%), linear-gradient(to bottom, #000 74%, transparent 100%);
}
.hx-art--r {
  right: 0; width: clamp(240px, 22.2vw, 390px); aspect-ratio: 390 / 358;
  background-image: url('/common/images/home/hero-right-715980390d2d8d73deaa783804defda6.jpg');
  background-image: image-set(url('/common/images/home/hero-right-40dfe27f6ea11c7f3718a1d32a9348bd.avif') type('image/avif'), url('/common/images/home/hero-right-715980390d2d8d73deaa783804defda6.jpg') type('image/jpeg'));
  -webkit-mask-image: linear-gradient(to left, #000 74%, transparent 100%), linear-gradient(to bottom, #000 74%, transparent 100%);
  mask-image: linear-gradient(to left, #000 74%, transparent 100%), linear-gradient(to bottom, #000 74%, transparent 100%);
}

.hx-inner { position: relative; z-index: 2; text-align: center; }
@media (min-width: 1400px) {          /* robot chiếm bên trái → nội dung lệch phải một chút (như bản thiết kế) */
  .hx-inner { padding-left: clamp(0px, calc(5vw - 24px), 64px); }
}

/* tiêu đề thương hiệu + huy hiệu AI */
.hx-title {
  display: inline-flex; align-items: center; justify-content: center; gap: clamp(10px, 1.4vw, 20px);
  margin: 0; font-weight: 900; line-height: 1;
}
.hx-brand {
  font-size: clamp(2rem, 4.1vw, 3.75rem); letter-spacing: .01em;
  text-shadow: 0 4px 22px rgba(60, 0, 0, .35);
}
.hx-ai {
  position: relative; display: inline-grid; place-items: center;
  width: clamp(54px, 5.3vw, 94px); aspect-ratio: 1.12;
  border-radius: clamp(12px, 1.4vw, 20px);
  background: linear-gradient(150deg, #ffbb4d 0%, #ff7a00 52%, #e23a00 100%);
  border: 3px solid rgba(255, 223, 170, .95);
  box-shadow: 0 0 0 3px rgba(255, 120, 0, .32), 0 0 30px rgba(255, 150, 0, .7), inset 0 0 16px rgba(255, 255, 255, .38);
}
.hx-ai b {
  font-size: clamp(1.5rem, 3.3vw, 3.2rem); font-weight: 900; color: #fff6dd; letter-spacing: .02em;
  text-shadow: 0 0 14px rgba(255, 200, 90, .95), 0 2px 0 rgba(150, 40, 0, .55);
}
.hx-ai::before, .hx-ai::after {   /* mạch điện hai bên */
  content: ""; position: absolute; top: 50%; width: clamp(16px, 2vw, 34px); height: 2px;
  background: linear-gradient(90deg, rgba(255, 190, 90, 0), #ffc060);
}
.hx-ai::before { left: calc(100% + 6px); }
.hx-ai::after  { right: calc(100% + 6px); transform: scaleX(-1); }

.hx-slogan {
  margin: clamp(10px, 1.2vw, 16px) 0 0; font-weight: 800; line-height: 1.25;
  font-size: clamp(1.05rem, 2vw, 1.95rem); text-shadow: 0 3px 16px rgba(60, 0, 0, .3);
}
.hx-slogan__b { color: var(--hx-yellow); }

.hx-ticks {
  list-style: none; display: flex; flex-wrap: wrap; justify-content: center;
  gap: 6px clamp(12px, 1.8vw, 26px); margin: clamp(10px, 1.1vw, 16px) 0 0; padding: 0;
  font-size: clamp(.8rem, 1.05vw, 1.02rem); font-weight: 600;
}
.hx-ticks i { margin-right: 7px; font-size: .85em; }

/* ───────────────────────── Khung tìm kiếm ───────────────────────── */
.hx-panel {
  width: min(920px, 100%); margin: clamp(14px, 1.7vw, 24px) auto 0;
  padding: 10px 14px 12px; text-align: left;
  background: rgba(255, 238, 236, .86);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .55); border-radius: 22px;
  box-shadow: 0 18px 50px rgba(70, 0, 0, .35);
  scroll-margin-top: 90px;
}
.hx-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 6px; margin-bottom: 10px; }
.hx-tab {
  display: inline-flex; align-items: center; gap: 7px; position: relative;
  padding: 9px clamp(10px, 1.3vw, 18px); border-radius: 999px;
  font-size: clamp(.78rem, .95vw, .92rem); font-weight: 700; color: #4a1c1c; background: transparent;
  transition: background .18s, color .18s, box-shadow .18s;
}
.hx-tab:hover { background: rgba(215, 9, 45, .09); }
.hx-tab.active {
  color: #fff; background: linear-gradient(135deg, #e5172a, var(--hx-red-dk));
  box-shadow: 0 6px 16px rgba(215, 9, 45, .38);
}
.hx-tab__soon {
  font-style: normal; font-size: .6rem; font-weight: 800; letter-spacing: .02em; text-transform: uppercase;
  padding: 2px 7px; border-radius: 999px; background: #ff9f1c; color: #fff; white-space: nowrap;
}
.hx-tab.active .hx-tab__soon { background: rgba(255, 255, 255, .92); color: #c2410c; }

.hx-row {
  display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 16px;
  padding: 6px 6px 6px 16px; box-shadow: inset 0 0 0 1px #ffd9d6, 0 4px 14px rgba(120, 0, 0, .10);
}
.hx-row__lead { color: var(--hx-red); font-size: 1rem; flex: none; }
.hx-row input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent;
  height: 46px; font-size: 1rem; color: var(--hx-ink);
}
.hx-row input::placeholder { color: #9aa1ad; }
.hx-cam {
  flex: none; width: 40px; height: 40px; border-radius: 12px; color: #6b7280; font-size: 1.05rem;
  display: grid; place-items: center; transition: .15s;
}
.hx-cam:hover { color: var(--hx-red); background: #fff1f1; }
.hx-go {
  flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 50px; padding: 0 clamp(16px, 2.2vw, 30px); border-radius: 13px; color: #fff; font-weight: 800; font-size: 1rem;
  background: linear-gradient(135deg, #e5172a, var(--hx-red-dk)); box-shadow: 0 8px 20px rgba(215, 9, 45, .35);
  transition: transform .15s, filter .15s;
}
.hx-go:hover { transform: translateY(-1px); filter: brightness(1.05); color: #fff; }
.hx-go--blue { background: linear-gradient(135deg, #1b8be0, #0a62b8); box-shadow: 0 8px 20px rgba(10, 98, 184, .32); }

/* AI — trạng thái "đang cập nhật" */
.hx-row--off { background: #fdf3f2; box-shadow: inset 0 0 0 1px #f3c9c5; cursor: not-allowed; }
.hx-row--off input { cursor: not-allowed; color: #6b7280; }
.hx-row--off .hx-row__lead { color: #ef6a1a; }
.hx-go--off {
  background: #e5e7eb; color: #6b7280; box-shadow: none; font-size: .9rem; cursor: not-allowed; white-space: nowrap;
}
.hx-ai-note {
  display: flex; align-items: flex-start; gap: 10px; margin: 10px 4px 0; font-size: .86rem; line-height: 1.45; color: #5b2222;
}
.hx-ai-note > i { color: #ef6a1a; margin-top: 3px; }
.hx-ai-note > span { flex: 1; }
.hx-ai-note__btn {
  flex: none; padding: 6px 12px; border-radius: 999px; font-size: .78rem; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, #e5172a, var(--hx-red-dk)); white-space: nowrap;
}

/* Hàng chọn nền tảng (Mua lẻ · Mua sỉ · Tất cả) */
.hx-plat { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.hx-plat__lb { font-size: .8rem; font-weight: 700; color: #6b2d2d; }
.hx-plat .search-platform-tabs { margin: 0; gap: 6px; justify-content: center; }
.hx-plat .sp-tab {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 13px; border-radius: 999px;
  font-size: .8rem; font-weight: 700; color: #5b2222; background: #fff; border: 1.5px solid #f1c7c3;
}
.hx-plat .sp-tab:hover { background: #fff1f1; border-color: #e88; color: var(--hx-red-dk); }
.hx-plat .sp-tab.active { background: var(--hx-red); border-color: var(--hx-red); color: #fff; }

/* Hot + lối vào các dịch vụ */
.hx-hot { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin-top: 16px; }
.hx-hot__lb { font-weight: 800; font-size: .88rem; margin-right: 2px; }
.hx-hot__lb i { color: #ffb02e; margin-right: 4px; }
.hx-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 15px; border-radius: 999px;
  font-size: .84rem; font-weight: 600; color: #fff; text-decoration: none;
  background: rgba(90, 0, 0, .32); border: 1px solid rgba(255, 255, 255, .24); transition: background .15s, transform .15s;
}
.hx-chip:hover { background: rgba(255, 255, 255, .24); color: #fff; transform: translateY(-1px); }
.hx-chip--plat { background: rgba(255, 255, 255, .16); }

.hx-rate { margin-left: 4px; }
/* tiêu đề/mô tả do admin cấu hình — nằm dưới dải lợi ích, chữ tối trên nền sáng */
.hx-lead {
  max-width: 980px; margin: 22px auto 0; text-align: center; font-size: .86rem; line-height: 1.6; color: #5b6472;
}
.hx-lead__t { display: inline; margin: 0 6px 0 0; font-size: inherit; line-height: inherit; font-weight: 800; color: var(--hx-ink); }

/* ───────────────────────── Dải lợi ích ───────────────────────── */
.hx-benefits-wrap { position: relative; z-index: 3; margin-top: clamp(-52px, -3.4vw, -38px); }
.hx-benefits {
  list-style: none; margin: 0 auto; padding: 12px 8px; max-width: 1280px;
  display: grid; grid-template-columns: repeat(6, 1fr);
  background: #fff; border-radius: 24px; box-shadow: 0 16px 44px rgba(90, 20, 20, .16);
}
.hx-benefits li {
  display: flex; align-items: center; justify-content: center; gap: 11px; padding: 8px 10px;
  font-size: .86rem; font-weight: 700; color: var(--hx-ink); line-height: 1.25; border-left: 1px solid #f0f0f4;
}
.hx-benefits li:first-child { border-left: 0; }
@media (min-width: 1200px) { .hx-benefits li > span:last-child { white-space: nowrap; } }
.hx-b__ico {
  flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-size: 1.2rem;
}
.hx-b__ico--orange { background: #fff0e3; color: #f26b00; }
.hx-b__ico--green  { background: #e6f7ec; color: #17a34a; }
.hx-b__ico--blue   { background: #e6f0ff; color: #2563eb; }
.hx-b__ico--amber  { background: #fff3dc; color: #d97706; }

/* ───────────────────────── 3 thẻ dịch vụ ───────────────────────── */
.pguid-strip { background: transparent; border: 0; padding: clamp(22px, 2.4vw, 34px) 0 6px; }
.pguid-strip .pguid-grid { grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 1.5vw, 24px); }
.pguid-strip .pguid-divider { display: none; }
.pguid-strip .pguid-card--ship { display: block; }            /* ghi đè luật ẩn thẻ 3 ở màn hình tablet cũ */
.pguid-strip .pguid-card {
  --pg-c: #f26b00; --pg-img: none; --pg-imgw: 176px; --pg-ar: 205 / 168;
  position: relative; overflow: hidden; border-radius: 20px; min-height: 236px;
  padding: 18px 14px 72px calc(var(--pg-imgw) + 14px);
  box-shadow: 0 8px 26px rgba(80, 40, 20, .08);
}
.pguid-strip .pguid-card::before {      /* ảnh giữ đúng tỷ lệ, mờ dần vào nền thẻ (bên phải + phía dưới) */
  content: ""; position: absolute; left: 0; top: 0; width: var(--pg-imgw); aspect-ratio: var(--pg-ar);
  background: var(--pg-img) center / 100% 100% no-repeat;
  -webkit-mask-image: linear-gradient(to right, #000 72%, transparent 100%), linear-gradient(to bottom, #000 80%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, #000 72%, transparent 100%), linear-gradient(to bottom, #000 80%, transparent 100%);
  mask-composite: intersect;
}
.pguid-strip .pguid-card--1688  { --pg-c: #f26b00; --pg-img: url('/common/images/home/card-factory-80f935ab1ed071634a150034babd4385.jpg'); background: linear-gradient(135deg, #fff8f1, #ffeadb); border-color: #ffd9b8; }
.pguid-strip .pguid-card--taobao{ --pg-c: #e11d48; --pg-img: url('/common/images/home/card-bag-38390d7399f9874060858b1ea138308e.jpg'); --pg-imgw: 116px; --pg-ar: 112 / 168; background: linear-gradient(135deg, #fff5f7, #ffe3ea); border-color: #ffc6d2; }
.pguid-strip .pguid-card--ship  { --pg-c: #1b7fd6; --pg-img: url('/common/images/home/card-plane-d37e28fe7e65ed7e9971c179f2a93784.jpg'); --pg-ar: 205 / 172; background: linear-gradient(135deg, #f2f8ff, #dfeeff); border-color: #bfdbfb; }
.pguid-strip .pguid-card--taobao { padding-left: calc(var(--pg-imgw) + 16px); }
.pguid-strip .pguid-card:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(80, 40, 20, .14); }

.pguid-strip .pguid-head { gap: 8px; margin-bottom: 10px; align-items: flex-start; }
.pguid-strip .pguid-icon { width: 28px; height: 28px; flex: none; display: grid; place-items: center; font-size: 1.05rem; color: var(--pg-c); }
.pguid-strip .pguid-title { font-size: clamp(.9rem, .98vw, 1.04rem); font-weight: 800; color: var(--hx-ink); line-height: 1.25; }
.pguid-strip .pguid-sub { font-size: .76rem; color: #6b7280; }
.pguid-strip .pguid-features { margin: 0; }
.pguid-strip .pguid-features li {
  border: 0; padding: 3px 0 3px 26px; font-size: .84rem; color: #2b2f36; font-weight: 500;
}
.pguid-strip .pguid-features li::before {
  content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: .5rem; color: #fff;
  left: 0; top: 5px; width: 17px; height: 17px; border-radius: 50%; display: grid; place-items: center;
  background: var(--pg-c);
}
.pguid-strip .pguid-btn {
  position: absolute; bottom: 14px; left: calc(var(--pg-imgw) + 14px); right: 16px; width: auto; height: 44px; border-radius: 12px;
  font-size: .95rem; font-weight: 800; box-shadow: 0 8px 18px rgba(0, 0, 0, .16);
}
.pguid-strip .pguid-card--1688 .pguid-btn { left: 16px; background: linear-gradient(135deg, #ff8a1f, #f26b00); }
.pguid-strip .pguid-btn--taobao { background: linear-gradient(135deg, #ef2d52, #cc0a2a); }
.pguid-strip .pguid-btn--ship { background: linear-gradient(135deg, #2b97ee, #1171c9); }

/* ───────────────────────── Lối tắt ───────────────────────── */
body .home-shortcuts { gap: 14px; padding: 16px 0 10px; }
body .home-shortcut {
  display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 14px 12px; min-height: 92px;
  border: 1px solid #ececf3; border-radius: 14px; box-shadow: 0 2px 10px rgba(30, 30, 60, .05);
}
body .home-shortcut:hover { border-color: #f7c6c2; background: #fff; box-shadow: 0 10px 24px rgba(120, 30, 30, .12); }
body .home-shortcut__icon {
  width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; font-size: 1.2rem; margin: 0 0 6px;
}
body .home-shortcut__icon.hs--orange { background: #fff0e3; color: #f26b00; }
body .home-shortcut__icon.hs--blue   { background: #e6f0ff; color: #2563eb; }
body .home-shortcut__icon.hs--green  { background: #e6f7ec; color: #17a34a; }
body .home-shortcut__icon.hs--indigo { background: #eceaff; color: #5b4bdb; }
body .home-shortcut__title { font-size: .92rem; color: var(--hx-ink); }
body .home-shortcut__sub { font-size: .76rem; color: #6b7280; }

/* ═══════════════════════ RESPONSIVE ═══════════════════════ */
@media (max-width: 1199px) {
  .hx-art { opacity: .9; }
  .hx-benefits li { font-size: .8rem; gap: 8px; padding: 8px 6px; }
  .hx-b__ico { width: 40px; height: 40px; font-size: 1.05rem; }
}
@media (max-width: 1099px) {
  .hx-art--r { display: none; }                         /* nhường chỗ cho nội dung */
  .hx-art--l { width: 220px; opacity: .55; }
  .hx-benefits { grid-template-columns: repeat(3, 1fr); row-gap: 4px; }
  .hx-benefits li:nth-child(4) { border-left: 0; }
  .pguid-strip .pguid-grid { grid-template-columns: 1fr; }
  .pguid-strip .pguid-card { min-height: 0; }
}
@media (max-width: 767px) {
  .hx { padding-bottom: 76px; border-bottom-left-radius: 50% 22px; border-bottom-right-radius: 50% 22px; }
  .hx-art { display: none; }
  .hx-title { gap: 10px; }
  .hx-ticks { flex-direction: column; align-items: center; gap: 4px; }
  .hx-panel { padding: 8px 8px 10px; border-radius: 18px; }
  .hx-tabs { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 2px; }
  .hx-tabs::-webkit-scrollbar { display: none; }
  .hx-tab { flex: none; padding: 8px 12px; }
  .hx-row { padding-left: 12px; }
  .hx-row__lead { display: none; }
  .hx-row input { height: 44px; font-size: .95rem; }
  .hx-go { height: 46px; padding: 0 16px; }
  .hx-go--off { padding: 0 12px; font-size: .78rem; }
  .hx-cam { width: 36px; height: 40px; }
  .hx-ai-note { flex-wrap: wrap; font-size: .8rem; }
  .hx-hot { margin-top: 12px; gap: 6px; }
  .hx-chip { padding: 5px 12px; font-size: .78rem; }
  .hx-lead { font-size: .8rem; margin-top: 16px; }
  .hx-benefits-wrap { margin-top: -46px; }
  .hx-benefits { grid-template-columns: repeat(2, 1fr); border-radius: 18px; padding: 8px 4px; }
  .hx-benefits li { justify-content: flex-start; border-left: 0; padding: 8px 10px; }
  .hx-benefits li:nth-child(even) { border-left: 1px solid #f0f0f4; }
  /* thẻ dịch vụ: ảnh nằm trên đầu thẻ */
  .pguid-strip .pguid-card,
  .pguid-strip .pguid-card--taobao { --pg-imgw: 100%; padding: 148px 14px 66px; }
  .pguid-strip .pguid-card::before { aspect-ratio: auto; height: 130px; background-size: cover; background-position: center 30%;
    -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent 100%); mask-image: linear-gradient(to bottom, #000 70%, transparent 100%); }
  .pguid-strip .pguid-btn,
  .pguid-strip .pguid-card--1688 .pguid-btn { left: 14px; right: 14px; }
}
@media (max-width: 400px) {
  .hx-brand { font-size: 1.75rem; }
  .hx-ai { width: 46px; }
}
@media (prefers-reduced-motion: reduce) {
  .hx-go, .hx-chip, .pguid-strip .pguid-card { transition: none; }
}

/* ═══════════════ HIỆU CHỈNH THEO BẢN THIẾT KẾ (24/11) ═══════════════ */
/* thanh tin tức không có trong bản thiết kế trang chủ */
body.tcv2-home .news-ticker-bar { display: none; }

/* hộp tìm kiếm: kính mờ trong suốt, tab chữ trắng */
.hx-panel {
  background: rgba(255, 255, 255, .20);
  border: 1px solid rgba(255, 255, 255, .42);
  -webkit-backdrop-filter: blur(12px) saturate(1.2); backdrop-filter: blur(12px) saturate(1.2);
}
.hx-tab { color: #fff; }
.hx-tab:hover { background: rgba(255, 255, 255, .16); }
.hx-plat__lb, .hx-ai-note { color: #fff; }
.hx-ai-note > i { color: #ffd23a; }
.hx-slogan { font-size: clamp(1.05rem, 1.9vw, 1.85rem); }

/* nội dung lệch phải để không chạm cục AI của robot */
@media (min-width: 1400px) {
  .hx-inner { padding-left: clamp(0px, calc(8vw - 40px), 110px); }
}
.hx-ai { filter: drop-shadow(0 0 10px rgba(255, 170, 40, .55)); }

/* lối tắt: icon bên trái chữ như bản thiết kế */
body .home-shortcut { flex-direction: row; text-align: left; align-items: center; gap: 12px; padding: 12px 16px; justify-content: center; }
body .home-shortcut__icon { flex: none; }
/* ngôn ngữ dài (en/zh) không được đẩy lưới rộng hơn khung: cột co được (minmax 0) và chữ tự xuống dòng */
body .home-shortcuts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
body .home-shortcut { min-width: 0; }
body .home-shortcut__title, body .home-shortcut__sub { overflow-wrap: anywhere; }

/* điện thoại: 4 tab xếp lưới 2×2 (không còn khuất), ô nhập 16px chống iOS phóng to */
@media (max-width: 767px) {
  .hx-tabs { display: grid; grid-template-columns: 1fr 1fr; overflow: visible; gap: 6px; padding-bottom: 0; }
  .hx-tab { justify-content: center; padding: 9px 8px; font-size: .8rem; gap: 5px; min-height: 44px; background: rgba(255, 255, 255, .12); }
  .hx-tab.active { background: linear-gradient(135deg, #e5172a, var(--hx-red-dk)); }
  .hx-tab__soon { display: none; }
  .hx-row input { font-size: 16px; min-width: 0; }
  .hx-row { padding-left: 14px; }
}
@media (max-width: 400px) {
  .hx-go > span { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; } /* chữ ẩn trực quan nhưng vẫn là tên truy cập của nút */
  .hx-go { padding: 0 16px; }
}

/* ── Lối tắt trên điện thoại: lưới 2 cột cân đối (ô cuối lẻ thì trải đủ 2 cột), không cuộn ngang, chữ không bị bóp ── */
@media (max-width: 767px) {
  body .home-shortcuts {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px;
    overflow: visible; padding: 12px 0 8px;
  }
  body .home-shortcut {
    min-width: 0; min-height: 60px; padding: 10px 12px; gap: 10px;
    justify-content: flex-start; text-align: left; overflow: hidden;
  }
  body .home-shortcut:last-child:nth-child(odd) { grid-column: 1 / -1; justify-content: center; }
  body .home-shortcut__icon { width: 38px; height: 38px; margin: 0; font-size: 1.1rem; border-radius: 12px; flex: none; }
  body .home-shortcut__title {
    font-size: .84rem; font-weight: 700; line-height: 1.25; margin: 0;
    white-space: normal; overflow-wrap: break-word; word-break: normal; min-width: 0;
  }
}

/* dải danh mục: chừa chỗ cuối dải để chip cuối cuộn ra khỏi nút chat nổi */
@media (max-width: 767px) {
  body .cats-scroll { padding-right: 64px; scroll-padding-right: 64px; }
}

/* Slogan desktop: robot (có khối AI) nằm trong ảnh bên trái → đẩy chữ sang phải một chút để không chạm khối AI.
   Chỉ ≥992px; cỡ chữ/màu/kiểu giữ nguyên. */
@media (min-width: 992px) {
  .hx-slogan { padding-left: clamp(0px, 5.4vw, 96px); }
}
@media (min-width: 992px) and (max-width: 1399px) {
  .hx-slogan { padding-left: 7.2vw; }   /* dải hẹp: robot chiếm tỷ lệ lớn hơn nên cần nới thêm */
}

@supports (background-image: image-set(url('/common/images/home/card-bag-ecee65f6100b95342b80155de4c50e55.avif') type('image/avif'))) {
.pguid-strip .pguid-card--1688  { --pg-c: #f26b00; --pg-img: image-set(url('/common/images/home/card-factory-ea535f2e687b99c0eb214bd5e4d79829.avif') type('image/avif'), url('/common/images/home/card-factory-80f935ab1ed071634a150034babd4385.jpg') type('image/jpeg')); background: linear-gradient(135deg, #fff8f1, #ffeadb); border-color: #ffd9b8; }
.pguid-strip .pguid-card--taobao{ --pg-c: #e11d48; --pg-img: image-set(url('/common/images/home/card-bag-ecee65f6100b95342b80155de4c50e55.avif') type('image/avif'), url('/common/images/home/card-bag-7f760a606d64b5af69d43a299dceb802.webp') type('image/webp'), url('/common/images/home/card-bag-38390d7399f9874060858b1ea138308e.jpg') type('image/jpeg')); --pg-imgw: 116px; --pg-ar: 112 / 168; background: linear-gradient(135deg, #fff5f7, #ffe3ea); border-color: #ffc6d2; }
.pguid-strip .pguid-card--ship  { --pg-c: #1b7fd6; --pg-img: image-set(url('/common/images/home/card-plane-d49520f1852fa9b8daa0b7ac32c609e3.avif') type('image/avif'), url('/common/images/home/card-plane-70bcffb20c8863931e2703fb1603b3b2.webp') type('image/webp'), url('/common/images/home/card-plane-d37e28fe7e65ed7e9971c179f2a93784.jpg') type('image/jpeg')); --pg-ar: 205 / 172; background: linear-gradient(135deg, #f2f8ff, #dfeeff); border-color: #bfdbfb; }
}.hx-ai-note__src { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.hx-ai-note__btn--sug { outline: 2px solid #f59e0b; outline-offset: 1px; }
.sp-tab--ext { white-space: nowrap; }
