/* ================= Trang sản phẩm (nvt-theme) ================= */
:where(.pd, .pd-bar) *, :where(.pd, .pd-bar) *::before, :where(.pd, .pd-bar) *::after { box-sizing: border-box; }
.pd { background: var(--bg); color: var(--text); font: 400 15px/1.6 var(--f-body); }
.pd :is(ul, ol) { margin: 0; padding: 0; list-style: none; }
.pd a { color: inherit; text-decoration: none; }
.pd button { font: inherit; cursor: pointer; }
.pd img { display: block; max-width: 100%; height: auto; }
.pd h1, .pd h2, .pd h3, .pd p { margin: 0; }

/* đường dẫn */
.pd-bc { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 20px 0 16px; font-size: 13px; color: var(--muted); }
.pd-bc a:hover { color: var(--brand); }
.pd-bc svg { opacity: .6; }
.pd-bc b { font-weight: 600; color: var(--ink); max-width: 46ch; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* khung trên: ảnh + thông tin */
.pd-top { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6.2fr); gap: 22px; align-items: start; }
.pd-card { border-radius: 14px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); }

/* thư viện ảnh */
.pd-gal { padding: 14px; position: sticky; top: 16px; }
.pd-stage { position: relative; border-radius: 10px; background: var(--tile); overflow: hidden; }
.pd-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; scroll-behavior: smooth; }
.pd-track::-webkit-scrollbar { display: none; }
.pd-slide { flex: none; width: 100%; aspect-ratio: 1; scroll-snap-align: center; display: grid; place-items: center; padding: 22px; }
.pd-slide img { max-width: 100%; max-height: 100%; object-fit: contain; mix-blend-mode: var(--blend); }
.pd-tag { position: absolute; z-index: 2; top: 14px; left: 14px; padding: 2px 11px; border-radius: 9px; background: var(--sale); color: #fff; font: 800 13.5px/1.6 var(--f-body); }
.pd-zoom { position: absolute; z-index: 2; top: 12px; right: 12px; width: 38px; height: 38px; display: grid; place-items: center; border: 0; border-radius: 10px; background: rgba(255,255,255,.92); box-shadow: 0 0 0 1px var(--line); color: var(--ink); }
.pd-zoom:hover { color: var(--brand); }
.pd-nav { position: absolute; z-index: 2; top: 50%; width: 40px; height: 40px; margin-top: -20px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255,255,255,.94); box-shadow: 0 2px 10px rgba(13,27,42,.18); color: var(--ink); transition: background .15s, color .15s; }
.pd-nav:hover { background: var(--brand); color: #fff; }
.pd-nav.prev { left: 12px; } .pd-nav.next { right: 12px; }
.pd-count { position: absolute; z-index: 2; right: 12px; bottom: 12px; padding: 2px 10px; border-radius: 999px; background: rgba(13,27,42,.62); color: #fff; font: 600 12px/1.7 var(--f-body); font-variant-numeric: tabular-nums; }
.pd-thumbs { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.pd-th { padding: 4px; aspect-ratio: 1; border: 0; border-radius: 9px; background: var(--tile); box-shadow: 0 0 0 1px var(--line); transition: box-shadow .15s; display: grid; place-items: center; }
.pd-th img { max-width: 100%; max-height: 100%; object-fit: contain; }
.pd-th:hover { box-shadow: 0 0 0 1.5px var(--brand-ink); }
.pd-th.on { box-shadow: 0 0 0 2px var(--brand); }

/* thông tin */
.pd-info { padding: 26px 28px 28px; display: grid; gap: 18px; }
.pd-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: 13px; color: var(--muted); }
.pd-cat { padding: 2px 11px; border-radius: 8px; background: var(--brand-soft); color: var(--brand-ink); font-weight: 700; font-size: 12.5px; }
.pd-meta span b { color: var(--ink); font-weight: 600; }
.pd-st { display: inline-flex; align-items: center; gap: 6px; color: var(--ok); font-weight: 700; }
.pd-st::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 20%, transparent); }
.pd-info h1 { font: 800 clamp(22px, 1.9vw, 28px)/1.3 var(--f-disp); letter-spacing: -.012em; color: var(--ink); text-wrap: wrap; }
.pd-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.pd-badges span { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px 5px 9px; border-radius: 999px; background: var(--soft); box-shadow: inset 0 0 0 1px var(--line); font: 600 13px/1.4 var(--f-body); color: var(--ink); }
.pd-badges svg { color: var(--brand); }

/* giá */
.pd-price { display: grid; gap: 4px; padding: 16px 20px 16px; border-radius: 12px; background: linear-gradient(135deg, #f3f9fd, #e9f3fa); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brand) 14%, transparent); }
.pd-now { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 14px; }
.pd-now b { font: 800 clamp(30px, 2.8vw, 38px)/1.15 var(--f-body); letter-spacing: -.025em; color: var(--sale); font-variant-numeric: tabular-nums; }
.pd-now del { font: 500 16px var(--f-body); color: var(--muted); font-variant-numeric: tabular-nums; }
.pd-now em { font: 800 13px/1.7 var(--f-body); font-style: normal; padding: 1px 9px; border-radius: 8px; background: var(--sale); color: #fff; align-self: center; }
.pd-save { font-size: 14px; color: var(--text); }
.pd-save b { color: var(--ok); font-weight: 700; font-variant-numeric: tabular-nums; }
.pd-vat { font-size: 12.5px; color: var(--muted); }

/* thông số nổi bật */
.pd-h { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font: 800 12.5px/1 var(--f-body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.pd-h svg { color: var(--brand); }
.pd-spec { display: grid; border-radius: 10px; box-shadow: 0 0 0 1px var(--line); overflow: hidden; }
.pd-spec li { display: grid; grid-template-columns: 138px minmax(0, 1fr); gap: 12px; padding: 8px 14px; font-size: 14px; line-height: 1.5; }
.pd-spec li:nth-child(odd) { background: var(--soft); }
.pd-spec li span { color: var(--muted); }
.pd-spec li b { font-weight: 600; color: var(--ink); }
.pd-spec li.x { display: none; }
.pd-spec.all li.x { display: grid; }
.pd-spec-more { margin-top: 8px; border: 0; background: none; padding: 4px 0; display: inline-flex; align-items: center; gap: 6px; font: 700 13.5px var(--f-body); color: var(--brand); }
.pd-spec-more svg { transition: transform .2s; }
.pd-spec-more.on svg { transform: rotate(180deg); }
.pd-spec-more:hover { color: var(--brand-ink); }

/* ưu đãi */
.pd-gift { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 12px; padding: 14px 16px; border-radius: 12px; background: #fff7f0; box-shadow: inset 0 0 0 1px #ffd9bd; }
.pd-gift > i { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: #ff7a1a; color: #fff; font-style: normal; }
.pd-gift b { display: block; font: 800 13px/1.3 var(--f-body); letter-spacing: .05em; text-transform: uppercase; color: #b4510a; margin-bottom: 3px; }
.pd-gift p { font-size: 14px; line-height: 1.55; color: #5a3b25; }

/* mua hàng */
.pd-buy { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: stretch; }
.pd-qty { display: flex; align-items: center; height: 54px; border-radius: 12px; box-shadow: 0 0 0 1.5px var(--line); background: var(--surface); }
.pd-qty button { width: 44px; height: 100%; display: grid; place-items: center; border: 0; background: none; color: var(--ink); border-radius: 12px; }
.pd-qty button:hover { background: var(--brand-soft); color: var(--brand); }
.pd-qty input { width: 44px; height: 100%; border: 0; background: none; text-align: center; font: 700 16px var(--f-body); color: var(--ink); -moz-appearance: textfield; padding: 0; }
.pd-qty input::-webkit-outer-spin-button, .pd-qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.pd-btns { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.pd-btn { height: 54px; display: flex; align-items: center; justify-content: center; gap: 9px; padding: 0 14px; border: 0; border-radius: 12px; font: 800 15.5px/1.2 var(--f-body); white-space: nowrap; transition: background .15s, transform .15s, box-shadow .15s; }
.pd-btn.tocart { background: var(--brand-soft); color: var(--brand-ink); box-shadow: inset 0 0 0 1.5px var(--brand); }
.pd-btn.tocart:hover { background: var(--brand); color: #fff; }
.pd-btn.buynow { background: var(--sale); color: #fff; box-shadow: 0 8px 18px color-mix(in srgb, var(--sale) 30%, transparent); }
.pd-btn.buynow:hover { background: #b81f16; transform: translateY(-1px); }
.pd-btn.done { background: var(--ok) !important; color: #fff !important; box-shadow: none !important; }

/* liên hệ nhanh */
.pd-help { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.pd-help a { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 12px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); transition: box-shadow .15s, transform .15s; }
.pd-help a:hover { box-shadow: 0 0 0 1.5px var(--brand); transform: translateY(-1px); }
.pd-help i { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-style: normal; color: #fff; }
.pd-help .tel i { background: var(--sale); }
.pd-help .zl i { background: #0068ff; font: 800 12px var(--f-body); }
.pd-help b { display: block; font: 800 16px/1.25 var(--f-body); color: var(--ink); font-variant-numeric: tabular-nums; }
.pd-help small { display: block; font: 500 12.5px/1.3 var(--f-body); color: var(--muted); }
.pd-links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: -6px; }
.pd-links a { display: inline-flex; align-items: center; gap: 7px; font: 600 13.5px var(--f-body); color: var(--brand); }
.pd-links a:hover { color: var(--brand-ink); text-decoration: underline; text-underline-offset: 3px; }

/* cam kết */
.pd-trust { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px 14px; padding-top: 18px; border-top: 1px solid var(--line-soft); }
.pd-trust li { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; line-height: 1.45; color: var(--text); }
.pd-trust i { flex: none; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); font-style: normal; }
.pd-trust b { display: block; font-weight: 700; color: var(--ink); }

/* thanh chuyển mục */
.pd-tabs { position: sticky; top: 0; z-index: 30; margin-top: 26px; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); box-shadow: 0 1px 0 var(--line); }
.pd-tabs .wrap { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.pd-tabs .wrap::-webkit-scrollbar { display: none; }
.pd-tabs a { flex: none; padding: 14px 18px 12px; border-bottom: 3px solid transparent; font: 700 14.5px var(--f-body); color: var(--muted); white-space: nowrap; }
.pd-tabs a:hover { color: var(--brand); }
.pd-tabs a.on { color: var(--brand-ink); border-bottom-color: var(--brand); }

/* nội dung dưới */
.pd-sec { padding-top: 30px; scroll-margin-top: 56px; }
.pd-doc { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 22px; align-items: start; }
.pd-box { padding: 26px 28px; }
.pd-box .sh { margin-bottom: 16px; }
.pd-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.pd-table tr:nth-child(odd) { background: var(--soft); }
.pd-table th, .pd-table td { text-align: left; padding: 11px 16px; vertical-align: top; line-height: 1.5; }
.pd-table th { width: 220px; font-weight: 600; color: var(--muted); }
.pd-table td { color: var(--ink); font-weight: 500; }
.pd-table tr:first-child th { border-top-left-radius: 8px; } .pd-table tr:last-child th { border-bottom-left-radius: 8px; }
.pd-desc { position: relative; max-height: 190px; overflow: hidden; transition: max-height .4s ease; font-size: 15px; line-height: 1.75; }
.pd-desc::after { content: ""; position: absolute; inset: auto 0 0; height: 90px; background: linear-gradient(180deg, rgba(255,255,255,0), var(--surface)); pointer-events: none; transition: opacity .3s; }
.pd-desc.open { max-height: 3000px; } .pd-desc.open::after { opacity: 0; }
.pd-desc p { margin-bottom: 12px; }
.pd-desc h3 { margin: 18px 0 8px; font: 800 17px/1.35 var(--f-disp); color: var(--ink); }
.pd-desc ul { padding-left: 1.2em !important; list-style: disc !important; margin-bottom: 12px !important; }
.pd-more { display: flex; margin: 10px auto 0; align-items: center; gap: 8px; padding: 10px 22px; border: 0; border-radius: 999px; box-shadow: 0 0 0 1.5px var(--brand); background: var(--surface); color: var(--brand); font: 700 14px var(--f-body); }
.pd-more:hover { background: var(--brand); color: #fff; }
.pd-more svg { transition: transform .25s; }
.pd-more.on svg { transform: rotate(180deg); }

/* khung bên phải: hỗ trợ */
.pd-side { display: grid; gap: 14px; position: sticky; top: 64px; }
.pd-side .pd-card { padding: 20px 22px; }
.pd-side h3 { font: 800 14px/1.3 var(--f-body); letter-spacing: .05em; text-transform: uppercase; color: var(--ink); margin-bottom: 12px; }
.pd-ck li { display: flex; gap: 10px; padding: 5px 0; font-size: 14px; color: var(--text); }
.pd-ck svg { flex: none; margin-top: 3px; color: var(--ok); }
.pd-ct li { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: 14px; border-top: 1px solid var(--line-soft); }
.pd-ct li:first-child { border-top: 0; }
.pd-ct svg { flex: none; color: var(--brand); }
.pd-ct a { font-weight: 700; color: var(--brand); font-variant-numeric: tabular-nums; }
.pd-ship { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 12px; align-items: center; background: linear-gradient(135deg, #0a68ad, #1a86d0) !important; color: #fff; box-shadow: none !important; }
.pd-ship i { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.18); font-style: normal; }
.pd-ship p { font: 600 14px/1.45 var(--f-body); }

/* sản phẩm tương tự: dùng lưới .a5 của trang chủ */
.pd .at-meta { display: flex; flex-wrap: wrap; gap: 4px; margin: -2px 0 6px; }
.pd .at-meta span { padding: 1px 7px; border-radius: 5px; background: var(--soft); box-shadow: inset 0 0 0 1px var(--line); font: 600 11px/1.6 var(--f-body); color: var(--muted); }
.pd .at-tx { display: flex; flex-direction: column; flex: 1; }
.pd .at-tx .addb { margin-top: auto; }
.pd-rel { padding-bottom: 54px; }

/* thanh mua cố định (điện thoại) */
.pd-bar { display: none; }

@media (max-width: 1100px) {
  .pd-top { grid-template-columns: minmax(0, 1fr); }
  .pd-gal { position: static; }
  .pd-doc { grid-template-columns: minmax(0, 1fr); }
  .pd-side { position: static; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .pd-ship { grid-column: 1 / -1; }
}
@media (max-width: 849px) {
  .pd-bar { display: flex; position: fixed; z-index: 998; left: 0; right: 0; bottom: calc(62px + env(safe-area-inset-bottom, 0px)); align-items: center; gap: 12px; padding: 9px max(16px, env(safe-area-inset-right, 0px)) 9px max(16px, env(safe-area-inset-left, 0px)); background: rgba(255,255,255,.98); box-shadow: 0 -1px 0 var(--line), 0 -6px 18px rgba(13,27,42,.08); transform: translateY(130%); transition: transform .25s; }
  .pd-bar.show { transform: none; }
  .pd-bar > div { flex: 1; min-width: 0; display: grid; }
  .pd-bar del { font-size: 12px; color: var(--muted); line-height: 1.2; white-space: nowrap; }
  .pd-bar b { font: 800 19px/1.25 var(--f-body); color: var(--sale); white-space: nowrap; letter-spacing: -.02em; }
  .pd-bar button { flex: none; height: 46px; padding: 0 20px; border: 0; border-radius: 12px; background: var(--brand); color: #fff; font: 800 14.5px var(--f-body); display: flex; align-items: center; gap: 8px; }
  .pd-bar button.done { background: var(--ok); }
}
@media (max-width: 700px) {
  .pd-bc { padding: 14px 0 12px; font-size: 12.5px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; white-space: nowrap; }
  .pd-bc::-webkit-scrollbar { display: none; }
  .pd-bc b { max-width: 24ch; }
  .pd-top { gap: 14px; }
  .pd-gal { padding: 10px; }
  .pd-slide { padding: 14px; }
  .pd-nav { display: none; }
  .pd-thumbs { display: flex; overflow-x: auto; scrollbar-width: none; gap: 8px; margin-top: 8px; }
  .pd-thumbs::-webkit-scrollbar { display: none; }
  .pd-th { flex: none; width: 58px; }
  .pd-info { padding: 18px 16px 20px; gap: 16px; }
  .pd-info h1 { font-size: 21px; }
  .pd-price { padding: 14px 16px; }
  .pd-spec li { grid-template-columns: 112px minmax(0, 1fr); gap: 8px; padding: 8px 12px; font-size: 13.5px; }
  .pd-buy { grid-template-columns: minmax(0, 1fr); }
  .pd-qty { height: 48px; justify-self: start; }
  .pd-qty button { width: 46px; }
  .pd-btns { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .pd-btn { height: 50px; font-size: 14.5px; padding: 0 8px; }
  .pd-help { grid-template-columns: minmax(0, 1fr); }
  .pd-trust { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .pd-tabs { margin-top: 20px; }
  .pd-tabs a { padding: 12px 14px 10px; font-size: 14px; }
  .pd-sec { padding-top: 20px; }
  .pd-box { padding: 20px 16px; }
  .pd-table { font-size: 13.5px; }
  .pd-table th { width: 118px; padding: 9px 10px; } .pd-table td { padding: 9px 10px; }
  .pd-side { grid-template-columns: minmax(0, 1fr); }
  .pd-rel { padding-bottom: 40px; }
  .pd .a5 { display: grid; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: calc((100% - 12px) / 1.5); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px 16px 6px 4px; margin: -4px -16px -6px -4px; }
  .pd .a5::-webkit-scrollbar { display: none; }
  .pd .a5 .at { scroll-snap-align: start; }
}

/* ---- bổ sung khi chạy thật ---- */
.pd-sec.first { padding-top: 26px; }
.pd-st.out { color: var(--sale); }
.pd-st.out::before { background: var(--sale); box-shadow: 0 0 0 3px color-mix(in srgb, var(--sale) 20%, transparent); }
.pd-now b.pd-contact { font-size: clamp(26px, 2.4vw, 32px); }
.pd-spec li.nk { grid-template-columns: minmax(0, 1fr); }
.pd-short { font-size: 14px; line-height: 1.65; }
.pd-gift-t { font-size: 14px; line-height: 1.55; color: #5a3b25; }
.pd-gift-t p { margin: 0 0 6px; } .pd-gift-t p:last-child { margin-bottom: 0; }
.pd-out { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: 12px; background: #fff1f0; box-shadow: inset 0 0 0 1px #ffd0cc; color: #8a1d16; font-size: 14px; }
.pd-wc form.cart { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.pd-wc .single_add_to_cart_button { height: 54px; padding: 0 22px; border: 0; border-radius: 12px; background: var(--brand); color: #fff; font: 800 15.5px var(--f-body); }
.pd-wc table.variations select { min-height: 44px; border-radius: 10px; border: 1.5px solid var(--line); padding: 0 10px; }
.pd-desc img { max-width: 100%; height: auto; border-radius: 10px; }
.pd-desc a { color: var(--brand); }
.pd-desc table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.pd-desc th, .pd-desc td { padding: 8px 10px; border: 1px solid var(--line); }
.pd-desc.noclamp { max-height: none; } .pd-desc.noclamp::after { display: none; }
.pd-lb { position: fixed; inset: 0; z-index: 99999; display: grid; place-items: center; background: rgba(8, 20, 32, .88); padding: 20px; }
.pd-lb[hidden] { display: none; }
.pd-lb img { max-width: min(94vw, 1100px); max-height: 88vh; object-fit: contain; border-radius: 10px; background: #fff; }
.pd-lb button { position: absolute; width: 46px; height: 46px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255,255,255,.95); color: var(--ink); }
.pd-lb .x { top: 16px; right: 16px; } .pd-lb .p { left: 16px; top: 50%; margin-top: -23px; } .pd-lb .n { right: 16px; top: 50%; margin-top: -23px; }
.pd-lb span { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); color: #fff; font: 600 13px var(--f-body); }
.pd-top > *, .pd-doc > *, .pd-doc > div > *, .pd-info > *, .pd-side > * { min-width: 0; }
.pd .woocommerce-message, .pd .woocommerce-info, .pd .woocommerce-error { list-style: none; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; margin: 16px 0 0; padding: 12px 16px; border-radius: 12px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); font-size: 14px; color: var(--ink); }
.pd .woocommerce-message { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ok) 40%, transparent); background: color-mix(in srgb, var(--ok) 7%, var(--surface)); }
.pd .woocommerce-error { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--sale) 40%, transparent); background: color-mix(in srgb, var(--sale) 6%, var(--surface)); }
.pd .woocommerce-message .button { order: 2; padding: 7px 14px; border-radius: 9px; background: var(--brand); color: #fff; font-weight: 700; }

/* chỉnh sau góp ý: tên sản phẩm nhỏ lại, khối cam kết cách đường kẻ */
.pd .pd-info h1 { font-size: clamp(18px, 1.5vw, 22px); line-height: 1.38; letter-spacing: -.008em; }
.pd .pd-info h1 { text-wrap: wrap; max-width: none; }
.pd .pd-trust { padding-top: 20px; margin-top: 2px; }
.pd .pd-links { margin-bottom: 4px; }
@media (max-width: 700px) { .pd .pd-info h1 { font-size: 18px; } .pd .pd-trust { padding-top: 16px; } }

/* mô tả: hiện nhiều hơn trước khi thu gọn, ảnh co theo khung */
.pd .pd-desc { max-height: 460px; }
.pd .pd-desc.open { max-height: none; }
.pd .pd-desc img { max-width: 100%; height: auto !important; margin: 10px auto; }
.pd .pd-desc::after { height: 110px; }
@media (max-width: 700px) { .pd .pd-desc { max-height: 340px; } }

/* hàng link + đường kẻ + khối cam kết: khoảng cách đều */
.pd .pd-links { margin: 2px 0 0 !important; padding: 0 2px; gap: 8px 22px; }
.pd .pd-links a { line-height: 1.5; }
.pd .pd-trust { margin-top: 0 !important; padding-top: 22px !important; border-top: 1px solid var(--line-soft); }
.pd .pd-info { gap: 20px; }

/* ===== Nội dung mô tả: bảng cấu hình gọn, văn bản canh đều ===== */
.pd .pd-desc { font-size: 15px; line-height: 1.75; color: var(--text); }
.pd .pd-desc p, .pd .pd-desc li { text-align: justify; text-justify: inter-word; }
.pd .pd-desc h2, .pd .pd-desc h3, .pd .pd-desc h4 { text-align: left; margin: 26px 0 10px; font: 800 17px/1.4 var(--f-disp); color: var(--ink); }
.pd .pd-desc p:has(> strong:only-child), .pd .pd-desc p:has(> b:only-child) { margin: 24px 0 8px; font-size: 16px; color: var(--ink); }
.pd .pd-desc ul, .pd .pd-desc ol { margin: 0 0 14px !important; padding-left: 1.3em !important; }
.pd .pd-desc li { margin-bottom: 5px; }
.pd .pd-tw { margin: 8px 0 28px; border-radius: 10px; box-shadow: 0 0 0 1px var(--line); overflow-x: auto; background: var(--surface); }
.pd .pd-desc table { display: table; width: 100%; min-width: 520px; margin: 0; border: 0 !important; border-collapse: collapse; font-size: 14px; line-height: 1.5; table-layout: auto; }
.pd .pd-desc th, .pd .pd-desc td { padding: 9px 14px; border: 0 !important; border-bottom: 1px solid var(--line-soft) !important; text-align: left; vertical-align: middle; color: var(--ink); font-weight: 500; background: none; }
.pd .pd-desc tr:last-child td, .pd .pd-desc tr:last-child th { border-bottom: 0 !important; }
.pd .pd-desc tr:first-child td, .pd .pd-desc thead th { background: var(--soft); font: 700 12.5px/1.4 var(--f-body); letter-spacing: .03em; text-transform: uppercase; color: var(--muted); padding-top: 11px; padding-bottom: 11px; }
.pd .pd-desc tbody tr:nth-child(even) td { background: color-mix(in srgb, var(--soft) 55%, transparent); }
.pd .pd-desc td p, .pd .pd-desc th p { margin: 0; text-align: left; }
.pd .pd-desc td a { color: var(--brand); font-weight: 600; }
.pd .pd-desc td a:hover { color: var(--brand-ink); text-decoration: underline; text-underline-offset: 3px; }
.pd .pd-desc td.sm, .pd .pd-desc th.sm { width: 1%; white-space: nowrap; }
.pd .pd-desc td.ct, .pd .pd-desc th.ct { text-align: center; }
.pd .pd-desc td:first-child strong, .pd .pd-desc td strong { font-weight: 700; }
@media (max-width: 700px) {
  .pd .pd-desc { font-size: 14.5px; }
  .pd .pd-desc p, .pd .pd-desc li { text-align: left; }
  .pd .pd-desc th, .pd .pd-desc td { padding: 8px 10px; }
  .pd .pd-desc table { min-width: 480px; font-size: 13.5px; }
}

/* ---------- Góc setup thực tế (không giá): danh sách cấu hình có dấu tích ---------- */
.pd-sc .pd-spec li.nk { padding: 7px 14px; }
.pd-sc .pd-spec li.nk b { display: flex; align-items: flex-start; gap: 10px; font-weight: 500; }
.pd-sc .pd-spec li.nk b::before { content: ""; flex: none; width: 16px; height: 16px; margin-top: 3px; border-radius: 50%; background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 11px no-repeat; }
.pd-sc .sc-rel { margin-top: 2px; }
@media (max-width: 1100px) { .pd-sc .sc-rel { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pd-sc .pd-slide { aspect-ratio: auto; height: auto; padding: 0; background: var(--ink); align-items: start; }
.pd-sc .pd-slide img { width: 100%; height: auto; max-height: none; aspect-ratio: 4 / 3; object-fit: cover; mix-blend-mode: normal; }
@media (max-width: 460px) { .pd-sc .sc-rel { grid-template-columns: minmax(0, 1fr); } }

/* tiêu đề khung cam kết: luôn 1 dòng, giữ cỡ chữ 14px (bỏ giãn chữ để vừa khung) */
.pd-side .pd-card-ck h3 { white-space: nowrap; letter-spacing: 0; font-size: 14px; }
@media (max-width: 700px) { .pd-side .pd-card-ck { padding-left: 14px; padding-right: 14px; } }
@media (max-width: 340px) { .pd-side .pd-card-ck h3 { font-size: 13px; } }

/* nội dung mô tả: canh đều hai bên (cả mobile), ảnh canh giữa */
.pd .pd-desc p, .pd .pd-desc li { text-align: justify; text-justify: inter-word; hyphens: manual; }
.pd .pd-desc td p, .pd .pd-desc th p { text-align: left; }
.pd .pd-desc img { display: block; float: none !important; margin: 14px auto !important; max-width: 100%; height: auto !important; }
.pd .pd-desc figure, .pd .pd-desc .wp-caption { max-width: 100% !important; width: auto !important; margin: 14px auto; text-align: center; }
.pd .pd-desc figure img, .pd .pd-desc .wp-caption img { margin: 0 auto !important; }
.pd .pd-desc figcaption, .pd .pd-desc .wp-caption-text { text-align: center; font-size: 13px; color: var(--muted); margin-top: 6px; }
.pd .pd-desc .alignleft, .pd .pd-desc .alignright, .pd .pd-desc .aligncenter { float: none !important; display: block; margin-left: auto !important; margin-right: auto !important; }
.pd .pd-desc p:has(> img), .pd .pd-desc p:has(> a > img) { text-align: center; }
.pd .pd-desc td img, .pd .pd-desc th img { display: inline-block; margin: 0 auto !important; }
@media (max-width: 700px) { .pd .pd-desc p, .pd .pd-desc li { text-align: justify; } }

/* ghi chú dưới khung giá (Sản phẩm → Ghi chú trong admin). Khối xem trước ở assets/css/admin-ui.css cần giữ khớp. */
.pd-notes { display: grid; gap: 8px; }
.pd-note { display: flex; align-items: flex-start; gap: 10px; padding: 11px 14px; border-radius: 12px; background: #fff8e8; box-shadow: inset 0 0 0 1px #f1dca0; color: #6b4a00; font-size: 13.5px; line-height: 1.55; }
.pd-note > .lu { flex: none; margin-top: 2px; color: #c98a00; }
.pd-note > div { min-width: 0; overflow-wrap: anywhere; }
.pd-note a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 700px) { .pd-note { padding: 10px 12px; font-size: 13px; } }

/* ghi chú kiểu Khuyến mãi (nền đỏ nhạt theo màu giảm giá của theme, biểu tượng quà tặng). Khung xem trước ở admin-ui.css cần giữ khớp. */
.pd-note--promo { align-items: center; gap: 12px; padding: 10px 14px; background: linear-gradient(90deg, #fff1f0, #fff8f6); box-shadow: inset 0 0 0 1px #ffd0cc; color: #8a1d16; font-weight: 600; }
.pd-note--promo .pd-note__ic { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--sale); color: #fff; font-style: normal; }
.pd-note--promo .pd-note__ic .lu { margin: 0; color: #fff; }
.pd-note--promo b, .pd-note--promo strong { color: var(--sale); font-weight: 800; }
@media (max-width: 700px) { .pd-note--promo { padding: 9px 12px; } .pd-note--promo .pd-note__ic { width: 30px; height: 30px; } }
