/* =====================================================================================================================
   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, #0a5c2e); }
.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, #0a5c2e);
  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, #0a5c2e); 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, #0a5c2e) !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 #1f8a4c; 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: #1f8a4c; }

/* 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 (user 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: #1f8a4c; 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: #1f8a4c; 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: #1f8a4c !important; color: #1f8a4c; }
.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: #e8f6ee; }
.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: #e8f6ee; }
.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ề H&H */
.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: #e8f6ee; }
.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(10,92,46,.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: #0a5c2e; 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: #16934a;
  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: #16934a; box-shadow: inset 0 0 0 1.5px #16934a; 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, #0a6332); 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-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): hàng 1 ☰ · logo · giỏ · tài khoản; hàng 2 ô tìm; 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: auto !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: 3; height: 40px; gap: 8px; }
  .l1310 .l13-pill, .l1310 #site-cart-button.l13-pill { width: 40px !important; height: 40px !important; min-width: 40px; }
  .l1310 .l13-search { order: 4; flex: 1 1 100%; }
  .l1310 .l13-sform { height: 42px; padding-left: 14px; }
  .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; }
}
