/* ==========================================================================
   HPE / HANEL — giao diện website doanh nghiệp truyền thống
   Màu: xanh #0f62ac (thanh menu, chân trang), đỏ #d71920, xanh lá #2c9a46 (logo)
   ========================================================================== */
:root {
  --blue: #0f62ac;
  --blue-dark: #0a4a85;
  --blue-light: #e8f0f8;
  --red: #d71920;
  --green: #2c9a46;
  --text: #333;
  --muted: #777;
  --border: #dcdcdc;
  --bg: #f3f3f3;
  --link: #0f62ac;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 13px/1.6 Arial, Helvetica, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
}
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--red); text-decoration: underline; }
img { max-width: 100%; height: auto; border: 0; vertical-align: middle; }
h1, h2, h3, h4 { line-height: 1.35; margin: 0 0 10px; color: #222; }
h1 { font-size: 20px; } h2 { font-size: 17px; } h3 { font-size: 15px; } h4 { font-size: 14px; }
p { margin: 0 0 10px; }
table { border-collapse: collapse; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 12px; }
main#main { background: #fff; padding-bottom: 24px; max-width: 1224px; margin: 0 auto; min-height: 400px; }
.red { color: var(--red); }
.empty { padding: 14px; background: #fafafa; border: 1px dashed #ccc; color: var(--muted); }

/* ---------- Biểu tượng (SVG nhúng) ---------- */
.ic { display: inline-block; width: 14px; height: 14px; vertical-align: -2px; margin-right: 5px; background: no-repeat center / contain; }
.ic-mail { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M2 5h20v14H2z' fill='none' stroke='%23fff' stroke-width='2'/%3E%3Cpath d='M2 6l10 7 10-7' fill='none' stroke='%23fff' stroke-width='2'/%3E%3C/svg%3E"); }
.ic-mail-w { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M2 5h20v14H2z' fill='none' stroke='%23fff' stroke-width='2'/%3E%3Cpath d='M2 6l10 7 10-7' fill='none' stroke='%23fff' stroke-width='2'/%3E%3C/svg%3E"); }
.ic-phone-w { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M6.6 10.8a15 15 0 006.6 6.6l2.2-2.2c.3-.3.7-.4 1-.2 1.1.4 2.3.6 3.6.6.6 0 1 .4 1 1V20c0 .6-.4 1-1 1A17 17 0 013 4c0-.6.4-1 1-1h3.5c.6 0 1 .4 1 1 0 1.3.2 2.5.6 3.6.1.3 0 .7-.2 1z'/%3E%3C/svg%3E"); }
.ic-pin-w { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M12 2a7 7 0 00-7 7c0 5 7 13 7 13s7-8 7-13a7 7 0 00-7-7zm0 9.5A2.5 2.5 0 1112 6a2.5 2.5 0 010 5.5z'/%3E%3C/svg%3E"); }
.ic-clock-w { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E"); }
.ic-phone-big, .ic-pin-big, .ic-mail-big, .ic-clock-big { width: 38px; height: 38px; border-radius: 50%; background-color: var(--red); background-size: 20px; margin: 0; flex: none; }
.ic-phone-big { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M6.6 10.8a15 15 0 006.6 6.6l2.2-2.2c.3-.3.7-.4 1-.2 1.1.4 2.3.6 3.6.6.6 0 1 .4 1 1V20c0 .6-.4 1-1 1A17 17 0 013 4c0-.6.4-1 1-1h3.5c.6 0 1 .4 1 1 0 1.3.2 2.5.6 3.6.1.3 0 .7-.2 1z'/%3E%3C/svg%3E"); }
.ic-pin-big { background-color: var(--blue); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M12 2a7 7 0 00-7 7c0 5 7 13 7 13s7-8 7-13a7 7 0 00-7-7zm0 9.5A2.5 2.5 0 1112 6a2.5 2.5 0 010 5.5z'/%3E%3C/svg%3E"); }
.ic-mail-big { background-color: var(--green); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M2 5h20v14H2z' fill='none' stroke='%23fff' stroke-width='2'/%3E%3Cpath d='M2 6l10 7 10-7' fill='none' stroke='%23fff' stroke-width='2'/%3E%3C/svg%3E"); }
.ic-clock-big { background-color: #e8a317; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E"); }
.ic-pdf { width: 18px; height: 18px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 2h10l5 5v15H5z' fill='%23d71920'/%3E%3Ctext x='12.5' y='17' font-size='6.5' text-anchor='middle' fill='%23fff' font-family='Arial' font-weight='bold'%3EPDF%3C/text%3E%3C/svg%3E"); }

/* ---------- Thanh trên cùng ---------- */
.topbar { background: var(--blue-dark); color: #dbe7f3; font-size: 12px; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; min-height: 30px; gap: 10px; }
.topbar a { color: #fff; }
.topbar .sep { margin: 0 8px; opacity: .5; }
.topbar-left { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Header ---------- */
.header-main { background: #fff; border-bottom: 1px solid #e3e3e3; }
.header-main .container { display: flex; align-items: center; justify-content: space-between; min-height: 96px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 12px; color: inherit; }
.logo:hover { text-decoration: none; }
.logo img { width: 78px; height: 78px; object-fit: contain; }
.brand { display: flex; flex-direction: column; }
.brand-name { font-size: 19px; font-weight: bold; color: var(--blue); text-transform: uppercase; letter-spacing: .2px; line-height: 1.25; }
.brand-en { font-size: 12.5px; color: var(--red); font-weight: bold; text-transform: uppercase; }
.brand-slogan { font-size: 12.5px; color: var(--green); font-style: italic; }
.header-right { display: flex; align-items: center; gap: 18px; }
.header-search { display: flex; border: 2px solid var(--blue); }
.header-search input { border: 0; padding: 7px 9px; width: 230px; font: inherit; outline: none; }
.header-search button { border: 0; background: var(--blue); color: #fff; padding: 0 14px; font: bold 12px Arial, sans-serif; cursor: pointer; text-transform: uppercase; }
.header-search button:hover { background: var(--blue-dark); }
.header-hotline { display: flex; align-items: center; gap: 8px; color: var(--text); }
.header-hotline:hover { text-decoration: none; }
.header-hotline small { display: block; font-size: 11px; color: var(--muted); text-transform: uppercase; }
.header-hotline strong { display: block; font-size: 18px; color: var(--red); line-height: 1.1; }

/* ---------- Menu chính ---------- */
.mainnav { background: var(--blue); border-bottom: 3px solid var(--red); position: relative; z-index: 50; }
.mainnav .container { padding: 0 12px; }
.nav-toggle { display: none; }
.menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.menu > li { position: relative; }
.menu > li > a { display: block; color: #fff; font-weight: bold; text-transform: uppercase; font-size: 13px; padding: 12px 17px; line-height: 20px; border-right: 1px solid rgba(255, 255, 255, .15); }
.menu > li:first-child > a { border-left: 1px solid rgba(255, 255, 255, .15); }
.menu > li > a:hover, .menu > li.active > a, .menu > li:hover > a { background: var(--blue-dark); color: #fff; text-decoration: none; }
.menu > li.active > a { background: var(--red); }
.menu .sub { list-style: none; margin: 0; padding: 0; position: absolute; left: 0; top: 100%; min-width: 250px; background: #fff; border: 1px solid #ccc; border-top: 3px solid var(--red); box-shadow: 0 3px 6px rgba(0, 0, 0, .15); display: none; }
.menu .sub .sub { left: 100%; top: -3px; }
.menu li:hover > .sub { display: block; }
.menu .sub li { position: relative; }
.menu .sub a { display: block; padding: 8px 12px; color: #333; border-bottom: 1px solid #eee; font-size: 13px; }
.menu .sub a:hover { background: var(--blue-light); color: var(--blue); text-decoration: none; }
.sub-toggle { display: none; }

/* ---------- Breadcrumb ---------- */
.breadcrumb { background: #f5f5f5; border-bottom: 1px solid #e5e5e5; font-size: 12px; margin-bottom: 15px; }
.breadcrumb nav { padding: 8px 0; }
.bc-sep { margin: 0 6px; color: #999; }
.bc-cur { color: var(--muted); }

/* ---------- Bố cục 2 cột ---------- */
.two-col { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 20px; align-items: start; }
.content-main { min-width: 0; }

/* ---------- Hộp sidebar ---------- */
.box { border: 1px solid var(--border); margin-bottom: 15px; background: #fff; }
.box-title { background: var(--blue); color: #fff; font-weight: bold; text-transform: uppercase; padding: 9px 12px; font-size: 13px; border-bottom: 2px solid var(--red); }
.box-body { padding: 6px 10px; }
.cat-menu ul { list-style: none; margin: 0; padding: 0; }
.cat-menu li a { display: block; padding: 7px 4px 7px 14px; border-bottom: 1px dotted #ccc; color: #333; position: relative; }
.cat-menu li a::before { content: "›"; position: absolute; left: 3px; color: var(--red); font-weight: bold; }
.cat-menu li a:hover, .cat-menu li a.active { color: var(--blue); text-decoration: none; background: var(--blue-light); }
.cat-menu li a.active { font-weight: bold; }
.cat-menu li ul { padding-left: 12px; }
.cat-menu li:last-child > a { border-bottom: 0; }
.cat-menu .cnt { color: #999; font-size: 11px; font-weight: normal; }
.support-hot { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px dotted #ccc; }
.support-hot small { display: block; color: var(--muted); font-size: 11px; text-transform: uppercase; }
.support-hot a { font-size: 17px; font-weight: bold; color: var(--red); }
.support-list { list-style: none; margin: 0; padding: 4px 0; }
.support-list li { padding: 5px 0; border-bottom: 1px dotted #ddd; display: flex; justify-content: space-between; gap: 8px; font-size: 12px; }
.support-list a { font-weight: bold; color: var(--red); white-space: nowrap; }
.support-mail { font-size: 12px; margin: 6px 0 2px; word-break: break-all; }
.mini-news { list-style: none; margin: 0; padding: 0; }
.mini-news li { display: grid; grid-template-columns: 70px 1fr; grid-template-rows: auto auto; column-gap: 8px; padding: 7px 0; border-bottom: 1px dotted #ddd; }
.mini-news li:last-child { border-bottom: 0; }
.mn-img { grid-row: span 2; }
.mn-img img { width: 70px; height: 52px; object-fit: cover; border: 1px solid #ddd; }
.mn-title { font-size: 12px; line-height: 1.4; color: #333; }
.date { color: #999; font-size: 11px; }

/* ---------- Tiêu đề khối ---------- */
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; border-bottom: 2px solid var(--blue); margin: 0 0 14px; }
.sec-head h1, .sec-head h2 { margin: 0; font-size: 14px; line-height: 1; }
.sec-head span { display: inline-block; background: var(--blue); color: #fff; padding: 9px 16px 8px; text-transform: uppercase; position: relative; }
.sec-head h1 span { font-size: 15px; }
.sec-more { font-size: 12px; padding: 0 2px 4px; color: var(--muted); }

/* ---------- Nút ---------- */
.btn { display: inline-block; border: 1px solid #bbb; background: linear-gradient(#fff, #ececec); color: #333; padding: 6px 14px; font: 13px Arial, sans-serif; cursor: pointer; border-radius: 2px; text-align: center; }
.btn:hover { text-decoration: none; border-color: var(--blue); color: var(--blue); }
.btn-sm { padding: 3px 10px; font-size: 12px; }
.btn-lg { padding: 9px 18px; font-size: 15px; font-weight: bold; }
.btn-blue { background: var(--blue); border-color: var(--blue-dark); color: #fff; }
.btn-blue:hover { background: var(--blue-dark); color: #fff; }
.btn-red { background: var(--red); border-color: #a51318; color: #fff; }
.btn-red:hover { background: #b5141a; color: #fff; }

/* ---------- Lưới sản phẩm ---------- */
.pgrid { display: grid; gap: 14px; }
.pgrid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pgrid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pcard { border: 1px solid var(--border); background: #fff; padding: 8px; text-align: center; display: flex; flex-direction: column; transition: border-color .15s, box-shadow .15s; }
.pcard:hover { border-color: var(--blue); box-shadow: 0 2px 6px rgba(0, 0, 0, .12); }
.pcard-img { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #fff; border-bottom: 1px solid #eee; margin-bottom: 8px; }
.pcard-img img { width: 100%; height: 100%; object-fit: contain; }
.pcard-name { font-size: 13px; margin: 0 0 4px; line-height: 1.4; flex: 1; }
.pcard-name a { color: #222; font-weight: bold; }
.pcard-name a:hover { color: var(--red); }
.pcard-sku { font-size: 11px; color: var(--muted); margin-bottom: 6px; }
.pcard-actions { margin-top: 4px; }
img.noimg { background: #f5f5f5; }

.list-toolbar { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px; background: #f7f7f7; border: 1px solid #e5e5e5; padding: 6px 10px; margin-bottom: 14px; font-size: 12px; }
.sorts b, .sorts a { margin-left: 8px; }
.cat-desc { border: 1px solid #e5e5e5; background: #fcfcfc; padding: 12px; margin-bottom: 14px; overflow: hidden; }
.cat-img { float: right; width: 200px; margin: 0 0 8px 12px; border: 1px solid #ddd; }
.subcats { margin-bottom: 12px; font-size: 12px; }
.subcats a { display: inline-block; border: 1px solid #ccc; padding: 2px 9px; margin: 2px 3px; background: #f7f7f7; }

/* ---------- Phân trang ---------- */
.pagination { margin: 20px 0 5px; display: flex; flex-wrap: wrap; gap: 4px; }
.pagination a, .pagination span { display: inline-block; min-width: 30px; padding: 4px 9px; border: 1px solid #ccc; text-align: center; background: #fff; }
.pagination .cur { background: var(--blue); color: #fff; border-color: var(--blue); font-weight: bold; }
.pagination a:hover { background: var(--blue-light); text-decoration: none; }
.pagination .dots { border: 0; }

/* ---------- Trang chủ ---------- */
.home-top { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 15px; padding-top: 15px; margin-bottom: 20px; }
.home-top .box { margin: 0; height: 100%; }
.banner { position: relative; border: 1px solid var(--border); background: #e9eef4; min-height: 320px; overflow: hidden; }
.banner .slide { position: absolute; inset: 0; opacity: 0; transition: opacity .6s; }
.banner .slide.on { opacity: 1; z-index: 1; }
.banner .slide img { width: 100%; height: 100%; object-fit: cover; }
.banner-text { display: flex; align-items: center; justify-content: center; text-align: center; background: linear-gradient(135deg, #0f62ac, #0a4a85); color: #fff; }
.banner-text strong { display: block; font-size: 24px; text-transform: uppercase; margin-bottom: 6px; }
.banner .dots { position: absolute; bottom: 10px; left: 0; right: 0; text-align: center; z-index: 2; }
.banner .dots button { width: 11px; height: 11px; border-radius: 50%; border: 1px solid #fff; background: rgba(255, 255, 255, .5); margin: 0 3px; padding: 0; cursor: pointer; }
.banner .dots button.on { background: var(--red); }
.home-sec { margin-bottom: 22px; }
.field-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.field { display: flex; flex-direction: column; border: 1px solid var(--border); background: #fff; color: #333; }
.field:hover { border-color: var(--blue); text-decoration: none; color: #333; box-shadow: 0 2px 6px rgba(0, 0, 0, .1); }
.field-img { aspect-ratio: 16 / 10; overflow: hidden; background: #fafafa; border-bottom: 3px solid var(--blue); }
.field-img img { width: 100%; height: 100%; object-fit: cover; }
.field-name { font-weight: bold; color: var(--blue); text-transform: uppercase; padding: 8px 10px 2px; font-size: 13px; }
.field:hover .field-name { color: var(--red); }
.field-desc { padding: 0 10px 10px; font-size: 12px; color: #666; line-height: 1.5; }
.intro-wrap { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 18px; align-items: start; }
.intro-img { border: 1px solid #ddd; padding: 4px; }
.home-news { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.proj-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.proj { display: block; border: 1px solid var(--border); color: #333; }
.proj:hover { text-decoration: none; border-color: var(--blue); }
.proj-img { display: block; aspect-ratio: 4 / 3; overflow: hidden; }
.proj-img img { width: 100%; height: 100%; object-fit: cover; }
.proj-title { display: block; padding: 6px 8px; font-size: 12px; font-weight: bold; line-height: 1.4; }
.home-newslist { list-style: none; margin: 0; padding: 0; }
.home-newslist li { display: grid; grid-template-columns: 110px 1fr; gap: 10px; padding: 8px 0; border-bottom: 1px dotted #ccc; }
.home-newslist li:first-child { padding-top: 0; }
.hn-img img { width: 110px; height: 78px; object-fit: cover; border: 1px solid #ddd; }
.hn-title { font-weight: bold; color: #222; display: block; line-height: 1.4; }
.home-newslist p { font-size: 12px; color: #666; margin: 2px 0 0; }
.contact-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; background: #f6f8fb; border: 1px solid #e2e8f0; padding: 14px; }
.cs-item { display: flex; gap: 10px; align-items: center; }
.cs-item b { display: block; text-transform: uppercase; font-size: 12px; color: var(--blue); }
.cs-item span { font-size: 12px; }

/* ---------- Chi tiết sản phẩm ---------- */
.product-top { display: grid; grid-template-columns: minmax(0, 46%) minmax(0, 1fr); gap: 20px; margin-bottom: 22px; }
.g-main { border: 1px solid var(--border); aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; background: #fff; }
.g-main img { max-height: 100%; width: 100%; object-fit: contain; }
.g-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: 6px; }
.g-thumbs button { border: 1px solid #ddd; padding: 2px; background: #fff; cursor: pointer; aspect-ratio: 1; }
.g-thumbs button.on, .g-thumbs button:hover { border-color: var(--red); }
.g-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.product-info h1 { font-size: 20px; color: var(--blue); border-bottom: 1px solid #e5e5e5; padding-bottom: 8px; }
.pinfo { width: 100%; margin-bottom: 10px; }
.pinfo th { text-align: left; font-weight: normal; color: var(--muted); padding: 4px 10px 4px 0; width: 130px; vertical-align: top; }
.pinfo td { padding: 4px 0; }
.pinfo .price { color: var(--red); font-weight: bold; font-size: 16px; }
.short-desc { border-top: 1px dotted #ccc; padding-top: 10px; margin-bottom: 12px; }
.cta-box { border: 1px solid #f0c4c6; background: #fff7f7; padding: 12px; }
.cta-title { font-weight: bold; text-transform: uppercase; color: var(--red); margin-bottom: 8px; }
.cta-box .btn-lg { display: block; margin-bottom: 8px; }
.cta-row { display: flex; gap: 8px; flex-wrap: wrap; }
.cta-row .btn { flex: 1; }
.p-sec { margin-bottom: 22px; }
.features { margin: 0; padding: 0; list-style: none; }
.features li { padding: 6px 0 6px 22px; border-bottom: 1px dotted #ddd; position: relative; }
.features li::before { content: "✔"; color: var(--green); position: absolute; left: 2px; }
.specs { width: 100%; border: 1px solid #ddd; }
.specs th, .specs td { border: 1px solid #ddd; padding: 7px 10px; text-align: left; vertical-align: top; }
.specs th { width: 35%; background: #f5f7fa; font-weight: bold; }
.specs tr:nth-child(even) td { background: #fbfbfb; }
.img-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.img-grid a { border: 1px solid #ddd; aspect-ratio: 1; overflow: hidden; display: block; }
.img-grid img { width: 100%; height: 100%; object-fit: cover; }
.docs { list-style: none; margin: 0; padding: 0; }
.docs li { padding: 6px 0; border-bottom: 1px dotted #ddd; }

/* ---------- Tin tức / nội dung ---------- */
.news-row { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 14px; padding: 0 0 14px; margin-bottom: 14px; border-bottom: 1px dotted #ccc; }
.nr-img img { width: 200px; height: 140px; object-fit: cover; border: 1px solid #ddd; padding: 2px; }
.nr-body h3 { margin: 0 0 3px; font-size: 15px; }
.nr-body h3 a { color: #222; }
.nr-body h3 a:hover { color: var(--red); }
.meta { font-size: 12px; color: #999; margin-bottom: 8px; }
.readmore { font-size: 12px; font-weight: bold; }
.article-title { font-size: 21px; color: var(--blue); }
.lead { font-weight: bold; color: #444; }
.article-cover { margin: 0 0 14px; text-align: center; }
.related-list { margin: 0; padding-left: 18px; }
.related-list li { padding: 3px 0; }
.content { font-size: 13.5px; line-height: 1.7; }
.content h2 { font-size: 16px; color: var(--blue); margin-top: 18px; text-transform: uppercase; }
.content h3 { font-size: 14.5px; margin-top: 14px; }
.content ul, .content ol { padding-left: 22px; margin: 0 0 10px; }
.content li { margin-bottom: 3px; }
.content img { display: block; margin: 10px auto; border: 1px solid #ddd; padding: 3px; }
.content blockquote { margin: 10px 0; padding: 8px 14px; border-left: 4px solid var(--blue); background: #f5f8fc; }
.content hr { border: 0; border-top: 1px solid #ddd; margin: 16px 0; }
.table-wrap { overflow-x: auto; margin: 0 0 12px; -webkit-overflow-scrolling: touch; }
.content table { width: 100%; border: 1px solid #ccc; font-size: 12.5px; }
.content th, .content td { border: 1px solid #ccc; padding: 6px 8px; vertical-align: top; }
.content th { background: var(--blue); color: #fff; text-align: center; }
.content tr:nth-child(even) td { background: #f8f8f8; }
.contact-box { border: 1px solid #ddd; background: #fafcff; padding: 14px; margin-bottom: 16px; }
.contact-box h2 { color: var(--blue); text-transform: uppercase; font-size: 16px; }
.search-big { display: flex; gap: 6px; margin-bottom: 16px; }
.search-big input { flex: 1; padding: 7px 9px; border: 1px solid #bbb; font: inherit; }

/* ---------- Chân trang ---------- */
.site-footer { background: var(--blue); color: #e3edf7; border-top: 4px solid var(--red); margin-top: 0; }
.footer-cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 26px; padding-top: 24px; padding-bottom: 18px; }
.site-footer h3 { color: #fff; font-size: 14px; text-transform: uppercase; border-bottom: 1px solid rgba(255, 255, 255, .25); padding-bottom: 7px; margin-bottom: 10px; }
.site-footer h3.mt { margin-top: 14px; }
.site-footer p { margin: 0 0 6px; font-size: 12.5px; }
.site-footer a { color: #fff; }
.flinks { list-style: none; margin: 0; padding: 0; }
.flinks li { padding: 3px 0 3px 12px; position: relative; font-size: 12.5px; }
.flinks li::before { content: "›"; position: absolute; left: 0; }
.social { display: flex; gap: 6px; }
.social a { display: inline-flex; align-items: center; justify-content: center; min-width: 32px; height: 32px; padding: 0 6px; font-weight: bold; color: #fff; border: 1px solid rgba(255, 255, 255, .4); }
.social a:hover { background: rgba(255, 255, 255, .15); text-decoration: none; }
.ftext { margin-top: 10px; opacity: .85; }
.copyright { background: var(--blue-dark); color: #c9d8e8; font-size: 12px; text-align: center; padding: 9px 0; }

/* ---------- Nút liên hệ nổi ---------- */
.float-contact { position: fixed; right: 14px; bottom: 16px; display: flex; flex-direction: column; gap: 8px; z-index: 90; }
.float-contact a { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: bold; font-size: 11px; box-shadow: 0 2px 5px rgba(0, 0, 0, .3); }
.float-contact a:hover { text-decoration: none; opacity: .9; }
.fc-zalo { background: #0068ff; }
.fc-phone { background: var(--red); }
.fc-phone .ic { width: 20px; height: 20px; margin: 0; }
.fc-top { background: #777; font-size: 14px !important; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .header-search input { width: 170px; }
  .brand-name { font-size: 16px; }
}
@media (max-width: 991px) {
  .header-main .container { flex-wrap: wrap; justify-content: center; padding-top: 8px; padding-bottom: 8px; min-height: 0; }
  .header-right { width: 100%; justify-content: center; }
  .header-search { flex: 1; max-width: 460px; }
  .header-search input { width: 100%; }
  .nav-toggle { display: flex; align-items: center; gap: 8px; width: 100%; background: none; border: 0; color: #fff; font: bold 13px Arial, sans-serif; padding: 11px 0; cursor: pointer; }
  .nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after { display: block; width: 20px; height: 2px; background: #fff; position: relative; content: ""; }
  .nav-toggle .bars::before { position: absolute; top: -6px; } .nav-toggle .bars::after { position: absolute; top: 6px; }
  .menu { display: none; flex-direction: column; padding-bottom: 6px; }
  .menu.open { display: flex; }
  .menu > li > a { border: 0 !important; border-top: 1px solid rgba(255, 255, 255, .15) !important; padding: 10px 6px; }
  .menu .sub, .menu .sub .sub { position: static; display: none; border: 0; box-shadow: none; background: var(--blue-dark); min-width: 0; }
  .menu li:hover > .sub { display: none; }
  .menu li.open > .sub { display: block; }
  .menu .sub a { color: #fff; border-bottom: 1px solid rgba(255, 255, 255, .1); padding-left: 22px; }
  .menu .sub a:hover { background: transparent; color: #fff; }
  .sub-toggle { display: block; position: absolute; right: 0; top: 4px; width: 36px; height: 34px; background: rgba(255, 255, 255, .12); border: 0; color: #fff; font-size: 18px; cursor: pointer; }
  .two-col, .home-top { grid-template-columns: 1fr; }
  .sidebar { order: -1; }
  .sidebar .box-news, .sidebar .box-support { display: none; }
  .home-cats { order: 2; }
  .banner { min-height: 220px; aspect-ratio: 16 / 7; }
  .pgrid.cols-4, .field-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .home-news, .intro-wrap { grid-template-columns: 1fr; }
  .contact-strip { grid-template-columns: 1fr 1fr; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .fcol-company { grid-column: span 2; }
}
@media (max-width: 640px) {
  body { font-size: 13px; }
  .topbar-right { display: none; }
  .logo img { width: 56px; height: 56px; }
  .brand-name { font-size: 14px; }
  .brand-en, .brand-slogan { font-size: 11px; }
  .header-hotline { display: none; }
  .pgrid.cols-4, .pgrid.cols-3, .field-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .product-top { grid-template-columns: 1fr; }
  .news-row { grid-template-columns: 110px minmax(0, 1fr); gap: 10px; }
  .nr-img img { width: 110px; height: 80px; }
  .nr-body p { display: none; }
  .img-grid { grid-template-columns: repeat(3, 1fr); }
  .contact-strip, .footer-cols { grid-template-columns: 1fr; }
  .fcol-company { grid-column: auto; }
  .cat-img { float: none; width: auto; margin: 0 0 8px; }
  .sec-head span { padding: 8px 10px 7px; }
  .float-contact a { width: 40px; height: 40px; }
}

/* ---------- Trang chủ: banner + ô dịch vụ ---------- */
.home-top { align-items: start; }
.home-right { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.home-right .banner { min-height: 0; aspect-ratio: 1400 / 480; }
.highlights { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.hl { grid-column: span 2; display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--border); border-top: 3px solid var(--blue); background: #fff; padding: 10px; color: #333; }
.hl:hover { text-decoration: none; border-top-color: var(--red); background: #fafcff; }
.hl-num { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--red); color: #fff; font-weight: bold; display: flex; align-items: center; justify-content: center; }
.hl b { display: block; color: var(--blue); text-transform: uppercase; font-size: 12.5px; margin-bottom: 2px; }
.hl small { display: block; font-size: 12px; color: #666; line-height: 1.45; }
.hl:nth-child(-n+2) { grid-column: span 3; }
.home-cats .cat-menu li a { padding-top: 5px; padding-bottom: 5px; }
@media (max-width: 640px) {
  .highlights { grid-template-columns: 1fr; }
  .hl, .hl:nth-child(-n+2) { grid-column: auto; }
}

/* Chống tràn ngang trên màn hình hẹp */
.topbar-left { min-width: 0; }
.logo, .brand { min-width: 0; }
.home-top > *, .two-col > * { min-width: 0; }
@media (max-width: 991px) {
  .two-col, .home-top { grid-template-columns: minmax(0, 1fr); }
  .header-right { flex-wrap: wrap; }
}
@media (max-width: 991px) {
  .sidebar .box-cats .box-title { cursor: pointer; position: relative; }
  .sidebar .box-cats .box-title::after { content: "▼"; position: absolute; right: 12px; font-size: 10px; top: 11px; }
  .sidebar .box-cats.open .box-title::after { content: "▲"; }
  .sidebar .box-cats .box-body { display: none; }
  .sidebar .box-cats.open .box-body { display: block; }
  .cat-img { max-width: 240px; }
}
