/* NhatDX Themes — trang chi tiết sản phẩm. */

.nt-pd-wrap .nt-crumbs { margin-bottom: 14px; }
.nt-pd { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 30px; align-items: start; }
.nt-pd-media { min-width: 0; }
.nt-pd-info { min-width: 0; padding-top: 0; }
@media (max-width: 849px) { :where(html:not(.nt-desk)) .nt-pd{ grid-template-columns: 1fr; gap: 16px; } :where(html:not(.nt-desk)) .nt-pd-info{ padding-top: 0; } }

/* ---------- Thư viện ảnh ---------- */
.nt-gal-main { position: relative; aspect-ratio: 1 / 1; border-radius: 14px; overflow: hidden; background: #F7F7F7; box-shadow: 0 4px 24px rgba(0, 0, 0, .08); }
.nt-gal-track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.nt-gal-track::-webkit-scrollbar { display: none; }
.nt-gal-track.is-drag, .nt-gal-thumbs.is-drag { scroll-snap-type: none; scroll-behavior: auto; cursor: grabbing; user-select: none; }
.nt-gal-track.is-drag a, .nt-gal-thumbs.is-drag button { cursor: grabbing; }
.nt-gal-slide { flex: 0 0 100%; height: 100%; scroll-snap-align: start; display: block; cursor: zoom-in; }
.nt-gal-slide img { width: 100%; height: 100%; object-fit: contain; }
.nt-gal-arrow { position: absolute; top: 50%; z-index: 3; width: 40px; height: 40px; margin-top: -20px; border: 0; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .92); color: var(--nt-ink); box-shadow: 0 4px 12px rgba(0, 0, 0, .12); cursor: pointer; opacity: 0; transition: opacity .2s; }
.nt-gal-main:hover .nt-gal-arrow, .nt-gal-arrow:focus-visible { opacity: 1; }
.nt-gal-arrow.is-prev { left: 12px; } .nt-gal-arrow.is-next { right: 12px; }
.nt-gal-count { position: absolute; z-index: 3; left: 50%; bottom: 12px; transform: translateX(-50%); padding: 4px 12px; border-radius: 20px; background: rgba(0, 0, 0, .55); color: #fff; font-size: 12px; letter-spacing: .05em; }
.nt-gal-thumbs { display: flex; justify-content: flex-start; gap: 14px; margin: 18px 0 0; overflow-x: auto; scrollbar-width: none; padding: 2px; scroll-behavior: smooth; }
/* Ít ảnh: nằm giữa; nhiều ảnh hơn bề ngang: bắt đầu từ mép trái, kéo / cuộn ngang xem tiếp (không bị cắt mất ảnh đầu) */
.nt-gal-thumbs > :first-child { margin-left: auto; } .nt-gal-thumbs > :last-child { margin-right: auto; }
.nt-gal-thumb { flex: 0 0 78px; width: 78px; height: 78px; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: #F7F7F7; cursor: pointer; opacity: .75; transition: opacity .2s, border-color .2s; }
.nt-gal-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; font-size: 0; color: transparent; }   /* ảnh lỗi: không hiện chữ thay thế tràn ô */
.nt-gal-thumb.is-on, .nt-gal-thumb:hover { border-color: var(--nt-p); opacity: 1; }
@media (hover: none) { .nt-gal-arrow { opacity: 1; } }
/* Xem ảnh toàn màn hình */
.nt-lb { position: fixed; z-index: 100001; inset: 0; display: none; align-items: center; justify-content: center; background: rgba(18, 13, 9, .92); }
.nt-lb.is-on { display: flex; }
.nt-lb img { max-width: 92vw; max-height: 86vh; object-fit: contain; border-radius: 6px; }:where(html.nt-desk) .nt-lb img{max-width: max(92vw, 1104px)}
.nt-lb-x, .nt-lb-a { position: absolute; border: 0; background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer; border-radius: 50%; display: grid; place-items: center; font-size: 30px; line-height: 1; }
.nt-lb-x { top: 16px; right: 16px; width: 44px; height: 44px; }
.nt-lb-a { top: 50%; width: 50px; height: 50px; margin-top: -25px; }
.nt-lb-a.is-prev { left: 16px; } .nt-lb-a.is-next { right: 16px; }
.nt-lb-n { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); color: #fff; font-size: 14px; }

/* ---------- Khung đã bán, tóm tắt đánh giá ---------- */
.nt-soldbox { display: flex; align-items: center; gap: 14px; margin: 16px 0 0; padding: 16px 20px; background: #EEF8F1; border: 1px solid #CFE8D7; border-radius: 14px; }
.nt-soldbox-ic { flex: 0 0 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: #2E9E57; box-shadow: 0 2px 8px rgba(46, 158, 87, .18); }
.nt-soldbox-tx strong { display: block; font-size: 17px; font-weight: 800; line-height: 1.3; }
.nt-soldbox-tx strong span { font-size: 26px; font-weight: 800; letter-spacing: .02em; color: #111; }
.nt-soldbox-tx small { display: block; margin-top: 3px; font-size: 12.5px; color: #4E6B58; }
.nt-ratebox { display: grid; grid-template-columns: 156px minmax(0, 1fr); gap: 22px; align-items: center; margin: 14px 0 0; padding: 16px 18px; background: #fff; border: 1px solid #EDEAE7; border-radius: 12px; color: #4E3F34; }
.nt-ratebox-l { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 12px; border-radius: 10px; background: linear-gradient(#FDFAF7, #F8F5F2); text-align: center; }
.nt-ratebox-score { display: flex; align-items: baseline; gap: 4px; margin: 0; }
.nt-ratebox-score b { font-size: 36px; font-weight: 800; line-height: 1; color: var(--nt-p); letter-spacing: -.02em; }
.nt-ratebox-score span { font-size: 15px; color: #8C7B6B; }
.nt-ratebox-n { padding: 3px 12px; border: 1px solid #EDE6DC; border-radius: 999px; background: #fff; font-size: 12.5px; color: var(--nt-ink); }
.nt-ratebox-bars { display: grid; gap: 7px; }
.nt-ratebox-bar { display: grid; grid-template-columns: 12px auto minmax(0, 1fr) 26px; gap: 9px; align-items: center; font-size: 13px; }
.nt-ratebox-bar .n { font-weight: 700; }
.nt-ratebox-bar .t { height: 9px; border-radius: 5px; background: #ECEBE9; overflow: hidden; }
.nt-ratebox-bar .t i { display: block; height: 100%; border-radius: inherit; background: #CC7F33; }
.nt-ratebox-bar .c { text-align: right; color: var(--nt-p); font-weight: 600; }
.nt-ratebox.is-merge { display: block; padding: 0; border-color: #E8DCCB; border-top: 3px solid var(--nt-p); border-radius: 16px; box-shadow: 0 14px 30px -24px rgba(80, 50, 20, .7); overflow: hidden; }
.nt-rb-top { display: grid; grid-template-columns: repeat(3, 1fr); background: #fff; border-bottom: 1px dashed #EADFCF; }
.nt-rb-top > div { padding: 14px 10px; text-align: center; }
.nt-rb-top > div + div { border-left: 1px solid #EFE6D9; }
.nt-rb-top small { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #A08D7C; }
.nt-rb-top b { display: flex; align-items: center; justify-content: center; gap: 4px; font-size: 26px; font-weight: 800; line-height: 1.2; color: var(--nt-ink); }
.nt-rb-top b svg { color: #F5A524; }
.nt-rb-top b.is-sold { color: var(--nt-p-d); }
.nt-rb-top a { color: inherit; }
.nt-ratebox.is-merge .nt-ratebox-bars { padding: 16px 22px; }
/* Máy tính: khung thư viện ảnh và khung đánh giá cùng tông xanh nhạt (tách khỏi nền kem của trang);
   hai cột cao bằng nhau — khung đánh giá (cuối cột ảnh) giãn tới đáy cột thông tin */
@media (min-width: 850px) {
  .nt-gal { background: #fff; border: 1px solid #C9E0CF; border-radius: 20px; overflow: hidden; box-shadow: 0 18px 36px -24px rgba(35, 128, 74, .45); }
  .nt-gal-main { border-radius: 0; box-shadow: none; }
  .nt-gal-thumbs { margin: 0; padding: 12px 14px; background: #EDF6EF; border-top: 1px solid #D6E9DB; }
  .nt-gal-thumb { border-radius: 12px; opacity: .85; }
  .nt-gal-thumb.is-on, .nt-gal-thumb:hover { border-color: var(--nt-a); }
  .nt-gal-thumb.is-on { box-shadow: 0 0 0 3px rgba(35, 128, 74, .18); }
  .nt-pd-media > .nt-ratebox, .nt-pd-media > .nt-soldbox { border: 1px solid #C9E0CF; border-radius: 20px; box-shadow: 0 18px 36px -24px rgba(35, 128, 74, .45); }
  .nt-ratebox.is-merge { border-top: 1px solid #C9E0CF; }
  .nt-rb-top { background: #EDF6EF; border-bottom: 1px solid #D6E9DB; }
  .nt-rb-top > div + div { border-left-color: #D3E6D8; }
  .nt-rb-top small { color: #4E7A5E; }
  .nt-rb-top b.is-sold { color: var(--nt-a); }
  .nt-pd:has(.nt-pd-media > .nt-ratebox:last-child) { align-items: stretch; }
  .nt-pd-media:has(> .nt-ratebox:last-child) { display: flex; flex-direction: column; }
  .nt-pd-media > .nt-ratebox:last-child { flex: 1 1 auto; }
  .nt-ratebox.is-merge { display: flex; flex-direction: column; align-items: stretch; }
  .nt-ratebox.is-merge .nt-ratebox-bars { flex: 1 1 auto; align-content: space-evenly; gap: 4px; padding: 12px 22px; }
  .nt-rb-top > div { padding: 11px 10px; }
}
  :where(html.nt-desk) .nt-gal{ background: #fff; border: 1px solid #C9E0CF; border-radius: 20px; overflow: hidden; box-shadow: 0 18px 36px -24px rgba(35, 128, 74, .45); }
  :where(html.nt-desk) .nt-gal-main{ border-radius: 0; box-shadow: none; }
  :where(html.nt-desk) .nt-gal-thumbs{ margin: 0; padding: 12px 14px; background: #EDF6EF; border-top: 1px solid #D6E9DB; }
  :where(html.nt-desk) .nt-gal-thumb{ border-radius: 12px; opacity: .85; }
  :where(html.nt-desk) .nt-gal-thumb.is-on,:where(html.nt-desk) .nt-gal-thumb:hover{ border-color: var(--nt-a); }
  :where(html.nt-desk) .nt-gal-thumb.is-on{ box-shadow: 0 0 0 3px rgba(35, 128, 74, .18); }
  :where(html.nt-desk) .nt-pd-media > .nt-ratebox,:where(html.nt-desk) .nt-pd-media > .nt-soldbox{ border: 1px solid #C9E0CF; border-radius: 20px; box-shadow: 0 18px 36px -24px rgba(35, 128, 74, .45); }
  :where(html.nt-desk) .nt-ratebox.is-merge{ border-top: 1px solid #C9E0CF; }
  :where(html.nt-desk) .nt-rb-top{ background: #EDF6EF; border-bottom: 1px solid #D6E9DB; }
  :where(html.nt-desk) .nt-rb-top > div + div{ border-left-color: #D3E6D8; }
  :where(html.nt-desk) .nt-rb-top small{ color: #4E7A5E; }
  :where(html.nt-desk) .nt-rb-top b.is-sold{ color: var(--nt-a); }
  :where(html.nt-desk) .nt-pd:has(.nt-pd-media > .nt-ratebox:last-child){ align-items: stretch; }
  :where(html.nt-desk) .nt-pd-media:has(> .nt-ratebox:last-child){ display: flex; flex-direction: column; }
  :where(html.nt-desk) .nt-pd-media > .nt-ratebox:last-child{ flex: 1 1 auto; }
  :where(html.nt-desk) .nt-ratebox.is-merge{ display: flex; flex-direction: column; align-items: stretch; }
  :where(html.nt-desk) .nt-ratebox.is-merge .nt-ratebox-bars{ flex: 1 1 auto; align-content: space-evenly; gap: 4px; padding: 12px 22px; }
  :where(html.nt-desk) .nt-rb-top > div{ padding: 11px 10px; }

@media (max-width: 849px) { :where(html:not(.nt-desk)) .nt-soldbox,:where(html:not(.nt-desk)) .nt-ratebox{ display: none; } }

/* ---------- Phần thông tin ---------- */
.nt-pd-title { margin: -.3em 0 12px; font-size: clamp(21px, 2vw, 27px); line-height: 1.38; letter-spacing: .005em; color: #000; }:where(html.nt-desk) .nt-pd-title{font-size: clamp(21px, max(2vw, 24px), 27px)}
@media (min-width: 850px) { .nt-pd-title { margin-top: calc(-.3em + 3px); } } :where(html.nt-desk) .nt-pd-title{ margin-top: calc(-.3em + 3px); }    /* máy tính: cách đường dẫn (breadcrumb) phía trên thêm 3px */
/* Phần thông tin: từng khối bo tròn (máy tính và điện thoại cùng kiểu, điện thoại nhỏ hơn) */
.nt-pd-facts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 2px 0 16px; }
.nt-pd-facts > div { flex: 0 0 auto; display: flex; align-items: center; min-width: 0; min-height: 38px; padding: 0 16px; background: #fff; border: 1px solid #EADFCF; border-radius: 999px; }
.nt-pd-facts > div.is-stock { background: #EEF8F1; border-color: #CFE9D8; }
.nt-pd-facts > div.is-stock:has(.is-out) { background: #FDF0F0; border-color: #F3CFCF; }
.nt-pd-facts dt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nt-pd-facts dd { display: flex; align-items: center; margin: 0; font-size: 14px; font-weight: 700; line-height: 1.3; color: #2E2118; white-space: nowrap; }
.nt-pd-rate { display: inline-flex; align-items: center; gap: 6px; color: inherit; }
.nt-pd-rate .nt-stars { --nt-star: #F5A524; }
.nt-pd-rate > span, .nt-pd-views, .nt-pd-sku em { font-weight: 500; font-style: normal; color: #8A7766; }
.nt-pd-rate > span b, .nt-pd-views strong, .nt-pd-sku b { font-weight: 700; color: #2E2118; }
.nt-pd-stock strong { display: inline-flex; align-items: center; gap: 7px; }
.nt-pd-stock strong i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 18%, transparent); }
.nt-pd-stock .is-in { color: #23804A; } .nt-pd-stock .is-out { color: #B91C1C; }
.nt-pd-brand-a { display: inline-flex; align-items: center; height: 22px; max-width: 100%; color: inherit; transition: opacity .2s; }
.nt-pd-brand-a + .nt-pd-brand-a { margin-left: 8px; }
a.nt-pd-brand-a:hover { opacity: .8; }
.nt-pd-brand-img { display: block; width: auto; height: 100%; max-width: 100%; object-fit: contain; }
.nt-pd-brand-n { font-size: 14.5px; }
@media (max-width: 849px) {
  :where(html:not(.nt-desk)) .nt-pd-facts{ gap: 8px; }
  :where(html:not(.nt-desk)) .nt-pd-facts > div{ min-height: 32px; padding: 0 12px; }
  :where(html:not(.nt-desk)) .nt-pd-facts dd{ font-size: 13.5px; }
  :where(html:not(.nt-desk)) .nt-pd-rate{ gap: 5px; }
  :where(html:not(.nt-desk)) .nt-pd-rate .nt-stars{ --s: 11px !important; }
  :where(html:not(.nt-desk)) .nt-pd-brand-a{ height: 20px; }
}
.nt-pd-short { margin: 0 0 14px; }
.nt-pd-short-t { margin: 0 0 8px; font-size: 16.5px; font-weight: 700; letter-spacing: 0; color: #342A22; }
.nt-pd-short-b { max-height: 300px; overflow: auto; padding-right: 10px; font-size: 15.5px; line-height: 1.65; color: #4E3F34; scrollbar-width: thin; }
.nt-pd-short-b p { margin: 0 0 6px; }
.nt-pd-short-b ul { margin: 0; padding: 0; list-style: none; }
.nt-pd-short-b li { position: relative; margin: 0 0 6px; padding-left: 18px; font-size: 14.5px; }
.nt-pd-short-b li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: #2E9E57; }
.nt-pd-short-b strong { color: #2E2118; }
.nt-pd-short { position: relative; }
/* Máy tính: khung thông số cao cố định theo ảnh lớn (JS tính), cuộn trong khung; còn nội dung bên dưới thì mờ dần + nút Xem tiếp */
.nt-pd-short.is-fit .nt-pd-short-b { max-height: none; }   /* không chặn cuộn: hết nội dung (hoặc nội dung ngắn) thì lăn chuột cuộn tiếp cả trang */
.nt-pd-short.is-fit::after { content: ""; position: absolute; left: 0; right: 12px; bottom: 0; height: 56px; background: linear-gradient(rgba(250, 246, 240, 0), var(--nt-bg, #FAF6F0) 85%); pointer-events: none; opacity: 0; transition: opacity .2s; }
.nt-pd-short.is-more::after { opacity: 1; }
.nt-pd-more { position: absolute; left: 50%; bottom: 4px; z-index: 1; display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 12px 0 14px; border: 1px solid #EADFCF; border-radius: 999px; background: #fff; color: var(--nt-p-d, #A86222); font: inherit; font-size: 12.5px; font-weight: 700; box-shadow: 0 6px 16px -8px rgba(46, 33, 24, .35); cursor: pointer; opacity: 0; visibility: hidden; transform: translate(-50%, 6px); transition: opacity .2s, transform .2s, visibility .2s; }
.nt-pd-short.is-more .nt-pd-more { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.nt-pd-more svg { animation: nt-more 1.6s ease-in-out infinite; }
@keyframes nt-more { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(2px); } }
.nt-pd-more:hover { border-color: var(--nt-p, #C97B32); }
@media (prefers-reduced-motion: reduce) { .nt-pd-more svg { animation: none; } }

/* Chọn phân loại */
.nt-vp { display: grid; gap: 10px; margin: 4px 0 14px; padding: 12px 16px; background: #fff; border: 1px solid #E4D5C0; border-radius: 18px; box-shadow: 0 6px 18px rgba(110, 66, 30, .06); }
.nt-vp-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; }
.nt-vp-lb { min-width: 92px; font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--nt-a); }
/* Điện thoại: mọi nhóm đều nhãn ở trên, nút ở dưới — đồng đều, không còn nhóm thì cùng hàng nhóm thì xuống dòng */
@media (max-width: 849px) {
  :where(html:not(.nt-desk)) .nt-vp{ gap: 14px; }
  :where(html:not(.nt-desk)) .nt-vp-row{ flex-direction: column; align-items: flex-start; gap: 8px; }
  :where(html:not(.nt-desk)) .nt-vp-lb{ min-width: 0; }
}
.nt-vp-opts { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 14px; background: #F3ECE3; box-shadow: inset 0 1px 2px rgba(46, 33, 24, .08); }
.nt-vp-btn { position: relative; display: inline-flex; align-items: center; min-height: 38px; padding: 0 18px; border: 2px solid transparent; border-radius: 10px; background: transparent; color: #6B5A4C; font-size: 14px; font-weight: 600; cursor: pointer; transition: background .2s, color .2s, box-shadow .2s; }
@media (hover: hover) { .nt-vp-btn:hover:not(.is-active) { background: rgba(255, 255, 255, .6); color: var(--nt-ink); } }
.nt-vp-btn:focus-visible { outline: 2px solid var(--nt-p); outline-offset: 1px; }
.nt-vp-btn.is-active { border-color: #B0662A; background: #fff; color: #8E4E1A; box-shadow: 0 4px 12px -6px rgba(46, 33, 24, .45); }
/* Dấu ✓ tròn ở góc phải tuỳ chọn đang chọn */
.nt-vp-btn.is-active::after { content: ""; position: absolute; top: -9px; right: -9px; width: 20px; height: 20px; border: 2px solid #fff; border-radius: 50%; background: #B0662A url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat; box-shadow: 0 2px 6px rgba(110, 66, 30, .3); }
.nt-vp-btn.is-off { opacity: .45; text-decoration: line-through; }
/* Chưa chọn phân loại mà bấm mua: viền cam + rung nhẹ + bóng chữ nhắc (product.js) */
.nt-vp, form.variations_form table.variations { position: relative; }
.is-need { border-color: #E0562F !important; box-shadow: 0 0 0 4px rgba(224, 86, 47, .14) !important; animation: nt-need .42s ease; }
@keyframes nt-need { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }
.nt-need-tip { position: absolute; z-index: 20; left: 14px; bottom: calc(100% + 12px); display: flex; align-items: center; gap: 8px; width: max-content; max-width: calc(100% - 28px); text-wrap: balance; padding: 9px 14px 9px 10px; border-radius: 12px; background: #2E2118; color: #fff; font-size: 14px; font-weight: 700; line-height: 1.35; box-shadow: 0 14px 28px -12px rgba(0, 0, 0, .55); animation: nt-tip-in .2s ease-out; }
.nt-need-tip::after { content: ""; position: absolute; left: 22px; bottom: -6px; width: 13px; height: 13px; border-radius: 2px; background: #2E2118; transform: rotate(45deg); }
/* Bóng chữ vừa khít chữ (Safari iPhone co khung sớm làm chữ cuối rơi xuống dòng); câu dài quá khung mới xuống dòng, chia đều hai dòng */
.nt-need-tip i { display: grid; place-items: center; flex: 0 0 20px; height: 20px; border-radius: 50%; background: #E9A04B; color: #2E2118; font-size: 13px; font-style: normal; font-weight: 900; }
@keyframes nt-tip-in { from { opacity: 0; transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { .is-need, .nt-need-tip { animation: none; } }
html.nt-vp-on form.variations_form table.variations { display: none; }

/* Khung giá */
.nt-pb { display: flex; flex-direction: column; gap: 7px; margin: 0 0 16px; padding: 11px 16px; background: radial-gradient(120% 140% at 100% 0%, #FBF8F3 0%, #fff 55%); border: 1px solid #E4D5C3; border-radius: 14px; box-shadow: 0 8px 22px rgba(214, 54, 56, .07); }
.nt-pb-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.nt-pb-from { font-size: 13px; font-weight: 600; color: #ADA49B; }
.nt-pb-now { font-size: 27px; font-weight: 800; line-height: 1.2; color: var(--nt-price); letter-spacing: -.01em; }
.nt-pb-old { font-size: 15px; font-weight: 600; color: #ADA49B; }
.nt-pb-off { padding: 4px 8px; border-radius: 8px; background: var(--nt-a); color: #fff; font-size: 12.5px; font-weight: 700; line-height: 1.1; }
.nt-pb-save { padding: 4px 10px; border: 1px solid #BFE6CF; border-radius: 999px; background: #E9F8EF; color: #146C3E; font-size: 12.5px; font-weight: 600; }
.nt-pb-save b { font-weight: 700; }
.nt-pb-row .nx-order-tag.nt-pb-order { margin-left: auto; }
/* Thẻ "Hàng Order" (hàng đặt trước) trong khung giá */
.nx-order-tag { display: inline-flex; align-items: center; gap: 7px; padding: 5px 6px 5px 12px; border-radius: 999px; background: linear-gradient(135deg, #E07A2E, #C2561A); color: #fff; font-size: 13.5px; font-weight: 800; line-height: 1.35; white-space: nowrap; box-shadow: 0 6px 14px -8px rgba(194, 86, 26, .85), inset 0 1px 0 rgba(255, 255, 255, .22); }
.nx-order-tag:not(:has(.nx-order-tag-d)) { padding-right: 14px; }
.nx-order-tag svg { flex: none; }
.nx-order-tag-d { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 999px; background: #fff; color: #B04516; font-size: 12.5px; font-weight: 800; }
.nt-pb-perks { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 8px; border-top: 1px dashed #EFE5D8; }
.nt-pb-perks span { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border: 1px solid #F4F2EF; border-radius: 8px; background: #fff; color: #5B5147; font-size: 12.5px; font-weight: 600; }
.nt-pb-perks svg { color: var(--nt-a); }
.nt-pb-perks span:nth-child(3) svg { color: var(--nt-star); }
.nt-pb-perks b { color: #111; }

/* Nút mua */
form.cart { margin: 0; }
form.cart .variations { margin: 0 0 12px; border-collapse: collapse; }
form.cart .variations th, form.cart .variations td { padding: 4px 8px 4px 0; text-align: left; }
form.cart .reset_variations { display: none !important; }
.woocommerce-variation-price, .woocommerce-variation-availability { display: none; }
.woocommerce-variation-description { font-size: 14px; color: var(--nt-body); margin: 0 0 10px; }
.woocommerce-variation-description:empty { display: none; }   /* trống: không chiếm 10px rồi trượt lên khi chọn / bỏ chọn phân loại */
.woocommerce-variation-add-to-cart, form.cart:not(.variations_form) { display: flex; flex-wrap: wrap; gap: 12px 10px; }
.single_variation_wrap { display: block; }
.nt-pd-info .quantity { display: inline-flex; align-items: center; border: 1px solid var(--nt-line2); border-radius: 999px; background: #fff; overflow: hidden; height: 54px; }
.nt-pd-info .quantity.nt-qty-hidden, .quantity:has(.nt-qty-hidden) { display: none !important; }   /* nút Mua ngay (plugin khác) tự hiện lại ô số lượng bằng style="display:block" */
.quantity .qty { width: 52px; height: 100%; padding: 0; border: 0; text-align: center; font-weight: 700; -moz-appearance: textfield; appearance: textfield; box-shadow: none; }
.quantity .qty::-webkit-inner-spin-button { -webkit-appearance: none; }
.nt-q-btn { width: 40px; height: 100%; border: 0; background: transparent; display: grid; place-items: center; cursor: pointer; }
.nt-q-btn:hover { background: var(--nt-sand); }
.single_add_to_cart_button, .nt-pd-zalo { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 54px; padding: 0 22px; border: 0; border-radius: 999px; font-size: 15px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; cursor: pointer; transition: background .2s, transform .2s, box-shadow .2s; }
.single_add_to_cart_button.wc-buy-now-btn { order: -1; flex: 1 1 100%; background: var(--nt-p-d); color: #fff; box-shadow: 0 12px 24px -12px color-mix(in srgb, var(--nt-p-d) 75%, transparent); }   /* nâu đậm của bộ An Nhiên */
.single_add_to_cart_button.wc-buy-now-btn:hover, .single_add_to_cart_button.wc-buy-now-btn:focus-visible { background: color-mix(in srgb, var(--nt-p-d) 86%, #000); color: #fff; }
/* Hết hàng: nút mờ thế chỗ Mua ngay / Thêm vào giỏ, nút Liên hệ Zalo giãn cả hàng */
.nt-oos-btn { display: none; order: -2; flex: 1 1 100%; align-items: center; justify-content: center; gap: 9px; min-height: 54px; padding: 0 22px; border: 0; border-radius: 999px; background: repeating-linear-gradient(135deg, #EEE8E1 0 10px, #E9E2DA 10px 20px); box-shadow: inset 0 0 0 1px #DED3C6; color: #8C7B6B; font: inherit; font-size: 15px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; cursor: not-allowed; }
.nt-is-oos .nt-oos-btn { display: inline-flex; }
form.cart.nt-is-oos .single_add_to_cart_button, form.cart.nt-is-oos .quantity, form.cart.nt-is-oos [name="wc-quick-buy-now"] { display: none !important; }
.nt-is-oos .nt-pd-zalo { flex: 1 1 100%; }
.nt-pd-info > .stock.out-of-stock { display: none; }   /* tình trạng đã có ở hàng thông tin dưới tên + nút Hết hàng */
.nt-oos-form { display: flex; flex-wrap: wrap; gap: 12px 10px; margin: 0 0 16px; }
.single_add_to_cart_button:not(.wc-buy-now-btn) { flex: 1 1 calc(50% - 5px); background: var(--nt-sand); color: var(--nt-ink); box-shadow: inset 0 0 0 1px #E4D5C0; }
.single_add_to_cart_button:not(.wc-buy-now-btn)::before { content: ""; width: 20px; height: 20px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C97B32' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='21' r='1'/%3E%3Ccircle cx='20' cy='21' r='1'/%3E%3Cpath d='M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6'/%3E%3C/svg%3E") center / contain no-repeat; }
.single_add_to_cart_button:not(.wc-buy-now-btn):hover { background: #E9DAC4; }
.single_add_to_cart_button.disabled, .single_add_to_cart_button:disabled { opacity: .55; cursor: not-allowed; }
.single_add_to_cart_button.loading { opacity: .7; }
.single_add_to_cart_button.loading::before { background: none !important; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; width: 16px; height: 16px; animation: nt-spin .7s linear infinite; }
.nt-pd-zalo { flex: 1 1 calc(50% - 5px); background: var(--nt-sand); color: var(--nt-ink); box-shadow: inset 0 0 0 1px #E4D5C0; }
.nt-pd-zalo:hover { background: #E9DAC4; color: var(--nt-ink); }
.nt-zl-chip { display: inline-flex; align-items: center; height: 28px; padding: 0 11px; border-radius: 999px; background: #fff; color: var(--nt-p); font-size: 12px; font-weight: 800; letter-spacing: -.01em; text-transform: none; box-shadow: 0 0 0 1px #E4D5C0, 0 2px 6px rgba(46, 33, 24, .1); }
/* Dòng LIVE (plugin NhatDX đếm, theme vẽ): dưới hàng nút mua, trên khung Miễn phí giao hàng (nút: -2…0, khung giao hàng: 5) */
.nt-pd-info .nx-live { order: 4; flex: 1 1 100%; display: flex; align-items: stretch; gap: 0; padding: 0; border: 1px solid #F1D2C6; border-radius: 14px; background: #fff; box-shadow: 0 4px 16px rgba(169, 88, 48, .1); font-size: 14.5px; color: #5B5147; overflow: hidden; }
.nx-live-badge { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-width: 68px; padding: 0 16px; border-radius: 0; background: linear-gradient(160deg, #F0563B, var(--nt-hot) 60%, #B92A26); color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .1em; line-height: 1; box-shadow: none; }   /* khối LIVE đỏ bên trái (kiểu E) */
.nx-live-dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: nt-live-dot 1s ease-in-out infinite; }
.nx-live-faces { display: flex; align-items: center; padding-left: 14px; }
.nx-live-faces i[hidden] { display: none; }
.nx-live-faces i.is-me { color: #fff; background: var(--nt-p) !important; box-shadow: 0 0 0 1.5px var(--nt-p-d); }   /* vòng của chính khách đang xem */
.nx-live-faces i { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; margin-left: -8px; border: 2px solid #fff; border-radius: 50%; background: #271C14 !important; color: #E3A06A; font-size: 12px; font-style: normal; font-weight: 700; line-height: 1; text-align: center; text-box: trim-both cap alphabetic; box-shadow: 0 0 0 1.5px #C67C3C; }
.nx-live-faces i:first-child { margin-left: 0; }
.nx-live-faces i.is-pop { animation: nt-live-pop .45s ease; }   /* vòng chữ vừa đổi (có người mới vào) */
@keyframes nt-live-pop { 0% { transform: scale(.6); } 60% { transform: scale(1.15); } 100% { transform: scale(1); } }
.nx-live-text { flex: 1; min-width: 0; display: flex; align-items: center; flex-wrap: wrap; column-gap: 6px; padding: 11px 12px; line-height: 1.35; }   /* số người và câu chữ cùng một đường giữa */
.nx-live-n { display: inline-flex; align-items: center; position: relative; margin: 0; font-size: 19px; font-weight: 800; line-height: 1; color: var(--nt-hot); overflow: hidden; }
.nx-live-roll { display: inline-block; transition: transform .35s, opacity .35s; }
.nx-live-roll.is-in.from-down { transform: translateY(100%); opacity: 0; } .nx-live-roll.is-in.from-up { transform: translateY(-100%); opacity: 0; }
.nx-live-roll.is-out { position: absolute; left: 0; } .nx-live-roll.is-out.to-up { transform: translateY(-100%); opacity: 0; } .nx-live-roll.is-out.to-down { transform: translateY(100%); opacity: 0; }
.nx-live-short { display: none; }
@media (max-width: 359px) { :where(html:not(.nt-desk)) body.nt .nx-live-faces i{ width: 24px; height: 24px; font-size: 11px; margin-left: -7px; } :where(html:not(.nt-desk)) body.nt .nx-live-faces i:first-child{ margin-left: 0; } :where(html:not(.nt-desk)) body.nt .nx-live-badge{ min-width: 48px; padding: 0 8px; } :where(html:not(.nt-desk)) body.nt .nx-live-text{ padding: 10px 8px; } }   /* điện thoại: câu ngắn "… khách đang xem" thay câu dài */
.nx-live-eye { align-self: center; margin-right: 16px; color: #B7A99C; }
@keyframes nt-live-dot { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
/* Miễn phí giao hàng */
.nt-pd-ship { order: 5; flex: 1 1 100%; display: flex; align-items: center; gap: 13px; margin-top: 2px; padding: 8px 14px 8px 10px; border: 1px solid #E4D5C0; border-radius: 16px; background: linear-gradient(120deg, #FBF7F1 0%, #F8F1E7 100%); color: #5A4636; font-size: 14px; }
.nt-pd-ship-ic { flex: 0 0 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--nt-a-l); color: var(--nt-a); box-shadow: 0 2px 8px rgba(201, 123, 50, .12); }
.nt-pd-ship-b { flex: 1; min-width: 0; display: flex; flex-direction: column; }   /* tên · thanh tiến trình (giữa, ngang tâm nút "Đơn từ…") · dòng trạng thái */
.nt-pd-ship-t { order: 1; margin: 0; font-size: 14px; line-height: 20px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; color: #2E2118; }
.nt-pd-ship-s { order: 3; margin: 0; line-height: 20px; }
.nt-pd-ship-s.is-yes { align-items: center; gap: 5px; }
.nt-pd-ship-s strong { color: var(--nt-a); }
.nt-pd-ship-s.is-yes, .nt-pd-ship.is-free .nt-pd-ship-s.is-no { display: none; }
.nt-pd-ship.is-free .nt-pd-ship-s.is-yes { display: flex; color: var(--nt-a); font-weight: 600; }
.nt-pd-ship-bar { order: 2; display: block; height: 6px; margin: 6px 0; border-radius: 999px; background: var(--nt-a-l); overflow: hidden; }
.nt-pd-ship-bar i { display: block; width: var(--p, 0%); height: 100%; border-radius: inherit; background: linear-gradient(90deg, #34A862, var(--nt-a)); transition: width .4s; }
.nt-pd-ship-chip { flex: 0 0 auto; padding: 5px 11px; border: 1px dashed #BFE3CB; border-radius: 999px; background: #F5FAF6; color: var(--nt-a); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.stock.out-of-stock { color: #B91C1C; font-weight: 700; }
@media (max-width: 767px) {
  /* Điện thoại: "Thêm vào giỏ" là nút chính (nâu, cả hàng); "Mua ngay" nửa hàng cạnh nút Liên hệ, cùng kiểu nền kem */
  :where(html:not(.nt-desk)) .single_add_to_cart_button:not(.wc-buy-now-btn){ order: -1; flex-basis: 100%; background: var(--nt-p-d); color: #fff; box-shadow: 0 12px 24px -12px color-mix(in srgb, var(--nt-p-d) 75%, transparent); }
  :where(html:not(.nt-desk)) .single_add_to_cart_button:not(.wc-buy-now-btn):hover,:where(html:not(.nt-desk)) .single_add_to_cart_button:not(.wc-buy-now-btn):focus-visible{ background: color-mix(in srgb, var(--nt-p-d) 86%, #000); color: #fff; }
  :where(html:not(.nt-desk)) .single_add_to_cart_button:not(.wc-buy-now-btn)::before{ filter: brightness(0) invert(1); }
  :where(html:not(.nt-desk)) .single_add_to_cart_button.wc-buy-now-btn{ order: 0; flex: 1 1 calc(50% - 5px); background: var(--nt-sand); color: var(--nt-ink); box-shadow: inset 0 0 0 1px #E4D5C0; }
  :where(html:not(.nt-desk)) .single_add_to_cart_button.wc-buy-now-btn:hover,:where(html:not(.nt-desk)) .single_add_to_cart_button.wc-buy-now-btn:focus-visible{ background: #E9DAC4; color: var(--nt-ink); }
  :where(html:not(.nt-desk)) .single_add_to_cart_button,:where(html:not(.nt-desk)) .nt-pd-zalo{ min-height: 50px; font-size: 14px; padding: 0 12px; }
  :where(html:not(.nt-desk)) .nt-pd-ship-chip{ display: none; }
  :where(html:not(.nt-desk)) .nt-pd-info .nx-live{ font-size: 13px; } :where(html:not(.nt-desk)) .nx-live-eye{ display: none; } :where(html:not(.nt-desk)) body.nt .nx-live-text{ display: flex; flex-wrap: nowrap; align-items: center; column-gap: 5px; white-space: nowrap; overflow: hidden; } :where(html:not(.nt-desk)) body.nt .nx-live-n{ flex: none; font-size: 17px; } :where(html:not(.nt-desk)) body.nt .nx-live-long{ display: none; } :where(html:not(.nt-desk)) body.nt .nx-live-short{ display: inline; font-weight: 600; color: var(--nt-ink); } :where(html:not(.nt-desk)) .nx-live-badge{ min-width: 54px; padding: 0 10px; font-size: 11px; } :where(html:not(.nt-desk)) .nx-live-faces{ padding-left: 10px; } :where(html:not(.nt-desk)) .nx-live-text{ padding: 10px; }
}

/* ---------- Lời nhắn ---------- */
.nt-maker { margin: 40px 0 26px; padding: 26px 30px; background: #fff; border: 1px solid #EFE5D8; border-radius: 22px; }
.nt-maker-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px 40px; align-items: start; }
.nt-maker-head { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; }
.nt-maker-ic { flex: 0 0 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--nt-a-l); color: var(--nt-a); }
.nt-maker-eye { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--nt-a); }
.nt-maker-t { margin: 0; font-size: 19px; }
.nt-maker-lead { margin: 0 0 8px; font-size: 15px; line-height: 1.75; color: var(--nt-body); }
.nt-maker-sign { margin: 0; font-weight: 700; color: var(--nt-p-d); font-size: 14px; }
.nt-maker-chips { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.nt-maker-chips li { display: flex; align-items: center; gap: 8px; padding: 9px 14px; border: 1px solid var(--nt-a-b); border-radius: 12px; background: #F7FBF8; color: var(--nt-a); font-size: 13.5px; font-weight: 600; }
.nt-maker-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin: 20px 0 0; padding: 18px 0 0; border-top: 1px dashed #EADCC7; }
.nt-maker-cta p { margin: 0; font-weight: 600; color: var(--nt-ink); font-size: 14.5px; }
.nt-maker-btns { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 849px) {
  :where(html:not(.nt-desk)) .nt-maker{ margin: 26px 0 18px; padding: 20px 16px; border-radius: 18px; }
  :where(html:not(.nt-desk)) .nt-maker-grid{ grid-template-columns: 1fr; }
  :where(html:not(.nt-desk)) .nt-maker-btns,:where(html:not(.nt-desk)) .nt-maker-btns .nt-btn{ width: 100%; }
}

/* ---------- Thẻ Mô tả / Đánh giá ---------- */
.nt-tabs { margin: 0 0 30px; scroll-margin-top: 80px; }
.nt-tabs-nav { position: relative; z-index: 1; display: flex; align-items: flex-end; gap: 6px; padding: 0 0 0 14px; margin-bottom: -1px; overflow-x: auto; scrollbar-width: none; }
/* Thẻ kiểu bìa hồ sơ: thẻ đang mở nền trắng, liền với khung nội dung bên dưới */
.nt-tabs-nav button { position: relative; padding: 12px 24px; border: 1px solid #EFE5D8; border-bottom: 0; border-radius: 14px 14px 0 0; background: #F4EEE6; font-size: 14.5px; font-weight: 600; color: #8C7B6B; cursor: pointer; white-space: nowrap; transition: background .15s, color .15s; }
.nt-tabs-nav button:hover { color: var(--nt-ink); background: #F9F5F0; }
.nt-tabs-nav button[aria-selected=true] { padding-bottom: 13px; background: #fff; color: var(--nt-ink); font-weight: 700; }
.nt-tabs-nav button[aria-selected=true]::after { content: ""; position: absolute; left: 18px; right: 18px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--nt-p); }
.nt-tab-panel { padding: 26px 30px; background: #fff; border: 1px solid #EFE5D8; border-radius: 18px; box-shadow: 0 16px 34px -30px rgba(80, 50, 20, .45); }
@media (max-width: 849px) { :where(html:not(.nt-desk)) .nt-tab-panel{ padding: 18px 14px; } :where(html:not(.nt-desk)) .nt-tabs-nav{ padding-left: 8px; } :where(html:not(.nt-desk)) .nt-tabs-nav button{ padding: 11px 18px; } }

/* Đánh giá (danh sách + form của WooCommerce) */
/* ---------- Đánh giá ---------- */
.nt-rv { --rv-line: #EFE5D8; }
.nt-rv-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; margin: 0 0 18px; }
.nt-rv-t { margin: 0; font-size: 20px; }
.nt-rv-filter { display: flex; flex-wrap: wrap; gap: 8px; }
.nt-rv-filter button { min-width: 42px; height: 34px; padding: 0 12px; border: 1px solid var(--rv-line); border-radius: 999px; background: #fff; font-size: 12.5px; font-weight: 600; color: var(--nt-muted); cursor: pointer; transition: border-color .15s, color .15s, background .15s; }
.nt-rv-filter button:first-child { text-transform: uppercase; letter-spacing: .04em; }
.nt-rv-filter button:hover { border-color: color-mix(in srgb, var(--nt-p) 45%, #fff); color: var(--nt-p-d); }
.nt-rv-filter button.is-on { border-color: var(--nt-p); color: var(--nt-p-d); background: color-mix(in srgb, var(--nt-p) 7%, #fff); }
.nt-rv-thanks { margin: 0 0 18px; padding: 12px 16px; border-radius: 12px; background: #EEF8F1; color: #146C3E; font-weight: 600; }
.nt-rv-sum { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 16px 36px; align-items: center; margin: 0 0 22px; }
.nt-rv-score { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.nt-rv-score b { font-size: 52px; font-weight: 800; line-height: 1; color: var(--nt-ink); }
.nt-rv-score small { font-size: 13px; color: var(--nt-muted); }
.nt-rv-score .nt-stars { --nt-star: #F5A524; }
.nt-rv-write { margin-top: 6px; font-size: 14px; font-weight: 700; color: var(--nt-p-d); text-decoration: underline; text-underline-offset: 4px; }
.nt-rv-bars { display: grid; gap: 12px; }
.nt-rv-bar { display: grid; grid-template-columns: 34px minmax(0, 1fr) 34px; align-items: center; gap: 14px; font-size: 13px; color: var(--nt-muted); }
.nt-rv-bar .n { white-space: nowrap; font-weight: 600; color: var(--nt-ink); }
.nt-rv-bar .n i { font-style: normal; font-size: 11px; color: #F5A524; }
.nt-rv-bar .t { height: 9px; border-radius: 999px; background: #F1ECE5; overflow: hidden; }
.nt-rv-bar .t i { display: block; height: 100%; border-radius: inherit; background: #FDB515; }
.nt-rv-bar .c { text-align: right; }
.nt-rv-total { margin: 0 0 14px; font-size: 15px; font-weight: 600; color: var(--nt-ink); }
.nt-rv-list { display: grid; gap: 14px; margin: 0 0 20px; padding: 0; list-style: none; }
.nt-rv-item { display: flex; gap: 14px; padding: 18px 20px; border: 1px solid var(--rv-line); border-radius: 14px; background: #fff; }
.nt-rv-item[hidden] { display: none; }
.nt-rv-item img.avatar { flex: none; width: 48px; height: 48px; border-radius: 50%; }
.nt-rv-b { flex: 1; min-width: 0; }
.nt-rv-b .nt-stars { --nt-star: #F5A524; display: block; }
.nt-rv-meta { margin: 6px 0 6px; font-size: 13.5px; color: var(--nt-muted); }
.nt-rv-meta strong { font-size: 14.5px; color: var(--nt-ink); }
.nt-rv-text p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--nt-body, #4E3F34); }
.nt-rv-none, .nt-rv-empty { margin: 0 0 18px; padding: 18px; border: 1px dashed var(--rv-line); border-radius: 14px; text-align: center; color: var(--nt-muted); }
.nt-rv-pager { display: flex; align-items: center; justify-content: center; gap: 22px; margin: 4px 0 26px; font-size: 15px; color: var(--nt-muted); }
.nt-rv-pager[hidden] { display: none; }
.nt-rv-pager b { color: var(--nt-p-d); }
.nt-rv-pager button { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--rv-line); border-radius: 50%; background: #fff; color: var(--nt-ink); cursor: pointer; transition: border-color .15s, color .15s; }
.nt-rv-pager button:hover:not(:disabled) { border-color: var(--nt-p); color: var(--nt-p-d); }
.nt-rv-pager button:disabled { opacity: .35; cursor: default; }
/* Khung viết đánh giá */
.nt-rv-form { display: grid; grid-template-columns: 280px minmax(0, 1fr); margin: 0 0 26px; border: 1px solid var(--rv-line); border-radius: 18px; background: #fff; overflow: hidden; scroll-margin-top: 90px; }
.nt-rv-pcard { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 26px 20px; text-align: center; background: linear-gradient(180deg, #FBF6EF, #fff); border-right: 1px dashed var(--rv-line); }
/* Chưa đăng nhập: hai nửa bằng nhau — trái: sản phẩm + sao chờ chấm; phải: lời mời, 2 lợi ích, nút Đăng nhập / Tạo tài khoản */
.nt-rv-login { display: grid; grid-template-columns: 1fr 1fr; margin: 0 0 26px; border: 1px solid var(--rv-line); border-radius: 18px; background: #fff; overflow: hidden; scroll-margin-top: 90px; }
.nt-rv-login-p { display: flex; align-items: center; gap: 18px; padding: 26px 30px; background: linear-gradient(135deg, #F6E7D2, #FBF4EA); border-right: 1px dashed #E6D5BF; }
.nt-rv-login-p .nt-rv-pimg { flex: 0 0 auto; width: 96px; height: 96px; border: 4px solid #fff; border-radius: 18px; }
.nt-rv-login-p > div { min-width: 0; }
.nt-rv-login-p .nt-rv-pname { display: block; font-size: 16px; }
.nt-rv-login-st { display: block; margin: 4px 0 2px; font-size: 22px; line-height: 1; letter-spacing: 3px; color: #E3D3BF; }
.nt-rv-login-p small { display: block; font-size: 13px; color: #8A6E55; }
.nt-rv-login-b { display: flex; flex-direction: column; justify-content: center; padding: 26px 32px; }
.nt-rv-login-b .nt-rv-ft { margin: 0 0 8px; font-size: 19px; }
.nt-rv-login-b ul { display: grid; gap: 7px; margin: 0 0 16px; padding: 0; list-style: none; color: #5A4636; font-size: 14px; }
.nt-rv-login-b li { display: flex; align-items: center; gap: 8px; }
.nt-rv-login-b li span { display: grid; place-items: center; flex: 0 0 20px; height: 20px; border-radius: 50%; background: var(--nt-a); color: #fff; }
.nt-rv-login-bt { display: flex; flex-wrap: wrap; gap: 10px; }
.nt-rv-login-bt .nt-rv-send { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 26px; text-decoration: none; }
.nt-rv-reg { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border: 1px solid #E3D3BE; border-radius: 12px; background: #fff; color: var(--nt-ink); font-size: 15px; font-weight: 700; text-decoration: none; transition: border-color .15s, color .15s; }
.nt-rv-reg:hover { border-color: var(--nt-p); color: var(--nt-p-d); }
.nt-rv-pimg { width: 108px; height: 108px; object-fit: cover; border-radius: 16px; box-shadow: 0 10px 22px -14px rgba(46, 33, 24, .6); }
.nt-rv-pname { font-size: 15.5px; line-height: 1.35; color: var(--nt-ink); }
.nt-rv-hint { font-size: 13px; color: var(--nt-muted); }
.nt-rv-pick { display: flex; gap: 8px; }
.nt-rv-pick label { cursor: pointer; font-size: 34px; line-height: 1; color: #DDD5CB; transition: color .12s, transform .12s; }
.nt-rv-pick label.is-on { color: #F5A524; }
.nt-rv-pick label:hover { transform: scale(1.12); }
.nt-rv-pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.nt-rv-pick input:focus-visible + span { outline: 2px solid var(--nt-p); outline-offset: 2px; border-radius: 4px; }
.nt-rv-pick.is-err label { color: #F2B8B5; }
.nt-rv-fields { display: flex; flex-direction: column; gap: 12px; padding: 24px 28px; }
.nt-rv-ft { margin: 0; font-size: 18px; }
.nt-rv-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.nt-rv-chips button { height: 32px; padding: 0 13px; border: 1px solid var(--rv-line); border-radius: 999px; background: #FDFBF8; font-size: 13px; font-weight: 600; color: var(--nt-ink); cursor: pointer; }
.nt-rv-chips button:hover { border-color: var(--nt-p); color: var(--nt-p-d); }
.nt-rv-who { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.nt-rv-fields textarea, .nt-rv-who input { width: 100%; padding: 12px 14px; border: 1px solid #E7DCCB; border-radius: 12px; background: #fff; font: inherit; font-size: 14.5px; }
.nt-rv-fields textarea { min-height: 130px; resize: vertical; }
.nt-rv-fields :is(textarea, input):focus { outline: 0; border-color: var(--nt-p); box-shadow: 0 0 0 3px color-mix(in srgb, var(--nt-p) 15%, transparent); }
.nt-rv-fields .is-err { border-color: #DC2626 !important; }
.nt-rv-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.nt-rv-note { margin: 0; font-size: 13px; color: var(--nt-muted); }
.nt-rv-note.is-err { color: #B91C1C; font-weight: 600; }
.nt-rv-send { min-height: 48px; padding: 0 46px; border: 0; border-radius: 12px; background: linear-gradient(135deg, var(--nt-p), var(--nt-p-d)); color: #fff; font-size: 15px; font-weight: 700; cursor: pointer; box-shadow: 0 12px 22px -14px var(--nt-p-d); }
.nt-rv-send:hover { filter: brightness(1.05); color: #fff; }   /* nút là thẻ <a>: không để màu chữ chung khi rê chuột đè lên (chữ trùng màu nền) */
@media (max-width: 849px) {
  :where(html:not(.nt-desk)) .nt-rv-head{ margin-bottom: 14px; }
  :where(html:not(.nt-desk)) .nt-rv-t{ font-size: 18px; }
  :where(html:not(.nt-desk)) .nt-rv-filter{ flex-wrap: nowrap; width: 100%; gap: 6px; overflow-x: auto; scrollbar-width: none; }
  :where(html:not(.nt-desk)) .nt-rv-filter button{ flex: none; min-width: 0; height: 32px; padding: 0 11px; }
  :where(html:not(.nt-desk)) .nt-rv-sum{ grid-template-columns: 1fr; gap: 14px; }
  :where(html:not(.nt-desk)) .nt-rv-bars{ gap: 9px; }
  :where(html:not(.nt-desk)) .nt-rv-item{ padding: 14px; gap: 12px; }
  :where(html:not(.nt-desk)) .nt-rv-item img.avatar{ width: 40px; height: 40px; }
  :where(html:not(.nt-desk)) .nt-rv-form,:where(html:not(.nt-desk)) .nt-rv-login{ grid-template-columns: 1fr; }
  :where(html:not(.nt-desk)) .nt-rv-login-p{ padding: 18px; border-right: 0; border-bottom: 1px dashed #E6D5BF; }
  :where(html:not(.nt-desk)) .nt-rv-login-p .nt-rv-pimg{ width: 80px; height: 80px; }
  :where(html:not(.nt-desk)) .nt-rv-login-b{ padding: 18px 18px 20px; }
  :where(html:not(.nt-desk)) .nt-rv-login-bt{ flex-direction: column; }
  :where(html:not(.nt-desk)) .nt-rv-login-bt a{ width: 100%; }
  :where(html:not(.nt-desk)) .nt-rv-login .nt-rv-pcard{ flex-direction: row; justify-content: flex-start; text-align: left; }
  :where(html:not(.nt-desk)) .nt-rv-pcard{ border-right: 0; border-bottom: 1px dashed var(--rv-line); padding: 20px 16px; }
  :where(html:not(.nt-desk)) .nt-rv-fields{ padding: 18px 16px; }
  :where(html:not(.nt-desk)) .nt-rv-who{ grid-template-columns: 1fr; }
  :where(html:not(.nt-desk)) .nt-rv-send{ width: 100%; }
}
.star-rating { position: relative; display: inline-block; width: 5.4em; height: 1.1em; overflow: hidden; font-size: 13px; line-height: 1; font-family: Arial, sans-serif; letter-spacing: .1em; }
.star-rating::before { content: "★★★★★"; color: #E3DED6; position: absolute; left: 0; top: 0; }
.star-rating span { position: absolute; left: 0; top: 0; overflow: hidden; padding-top: 1.5em; }
.star-rating span::before { content: "★★★★★"; position: absolute; left: 0; top: 0; color: var(--nt-star); }

/* ---------- Sản phẩm liên quan ---------- */
.nt-related { margin: 10px 0 0; }

/* Điện thoại: đưa phần mua lên ngay dưới tên sản phẩm (như web cũ) — giá · phân loại · nút mua · miễn phí giao hàng,
   rồi mới tới thông số, mã sản phẩm, khung đã bán, tóm tắt đánh giá. Hai cột "mở" ra (display: contents) để sắp lại. */
@media (max-width: 849px) {
  :where(html:not(.nt-desk)) .nt-pd{ display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  :where(html:not(.nt-desk)) .nt-pd-media,:where(html:not(.nt-desk)) .nt-pd-info{ display: contents; }
  :where(html:not(.nt-desk)) .nt-pd > *,:where(html:not(.nt-desk)) .nt-pd-media > *,:where(html:not(.nt-desk)) .nt-pd-info > *{ order: 6; }
  :where(html:not(.nt-desk)) .nt-gal{ order: 1; margin-bottom: 14px; }
  :where(html:not(.nt-desk)) .nt-pd-title{ order: 2; }
  :where(html:not(.nt-desk)) .nt-pd-facts{ order: 3; }
  :where(html:not(.nt-desk)) .nt-pb{ order: 4; }
  :where(html:not(.nt-desk)) .nt-vp{ order: 5; }
  :where(html:not(.nt-desk)) .nt-pd-info > form.cart,:where(html:not(.nt-desk)) .nt-pd-info > .cart{ order: 6; }
  :where(html:not(.nt-desk)) .nt-pd-short{ order: 8; margin-top: 18px; }
  :where(html:not(.nt-desk)) .nt-pd-short-b{ max-height: none; overflow: visible; padding-right: 0; height: auto !important; }
  :where(html:not(.nt-desk)) .nt-pd-short::after,:where(html:not(.nt-desk)) .nt-pd-more{ display: none !important; }
  :where(html:not(.nt-desk)) .nt-soldbox{ order: 10; margin-top: 16px; }
  :where(html:not(.nt-desk)) .nt-ratebox{ order: 11; margin-top: 12px; }
}

/* Nút "Mua ngay" đang chuyển trang: chữ ẩn, vòng tròn xoay cùng màu chữ */
.single_add_to_cart_button.is-busy, .single_add_to_cart_button.is-busy:disabled { position: relative; pointer-events: none; opacity: 1 !important; -webkit-text-fill-color: transparent; }
.single_add_to_cart_button.is-busy > * { visibility: hidden; }
.single_add_to_cart_button.is-busy::after { content: ""; position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; border: 2.5px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: nt-busy .7s linear infinite; }
@keyframes nt-busy { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .single_add_to_cart_button.is-busy::after { animation-duration: 1.6s; } }

/* ---------- Thanh mua dính đáy trên điện thoại (#nt-pbar, inc/single-product.php) ----------
   body.ndx-pbar-on: trang có in thanh (ndx_pbar_will_show). Màu nút = nâu đậm của bộ An Nhiên (--nt-p-d). */
.nt-pbar { display: none; }
@media (max-width: 849px) {
  :where(html:not(.nt-desk)) body.ndx-pbar-on .nt-bn{ display: none !important; }   /* phòng khi thanh đáy 5 mục vẫn được in: không chồng hai thanh */
  html:where(:not(.nt-desk)) body.ndx-pbar-on:has(#nt-pbar){ padding-bottom: calc(var(--ndx-pbar-h, 78px) + 12px); }
  :where(html:not(.nt-desk)) body.ndx-pbar-on .nt-pbar{ display: block; position: fixed; z-index: 9990; left: 0; right: 0; bottom: 0; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid #EFE5D8; border-radius: 18px 18px 0 0; box-shadow: 0 -8px 24px rgba(46, 33, 24, .10); font-family: var(--nt-font); }
  :where(html:not(.nt-desk)) body.ndx-pbar-on.nt-kb .nt-pbar{ display: none; }   /* đang gõ (bàn phím mở) */
  :where(html:not(.nt-desk)) .nt-pbar.has-vs{ padding-top: 0; }

  :where(html:not(.nt-desk)) .nt-pbar-vs{ display: flex; align-items: center; gap: 8px; height: 40px; margin: 0 0 10px; border-bottom: 1px dashed #EFE5D8; font-size: 14px; line-height: 1.2; color: #5d4b3d; }
  :where(html:not(.nt-desk)) .nt-pbar-vs[hidden]{ display: none; }
  :where(html:not(.nt-desk)) .nt-pbar-vt{ flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  :where(html:not(.nt-desk)) .nt-pbar-vt b{ color: var(--nt-ink); font-weight: 700; }
  :where(html:not(.nt-desk)) .nt-pbar-ch{ flex: none; min-height: 40px; padding: 0 2px 0 10px; border: 0; background: none; font: inherit; font-size: 14px; font-weight: 700; color: var(--nt-p-d); cursor: pointer; }
  :where(html:not(.nt-desk)) .nt-pbar-vs.is-miss{ color: #9C8775; }
  :where(html:not(.nt-desk)) .nt-pbar-vs.is-miss b{ color: var(--nt-p-d); }

  :where(html:not(.nt-desk)) .nt-pbar-row{ display: flex; align-items: center; gap: 8px; }
  :where(html:not(.nt-desk)) .nt-pbar-sq{ flex: 1 1 0; min-width: 58px; height: 56px; padding: 0 4px; border: 1.5px solid #E2D3C0; border-radius: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; background: #fff; color: var(--nt-p-d); font: inherit; font-size: 13px; font-weight: 700; line-height: 1.1; text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
  :where(html:not(.nt-desk)) .nt-pbar-sq span{ color: #5d4b3d; white-space: nowrap; }
  :where(html:not(.nt-desk)) .nt-pbar-sq:hover,:where(html:not(.nt-desk)) .nt-pbar-sq:focus-visible{ color: var(--nt-p-d); border-color: color-mix(in srgb, var(--nt-p-d) 45%, #E2D3C0); }
  :where(html:not(.nt-desk)) .nt-pbar-sq:disabled{ opacity: .45; cursor: not-allowed; }
  :where(html:not(.nt-desk)) .nt-pbar-sq.loading svg{ animation: nt-spin .8s linear infinite; }

  :where(html:not(.nt-desk)) .nt-pbar-go{ flex: 0 0 auto; display: flex; align-items: center; gap: 10px; height: 56px; padding: 0 14px; border: 0; border-radius: 16px; background: var(--nt-p-d); color: #fff; font: inherit; box-shadow: 0 10px 22px -10px color-mix(in srgb, var(--nt-p-d) 80%, transparent); text-decoration: none; cursor: pointer; transition: background .2s; }
  :where(html:not(.nt-desk)) .nt-pbar-go:hover,:where(html:not(.nt-desk)) .nt-pbar-go:focus-visible{ background: color-mix(in srgb, var(--nt-p-d) 86%, #000); color: #fff; }
  :where(html:not(.nt-desk)) .nt-pbar-pr{ font-size: 17px; font-weight: 700; white-space: nowrap; }
  :where(html:not(.nt-desk)) .nt-pbar-pr[hidden]{ display: none; }
  :where(html:not(.nt-desk)) .nt-pbar-r{ padding-left: 10px; border-left: 1px solid rgba(255, 255, 255, .35); font-size: 16px; font-weight: 700; line-height: 34px; white-space: nowrap; }
  :where(html:not(.nt-desk)) .nt-pbar-pr[hidden] + .nt-pbar-r{ padding: 0 6px; border: 0; }
  :where(html:not(.nt-desk)) .nt-pbar[data-state="need"] .nt-pbar-go{ background: #F4E8DA; color: #A9825D; border: 1.5px dashed #DCC3A6; box-shadow: none; }
  :where(html:not(.nt-desk)) .nt-pbar[data-state="need"] .nt-pbar-go .nt-pbar-r{ border-color: #DCC3A6; }
  :where(html:not(.nt-desk)) .nt-pbar[data-state="need"] .nt-pbar-go .nt-pbar-pr{ font-size: 15px; font-weight: 600; }
  :where(html:not(.nt-desk)) .nt-pbar[data-state="oos"] .nt-pbar-go{ flex: 1 1 0; justify-content: center; background: repeating-linear-gradient(135deg, #EEE8E1 0 10px, #E9E2DA 10px 20px); box-shadow: inset 0 0 0 1px #DED3C6; color: #8C7B6B; cursor: not-allowed; }
  :where(html:not(.nt-desk)) .nt-pbar-go.is-busy{ pointer-events: none; opacity: .85; }
  :where(html:not(.nt-desk)) .nt-pbar-go.is-busy .nt-pbar-r::after{ content: ""; display: inline-block; width: 14px; height: 14px; margin-left: 8px; vertical-align: -2px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: nt-spin .7s linear infinite; }
  @media (max-width: 359px) { .nt-pbar-sq { min-width: 50px; font-size: 12px; } .nt-pbar-go { gap: 8px; padding: 0 10px; } .nt-pbar-pr { font-size: 15px; } .nt-pbar-r { padding-left: 8px; font-size: 14.5px; } }

  /* Bấm "Chọn loại / Đổi": khung chọn phân loại nháy viền, dòng còn thiếu tô đỏ */
  :where(html:not(.nt-desk)) body.ndx-pbar-on .nt-vp.is-flash{ animation: nt-vp-flash 1.5s ease 1; }
  :where(html:not(.nt-desk)) body.ndx-pbar-on .nt-vp-row.is-miss .nt-vp-lb{ color: #C70000; }
}
@keyframes nt-vp-flash { 0%, 100% { box-shadow: 0 0 0 0 transparent; } 15%, 45%, 75% { box-shadow: 0 0 0 3px var(--nt-p-d); } 30%, 60% { box-shadow: 0 0 0 1px transparent; } }
@media (prefers-reduced-motion: reduce) { .nt-pbar-sq.loading svg, .nt-pbar-go.is-busy .nt-pbar-r::after { animation-duration: 1.6s; } }

html.nt-desk{overflow-x:auto}html.nt-desk body{min-width:1200px}