/* =====================================================================
   NOMA DESKTOP — Cổng hiển thị + base cho lớp desktop (.noma-d)
   - >=768px (iPad ngang/desktop): trang có body.noma-desk → ẩn WoodMart,
     hiện thiết kế NOMA desktop (.noma-d).
   - <=767px: .noma-d luôn ẩn (điện thoại vẫn dùng .noma-m mobile).
   Lớp song song với mobile: KHÔNG đụng .noma-m. Mọi rule bọc trong .noma-d.
   ↩️ HOÀN TÁC desktop: xoá file desktop/ + bỏ enqueue/inject trong loader.
   ===================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

/* ---------- CỔNG hiển thị theo breakpoint ---------- */
.noma-d { display: none; }                       /* mặc định ẩn */

@media (min-width: 768px) {
  /* Trang có thiết kế desktop NOMA → ẩn TOÀN BỘ WoodMart, hiện .noma-d */
  body.noma-desk > .wd-page-wrapper.website-wrapper { display: none !important; }
  body.noma-desk .noma-d { display: block; }
  body.noma-desk .noma-m { display: none !important; }   /* mobile không hiện trên desktop */
  /* Ẩn nút cuộn-lên WoodMart đè nội dung */
  body.noma-desk > .scrollToTop, body.noma-desk a.scrollToTop { display: none !important; }
}
@media (max-width: 767px) {
  .noma-d { display: none !important; }           /* điện thoại không hiện desktop */
}

/* ---------- Base / reset (scope .noma-d) ---------- */
.noma-d * { margin: 0; padding: 0; box-sizing: border-box; }
.noma-d {
  font-family: 'Noto Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: #111114; background: #fff; line-height: 1.5;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
.noma-d img, .noma-d svg, .noma-d video { display: block; max-width: 100%; }
.noma-d a { color: inherit; text-decoration: none; }
.noma-d button { font-family: inherit; }
@keyframes nomaFade { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
/* Statement trang chủ: phần <b> ("nay nằm trong tay bạn.") tô xanh như bản mobile */
.noma-d .nd-statement-big b { color: #1C6EF2 !important; font-weight: 800; }
/* Thẻ "Giải pháp": thẻ <a> KHÔNG bo góc (ảnh trong mới bo) → box-shadow/khung focus tạo "ô vuông" sắc cạnh.
   Chỉ giữ hiệu ứng nhảy lên (transform), bỏ hẳn shadow + viền + khung focus. */
.noma-d #solutions .nd-card:hover { box-shadow: none !important; border-color: transparent !important; }
.noma-d #solutions .nd-card:focus,
.noma-d #solutions .nd-card:focus-visible,
.noma-d #solutions .nd-card:active { outline: none !important; box-shadow: none !important; }

/* ---------- Lưới responsive (class hook cho inline-style design) ---------- */
.noma-d .nd-wrap { max-width: 1280px; margin: 0 auto; padding: 96px 40px; }
.noma-d .nd-g2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: stretch; }
.noma-d .nd-g3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.noma-d .nd-g4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.noma-d .nd-cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
/* Danh mục: lưới nổi bật/yêu thích (banner rộng + 1 card) */
.noma-d .nd-cat-feat { display: grid; grid-template-columns: 2fr 1fr; gap: 32px; align-items: stretch; }
.noma-d .nd-cat-feat.rev { grid-template-columns: 1fr 2fr; }
@media (max-width: 960px) { .noma-d .nd-cat-feat, .noma-d .nd-cat-feat.rev { grid-template-columns: 1fr; } }

/* Tablet / desktop nhỏ */
@media (max-width: 1100px) {
  .noma-d .nd-g4, .noma-d .nd-cats { grid-template-columns: repeat(2, 1fr); }
  .noma-d .nd-cats .nd-cat-wide { grid-column: span 2; }
}
@media (max-width: 920px) {
  .noma-d .nd-wrap { padding: 64px 28px; }
  .noma-d .nd-g3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  /* iPad dọc = 768px: cho nội dung thoáng hơn, không vỡ */
  .noma-d .nd-g2, .noma-d .nd-expert-grid { grid-template-columns: 1fr !important; }
}

/* ---------- Hover (design dùng style-hover không hợp lệ → bù bằng CSS) ---------- */
.noma-d .nd-card { transition: transform .2s, box-shadow .2s, border-color .2s; }
.noma-d .nd-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(17,17,20,.07); border-color: #DCDCE2; }
/* Trải nghiệm KH — thẻ Video Review CHỈ nhảy lên khi hover, KHÔNG bóng xám / không đổi viền / không khung focus */
.noma-d .nd-yt-row .nd-card:hover { box-shadow: none !important; border-color: #ECECEF !important; }
.noma-d .nd-yt-row .nd-card:focus,
.noma-d .nd-yt-row .nd-card:focus-visible,
.noma-d .nd-yt-row .nd-card:active { outline: none !important; box-shadow: none !important; }
/* Trải nghiệm KH — thẻ KOC + Video Review TikTok cũng NHẢY LÊN khi hover (không bóng xám, không khung focus) */
.noma-d .nd-koc-row > div,
.noma-d .nd-tt-row > a { transition: transform .2s; }
.noma-d .nd-koc-row > div:hover,
.noma-d .nd-tt-row > a:hover { transform: translateY(-2px); }
.noma-d .nd-tt-row > a:focus,
.noma-d .nd-tt-row > a:focus-visible,
.noma-d .nd-tt-row > a:active { outline: none !important; box-shadow: none !important; }
.noma-d .nd-cta:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.noma-d .nd-buy:hover { background: #1C6EF2 !important; }
.noma-d .nd-navlink:hover { color: #fff !important; }
/* Chữ thanh điều hướng: to + đậm hơn thiết kế gốc (ép !important để thắng override WoodMart/Elementor + font fallback) */
.noma-d header nav .nd-navlink {
  font-size: 15px !important;
  font-weight: 600 !important;
  letter-spacing: .005em !important;
  font-family: 'Noto Sans', system-ui, -apple-system, 'Segoe UI', sans-serif !important;
}
.noma-d .nd-iconbtn:hover { opacity: .75; }
.noma-d .nd-footlink:hover { color: #fff !important; }

/* ---------- Header: dropdown sản phẩm (hover) ---------- */
.noma-d .nd-has-drop { position: relative; }
.noma-d .nd-drop {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(8px);
  background: #fff; color: #111114; min-width: 220px; border-radius: 14px; padding: 10px;
  box-shadow: 0 16px 40px rgba(0,0,0,.18); opacity: 0; visibility: hidden;
  transition: opacity .18s, transform .18s; z-index: 200; max-height: 70vh; overflow: auto;
}
.noma-d .nd-has-drop:hover .nd-drop { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(4px); }
.noma-d .nd-drop a { display: block; padding: 9px 14px; border-radius: 9px; font-size: 14px; font-weight: 500; color: #3A3A42; white-space: nowrap; }
.noma-d .nd-drop a:hover { background: #F2F3F6; color: #111114; }

/* ---------- CỬA HÀNG (shop) ---------- */
/* Dải ảnh banner (hover nở rộng) */
.noma-d .nm-strip { display: flex; width: 100%; height: 460px; }
.noma-d .nm-cell { flex: 1 1 0; min-width: 0; position: relative; overflow: hidden; cursor: pointer; border-right: 1px solid rgba(255,255,255,.06); transition: flex .55s cubic-bezier(.22,.61,.36,1); }
.noma-d .nm-cell:last-child { border-right: none; }
.noma-d .nm-cell:hover { flex: 3.4 1 0; }
.noma-d .nm-cellimg { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform .7s cubic-bezier(.22,.61,.36,1); }
.noma-d .nm-cell:hover .nm-cellimg { transform: scale(1.07); }
/* Bố cục sidebar + lưới */
.noma-d .nd-shop-main { display: grid; grid-template-columns: 256px 1fr; gap: 40px; align-items: start; }
@media (max-width: 920px) {
  .noma-d .nd-shop-main { grid-template-columns: 1fr; }
  .noma-d .nm-strip { height: 280px; }
  .noma-d .nd-shop-aside { position: static !important; }
}
/* Nút danh mục sidebar */
.noma-d .nd-catbtn { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; padding: 11px 14px; border-radius: 11px; border: none; background: transparent; color: #5B5B66; font-size: 14.5px; font-weight: 500; cursor: pointer; text-align: left; transition: background .15s, color .15s; }
.noma-d .nd-catbtn:hover { background: #F2F3F6; }
.noma-d .nd-catbtn.on { background: #F2F4F7; color: #111114; font-weight: 700; }
.noma-d .nd-catbtn .nd-catn { font-size: 12px; font-weight: 600; color: #a7a7b0; font-family: ui-monospace, monospace; }
.noma-d .nd-catbtn.on .nd-catn { color: #1C6EF2; font-weight: 700; }
/* Phân trang */
.noma-d .nd-page { min-width: 44px; height: 44px; padding: 0 12px; border-radius: 11px; background: #fff; border: 1.5px solid #E6E7EB; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; color: #111; font-weight: 700; font-size: 14px; }
.noma-d .nd-page.on { background: #111114; color: #fff; border-color: #111114; }
.noma-d .nd-page:hover { border-color: #111; }

/* ---------- CHI TIẾT SẢN PHẨM ---------- */
.noma-d .nd-pdp-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.noma-d .nd-pdp-gallery { position: sticky; top: 104px; min-width: 0; }
.noma-d .nd-pdp-hero > * { min-width: 0; }
/* Gallery thumbnail: 1 hàng cuộn ngang (vuốt) */
.noma-d .nd-pdp-thumbs { display: flex; gap: 10px; margin-top: 14px; overflow-x: auto; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; padding-bottom: 6px; scrollbar-width: thin; }
.noma-d .nd-pdp-thumbs::-webkit-scrollbar { height: 6px; }
.noma-d .nd-pdp-thumbs::-webkit-scrollbar-track { background: transparent; }
.noma-d .nd-pdp-thumbs::-webkit-scrollbar-thumb { background: #DADCE2; border-radius: 3px; }
.noma-d .nd-pdp-thumb { position: relative; flex: 0 0 84px; width: 84px; aspect-ratio: 1/1; border-radius: 12px; overflow: hidden; border: 1.5px solid #ECECEF; cursor: pointer; background: #F5F6F8; scroll-snap-align: start; }
.noma-d .nd-pdp-thumb.on { border-color: #1C6EF2; }
.noma-d .nd-pdp-thumb img { width: 100%; height: 100%; object-fit: cover; }
/* Nút mũi tên ‹ › overlay 2 bên ảnh chính (dùng ký tự, không SVG — tránh WoodMart ẩn button svg) */
.noma-d .nd-gnav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 42px; height: 42px; padding: 0; border: none; border-radius: 9999px; background: rgba(255,255,255,.9); color: #111114 !important; font: 700 20px/1 Arial, sans-serif; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 2px 12px rgba(0,0,0,.18); -webkit-appearance: none; appearance: none; box-sizing: border-box; transition: background .15s; }
.noma-d .nd-gnav:hover { background: #fff; }
.noma-d .nd-gprev { left: 14px; }
.noma-d .nd-gnext { right: 14px; }
/* Hàng thumbnail bọc trong flex + 2 nút cuộn 2 bên (không đè ảnh) */
.noma-d .nd-pdp-thumbnav { display: flex; align-items: center; gap: 8px; margin-top: 14px; }
.noma-d .nd-pdp-thumbnav .nd-pdp-thumbs { margin-top: 0; flex: 1 1 auto; min-width: 0; }
.noma-d .nd-tnav { flex: 0 0 auto; width: 30px; height: 30px; padding: 0; border: 1px solid #E6E7EB; border-radius: 9999px; background: #fff; color: #111114 !important; font: 700 14px/1 Arial, sans-serif; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 1px 6px rgba(0,0,0,.1); -webkit-appearance: none; appearance: none; box-sizing: border-box; transition: background .15s; }
.noma-d .nd-tnav:hover { background: #F5F6F8; }
.noma-d .nd-pdp-revhead { display: grid; grid-template-columns: 240px 1fr; gap: 48px; align-items: center; margin-top: 36px; background: #fff; border: 1px solid #ECECEF; border-radius: 20px; padding: 36px 40px; }
.noma-d .nd-feat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 24px; }
@media (max-width: 920px) {
  .noma-d .nd-pdp-hero { grid-template-columns: 1fr; gap: 32px; }
  .noma-d .nd-pdp-gallery { position: static; }
  .noma-d .nd-pdp-revhead { grid-template-columns: 1fr; gap: 24px; }
  .noma-d .nd-pdp-revhead > div:first-child { border-right: none !important; padding-right: 0 !important; border-bottom: 1px solid #EEEEF1; padding-bottom: 24px; }
  .noma-d .nd-feat-grid { grid-template-columns: 1fr; }
}
/* nút sao chọn trong form đánh giá */
.noma-d .nd-rvstar { background: none; border: none; padding: 0; cursor: pointer; color: #E2E2E8; }
.noma-d .nd-rvstar.on { color: #F5A623; }

/* ---------- TRANG NỘI DUNG (Giới thiệu...) ---------- */
.noma-d .nd-about-art { font-size: 17px; line-height: 1.85; color: #2B2B33; }
.noma-d .nd-about-art p { margin-bottom: 18px; }
.noma-d .nd-about-art h2, .noma-d .nd-about-art h3, .noma-d .nd-about-art h4 { font-weight: 800; color: #111114; margin: 30px 0 12px; letter-spacing: -.02em; line-height: 1.25; }
.noma-d .nd-about-art h2 { font-size: 26px; }
.noma-d .nd-about-art h3 { font-size: 21px; }
.noma-d .nd-about-art h4 { font-size: 18px; }
.noma-d .nd-about-art img { max-width: 100%; height: auto; border-radius: 16px; margin: 18px auto; display: block; }
.noma-d .nd-about-art ul, .noma-d .nd-about-art ol { padding-left: 22px; margin-bottom: 18px; }
.noma-d .nd-about-art li { margin-bottom: 8px; }
.noma-d .nd-about-art a { color: #1C6EF2; }
.noma-d .nd-about-art .elementor-section, .noma-d .nd-about-art .e-con { width: auto !important; margin: 0 !important; transform: none !important; }

/* Form fields: chống WoodMart ép height cố định lên select/input → chữ bị cắt */
.noma-d select { height: auto !important; min-height: 0 !important; line-height: 1.5 !important; }
.noma-d form input[type="text"], .noma-d form input[type="tel"], .noma-d form input[type="email"], .noma-d form textarea { height: auto !important; min-height: 0 !important; line-height: 1.5 !important; }

/* ---------- KIẾN THỨC / TIN TỨC (listing: HDSD + Tin tức) ---------- */
.noma-d .nd-list-search input { height: auto !important; min-height: 0 !important; }
.noma-d .nd-list-search input:focus { outline: none; border-color: #1C6EF2 !important; box-shadow: 0 0 0 3px rgba(28,110,242,.12); }
.noma-d .nd-feat { display: grid; grid-template-columns: 1.15fr 1fr; gap: 0; border-radius: 24px; overflow: hidden; background: #fff; border: 1px solid #ECECEF; transition: transform .2s, box-shadow .2s; }
.noma-d .nd-feat:hover { transform: translateY(-2px); box-shadow: 0 12px 36px rgba(17,17,20,.09); }
.noma-d .nd-news { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 980px) {
  .noma-d .nd-feat { grid-template-columns: 1fr; }
  .noma-d .nd-news { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) { .noma-d .nd-news { grid-template-columns: 1fr; } }

/* ---------- BÀI VIẾT ĐƠN (single post — layout 3 cột) ---------- */
.noma-d .nd-art-grid { display: grid; grid-template-columns: minmax(0,290px) minmax(440px,1fr) minmax(0,300px); gap: 48px; align-items: start; }
.noma-d .nd-art-body > p:first-of-type { font-size: 19px; line-height: 1.7; color: #111114; font-weight: 600; }
/* Bài viết đơn — ảnh 4:3 đồng nhất (như trang SP, hiện đủ ảnh, nền xám 2 bên) */
.noma-d .nd-art-body img { width: 100%; max-width: 800px; aspect-ratio: 4/3; height: auto; object-fit: contain; background: #F5F6F8; border-radius: 12px; margin: 20px auto; }
/* Video (iframe YouTube trần) rộng bằng cột giữa, tỉ lệ 16:9 */
.noma-d .nd-art-body iframe { display: block; width: 100% !important; height: auto !important; aspect-ratio: 16/9; border: 0; border-radius: 12px; margin: 20px auto; }
.noma-d .nd-art-body p:has(> iframe) { text-align: center; }
.noma-d .nd-toc a:hover { background: #fff; color: #111114; }
/* Ẩn mục lục do plugin Easy TOC (ez-toc) tự chèn vào nội dung bài — CHỈ trên desktop, vì .noma-d đã có hộp #nd-toc riêng (tránh lặp 2 mục lục). Mobile .noma-m giữ ez-toc (không lặp). */
.noma-d .nd-art-body #ez-toc-container { display: none !important; }
@media (max-width: 1080px) {
  .noma-d .nd-art-grid { grid-template-columns: 1fr; gap: 36px; }
  .noma-d .nd-art-left, .noma-d .nd-art-pop { position: static !important; }
}

/* ---------- TRẢI NGHIỆM KH (3 carousel ngang) ---------- */
/* padding-top:6px = chừa chỗ cho thẻ nhảy lên (translateY -2px) khỏi bị mép container (overflow-x:auto → trục dọc bị auto) cắt vạch viền trên */
.noma-d .nd-hscroll { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-top: 6px; padding-bottom: 4px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.noma-d .nd-hscroll::-webkit-scrollbar { display: none; }
.noma-d .nd-tt-row { gap: 20px; }
.noma-d .nd-tt-row > * { flex: 0 0 calc((100% - 60px) / 4); scroll-snap-align: start; }
.noma-d .nd-koc-row { gap: 24px; }
.noma-d .nd-koc-row > * { flex: 0 0 calc((100% - 72px) / 4); scroll-snap-align: start; }
.noma-d .nd-yt-row { gap: 24px; }
.noma-d .nd-yt-row > * { flex: 0 0 calc((100% - 24px) / 2); scroll-snap-align: start; }
/* SP liên quan "Có thể bạn sẽ thích" — carousel 4/view */
.noma-d .nd-rel-row { gap: 24px; }
.noma-d .nd-rel-row > * { flex: 0 0 calc((100% - 72px) / 4); scroll-snap-align: start; }
.noma-d .nd-cnav button { width: 46px; height: 46px; border-radius: 12px; background: #fff; border: 1.5px solid #E6E7EB; cursor: pointer; display: flex; align-items: center; justify-content: center; color: #111; transition: border-color .15s; }
.noma-d .nd-cnav button:hover { border-color: #111; }
/* Mũi tên ❮ ❯ dùng CHỮ (WoodMart hay ẩn svg trong <button>) → ép màu + cỡ chữ hiện rõ */
.noma-d .nd-cnav button { color: #111 !important; font-size: 18px !important; line-height: 1 !important; -webkit-text-fill-color: #111 !important; }
@media (max-width: 980px) {
  .noma-d .nd-tt-row > * { flex-basis: calc((100% - 20px) / 2); }
  .noma-d .nd-koc-row > * { flex-basis: calc((100% - 24px) / 2); }
  .noma-d .nd-yt-row > * { flex-basis: 100%; }
  .noma-d .nd-rel-row > * { flex-basis: calc((100% - 24px) / 2); }
}
@media (max-width: 560px) {
  .noma-d .nd-tt-row > * { flex-basis: 76%; }
  .noma-d .nd-koc-row > * { flex-basis: 86%; }
  .noma-d .nd-rel-row > * { flex-basis: 72%; }
}

/* ---------- GIỎ HÀNG ---------- */
.noma-d .nd-cart-grid { display: grid; grid-template-columns: 1fr 360px; gap: 28px; align-items: start; }
.noma-d .nd-cart input:focus { outline: none; border-color: #1C6EF2 !important; box-shadow: 0 0 0 3px rgba(28,110,242,.12); }
.noma-d .nd-qtyn { width: 44px; text-align: center; font-size: 15px; font-weight: 800; color: #111114; border: none; background: transparent; -moz-appearance: textfield; height: auto !important; padding: 0; }
.noma-d .nd-qtyn::-webkit-outer-spin-button, .noma-d .nd-qtyn::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
/* Nút −/+ giỏ hàng dùng CHỮ (WoodMart hay ẩn svg trong <button>) → ép màu + cỡ chữ hiện rõ */
.noma-d .nd-qty button { font-size: 21px !important; color: #3A3A42 !important; line-height: 1 !important; -webkit-text-fill-color: #3A3A42 !important; }
.noma-d .nd-cart-row > a[aria-label] svg, .noma-d .nd-cart-row > a[aria-label] svg path { stroke: #9a9aa3 !important; fill: none !important; }
.noma-d .nd-cart-row { display: grid; grid-template-columns: minmax(0,1fr) 132px 108px 40px; gap: 14px; align-items: center; }
@media (max-width: 1024px) {
  .noma-d .nd-cart-grid { grid-template-columns: 1fr; }
  .noma-d .nd-cart-grid > aside { position: static !important; max-width: 560px; }
}
@media (max-width: 620px) {
  .noma-d .nd-cart-row { grid-template-columns: minmax(0,1fr) auto; grid-row-gap: 16px; }
  .noma-d .nd-cart-row .nd-cart-th { display: none; }
}

/* ---------- THANH TOÁN (style form WooCommerce thật trong khung NOMA) ---------- */
/* 2 cột chỉ ở desktop; thông tin KH trái, tóm tắt đơn phải (sticky). */
@media (min-width: 768px) {
  body.noma-checkout .nd-checkout .nd-co-grid { display: grid; grid-template-columns: 1fr 432px; gap: 32px; align-items: start; }
  body.noma-checkout .nd-checkout .nd-co-side { position: sticky; top: 104px; }
}
body.noma-checkout .nd-checkout .nd-co-left { min-width: 0; }
body.noma-checkout .nd-checkout #customer_details { min-width: 0; }
/* Tiêu đề nằm TRONG thẻ tóm tắt, canh trái (đè WoodMart hay canh giữa) */
body.noma-checkout .nd-checkout #order_review_heading { font-size: 21px; font-weight: 800; letter-spacing: -.02em; color: #111114; margin: 0 0 18px; text-align: left !important; padding: 0; border: none; }
body.noma-checkout .nd-checkout #order_review { background: #fff; border: 1px solid #ECECEF; border-radius: 20px; padding: 24px; }
/* Bỏ dòng tiêu đề cột "SẢN PHẨM / TẠM TÍNH" của bảng đơn (thiết kế không có) */
body.noma-checkout .nd-checkout #order_review .shop_table thead,
body.noma-checkout .nd-checkout #order_review .woocommerce-checkout-review-order-table thead { display: none; }
/* Cột trái (thông tin KH) = thẻ nền xám bo góc (khớp thiết kế), bất kể cấu trúc plugin */
body.noma-checkout .nd-checkout .nd-co-left { background: #F7F8FA; border: 1px solid #ECECEF; border-radius: 20px; padding: 32px; }
/* Bỏ 2-col mặc định của WooCommerce → xếp dọc gọn gàng */
body.noma-checkout .nd-checkout .col2-set { display: block; }
body.noma-checkout .nd-checkout .col2-set .col-1,
body.noma-checkout .nd-checkout .col2-set .col-2 { width: 100%; float: none; margin: 0 0 24px; }
body.noma-checkout .nd-checkout h3 { font-size: 21px; font-weight: 800; letter-spacing: -.02em; color: #111114; margin-bottom: 18px; text-transform: none !important; }
/* Trường nhập */
body.noma-checkout .nd-checkout .form-row { margin: 0 0 16px; padding: 0; }
body.noma-checkout .nd-checkout label { font-size: 13.5px; font-weight: 700; color: #3A3A42; }
body.noma-checkout .nd-checkout .input-text,
body.noma-checkout .nd-checkout input[type="text"],
body.noma-checkout .nd-checkout input[type="tel"],
body.noma-checkout .nd-checkout input[type="email"],
body.noma-checkout .nd-checkout input[type="password"],
body.noma-checkout .nd-checkout textarea,
body.noma-checkout .nd-checkout select,
body.noma-checkout .nd-checkout .select2-selection { width: 100%; background: #fff; border: 1px solid #E0E1E6; border-radius: 11px; padding: 13px 15px; font-family: inherit; font-size: 14.5px; color: #111114; height: auto; min-height: 0; line-height: 1.4; }
body.noma-checkout .nd-checkout .input-text:focus,
body.noma-checkout .nd-checkout textarea:focus,
body.noma-checkout .nd-checkout select:focus { outline: none; border-color: #1C6EF2; box-shadow: 0 0 0 3px rgba(28,110,242,.12); }
/* Bảng đơn + nút đặt hàng */
body.noma-checkout .nd-checkout .shop_table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
body.noma-checkout .nd-checkout .shop_table th,
body.noma-checkout .nd-checkout .shop_table td { padding: 10px 0; border-bottom: 1px solid #F1F1F4; }
body.noma-checkout .nd-checkout .order-total .amount { color: #1C6EF2; font-size: 20px; }
/* Qty stepper trong tóm tắt đơn — gọn thành 1 cụm như thiết kế */
body.noma-checkout .nd-checkout #order_review .quantity { display: inline-flex !important; align-items: center; border: 1.5px solid #E6E7EB; border-radius: 11px; overflow: hidden; width: auto; }
body.noma-checkout .nd-checkout #order_review .quantity > * { border: none !important; border-radius: 0 !important; margin: 0 !important; box-shadow: none !important; outline: none !important; }
body.noma-checkout .nd-checkout #order_review .quantity .minus,
body.noma-checkout .nd-checkout #order_review .quantity .plus,
body.noma-checkout .nd-checkout #order_review .quantity button { width: 36px !important; height: 38px !important; min-width: 0 !important; background: #fff !important; color: #3A3A42 !important; font-size: 18px !important; line-height: 1 !important; padding: 0 !important; cursor: pointer; display: flex !important; align-items: center; justify-content: center; }
body.noma-checkout .nd-checkout #order_review .quantity input { width: 46px !important; height: 38px !important; text-align: center !important; border: none !important; background: transparent !important; font-weight: 800 !important; padding: 0 !important; -moz-appearance: textfield; }
body.noma-checkout .nd-checkout #order_review .quantity input::-webkit-outer-spin-button,
body.noma-checkout .nd-checkout #order_review .quantity input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
/* Thanh toán = thẻ trắng riêng (cột phải), nút ĐẶT HÀNG đen như thiết kế */
body.noma-checkout .nd-checkout #payment { background: #fff; border: 1px solid #ECECEF; border-radius: 20px; padding: 22px 24px; margin-top: 18px; }
body.noma-checkout .nd-checkout #payment ul.payment_methods { list-style: none !important; margin: 0 0 14px !important; padding: 0 !important; border: none !important; }
body.noma-checkout .nd-checkout #payment ul.payment_methods > li { list-style: none; border: 1px solid #E6E7EB; border-radius: 12px; padding: 14px 16px; margin: 0 0 10px; display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
body.noma-checkout .nd-checkout #payment ul.payment_methods > li::before { display: none !important; }
/* Hiện lại nút radio (WoodMart hay ẩn) + tô xanh khi chọn */
body.noma-checkout .nd-checkout #payment ul.payment_methods input[type="radio"] { -webkit-appearance: radio !important; appearance: auto !important; opacity: 1 !important; position: static !important; width: 18px !important; height: 18px !important; margin: 0 !important; accent-color: #1C6EF2; flex: 0 0 auto; }
body.noma-checkout .nd-checkout #payment ul.payment_methods label { font-size: 14.5px !important; font-weight: 700 !important; color: #111114 !important; margin: 0 !important; cursor: pointer; }
body.noma-checkout .nd-checkout #payment ul.payment_methods label img { display: none; }
/* Bỏ mô tả lặp lại của cổng COD (thiết kế chỉ có radio + nhãn) */
body.noma-checkout .nd-checkout #payment .payment_box { display: none !important; }
body.noma-checkout .nd-checkout #place_order,
body.noma-checkout .nd-checkout #payment .button { width: 100%; background: #111114 !important; color: #fff !important; border: none; border-radius: 9999px; padding: 16px 24px; font-family: inherit; font-weight: 800; font-size: 15px; letter-spacing: .02em; cursor: pointer; }
body.noma-checkout .nd-checkout #place_order:hover { background: #2a2a30 !important; }

/* Placeholder các ô form (CTA trang chủ, Liên hệ…) — màu xám nhạt như thiết kế.
   ⚠️ PHẢI tách mỗi vendor-prefix thành RULE RIÊNG: nếu gộp chung 1 list thì Chrome coi
   ::-moz-placeholder là pseudo lỗi → VỨT CẢ RULE (bug đã gặp: placeholder rơi về màu WoodMart). */
body.noma-desk .noma-d input::placeholder,
body.noma-desk .noma-d textarea::placeholder { color: #9CA0A8 !important; opacity: 1 !important; }
body.noma-desk .noma-d input::-webkit-input-placeholder,
body.noma-desk .noma-d textarea::-webkit-input-placeholder { color: #9CA0A8 !important; opacity: 1 !important; }
body.noma-desk .noma-d input::-moz-placeholder,
body.noma-desk .noma-d textarea::-moz-placeholder { color: #9CA0A8 !important; opacity: 1 !important; }
/* Dropdown "Lời nhắn": khi chưa chọn (placeholder value="") → :invalid → chữ xám;
   chọn rồi → :valid → chữ đậm. Option trong danh sách luôn đậm để đọc rõ. */
body.noma-desk .noma-d select.nd-sel:invalid { color: #9CA0A8 !important; }
body.noma-desk .noma-d select.nd-sel option { color: #111114; }
body.noma-desk .noma-d select.nd-sel option[value=""] { color: #9CA0A8; }

/* --- BẢNG MARKDOWN trong bài viết (fix từ the_content, xem noma_md_table_fix) --- */
.noma-d .nd-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 22px 0; border-radius: 12px; }
.noma-d .nd-md-table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.55; min-width: 560px; background: #fff; }
.noma-d .nd-md-table th, .noma-d .nd-md-table td { border: 1px solid #E4E6EA; padding: 12px 15px; text-align: left; vertical-align: top; }
.noma-d .nd-md-table thead th { background: #F2F4F7; font-weight: 700; color: #111114; }
.noma-d .nd-md-table tbody td { color: #3A3A42; }
.noma-d .nd-md-table tbody tr:nth-child(even) { background: #FAFBFC; }
