/* 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: 10px; }
@media (max-width: 849px) { .nt-pd { grid-template-columns: 1fr; gap: 16px; } .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-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-main .nt-mark { width: 12%; top: 4%; right: 4%; }
.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: center; gap: 14px; margin: 18px 0 0; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.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 { width: 100%; height: 100%; object-fit: cover; }
.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; }
.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; }
@media (max-width: 849px) { .nt-soldbox, .nt-ratebox { display: none; } }

/* ---------- Phần thông tin ---------- */
.nt-pd-title { margin: 0 0 12px; font-size: clamp(21px, 2vw, 27px); line-height: 1.38; letter-spacing: .005em; color: #000; }
.nt-pd-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 0 0 6px; padding: 0 0 10px; border-bottom: 1px solid #F3F1EE; font-size: 14.5px; color: #5B5147; }
.nt-pd-meta .nt-sep { width: 1px; height: 14px; background: #E2D9CE; }
.nt-pd-rate { display: inline-flex; align-items: center; gap: 6px; color: #5B5147; }
.nt-pd-views strong { color: var(--nt-p); }
.nt-pd-stock .is-in { color: var(--nt-a); } .nt-pd-stock .is-out { color: #B91C1C; }
.nt-pd-sku { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; padding: 0 0 8px; font-size: 14px; font-weight: 600; color: var(--nt-ink); }
.nt-dot { width: 8px; height: 8px; border-radius: 50%; background: #9B5A25; }
.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; }

/* Chọn phân loại */
.nt-vp { display: grid; gap: 10px; margin: 4px 0 14px; padding: 12px 16px; background: var(--nt-paper); 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); }
.nt-vp-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.nt-vp-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 18px; border: 1.5px solid #DCC9B0; border-radius: 999px; background: #fff; color: var(--nt-ink); font-size: 14px; font-weight: 600; cursor: pointer; transition: border-color .2s, background .2s; }
.nt-vp-btn:hover { border-color: var(--nt-p); background: #FAF4ED; }
.nt-vp-ck { display: none; width: 18px; height: 18px; border-radius: 50%; background: var(--nt-p); color: #FBF8F3; font-size: 11px; line-height: 18px; text-align: center; }
.nt-vp-btn.is-active { padding-left: 12px; border: 2px solid var(--nt-p); background: #FFF4E6; color: var(--nt-p-d); }
.nt-vp-btn.is-active .nt-vp-ck { display: inline-block; }
.nt-vp-btn.is-off { border-style: dashed; opacity: .55; }
.nt-vp-opts:has(.is-active) .nt-vp-btn:not(.is-active):not(:hover) { opacity: .7; }
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-stock { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; padding: 3px 11px; border-radius: 999px; background: #E9F8EF; color: #146C3E; font-size: 12.5px; font-weight: 700; }
.nt-pb-stock i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 20%, transparent); }
.nt-pb-stock.is-out { background: #FDECEC; color: #B91C1C; }
.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-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-a); color: #fff; box-shadow: 0 12px 26px -10px color-mix(in srgb, var(--nt-a) 55%, transparent); }
.single_add_to_cart_button.wc-buy-now-btn:hover { background: var(--nt-a-d); }
.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; }
@keyframes nt-spin { to { transform: rotate(360deg); } }
.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ẽ) */
.nx-live { order: -2; flex: 1 1 100%; display: flex; align-items: center; gap: 12px; padding: 11px 16px 11px 12px; border: 1px solid #E4D2C7; border-radius: 14px; background: linear-gradient(100deg, #fff 0%, #fff 55%, #FAF5F2 100%); box-shadow: 0 4px 16px rgba(169, 88, 48, .1); font-size: 14.5px; color: #5B5147; overflow: hidden; }
.nx-live-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px 4px 8px; border-radius: 999px; background: var(--nt-hot); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .08em; line-height: 1; animation: nt-live-ring 1.8s ease-out infinite; }
.nx-live-dot { width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: nt-live-dot 1s ease-in-out infinite; }
.nx-live-faces { display: flex; }
.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; box-shadow: 0 0 0 1.5px #C67C3C; }
.nx-live-faces i:first-child { margin-left: 0; }
.nx-live-text { flex: 1; min-width: 0; }
.nx-live-n { display: inline-block; position: relative; margin-right: 6px; font-size: 19px; font-weight: 800; color: var(--nt-hot); vertical-align: -2px; 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-eye { color: #B7A99C; }
@keyframes nt-live-ring { 0% { box-shadow: 0 0 0 0 rgba(229, 38, 44, .45); } 70% { box-shadow: 0 0 0 8px rgba(229, 38, 44, 0); } 100% { box-shadow: 0 0 0 0 rgba(229, 38, 44, 0); } }
@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: 12px 16px 10px 12px; 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 42px; height: 42px; 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; }
.nt-pd-ship-t { margin: 0; font-size: 14.5px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; color: #2E2118; }
.nt-pd-ship-s { margin: 0; }
.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 { display: block; height: 5px; margin: 6px 0 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 (xanh, cả hàng); "Mua ngay" thành nút phụ cạnh nút Zalo */
  .single_add_to_cart_button:not(.wc-buy-now-btn) { order: -1; flex-basis: 100%; background: var(--nt-a); color: #fff; box-shadow: 0 12px 26px -10px color-mix(in srgb, var(--nt-a) 55%, transparent); }
  .single_add_to_cart_button:not(.wc-buy-now-btn)::before { filter: brightness(0) invert(1); }
  .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; }
  .single_add_to_cart_button, .nt-pd-zalo { min-height: 50px; font-size: 14px; padding: 0 12px; }
  .nt-pd-ship-chip { display: none; }
  .nx-live { font-size: 13px; gap: 8px; } .nx-live-eye { display: none; }
}

/* ---------- 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) {
  .nt-maker { margin: 26px 0 18px; padding: 20px 16px; border-radius: 18px; }
  .nt-maker-grid { grid-template-columns: 1fr; }
  .nt-maker-btns, .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 { display: flex; gap: 4px; border-bottom: 1px solid var(--nt-line); overflow-x: auto; scrollbar-width: none; }
.nt-tabs-nav button { position: relative; padding: 12px 20px; border: 0; background: none; font-size: 14px; font-weight: 600; color: #8C7B6B; cursor: pointer; white-space: nowrap; }
.nt-tabs-nav button[aria-selected=true] { color: var(--nt-ink); font-weight: 700; }
.nt-tabs-nav button[aria-selected=true]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--nt-p); }
.nt-tab-panel { padding: 24px 28px; background: #fff; border: 1px solid #EFE5D8; border-top: 0; border-radius: 0 0 18px 18px; }
@media (max-width: 849px) { .nt-tab-panel { padding: 18px 14px; } }

/* Đánh giá (danh sách + form của WooCommerce) */
#reviews .woocommerce-Reviews-title { font-size: 18px; margin: 0 0 14px; }
#reviews .commentlist { margin: 0 0 20px; padding: 0; list-style: none; display: grid; gap: 12px; }
#reviews .commentlist li .comment_container { display: flex; gap: 12px; padding: 14px; border: 1px solid #F0E9DF; border-radius: 14px; background: #FFFDF9; }
#reviews .commentlist img.avatar { width: 44px; height: 44px; border-radius: 50%; flex: 0 0 44px; }
#reviews .comment-text { flex: 1; min-width: 0; }
#reviews .comment-text .star-rating { float: right; }
#reviews .comment-text .meta { margin: 0 0 4px; font-size: 13.5px; color: #8C7B6B; }
#reviews .comment-text .meta strong { color: var(--nt-ink); }
#reviews .comment-text .description p { margin: 0; font-size: 14.5px; }
#review_form_wrapper { padding: 18px; border: 1px dashed #E4D5C0; border-radius: 16px; background: #FFFDF9; }
#review_form .comment-reply-title { display: block; font-size: 17px; font-weight: 700; margin: 0 0 10px; }
#review_form textarea, #review_form input[type=text], #review_form input[type=email] { width: 100%; }
#review_form .form-submit input { min-height: 46px; padding: 0 26px; border: 0; border-radius: 999px; background: var(--nt-p); color: #111; font-weight: 700; cursor: pointer; }
.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); }
p.stars a { position: relative; display: inline-block; width: 1.3em; height: 1.3em; text-indent: -999em; color: var(--nt-star); }
p.stars a::before { content: "☆"; position: absolute; left: 0; top: 0; text-indent: 0; font-size: 1.3em; line-height: 1; }
p.stars:hover a::before, p.stars.selected a.active::before, p.stars.selected a:not(.active)::before { content: "★"; }
p.stars.selected a.active ~ a::before, p.stars a:hover ~ a::before { content: "☆"; }

/* ---------- 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) {
  .nt-pd { display: flex; flex-direction: column; gap: 0; }
  .nt-pd-media, .nt-pd-info { display: contents; }
  .nt-pd > * , .nt-pd-media > *, .nt-pd-info > * { order: 6; }
  .nt-gal { order: 1; margin-bottom: 14px; }
  .nt-pd-title { order: 2; }
  .nt-pd-meta { order: 3; }
  .nt-pb { order: 4; }
  .nt-vp { order: 5; }
  .nt-pd-info > form.cart, .nt-pd-info > .cart { order: 6; }
  .nt-pd-short { order: 8; margin-top: 18px; }
  .nt-pd-sku { order: 9; }
  .nt-soldbox { order: 10; margin-top: 16px; }
  .nt-ratebox { order: 11; margin-top: 12px; }
}
