/* ==========================================================================
   Trang chi tiết sản phẩm – theo trang mẫu MacStore 24h (/san-pham/…)
   Template: woocommerce/content-single-product.php · PHP: inc/product-detail.php · JS: assets/product-detail.js
   Chỉ tải ở trang sản phẩm. Màu dùng biến --ms-* trong style.css.
   ========================================================================== */

.ms-pd-page #main { background: #f8f9fa; }
.ms-pd { --pd-line: #e5e5e5; --pd-soft: #fafafa; --pd-star: var(--ms-accent-500, #f97316); color: #000; }
.ms-pd *, .ms-pd *::before, .ms-pd *::after { box-sizing: border-box; }
.ms-pd [hidden] { display: none !important; }
.ms-pd .ms-ico { flex-shrink: 0; }
.ms-pd .ms-ico.is-filled { fill: currentColor; }
.ms-pd button { margin: 0; font-family: inherit; letter-spacing: inherit; text-transform: none; min-height: 0; line-height: inherit; }
.ms-pd-native { display: none !important; }
.ms-pd-container { max-width: var(--ms-wrap, 1280px); margin: 0 auto; padding: 0 var(--ms-gutter, 32px); } /* lề theo khung chuẩn (style.css) */

/* ---------- Breadcrumb: 1 dòng nhỏ trên nền trang (không thanh trắng riêng) để khối mua hàng lên cao hơn ---------- */
.ms-pd-bar { background: none; }
.ms-pd-bar-in { display: flex; align-items: center; gap: 12px; padding-top: 14px; padding-bottom: 0; font-size: 13px; line-height: 20px; }
.ms-pd-crumbs { display: flex; flex: 1; align-items: center; gap: 4px; min-width: 0; color: #737373; font-weight: 500; white-space: nowrap; }
.ms-pd-crumbs > * { flex-shrink: 0; }
.ms-pd-crumbs a { color: #737373; transition: color .2s; }
.ms-pd-crumbs a:hover { color: var(--ms-accent); }
.ms-pd-crumb-sep { color: #c4c4c4; }
.ms-pd-crumbs .ms-pd-crumb-current { flex-shrink: 1; overflow: hidden; min-width: 0; color: var(--ms-ink, #171717); font-weight: 600; text-overflow: ellipsis; }

/* ---------- Khung chung ---------- */
.ms-pd-main { padding-top: 12px; padding-bottom: 80px; }
.ms-pd-notices:empty { display: none; }
.ms-pd-notices .woocommerce-message, .ms-pd-notices .woocommerce-error, .ms-pd-notices .woocommerce-info { margin-bottom: 16px; border-radius: 12px; }
.ms-pd-card { border: 1px solid rgba(229, 229, 229, .9); border-radius: 16px; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .05); }

/* ---------- Ảnh + thông tin ---------- */
.ms-pd-top { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; gap: 40px; padding: 28px 32px; }
.ms-pd-gallery { position: sticky; z-index: 10; top: 96px; display: flex; flex-direction: column; }
.admin-bar .ms-pd-gallery { top: 128px; }
.ms-pd-stage { position: relative; display: flex; overflow: hidden; align-items: center; justify-content: center; aspect-ratio: 1; border: 1px solid var(--pd-line); border-radius: 16px; background: #f5f5f7; box-shadow: inset 0 2px 4px rgba(0, 0, 0, .05); }
.ms-pd-mainlink { position: absolute; inset: 0; display: block; cursor: zoom-in; }
.ms-pd .ms-pd-main-img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; transition: transform .5s; }
/* Ảnh kế tiếp khi trượt (JS tạo): nằm cạnh ảnh chính, cùng cách hiển thị + cùng hiệu ứng phóng khi rê chuột */
.ms-pd-ghost { position: absolute; z-index: 1; inset: 0; display: none; pointer-events: none; }
.ms-pd .ms-pd-ghost img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; transition: transform .5s; }
.ms-pd-mainlink { will-change: transform; }
@media (hover: hover) { .ms-pd-stage:hover .ms-pd-main-img, .ms-pd-stage:hover .ms-pd-ghost img { transform: scale(1.05); } }
/* Slide ảnh lớn: vuốt ngang (dọc vẫn cuộn trang), nút ‹ › hiện khi rê chuột (luôn hiện trên màn cảm ứng), bộ đếm ảnh */
.ms-pd-stage { touch-action: pan-y; }
.ms-pd-stage img { -webkit-user-drag: none; user-select: none; }
.ms-pd-stage-nav { position: absolute; z-index: 3; top: 50%; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; min-height: 0; margin: -20px 0 0; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); color: #000; box-shadow: 0 2px 10px rgba(0, 0, 0, .15); cursor: pointer; opacity: 0; transition: opacity .2s, background .2s, color .2s; }
.ms-pd-stage-nav.is-prev { left: 12px; }
.ms-pd-stage-nav.is-next { right: 12px; }
.ms-pd-stage-nav .ms-ico { stroke-width: 2.5; }
.ms-pd-stage:hover .ms-pd-stage-nav,
.ms-pd-stage-nav:focus-visible { opacity: 1; }
.ms-pd-stage-nav:hover { background: var(--ms-accent); color: #fff; }
.ms-pd-stage-nav:focus-visible { outline: 2px solid var(--ms-accent); outline-offset: 2px; }
.ms-pd-stage-count { position: absolute; z-index: 2; bottom: 12px; left: 12px; padding: 2px 10px; border-radius: 999px; background: rgba(0, 0, 0, .6); color: #fff; font-size: 12px; font-weight: 700; line-height: 20px; pointer-events: none; }
@media (hover: none) {
	.ms-pd-stage-nav { width: 32px; height: 32px; margin-top: -16px; background: rgba(255, 255, 255, .8); opacity: 1; }
	.ms-pd-stage-nav.is-prev { left: 8px; }
	.ms-pd-stage-nav.is-next { right: 8px; }
}
.ms-pd-sale { position: absolute; z-index: 2; top: 12px; left: 12px; padding: 4px 12px; border: 1px solid rgba(255, 255, 255, .25); border-radius: 8px; background: var(--ms-sale-from, #e11d48); background: linear-gradient(135deg, var(--ms-sale-from, #e11d48) 0%, var(--ms-sale-to, var(--ms-accent, #f54a00)) 100%); color: #fff; font-size: 14px; font-weight: 900; line-height: 20px; box-shadow: 0 4px 10px -3px rgb(var(--ms-sale-from-rgb, 225 29 72) / 0.55); pointer-events: none; }
.ms-pd-video-btn { position: absolute; z-index: 2; right: 12px; bottom: 12px; display: flex; align-items: center; gap: 8px; padding: 6px 12px; border: 0; border-radius: 12px; background: rgba(0, 0, 0, .9); color: #fff; font-size: 12px; font-weight: 800; line-height: 16px; cursor: pointer; backdrop-filter: blur(12px); transition: background .2s; }
.ms-pd-video-btn:hover { background: #000; }
.ms-pd-video-dot { display: flex; align-items: center; justify-content: center; width: 20px; height: 20px; padding-left: 1px; border-radius: 50%; background: #fff; color: #000; }
/* Ảnh nhỏ: carousel 1 hàng, trượt ngang (vuốt / kéo chuột / nút mũi tên), hiện 5 ảnh */
.ms-pd-thumbs-wrap { position: relative; margin-top: 16px; }
.ms-pd-thumbs { display: flex; gap: 8px; overflow-x: auto; overscroll-behavior-x: contain; padding: 3px 3px 6px; margin: -3px -3px -6px; scroll-snap-type: x mandatory; scroll-padding: 0 3px; scroll-behavior: smooth; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.ms-pd-thumbs::-webkit-scrollbar { display: none; }
.ms-pd-thumbs.is-dragging { scroll-snap-type: none; scroll-behavior: auto; cursor: grabbing; }
.ms-pd-thumbs.is-dragging .ms-pd-thumb { pointer-events: none; }
.ms-pd-thumbs-nav { position: absolute; z-index: 3; top: 50%; display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; margin: -20px 0 0; padding: 0; border: 2px solid #fff; border-radius: 50%; background: var(--ms-accent); color: #fff; box-shadow: 0 4px 14px rgb(var(--ms-accent-rgb, 245 74 0) / 0.45); cursor: pointer; transition: background .2s, transform .2s, box-shadow .2s; }
.ms-pd-thumbs-nav:hover { background: var(--ms-accent-700, #c2410c); box-shadow: 0 6px 18px rgb(var(--ms-accent-rgb, 245 74 0) / 0.55); transform: scale(1.08); }
.ms-pd-thumbs-nav:focus-visible { outline: 2px solid var(--ms-accent); outline-offset: 2px; }
.ms-pd-thumbs-nav .ms-ico { stroke-width: 2.5; }
.ms-pd-thumbs-nav.is-prev { left: -12px; }
.ms-pd-thumbs-nav.is-next { right: -12px; }
.ms-pd-thumb { position: relative; flex: 0 0 calc((100% - 32px) / 5); overflow: hidden; aspect-ratio: 1; padding: 4px; scroll-snap-align: start; border: 2px solid var(--pd-line); border-radius: 12px; background: #f5f5f7; cursor: pointer; transition: border-color .2s, box-shadow .2s; }
.ms-pd-thumb img { display: block; pointer-events: none; user-select: none; -webkit-user-drag: none; width: 100%; height: 100%; border-radius: 8px; object-fit: cover; }
.ms-pd-thumb:hover { border-color: var(--ms-accent-300, #fdba74); }
.ms-pd-thumb.is-active { border-color: var(--ms-accent); box-shadow: 0 0 0 2px rgb(var(--ms-accent-rgb, 245 74 0) / 0.25), 0 4px 6px rgba(0, 0, 0, .1); }
.ms-pd-thumb.is-video { padding: 2px; background: #000; }
.ms-pd-thumb.is-video img { opacity: .6; transition: opacity .2s; }
.ms-pd-thumb.is-video:hover img { opacity: .85; }
.ms-pd-thumb-play { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: #fff; font-size: 9px; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; }
.ms-pd-thumb-play > span { display: flex; align-items: center; justify-content: center; width: 26px; height: 26px; padding-left: 2px; border-radius: 50%; background: #fff; color: #000; }

.ms-pd-info { display: flex; flex-direction: column; gap: 14px; min-width: 0; }

.ms-pd-title { margin: 0; color: #000; font-size: 26px; font-weight: 900; line-height: 1.25; letter-spacing: -.025em; }
.ms-pd-rating-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; font-size: 14px; }
.ms-pd-brand { margin-left: auto; color: #737373; font-size: 14px; line-height: 20px; }
.ms-pd-brand a { color: var(--ms-ink, #171717); font-weight: 700; text-decoration: underline; text-decoration-color: #d4d4d4; text-underline-offset: 3px; }
.ms-pd-brand a:hover { color: var(--ms-accent); text-decoration-color: currentColor; }
.ms-pd-rating { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border: 1px solid rgba(254, 215, 170, .6); border-radius: 6px; background: rgba(255, 247, 237, .6); }
.ms-pd-rating strong { margin-left: 4px; color: var(--ms-accent); font-weight: 900; }
.ms-pd-review-link { color: var(--ms-text, #525252); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.ms-pd-review-link:hover { color: #000; }
.ms-pd-sep { color: #d4d4d4; }
.ms-pd-sold { color: var(--ms-text, #525252); font-weight: 600; }
.ms-pd-sold strong { color: #000; font-weight: 800; }

/* Sao (nền xám, phủ màu cam theo %) */
.ms-pd-stars-ico { position: relative; display: inline-flex; vertical-align: middle; line-height: 0; }
.ms-pd-stars-bg { display: inline-flex; color: #e5e5e5; }
.ms-pd-stars-fg { position: absolute; top: 0; left: 0; display: inline-flex; overflow: hidden; color: var(--pd-star); white-space: nowrap; }

/* Giá */
.ms-pd-pricebox { position: relative; overflow: hidden; padding: 14px 18px; border: 1px solid rgba(229, 229, 229, .9); border-radius: 12px; background: var(--pd-soft); }
.ms-pd-prices { display: flex; flex-wrap: wrap; align-items: baseline; gap: 16px; }
.ms-pd-price { color: var(--ms-accent); font-size: 32px; font-weight: 900; line-height: 38px; letter-spacing: -.025em; font-variant-numeric: tabular-nums; }
.ms-pd-price .amount, .ms-pd-regular .amount { color: inherit; font-weight: inherit; }
.ms-pd-regular { color: #a3a3a3; font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; }
.ms-pd-save { align-self: center; padding: 4px 10px; border-radius: 6px; background: var(--ms-sale-from, #e11d48); background: linear-gradient(135deg, var(--ms-sale-from, #e11d48) 0%, var(--ms-sale-to, var(--ms-accent, #f54a00)) 100%); color: #fff; font-size: 12px; font-weight: 800; line-height: 16px; box-shadow: 0 4px 10px -4px rgb(var(--ms-sale-from-rgb, 225 29 72) / 0.55); }
.ms-pd-note { display: flex; align-items: center; gap: 6px; margin: 8px 0 0; color: #737373; font-size: 12px; line-height: 16px; }

/* Đặc điểm nổi bật (mô tả ngắn) – thu gọn, bấm "Xem thêm" để xổ xuống */
.ms-pd-feat { padding: 16px 16px 6px; border: 1px solid var(--pd-line); border-radius: 12px; background: #fff; }
.ms-pd-feat-h { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; color: var(--ms-ink, #171717); font-size: 14px; font-weight: 800; letter-spacing: .025em; text-transform: uppercase; }
.ms-pd-feat-h .ms-ico { color: var(--ms-accent); }
/* "Xem thêm" dùng chung (đặc điểm nổi bật, mô tả chính): data-ms-more + data-clamp = chiều cao khi thu gọn */
.ms-pd-more-body { position: relative; overflow: hidden; transition: max-height .4s ease; }
.is-clamped > .ms-pd-more-body { max-height: var(--ms-clamp, 200px); }
.is-clamped:not(.is-open) > .ms-pd-more-body::after { content: ""; position: absolute; right: 0; bottom: 0; left: 0; height: var(--ms-fade, 44px); background: linear-gradient(rgba(255, 255, 255, 0), #fff); pointer-events: none; z-index: 2; }
.ms-pd-more-btn .ms-ico { transform: rotate(90deg); transition: transform .25s; }
.ms-pd-more-btn[aria-expanded="true"] .ms-ico { transform: rotate(-90deg); }
.ms-pd-feat .ms-pd-more-body { padding-bottom: 10px; }
.ms-pd-feat-in { color: #404040; font-size: 13px; line-height: 1.65; }
.ms-pd-feat-in > :first-child { margin-top: 0; }
.ms-pd-feat-in > :last-child { margin-bottom: 0; }
.ms-pd-feat-in p { margin: 0 0 6px; }
.ms-pd-feat-in strong, .ms-pd-feat-in b { font-weight: 700; }
.ms-pd-feat-in ul, .ms-pd-feat-in ol { margin: 0 0 6px; padding: 0; list-style: none; }
.ms-pd-feat-in li { position: relative; margin: 0 0 4px; padding-left: 20px; }
.ms-pd-feat-in li::before { content: ""; position: absolute; top: .45em; left: 2px; width: 10px; height: 6px; border-bottom: 2px solid var(--ms-accent); border-left: 2px solid var(--ms-accent); transform: rotate(-45deg); }
.ms-pd-feat-in img { height: auto; border-radius: 8px; }
/* Màu chữ, cỡ chữ, phông, màu nền… người nhập chọn trong khung "Mô tả ngắn" được giữ nguyên (không ghi đè). */
.ms-pd-feat-toggle { display: flex; align-items: center; justify-content: center; gap: 4px; width: 100%; margin: 0; padding: 8px 0 6px; border: 0; border-top: 1px dashed var(--pd-line); background: none; color: var(--ms-accent); font-size: 13px; font-weight: 700; cursor: pointer; }
.ms-pd-feat-toggle:hover { color: var(--ms-accent-700, #c2410c); }

/* Khuyến mãi */

/* Phân loại */
.ms-pd-form { display: flex; flex-direction: column; gap: 14px; margin: 0; }
.ms-pd-attrs { position: relative; display: flex; flex-direction: column; gap: 12px; }
.ms-pd-attr { display: flex; flex-direction: column; gap: 8px; }
.ms-pd-attr-h { display: flex; align-items: center; justify-content: space-between; color: #404040; font-size: 12px; font-weight: 700; }
.ms-pd-attr-h b { color: #000; font-weight: 800; }
.ms-pd-attr.is-missing .ms-pd-attr-h span { color: #dc2626; }
.ms-pd-attr.is-missing .ms-pd-opt { border-color: #fca5a5; }
.ms-pd-opts { display: flex; flex-wrap: wrap; gap: 10px; }
.ms-pd-opt { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 2px solid var(--pd-line); border-radius: 12px; background: #fff; color: #262626; font-size: 12px; font-weight: 700; line-height: 16px; cursor: pointer; transition: border-color .15s, box-shadow .15s, background .15s; }
.ms-pd-opt:hover { border-color: #a3a3a3; }
.ms-pd-opt.is-active { border-color: #000; background: #f5f5f5; box-shadow: 0 0 0 2px #000, 0 4px 6px rgba(0, 0, 0, .1); }
.ms-pd-opt .ms-pd-opt-tick { display: none; color: #000; }
.ms-pd-opt.is-active .ms-pd-opt-tick { display: block; }
.ms-pd-opt.is-unavailable { opacity: .45; }
.ms-pd-opt.is-out .ms-pd-opt-name { color: #a3a3a3; text-decoration: line-through; }
.ms-pd-dot { flex-shrink: 0; width: 16px; height: 16px; border: 1px solid #d4d4d4; border-radius: 50%; box-shadow: 0 1px 2px rgba(0, 0, 0, .05); }
/* "Chọn lại" nằm ở góc phải dòng tên phân loại đầu tiên → không chiếm thêm 1 hàng */
.ms-pd .variations .ms-pd-reset { position: absolute; top: 0; right: 0; bottom: auto; opacity: 1; margin: 0; padding: 0; color: #737373; font-size: 12px; font-weight: 500; line-height: 16px; letter-spacing: 0; text-decoration: underline; text-transform: none; text-underline-offset: 3px; }
.ms-pd-form .single_variation_wrap { display: none !important; } /* chỉ chứa ô ẩn variation_id (vẫn gửi đi), tránh khoảng trống thừa */
.ms-pd-reset:hover { color: #000; }

/* Số lượng */
.ms-pd-qty { display: inline-flex; overflow: hidden; align-items: stretch; margin: 0 !important; border: 1px solid #d4d4d4; border-radius: 12px; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .05); }
.ms-pd-qty-btn { width: auto; padding: 8px 14px; border: 0; border-radius: 0; background: #f5f5f5; color: #000; font-size: 14px; font-weight: 800; line-height: 20px; cursor: pointer; transition: background .15s; }
.ms-pd-qty-btn:hover { background: var(--pd-line); }
.ms-pd-qty-btn:disabled { opacity: .4; cursor: default; }
.ms-pd .ms-pd-qty input.qty { width: 56px; min-width: 48px; height: auto; margin: 0; padding: 8px 4px; border: 0; border-radius: 0; background: #fff; box-shadow: none; color: #000; font-size: 14px; font-weight: 800; text-align: center; font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
.ms-pd-qty input.qty::-webkit-outer-spin-button, .ms-pd-qty input.qty::-webkit-inner-spin-button { margin: 0; -webkit-appearance: none; }
.ms-pd-subtotal { margin: -6px 0 0; color: #737373; font-size: 12px; }
.ms-pd-subtotal strong { color: var(--ms-accent); font-weight: 800; }

/* Nút mua */
.ms-pd-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ms-pd-actions.has-qty { grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr); } /* [số lượng] [mua ngay] [thêm giỏ] */
.ms-pd-actions.is-single { grid-template-columns: 1fr; }
.ms-pd-btn { position: relative; display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0; padding: 14px 16px; border: 1px solid #262626; border-radius: 12px; background: #000; color: #fff; font-size: 12px; font-weight: 700; line-height: 16px; letter-spacing: .05em; text-align: center; text-transform: uppercase !important; cursor: pointer; box-shadow: 0 4px 6px rgba(0, 0, 0, .1); transition: background .2s, transform .1s; }
.ms-pd-btn:hover { background: var(--ms-ink, #171717); color: #fff; }
.ms-pd-btn:active { transform: scale(.98); }
.ms-pd-buy { border-color: rgba(255, 255, 255, .2); font-weight: 900; box-shadow: 0 10px 15px rgba(0, 0, 0, .1); }
.ms-pd-buy:hover { background: #262626; }
.ms-pd-btn.disabled { opacity: 1; } /* WooCommerce gắn "disabled" khi chưa chọn phân loại – vẫn cho bấm để hiện nhắc chọn */
.ms-pd-btn:disabled { cursor: wait; }
.ms-pd-btn.is-loading > * { visibility: hidden; }
.ms-pd-btn.is-loading::after { content: ""; position: absolute; top: 50%; left: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff; border-radius: 50%; animation: ms-pd-spin .7s linear infinite; }
/* Nút mua: Thêm vào giỏ = cam, Mua ngay = xanh lá (chỉ 2 nút của form mua hàng; nút gọi / Zalo khi hết hàng vẫn đen) */
.ms-pd-btn.single_add_to_cart_button.ms-pd-add { border-color: var(--ms-accent, #f54a00); background: var(--ms-accent, #f54a00); box-shadow: 0 6px 14px -6px rgb(var(--ms-accent-rgb, 245 74 0) / 0.55); }
.ms-pd-btn.single_add_to_cart_button.ms-pd-add:hover { border-color: var(--ms-accent-hover, #dc4300); background: var(--ms-accent-hover, #dc4300); }
.ms-pd-btn.single_add_to_cart_button.ms-pd-buy { border-color: var(--ms-green, #16a34a); background: var(--ms-green, #16a34a); box-shadow: 0 6px 14px -6px rgb(var(--ms-green-rgb, 22 163 74) / 0.55); }
.ms-pd-btn.single_add_to_cart_button.ms-pd-buy:hover { border-color: var(--ms-green-dark, #15803d); background: var(--ms-green-dark, #15803d); }
.ms-pd-btn.single_add_to_cart_button.is-added { border-color: var(--ms-accent-700, #c2410c); background: var(--ms-accent-700, #c2410c); } /* đã thêm: cam đậm hơn */
@keyframes ms-pd-spin { to { transform: rotate(360deg); } }
.ms-pd-msg { margin: 0 0 -4px; padding: 8px 12px; border-radius: 8px; background: #fef2f2; color: #b91c1c; font-size: 13px; font-weight: 600; }
.ms-pd-soldout { padding: 16px; border: 1px dashed #d4d4d4; border-radius: 12px; background: var(--pd-soft); }
.ms-pd-soldout p { margin: 0 0 12px; color: #404040; font-size: 14px; }
.ms-pd-grouped .cart { margin: 0; }



.ms-pd-promo { padding: 16px; border: 1px solid var(--pd-line); border-radius: 12px; background: var(--pd-soft); }
.ms-pd-promo-h { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; color: var(--ms-ink, #171717); font-size: 14px; font-weight: 800; letter-spacing: .025em; text-transform: uppercase; }
.ms-pd-promo-star { display: flex; flex-shrink: 0; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; background: #000; color: #fff; font-size: 12px; font-weight: 900; }
.ms-pd-promo ul { margin: 0; padding: 0; list-style: none; }
.ms-pd-promo li { display: flex; align-items: flex-start; gap: 8px; margin: 0 0 6px; color: #404040; font-size: 12px; line-height: 16px; }
.ms-pd-promo li:last-child { margin-bottom: 0; }
.ms-pd-promo li .ms-ico { margin-top: 0; color: #262626; }
.ms-pd-promo strong { color: var(--ms-ink, #171717); }
.ms-pd-contact { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; color: var(--ms-text, #525252); font-size: 12px; }
.ms-pd-contact a { display: inline-flex; align-items: center; gap: 6px; color: var(--ms-text, #525252); font-weight: 600; transition: color .2s; }
.ms-pd-contact a:hover { color: #000; }
.ms-pd-contact .ms-ico { color: #262626; }
.ms-pd-contact strong { color: #000; }
/* Ô cam kết: gọn, thấp (icon + 2 dòng chữ nhỏ) */
.ms-pd-badges { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 0; padding: 14px 0 0; border-top: 1px solid #f5f5f5; list-style: none; }
.ms-pd-badges li { display: flex; flex-direction: column; align-items: center; margin: 0; padding: 7px 6px; border-radius: 8px; background: var(--pd-soft); color: #404040; font-size: 11px; line-height: 1.3; text-align: center; }
.ms-pd-badges .ms-ico { margin-bottom: 3px; color: var(--ms-green, #16a34a); } /* cam kết = xanh lá */
.ms-pd-badges strong { color: var(--ms-ink, #171717); font-size: 11px; font-weight: 700; }
.ms-pd-badges span { color: #737373; font-size: 10px; }

/* ---------- Tab ---------- */
.ms-pd-tabs { overflow: hidden; margin-top: 32px; }
.ms-pd-tablist { display: flex; overflow-x: auto; border-bottom: 1px solid var(--pd-line); background: var(--pd-soft); scrollbar-width: none; }
.ms-pd-tablist::-webkit-scrollbar { display: none; }
.ms-pd-tablist-tabs { display: contents; }
a.ms-pd-tab { color: var(--ms-text, #525252); text-decoration: none; }
.ms-pd-tab { display: flex; flex-shrink: 0; align-items: center; gap: 8px; margin-bottom: -1px; padding: 16px 24px; border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: none; color: var(--ms-text, #525252); font-size: 14px; font-weight: 700; line-height: 20px; letter-spacing: .025em; text-transform: uppercase !important; white-space: nowrap; cursor: pointer; transition: color .2s, background-color .2s; }
/* Tông cam: tab thường chữ xám → rê chuột chữ cam; tab đang chọn nền đen chữ cam, gạch chân cam */
.ms-pd-tab:hover,
a.ms-pd-tab:hover { color: var(--ms-accent); }
.ms-pd-tab.is-active,
.ms-pd-tab.is-active:hover { border-bottom-color: var(--ms-accent); background: #000; color: var(--ms-accent-soft); box-shadow: 0 1px 2px rgba(0, 0, 0, .05); }
.ms-pd-panel { padding: 40px; outline: none; }
.ms-pd-panel:focus-visible { box-shadow: inset 0 0 0 2px #000; }
.ms-pd-h3 { margin: 0 0 12px; color: #000; font-size: 20px; font-weight: 900; line-height: 1.4; }
.ms-pd-h4 { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; color: #000; font-size: 14px; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; }
.ms-pd-empty { margin: 0; color: #737373; font-size: 14px; }

/* Mô tả */
.ms-pd-desc { display: flex; flex-direction: column; gap: 24px; color: #262626; }
.ms-pd-intro { color: #404040; font-size: 16px; line-height: 1.625; }
.ms-pd-intro > :last-child { margin-bottom: 0; }
.ms-pd-highlights { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ms-pd-hl { padding: 16px; border: 1px solid var(--pd-line); border-radius: 12px; background: rgba(250, 250, 250, .5); }
.ms-pd-hl-h { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; color: #000; font-size: 14px; font-weight: 700; }
.ms-pd-hl p { margin: 0; color: var(--ms-text, #525252); font-size: 12px; line-height: 1.625; }
.ms-pd-content { color: #404040; font-size: 15px; line-height: 1.7; }
.ms-pd-content img { height: auto; border-radius: 12px; }
.ms-pd-content h2, .ms-pd-content h3, .ms-pd-content h4 { color: #000; font-weight: 800; }
.ms-pd-content > :last-child { margin-bottom: 0; }
/* Video YouTube chèn bằng thanh định dạng (iframe 560×314 cố định): co theo khung, giữ tỉ lệ 16:9 trên điện thoại. */
.ms-pd-content iframe[src*="youtube"], .ms-pd-feat-in iframe[src*="youtube"] { display: block; width: 100%; max-width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; }
/* Bảng chèn bằng thanh định dạng: khung cuộn ngang (bọc bởi product-detail.js) khi bảng rộng hơn màn hình. */
.ms-pd-table-scroll { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; margin-bottom: 1em; }
.ms-pd-table-scroll > table { margin-bottom: 0; }
.ms-pd-content-box { --ms-fade: 120px; }
.ms-pd .ms-pd-content-toggle { display: flex; align-items: center; gap: 6px; width: fit-content; margin: 16px auto 0; padding: 10px 22px; border: 1.5px solid var(--ms-accent); border-radius: 999px; background: #fff; color: var(--ms-accent); font-size: 13px; font-weight: 700; line-height: 18px; cursor: pointer; transition: background .2s, color .2s; }
.ms-pd-content-toggle:hover { background: var(--ms-accent); color: #fff; }


/* Chính sách bảo hành */
.ms-pd-policy { display: flex; flex-direction: column; gap: 24px; }
.ms-pd-policy-box { padding: 20px; border: 1px solid var(--pd-line); border-radius: 12px; background: var(--pd-soft); }
.ms-pd-policy-box .ms-pd-h4 { font-size: 16px; letter-spacing: 0; text-transform: none; }
.ms-pd-policy-text { color: var(--ms-text, #525252); font-size: 14px; line-height: 1.625; }
.ms-pd-policy-text > :last-child { margin-bottom: 0; }
.ms-pd-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.ms-pd-steps li { margin: 0; padding: 16px; border: 1px solid var(--pd-line); border-radius: 12px; background: #fff; }
.ms-pd-step-n { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; margin-bottom: 8px; border-radius: 50%; background: var(--ms-ink, #171717); color: #fff; font-size: 12px; font-weight: 900; }
.ms-pd-steps strong { display: block; margin-bottom: 4px; color: #000; font-size: 14px; }
.ms-pd-steps p { margin: 0; color: var(--ms-text, #525252); font-size: 12px; line-height: 1.6; }
.ms-pd-policy-note { margin: 0; color: #737373; font-size: 12px; }
.ms-pd-policy-note a { color: #000; }

/* ---------- Đánh giá (khối riêng) ---------- */
.ms-pd-rv-card { overflow: hidden; margin-top: 32px; scroll-margin-top: 110px; }
.ms-pd-section-h { padding: 16px 40px; border-bottom: 1px solid var(--pd-line); background: var(--pd-soft); }
.ms-pd-section-h h2 { display: flex; align-items: center; gap: 8px; margin: 0; color: #000; font-size: 14px; font-weight: 700; line-height: 20px; letter-spacing: .025em; text-transform: uppercase; }
.ms-pd-section-body { padding: 40px; }
.ms-pd-reviews { display: flex; flex-direction: column; gap: 32px; }
/* Tổng quan đánh giá: 2 cột – trái: điểm + số đánh giá theo sao, phải: "Đánh giá theo trải nghiệm" (các ý chọn nhanh) */
.ms-pd-rv-summary { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.ms-pd-rv-col { padding: 20px 24px; border: 1px solid var(--pd-line); border-radius: 16px; background: var(--pd-soft); }
.ms-pd-rv-summary > .ms-pd-rv-col:only-child { grid-column: 1 / -1; }
.ms-pd-rv-overall { display: flex; align-items: center; gap: 24px; }
.ms-pd-rv-score { display: flex; flex-shrink: 0; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.ms-pd-rv-num { display: flex; align-items: baseline; }
.ms-pd-rv-num strong { color: #000; font-size: 44px; font-weight: 900; line-height: 1; letter-spacing: -.025em; }
.ms-pd-rv-num small { margin-left: 2px; color: #a3a3a3; font-size: 22px; font-weight: 700; }
.ms-pd-rv-score > span { color: var(--ms-text, #525252); font-size: 13px; }
.ms-pd-rv-write { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; padding: 8px 14px; font-size: 13px; }
.ms-pd-rv-bars, .ms-pd-rv-exp ul { flex: 1; min-width: 0; margin: 0; padding: 0; list-style: none; }
.ms-pd-rv-bars li, .ms-pd-rv-exp li { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 12px; }
.ms-pd-rv-bars li:last-child, .ms-pd-rv-exp li:last-child { margin-bottom: 0; }
.ms-pd-rv-star { display: inline-flex; flex-shrink: 0; align-items: center; gap: 2px; width: 28px; color: #404040; font-weight: 700; }
.ms-pd-rv-star .ms-ico { color: var(--pd-star); }
.ms-pd-rv-bar { flex: 1; min-width: 40px; overflow: hidden; height: 8px; border-radius: 999px; background: var(--pd-line); }
.ms-pd-rv-bar i { display: block; height: 100%; border-radius: 999px; background: var(--pd-star); }
.ms-pd-rv-pct { flex-shrink: 0; width: 74px; color: #737373; font-weight: 500; text-align: right; white-space: nowrap; }
.ms-pd-rv-exp h3 { margin: 0 0 14px; color: var(--ms-ink, #171717); font-size: 15px; font-weight: 800; }
.ms-pd-rv-exp li { margin-bottom: 12px; font-size: 13px; }
.ms-pd-rv-exp-name { display: inline-flex; flex-shrink: 0; align-items: center; gap: 6px; width: 150px; color: #262626; font-weight: 600; }
.ms-pd-rv-exp-name .ms-ico { color: var(--ms-green, #16a34a); }
.ms-pd-rv-exp .ms-pd-rv-bar i { background: var(--ms-green, #16a34a); }
/* Nhãn chọn nhanh trong từng đánh giá */
.ms-pd-review-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; padding: 0; list-style: none; }
.ms-pd-review-tags li { display: inline-flex; align-items: center; gap: 4px; margin: 0; padding: 3px 10px; border: 1px solid var(--ms-green-200, #bbf7d0); border-radius: 999px; background: var(--ms-green-50, #f0fdf4); color: var(--ms-green-800, #166534); font-size: 12px; font-weight: 600; line-height: 18px; }
/* Ô chọn nhanh trong form */
.ms-pd-rv-form .comment-form-quick { margin: 0 0 16px; }
.ms-pd-rv-label { display: block; margin-bottom: 6px; color: #404040; font-size: 12px; font-weight: 700; }
.ms-pd-rv-label small { color: #a3a3a3; font-weight: 500; }
.ms-pd-rv-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ms-pd-rv-form label.ms-pd-rv-chip { position: relative; display: inline-flex; margin: 0; cursor: pointer; }
.ms-pd-rv-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.ms-pd-rv-chip span { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border: 1px solid #d4d4d4; border-radius: 999px; background: #fff; color: #404040; font-size: 13px; font-weight: 600; transition: border-color .15s, background .15s, color .15s; }
.ms-pd-rv-chip .ms-ico { display: none; }
.ms-pd-rv-chip:hover span { border-color: #a3a3a3; }
.ms-pd-rv-chip input:checked + span { border-color: var(--ms-green, #16a34a); background: var(--ms-green-50, #f0fdf4); color: var(--ms-green-800, #166534); }
.ms-pd-rv-chip input:checked + span .ms-ico { display: inline-block; }
.ms-pd-rv-chip input:focus-visible + span { outline: 2px solid var(--ms-accent); outline-offset: 2px; }

.ms-pd-review-list { margin: 0; padding: 0; list-style: none; }
.ms-pd-review { margin: 0; padding: 20px 0; border-bottom: 1px solid #f5f5f5; }
.ms-pd-review:first-child { padding-top: 0; }
.ms-pd-review .children { margin: 16px 0 0 52px; padding: 0; list-style: none; }
.ms-pd-review-in { display: flex; gap: 12px; }
.ms-pd-review-avatar { display: flex; flex-shrink: 0; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--ms-ink, #171717); color: #fff; font-size: 15px; font-weight: 800; }
.ms-pd-review-body { flex: 1; min-width: 0; }
.ms-pd-review-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-bottom: 4px; }
.ms-pd-review-name { color: #000; font-size: 14px; }
.ms-pd-review-verified { display: inline-flex; align-items: center; gap: 4px; color: var(--ms-green-dark, #15803d); font-size: 11px; font-weight: 700; }
.ms-pd-review-head time { color: #a3a3a3; font-size: 12px; }
.ms-pd-review-wait { margin: 6px 0 0; color: #b45309; font-size: 12px; font-style: italic; }
.ms-pd-review-text { margin-top: 6px; color: #404040; font-size: 14px; line-height: 1.6; }
.ms-pd-review-text > :last-child { margin-bottom: 0; }
.ms-pd-rv-pages ul { margin: 16px 0 0; }

.ms-pd-rv-thanks { display: flex; align-items: flex-start; gap: 10px; padding: 14px 16px; border: 1px solid var(--ms-green-200, #bbf7d0); border-radius: 12px; background: var(--ms-green-50, #f0fdf4); color: var(--ms-green-800, #166534); font-size: 14px; }
.ms-pd-rv-thanks .ms-ico { margin-top: 1px; }
.ms-pd-rv-thanks strong, .ms-pd-rv-thanks span { display: block; }
.ms-pd-rv-thanks span { color: var(--ms-green-dark, #15803d); font-size: 13px; }
.ms-pd-rv-note { color: #737373; font-size: 12px; }
.ms-pd-rv-form { padding: 24px; border: 1px solid var(--pd-line); border-radius: 16px; background: #fff; }
.ms-pd-rv-form .comment-respond { margin: 0; padding: 0; }
.ms-pd-rv-form form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; margin: 0; }
.ms-pd-rv-form form > * { grid-column: 1 / -1; }
.ms-pd-rv-form .comment-form-author { grid-column: 1; }
.ms-pd-rv-form .comment-form-email { grid-column: 2; }
.ms-pd-rv-form label { display: block; margin-bottom: 4px; color: #404040; font-size: 12px; font-weight: 700; }
.ms-pd-rv-form label small { color: #a3a3a3; font-weight: 500; }
.ms-pd-rv-form .required { color: #dc2626; }
.ms-pd-rv-form input[type="text"], .ms-pd-rv-form input[type="email"], .ms-pd-rv-form textarea { width: 100%; margin: 0; padding: 8px 12px; border: 1px solid #d4d4d4; border-radius: 8px; background: #fff; box-shadow: none; font-size: 13px; transition: border-color .2s; }
.ms-pd-rv-form input:focus, .ms-pd-rv-form textarea:focus { border-color: #000; outline: none; box-shadow: none; }
.ms-pd-rv-form textarea { min-height: 110px; }
.ms-pd-rv-form p { margin: 0 0 16px; }
.ms-pd-rv-form .comment-form-cookies-consent { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.ms-pd-rv-form .comment-form-cookies-consent label { margin: 0; font-weight: 500; }
.ms-pd-rv-form .comment-form-rating { margin-bottom: 16px; }
.ms-pd-rv-form .form-submit { margin: 0; }
.ms-pd-rv-submit { display: inline-flex; padding: 10px 20px; }
.ms-pd-rv-form #reply-title small { margin-left: 8px; font-size: 12px; letter-spacing: 0; text-transform: none; }

/* Chọn sao của WooCommerce (p.stars) */
.ms-pd-rv-form p.stars { margin: 0; line-height: 1; }
.ms-pd-rv-form p.stars span { display: inline-flex; gap: 4px; }
.ms-pd-rv-form p.stars a { position: relative; display: inline-block; width: 30px; height: 30px; margin: 0; padding: 0; overflow: hidden; border: 0 !important; color: transparent !important; font-family: inherit; font-size: 0 !important; text-indent: 0; text-decoration: none; }
.ms-pd-rv-form p.stars a::after { content: none !important; display: none !important; } /* icon nhiều sao của Flatsome */
.ms-pd-rv-form p.stars a:focus-visible { outline: 2px solid var(--ms-accent); outline-offset: 1px; border-radius: 4px; }
.ms-pd-rv-form p.stars a::before { content: "★" !important; position: absolute; top: 0; left: 0; width: 30px; height: 30px; color: #d4d4d4; font-family: inherit !important; font-size: 28px; line-height: 30px; text-align: center; text-indent: 0; transition: color .15s; }
.ms-pd-rv-form p.stars:hover a::before,
.ms-pd-rv-form p.stars.selected a::before { color: var(--pd-star); }
.ms-pd-rv-form p.stars:hover a:hover ~ a::before,
.ms-pd-rv-form p.stars.selected a.active ~ a::before { color: #d4d4d4; }
.ms-pd-rv-form p.stars.selected:hover a::before { color: var(--pd-star); }
.ms-pd-rv-form p.stars.selected:hover a:hover ~ a::before { color: #d4d4d4; }

/* ---------- Gợi ý ---------- */
.ms-pd-related { margin-top: 64px; }
.ms-pd-related-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 24px; }
.ms-pd-kicker { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; color: #737373; font-size: 12px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.ms-pd-kicker i { width: 10px; height: 10px; border-radius: 50%; background: var(--ms-ink, #171717); }
.ms-pd-related h2 { margin: 0; color: #000; font-size: 24px; font-weight: 900; line-height: 1.33; letter-spacing: -.025em; text-transform: uppercase; }
.ms-pd-more { display: inline-flex; flex-shrink: 0; align-items: center; gap: 4px; color: #404040; font-size: 12px; font-weight: 700; }
.ms-pd-more:hover { color: #000; }
.ms-pd-more .ms-ico { transition: transform .2s; }
.ms-pd-more:hover .ms-ico { transform: translateX(3px); }
.ms-pd-related-grid { gap: 20px; }

/* ---------- Thanh mua dưới màn hình (mobile) ---------- */
.ms-pd-sticky { display: none; }

/* ---------- Popup ảnh / video ---------- */
/* Lightbox ảnh sản phẩm (JS: openLightbox trong product-detail.js) */
html.ms-lb-open { overflow: hidden; }
.ms-lb { position: fixed; z-index: 100000; inset: 0; overflow: hidden; background: rgba(10, 10, 12, .94); opacity: 0; transition: opacity .2s; touch-action: none; user-select: none; -webkit-user-select: none; }
.ms-lb.is-open { opacity: 1; }
.ms-lb.is-closing { opacity: 0; pointer-events: none; }
.ms-lb-track { display: flex; height: 100%; will-change: transform; cursor: grab; }
.ms-lb.is-dragging .ms-lb-track { cursor: grabbing; }
.ms-lb-slide { display: flex; flex: 0 0 100%; align-items: center; justify-content: center; min-width: 0; height: 100%; padding: 64px 88px; box-sizing: border-box; }
.ms-lb-slide img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; border-radius: 8px; object-fit: contain; -webkit-user-drag: none; }
.ms-lb-close, .ms-lb-nav { position: absolute; z-index: 2; display: flex; align-items: center; justify-content: center; min-height: 0; margin: 0; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer; transition: background .2s, opacity .2s; }
.ms-lb-close:hover, .ms-lb-nav:hover { background: rgba(255, 255, 255, .25); }
.ms-lb-close { top: 16px; right: 16px; width: 44px; height: 44px; }
.ms-lb-nav { top: 50%; width: 52px; height: 52px; margin-top: -26px; }
.ms-lb-nav.is-prev { left: 20px; }
.ms-lb-nav.is-next { right: 20px; }
.ms-lb-nav:disabled { opacity: .25; cursor: default; pointer-events: none; }
.ms-lb-count { position: absolute; z-index: 2; bottom: 20px; left: 50%; padding: 4px 14px; border-radius: 999px; background: rgba(255, 255, 255, .12); color: #fff; font-size: 14px; font-weight: 700; line-height: 22px; transform: translateX(-50%); pointer-events: none; }
@media (max-width: 549px) {
	.ms-lb-slide { padding: 64px 12px 72px; }
	.ms-lb-nav { top: auto; bottom: 14px; width: 44px; height: 44px; margin-top: 0; }
	.ms-lb-nav.is-prev { left: 16px; }
	.ms-lb-nav.is-next { right: 16px; }
	.ms-lb-count { bottom: 24px; }
}
.ms-pd-mfp-video { position: relative; width: min(960px, 92vw); margin: 0 auto; aspect-ratio: 16 / 9; background: #000; }
.ms-pd-mfp-video iframe, .ms-pd-mfp-video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Thiết bị nhỏ ---------- */
@media (max-width: 1023px) {
	.ms-pd-top { grid-template-columns: minmax(0, 1fr); gap: 32px; padding: 24px; }
	.ms-pd-gallery { position: static; }
	.ms-pd-stage { max-width: 560px; width: 100%; margin: 0 auto; }
	.ms-pd-thumbs-wrap { max-width: 560px; width: 100%; margin-right: auto; margin-left: auto; }
	.ms-pd-panel { padding: 32px; }
	.ms-pd-section-h { padding: 16px 32px; }
	.ms-pd-section-body { padding: 32px; }
}
@media (max-width: 767px) {
	.ms-pd-highlights, .ms-pd-steps { grid-template-columns: minmax(0, 1fr); }
	.ms-pd-rv-summary { grid-template-columns: minmax(0, 1fr); }
	.ms-pd-rv-overall { flex-direction: column; gap: 16px; }
	.ms-pd-rv-overall .ms-pd-rv-bars { width: 100%; }
	.ms-pd-rv-col { padding: 16px; }
	.ms-pd-rv-exp-name { width: 140px; }
}
@media (max-width: 639px) {
	.ms-pd-promo-h { font-size: 12px; }
	.ms-pd-badges { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ms-pd-bar-in { gap: 8px; padding-top: 10px; font-size: 12px; }
	.ms-pd-crumbs { flex: 1; flex-wrap: nowrap; overflow-x: auto; white-space: nowrap; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
	.ms-pd-crumbs::-webkit-scrollbar { display: none; }
	.ms-pd-crumb-current { max-width: 180px; }
	.ms-pd-main { padding-top: 10px; }
	.ms-pd-top { padding: 16px; }
	.ms-pd-thumb { flex-basis: calc((100% - 24px) / 4.4); } /* lộ 1 phần ảnh kế tiếp → biết vuốt được */
	.ms-pd-thumbs-nav { display: none; }
	.ms-pd-title { font-size: 24px; }
	.ms-pd-rating-row { gap: 12px; font-size: 12px; }
	.ms-pd-pricebox { padding: 16px; }
	.ms-pd-prices { gap: 12px; }
	.ms-pd-price { font-size: 30px; line-height: 36px; }
	.ms-pd-regular { font-size: 16px; }
	.ms-pd-actions { grid-template-columns: minmax(0, 1fr); }
	.ms-pd-actions.has-qty { grid-template-columns: auto minmax(0, 1fr); } /* [số lượng] [mua ngay] / [thêm giỏ] */
	.ms-pd-actions.has-qty .ms-pd-add { grid-column: 1 / -1; }
	.ms-pd-actions.has-qty .ms-pd-qty-btn { padding: 8px 11px; }
	.ms-pd .ms-pd-actions.has-qty .ms-pd-qty input.qty { width: 38px; min-width: 0; }
	.ms-pd-actions .ms-pd-btn { padding-right: 12px; padding-left: 12px; white-space: nowrap; }
	.ms-pd-tab { padding: 14px 18px; font-size: 12px; }
	.ms-pd-panel { padding: 24px 16px; }
	.ms-pd-section-h { padding: 14px 16px; }
	.ms-pd-section-h h2 { font-size: 12px; }
	.ms-pd-section-body { padding: 24px 16px; }
	.ms-pd-rv-card { margin-top: 24px; scroll-margin-top: 80px; }
	.ms-pd-h3 { font-size: 18px; }
	.ms-pd-intro { font-size: 14px; }
	.ms-pd-rv-form { padding: 16px; }
	.ms-pd-rv-form form { grid-template-columns: minmax(0, 1fr); }
	.ms-pd-rv-form .comment-form-author, .ms-pd-rv-form .comment-form-email { grid-column: 1; }
	.ms-pd-related { margin-top: 48px; }
	.ms-pd-related-h { flex-direction: column; align-items: flex-start; }
	.ms-pd-related h2 { font-size: 20px; }
	.ms-pd-related-grid { gap: 10px; }

	.ms-pd-sticky { position: fixed; z-index: 40; right: 0; bottom: 0; left: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--pd-line); background: #fff; box-shadow: 0 -10px 30px rgba(0, 0, 0, .12); transition: transform .25s; }
	.ms-pd-sticky.is-hidden { transform: translateY(110%); }
	.ms-pd-sticky-price { display: flex; flex-direction: column; min-width: 0; }
	.ms-pd-sticky-price span { color: #737373; font-size: 10px; font-weight: 700; text-transform: uppercase; }
	.ms-pd-sticky-price strong { overflow: hidden; color: var(--ms-accent); font-size: 16px; font-weight: 900; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }
	.ms-pd-sticky-btns { display: flex; flex-shrink: 0; align-items: center; gap: 8px; }
	.ms-pd-sticky-cart, .ms-pd-sticky-buy { display: inline-flex; align-items: center; justify-content: center; gap: 6px; margin: 0; border: 0; border-radius: 12px; color: #fff; cursor: pointer; }
	.ms-pd-sticky-cart { padding: 12px; background: var(--ms-accent, #f54a00); }
	.ms-pd-sticky-buy { padding: 12px 16px; background: var(--ms-green, #16a34a); font-size: 12px; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; box-shadow: 0 4px 6px rgba(0, 0, 0, .1); }
	body.ms-pd-has-sticky #footer { padding-bottom: 72px; }
	body.ms-pd-has-sticky .ms-float { bottom: 88px; }
	body.ms-pd-has-sticky #top-link { display: none; } /* bị thanh mua hàng cố định che; cột nút nổi đã chiếm góc phải */
}
