/* =====================================================================================================================
   Giao diện mới — mẫu "Demo 1310" (ERP #155). Chỉ nạp khi bật Admin → Giao diện → Giao diện mới (body.l1310).
   Màu header / chân trang / nền + ảnh nền: biến CSS in từ layout_1310_head_style() (core/layout_1310.php) — không gán cứng ở đây.
   Hover chỉ trong @media (hover:hover) (iPhone giữ :hover sau khi chạm).
   ===================================================================================================================== */

body.l1310 { background-color: var(--l13-page, #fbfcf3); }
/* Ảnh nền trang chủ: phủ kín chiều cao --l13-bgh (Admin), đáy mờ dần vào màu nền. */
/* body trong suốt (màu nền lên html) để lớp ảnh nền z-index:-1 không bị nền body che. */
html:has(body.l1310) { background-color: var(--l13-page, #fbfcf3); }
body.l1310.pg-home { position: relative; background-color: transparent; }
body.l1310.pg-home::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: var(--l13-bgh, 1000px); z-index: -1; pointer-events: none;
  background-repeat: no-repeat; background-position: center top; background-size: cover;
  -webkit-mask-image: linear-gradient(#000 78%, transparent); mask-image: linear-gradient(#000 78%, transparent); }
body.l1310 #hhn-orbs { display: none; }
.l1310 .l13-wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; box-sizing: border-box; }
.l1310 .l13-caret { display: inline-block; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg); margin-left: 7px; flex: none; }

/* ── Dòng link trắng đầu trang (menu top-trai / top-phai) ───────────────────────────────────────────────────────── */
.l1310 .l13-top { background: #fff; font-size: 14px; }
.l1310 .l13-top-in { display: flex; justify-content: space-between; align-items: center; min-height: 30px; gap: 16px; }
.l1310 .l13-top-l, .l1310 .l13-top-r { display: flex; align-items: center; }
.l1310 .l13-tl { position: relative; display: flex; align-items: center; }
.l1310 .l13-tl > a { display: inline-flex; align-items: center; gap: 5px; color: #1c1f2e; font-weight: 600; text-decoration: none; padding: 5px 0; white-space: nowrap; }
.l1310 .l13-tl > a img { width: 15px; height: 15px; object-fit: contain; }
.l1310 .l13-tl + .l13-tl::before { content: ""; width: 1px; height: 13px; background: #1c1f2e; opacity: .55; margin: 0 10px; }
.l1310 .l13-top-r .l13-tl + .l13-tl::before { margin: 0 14px; }

/* Danh mục con xổ xuống (dòng link + thanh danh mục) */
.l1310 .l13-dd { position: absolute; top: 100%; left: -10px; z-index: 55; min-width: 220px; max-height: 70vh; overflow: auto; padding: 8px; background: #fff;
  border: 1px solid #e6ece8; border-radius: 12px; box-shadow: 0 16px 36px rgba(20,40,30,.16); opacity: 0; visibility: hidden; transform: translateY(4px);
  transition: opacity .15s, transform .15s, visibility .15s; }
.l1310 .l13-dd a { display: block; padding: 8px 12px; border-radius: 8px; color: #1c1f2e; font-size: 14px; font-weight: 500; text-decoration: none; white-space: nowrap; }
.l1310 .l13-dd a.is-all { font-weight: 800; color: #0a7a3a; }
.l1310 .has-dd:focus-within > .l13-dd, .l1310 .has-dd.is-open > .l13-dd { opacity: 1; visibility: visible; transform: none; }
@media (hover: hover) {
  .l1310 .has-dd:hover > .l13-dd { opacity: 1; visibility: visible; transform: none; }
  .l1310 .l13-dd a:hover { background: #eef8f1; color: #0a6b33; }
  .l1310 .l13-tl > a:hover { color: var(--l13-hbg); }
}

/* ── Header xanh (dính khi cuộn — ghi chú mẫu "Sticky Header") ──────────────────────────────────────────────────── */
.l1310 .l13-header { position: sticky; top: 0; z-index: 50; }
.l1310 .l13-main { background: var(--l13-hbg, #0c9444); color: #fff; }
.l1310 .l13-main-in { position: relative; display: flex; align-items: flex-start; gap: 22px; padding-top: 14px; padding-bottom: 10px; }
.l1310 .l13-burger { display: none; }
.l1310 .l13-logo-link { flex: none; display: flex; align-items: center; height: 46px; margin: 0; color: #fff; text-decoration: none; }
.l1310 .l13-logo { display: block; height: 44px; width: auto; max-width: 180px; object-fit: contain; }
.l1310 .l13-logo.is-filter { filter: brightness(0) invert(1); }
.l1310 .l13-logo-m { display: none; }
.l1310 .l13-logo-text { font-size: 22px; font-weight: 900; }

.l1310 .l13-navwrap { flex: none; display: flex; align-items: center; height: 46px; }
.l1310 .l13-dm-btn { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 14px; border-radius: 8px; background: rgba(255,255,255,.28);
  color: #fff; font-size: 15px; font-weight: 700; text-decoration: none; white-space: nowrap; transition: background .15s; }
@media (hover: hover) { .l1310 .l13-dm-btn:hover { background: rgba(255,255,255,.4); } }

.l1310 .l13-search { flex: 1; min-width: 0; }
.l1310 .l13-sform { position: relative; display: flex; align-items: center; height: 46px; background: #fff; border-radius: 999px; padding: 0 6px 0 18px; }
.l1310 .l13-sico { flex: none; color: var(--l13-hbtn, #075a2a); }
.l1310 .l13-sform input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; padding: 0 12px; font: inherit; font-size: 16px; color: #1c1f2e; }
.l1310 .l13-sform input::placeholder { color: #8a93a0; }
.l1310 .l13-sbtn { flex: none; width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; color: var(--l13-hbtn, #075a2a);
  display: none; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.l1310 .l13-hint { margin: 6px 0 0 18px; font-size: 13px; line-height: 1.4; color: rgba(255,255,255,.92); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.l1310 .l13-hint a { color: #fff; text-decoration: none; }
@media (hover: hover) { .l1310 .l13-hint a:hover { text-decoration: underline; } }

.l1310 .l13-actions { flex: none; display: flex; gap: 10px; height: 46px; align-items: center; }
.l1310 .l13-pill { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px;
  background: var(--l13-hbtn, #075a2a); color: #fff; font-size: 15px; font-weight: 700; text-decoration: none; white-space: nowrap; transition: filter .15s; }
.l1310 #site-cart-button.l13-pill { width: auto; height: 40px; box-shadow: none; order: 0; margin: 0; }   /* style.css cũ đặt order:4 cho giỏ trên điện thoại */
.l1310 .l13-pill-t { max-width: 120px; overflow: hidden; text-overflow: ellipsis; }
.l1310 .l13-badge { position: absolute; top: -5px; right: 4px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 999px; background: #ff8a00; color: #fff;
  font-size: 11px; font-weight: 800; line-height: 18px; text-align: center; box-sizing: border-box; }
.l1310 .l13-badge.is-zero { display: none; }
@media (hover: hover) { .l1310 .l13-pill:hover, .l1310 #site-cart-button.l13-pill:hover { filter: brightness(1.15); transform: none; background: var(--l13-hbtn, #075a2a) !important; } }

/* Mega menu "Danh mục" neo dưới hàng xanh */
.l1310 .l13-main-in .hhn-mm { left: 16px; right: 16px; top: calc(100% - 4px); color: #1c1f2e; }   /* không ăn chữ trắng của header (02/11: tên danh mục + "Bán chạy nhất" bị trắng trên nền trắng) */

/* Mega menu 3 cột như mẫu: 2 khung trắng tách rời, mở ngay dưới ô tìm (che dòng gợi ý). */
.l1310 .l13-main-in .hhn-mm:has(.l13-mm-left) { top: 66px; height: auto; background: transparent; border: 0; box-shadow: none; overflow: visible; gap: 12px; align-items: stretch; }
.l1310 .l13-mm-left, .l1310 .l13-mm-right { background: #fff; border-radius: 12px; box-shadow: 0 18px 50px rgba(10,30,20,.25); }
.l1310 .hhn-mm-left.l13-mm-left { flex: 0 0 256px; padding: 10px 8px; border: 0; overflow: visible; }
.l1310 .l13-mm-left .hhn-mm-cat { gap: 10px; padding: 10px 10px; font-weight: 600; font-size: 14.5px; border-radius: 8px; }
.l1310 .l13-mm-left .hhn-mm-cat + .hhn-mm-cat { margin-top: 0; }
.l1310 .l13-mm-left .hhn-mm-cat.is-active { background: #eef8f1; color: #0a7a3a; box-shadow: none; }
.l1310 .l13-mm-left .hhn-mm-ico { width: 22px; height: 22px; background: transparent; color: currentColor; border-radius: 0; }
.l1310 .l13-mm-cname, .l1310 .l13-mm-sub span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }   /* 1 dòng như mẫu */
.l1310 .l13-mm-chev { flex: none; opacity: .55; }
.l1310 .hhn-mm-right.l13-mm-right { flex: 1; min-width: 0; padding: 0; overflow: hidden; }
.l1310 .l13-mm-pane:not([hidden]) { display: flex; height: 100%; min-height: 440px; }
.l1310 .l13-mm-subs { flex: 0 0 220px; padding: 10px 8px; border-right: 1px solid #edf1ee; }
.l1310 .l13-mm-sub { display: flex; align-items: center; gap: 8px; padding: 10px 10px; border-radius: 8px; color: #1c1f2e; font-size: 14px; font-weight: 500; text-decoration: none; }
.l1310 .l13-mm-sub span { flex: 1; min-width: 0; }
.l1310 .l13-mm-sub.is-active { color: #0a7a3a; font-weight: 700; background: #eef8f1; }
.l1310 .l13-mm-grids { flex: 1; min-width: 0; padding: 12px; overflow-y: auto; max-height: 70vh; }
.l1310 .l13-mm-grid:not([hidden]) { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.l1310 .l13-mm-prod { display: flex; flex-direction: column; gap: 6px; padding: 8px; border: 1px solid #edf1ee; border-radius: 10px; color: #1c1f2e; text-decoration: none; min-width: 0; background: #fff; }
.l1310 .l13-mm-pimg { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.l1310 .l13-mm-pimg img { max-width: 100%; max-height: 100%; object-fit: contain; }
.l1310 .l13-mm-pname { font-size: 12.5px; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; min-height: 4.05em; }
.l1310 .l13-mm-pprice > span:first-child { color: #f05a1a !important; }
.l1310 .l13-mm-besthead { display: flex; align-items: center; gap: 12px; margin: 2px 2px 10px; font-size: 15px; }
.l1310 .l13-mm-besthead a { color: #0a7a3a; font-size: 13.5px; font-weight: 700; text-decoration: none; }
.l1310 .l13-mm-empty { grid-column: 1 / -1; margin: 24px 8px; color: #6b7a72; font-size: 14px; }
.l1310 .l13-mm-empty a { color: #0a7a3a; font-weight: 700; text-decoration: none; }
@media (hover: hover) {
  .l1310 .l13-mm-left .hhn-mm-cat:hover { background: #eef8f1; color: #0a7a3a; box-shadow: none; }
  .l1310 .l13-mm-sub:hover { color: #0a7a3a; background: #f4faf6; }
  .l1310 .l13-mm-prod:hover { box-shadow: 0 6px 18px rgba(20,60,40,.12); }
}
@media (max-width: 1100px) { .l1310 .l13-mm-grid:not([hidden]) { grid-template-columns: repeat(4, minmax(0, 1fr)); } .l1310 .l13-mm-grid .l13-mm-prod:nth-child(n+9) { display: none; } }

/* ── Thanh danh mục trắng ──────────────────────────────────────────────────────────────────────────────────────── */
.l1310 .l13-catbar { background: #fff; box-shadow: 0 1px 0 rgba(0,0,0,.06); }
/* Từ 5 danh mục: dàn đều hết hàng như mẫu; ít hơn thì xếp từ trái, cách 40px (dàn đều 3 mục trông rời rạc). */
.l1310 .l13-catbar-in { display: flex; justify-content: flex-start; align-items: center; min-height: 40px; gap: 18px 40px; }
.l1310 .l13-catbar-in:has(> .l13-cb:nth-child(5)) { justify-content: space-between; gap: 18px; }
.l1310 .l13-cb { position: relative; }
.l1310 .l13-cb > a { display: inline-flex; align-items: center; padding: 10px 0; color: #1c1f2e; font-size: 14.5px; font-weight: 500; text-decoration: none; white-space: nowrap; }
.l1310 .l13-cb:last-child .l13-dd { left: auto; right: -10px; }
@media (hover: hover) { .l1310 .l13-cb > a:hover { color: var(--l13-hbg); } }

/* ── Khối trang chủ chung (bước 5–6) ─────────────────────────────────────────────────────────────────────────── */
.l1310 .l13-sec { max-width: 1200px; margin: 40px auto; padding: 0 16px; box-sizing: border-box; }
/* Khung trang chủ là flex căn giữa → khối co theo nội dung (hero-top còn 32px, 02/11) — ép rộng đủ. */
.l1310 .l13-sec, .l1310 .l13-shelf, .l1310 .l13-hero-top, .l1310 .l13-hero-row, .l1310 .l13-cm { width: 100%; }
.l1310 .l13-head-u { display: inline-flex; align-items: center; gap: 12px; margin: 0; padding-bottom: 6px; border-bottom: 3px solid #0b9444; color: #1c2b22;
  font-size: 34px; font-weight: 800; line-height: 1.15; }
.l1310 .l13-head-u .l13-sh-ico { width: 1.05em; height: 1.05em; color: #0b9444; }

/* Hero: slider rộng (banner hero-rong) + banner dọc 2 bên; hàng dưới: banner lớn (hero-home) + 2 thẻ (HERO_CARDS) */
.l1310 .l13-hero-top { position: relative; max-width: 1200px; margin: 20px auto 0; padding: 0 16px; box-sizing: border-box; }
.l1310 .l13-hero-wide { border-radius: 12px; overflow: hidden; }
/* Banner dọc 2 bên: rộng theo khoảng trống ngoài khung 1200px (90–150px), hiện từ 1400px (02/11: màn 1530px ở 100% bị mất). */
.l1310 .l13-side { position: absolute; top: 0; width: clamp(90px, calc((100vw - 1200px) / 2 - 16px), 150px); display: none; border-radius: 12px; overflow: hidden; }
.l1310 .l13-side.is-l { right: calc(100% + 2px); } .l1310 .l13-side.is-r { left: calc(100% + 2px); }
@media (min-width: 1400px) { .l1310 .l13-side { display: block; } }
.l1310 .l13-hero-row { display: grid; grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr); gap: 14px; max-width: 1200px; margin: 14px auto 0; padding: 0 16px; box-sizing: border-box; }
.l1310 .l13-hero-big { border-radius: 12px; overflow: hidden; min-width: 0; }
.l1310 .l13-hero-cards { display: grid; grid-template-rows: 1fr 1fr; gap: 14px; min-width: 0; }
.l1310 .l13-hero-cards .hhn-hero-card { height: 100%; min-height: 0; border-radius: 12px; }

/* 6 thẻ danh mục chữ nhật */
.l1310 .l13-ccards { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.l1310 .l13-ccard { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 8px 10px; background: #fff; border: 1px solid #dfeee4; border-radius: 10px;
  box-shadow: 0 4px 14px rgba(20,60,40,.08); color: #1c2b22; text-decoration: none; }
.l1310 .l13-ccard-img { flex: none; width: 52px; height: 52px; display: flex; align-items: center; justify-content: center; border-radius: 8px; background: #eef8f1; color: #0b9444; overflow: hidden; }
.l1310 .l13-ccard-img img { width: 100%; height: 100%; object-fit: contain; }
.l1310 .l13-ccard-img:has(img) { background: none; }
.l1310 .l13-ccard-name { font-size: 14.5px; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (hover: hover) { .l1310 .l13-ccard:hover { border-color: #0b9444; color: #0a7a3a; } }

/* Thương hiệu tin dùng (khung viền navy) */
.l1310 .l13-bs-sub { color: #4a5a6a; font-size: 15px; padding-right: 14px; }
.l1310 .l13-bs-logos { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; margin-bottom: 12px; }
.l1310 .l13-bs-logo { height: 54px; min-width: 100px; padding: 6px 12px !important; border-radius: 8px; background: #fff; border: 1.5px solid transparent !important; }
.l1310 .l13-bs-logo img { max-height: 40px; max-width: 120px; object-fit: contain; }
.l1310 .l13-bs-logo b { color: var(--sh); font-size: 16px; }
.l1310 .l13-bs-logo.is-on { border-color: var(--sh) !important; box-shadow: 0 4px 14px rgba(20,40,90,.15); }
.l1310 .l13-bs .l13-sh-pane { background: #fff; padding: 4px 0 0; }
.l1310 .l13-bs-card { scroll-snap-align: start; display: flex; flex-direction: column; gap: 8px; padding: 8px; background: #fff; border: 1px solid #e7ecf3; border-radius: 12px; text-decoration: none; }
.l1310 .l13-bs-pimg { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.l1310 .l13-bs-pimg img { max-width: 100%; max-height: 100%; object-fit: contain; }
.l1310 .l13-bs-plogo { height: 48px; display: flex; align-items: center; justify-content: center; border: 1px solid #e7ecf3; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.l1310 .l13-bs-plogo img { max-height: 34px; max-width: 80%; object-fit: contain; }
.l1310 .l13-bs-plogo b { color: var(--sh); font-size: 15px; }
.l1310 .l13-bs-banners { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.l1310 .l13-bs-banners img { display: block; width: 100%; aspect-ratio: 2 / 1; object-fit: cover; border-radius: 10px; }

/* Góc kiến thức */
.l1310 .l13-nc-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.l1310 .l13-nc-tabs { gap: 12px; }
.l1310 .l13-nc-tab { padding: 7px 18px !important; border: 1.5px solid #9aa8a2 !important; border-radius: 999px; color: #6b7a72; font-size: 15px; font-weight: 700; }
.l1310 .l13-nc-tab.is-on { border-color: #0b9444 !important; color: #0b9444; }
.l1310 .l13-nc-pane:not([hidden]) { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 22px; background: none; padding: 0; }
.l1310 .l13-nc-big { display: flex; flex-direction: column; gap: 8px; color: #1c2b22; text-decoration: none; }
.l1310 .l13-nc-bimg { aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #e7f8ee; }
.l1310 .l13-nc-bimg img, .l1310 .l13-nc-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.l1310 .l13-nc-big b { font-size: 22px; font-weight: 600; line-height: 1.35; }
.l1310 .l13-nc-big small, .l1310 .l13-nc-txt small { color: #4a5a52; font-size: 13px; }
.l1310 .l13-nc-list { display: flex; flex-direction: column; gap: 14px; }
.l1310 .l13-nc-item { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 14px; color: #1c2b22; text-decoration: none; }
.l1310 .l13-nc-thumb { aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: #e7f8ee; }
.l1310 .l13-nc-txt { display: flex; flex-direction: column; gap: 4px; }
.l1310 .l13-nc-txt b { font-size: 15px; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (hover: hover) { .l1310 .l13-nc-big:hover b, .l1310 .l13-nc-item:hover b { color: #0a7a3a; } }

/* Về Ello */
.l1310 .l13-about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.l1310 .l13-about-img { position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 3 / 2; background: #e7f8ee; }
.l1310 .l13-about-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.l1310 .l13-about-tag { position: absolute; top: 28px; left: 0; padding: 10px 24px 10px 18px; background: rgba(7,90,42,.88); color: #fff; font-size: 28px; font-weight: 800; border-radius: 0 10px 10px 0; }
.l1310 .l13-about-btn { position: absolute; right: 18px; bottom: 18px; padding: 6px 12px; background: #075a2a; color: #fff; border-radius: 6px; font-weight: 700; text-decoration: none; }
.l1310 .l13-about-txt { color: #1c2b22; font-size: 15.5px; line-height: 1.65; text-align: justify; }
.l1310 .l13-about-txt p { margin: 0 0 16px; }
.l1310 .l13-about-h { text-align: left; }

/* Đặt lịch tư vấn 1:1 + NUCA */
.l1310 .l13-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.l1310 .l13-cta-col { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.l1310 .l13-cta-col .l13-head-u { align-self: flex-start; font-size: 30px; }
.l1310 .l13-cta-card { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 22px; border-radius: 14px; color: #fff; }
.l1310 .l13-cta-t { margin: 0; font-size: 18px; font-weight: 800; text-transform: uppercase; }
.l1310 .l13-cta-d { margin: 0; font-size: 14px; line-height: 1.5; opacity: .95; }
.l1310 .l13-cta-note { font-size: 13px; opacity: .9; }
.l1310 .l13-cta-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: auto; flex-wrap: wrap; }
.l1310 .l13-cta-btn, .l1310 .l13-cta .cta-cs-btn { background: var(--cta-btn) !important; color: #fff !important; border-radius: 999px; padding: 10px 26px !important; font-size: 18px !important;
  font-weight: 800 !important; text-transform: uppercase; text-decoration: none; white-space: nowrap; border: 0; }
.l1310 .l13-cta .cta-cs-in { border-radius: 8px !important; font-size: 15px !important; }
.l1310 .l13-cta .cta-cs-form { position: relative; }
.l1310 .l13-cta .cta-cs-btn { align-self: flex-end !important; }
.l1310 .l13-cta-card.is-form .l13-cta-note { margin-top: -44px; max-width: 55%; }

/* 4 cam kết — dải rộng hết màn hình */
.l1310 .l13-cm { margin: 40px 0 0; }
.l1310 .l13-cm-in { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-top: 22px; padding-bottom: 22px; }
.l1310 .l13-cm-item { display: flex; align-items: center; gap: 12px; color: #1c2b22; }
.l1310 .l13-cm-item .l13-sh-ico { width: 60px; height: 60px; }
.l1310 .l13-cm-item b { display: block; font-size: 19px; font-weight: 600; }
.l1310 .l13-cm-item small { display: block; font-size: 16px; color: #2c3a33; }

@media (max-width: 1100px) {
  .l1310 .l13-ccards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .l1310 .l13-head-u { font-size: 28px; }
  .l1310 .l13-cm-in { flex-wrap: wrap; justify-content: flex-start; }
  .l1310 .l13-cm-item { flex: 1 1 40%; }
}
@media (max-width: 900px) {
  .l1310 .l13-hero-top { padding: 0 10px; margin-top: 12px; }
  .l1310 .l13-hero-row { grid-template-columns: 1fr; padding: 0 10px; gap: 10px; }
  .l1310 .l13-hero-cards { grid-template-rows: none; grid-template-columns: 1fr 1fr; gap: 10px; }
  .l1310 .l13-sec { margin: 26px auto; padding: 0 10px; }
  .l1310 .l13-ccards { gap: 8px; }
  .l1310 .l13-ccard { flex-direction: column; text-align: center; padding: 8px 6px; gap: 6px; }
  .l1310 .l13-ccard-img { width: 44px; height: 44px; }
  .l1310 .l13-ccard-name { font-size: 12.5px; }
  .l1310 .l13-head-u, .l1310 .l13-cta-col .l13-head-u { font-size: 22px; gap: 8px; }
  .l1310 .l13-bs-logos { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .l1310 .l13-bs-logo { flex: none; height: 46px; min-width: 88px; }
  .l1310 .l13-bs-sub { display: none; }
  .l1310 .l13-bs-banners { grid-template-columns: 1fr; }
  .l1310 .l13-nc-head { flex-direction: column; align-items: flex-start; margin-bottom: 14px; }
  .l1310 .l13-nc-tabs { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; scrollbar-width: none; gap: 8px; }
  .l1310 .l13-nc-tab { font-size: 13px; padding: 6px 12px !important; white-space: nowrap; }
  .l1310 .l13-nc-pane:not([hidden]) { grid-template-columns: 1fr; gap: 16px; }
  .l1310 .l13-nc-big b { font-size: 18px; }
  .l1310 .l13-nc-item { grid-template-columns: 120px minmax(0, 1fr); gap: 10px; }
  .l1310 .l13-nc-txt b { font-size: 14px; }
  .l1310 .l13-about { grid-template-columns: 1fr; gap: 18px; }
  .l1310 .l13-about-tag { font-size: 20px; top: 16px; }
  .l1310 .l13-about-txt { font-size: 14.5px; }
  .l1310 .l13-cta { grid-template-columns: 1fr; gap: 26px; }
  .l1310 .l13-cta-card.is-form .l13-cta-note { margin-top: 0; max-width: none; }
  .l1310 .l13-cta-btn, .l1310 .l13-cta .cta-cs-btn { font-size: 15px !important; }
  .l1310 .l13-cm-in { gap: 14px 10px; padding-top: 16px; padding-bottom: 16px; }
  .l1310 .l13-cm-item .l13-sh-ico { width: 40px; height: 40px; }
  .l1310 .l13-cm-item b { font-size: 14px; } .l1310 .l13-cm-item small { font-size: 12.5px; }
}

/* ── Khối sản phẩm trượt {{PRODUCT_SHELF:slug}} (bước 3) — màu chính = --sh (Admin từng khối) ───────────────────── */
.l1310 .l13-shelf { max-width: 1200px; margin: 34px auto; padding: 0 16px; box-sizing: border-box; }
.l1310 .l13-sh-ico { width: 1.15em; height: 1.15em; flex: none; object-fit: contain; }
.l1310 .l13-sh-title { display: inline-flex; align-items: center; gap: 10px; margin: 0; padding: 8px 34px 6px 16px; background: var(--sh); color: #fff;
  font-size: 30px; font-weight: 800; line-height: 1.15; border-radius: 18px 46px 0 0; }
.l1310 .l13-sh-body { position: relative; background: var(--sh); border-radius: 0 18px 18px 18px; padding: 12px; }
.l1310 .l13-sh-pane { background: color-mix(in srgb, var(--sh) 7%, #fff); border-radius: 12px; padding: 10px; }
.l1310 .l13-sh-tabs { display: flex; flex-wrap: wrap; }
.l1310 .l13-sh-tab { display: inline-flex; align-items: center; gap: 8px; border: 0; background: none; font: inherit; cursor: pointer; }
.l1310 .l13-sh-tabs.is-big { gap: 0; align-items: flex-end; }
.l1310 .l13-sh-tabs.is-big .l13-sh-tab { padding: 8px 30px 6px 16px; font-size: 30px; font-weight: 800; line-height: 1.15; color: var(--sh); background: #fff;
  border: 2px solid var(--sh); border-bottom: 0; border-radius: 18px 46px 0 0; }
.l1310 .l13-sh-tabs.is-big .l13-sh-tab + .l13-sh-tab { margin-left: -14px; font-size: 22px; padding-top: 6px; }
.l1310 .l13-sh-tabs.is-big .l13-sh-tab.is-on { background: var(--sh); color: #fff; position: relative; z-index: 1; font-size: 30px; }
.l1310 .l13-sh-tabs.is-small { gap: 0; }
.l1310 .l13-sh-tabs.is-small .l13-sh-tab { padding: 4px 22px; font-size: 15px; font-weight: 700; color: #7b8794; line-height: 1.25; text-align: left; }
.l1310 .l13-sh-tabs.is-small .l13-sh-tab + .l13-sh-tab { border-left: 1.5px solid #c9d2cc; }
.l1310 .l13-sh-tabs.is-small .l13-sh-tab.is-on { color: var(--sh); }
.l1310 .l13-sh-more { display: flex; justify-content: center; align-items: center; gap: 6px; width: max-content; margin: 14px auto 2px; color: #1c1f2e; font-size: 18px; font-weight: 600; text-decoration: none; }

/* Hot Sale (khung đỏ) */
.l1310 .l13-shelf.is-hot { position: relative; }
.l1310 .l13-hot-head { position: relative; display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 12px; background: var(--sh);
  border-radius: 20px 20px 0 0; padding: 0 18px 10px; margin-top: 30px; }
.l1310 .l13-hot-title { margin: -30px 0 0; padding: 10px 46px 4px; background: var(--sh); border-radius: 22px 22px 0 0; color: #fff; font-size: 44px; font-weight: 900;
  letter-spacing: .01em; line-height: 1.1; text-align: center; white-space: nowrap; display: inline-flex; gap: 10px; align-items: center; }
.l1310 .l13-hot-side { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; color: #fff; font-size: 14px; font-weight: 800; text-transform: uppercase; }
.l1310 .l13-hot-side.is-r { justify-content: flex-end; }
.l1310 .l13-hot-pill { background: #fff; color: var(--sh); border-radius: 999px; padding: 4px 14px; font-size: 16px; font-weight: 900; white-space: nowrap; font-variant-numeric: tabular-nums; }
.l1310 .l13-hot-rule { flex-basis: 100%; text-align: right; color: #fff; font-size: 13px; font-weight: 700; text-transform: none; text-decoration: none; }
.l1310 .is-hot .l13-sh-body { border-radius: 0 0 20px 20px; background: linear-gradient(180deg, var(--sh) 0, color-mix(in srgb, var(--sh) 25%, #fff) 70%, #fff6f2 100%); }
.l1310 .is-hot .l13-sh-pane { background: #fff; }
.l1310 .is-hot .l13-card-btn { background: var(--sh); }

/* Khung viền + tab nhỏ (Sách) */
.l1310 .l13-shelf.is-outline { padding: 0; }
.l1310 .is-outline { border: 1.5px solid var(--sh); border-radius: 22px; background: #fff; overflow: hidden; max-width: 1168px; }
.l1310 .l13-out-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding-right: 10px; }
.l1310 .is-outline .l13-sh-title { border-radius: 0 0 46px 0; padding: 8px 34px 8px 16px; }
.l1310 .is-outline .l13-sh-body { background: #fff; border-radius: 0; padding: 10px 12px 14px; }
.l1310 .is-outline .l13-sh-pane { background: color-mix(in srgb, var(--sh) 8%, #fff); }
.l1310 .is-outline .l13-card-img { margin: -8px -8px 0; border-radius: 10px 10px 0 0; aspect-ratio: 1; }
.l1310 .is-outline .l13-card-img img { object-fit: cover; width: 100%; height: 100%; }

/* Dải thẻ trượt ngang */
.l1310 .l13-track-wrap { position: relative; }
.l1310 .l13-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 48px) / 5); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; -webkit-overflow-scrolling: touch; padding: 2px; }
.l1310 .l13-track::-webkit-scrollbar { display: none; }
.l1310 .l13-nav { position: absolute; top: 42%; z-index: 2; width: 36px; height: 36px; border-radius: 50%; border: 0; background: #fff; color: var(--sh);
  font-size: 26px; line-height: 1; box-shadow: 0 4px 14px rgba(0,0,0,.18); cursor: pointer; padding: 0 0 3px; }
.l1310 .l13-nav.is-prev { left: -14px; } .l1310 .l13-nav.is-next { right: -14px; }
.l1310 .l13-nav[hidden] { display: none; }

/* Thẻ SP mẫu 1310 */
.l1310 .l13-card { scroll-snap-align: start; display: flex; flex-direction: column; gap: 8px; min-width: 0; background: #fff; border: 1px solid #eef1ee; border-radius: 12px; padding: 8px 8px 10px; }
.l1310 .l13-card-a { display: flex; flex-direction: column; gap: 6px; flex: 1; color: #1c1f2e; text-decoration: none; }
.l1310 .l13-card-img { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 1; overflow: hidden; border-radius: 8px; }
.l1310 .l13-card-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.l1310 .l13-card-name { font-size: 13.5px; font-weight: 700; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; min-height: 4.05em; }
.l1310 .l13-card-price { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 8px; margin-top: auto; }
.l1310 .l13-card-price > span:first-child { color: #f05a1a !important; font-size: 20px !important; font-weight: 800 !important; }
.l1310 .l13-card-price > span:nth-child(2) { opacity: .8 !important; font-size: 12.5px !important; }
.l1310 .l13-card-form { margin: 0; }
.l1310 .l13-card-btn { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; padding: 8px 6px; border: 0; border-radius: 999px; background: #0b9444;
  color: #fff; font: inherit; font-size: 13.5px; font-weight: 800; text-transform: uppercase; text-decoration: none; cursor: pointer; line-height: 1.2; box-sizing: border-box; }
.l1310 .l13-card-btn.is-pre { background: #fff; color: #ea580c; box-shadow: inset 0 0 0 1.5px #ea580c; }
.l1310 .l13-card-btn.is-view { background: #fff; color: #0b9444; box-shadow: inset 0 0 0 1.5px #0b9444; text-transform: none; }
.l1310 .l13-card-stats { font-size: 11.5px; color: #6b7280; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.l1310 .l13-card-stats i { color: #f5a623; font-style: normal; }
.l1310 .l13-card-stats b { font-weight: 400; color: #c3c9cf; }
.l1310 .l13-ribbon { position: absolute; top: 0; left: 0; z-index: 1; width: 86px; height: 86px; overflow: hidden; pointer-events: none; }
.l1310 .l13-ribbon span { position: absolute; top: 18px; left: -26px; width: 120px; transform: rotate(-45deg); background: #e8261c; color: #fff; text-align: center;
  font-size: 10px; font-weight: 800; text-transform: uppercase; padding: 3px 0; box-shadow: 0 2px 6px rgba(0,0,0,.2); }
@media (hover: hover) {
  .l1310 .l13-card:hover { box-shadow: 0 8px 22px rgba(20,60,40,.14); }
  .l1310 .l13-card-btn:hover { filter: brightness(1.1); }
  .l1310 .l13-sh-tabs.is-small .l13-sh-tab:hover, .l1310 .l13-sh-more:hover { color: var(--sh); }
}
@media (max-width: 1100px) {
  .l1310 .l13-track { grid-auto-columns: calc((100% - 36px) / 4); }
  .l1310 .l13-hot-title { font-size: 34px; padding: 10px 28px 4px; }
}
@media (max-width: 900px) {
  .l1310 .l13-shelf { margin: 22px auto; padding: 0 10px; }
  .l1310 .is-outline { margin-left: 10px; margin-right: 10px; }
  .l1310 .l13-track { grid-auto-columns: calc((100% - 12px) / 2.25); gap: 10px; }
  .l1310 .l13-nav { display: none; }
  .l1310 .l13-sh-title, .l1310 .l13-sh-tabs.is-big .l13-sh-tab.is-on { font-size: 21px; padding: 7px 24px 5px 12px; }
  .l1310 .l13-sh-tabs.is-big .l13-sh-tab { font-size: 16px; padding: 6px 18px 5px 12px; }
  .l1310 .l13-sh-body { padding: 8px; border-radius: 0 14px 14px 14px; }
  .l1310 .l13-sh-pane { padding: 8px; }
  .l1310 .l13-hot-head { grid-template-columns: 1fr 1fr; padding: 0 12px 10px; }
  .l1310 .l13-hot-title { grid-column: 1 / -1; grid-row: 1; justify-self: center; font-size: 24px; padding: 8px 22px 2px; margin-top: -24px; }
  .l1310 .l13-hot-side { font-size: 11px; gap: 4px; }
  .l1310 .l13-hot-pill { font-size: 12px; padding: 3px 9px; }
  .l1310 .l13-out-head { padding: 0 6px 6px 0; }
  .l1310 .l13-sh-tabs.is-small { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; max-width: 100%; }
  .l1310 .l13-sh-tabs.is-small .l13-sh-tab { padding: 4px 12px; font-size: 13px; white-space: nowrap; }
  .l1310 .l13-card-name { font-size: 12.5px; }
  .l1310 .l13-card-price > span:first-child { font-size: 16px !important; }
  .l1310 .l13-card-btn { font-size: 12px; padding: 8px 4px; }
  .l1310 .l13-card-btn svg { display: none; }
  .l1310 .l13-sh-more { font-size: 15px; }
}

/* ── Chân trang ────────────────────────────────────────────────────────────────────────────────────────────────── */
.l1310 .l13-footer { background: var(--l13-fbg, #086d32); color: #fff; margin-top: 0; padding: 0; }
.l1310 .l13-fgrid { display: grid; grid-template-columns: 1fr 1.15fr 1.25fr auto; gap: 32px; padding-top: 44px; padding-bottom: 44px; }
.l1310 .l13-fh { margin: 0 0 18px; font-size: 16px; font-weight: 800; text-transform: uppercase; letter-spacing: .01em; }
.l1310 .l13-fh:not(:first-child) { margin-top: 30px; }
.l1310 .l13-flinks { display: flex; flex-direction: column; gap: 12px; }
.l1310 .l13-flinks a { color: #fff; opacity: .92; font-size: 15px; text-decoration: none; }
.l1310 .l13-footer a:hover { transform: none; }
@media (hover: hover) { .l1310 .l13-flinks a:hover { opacity: 1; text-decoration: underline; } }
.l1310 .l13-socs { display: flex; gap: 14px; flex-wrap: wrap; }
.l1310 .l13-soc { display: inline-flex; border-radius: 50%; background: #fff; padding: 2px; }
.l1310 .l13-cert img { display: block; height: 44px; width: auto; }
.l1310 .l13-pays { display: flex; gap: 8px; flex-wrap: wrap; }
.l1310 .l13-pay { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 6px; background: #fff; overflow: hidden; }
.l1310 .l13-pay img { max-width: 36px; max-height: 30px; object-fit: contain; }
.l1310 .l13-pay.is-text { width: auto; min-width: 42px; padding: 0 6px; color: #1a3f8f; font-size: 11px; font-weight: 800; }
.l1310 .l13-fbot { background: var(--l13-fbot, #06482a); font-size: 14px; }
.l1310 .l13-fbot-in { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-top: 26px; padding-bottom: 26px; }
.l1310 .l13-fbot-l { display: flex; flex-direction: column; gap: 6px; }
.l1310 .l13-fbot-l span { opacity: .92; }
.l1310 .l13-fbot-r { max-width: 480px; text-align: right; opacity: .92; line-height: 1.55; }

/* ── Máy tính bảng ─────────────────────────────────────────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .l1310 .l13-main-in { gap: 14px; }
  .l1310 .l13-pill-t { display: none; }
  .l1310 .l13-acc .hh-tier-dot { display: none !important; }   /* #18: điện thoại chỉ còn biểu tượng tài khoản — ẩn huy hiệu hạng cho gọn */
  .l1310 .l13-pill { width: 44px; padding: 0; justify-content: center; }
  .l1310 #site-cart-button.l13-pill { width: 44px; }
  .l1310 .l13-badge { right: -4px; }
  .l1310 .l13-catbar-in { justify-content: flex-start; overflow-x: auto; scrollbar-width: none; }
  .l1310 .l13-fgrid { grid-template-columns: 1fr 1fr; }
}

/* ── Điện thoại (≤ 900px): 1 hàng ☰ · logo · ô tìm · giỏ · tài khoản (23/11: đưa ô tìm lên hàng trên — trước là hàng 2 riêng);
      thanh danh mục vuốt ngang ──────────── */
@media (max-width: 900px) {
  .l1310 > .hhn-content-wrap > .l13-top, .l1310 .hhn-content-wrap > .l13-top { display: none; }
  .l1310 .l13-main-in { flex-wrap: wrap; align-items: center; gap: 8px 10px; padding-top: 8px; padding-bottom: 8px; }
  .l1310 .l13-burger { display: flex !important; order: 1; width: 40px; height: 40px; align-items: center; justify-content: center; border: 0; border-radius: 10px;
    background: rgba(255,255,255,.18) !important; color: #fff; padding: 0; cursor: pointer; }   /* !important: thắng .hhn-hamburger:hover cũ (dính khi chạm) */
  .l1310 .l13-logo-link { order: 2; height: 40px; margin-right: 0 !important; }
  .l1310 .l13-logo { height: 34px; max-width: 150px; }
  .l1310 .l13-logo-d { display: none; }
  .l1310 .l13-logo-m { display: block; }
  .l1310 .l13-navwrap { display: none !important; }
  .l1310 .l13-actions { order: 4; height: 40px; gap: 8px; }
  .l1310 .l13-pill, .l1310 #site-cart-button.l13-pill { width: 40px !important; height: 40px !important; min-width: 40px; }
  .l1310 .l13-main-in { flex-wrap: nowrap; }
  .l1310 .l13-search { order: 3; flex: 1 1 0; min-width: 0; }
  .l1310 .l13-sform { height: 40px; padding-left: 12px; padding-right: 4px; }
  /* Hộp gợi ý tìm kiếm: style.css để position:fixed top:100% (tính theo khung header cũ có backdrop-filter) — header 1310 không có nên hộp
     rơi xuống dưới mép màn hình (lỗi có từ trước, phát hiện 23/11). Neo theo hàng header (.l13-main-in relative), rộng cả hàng. */
  .l1310 .l13-sform { position: static; }
  .l1310 .hhn-sp, .l1310 .hhn-qtags-pop { position: absolute; left: 8px; right: 8px; top: 100%; margin-top: 4px; min-width: 0; }
  @media (max-width: 380px) {   /* máy nhỏ / bật chữ to (≈320px): thu nút + khoảng cách để ô tìm còn rộng */
    .l1310 .l13-main-in { gap: 6px; padding-left: 10px; padding-right: 10px; }
    .l1310 .l13-burger, .l1310 .l13-pill, .l1310 #site-cart-button.l13-pill { width: 36px !important; height: 36px !important; min-width: 36px; }
    .l1310 .l13-actions { gap: 6px; }
    .l1310 .l13-logo { height: 30px; }
    .l1310 .l13-sform { height: 36px; padding-left: 10px; }
    .l1310 .l13-sico { width: 18px; height: 18px; }
    .l1310 .l13-sform input { padding: 0 6px; }
  }
  .l1310 .l13-sico { width: 20px; height: 20px; }
  .l1310 .l13-sform input { font-size: 16px; padding: 0 8px; }   /* 16px: iPhone không tự phóng to khi chạm ô */
  .l1310 .l13-hint { display: none; }
  .l1310 .l13-catbar-in { gap: 18px; min-height: 38px; }
  .l1310 .l13-catbar .l13-dd, .l1310 .l13-catbar .l13-caret { display: none !important; }
  .l1310 .l13-cb > a { font-size: 14px; padding: 9px 0; }
  .l1310 .hhn-mobile-panel .l13-top { display: block; background: transparent; }
  .l1310 .hhn-mobile-panel .l13-top-in { display: block; padding: 0; }
  .l1310 .hhn-mobile-panel .l13-top-l, .l1310 .hhn-mobile-panel .l13-top-r { display: block; }
  .l1310 .hhn-mobile-panel .l13-tl { display: block; }
  .l1310 .hhn-mobile-panel .l13-tl::before { display: none !important; }
  .l1310 .hhn-mobile-panel .l13-tl > a { display: flex; padding: 13px 2px; font-size: 14.5px; font-weight: 700; color: #2A3531; border-bottom: 1px solid var(--line, #e6ece8); }
  .l1310 .hhn-mobile-panel .l13-dd { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 6px 12px; display: none; }
  .l1310 .hhn-mobile-panel .has-dd.is-open > .l13-dd { display: block; }
  .l1310 .l13-fgrid { gap: 26px 20px; padding-top: 32px; padding-bottom: 32px; }
  .l1310 .l13-fh { font-size: 14.5px; margin-bottom: 12px; }
  .l1310 .l13-flinks { gap: 9px; }
  .l1310 .l13-flinks a { font-size: 14px; }
  .l1310 .l13-fbot-in { flex-direction: column; align-items: flex-start; gap: 12px; padding-top: 18px; padding-bottom: 18px; font-size: 13px; }
  .l1310 .l13-fbot-r { text-align: left; max-width: none; }
}
@media (max-width: 560px) {
  .l1310 .l13-fgrid { grid-template-columns: 1fr; }
}

/* =====================================================================================================================
   Mẫu "Demo 1211" (13/11) — chỉnh theo bản thiết kế mới + nhận xét team thiết kế khách (.claude/giao-dien-trang-chu-1211/skill.md)
   ===================================================================================================================== */
/* Font: chữ chính Mona Sans (Google Fonts, nạp ở layouts/header.php), chữ phụ Segoe UI Variable (font hệ thống Windows; máy khác dùng font tương đương). */
body.l1310 { font-family: "Segoe UI Variable Text", "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif; }
.l1310 h1, .l1310 h2, .l1310 h3, .l1310 .l13-sh-title, .l1310 .l13-hot-title, .l1310 .l13-head-u, .l1310 .l13-sh-tab, .l1310 .l13-card-price,
.l1310 .l13-card-btn, .l1310 .l13-sh-more, .l1310 .l13-cm-item b, .l1310 .l13-combo-btn, .l1310 .l13-cta-t, .l1310 .l13-cta-btn, .l1310 .l13-cta .cta-cs-btn,
.l1310 .l13-about-tag, .l1310 .l13-about-h, .l1310 .l13-nc-big b, .l1310 .l13-nc-txt b, .l1310 .l13-fh, .l1310 .l13-ccard-name {
  font-family: "Mona Sans", "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif; }
.l1310 .l13-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Dải 4 cam kết ngay dưới header (thay thanh danh mục) */
.l1310 .l13-cm.is-bar { margin: 0; box-shadow: 0 1px 0 rgba(0,0,0,.05); }
.l1310 .l13-cm.is-bar .l13-cm-in { padding-top: 12px; padding-bottom: 12px; }
.l1310 .l13-cm.is-bar .l13-cm-item .l13-sh-ico { width: 48px; height: 48px; }
.l1310 .l13-cm.is-bar .l13-cm-item b { font-size: 17px; font-weight: 600; line-height: 1.2; }
.l1310 .l13-cm.is-bar .l13-cm-item small { font-size: 14px; color: #3a4a42; }

/* Nút chuyển banner (nhận xét: "nhỏ, không căn giữa, khó nhìn → nền trắng, mũi tên to hơn") — style gốc viết trong thẻ nên dùng !important */
.l1310 button[onclick^="bnrPrev"], .l1310 button[onclick^="bnrNext"] { width: 40px !important; height: 40px !important; background: #fff !important; color: #0b9444 !important;
  font-size: 30px !important; font-weight: 700; line-height: 1 !important; padding: 0 0 4px !important; box-shadow: 0 4px 14px rgba(0,0,0,.18); opacity: .95; }
@media (hover: hover) { .l1310 button[onclick^="bnrPrev"]:hover, .l1310 button[onclick^="bnrNext"]:hover { opacity: 1; background: #fff !important; } }

/* Banner rộng + 2 banner dọc: ảnh mẫu 1211 nền trong suốt ("nền trong") → bỏ nền tối #111 của khung slider để lộ ảnh nền trang */
.l1310 .l13-hero-top [style*="background:#111"] { background: transparent !important; }

/* Ảnh nền: đáy chuyển mềm hơn (nhận xét "viền dưới thô, nặng mắt") */
body.l1310.pg-home::before { -webkit-mask-image: linear-gradient(#000 55%, rgba(0,0,0,.55) 75%, transparent); mask-image: linear-gradient(#000 55%, rgba(0,0,0,.55) 75%, transparent); }

/* Thương hiệu tin dùng — chỉ hàng logo, bấm sang trang SP của hãng; logo căn giữa, không viền / bóng khi bấm */
.l1310 .l13-bs .l13-sh-body { padding: 16px 18px 20px; }
.l1310 .l13-bs-logos { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 14px 18px; align-items: center; justify-items: center; margin: 0; }
.l1310 .l13-bs-logo { display: flex; align-items: center; justify-content: center; width: 100%; height: 56px; min-width: 0; padding: 4px 6px !important; background: transparent;
  border: 0 !important; box-shadow: none !important; outline: none; text-decoration: none; -webkit-tap-highlight-color: transparent; }
.l1310 .l13-bs-logo img { max-height: 42px; max-width: 100%; object-fit: contain; display: block; }
.l1310 .l13-bs-logo:focus-visible { outline: 2px solid var(--sh) !important; outline-offset: 2px; border-radius: 8px; }
@media (hover: hover) { .l1310 a.l13-bs-logo:hover img { transform: scale(1.04); transition: transform .15s; } }

/* Combo sức khỏe: ảnh nền rộng (chữ + SP bên trái) + thẻ combo chồng nửa phải */
.l1310 .l13-combo { position: relative; border-radius: 18px; overflow: hidden; background: var(--combo-bg, #e8f6dc); }
.l1310 .l13-combo-big { display: block; }
.l1310 .l13-combo-big img { display: block; width: 100%; height: auto; }
.l1310 .l13-combo-big.is-text { display: flex; flex-direction: column; justify-content: center; min-height: 260px; padding: 30px; color: #0b6b33; }
.l1310 .l13-combo-big.is-text b { font-size: 44px; font-weight: 800; line-height: 1.05; }
.l1310 .l13-combo-big.is-text span { font-size: 22px; font-weight: 700; }
.l1310 .l13-combo-cards { position: absolute; top: 3%; right: 1.5%; bottom: 3%; width: 42%; display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; gap: 10px; }
.l1310 .l13-combo:has(.l13-combo-big.is-text) .l13-combo-cards, .l1310 .l13-combo:not(:has(.l13-combo-big)) .l13-combo-cards { position: static; width: auto; padding: 14px; }
.l1310 .l13-combo-card { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 0; border-radius: 14px; overflow: hidden; text-decoration: none; color: #1c2b22;
  background: #fff; box-shadow: 0 6px 18px rgba(20,60,40,.12); }
.l1310 .l13-combo-img { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; }
.l1310 .l13-combo-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.l1310 .l13-combo-name { padding: 12px; font-size: 18px; text-align: center; color: #e8261c; }
.l1310 .l13-combo-btn { position: absolute; left: 50%; bottom: 8%; transform: translateX(-50%); padding: 5px 18px; border-radius: 999px; background: var(--combo-btn, #2e8b3a);
  color: #fff; font-size: 15px; font-weight: 800; text-transform: uppercase; white-space: nowrap; box-shadow: 0 0 0 2px #fff; }
@media (hover: hover) {
  .l1310 a.l13-combo-card:hover { box-shadow: 0 10px 26px rgba(20,60,40,.22); }
  .l1310 a.l13-combo-card:hover .l13-combo-btn { filter: brightness(1.1); }
}

/* Về Ello: cụm chữ gọn, đậm hơn (nhận xét "dàn trải, chữ mỏng") */
.l1310 .l13-about-txt { max-width: 560px; font-weight: 500; color: #1c2b22; }
.l1310 .l13-about-h { font-weight: 700; }

/* Đặt lịch + NUCA: 2 nút cùng cỡ (nhận xét "lệch CTA") */
.l1310 .l13-cta-card { min-height: 170px; }
/* 2 nút cùng cao 46px, cùng bề ngang tối thiểu; đều cách đáy thẻ 22px (= padding thẻ) — 13/11 "vẫn lệch nút" (đo: lệch 8px, cao 46/48). */
.l1310 .l13-cta-btn, .l1310 .l13-cta .cta-cs-btn { min-width: 240px; height: 46px !important; padding: 0 24px !important; line-height: 1 !important; display: inline-flex !important;
  align-items: center; justify-content: center; box-sizing: border-box; }
/* Thẻ NUCA: ghi chú bên trái, nút bên phải cùng hàng như thẻ Đặt lịch — không cho nút rớt xuống dòng */
.l1310 .l13-cta-foot { flex-wrap: nowrap; }
.l1310 .l13-cta-foot .l13-cta-note { flex: 1 1 auto; min-width: 0; }
.l1310 .l13-cta-foot .l13-cta-btn { flex: none; }
/* Thẻ Đặt lịch: nút ở đáy form; ghi chú kéo lên đúng hàng nút = -(cao nút 46 + khoảng cách thẻ 10), cao bằng nút, chữ căn giữa dọc */
.l1310 .l13-cta-card.is-form .cta-cs-form { flex: 1; }
.l1310 .l13-cta-card.is-form .cta-cs-btn { margin-top: auto; }
.l1310 .l13-cta-card.is-form .l13-cta-note { display: flex; align-items: center; height: 46px; margin-top: -56px; max-width: calc(100% - 260px); }

@media (max-width: 1100px) {
  .l1310 .l13-combo-cards { width: 46%; gap: 8px; }
  .l1310 .l13-combo-btn { font-size: 13px; padding: 4px 12px; }
}
@media (max-width: 900px) {
  .l1310 .l13-cm.is-bar .l13-cm-in { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; padding-top: 10px; padding-bottom: 10px; }
  .l1310 .l13-cm.is-bar .l13-cm-item { gap: 8px; min-width: 0; }
  .l1310 .l13-cm.is-bar .l13-cm-item .l13-sh-ico { width: 34px; height: 34px; flex: none; }
  .l1310 .l13-cm.is-bar .l13-cm-item b { font-size: 13.5px; }
  .l1310 .l13-cm.is-bar .l13-cm-item small { font-size: 12px; }
  .l1310 .l13-shelf.is-outline.l13-bs { width: auto; align-self: stretch; }   /* rộng 100% + lề 10px làm lố mép phải 10px (đo 390px) */
  .l1310 .l13-bs-logos { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
  .l1310 .l13-bs-logo { height: 44px; }
  .l1310 .l13-bs-logo img { max-height: 32px; }
  .l1310 .l13-combo-cards { position: static; width: auto; padding: 10px; grid-auto-rows: auto; }
  .l1310 .l13-combo-img img { height: auto; }
  .l1310 .l13-combo-btn { font-size: 12px; padding: 4px 12px; bottom: 6%; }
  .l1310 .l13-about-txt { max-width: none; }
  .l1310 .l13-cta-btn, .l1310 .l13-cta .cta-cs-btn { min-width: 0; height: 42px !important; }
  .l1310 .l13-cta-card.is-form .l13-cta-note { height: auto; margin-top: 0; max-width: none; }   /* điện thoại: ghi chú xuống dưới nút */
  /* Thẻ NUCA (16/11: iPhone 13 Pro Max bật chữ to ≈ 320px): nút rộng 200px không xuống dòng → ghi chú bị ép còn 44px (9 dòng, 1 chữ / dòng).
     Điện thoại: nút bên phải, ghi chú xuống dưới chiếm hết bề ngang — giống thẻ Đặt lịch. */
  .l1310 .l13-cta-foot { flex-wrap: wrap; row-gap: 10px; }
  .l1310 .l13-cta-foot .l13-cta-btn { order: -1; margin-left: auto; }
  .l1310 .l13-cta-foot .l13-cta-note { flex: 1 1 100%; }
  .l1310 button[onclick^="bnrPrev"], .l1310 button[onclick^="bnrNext"] { width: 32px !important; height: 32px !important; font-size: 24px !important; }
}
@media (max-width: 420px) {
  .l1310 .l13-bs-logos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* =====================================================================================================================
   Nhận xét 16/11 (Excel "PC Nhận xét Trang chủ 1611" + ảnh mobile) — .claude/giao-dien-trang-chu-1211/skill.md mục 8
   ===================================================================================================================== */
/* Banner lớn (hero-home) "nhảy, dưới bị trống": khung slider cao theo tỉ lệ ảnh (262px ở 1440) thấp hơn cột 2 thẻ (288px) → hở đáy.
   Máy tính: giữ nguyên tỉ lệ ảnh banner (không cắt chữ mép), cột 2 thẻ co theo chiều cao banner (height 0 + min-height 100% → không đẩy hàng cao thêm). */
@media (min-width: 901px) {
  .l1310 .l13-hero-row { align-items: start; }
  .l1310 .l13-hero-cards { height: 0; min-height: 100%; }
  .l1310 .l13-hero-cards .hhn-hero-card { padding: 10px 18px; }
}

/* Thẻ SP (Giá tốt + Mới về): ảnh có khung, chữ đậm vừa (mẫu cột F) */
.l1310 .l13-card-img { border: 1.5px solid #c4e3ab; border-radius: 12px; padding: 6px; background: #fff; box-sizing: border-box; }
.l1310 .l13-card-name { font-weight: 600; color: #1c1f2e; }
.l1310 .l13-card-price > span:first-child { font-weight: 700 !important; }
.l1310 .l13-card-btn { font-weight: 700; }
/* Nút ‹ › dải SP: to, rõ ("dấu mũi tên bên trong nút này nhỏ khó nhìn") */
.l1310 .l13-nav { width: 44px; height: 44px; font-size: 36px; font-weight: 700; padding: 0 0 5px; }
.l1310 .l13-nav.is-prev { left: -18px; } .l1310 .l13-nav.is-next { right: -18px; }

/* GIÁ TỐT MỖI NGÀY: chữ giữa tab (trên hẹp / dưới trống), nền cam → đỏ như mẫu */
.l1310 .l13-hot-title { margin-top: -36px; padding: 13px 60px 11px; line-height: 1.05; background: linear-gradient(180deg, color-mix(in srgb, var(--sh) 55%, #ff9a1f), color-mix(in srgb, var(--sh) 75%, #ff9a1f)); }
.l1310 .l13-hot-head { background: linear-gradient(180deg, color-mix(in srgb, var(--sh) 75%, #ff9a1f), var(--sh)); }
/* Nhãn góc ảnh ở khối Giá tốt (Admin → ô "Ruy băng góc ảnh"): mẫu là nhãn bo tròn góc trên phải, không phải ruy băng chéo */
.l1310 .is-hot .l13-ribbon { width: auto; height: auto; top: 0; right: 0; left: auto; overflow: visible; }
.l1310 .is-hot .l13-ribbon span { position: static; display: block; width: auto; transform: none; padding: 4px 10px; border-radius: 0 10px 0 12px;
  background: linear-gradient(90deg, #ff7a1a, #e8261c); font-size: 10.5px; letter-spacing: .02em; white-space: nowrap; }

/* Sản phẩm mới về (1 tiêu đề, kiểu xanh): tab ra giữa, khung xanh nhạt dần, nền trong nhạt (mẫu cột F) */
.l1310 .l13-shelf.is-green > .l13-sh-title { display: flex; width: max-content; max-width: calc(100% - 40px); margin: 0 auto; padding: 8px 40px 6px; border-radius: 22px 22px 0 0;
  background: linear-gradient(180deg, color-mix(in srgb, var(--sh) 55%, #a6e05a), color-mix(in srgb, var(--sh) 80%, #a6e05a)); }
.l1310 .l13-shelf.is-green > .l13-sh-title + .l13-sh-body { border-radius: 24px; background: linear-gradient(180deg, var(--sh) 0, color-mix(in srgb, var(--sh) 45%, #fff) 70%, color-mix(in srgb, var(--sh) 18%, #fff) 100%); }
.l1310 .l13-shelf.is-green > .l13-sh-title + .l13-sh-body .l13-sh-pane { background: #f5fbe9; border-radius: 16px; }

/* Combo: khung = đúng ảnh, rộng bằng các khối khác (1168px) — trước nền combo phủ cả lề 16px 2 bên nên ảnh không đầy khung */
.l1310 .l13-sec.l13-combo { padding: 0; max-width: 1168px; width: calc(100% - 32px); }

/* Chân trang: icon MXH là logo đầy đủ của từng hãng (đã có nền riêng) */
.l1310 .l13-soc { background: none; padding: 0; border-radius: 50%; }
.l1310 .l13-soc svg { display: block; }

@media (max-width: 900px) {
  /* 16/11: điện thoại cũng hiện nút ‹ › như máy tính để khách biết kéo được (trước ẩn) — nhỏ hơn, sát mép trong khung */
  .l1310 .l13-nav { display: block; width: 34px; height: 34px; font-size: 28px; padding: 0 0 4px; top: 38%; }
  .l1310 .l13-nav.is-prev { left: -4px; } .l1310 .l13-nav.is-next { right: -4px; }
  .l1310 .l13-shelf.is-green > .l13-sh-title { padding: 7px 26px 5px; border-radius: 16px 16px 0 0; }
  .l1310 .l13-shelf.is-green > .l13-sh-title + .l13-sh-body { border-radius: 16px; }
  .l1310 .l13-hot-title { margin-top: -26px; padding: 9px 26px 7px; }
  /* thẻ hẹp: nhãn xuống góc dưới phải ảnh (ở trên đè logo Ello góc trái) */
  .l1310 .is-hot .l13-ribbon { top: auto; bottom: 0; }
  .l1310 .is-hot .l13-ribbon span { font-size: 9px; padding: 3px 7px; border-radius: 10px 0 10px 0; }
  /* dòng đánh giá / đã bán: xuống 2 dòng thay vì cắt "Đã …", giữ cao 2 dòng cho thẻ thẳng hàng */
  .l1310 .l13-card-stats { white-space: normal; line-height: 1.35; min-height: 2.7em; }
  /* Dải cam kết: mỗi cụm 2 dòng (tiêu đề + dòng phụ), dài thì "…" */
  .l1310 .l13-cm.is-bar .l13-cm-item > span { min-width: 0; }
  .l1310 .l13-cm.is-bar .l13-cm-item b, .l1310 .l13-cm.is-bar .l13-cm-item small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .l1310 .l13-cm.is-bar .l13-cm-item b { font-size: 12.5px; }
  .l1310 .l13-cm.is-bar .l13-cm-item small { font-size: 11px; }
  .l1310 .l13-cm.is-bar .l13-cm-item .l13-sh-ico { width: 30px; height: 30px; }
  /* 2 thẻ Sách mới về / Cudo: xếp trên dưới thành banner ngang ("cụm này quá dài") */
  .l1310 .l13-hero-cards { grid-template-columns: 1fr; }
  .l1310 .l13-hero-cards .hhn-hero-card { min-height: 104px; padding: 14px 16px; }
  .l1310 .l13-hero-cards .hhn-hero-card-txt { max-width: 62%; }
  /* Combo: khung = đúng ảnh (trước nền combo phủ cả lề 10px 2 bên → ảnh trông không đầy khung như máy tính) */
  .l1310 .l13-sec.l13-combo { padding: 0; margin-left: 10px; margin-right: 10px; width: auto; }
  /* 16/11 "full kiểu máy tính nhưng hàng dọc": ảnh lớn chỉ lấy phần chữ + SP bên trái (nửa phải ảnh trống, máy tính để thẻ đè lên) cho đầy
     bề ngang; 4 thẻ nằm trên nền xanh nối tiếp đáy ảnh (#a1d161) → liền một khối như bản máy tính. */
  .l1310 .l13-combo-big img { aspect-ratio: 1.65; object-fit: cover; object-position: left center; }
  .l1310 .l13-combo:has(.l13-combo-big img) { background: linear-gradient(180deg, #a1d161 0, #b9df86 55%, #d5ecb5 100%); }
  .l1310 .l13-combo:has(.l13-combo-big img) .l13-combo-cards { padding: 4px 10px 12px; background: none; }
  /* Thương hiệu tin dùng: vuốt ngang, mỗi lần 2 logo */
  .l1310 .l13-bs-logos, .l1310 .l13-bs .l13-bs-logos { display: grid; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: calc((100% - 12px) / 2);
    gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; justify-items: stretch; }
  .l1310 .l13-bs-logos::-webkit-scrollbar { display: none; }
  .l1310 .l13-bs-logo { scroll-snap-align: start; height: 58px; min-width: 0; }
  .l1310 .l13-bs-logo img { max-height: 40px; }
}
