/*
 * glue-shop.css: danh mục, tìm kiếm, sản phẩm, giỏ hàng (template woocommerce/* của theme mtee). Thanh toán/tài khoản: glue-checkout.css.
 * Bổ sung class chưa có trong mt.css và gỡ style Flatsome/WooCommerce chen vào markup mới.
 * Không thuộc cascade layer nên thắng CSS Flatsome (layer "flatsome").
 * Chỉ nạp ở trang WooCommerce (inc/setup.php). Quy tắc có ở mọi trang (.mt-cbtn, thẻ sản phẩm, .mt-pager, button.mt-more, [hidden]) nằm cuối glue.css.
 */

/* Ô số lượng WooCommerce bên trong .mt-qty (woocommerce/global/quantity-input.php). */
.mt-ui .quantity.mt-qty { margin: 0; opacity: 1; flex-wrap: nowrap; width: auto; }
.mt-ui .mt-qty input.qty { width: 44px; height: 100%; min-height: 0; margin: 0; padding: 0; border: 0; box-shadow: none; background: transparent; font-size: 15px; font-weight: 600; text-align: center; color: var(--mt-ink); }
.mt-ui .mt-qty button { padding: 0; margin: 0; min-height: 0; line-height: 1; }
.mt-ui .quantity:not(.mt-qty) input.qty[type="hidden"] { display: none; }

/* Thông báo WooCommerce trong khung giao diện mới. */
.mt-ui .woocommerce-notices-wrapper:not(:empty) { margin: 16px 0 0; }
.mt-ui .woocommerce-message, .mt-ui .woocommerce-info, .mt-ui .woocommerce-error {
  list-style: none; margin: 16px 0; padding: 14px 18px; border-radius: var(--mt-r-sm); border: 0;
  background: var(--mt-blue-soft); color: #0b3d74; font-size: 15px; display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center;
}
.mt-ui .woocommerce-error { background: #fdecee; color: #8a0010; }
.mt-ui .woocommerce-message .button, .mt-ui .woocommerce-info .button {
  order: 2; margin: 0 0 0 auto; padding: 0; min-height: 0; line-height: 1.4; background: none; border: 0; color: var(--mt-link); text-transform: none; font-weight: 600; font-size: 15px;
}
.mt-ui .woocommerce-message::before, .mt-ui .woocommerce-info::before, .mt-ui .woocommerce-error::before { display: none; }

/* ---------- danh mục / cửa hàng ---------- */
.mt-ui .mt-ordering { margin: 0; }
.mt-ui .mt-ordering select { margin: 0; }
.mt-ui [data-fgroup]:not(.is-all) .is-extra { display: none; }
.mt-ui [data-fval][hidden] { display: none !important; }
.mt-ui .mt-fsearch { width: 100%; height: 38px; margin: 0 0 10px; font-size: 14px; }
.mt-ui .mt-fmore { margin-top: 8px; }
.mt-ui .mt-fprice { display: grid; gap: 10px; margin: 0 0 14px; }
.mt-ui .mt-fprice .mt-btn { justify-self: start; }
.mt-ui .mt-fprice input[type="number"] { -moz-appearance: textfield; }
.mt-ui .woocommerce-info.woocommerce-no-products-found { margin-top: 24px; }
.mt-catseo { margin-top: 64px; }
.mt-ui .mt-readmore { margin-top: 16px; }
.mt-ui .mt-seo__text h1 { color: var(--mt-ink); }
/* Danh sách (nút xem dạng list): thẻ sản phẩm vẫn là pcard, mt.css lo bố cục is-list. */

/* ---------- tìm kiếm ---------- */
.mt-serp-head { padding-top: 44px; }
.mt-serp-head .mt-bigsearch { max-width: none; }
.mt-serp-title { margin: 28px 0 0; }
.mt-serp-head .mt-didyou { margin-top: 8px; }
.mt-prows { border-top: 1px solid var(--mt-line-soft); }
/* Cột thứ ba (chỗ "tồn kho" của mockup) là hãng · dòng: số tồn trong DB không thật nên không hiện. */
.mt-prow { grid-template-columns: 88px minmax(0, 1fr) 150px 150px auto; }
.mt-prow__meta { line-height: 1.35; }
@media (max-width: 1068px) {
  .mt-prow { grid-template-columns: 88px minmax(0, 1fr) 130px 130px auto; gap: 16px; }
}
@media (max-width: 834px) {
  .mt-prow { grid-template-columns: 72px minmax(0, 1fr) auto; }
}
/* Tab "Tài liệu": ảnh · tên/mã · danh sách file · nút xem sản phẩm. */
.mt-ui .mt-prow--doc { grid-template-columns: 88px minmax(0, 1fr) minmax(0, 1.1fr) auto; }
.mt-prow__docs { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.mt-prow__docs li { margin: 0; }
.mt-prow__docs a { display: flex; align-items: flex-start; gap: 10px; color: var(--mt-ink); font-size: 14px; line-height: 1.35; }
.mt-prow__docs a:hover span:last-child { color: var(--mt-blue); text-decoration: underline; }
.mt-prow__docs small { display: block; color: var(--mt-muted); font-size: 12.5px; margin-top: 2px; }
.mt-prow__ext { flex: none; min-width: 38px; padding: 2px 6px; border-radius: 4px; background: #fdecea; color: #b42318; font: 600 11px/1.5 var(--mt-mono); text-align: center; }
@media (max-width: 834px) {
  .mt-ui .mt-prow--doc { grid-template-columns: 72px minmax(0, 1fr); }
  .mt-ui .mt-prow--doc .mt-prow__docs { grid-column: 2; }
}
.mt-prow__ext--link { background: var(--mt-bg-alt); color: var(--mt-muted); }
.mt-serp-tips { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; font-size: 14px; color: var(--mt-muted); }
.mt-serp-tips li { margin: 0; }
.mt-serp-tips .mt-mono { color: var(--mt-ink); }
.mt-prow__price .mt-ask { font-size: 14px; }
.mt-prow__price .price { font-size: 15px; font-weight: 600; color: var(--mt-ink); }
.mt-empty { padding: 40px 0; border-bottom: 1px solid var(--mt-line-soft); }
.mt-empty .mt-muted { margin-top: 8px; }
.mt-serp-sub { margin: 56px 0 16px; }
.mt-serp-ic { width: 28px; height: 28px; color: var(--mt-blue); }
.mt-serp-card__t { margin: 12px 0 6px; font-weight: 700; }
.mt-serp-card__cta { display: grid; gap: 10px; margin-top: 18px; }

/* ---------- trang sản phẩm ---------- */
.mt-ui .mt-gallery__link { display: contents; }
.mt-ui .mt-buy .product_meta { margin: 0; padding: 0; border: 0; font-size: inherit; }
.mt-ui .mt-buy .product_meta > span { display: inline-flex; border: 0; padding-top: 0; margin: 0; }
.mt-ui .mt-buy .sku_wrapper .sku { font: inherit; color: inherit; }
.mt-ui .mt-copy button { border: 0; background: none; padding: 0; margin: 0 0 0 4px; color: var(--mt-muted); display: inline-grid; place-items: center; min-height: 0; line-height: 1; }
.mt-ui .mt-copy button:hover { color: var(--mt-ink); }
.mt-ui .mt-badge--eol { background: var(--mt-bg-deep); color: var(--mt-ink); }
.mt-buy__rating { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--mt-muted); }
.mt-buy__rating .star-rating { margin: 0; font-size: 12px; }
.mt-price__label { font-size: 13px; color: var(--mt-muted); margin-bottom: 4px; }
.mt-price__hint { margin-top: 6px; font-size: 14px; color: var(--mt-muted); }
.mt-price__var .price { font-size: 28px; font-weight: 700; color: var(--mt-ink); letter-spacing: -.02em; }
.mt-price__var del { font-size: 16px; color: var(--mt-faint); font-weight: 400; }
.mt-price__var ins { text-decoration: none; }
.mt-km ol { margin: 6px 0 0 18px; padding: 0; display: grid; gap: 4px; }
.mt-km li { margin: 0; }
.mt-ui .mt-buy__cta form.cart { display: contents; }
/* Nút "Mua ngay" của Flatsome (woocommerce_after_add_to_cart_button): giữ chức năng, đổi sang kiểu nút viền. */
.mt-ui .mt-buy .ux-buy-now-button {
  grid-column: 1 / -1; display: inline-flex; align-items: center; justify-content: center; margin: 0; min-height: 52px; padding: 0 30px;
  border-radius: var(--mt-pill); border: 1px solid var(--mt-blue); background: transparent; color: var(--mt-blue);
  font-size: 17px; font-weight: 500; line-height: 1; letter-spacing: -.015em; text-transform: none; box-shadow: none; text-shadow: none;
}
.mt-ui .mt-buy .ux-buy-now-button:hover { background: var(--mt-blue); color: #fff; }
.mt-ui .mt-buy form.cart { margin: 0; padding: 0; border: 0; }
.mt-ui .mt-buy__form { margin-top: 24px; }
.mt-ui .mt-buy__form table.variations { width: 100%; margin: 0 0 16px; border: 0; }
.mt-ui .mt-buy__form table.variations th, .mt-ui .mt-buy__form table.variations td { display: block; padding: 0; border: 0; text-align: left; }
.mt-ui .mt-buy__form table.variations label { font-size: 14px; font-weight: 600; color: var(--mt-ink); text-transform: none; letter-spacing: 0; }
.mt-ui .mt-buy__form table.variations select { width: 100%; margin: 6px 0 12px; }
.mt-ui .mt-buy__form .reset_variations { font-size: 13px; }
.mt-ui .mt-buy__form .woocommerce-variation-add-to-cart { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.mt-ui .mt-buy__form .woocommerce-variation-price .price { font-size: 22px; font-weight: 700; color: var(--mt-ink); }
.mt-pdp-h { margin-bottom: 20px; }
/* Giá trị dài (URL datasheet, chuỗi mã) không được đẩy bảng thông số tràn ngang trên mobile. */
.mt-ui .mt-specs__grp > * { min-width: 0; }
.mt-ui .mt-specs dl > * { min-width: 0; overflow-wrap: anywhere; }
.mt-pdp-desc h1 { font-size: 28px; }
.mt-pdp-desc img { max-width: 100%; height: auto; }
.mt-pdp-desc table { width: 100%; border-collapse: collapse; }
.mt-pdp-desc td, .mt-pdp-desc th { border-bottom: 1px solid var(--mt-line-soft); padding: 8px 10px; text-align: left; }
/* Khung đánh giá WooCommerce (comments_template). */
.mt-pdp-reviews #reviews .commentlist { list-style: none; margin: 0; padding: 0; }
.mt-pdp-reviews #review_form .comment-reply-title { font-size: 19px; font-weight: 700; color: var(--mt-ink); }
.mt-pdp-reviews textarea, .mt-pdp-reviews input[type="text"], .mt-pdp-reviews input[type="email"] { width: 100%; }

/* ---------- giỏ hàng ---------- */
.mt-cartwrap { max-width: 980px; }
.mt-ui .woocommerce-cart-form { margin: 0; }
.mt-bag-item .product-name h2 { margin: 0; }
.mt-bag-item .product-name h2 a { color: inherit; }
.mt-bag-item .variation { margin: 8px 0 0; font-size: 13px; color: var(--mt-muted); }
.mt-bag-item .variation dt, .mt-bag-item .variation dd { display: inline; margin: 0; }
.mt-bag-item .variation dd p { display: inline; }
.mt-bag-item__price small { display: block; }
.mt-bag-item__price .product-remove { display: block; margin-top: 8px; }
.mt-ui .mt-bag-item__price a.remove {
  display: inline; width: auto; height: auto; border: 0; border-radius: 0; background: none; color: var(--mt-link);
  font-size: 15px; font-weight: 400; line-height: 1.4; opacity: 1;
}
.mt-ui .mt-bag-item__price a.remove:hover { background: none; color: var(--mt-blue-hover); text-decoration: underline; }
/* "Xóa" chỉ 27×18px, khó chạm. Nới vùng chạm lên ~44px bằng đệm + lề âm: chữ vẫn nằm đúng chỗ cũ. */
@media (pointer: coarse), (max-width: 834px) {
  .mt-ui .mt-bag-item__price a.remove { display: inline-block; padding: 12px 14px; margin: -12px -14px; }
}
.mt-bag-item .backorder_notification { margin-top: 10px; font-size: 13px; color: var(--mt-muted); }
.mt-bag-actions { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 24px 0; border-bottom: 1px solid var(--mt-line); }
/* Số lượng đổi là giỏ tự cập nhật (shop.js); nút chỉ hiện khi tắt JS. */
.woocommerce-cart-form.is-auto .mt-bag-update { display: none; }
.mt-bag-coupon summary { cursor: pointer; color: var(--mt-link); font-size: 15px; list-style: none; }
.mt-bag-coupon summary::-webkit-details-marker { display: none; }
.mt-bag-coupon .coupon { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.mt-bag-coupon .coupon .mt-input { width: 220px; height: 40px; margin: 0; }
.mt-ui .cart-collaterals { width: 100%; }
.mt-ui .cart-collaterals .cart_totals { float: none; width: min(100%, 560px); margin-left: auto; }
.mt-bag-sum h2.mt-sr-only { margin: 0; }
.mt-bag-sum__tbl { width: 100%; margin: 0; border: 0; border-collapse: collapse; font-size: 17px; }
.mt-bag-sum__tbl th, .mt-bag-sum__tbl td { padding: 7px 0; border: 0; vertical-align: top; color: var(--mt-ink); text-transform: none; letter-spacing: 0; font-weight: 400; font-size: inherit; line-height: 1.45; }
.mt-bag-sum__tbl th { text-align: left; padding-right: 16px; }
.mt-bag-sum__tbl td { text-align: right; }
.mt-bag-sum__tbl tr.mt-total th, .mt-bag-sum__tbl tr.mt-total td { border-top: 1px solid var(--mt-line); padding-top: 20px; font-size: 24px; font-weight: 700; letter-spacing: -.02em; }
.mt-bag-sum__tbl .mt-total small, .mt-bag-sum__tbl .includes_tax { display: block; font-size: 14px; font-weight: 400; color: var(--mt-muted); letter-spacing: 0; }
.mt-bag-sum__tbl ul#shipping_method { list-style: none; margin: 0; padding: 0; }
.mt-bag-sum__tbl ul#shipping_method li { margin: 0 0 4px; }
.mt-bag-sum__tbl .woocommerce-shipping-destination, .mt-bag-sum__tbl .woocommerce-shipping-contents { font-size: 13px; color: var(--mt-muted); margin: 6px 0 0; }
.mt-bag-sum__tbl .shipping-calculator-button { font-size: 14px; color: var(--mt-link); }
.mt-bag-sum__tbl .shipping-calculator-form { text-align: left; margin-top: 10px; }
.mt-bag-sum__tbl .shipping-calculator-form p { margin: 0 0 8px; }
.mt-bag-sum__tbl .shipping-calculator-form :is(input, select) { width: 100%; }
.mt-bag-sum__tbl .woocommerce-remove-coupon { font-size: 13px; margin-left: 6px; }
.mt-ui .wc-proceed-to-checkout { padding: 0; }
.mt-ui .wc-proceed-to-checkout .checkout-button { width: 100%; margin: 0; font-size: 17px; }
.mt-bag-empty { border-bottom: 0; }
.mt-bag-empty .return-to-shop { margin: 0; }

/* Drawer bộ lọc trên mobile: mt.css giữ align-self:start của bản sticky desktop, khiến khối fixed co theo nội dung và không cuộn được bên trong. */
@media (max-width: 1068px) {
  .mt-ui .mt-filters { align-self: stretch; overscroll-behavior: contain; }
}

@media (max-width: 834px) {
  .mt-bag-item__top .product-quantity { order: 0; }
  .mt-bag-sum__tbl { font-size: 15px; }
}
@media (max-width: 600px) {
  .mt-bag-actions { flex-direction: column; }
  .mt-bag-coupon .coupon .mt-input { width: 100%; }
  .mt-bag-sum__tbl tr.mt-total th, .mt-bag-sum__tbl tr.mt-total td { font-size: 20px; }
}
/* Mô tả dài: thu gọn để bảng thông số không bị đẩy xuống quá xa; nút "Đọc thêm" (data-readmore, mt.js) mở ra. */
.mt-pdp-desc.is-clamp:not(.is-open) { max-height: 880px; overflow: hidden; position: relative; }
.mt-pdp-desc.is-clamp:not(.is-open)::after { content: ""; position: absolute; inset: auto 0 0; height: 160px; background: linear-gradient(rgba(255,255,255,0), var(--mt-bg)); pointer-events: none; }
.mt-pdp #tong-quan .mt-wrap > .mt-pdp-desc { max-width: 820px; margin-inline: auto; }
.mt-pdp #tong-quan .mt-readmore { display: block; margin: 20px auto 0; }
@media (max-width: 734px) { .mt-pdp-desc.is-clamp:not(.is-open) { max-height: 720px; } }

/* Thanh công cụ danh mục: nút lọc + sắp xếp + kiểu xem trên một hàng; chip đang lọc xuống hàng riêng. */
.mt-toolbar__chips:empty { display: none; }
@media (max-width: 1068px) {
	.mt-toolbar { flex-wrap: wrap; gap: 10px; }
	.mt-toolbar__chips { order: 9; flex: 1 1 100%; }
	.mt-toolbar .mt-filterbtn, .mt-toolbar .mt-viewtoggle { flex: none; }
	/* Máy tính bảng: ô sắp xếp giữ bề rộng theo nội dung (như mockup), kiểu xem dạt phải. */
	.mt-ui .mt-toolbar .mt-ordering { margin-left: auto; }
}
@media (max-width: 734px) {
	/* Ô sắp xếp: tối thiểu 150px = chữ "Phổ biến nhất" (91px) + đệm 16/40px + viền, để không bị cắt thành "Phổ…".
	   Tối đa 240px để ở 600–734px ô không kéo dài 500px. Nằm sát nút lọc. */
	.mt-ui .mt-toolbar .mt-ordering { flex: 1 1 150px; min-width: 150px; max-width: 240px; margin-left: 0; }
	.mt-ui .mt-toolbar .mt-ordering select { width: 100%; max-width: none; text-overflow: ellipsis; }
	/* Thiếu chỗ (màn ≤360px, hoặc nút lọc có "· 1" ở 375px) thì nút kiểu xem xuống hàng hai và canh phải. */
	.mt-ui .mt-toolbar .mt-viewtoggle { margin-left: auto; }
	/* Trang sản phẩm trên điện thoại: thanh phụ phía trên chỉ có mã + "Mua", trùng với thanh mua cố định phía dưới.
	   Cả hai cùng dính chiếm ≈20% màn 375×812, nên thanh trên chỉ hiện ở đầu trang, không dính khi cuộn. */
	.has-mbar .mt-lnav { position: static; }
}
/* Trang sản phẩm 835–1068px (iPad ngang, laptop nhỏ): giữ ảnh và khối mua cạnh nhau, ảnh vẫn dính khi cuộn.
   Mockup cho rớt 1 cột ngay từ 1068px, khiến ở 1024 ảnh rộng ≈990px và khối mua nằm dưới màn hình đầu.
   Đặt ở đây (không chỉ trong mt.css) vì mt.css được sinh lại từ mockup bằng tools/mt-port/build_css.py. */
@media (min-width: 835px) and (max-width: 1068px) {
	.mt-ui .mt-pd { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
	.mt-ui .mt-gallery { position: sticky; }
}
/* 735–834px (iPad dọc) xếp 1 cột: ảnh vuông rộng ≈790px đẩy khối mua xuống y≈970. Giới hạn 520px, canh giữa. */
@media (min-width: 735px) and (max-width: 834px) {
	.mt-ui .mt-gallery { width: 100%; max-width: 520px; margin-inline: auto; }
}

/* Flatsome in đậm mọi <label>: nhãn lựa chọn trong bộ lọc dùng độ đậm thường như danh mục. */
.mt-ui .mt-filters .mt-check { font-weight: 400; }
/* Sản phẩm có biến thể: select + nút cùng kiểu với sản phẩm thường. */
.mt-ui .mt-buy__form table.variations select {
  height: 48px; padding: 0 40px 0 16px; border: 1px solid var(--mt-line); border-radius: var(--mt-r-sm); box-shadow: none;
  font-size: 16px; color: var(--mt-ink); appearance: none; -webkit-appearance: none;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%236e6e73' stroke-width='1.6'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 16px center;
}
.mt-ui .mt-buy__form table.variations select:focus { border-color: var(--mt-blue); box-shadow: 0 0 0 4px rgba(10,110,209,.12); outline: 0; }
.mt-ui .mt-buy__form table.variations tr:last-child select { margin-bottom: 4px; }
.mt-ui .mt-buy__form .single_variation_wrap { margin-top: 12px; }
.mt-ui .mt-buy__form .woocommerce-variation:not(:empty) { margin-bottom: 14px; }
.mt-ui .mt-buy__form .woocommerce-variation-add-to-cart .single_add_to_cart_button { flex: 1 1 auto; margin: 0; text-transform: none; }
.mt-ui .mt-buy__form .woocommerce-variation-add-to-cart .ux-buy-now-button { flex: 1 1 100%; }
.mt-ui .mt-buy__form .single_add_to_cart_button.disabled { opacity: .45; cursor: not-allowed; }
.mt-ui .mt-buy__form table.variations tr { display: block; }
.mt-ui .mt-buy__form table.variations th.label { line-height: 1.3; background: none; }
/* Flatsome custom CSS: `table th { padding-left: 10px !important }` (layer flatsome). */
@layer mtee-important { .mt-ui .mt-buy__form table.variations th.label { padding: 0 !important; } }
.mt-ui .mt-buy__form table.variations td.value { position: static; }
.mt-ui .mt-buy__form .reset_variations {
  position: static; display: inline-block; float: none; margin: 0 0 8px; padding: 0;
  font-size: 13px; font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--mt-blue); opacity: 1;
}
.mt-ui .mt-buy__form .single_variation_wrap { margin-top: 4px; }
.mt-ui .mt-buy__form .woocommerce-variation { border: 0; padding: 0; }
.mt-ui .mt-buy__form .woocommerce-variation-price .price del { font-size: 16px; font-weight: 400; color: var(--mt-faint); }
.mt-ui .mt-buy__form .woocommerce-variation-price .price ins { text-decoration: none; }
.mt-ui .mt-buy__form .woocommerce-variation-add-to-cart .quantity { flex: none; margin: 0; }
.mt-ui .mt-buy__form .woocommerce-variation-price { border: 0; padding: 0; }
.mt-ui .mt-buy__form table.variations { margin-bottom: 8px; }
/* Woo ẩn nút "Xóa" bằng visibility: hidden — bỏ luôn khoảng trống khi chưa chọn biến thể. */
.mt-ui .mt-buy__form .reset_variations[style*="hidden"] { display: none; }
.mt-ui .mt-buy__form .single_variation_wrap { margin-top: 16px; }
.mt-ui .mt-buy__form table.variations select { display: block; }

/* Giỏ trên điện thoại: ảnh nhỏ cạnh tên (mockup để ảnh tràn ngang cao 200px — giỏ nhiều mã phải cuộn quá dài). */
@media (max-width: 734px) {
  .mt-bag-item { grid-template-columns: 84px minmax(0, 1fr); gap: 16px; padding: 24px 0; }
  .mt-bag-item__img { width: 84px; height: 84px; border-radius: var(--mt-r-sm); }
  .mt-bag-item__img img { width: 68px; height: 68px; }
  .mt-bag-item__top h2 { font-size: 17px; line-height: 1.3; }
  .mt-bag-item__top .mt-mono { font-size: 12px; }
  .mt-bag-item__top { grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 14px 12px; }
  .mt-bag-item__top .product-name { grid-column: 1 / -1; }
  .mt-bag-item__price { text-align: right; }
  .mt-bag-item__price b { font-size: 17px; white-space: nowrap; }
  .mt-bag-item__price small { font-size: 12px; white-space: nowrap; }
}
.mt-bag-item__price small .amount { font-weight: 400; }

/* ===== QA B (2026-11-18): rà lỗi từng nút / từng chữ ở danh mục, tìm kiếm, sản phẩm, giỏ ===== */

/* Khối SEO cuối danh mục: cột lưới không được rộng hơn màn hình (bảng/ảnh trong bài làm tràn ngang). */
.mt-catseo .mt-seo > * { min-width: 0; }
.mt-catseo .mt-prose { overflow-wrap: anywhere; }
.mt-catseo .mt-prose img, .mt-catseo .mt-prose iframe, .mt-catseo .mt-prose video { max-width: 100%; height: auto; }
.mt-catseo .mt-prose table { display: block; max-width: 100%; overflow-x: auto; }

/* Thông số kỹ thuật: Flatsome đặt dl in hoa + mờ, dt inline-block. */
.mt-ui .mt-specs dl, .mt-ui .mt-specs dt, .mt-ui .mt-specs dd { text-transform: none; opacity: 1; letter-spacing: normal; }
.mt-ui .mt-specs dl { font-size: 15px; }
.mt-ui .mt-specs dt { display: block; margin: 0; }
@media (max-width: 734px) { .mt-ui .mt-specs dl { font-size: 14px; } }

/* Nhãn giảm giá trên ảnh sản phẩm. */
.mt-ui .mt-gallery__tag.mt-badge {
  position: absolute; top: 16px; left: 16px; z-index: 2; height: 28px; padding: 0 12px;
  font-size: 13px; font-weight: 800; color: #fff; background: linear-gradient(135deg, #e5141f, #b0000f);
  box-shadow: 0 6px 14px -6px rgba(215, 0, 21, .7);
}

/* "Xem thêm N sản phẩm" cạnh tiêu đề "Cùng dòng" không bẻ đôi. */
.mt-ui .mt-opt__head .mt-more { white-space: nowrap; flex: none; }

/* Tìm kiếm: bỏ đường kẻ đôi dưới tab, tiêu đề vừa phải như mockup. */
.mt-ui .mt-serp-title { font-size: clamp(28px, 3.2vw, 40px); line-height: 1.15; letter-spacing: -.02em; }
.mt-ui .mt-serp .mt-prows { border-top: 0; }
.mt-ui .mt-empty .mt-t-lead { color: var(--mt-ink); }
.mt-ui .mt-empty__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* Bảng tổng tiền giỏ: Flatsome tô nền xám + `padding-left: 10px !important` cho mọi th. */
.mt-bag-sum__tbl th { background: none; }
@layer mtee-important { .mt-ui .mt-bag-sum__tbl th { padding-left: 0 !important; background: none !important; } }

/* Lỗi mã giảm giá (Woo chèn ngay dưới ô nhập). */
.mt-ui .mt-bag-coupon .coupon-error-notice { flex: 1 0 100%; margin: 4px 0 0; font-size: 14px; color: var(--mt-sale, #d70015); }
.mt-ui .mt-bag-coupon .mt-input[aria-invalid="true"] { border-color: var(--mt-sale, #d70015); }

/* Giỏ trên điện thoại: thành tiền không tràn mép phải (số + "₫" rộng hơn cột còn lại sau ô số lượng). */
@media (max-width: 734px) {
  .mt-bag-item__top { grid-template-columns: auto minmax(0, 1fr); }
  .mt-bag-item__price b { font-size: 16px; }
  .mt-bag-item__price { min-width: 0; }
}
@media (max-width: 400px) {
  .mt-bag-item__top { grid-template-columns: minmax(0, 1fr); }
  .mt-bag-item__top .product-quantity, .mt-bag-item__top .quantity { justify-self: start; margin-left: 0; }
  .mt-bag-item__price { text-align: left; }
}

/* Nút "Gửi đi" của form đánh giá (input#submit của comment_form) cùng kiểu .mt-btn. */
.mt-ui .mt-pdp-reviews #review_form input[type="submit"] {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; margin: 8px 0 0; padding: 0 26px;
  border: 1px solid var(--mt-blue); border-radius: var(--mt-pill); background: var(--mt-blue); color: #fff;
  font-size: 17px; font-weight: 500; line-height: 1; letter-spacing: -.015em; text-transform: none; box-shadow: none; cursor: pointer;
}
.mt-ui .mt-pdp-reviews #review_form input[type="submit"]:hover { background: var(--mt-blue-hover); border-color: var(--mt-blue-hover); }

/* Thanh mua cố định (điện thoại): giá và mã không xuống dòng, cắt "…" khi quá dài. */
.mt-ui .mt-mbar__price { min-width: 0; }
.mt-ui .mt-mbar__price b, .mt-ui .mt-mbar__price span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Dòng kết quả tìm kiếm trên điện thoại: giá xuống dưới tên để tên không bị ép 4–5 dòng. */
@media (max-width: 734px) {
  .mt-ui .mt-prow { grid-template-columns: 64px minmax(0, 1fr); gap: 6px 14px; align-items: start; }
  .mt-ui .mt-prow__img { grid-row: span 3; width: 64px; height: 64px; }
  .mt-ui .mt-prow__img img { width: 54px; height: 54px; }
  .mt-ui .mt-prow__price { grid-column: 2; text-align: left; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
  .mt-ui .mt-prow__price b { display: inline; }
  .mt-ui .mt-prow__act { grid-column: 2; margin-top: 6px; }
  .mt-ui .mt-prow--doc { grid-template-columns: 64px minmax(0, 1fr); }
}

/* Form giỏ: bỏ padding 15px 20px (Flatsome) để danh sách, mã giảm giá và bảng tổng tiền cùng mép với breadcrumb. */
.mt-ui .mt-cartwrap .woocommerce-cart-form { padding: 0; }

/* ---------- Form đánh giá sản phẩm (QA 2026-11-18) ---------- */
/* comments_template của Flatsome: lưới .row/.col, khung .has-border viền xanh, ô nhập 30px vuông. Đưa về kiểu form MTEE. */
/* Form đánh giá rộng hết khung trang: bỏ giới hạn 820px (độ dài dòng văn bản) của .mt-acc__body trong mt.css. */
.mt-ui .mt-pdp-reviews .mt-acc__body { max-width: none; }
.mt-ui .mt-pdp-reviews #reviews { display: block; max-width: none; margin: 0; }
.mt-ui .mt-pdp-reviews #reviews > .col { padding: 0; max-width: none; flex: none; }
/* Tiêu đề accordion đã ghi "(chưa có đánh giá)": ẩn tiêu đề "Đánh giá" lặp lại khi chưa có đánh giá nào. */
.mt-ui .mt-pdp-reviews #comments:has(.woocommerce-noreviews) .woocommerce-Reviews-title { display: none; }
.mt-ui .mt-pdp-reviews .woocommerce-Reviews-title { font-size: 19px; font-weight: 700; color: var(--mt-ink); margin: 0 0 12px; }
.mt-ui .mt-pdp-reviews .woocommerce-noreviews { margin: 0 0 16px; font-size: 15px; color: var(--mt-muted); }
.mt-ui .mt-pdp-reviews .review-form-inner { padding: 24px; border: 1px solid var(--mt-line); border-radius: 18px; box-shadow: none; background: #fff; }
.mt-ui .mt-pdp-reviews #review_form .comment-reply-title { display: block; margin: 0 0 18px; font-size: 17px; line-height: 1.35; letter-spacing: -.01em; }
.mt-ui .mt-pdp-reviews .comment-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 0; }
.mt-ui .mt-pdp-reviews .comment-form > * { margin: 0; padding: 0; min-width: 0; width: auto; }
.mt-ui .mt-pdp-reviews .comment-form > :is(.comment-notes, .comment-form-rating, .comment-form-comment, .comment-form-cookies-consent, .form-submit, .logged-in-as) { grid-column: 1 / -1; }
.mt-ui .mt-pdp-reviews .comment-form label { display: block; margin: 0 0 6px; font-size: 14px; font-weight: 600; color: var(--mt-ink); }
.mt-ui .mt-pdp-reviews .comment-form .required { color: #b42318; }
.mt-ui .mt-pdp-reviews .comment-form :is(input[type="text"], input[type="email"], input[type="url"], textarea) {
  box-sizing: border-box; width: 100%; height: 48px; margin: 0; padding: 0 16px; border: 1px solid var(--mt-line); border-radius: 12px;
  background: #fff; box-shadow: none; font-size: 16px; color: var(--mt-ink);
}
.mt-ui .mt-pdp-reviews .comment-form textarea { height: auto; min-height: 132px; padding: 12px 16px; resize: vertical; }
.mt-ui .mt-pdp-reviews .comment-form :is(input, textarea):focus { border-color: var(--mt-blue); box-shadow: 0 0 0 4px rgba(10, 110, 209, .12); outline: 0; }
.mt-ui .mt-pdp-reviews .comment-form-cookies-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.mt-ui .mt-pdp-reviews .comment-form-cookies-consent label { font-weight: 400; margin: 0; }
/* Chọn sao: WooCommerce/Flatsome in 5 mức riêng (★, ★★ … ★★★★★) ngăn bằng vạch. Đổi thành một hàng 5 sao:
   rê/chạm tới sao nào thì sáng tới sao đó, chọn xong giữ sáng tới sao đã chọn (class .selected/.active do JS WooCommerce gắn),
   kèm chữ mô tả mức. Thẻ <a> giữ nguyên nên tên đọc màn hình "1 trên 5 sao" và bàn phím vẫn dùng được. */
.mt-ui .mt-pdp-reviews { --mt-star-on: #ff9f0a; --mt-star-off: #d2d2d7; }
.mt-ui .mt-pdp-reviews p.stars { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 0; }
.mt-ui .mt-pdp-reviews p.stars > span { display: flex; flex-wrap: nowrap; gap: 2px; margin: 0 0 0 -6px; }
.mt-ui .mt-pdp-reviews p.stars a {
  display: grid; place-items: center; width: 44px; height: 44px; margin: 0; padding: 0; border: 0; border-radius: 12px;
  font-size: 0; line-height: 0; color: transparent; text-decoration: none; -webkit-tap-highlight-color: transparent;
}
.mt-ui .mt-pdp-reviews p.stars a + a { border-left: 0; }
.mt-ui .mt-pdp-reviews p.stars a::after {
  content: ""; display: block; width: 30px; height: 30px; margin: 0; background: var(--mt-star-off);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.6c.4 0 .8.2 1 .6l2.5 5.1 5.6.8c.9.1 1.3 1.2.6 1.9l-4 4 .9 5.6c.2.9-.8 1.6-1.6 1.2L12 19.1l-5 2.7c-.8.4-1.8-.3-1.6-1.2l.9-5.6-4-4c-.7-.7-.3-1.8.6-1.9l5.6-.8L11 3.2c.2-.4.6-.6 1-.6z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.6c.4 0 .8.2 1 .6l2.5 5.1 5.6.8c.9.1 1.3 1.2.6 1.9l-4 4 .9 5.6c.2.9-.8 1.6-1.6 1.2L12 19.1l-5 2.7c-.8.4-1.8-.3-1.6-1.2l.9-5.6-4-4c-.7-.7-.3-1.8.6-1.9l5.6-.8L11 3.2c.2-.4.6-.6 1-.6z'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: background-color .15s ease, transform .15s ease;
}
/* Đã chọn: sáng tới sao .active, các sao sau tắt. */
.mt-ui .mt-pdp-reviews p.stars.selected a::after { background: var(--mt-star-on); }
.mt-ui .mt-pdp-reviews p.stars.selected a.active ~ a::after { background: var(--mt-star-off); }
/* Rê chuột (chỉ thiết bị có hover): xem trước mức, thắng trạng thái đã chọn nhờ :not(#mt-x). */
@media (hover: hover) {
  .mt-ui .mt-pdp-reviews p.stars > span:hover:not(#mt-x) > a::after { background: var(--mt-star-on); }
  .mt-ui .mt-pdp-reviews p.stars > span:not(#mt-x) > a:hover ~ a::after { background: var(--mt-star-off); }
  .mt-ui .mt-pdp-reviews p.stars a:hover::after { transform: scale(1.12); }
}
.mt-ui .mt-pdp-reviews p.stars a:active::after { transform: scale(.92); }
.mt-ui .mt-pdp-reviews p.stars a:focus-visible { outline: 2px solid var(--mt-blue); outline-offset: -4px; }
/* Chữ mô tả mức: mặc định gợi ý, đổi theo sao đã chọn, rê chuột thì xem trước. */
.mt-ui .mt-pdp-reviews p.stars::after { content: "Chọn số sao"; font-size: 14px; color: var(--mt-muted); }
.mt-ui .mt-pdp-reviews p.stars:has(a.star-1.active)::after { content: "1/5 · Rất không hài lòng"; }
.mt-ui .mt-pdp-reviews p.stars:has(a.star-2.active)::after { content: "2/5 · Không hài lòng"; }
.mt-ui .mt-pdp-reviews p.stars:has(a.star-3.active)::after { content: "3/5 · Bình thường"; }
.mt-ui .mt-pdp-reviews p.stars:has(a.star-4.active)::after { content: "4/5 · Hài lòng"; }
.mt-ui .mt-pdp-reviews p.stars:has(a.star-5.active)::after { content: "5/5 · Rất hài lòng"; }
.mt-ui .mt-pdp-reviews p.stars.selected::after { font-weight: 600; color: var(--mt-ink); }
@media (hover: hover) {
  .mt-ui .mt-pdp-reviews p.stars:has(a.star-1:hover)::after { content: "1/5 · Rất không hài lòng"; }
  .mt-ui .mt-pdp-reviews p.stars:has(a.star-2:hover)::after { content: "2/5 · Không hài lòng"; }
  .mt-ui .mt-pdp-reviews p.stars:has(a.star-3:hover)::after { content: "3/5 · Bình thường"; }
  .mt-ui .mt-pdp-reviews p.stars:has(a.star-4:hover)::after { content: "4/5 · Hài lòng"; }
  .mt-ui .mt-pdp-reviews p.stars:has(a.star-5:hover)::after { content: "5/5 · Rất hài lòng"; }
}
@media (max-width: 734px) {
  .mt-ui .mt-pdp-reviews .review-form-inner { padding: 18px 16px; }
  .mt-ui .mt-pdp-reviews .comment-form { grid-template-columns: minmax(0, 1fr); }
}

/* Thông số kỹ thuật trang sản phẩm (QA 2026-11-18): một bảng rộng hết khung, đứng trước mô tả,
   không cột tiêu đề nhóm 280px ("Thông số chính") — cột tên thông số rộng vừa, cột giá trị lấy phần còn lại. */
.mt-ui .mt-specs--full .mt-specs__grp { display: block; padding: 4px 0; }
.mt-ui .mt-specs--full dl { grid-template-columns: minmax(200px, 1fr) 2.2fr; }
.mt-ui .mt-specs--full dt, .mt-ui .mt-specs--full dd { padding: 11px 0; }
@media (max-width: 734px) {
  .mt-ui .mt-specs--full dl { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); }
  .mt-ui .mt-specs--full dt { padding-right: 14px; }
}

/* Category description: full width, no side help card */
.mt-catseo .mt-seo--full { grid-template-columns: 1fr; }
.mt-catseo .mt-seo--full .mt-prose { max-width: none; margin: 0; }

/* PDP: so sánh trong dòng, cấu hình đi kèm, hỏi đáp */
.mt-ui .mt-pdp-compare .mt-two-tone { margin-bottom: 28px; }
.mt-ui .mt-compare { -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.mt-ui .mt-compare:focus-visible { outline: 2px solid var(--mt-blue); outline-offset: 4px; border-radius: var(--mt-r-md); }
.mt-ui .mt-compare--n2 table { min-width: 520px; }
.mt-ui .mt-compare--n3 table { min-width: 660px; }
.mt-ui .mt-compare--n4 table { min-width: 780px; }
.mt-ui .mt-compare thead td { vertical-align: top; }
.mt-ui .mt-compare thead b { line-height: 1.3; word-break: break-word; }
.mt-ui .mt-compare thead span { word-break: break-word; }
.mt-ui .mt-compare .mt-btn { margin: 0; }
.mt-ui .mt-compare td { word-break: break-word; line-height: 1.45; }
/* Flatsome đặt th { letter-spacing: .05em } cho chữ in hoa; nhãn ở đây viết thường nên bỏ giãn chữ */
.mt-ui .mt-compare tbody th { letter-spacing: 0; line-height: 1.35; }
.mt-ui .mt-compare tbody th, .mt-ui .mt-compare thead td:first-child { position: sticky; left: 0; z-index: 1; background: #fff; }
.mt-ui .mt-compare__note { margin: 16px 0 0; font-size: 14px; }
.mt-ui .mt-compare tbody td small { display: block; margin-top: 2px; font-size: 12.5px; line-height: 1.35; color: var(--mt-muted); }
@media (max-width: 734px) {
	.mt-ui .mt-compare table { min-width: calc(110px + 150px * var(--n, 4)); }
	.mt-ui .mt-compare--n2 { --n: 2; } .mt-ui .mt-compare--n3 { --n: 3; } .mt-ui .mt-compare--n4 { --n: 4; } .mt-ui .mt-compare--n5 { --n: 5; }
	.mt-ui .mt-compare tbody th { width: 110px; font-size: 13px; padding: 12px 10px 12px 0; box-shadow: 6px 0 8px -6px rgba(0,0,0,.12); }
	.mt-ui .mt-compare thead td:first-child { width: 110px; }
	.mt-ui .mt-compare th, .mt-ui .mt-compare td { padding: 12px 10px; font-size: 13px; }
	.mt-ui .mt-compare thead img { width: 88px; height: 88px; margin-bottom: 8px; }
	.mt-ui .mt-compare thead b { font-size: 15px; }
}
.mt-ui .mt-pdp-withs { padding-top: 0; }
.mt-ui .mt-pdp-withs .mt-two-tone { margin-bottom: 24px; }
.mt-ui .mt-inprods { display: grid; gap: 12px; }
@media (min-width: 900px) { .mt-ui .mt-inprods { grid-template-columns: 1fr 1fr; } }
.mt-ui .mt-inprod__img { display: block; line-height: 0; }
.mt-ui .mt-inprod__name { color: inherit; text-decoration: none; }
.mt-ui .mt-inprod__name:hover b { color: var(--mt-blue); }
.mt-ui .mt-inprod .mt-mono { display: block; margin-top: 2px; }
.mt-ui .mt-faq-wrap { max-width: 880px; }
.mt-ui .mt-faq-wrap .mt-pdp-h { margin-bottom: 16px; }
.mt-ui .mt-acc__body a { color: var(--mt-blue); }
.mt-ui .mt-compare thead b { font-family: var(--mt-mono, ui-monospace, SFMono-Regular, Menlo, monospace); font-size: 14px; letter-spacing: 0; }
.mt-ui .mt-compare thead span { min-height: 2.7em; margin: 4px 0 6px; color: var(--mt-ink); font-size: 13px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mt-ui .mt-compare__pr { display: block; font-style: normal; font-size: 13px; color: var(--mt-muted); margin-bottom: 12px; }
.mt-ui .mt-compare .is-me .mt-compare__pr { color: var(--mt-blue); font-weight: 600; margin-bottom: 0; }
@media (max-width: 734px) {
	/* Mã dài có dấu cách (Mitsubishi "NV125-HV 4P 100A 200-440V …") không được tràn sang cột bên: cắt "…", mã đầy đủ ở title; dòng nhãn bên dưới vẫn phân biệt phiên bản. */
	.mt-ui .mt-compare thead b { display: block; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
	.mt-ui .mt-compare thead span { font-size: 12.5px; }
}
/* Công tắc lọc nhanh (Chỉ hàng có sẵn / Có giá niêm yết) đầu cột bộ lọc. */
.mt-ui .mt-ftoggle { gap: 12px; cursor: pointer; margin: 0; }
.mt-ui .mt-ftoggle__t small { display: block; margin-top: 2px; font-size: 12.5px; font-weight: 400; color: var(--mt-muted); }
.mt-ui .mt-switch input:focus-visible + span { outline: 2px solid var(--mt-blue); outline-offset: 2px; }
.mt-ui .mt-ftoggles + .mt-fgroup, .mt-ui .mt-ftoggles + .mt-fcats { border-top: 0; }
/* Drawer bộ lọc đóng: ẩn hẳn (bóng -20px 60px của mt.css lộ ra mép phải, và các ô lọc vẫn nhận Tab). */
@media (max-width: 1068px) {
  .mt-ui .mt-filters { visibility: hidden; transition: transform .3s var(--mt-ease), visibility 0s linear .3s; }
  .mt-ui .mt-filters.is-open { visibility: visible; transition-delay: 0s; }
}
/* "Cấu hình đi kèm" trên mobile: nút nhỏ dưới giá thay vì nút full-width. */
@media (max-width: 734px) {
  .mt-ui .mt-inprod { grid-template-columns: 72px 1fr; gap: 6px 14px; padding: 14px; align-items: start; }
  .mt-ui .mt-inprod__img { grid-row: span 2; align-self: center; }
  .mt-ui .mt-inprod img { width: 72px; height: 72px; }
  .mt-ui .mt-inprod b { font-size: 15px; }
  .mt-ui .mt-inprod .mt-btn { grid-column: 2; justify-self: start; min-height: 34px; padding: 0 18px; font-size: 13px; }
}

/* ---- Logo hãng trên trang sản phẩm (content-single-product.php, inc/brands.php): logo dẫn về trang thương hiệu,
   bên cạnh là dòng sản phẩm (seri). --h là chiều cao theo thị giác do PHP tính. */
.mt-buy__brand { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 0 0 10px; }
.mt-buy__brandlink { display: inline-flex; align-items: center; min-height: 40px; border-radius: 8px; }
.mt-buy__brandlink:focus-visible { outline: 2px solid var(--mt-blue); outline-offset: 3px; }
.mt-buy__logo { display: block; width: auto; height: var(--h, 22px); max-width: 180px; object-fit: contain; object-position: left center; }
.mt-buy__brand .mt-buy__eyebrow { margin: 0; padding-left: 14px; border-left: 1px solid var(--mt-line-soft, #e5e5ea); line-height: 1.3; }
.mt-cathead__logo { display: block; width: auto; height: var(--h, 32px); max-width: min(260px, 70vw); margin: 0 0 16px; object-fit: contain; object-position: left center; }
@media (max-width: 734px) { .mt-cathead__logo { height: calc(var(--h, 32px) * .8); margin-bottom: 12px; } }

/* Khung mua: dòng chứng từ cạnh mã (mockup "CO/CQ đầy đủ"), nhóm liên kết phụ 3–4 mục không bẻ chữ. */
/* .product_meta của Flatsome đẩy chữ lên 17px; ghi chú chứng từ là dòng phụ nên giữ 14px, xám. */
.mt-ui .mt-buy__ids .mt-buy__papers { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; line-height: 1.4; color: var(--mt-muted); }
.mt-buy__papers .mt-ico { width: 15px; height: 15px; color: var(--mt-ok); }
/* Ảnh hãng (Mitsubishi, Schneider…) chừa nhiều nền trắng quanh thiết bị: ô 110px của mockup trông nhỏ, nâng lên 140px; cột 1024 vẫn đủ rộng (≈150px). */
.mt-ui .mt-compare thead img { width: 140px; height: 140px; max-width: 100%; margin-bottom: 10px; }
@media (max-width: 1068px) { .mt-ui .mt-compare thead img { width: 112px; height: 112px; } }
@media (max-width: 734px) { .mt-ui .mt-compare thead img { width: 88px; height: 88px; margin-bottom: 8px; } }
.mt-ui .mt-buy__ids .mt-buy__succ { font-size: 14px; }
.mt-ui .mt-buy__succ b { font-family: var(--mt-mono); font-weight: 600; font-size: 13px; }
/* Dòng tìm kiếm của mã ngừng sản xuất: chấm vàng + chữ như mockup. */
.mt-ui .mt-prow__meta--eol { display: flex; align-items: center; gap: 8px; color: var(--mt-ink); }
.mt-ui .mt-facets { display: flex; align-items: flex-start; gap: 12px; margin: 16px 0 4px; }
.mt-ui .mt-facets__l { flex: none; line-height: 32px; font-size: 13px; font-weight: 600; color: var(--mt-muted); }
.mt-ui .mt-facets__row { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.mt-ui .mt-facets .mt-chip { height: 32px; padding: 0 12px; font-size: 13.5px; }
.mt-ui .mt-chip__n { color: var(--mt-faint); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.mt-ui .mt-chip.is-active .mt-chip__n { color: rgba(255, 255, 255, .7); }
@media (max-width: 734px) {
  .mt-ui .mt-facets { display: block; margin: 12px -16px 4px; }
  .mt-ui .mt-facets__l { display: block; line-height: 1.4; padding: 0 16px 8px; }
  .mt-ui .mt-facets__row { flex-wrap: nowrap; overflow-x: auto; padding: 0 16px 4px; scrollbar-width: none; }
  .mt-ui .mt-facets__row::-webkit-scrollbar { display: none; }
}

/* ---------- Lưu so sánh: hộp thoại bảng so sánh đã lưu ---------- */
.mt-cmpdlg { width: min(1100px, calc(100vw - 48px)); max-height: calc(100dvh - 48px); padding: 0; border: 0; border-radius: var(--mt-r-md); background: var(--mt-bg); color: var(--mt-ink); box-shadow: 0 24px 64px rgba(0,0,0,.24); overflow: hidden; display: none; flex-direction: column; }
.mt-cmpdlg[open] { display: flex; }
.mt-cmpdlg::backdrop { background: rgba(0,0,0,.45); }
.mt-ui .mt-cmpdlg__head { display: flex; align-items: center; gap: 12px; padding: 16px 16px 0 24px; }
.mt-ui .mt-cmpdlg__head h2 { flex: 1; margin: 0; font-size: 21px; font-weight: 700; letter-spacing: -.015em; }
.mt-ui .mt-cmpdlg__clear { min-height: 40px; padding: 0 12px; border: 0; border-radius: var(--mt-pill); background: none; color: var(--mt-link); font: inherit; font-size: 14px; cursor: pointer; }
.mt-ui .mt-cmpdlg__clear:hover { background: var(--mt-bg-alt); }
.mt-ui .mt-cmpdlg__x { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--mt-bg-alt); color: var(--mt-ink); cursor: pointer; }
.mt-ui .mt-cmpdlg__x .mt-ico { width: 20px; height: 20px; }
.mt-ui .mt-cmpdlg__note { margin: 4px 24px 12px; font-size: 13px; color: var(--mt-muted); }
.mt-ui .mt-cmpdlg__body { overflow: auto; padding: 0 24px 24px; overscroll-behavior: contain; }
.mt-ui .mt-cmpdlg__load { padding: 32px 0; text-align: center; color: var(--mt-muted); }
.mt-cmpdlg.mt-ui .mt-compare { overflow: visible; }
.mt-cmpdlg.mt-ui .mt-compare thead td { position: sticky; top: 0; z-index: 2; background: var(--mt-bg); }
.mt-cmpdlg.mt-ui .mt-compare thead td:first-child { z-index: 3; }
.mt-cmpdlg.mt-ui .mt-compare__pr { display: block; margin: 0 0 10px; font-style: normal; font-weight: 600; font-size: 14px; }
.mt-ui .mt-cmpdlg__acts { display: flex !important; justify-content: center; gap: 4px; margin: 0 !important; }
.mt-ui .mt-cmpdlg__del { min-height: 36px; padding: 0 12px; border: 0; border-radius: var(--mt-pill); background: none; color: var(--mt-muted); font: inherit; font-size: 13.5px; cursor: pointer; }
.mt-ui .mt-cmpdlg__del:hover { background: var(--mt-bg-alt); color: var(--mt-sale); }
.mt-cmpdlg.mt-ui .mt-compare tr.is-diff td, .mt-cmpdlg.mt-ui .mt-compare tr.is-diff th { background: #fff8e6; }
.mt-cmpdlg.mt-ui .mt-compare tr.is-diff th { color: var(--mt-ink); }
.mt-ui [data-cmp-save][aria-pressed="true"] { color: var(--mt-ink); }
@media (max-width: 734px) {
  .mt-cmpdlg { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; border-radius: 0; }
  .mt-ui .mt-cmpdlg__head { padding: 8px 8px 0 16px; }
  .mt-ui .mt-cmpdlg__head h2 { font-size: 19px; }
  .mt-ui .mt-cmpdlg__note { margin: 4px 16px 8px; }
  .mt-ui .mt-cmpdlg__body { padding: 0 0 16px 16px; }
  .mt-cmpdlg.mt-ui .mt-compare { overflow-x: auto; }
}
@media print { .mt-cmpdlg { display: none !important; } }

/* ===== Khối mua: Gọi / Zalo thành nút (2026-11-19) =====
   Trước: Gọi, Zalo nằm lẫn trong 7 liên kết chữ cùng cỡ dưới nút báo giá, rồi lặp lại trong thẻ "Cần chọn mã".
   Nay: cặp nút liên hệ ngay dưới nút mua (màu riêng: xanh lá = gọi, xanh Zalo = chat), dòng giờ trực,
   rồi hàng công cụ phụ (Datasheet, So sánh, In) dạng icon + chữ màu trung tính. */

/* .mt-cbtn và .mt-ui [hidden] dùng ở mọi trang (menu mega, trang chủ, báo giá): nằm cuối glue.css. */
.mt-buy__contact { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.mt-ui .mt-buy__hours { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; gap: 6px; margin: 2px 0 0; font-size: 13px; color: var(--mt-muted); }
.mt-ui .mt-buy__hours .mt-ico { width: 15px; height: 15px; }

.mt-buy__tools { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 6px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--mt-line-soft); }
.mt-ui .mt-tool {
  display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 0 12px; margin: 0;
  border: 0; border-radius: var(--mt-pill); background: none; box-shadow: none;
  font: inherit; font-size: 14px; font-weight: 500; line-height: 1; letter-spacing: normal; text-transform: none;
  color: var(--mt-ink); text-decoration: none; cursor: pointer; white-space: nowrap;
}
.mt-ui .mt-tool:hover, .mt-ui .mt-tool:focus { background: var(--mt-bg-alt); color: var(--mt-ink); text-decoration: none; }
.mt-ui .mt-tool:focus-visible { outline: 2px solid var(--mt-blue); outline-offset: 2px; }
.mt-ui .mt-tool .mt-ico { width: 17px; height: 17px; color: var(--mt-muted); }
.mt-ui .mt-tool[aria-pressed="true"] { background: var(--mt-blue-soft); color: var(--mt-link); }
.mt-ui .mt-tool[aria-pressed="true"] .mt-ico { color: var(--mt-link); }
/* "Hỏi AI" nổi hơn các công cụ khác một chút: chữ và icon màu xanh. */
.mt-ui .mt-tool--ai, .mt-ui .mt-tool--ai:hover, .mt-ui .mt-tool--ai:focus { color: var(--mt-link); }
.mt-ui .mt-tool--ai .mt-ico { color: var(--mt-blue); }
.mt-ui .mt-tool--ai:hover { background: var(--mt-blue-soft); }
@media (pointer: coarse) { .mt-ui .mt-tool { min-height: 44px; } }
/* Màn ≤430px: 3 công cụ (Datasheet · Lưu so sánh · In) vừa một hàng thay vì rớt "In" xuống dòng 2. */
@media (max-width: 430px) {
  .mt-buy__tools { gap: 2px; }
  .mt-ui .mt-tool { gap: 5px; padding: 0 8px; font-size: 13.5px; }
  .mt-ui .mt-tool .mt-ico { width: 16px; height: 16px; }
}

/* Thanh mua cố định (điện thoại): [Gọi][Zalo] giá [nút mua]. */
@media (max-width: 734px) {
  .mt-ui .mt-mbar { gap: 10px; padding-left: 12px; padding-right: 12px; }
  .mt-mbar__contact { display: flex; gap: 6px; }
  .mt-ui .mt-mbar__ic {
    width: 46px; height: 46px; border-radius: var(--mt-r-sm); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
    font-size: 10.5px; font-weight: 600; line-height: 1; text-decoration: none;
  }
  .mt-ui .mt-mbar__ic .mt-ico { width: 20px; height: 20px; stroke-width: 1.8; }
  .mt-ui .mt-mbar__ic--call { background: #ebf7ef; color: #00701a; }
  .mt-ui .mt-mbar__ic--call .mt-ico { color: #00891f; }
  .mt-ui .mt-mbar__ic--zalo { background: #ebf2ff; color: #0050c8; }
  .mt-ui .mt-mbar__ic--zalo .mt-ico { color: #0068ff; }
  .mt-ui .mt-mbar__price b { font-size: 15.5px; }
  .mt-ui .mt-mbar .mt-btn { padding: 0 16px; font-size: 15px; }
}

/* Giỏ hàng: nút Gọi/Zalo nổi bị ẩn ở trang có form (che ô nhập), nên đặt cặp nút liên hệ ngay dưới nút thanh toán
   và trong giỏ trống. Dùng chung .mt-cbtn ở khối mua trang sản phẩm. */
.mt-bag-help { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--mt-line-soft); }
.mt-ui .mt-bag-help__h { margin: 0 0 10px; font-size: 14px; font-weight: 600; color: var(--mt-ink); }
.mt-bag-help__btns { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.mt-bag-help--empty { width: min(100%, 480px); margin: 28px auto 0; text-align: left; }
.mt-bag-help--empty .mt-bag-help__h { text-align: center; }

/* Hỏi đáp riêng của sản phẩm: mã hàng (span.mt-code do content-single-product.php bọc, 5–24 ký tự) không ngắt giữa mã ở màn hẹp. */
.mt-acc .mt-code { white-space: nowrap; }

/* Thân trang rộng 1440px (glue.css): lưới sản phẩm ở trang danh mục/tìm kiếm lên 4 cột khi đủ chỗ,
   để thẻ giữ cỡ ~255–270px như thiết kế thay vì phình lên ~370px. */
@media (min-width: 1400px) {
  .mt-ui .mt-results > .mt-grid--3.products { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Tên sản phẩm (mt.css: clamp(30px, 3vw, 40px)) dài nên chiếm 3 dòng; nhỏ lại để gọn 2 dòng trên desktop. */
.mt-ui .mt-buy h1 { font-size: clamp(24px, 2.2vw, 32px); line-height: 1.18; letter-spacing: -.02em; }

/* ---------- Trang thương hiệu /brand/{slug}/ (inc/brand-page.php) ---------- */
.mt-bhero {
  --bc: var(--mt-brand);
  position: relative; display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(300px, 1fr); gap: 40px;
  margin: 18px 0 0; padding: 44px; border-radius: var(--mt-r-lg); overflow: hidden; isolation: isolate;
  background: var(--mt-bg-alt);
}
.mt-bhero::before {
  content: ""; position: absolute; z-index: -1; inset: -40% -20% auto auto; width: 70%; aspect-ratio: 1;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--bc) 16%, transparent), transparent);
  pointer-events: none;
}
.mt-bhero__main { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.mt-bhero__logobox {
  display: grid; place-items: center; min-width: 120px; height: 76px; padding: 0 24px; margin-bottom: 24px;
  background: #fff; border-radius: var(--mt-r-sm); box-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 0 0 1px var(--mt-line-soft);
}
.mt-bhero__logo { display: block; width: auto; height: var(--h, 40px); max-width: 200px; max-height: 40px; object-fit: contain; }
.mt-bhero .mt-eyebrow { margin: 0 0 6px; }
.mt-bhero h1 { margin: 0; }
.mt-bhero__lead { margin: 16px 0 0; max-width: 620px; font-size: 18px; line-height: 1.55; color: var(--mt-muted); letter-spacing: -.01em; }
.mt-bhero__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.mt-bhero__side { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.mt-bhero__facts {
  display: grid; grid-template-columns: 1fr 1fr; margin: 0; background: #fff; border-radius: var(--mt-r-md);
  box-shadow: 0 0 0 1px var(--mt-line-soft); overflow: hidden;
}
.mt-bhero__facts > div { padding: 16px 18px; border-bottom: 1px solid var(--mt-line-soft); min-width: 0; }
.mt-bhero__facts > div:nth-child(odd) { border-right: 1px solid var(--mt-line-soft); }
.mt-bhero__facts > div:nth-last-child(-n+2):nth-child(odd), .mt-bhero__facts > div:last-child { border-bottom: 0; }
.mt-bhero__facts > div:last-child:nth-child(odd) { grid-column: 1 / -1; border-right: 0; }
.mt-bhero__facts dt, .mt-bhero__facts dd { display: block; float: none; text-transform: none; }
.mt-bhero__facts dt { font-size: 12.5px; font-weight: 500; color: var(--mt-muted); letter-spacing: 0; }
.mt-bhero__facts dd { margin: 4px 0 0; font-size: 16px; font-weight: 600; line-height: 1.3; color: var(--mt-ink); letter-spacing: -.01em; overflow-wrap: anywhere; }
.mt-bhero__facts > div:first-child dd { font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--bc); }
.mt-bhero__trust { display: grid; gap: 2px; margin: 0; padding: 6px; list-style: none; background: rgba(255, 255, 255, .6); border-radius: var(--mt-r-md); }
.mt-bhero__trust li { display: flex; align-items: center; gap: 12px; padding: 8px 10px; margin: 0; font-size: 13.5px; line-height: 1.35; color: var(--mt-muted); }
.mt-bhero__trust .mt-ico { flex: none; width: 20px; height: 20px; color: var(--mt-blue); }
.mt-bhero__trust b { display: block; font-size: 14px; font-weight: 600; color: var(--mt-ink); }

.mt-bcats { margin-top: 44px; }
.mt-bcats__h { margin: 0; font-size: 21px; font-weight: 700; letter-spacing: -.015em; color: var(--mt-ink); }
.mt-bcats .mt-subcats { margin-top: 14px; }

.mt-bbody { margin-top: 64px; }
.mt-blines h2 { margin: 0 0 28px; }
.mt-blines__grid { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.mt-blines__grid li { position: relative; margin: 0; padding: 22px 22px 24px; background: #fff; border-radius: var(--mt-r-md); transition: box-shadow .25s var(--mt-ease), transform .25s var(--mt-ease); }
.mt-blines__grid li:hover { box-shadow: var(--mt-shadow); transform: translateY(-2px); }
.mt-blines__n { display: block; margin-bottom: 14px; font-family: var(--mt-mono); font-size: 12px; font-weight: 600; color: var(--mt-blue); }
.mt-blines__grid b { display: block; font-size: 17px; line-height: 1.3; font-weight: 700; letter-spacing: -.015em; color: var(--mt-ink); }
.mt-blines__grid p { margin: 8px 0 0; font-size: 14.5px; line-height: 1.5; color: var(--mt-muted); }
.mt-bstory { margin-top: 0; }
.mt-blines + .mt-bstory { margin-top: 64px; padding-top: 56px; border-top: 1px solid var(--mt-line); }
.mt-bstory .mt-prose { max-width: 820px; }
.mt-bstory .mt-seo__text h2 { font-size: clamp(24px, 2.4vw, 30px); line-height: 1.15; letter-spacing: -.02em; }
.mt-bstory .mt-seo__text h2:not(:first-child) { margin-top: 34px; }
.mt-bstory .mt-seo__text ul { margin: 12px 0 0; padding-left: 20px; }
.mt-bstory .mt-seo__text li + li { margin-top: 6px; }
.mt-bstory .mt-seo__text a { color: var(--mt-link); }
.mt-bstory .mt-seo__text:not(.is-open) { max-height: 520px; }

.mt-bfaq__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.8fr); gap: 56px; align-items: start; }
.mt-bfaq__head { position: sticky; top: calc(var(--mt-nav-h) + 24px); }
.mt-bfaq__head h2 { margin: 6px 0 14px; }
.mt-bfaq__head .mt-muted { margin: 0 0 20px; font-size: 15px; line-height: 1.5; }
.mt-bfaq .mt-acc summary { font-size: 17px; }
.mt-bfaq .mt-acc__body p { margin: 0; }
.mt-bfaq .mt-acc__body p + p { margin-top: 10px; }

@media (max-width: 960px) {
  .mt-bhero { grid-template-columns: 1fr; gap: 28px; padding: 32px; }
  .mt-blines__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mt-bfaq__grid { grid-template-columns: 1fr; gap: 24px; }
  .mt-bfaq__head { position: static; }
}
@media (max-width: 734px) {
  .mt-bhero { margin: 10px calc(-1 * var(--mt-gutter)) 0; padding: 28px var(--mt-gutter); border-radius: 0; }
  .mt-bhero__logobox { height: 68px; min-width: 100px; padding: 0 16px; margin-bottom: 20px; }
  .mt-bhero__logo { max-height: 40px; max-width: 180px; }
  .mt-bhero__lead { font-size: 16px; }
  .mt-bhero__cta { width: 100%; }
  .mt-bhero__cta .mt-btn { flex: 1 1 auto; }
  .mt-bhero__facts dd { font-size: 15px; }
  .mt-bhero__facts > div:first-child dd { font-size: 21px; }
  /* Mobile: 3 cam kết thành một hàng gọn, chỉ giữ tiêu đề để sản phẩm lên sớm hơn */
  .mt-bhero__trust { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 4px; }
  .mt-bhero__trust li { flex-direction: column; gap: 6px; padding: 10px 4px; text-align: center; font-size: 0; }
  .mt-bhero__trust b { font-size: 12.5px; line-height: 1.3; }
  .mt-bcats { margin-top: 32px; }
  .mt-blines__grid { grid-template-columns: 1fr; }
  .mt-bbody { margin-top: 40px; }
  .mt-blines + .mt-bstory { margin-top: 40px; padding-top: 36px; }
}
