/*
Theme Name: BomPro
Theme URI: https://example.com/bompro
Author: BomPro
Description: Theme cho doanh nghiệp nhập khẩu, phân phối máy bơm và thiết bị xử lý nước: danh mục sản phẩm có bảng thông số, công cụ chọn bơm theo lưu lượng và cột áp, form tư vấn lưu yêu cầu vào trang quản trị, nút gọi và Zalo, trang giới thiệu, hồ sơ năng lực, liên hệ nhiều chi nhánh.
Version: 1.0.0
Requires at least: 6.3
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bompro
Tags: e-commerce, custom-menu, custom-logo, featured-images, translation-ready
*/

/* ------------------------------------------------------------------
   Tokens
   Xanh RAL 5010 là màu sơn động cơ bơm công nghiệp; cam dùng riêng cho
   hành động liên hệ/báo giá để khách luôn biết bấm vào đâu.
------------------------------------------------------------------- */
:root {
	--ink: #15222c;
	--ink-2: #4b5b67;
	--ink-3: #74838e;
	--paper: #ffffff;
	--tint: #eef2f5;
	--line: #d5dce2;
	--line-2: #e6ebef;
	--blue: #0e4c92;
	--blue-d: #0a3970;
	--blue-dd: #072a54;
	--blue-l: #e4edf7;
	--orange: #e8590c;
	--orange-d: #c24808;
	--zalo: #0068ff;
	--ok: #1d7a4b;
	--warn: #a15c00;
	--f-body: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--f-head: "Barlow Condensed", "Barlow", system-ui, sans-serif;
	--r-s: 3px;
	--r-m: 6px;
	--wrap: 1240px;
	--gut: 16px;
}

/* ------------------------------------------------------------------
   Base
------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--f-body);
	font-size: 17px;
	line-height: 1.6;
	color: var(--ink);
	background: var(--paper);
	font-feature-settings: "tnum" 0;
}
img, svg, video, iframe { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--blue); text-underline-offset: .18em; }
a:hover { color: var(--blue-d); }
h1, h2, h3, h4 { font-family: var(--f-head); line-height: 1.12; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.005em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
abbr[title] { text-decoration: none; color: var(--orange); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.wrap--text { max-width: 820px; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: 8px; top: -60px; z-index: 1000; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: var(--r-s); }
.skip-link:focus { top: 8px; color: #fff; }

.icon { flex: none; vertical-align: middle; }
[hidden] { display: none !important; }

/* ------------------------------------------------------------------
   Buttons
------------------------------------------------------------------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 46px; padding: 10px 20px;
	border: 2px solid transparent; border-radius: var(--r-s);
	font-family: var(--f-body); font-weight: 600; font-size: 16px; line-height: 1.2;
	text-decoration: none; cursor: pointer; text-align: center;
	transition: background-color .15s, border-color .15s, color .15s;
}
.btn--accent { background: var(--orange); color: #fff; }
.btn--accent:hover { background: var(--orange-d); color: #fff; }
.btn--blue { background: var(--blue); color: #fff; }
.btn--blue:hover { background: var(--blue-d); color: #fff; }
.btn--ghost { border-color: var(--blue); color: var(--blue); background: transparent; }
.btn--ghost:hover { background: var(--blue-l); color: var(--blue-d); }
.btn--light { background: #fff; color: var(--blue-d); }
.btn--light:hover { background: var(--blue-l); color: var(--blue-dd); }
.btn--block { display: flex; width: 100%; }

/* ------------------------------------------------------------------
   Top bar + masthead
------------------------------------------------------------------- */
.topbar { background: var(--ink); color: #b9c5ce; font-size: 14px; }
.topbar__in { display: flex; gap: 24px; align-items: center; min-height: 36px; flex-wrap: wrap; }
.topbar__item { display: inline-flex; gap: 6px; align-items: center; color: inherit; text-decoration: none; }
.topbar a { color: #e5ecf1; }
.topbar a:hover { color: #fff; }
.topbar__mail { margin-left: auto; }

.masthead { background: #fff; border-bottom: 1px solid var(--line-2); }
.masthead__in { display: grid; grid-template-columns: auto minmax(240px, 1fr) auto; gap: 32px; align-items: center; min-height: 84px; }
.navtoggle { display: none; background: none; border: 0; padding: 8px; margin-left: -8px; cursor: pointer; color: var(--ink); }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand__mark { display: block; width: 44px; height: 44px; }
.brand__mark svg { width: 100%; height: 100%; }
.brand__text { display: flex; flex-direction: column; }
.brand__name { font-family: var(--f-head); font-weight: 700; font-size: 26px; line-height: 1; color: var(--blue-d); letter-spacing: .01em; }
.brand__tag { font-size: 13px; color: var(--ink-2); margin-top: 4px; }
.custom-logo-link img { max-height: 64px; width: auto; }

.search { display: flex; max-width: 560px; width: 100%; justify-self: center; }
.search input {
	flex: 1; min-width: 0; height: 46px; padding: 0 14px;
	border: 2px solid var(--line); border-right: 0; border-radius: var(--r-s) 0 0 var(--r-s); background: #fff;
}
.search input:focus { outline: none; border-color: var(--blue); }
.search button {
	width: 52px; border: 0; border-radius: 0 var(--r-s) var(--r-s) 0;
	background: var(--blue); color: #fff; cursor: pointer; display: grid; place-items: center;
}
.search button:hover { background: var(--blue-d); }

.hotline { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.hotline__icon { width: 44px; height: 44px; border-radius: 50%; background: var(--orange); color: #fff; display: grid; place-items: center; }
.hotline__text { display: flex; flex-direction: column; line-height: 1.15; }
.hotline__label { font-size: 13px; color: var(--ink-2); }
.hotline__num { font-family: var(--f-head); font-weight: 700; font-size: 26px; color: var(--orange-d); font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.hotline:hover .hotline__num { color: var(--orange); }

/* ------------------------------------------------------------------
   Main nav
------------------------------------------------------------------- */
.mainnav { background: var(--blue); color: #fff; position: sticky; top: 0; z-index: 50; }
.mainnav__in { display: flex; align-items: stretch; min-height: 50px; }
.catmenu { position: relative; }
.catmenu__btn {
	height: 100%; min-height: 50px; display: flex; align-items: center; gap: 10px;
	padding: 0 18px; border: 0; background: var(--blue-dd); color: #fff; font-weight: 600; cursor: pointer; width: 270px; white-space: nowrap;
}
.catmenu__btn .icon-down { margin-left: auto; transition: transform .15s; }
.catmenu__btn[aria-expanded="true"] .icon-down { transform: rotate(180deg); }
.catmenu__panel {
	position: absolute; left: 0; top: 100%; width: min(900px, calc(100vw - 32px));
	background: #fff; color: var(--ink); border: 1px solid var(--line); border-top: 0;
	box-shadow: 0 20px 40px -20px rgba(7, 42, 84, .45); padding: 20px 24px 16px; z-index: 60;
}
.catmenu__panel .cat-tree { columns: 3 220px; column-gap: 28px; }
.catmenu__panel .cat-tree > li { break-inside: avoid; margin-bottom: 14px; }
.catmenu__panel .cat-tree > li > a { font-family: var(--f-head); font-weight: 600; font-size: 19px; color: var(--blue-d); }
.catmenu__panel .cat-tree ul { display: block; }
.catmenu__all { display: inline-block; margin-top: 4px; font-weight: 600; }

.mainnav .menu { display: flex; list-style: none; flex-wrap: wrap; }
.mainnav .menu > li { position: relative; }
.mainnav .menu > li > a {
	display: flex; align-items: center; height: 100%; min-height: 50px; padding: 0 18px;
	color: #fff; text-decoration: none; font-weight: 500;
}
.mainnav .menu > li > a:hover,
.mainnav .menu > li.current-menu-item > a,
.mainnav .menu > li.current-menu-ancestor > a,
.mainnav .menu > li.current_page_item > a { background: var(--blue-d); }
.mainnav .sub-menu {
	position: absolute; left: 0; top: 100%; min-width: 240px; list-style: none;
	background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--orange);
	box-shadow: 0 16px 32px -16px rgba(7, 42, 84, .45);
	padding: 6px 0; opacity: 0; visibility: hidden; transform: translateY(4px); transition: opacity .12s, transform .12s, visibility 0s .12s;
}
.mainnav .menu > li:hover > .sub-menu,
.mainnav .menu > li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.mainnav .sub-menu a { display: block; padding: 9px 16px; color: var(--ink); text-decoration: none; }
.mainnav .sub-menu a:hover { background: var(--tint); color: var(--blue-d); }

.cat-tree { list-style: none; }
.cat-tree a { text-decoration: none; color: var(--ink); }
.cat-tree a:hover { color: var(--blue); }
.cat-tree ul { list-style: none; }
.cat-tree ul a { color: var(--ink-2); font-size: 15px; display: block; padding: 2px 0; }

/* Drawer (mobile) */
.drawer {
	position: fixed; inset: 0 auto 0 0; width: min(360px, 88vw); z-index: 200;
	background: #fff; overflow-y: auto; padding: 0 16px 32px;
	box-shadow: 0 0 0 100vmax rgba(10, 25, 40, .5);
}
.drawer[hidden] { display: none; }
.drawer__head { display: flex; justify-content: space-between; align-items: center; height: 60px; border-bottom: 1px solid var(--line-2); margin-bottom: 14px; }
.drawer__title { font-family: var(--f-head); font-size: 22px; font-weight: 700; }
.drawer__close { background: none; border: 0; padding: 8px; margin-right: -8px; cursor: pointer; }
.drawer .search { margin-bottom: 12px; }
.drawer__menu { list-style: none; display: block; }
.drawer__menu li { border-bottom: 1px solid var(--line-2); }
.drawer__menu a { display: block; padding: 12px 0; color: var(--ink); text-decoration: none; font-weight: 600; }
.drawer__menu .sub-menu { list-style: none; padding-left: 14px; }
.drawer__menu .sub-menu li { border: 0; }
.drawer__menu .sub-menu a { font-weight: 400; padding: 6px 0; color: var(--ink-2); }
.drawer__label { margin: 22px 0 8px; font-weight: 600; color: var(--ink-3); font-size: 14px; }
.drawer .cat-tree > li { padding: 8px 0; border-bottom: 1px solid var(--line-2); }
.drawer .cat-tree > li > a { font-weight: 600; }
.drawer .cat-tree ul { padding: 4px 0 0 14px; }
.drawer .cat-tree__n { display: none; }
body.drawer-open { overflow: hidden; }

/* ------------------------------------------------------------------
   Hero: giấy kẻ ô bản vẽ kỹ thuật + công cụ chọn điểm làm việc
------------------------------------------------------------------- */
.hero {
	color: #fff;
	background-color: var(--blue);
	background-image:
		linear-gradient(rgba(255,255,255,.09) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255,255,255,.09) 1px, transparent 1px),
		linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px),
		linear-gradient(160deg, var(--blue) 0%, var(--blue-dd) 100%);
	background-size: 140px 140px, 140px 140px, 28px 28px, 28px 28px, auto;
	background-position: -1px -1px;
	scroll-margin-top: 60px;
}
.hero__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: 56px; align-items: center; padding-top: 56px; padding-bottom: 64px; }
.hero__title { font-size: clamp(40px, 5.4vw, 64px); line-height: 1.02; margin-bottom: 20px; max-width: 13ch; font-weight: 700; }
.hero__text { font-size: 19px; color: #d6e3f1; max-width: 46ch; margin-bottom: 26px; }
.hero__points { list-style: none; display: grid; gap: 10px; margin-bottom: 32px; }
.hero__points li { display: flex; gap: 10px; align-items: flex-start; color: #eef4fa; }
.hero__points .icon { color: #ffb38a; margin-top: 3px; }
.hero__actions { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.hero__call { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-family: var(--f-head); font-size: 24px; font-weight: 600; text-decoration: none; font-variant-numeric: tabular-nums; }
.hero__call:hover { color: #ffd2b8; }

.hero__panel {
	background: #fff; color: var(--ink); border-radius: var(--r-m);
	box-shadow: 0 30px 60px -28px rgba(0, 10, 30, .75);
	padding: 22px 22px 24px;
}

/* ------------------------------------------------------------------
   Forms
------------------------------------------------------------------- */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field__label { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.field input, .field select, .field textarea {
	width: 100%; min-height: 44px; padding: 9px 12px;
	border: 1.5px solid var(--line); border-radius: var(--r-s); background: #fff;
}
.field textarea { min-height: 84px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-l); }
.field input[readonly] { background: var(--tint); color: var(--ink-2); }
.unit { display: flex; }
.unit input { border-radius: var(--r-s) 0 0 var(--r-s); font-variant-numeric: tabular-nums; font-weight: 600; }
.unit span {
	display: grid; place-items: center; padding: 0 10px; min-width: 56px;
	border: 1.5px solid var(--line); border-left: 0; border-radius: 0 var(--r-s) var(--r-s) 0;
	background: var(--tint); font-size: 14px; color: var(--ink-2);
}

.lead { position: relative; }
.lead__msg { display: flex; gap: 8px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r-s); font-weight: 500; margin-bottom: 16px; }
.lead__msg--ok { background: #e3f3ea; color: var(--ok); border-left: 4px solid var(--ok); }
.lead__msg--err { background: #fdf0e6; color: #8a3a06; border-left: 4px solid var(--orange); }
.lead__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 18px; }
.field--wide { grid-column: 1 / -1; }
.lead__alt { margin: 12px 0 0; text-align: center; font-size: 15px; color: var(--ink-2); }
.lead__alt a { font-weight: 700; }

.duty__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.duty__title { font-size: 24px; margin: 0; color: var(--blue-d); }
.duty__hint { font-size: 14px; color: var(--ink-3); margin: 0; }
.duty__inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.duty__chart { margin: 14px 0 8px; height: 210px; border: 1px solid var(--line-2); border-radius: var(--r-s); background: #fbfcfd; touch-action: none; }
.duty__chart svg { width: 100%; height: 100%; display: block; }
.duty__chart .g-grid { stroke: var(--line-2); stroke-width: 1; }
.duty__chart .g-axis { stroke: var(--ink-3); stroke-width: 1.2; }
.duty__chart .g-tick { fill: var(--ink-3); font-size: 11px; font-family: var(--f-body); font-variant-numeric: tabular-nums; }
.duty__chart .g-unit { fill: var(--ink-2); font-size: 11px; font-weight: 600; font-family: var(--f-body); }
.duty__chart .g-curve { fill: none; stroke: var(--blue); stroke-width: 2.6; }
.duty__chart .g-guide { stroke: var(--orange); stroke-width: 1.2; stroke-dasharray: 4 4; }
.duty__chart .g-point { fill: var(--orange); stroke: #fff; stroke-width: 3; cursor: grab; }
.duty__chart .g-hit { fill: transparent; cursor: grab; }
.duty__chart.is-drag .g-point, .duty__chart.is-drag .g-hit { cursor: grabbing; }
.duty__chart .g-label { fill: var(--orange-d); font-size: 12px; font-weight: 700; font-family: var(--f-body); font-variant-numeric: tabular-nums; }
.duty__read { display: grid; grid-template-columns: auto 1fr; border: 1px solid var(--line); border-radius: var(--r-s); margin: 0 0 8px; }
.duty__read > div { padding: 8px 12px; }
.duty__read > div + div { border-left: 1px solid var(--line); }
.duty__read dt { font-size: 13px; color: var(--ink-3); }
.duty__read dd { margin: 0; font-weight: 700; font-size: 17px; font-variant-numeric: tabular-nums; }
.duty__read dd a { text-decoration: none; }
.duty__note { font-size: 13px; color: var(--ink-3); line-height: 1.45; margin-bottom: 16px; }
.lead__contact { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; border-top: 1px dashed var(--line); padding-top: 16px; }
.lead__contact .btn { grid-column: 1 / -1; }

/* ------------------------------------------------------------------
   Sections
------------------------------------------------------------------- */
.band { padding: 56px 0; }
.band--tint { background: var(--tint); }
.band--tight { padding: 32px 0; border-top: 1px solid var(--line-2); }
.band--flush { padding-top: 32px; }
.band__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 24px; }
.band__title { font-size: clamp(28px, 3vw, 38px); margin: 0; color: var(--ink); }
.band__title--sm { font-size: 22px; margin-bottom: 16px; color: var(--ink-2); }
.band__more { font-weight: 600; white-space: nowrap; }
.section-title { font-size: 26px; margin: 0 0 14px; }

/* Category tiles */
.cats { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.cat { display: grid; grid-template-columns: 96px 1fr; gap: 16px; padding: 18px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.cat:hover { background: #fafcfd; }
.cat__img { display: grid; place-items: center; width: 96px; height: 96px; background: var(--tint); border-radius: var(--r-s); overflow: hidden; color: var(--ink-3); }
.cat__img img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.cat__img .ph svg { width: 56px; height: 56px; }
.cat__name { font-size: 22px; margin: 2px 0 6px; }
.cat__name a { color: var(--ink); text-decoration: none; }
.cat__name a:hover { color: var(--blue); }
.cat__children { list-style: none; display: grid; gap: 1px; font-size: 15px; }
.cat__children a { color: var(--ink-2); text-decoration: none; }
.cat__children a:hover { color: var(--blue); text-decoration: underline; }
.cat__desc { font-size: 15px; color: var(--ink-2); margin: 0; }

/* Product grid */
.pgrid { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.shop .pgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pcard { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; transition: border-color .15s; }
.pcard:hover { border-color: var(--blue); }
.pcard__img { display: grid; place-items: center; aspect-ratio: 1 / 1; background: #fff; padding: 14px; border-bottom: 1px solid var(--line-2); color: var(--line); }
.pcard__img img { width: 100%; height: 100%; object-fit: contain; }
.ph { display: grid; place-items: center; width: 100%; height: 100%; color: #b7c3cc; background: repeating-linear-gradient(45deg, transparent 0 10px, rgba(14,76,146,.04) 10px 11px); }
.pcard__body { display: flex; flex-direction: column; flex: 1; padding: 14px 14px 12px; }
.pcard__brand { font-size: 13px; font-weight: 600; color: var(--blue); }
.pcard__title { font-family: var(--f-body); font-size: 17px; font-weight: 600; line-height: 1.35; margin: 2px 0 10px; letter-spacing: 0; }
.pcard__title a { color: var(--ink); text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard__title a:hover { color: var(--blue); }
.pcard__specs { display: grid; margin: 0 0 12px; border-top: 1px solid var(--line-2); }
.pcard__specs > div { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 4px 0; border-bottom: 1px solid var(--line-2); min-width: 0; }
.pcard__specs dt { font-size: 14px; color: var(--ink-3); white-space: nowrap; }
.pcard__specs dd { margin: 0; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.pcard__foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.pcard__price { font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.pcard__price.is-contact { color: var(--orange-d); }
.pcard__quote { font-size: 14px; font-weight: 600; color: var(--orange-d); text-decoration: none; border: 1.5px solid currentColor; border-radius: var(--r-s); padding: 4px 10px; white-space: nowrap; }
.pcard__quote:hover { background: var(--orange); border-color: var(--orange); color: #fff; }

/* Applications table */
.uses { border-top: 2px solid var(--ink); }
.uses__row { display: grid; grid-template-columns: 260px minmax(0, 1fr) minmax(0, 1.1fr); gap: 24px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: start; }
.uses__row--head { padding: 10px 0; font-size: 14px; font-weight: 600; color: var(--ink-3); }
.uses__name { font-size: 21px; margin: 0; }
.uses__desc { margin: 0; color: var(--ink-2); font-size: 16px; }
.uses__cats { display: flex; flex-wrap: wrap; gap: 6px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chip {
	display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; min-height: 34px;
	border: 1px solid var(--line); border-radius: 999px; background: #fff;
	color: var(--ink); font-size: 15px; text-decoration: none; line-height: 1.2;
}
.chip span { color: var(--ink-3); font-size: 13px; font-variant-numeric: tabular-nums; }
.chip:hover { border-color: var(--blue); color: var(--blue); }
.chip.is-on { background: var(--blue); border-color: var(--blue); color: #fff; }

/* About strip */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.about__copy p { color: var(--ink-2); font-size: 18px; max-width: 52ch; }
.about__copy .band__title { margin-bottom: 14px; }
.about__links { display: flex; gap: 12px; flex-wrap: wrap; }
.plate { display: grid; grid-template-columns: 1fr 1fr; margin: 0; background: #fff; border: 2px solid var(--ink); border-radius: var(--r-s); }
.plate > div { padding: 16px 18px; border-bottom: 1px solid var(--line); }
.plate > div:nth-child(odd) { border-right: 1px solid var(--line); }
.plate > div:nth-last-child(-n+2):nth-child(odd), .plate > div:last-child { border-bottom: 0; }
.plate dt { font-size: 14px; color: var(--ink-3); }
.plate dd { margin: 0; font-family: var(--f-head); font-size: 44px; font-weight: 700; line-height: 1.05; color: var(--blue-d); font-variant-numeric: tabular-nums; }
.plate dd small { font-size: 20px; font-weight: 600; color: var(--ink-2); }

/* Brands */
.brands { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.brands a {
	display: grid; place-items: center; min-width: 140px; height: 64px; padding: 8px 18px;
	border: 1px solid var(--line); border-radius: var(--r-s); background: #fff;
	font-family: var(--f-head); font-weight: 700; font-size: 20px; color: var(--ink-2); text-decoration: none;
}
.brands a:hover { border-color: var(--blue); color: var(--blue); }
.brands img { max-height: 44px; width: auto; filter: grayscale(1); opacity: .85; }
.brands a:hover img { filter: none; opacity: 1; }

/* Posts */
.posts { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.posts--list { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 32px; }
.post-card__img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--r-s); margin-bottom: 12px; }
.post-card__date { font-size: 14px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.post-card__title { font-family: var(--f-body); font-size: 19px; font-weight: 600; line-height: 1.35; margin: 4px 0 6px; letter-spacing: 0; }
.post-card__title a { color: var(--ink); text-decoration: none; }
.post-card__title a:hover { color: var(--blue); }
.post-card__excerpt { color: var(--ink-2); font-size: 16px; margin: 0; }

/* ------------------------------------------------------------------
   Page head + breadcrumbs
------------------------------------------------------------------- */
.pagehead { background: var(--tint); padding: 18px 0 28px; border-bottom: 1px solid var(--line-2); }
.pagehead--slim { padding: 12px 0; }
.pagehead__title { font-size: clamp(32px, 4vw, 46px); margin: 6px 0 4px; }
.pagehead__meta { color: var(--ink-2); margin: 0; font-variant-numeric: tabular-nums; }
.pagehead__lede { font-size: 19px; color: var(--ink-2); margin: 0; }
.pagehead__desc { color: var(--ink-2); max-width: 70ch; }
.pagehead .search { justify-self: start; margin-top: 16px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 0; font-size: 14px; color: var(--ink-3); }
.crumbs li + li::before { content: "/"; margin: 0 8px; color: var(--line); }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--blue); text-decoration: underline; }
.crumbs [aria-current] { color: var(--ink); }

/* ------------------------------------------------------------------
   Shop (danh sách sản phẩm)
------------------------------------------------------------------- */
.shop { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 36px; padding-top: 32px; padding-bottom: 64px; }
.shop__side { align-self: start; position: sticky; top: 66px; }
.side__title { font-size: 20px; margin-bottom: 10px; }
.shop__side .cat-tree > li { border-bottom: 1px solid var(--line-2); padding: 8px 0; }
.shop__side .cat-tree > li > a { display: flex; justify-content: space-between; gap: 8px; font-weight: 600; }
.shop__side .cat-tree ul { display: none; padding: 6px 0 2px 12px; }
.shop__side .cat-tree li.is-open > ul { display: block; }
.cat-tree [aria-current] { color: var(--orange-d); }
.cat-tree__n { font-weight: 400; font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.side__help { margin-top: 22px; padding: 16px; border: 1px solid var(--line); border-left: 4px solid var(--orange); border-radius: var(--r-s); background: #fff; }
.side__help p { font-size: 15px; color: var(--ink-2); }
.side__help strong { color: var(--ink); display: block; margin-bottom: 2px; }
.side__phone { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 10px; font-weight: 700; text-decoration: none; color: var(--orange-d); font-variant-numeric: tabular-nums; }

.toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--line-2); }
.toolbar__group { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.toolbar__label { font-size: 14px; font-weight: 600; color: var(--ink-3); margin-right: 2px; }

.pagination { margin-top: 32px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 6px; }
.pagination .page-numbers {
	display: grid; place-items: center; min-width: 42px; height: 42px; padding: 0 12px;
	border: 1px solid var(--line); border-radius: var(--r-s); text-decoration: none; color: var(--ink); font-variant-numeric: tabular-nums;
}
.pagination .page-numbers.current { background: var(--blue); border-color: var(--blue); color: #fff; }
.pagination a.page-numbers:hover { border-color: var(--blue); color: var(--blue); }

.empty { padding: 40px; border: 1px dashed var(--line); border-radius: var(--r-m); text-align: center; background: #fff; }
.empty h2 { font-size: 26px; }
.empty p { color: var(--ink-2); max-width: 54ch; margin: 0 auto 18px; }
.term-desc { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); }

/* ------------------------------------------------------------------
   Product detail
------------------------------------------------------------------- */
.product { padding-top: 28px; padding-bottom: 56px; }
.product__top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.gallery__main { display: grid; place-items: center; aspect-ratio: 1 / 1; border: 1px solid var(--line); border-radius: var(--r-m); background: #fff; padding: 24px; }
.gallery__main img { width: 100%; height: 100%; object-fit: contain; }
.gallery__thumbs { list-style: none; display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.gallery__thumbs button { width: 76px; height: 76px; padding: 4px; border: 1.5px solid var(--line); border-radius: var(--r-s); background: #fff; cursor: pointer; }
.gallery__thumbs button[aria-current="true"] { border-color: var(--blue); }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: contain; }

.product__brand { display: inline-block; font-weight: 600; text-decoration: none; margin-bottom: 4px; }
.product__title { font-size: clamp(30px, 3.2vw, 42px); margin-bottom: 10px; }
.product__meta { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; color: var(--ink-2); margin-bottom: 18px; }
.stock { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 15px; }
.stock::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.stock--con_hang { color: var(--ok); }
.stock--dat_hang { color: var(--warn); }
.stock--het_hang { color: var(--ink-3); }

.keyspecs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 2px solid var(--ink); border-radius: var(--r-s); margin: 0 0 20px; }
.keyspecs > div { padding: 10px 14px; }
.keyspecs > div + div { border-left: 1px solid var(--line); }
.keyspecs dt { font-size: 13px; color: var(--ink-3); }
.keyspecs dd { margin: 0; font-family: var(--f-head); font-size: 26px; font-weight: 700; color: var(--blue-d); font-variant-numeric: tabular-nums; line-height: 1.15; }

.buybox { border: 1px solid var(--line); border-radius: var(--r-m); padding: 18px; background: #fbfcfd; }
.buybox__price { display: grid; gap: 2px; margin-bottom: 14px; }
.buybox__label { font-size: 14px; color: var(--ink-3); }
.buybox__value { font-family: var(--f-head); font-size: 34px; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.buybox__value.is-contact { color: var(--orange-d); }
.buybox__note { font-size: 14px; color: var(--ink-2); }
.buybox__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.buybox__actions .btn--block { grid-column: 1 / -1; min-height: 52px; font-size: 17px; }
.buybox__doc { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-weight: 600; text-decoration: none; }
.assure { list-style: none; display: grid; gap: 8px; margin-top: 18px; color: var(--ink-2); font-size: 16px; }
.assure li { display: flex; gap: 8px; align-items: flex-start; }
.assure .icon { color: var(--ok); margin-top: 3px; }

.product__detail { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 48px; margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); }
.product__specs { align-self: start; position: sticky; top: 66px; }
.spec-table { width: 100%; border-collapse: collapse; font-size: 16px; margin-bottom: 20px; }
.spec-table th, .spec-table td { text-align: left; vertical-align: top; padding: 9px 12px; border-bottom: 1px solid var(--line-2); }
.spec-table th { width: 44%; font-weight: 500; color: var(--ink-2); background: var(--tint); }
.spec-table td { font-weight: 600; font-variant-numeric: tabular-nums; }
.spec-table tr:first-child th, .spec-table tr:first-child td { border-top: 2px solid var(--ink); }

/* ------------------------------------------------------------------
   Prose
------------------------------------------------------------------- */
.prose { max-width: 72ch; }
.prose--intro { font-size: 18px; color: var(--ink-2); }
.prose h2 { font-size: 30px; margin-top: 1.4em; }
.prose h3 { font-size: 23px; margin-top: 1.3em; }
.prose ul, .prose ol { padding-left: 1.3em; margin-bottom: 1em; }
.prose li { margin-bottom: .35em; }
.prose img { border-radius: var(--r-s); }
.prose table { width: 100%; border-collapse: collapse; margin: 1.2em 0; font-size: 16px; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.prose th { background: var(--tint); }
.prose blockquote { margin: 1.2em 0; padding: 4px 0 4px 18px; border-left: 4px solid var(--blue); color: var(--ink-2); }
.prose figure { margin: 1.4em 0; }
.prose figcaption { font-size: 14px; color: var(--ink-3); margin-top: 6px; }
.prose > :first-child { margin-top: 0; }
.wp-block-button__link { background: var(--orange); border-radius: var(--r-s); }

.article { padding-top: 28px; padding-bottom: 56px; }
.article__cover img { width: 100%; border-radius: var(--r-m); }
.article__cover { margin: 0 0 24px; }
.article__cta { margin-top: 40px; padding: 20px; border: 1px solid var(--line); border-left: 4px solid var(--orange); border-radius: var(--r-s); background: var(--tint); }
.article__cta p { margin-bottom: 12px; }
.comments { margin-top: 40px; }

/* About + contact pages */
.about-page { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 56px; padding-top: 36px; padding-bottom: 64px; }
.about-page__side { align-self: start; }
.branch-list { list-style: none; display: grid; gap: 0; margin-bottom: 22px; }
.branch-list li { display: grid; gap: 2px; align-content: start; padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.branch-list strong { font-family: var(--f-head); font-size: 20px; }
.branch-list span { color: var(--ink-2); }
.branch-list a { font-weight: 600; font-variant-numeric: tabular-nums; }
.branch-list__map { font-size: 14px; }
.branch-list--cols { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); column-gap: 24px; }

.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px); gap: 56px; padding-top: 36px; padding-bottom: 56px; }
.contact__lines { list-style: none; display: grid; gap: 16px; margin-bottom: 32px; }
.contact__lines li { display: flex; gap: 14px; align-items: flex-start; }
.contact__lines .icon { color: var(--blue); margin-top: 3px; }
.contact__lines li > span { display: flex; flex-direction: column; }
.contact__k { font-size: 14px; color: var(--ink-3); }
.contact__lines a { font-weight: 600; font-variant-numeric: tabular-nums; }
.contact__big { font-family: var(--f-head); font-size: 30px; font-weight: 700; color: var(--orange-d); text-decoration: none; line-height: 1.1; }
.contact__form { align-self: start; padding: 24px; border: 1px solid var(--line); border-top: 4px solid var(--orange); border-radius: var(--r-m); background: #fff; scroll-margin-top: 70px; }
.contact__note { color: var(--ink-2); font-size: 15px; }
.contact__map iframe { display: block; width: 100%; height: 420px; border: 0; }

/* ------------------------------------------------------------------
   Footer
------------------------------------------------------------------- */
.footer { background: var(--ink); color: #b4c0ca; font-size: 15px; }
.footer a { color: #e6edf2; text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer__grid { display: grid; grid-template-columns: 1.3fr 1fr .9fr 1.2fr; gap: 40px; padding-top: 48px; padding-bottom: 40px; }
.footer__h { font-family: var(--f-head); color: #fff; font-size: 21px; margin-bottom: 14px; }
.footer__h--spaced { margin-top: 24px; }
.footer__about { margin-bottom: 16px; }
.footer__facts { margin: 0; display: grid; gap: 8px; }
.footer__facts div { display: grid; grid-template-columns: 92px 1fr; gap: 8px; }
.footer__facts dt { color: #8696a3; }
.footer__facts dd { margin: 0; color: #dfe7ed; font-variant-numeric: tabular-nums; }
.footer__branches { list-style: none; display: grid; gap: 14px; }
.footer__branches li { display: grid; gap: 1px; }
.footer__branches strong { color: #fff; }
.footer__links { list-style: none; display: grid; gap: 6px; }
.footer__links .menu, .footer__col .menu { display: grid; gap: 6px; list-style: none; }
.footer__map iframe { width: 100%; height: 200px; border: 0; border-radius: var(--r-s); filter: grayscale(.4); }
.footer__bottom { border-top: 1px solid #263540; padding: 16px 0; font-size: 14px; color: #8696a3; }

/* ------------------------------------------------------------------
   Quick contact + dialog
------------------------------------------------------------------- */
.quickbar { position: fixed; right: 18px; bottom: 18px; z-index: 90; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.quickbar__btn {
	display: grid; place-items: center; width: 52px; height: 52px;
	border-radius: 50%; color: #fff; text-decoration: none; font-weight: 700;
	box-shadow: 0 10px 22px -10px rgba(0,0,0,.6);
}
.quickbar__txt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.quickbar__btn:hover { color: #fff; filter: brightness(1.06); }
.quickbar__call { background: var(--orange); }
.quickbar__zalo { background: var(--zalo); }
.quickbar__quote { background: var(--blue); }

.quote-dialog {
	width: min(560px, calc(100vw - 24px)); max-height: calc(100vh - 24px); padding: 0;
	border: 0; border-radius: var(--r-m); box-shadow: 0 30px 80px -20px rgba(0, 15, 35, .6);
}
.quote-dialog::backdrop { background: rgba(10, 25, 40, .55); }
.quote-dialog__head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line-2); border-top: 4px solid var(--orange); }
.quote-dialog__head h2 { margin: 0; font-size: 26px; }
.quote-dialog__close { background: none; border: 0; padding: 6px; cursor: pointer; color: var(--ink-2); }
.quote-dialog form { padding: 18px 20px 20px; }

/* ------------------------------------------------------------------
   Responsive
------------------------------------------------------------------- */
@media (max-width: 1180px) {
	.pgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.footer__grid { grid-template-columns: 1fr 1fr; }
	.uses__row { grid-template-columns: 220px minmax(0, 1fr); }
	.uses__row--head span:last-child { display: none; }
	.uses__cats { grid-column: 2; }
	.hero__in { gap: 36px; }
}

@media (max-width: 960px) {
	.masthead__in { grid-template-columns: auto 1fr auto; gap: 12px; min-height: 64px; }
	.navtoggle { display: block; }
	.masthead .search { display: none; }
	.hotline__text { display: none; }
	.hotline__icon { width: 42px; height: 42px; }
	.brand__mark { width: 36px; height: 36px; }
	.brand__name { font-size: 22px; }
	.brand__tag { display: none; }
	.mainnav { display: none; }
	.topbar__branches, .topbar__mail { display: none; }

	.hero__in { grid-template-columns: 1fr; padding-top: 36px; padding-bottom: 40px; }
	.hero__title { max-width: 16ch; }

	.shop { grid-template-columns: 1fr; gap: 0; padding-top: 20px; }
	.shop__side { position: static; order: 2; margin-top: 40px; }
	.shop .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

	.product__top, .product__detail, .about-page, .contact, .about { grid-template-columns: 1fr; gap: 28px; }
	.product__specs { position: static; order: -1; }
	.posts, .posts--list { grid-template-columns: 1fr 1fr; }

	.quickbar { left: 0; right: 0; bottom: 0; flex-direction: row; gap: 0; background: #fff; box-shadow: 0 -6px 18px -8px rgba(0,0,0,.3); padding-bottom: env(safe-area-inset-bottom); }
	.quickbar__btn { flex: 1; display: flex; gap: 8px; align-items: center; justify-content: center; width: auto; border-radius: 0; height: 56px; padding: 0 6px; box-shadow: none; font-size: 15px; }
	.quickbar__txt { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
	body { padding-bottom: 56px; }
}

@media (max-width: 640px) {
	:root { --gut: 14px; }
	body { font-size: 16px; }
	.band { padding: 40px 0; }
	.cats { grid-template-columns: 1fr; }
	.cat { grid-template-columns: 72px 1fr; padding: 14px; }
	.cat__img { width: 72px; height: 72px; }
	.pgrid, .shop .pgrid { gap: 10px; }
	.pcard__body { padding: 10px; }
	.pcard__title { font-size: 15px; }
	.pcard__specs dt, .pcard__specs dd { font-size: 13px; }
	.pcard__foot { flex-direction: column; align-items: stretch; }
	.pcard__quote { text-align: center; }
	.uses__row { grid-template-columns: 1fr; gap: 6px; }
	.uses__row--head { display: none; }
	.uses__cats { grid-column: auto; margin-top: 4px; }
	.posts, .posts--list { grid-template-columns: 1fr; }
	.plate dd { font-size: 36px; }
	.footer__grid { grid-template-columns: 1fr; gap: 28px; }
	.duty__inputs, .lead__contact, .lead__grid { grid-template-columns: 1fr 1fr; }
	.hero__panel { padding: 16px 14px 18px; margin: 0 calc(var(--gut) * -1 + 4px); }
	.keyspecs dd { font-size: 21px; }
	.buybox__actions { grid-template-columns: 1fr; }
	.band__head { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition: none !important; animation: none !important; }
}
