@charset "UTF-8";
/* ==========================================================================
   Halitie — site stylesheet
   Own implementation. BEM block prefix: hl-
   No fixed pixel widths: layout uses %, flex, grid and clamp().
   ========================================================================== */

/* ---------- tokens ---------- */
:root {
  --hl-navy: #02327b;
  --hl-blue: #1e73be;
  --hl-blue-dark: #195f9c;
  --hl-olive: #8ab63f;
  --hl-green: #7fb432;
  --hl-ink: #2b2b2b;
  --hl-body: #777;
  --hl-line: #e4e4e4;
  --hl-grey: #e8e8e8;
  --hl-tile: #dcdcdc;
  --hl-white: #fff;

  --hl-font: "Roboto", Arial, Helvetica, sans-serif;
  --hl-font-head: "Roboto Condensed", "Roboto", Arial, sans-serif;

  --hl-container: 1222px;
  --hl-gutter: clamp(16px, 4vw, 24px);
  --hl-section-y: clamp(32px, 5vw, 56px);
  --hl-radius: 2px;
  --hl-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  --hl-t: 0.25s ease;
}

/* ---------- reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--hl-font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--hl-body);
  background: var(--hl-white);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border: 0;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color var(--hl-t);
}
ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-family: var(--hl-font-head);
  color: var(--hl-ink);
  line-height: 1.25;
}
p {
  margin: 0 0 1em;
}
p:last-child {
  margin-bottom: 0;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
}
svg {
  display: block;
}

/* screen-reader only */
.hl-sr,
.hidden,
.hidden-seoh {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
/* .hidden / .hidden-seoh are the framework's own SEO partial (templates/layout/seo.php):
   an h-card plus h1..h6 that must stay in the DOM but never be seen. Keep them here —
   removing these rules makes that block render at the top of every page. */

/* ---------- layout primitives ---------- */
.hl-container {
  width: 100%;
  max-width: var(--hl-container);
  margin-inline: auto;
  padding-inline: var(--hl-gutter);
}

.hl-section {
  padding-block: var(--hl-section-y);
}

/* centered section title — "DANH MỤC SẢN PHẨM"
   Numbers read off the live site: 22px / 600 / #2d2a2a, with a 40x2 divider
   underneath at 17% grey, and 30px of air before the content below. */
.hl-title {
  text-align: center;
}
.hl-title--gap {
  margin-bottom: 30px;
}
.hl-title__text {
  font-size: 22px;
  font-weight: 600;
  color: #2d2a2a;
  text-transform: uppercase;
}
.hl-title__text::after {
  content: "";
  display: block;
  width: 40px;
  height: 2px;
  margin: 10px auto 0;
  background: rgba(119, 119, 119, 0.17);
}

/* left-aligned section heading with olive rule — "SHOP ONLINE" */
.hl-heading {
  margin-bottom: clamp(20px, 3vw, 32px);
}
.hl-heading__text {
  font-size: clamp(17px, 2vw, 21px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--hl-olive);
  display: inline-block;
}
.hl-heading__rule {
  height: 1px;
  background: var(--hl-line);
  margin-top: -2px;
}

/* ==========================================================================
   Top bar
   ========================================================================== */
.hl-topbar {
  background: var(--hl-navy);
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
}
.hl-topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 36px;
  flex-wrap: wrap;
}
.hl-topbar__slogan {
  margin: 0;
  font-size: 13px;
}
.hl-topbar__social {
  display: flex;
  align-items: center;
  gap: 14px;
}
.hl-topbar__social a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  line-height: 1;
}
.hl-topbar__social a:hover {
  color: var(--hl-white);
}
.hl-topbar__social img {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

/* ==========================================================================
   Header
   ========================================================================== */
.hl-header {
  background: var(--hl-white);
}
.hl-header__inner {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 40px);
  padding-block: 14px;
}
.hl-header__logo {
  flex: 0 0 auto;
  max-width: 42%;
}
.hl-header__logo img {
  width: clamp(150px, 18vw, 250px);
}
.hl-header__name {
  flex: 1 1 auto;
  font-size: clamp(15px, 2.1vw, 27px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: #000;
  margin-bottom: 0;
}
.hl-header__name b {
  color: var(--hl-blue);
  font-weight: 700;
}

/* burger — mobile only */
.hl-burger {
  display: none;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  color: var(--hl-ink);
}
.hl-burger span,
.hl-burger span::before,
.hl-burger span::after {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition:
    transform var(--hl-t),
    opacity var(--hl-t);
}
.hl-burger span {
  position: relative;
}
.hl-burger span::before,
.hl-burger span::after {
  content: "";
  position: absolute;
  left: 0;
}
.hl-burger span::before {
  top: -7px;
}
.hl-burger span::after {
  top: 7px;
}

/* ==========================================================================
   Main nav (desktop)
   ========================================================================== */
.hl-nav {
  border-top: 1px solid var(--hl-line);
  background: var(--hl-white);
}
.hl-nav--sticky {
  position: sticky;
  top: 0;
  z-index: 90;
  box-shadow: var(--hl-shadow);
}
.hl-nav__list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(14px, 2.4vw, 34px);
}
.hl-nav__item {
  position: relative;
}
.hl-nav__link {
  display: block;
  padding: 14px 0;
  font-family: var(--hl-font-head);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--hl-ink);
}
.hl-nav__link:hover,
.hl-nav__item.is-active > .hl-nav__link {
  color: var(--hl-blue);
}
.hl-nav__caret {
  font-size: 9px;
  margin-left: 5px;
  vertical-align: middle;
}

.hl-nav__sub {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translate(-50%, 8px);
  min-width: 15rem;
  background: var(--hl-white);
  box-shadow: var(--hl-shadow);
  border-top: 2px solid var(--hl-blue);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity var(--hl-t),
    transform var(--hl-t),
    visibility var(--hl-t);
  z-index: 95;
}
.hl-nav__item:hover > .hl-nav__sub,
.hl-nav__item:focus-within > .hl-nav__sub {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}
.hl-nav__sub a {
  display: block;
  padding: 8px 20px;
  font-size: 14px;
  color: var(--hl-body);
  white-space: nowrap;
}
.hl-nav__sub a:hover {
  color: var(--hl-blue);
  background: #f7f7f7;
}

/* cấp 2: flies out to the right of its cấp-1 row inside .hl-nav__sub */
.hl-nav__sub li {
  position: relative;
}
.hl-nav__sub-item--has-children > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.hl-nav__caret--sub {
  font-size: 9px;
  color: var(--hl-body);
}
.hl-nav__sub2 {
  position: absolute;
  top: 0;
  left: 100%;
  min-width: 15rem;
  background: var(--hl-white);
  box-shadow: var(--hl-shadow);
  border-top: 2px solid var(--hl-blue);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translate(8px, 0);
  transition:
    opacity var(--hl-t),
    transform var(--hl-t),
    visibility var(--hl-t);
  z-index: 96;
}
.hl-nav__sub-item--has-children:hover > .hl-nav__sub2,
.hl-nav__sub-item--has-children:focus-within > .hl-nav__sub2 {
  opacity: 1;
  visibility: visible;
  transform: translate(0, 0);
}
.hl-nav__sub2 a {
  display: block;
  padding: 8px 20px;
  font-size: 14px;
  color: var(--hl-body);
  white-space: nowrap;
}
.hl-nav__sub2 a:hover {
  color: var(--hl-blue);
  background: #f7f7f7;
}

/* ==========================================================================
   Mobile drawer
   ========================================================================== */
.hl-drawer {
  position: fixed;
  inset: 0 auto 0 0;
  width: min(84vw, 20rem);
  background: var(--hl-white);
  transform: translateX(-100%);
  transition: transform var(--hl-t);
  z-index: 120;
  overflow-y: auto;
  padding: 20px;
  box-shadow: var(--hl-shadow);
}
.hl-drawer.is-open {
  transform: translateX(0);
}
.hl-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.hl-drawer__head img {
  width: 9rem;
}
.hl-drawer__close {
  font-size: 22px;
  line-height: 1;
  color: var(--hl-ink);
}
.hl-drawer__list > li {
  border-bottom: 1px solid var(--hl-line);
}
.hl-drawer__list a {
  display: block;
  padding: 12px 0;
  font-family: var(--hl-font-head);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 0.05em;
  color: var(--hl-ink);
}
.hl-drawer__list ul a {
  text-transform: none;
  font-weight: 400;
  font-family: var(--hl-font);
  padding: 8px 0 8px 14px;
  color: var(--hl-body);
}
.hl-scrim {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity var(--hl-t),
    visibility var(--hl-t);
  z-index: 110;
}
.hl-scrim.is-open {
  opacity: 1;
  visibility: visible;
}

/* ==========================================================================
   Hero slider
   ========================================================================== */
.hl-hero {
  position: relative;
  overflow: hidden;
  background: #eef2f6;
}
.hl-hero__track {
  display: flex;
  transition: transform 0.5s ease;
}
.hl-hero__slide {
  flex: 0 0 100%;
  min-width: 0;
}
.hl-hero__slide img {
  width: 100%;
  aspect-ratio: 1920 / 700;
  object-fit: cover;
}
.hl-hero__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.75);
  color: var(--hl-ink);
  font-size: 20px;
  transition: background var(--hl-t);
  z-index: 2;
}
.hl-hero__nav:hover {
  background: var(--hl-white);
}
.hl-hero__nav--prev {
  left: 0;
}
.hl-hero__nav--next {
  right: 0;
}
.hl-hero__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 2;
}
.hl-hero__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.25);
  transition: background var(--hl-t);
}
.hl-hero__dot.is-active {
  background: var(--hl-ink);
}

/* ==========================================================================
   Category tiles — 2 x 2
   ========================================================================== */
/* The photo fills the whole tile and the label sits ON it, inset 30px from the
   top-left in white — matching the live site. The grey behind each product is
   baked into the photo itself, not a CSS background. */
.hl-cats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 24px);
}
/* A black scrim over the photo — 30% at rest, 60% on hover, read straight off
   the live site's rules. This is what makes the white label legible, and it is
   also where the "grey" tile comes from: a white photo under 30% black lands on
   255 * 0.7 = 178 = #b2b2b2, the exact value sampled off the live tile. Works
   with any photo, unlike tinting the image itself. */
.hl-cat {
  display: block;
  position: relative;
  overflow: hidden;
}
.hl-cat::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background-color: rgba(0, 0, 0, 0.3);
  transition: background-color 0.5s cubic-bezier(0, 0, 0.44, 1.18);
  pointer-events: none;
}
.hl-cat:hover::after {
  background-color: rgba(0, 0, 0, 0.6);
}
.hl-cat__label {
  position: absolute;
  top: clamp(14px, 2.4vw, 30px);
  left: clamp(14px, 2.4vw, 30px);
  right: clamp(14px, 2.4vw, 30px);
  z-index: 2;
  font-family: var(--hl-font-head);
  font-size: clamp(15px, 1.6vw, 22px);
  font-weight: 600;
  text-transform: uppercase;
  color: var(--hl-white);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}
.hl-cat__media {
  overflow: hidden;
}
.hl-cat__media img {
  width: 100%;
  aspect-ratio: 578 / 439;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.hl-cat:hover .hl-cat__media img {
  transform: scale(1.05);
}

/* ==========================================================================
   Product grid — shop online
   ========================================================================== */
.hl-products {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 26px);
}
.hl-product {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
/* Hover đổi ảnh: ảnh 2 xếp chồng lên ảnh 1 và mờ dần hiện ra.
   Chỉ khi admin có nhập ảnh 2 (.has-alt) thì mới có ảnh thứ hai trong DOM —
   không nhập thì card giữ nguyên ảnh 1, chỉ còn hiệu ứng phóng nhẹ. */
.hl-product__media {
  position: relative;
  overflow: hidden;
  background: #f3f3f3;
}
.hl-product__img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  /* khai lại cả hai thuộc tính ở mọi rule bên dưới: transition ghi đè toàn bộ */
  transition:
    transform 0.4s ease,
    opacity 0.4s ease;
}
.hl-product__img--alt {
  position: absolute;
  inset: 0;
  opacity: 0;
}
.hl-product:hover .hl-product__img {
  transform: scale(1.06);
}
.hl-product:hover .hl-product__img--alt {
  opacity: 1;
}
/* bàn phím: focus cũng đổi ảnh như hover */
.hl-product:focus-visible .hl-product__img--alt {
  opacity: 1;
}

@media (hover: none) {
  /* thiết bị cảm ứng không có hover — giữ ảnh 1, tránh ảnh 2 kẹt nửa chừng */
  .hl-product__img--alt {
    display: none;
  }
}
.hl-product__name {
  font-family: var(--hl-font);
  font-size: 14px;
  font-weight: 400;
  text-align: center;
  color: var(--hl-body);
  line-height: 1.45;
}
.hl-product:hover .hl-product__name {
  color: var(--hl-blue);
}

/* ==========================================================================
   Services carousel
   ========================================================================== */
/* 3 card mỗi khung, card dọc 377x480, nhãn trắng đè lên ảnh ở đáy-trái
   (padding 30px) — số đo lấy từ trang gốc. Card dịch vụ KHÔNG có lớp phủ đen
   như tile danh mục; chỉ thêm text-shadow để chữ không chìm vào ảnh sáng. */
/* ---- cơ chế carousel dùng chung cho cả Dịch vụ và Tin tức ----
   .hl-carousel là phần trượt; phần "da" của từng item nằm ở
   .hl-service__* và .hl-newsitem__* bên dưới. */
.hl-carousel {
  position: relative;
  --hl-car-gap: 30px;
}
.hl-carousel__viewport {
  overflow: hidden;
}
.hl-carousel__track {
  display: flex;
  gap: var(--hl-car-gap);
  transition: transform 0.5s ease;
}
.hl-carousel__item {
  flex: 0 0 calc((100% - 2 * var(--hl-car-gap)) / 3);
  min-width: 0;
  position: relative;
  overflow: hidden;
}
.hl-service__media {
  overflow: hidden;
  background: #f3f3f3;
}
.hl-service__media img {
  width: 100%;
  aspect-ratio: 377 / 480;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.hl-service:hover .hl-service__media img {
  transform: scale(1.05);
}
.hl-service__name {
  position: absolute;
  left: clamp(14px, 2.4vw, 30px);
  right: clamp(14px, 2.4vw, 30px);
  bottom: clamp(14px, 2.4vw, 30px);
  z-index: 2;
  font-family: var(--hl-font-head);
  font-size: clamp(15px, 1.6vw, 22px);
  font-weight: 600;
  text-transform: uppercase;
  color: var(--hl-white);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
}

/* mũi tên trái/phải */
.hl-carousel__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9a9a9a;
  font-size: 26px;
  z-index: 3;
  transition: color var(--hl-t);
}
.hl-carousel__nav:hover {
  color: var(--hl-ink);
}
.hl-carousel__nav--prev {
  left: -42px;
}
.hl-carousel__nav--next {
  right: -42px;
}
.hl-carousel__nav[hidden] {
  display: none;
}
.hl-carousel__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 22px;
}
.hl-carousel__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #c9c9c9;
  transition: background var(--hl-t);
}
.hl-carousel__dot.is-active {
  background: var(--hl-ink);
}

/* ==========================================================================
   Commitment band
   ========================================================================== */
.hl-commit {
  background-color: #e8e8e8;
  background-image: url("../images/halitie/pattern-triangle.png");
  /* trang gốc để background-size:auto / position 0 0 — hoa văn lặp ở kích
       thước thật, KHÔNG phóng cover (cover làm tam giác to gấp mấy lần) */
  background-size: auto;
  background-position: 0 0;
  padding-block: clamp(36px, 5vw, 60px) 72px;
}
.hl-commit__head {
  text-align: center;
}

/* badge xanh — font Roboto thường, không phải Roboto Condensed */
.hl-commit__badge {
  display: block;
  width: fit-content;
  margin: 0 auto 14px;
  background: #83b735;
  color: var(--hl-white);
  font-family: var(--hl-font);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  padding: 6px 10px;
}

/* đường kẻ mảnh chạy hết chiều ngang, tiêu đề nằm đè lên và có gạch xanh riêng */
.hl-commit__rule {
  border-bottom: 2px solid rgba(119, 119, 119, 0.17);
  margin-bottom: 10px;
  line-height: 0;
}
.hl-commit__title {
  display: inline-block;
  font-size: clamp(26px, 3.2vw, 36px);
  font-weight: 600;
  line-height: 1.25;
  color: #2d2a2a;
  text-transform: uppercase;
  border-bottom: 2px solid #83b735;
}
.hl-commit__sub {
  margin-top: 14px;
  font-size: 17.6px;
  color: var(--hl-body);
}

.hl-commit__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 30px);
  margin-top: clamp(28px, 4vw, 44px);
}
.hl-commit__item {
  text-align: center;
}
.hl-commit__item img {
  width: 78px;
  height: 78px;
  object-fit: contain;
  margin: 0 auto 17px;
}
.hl-commit__name {
  font-size: clamp(16px, 1.7vw, 20px);
  font-weight: 600;
  color: #2d2a2a;
  text-transform: uppercase;
}

/* ==========================================================================
   News grid
   ========================================================================== */
/* ---- Card tin tức (thiết kế riêng, trang gốc chưa có bài nào để đối chiếu).
   Dùng lại cơ chế .hl-carousel của Dịch vụ; chỉ khác phần "da":
   ảnh ngang 3:2 đúng thumb 420x280 đã cấu hình, rồi ngày - tiêu đề - trích dẫn. */
.hl-newsitem {
  display: block;
}
.hl-newsitem__media {
  overflow: hidden;
  background: #f3f3f3;
}
.hl-newsitem__media img {
  width: 100%;
  aspect-ratio: 420 / 280;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.hl-newsitem:hover .hl-newsitem__media img {
  transform: scale(1.05);
}
.hl-newsitem__body {
  padding-top: 14px;
}
.hl-newsitem__date {
  font-size: 13px;
  color: #9a9a9a;
  margin-bottom: 6px;
}
.hl-newsitem__date i {
  margin-right: 6px;
  font-size: 12px;
}
.hl-newsitem__name {
  font-family: var(--hl-font-head);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
  color: #2d2a2a;
  text-transform: uppercase;
  /* tiêu đề dài cắt 2 dòng cho các card bằng nhau */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hl-newsitem:hover .hl-newsitem__name {
  color: var(--hl-blue);
}
.hl-newsitem__desc {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--hl-body);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hl-empty {
  border: 1px dashed var(--hl-line);
  padding: 28px;
  text-align: center;
  font-size: 15px;
  color: #999;
}

/* ==========================================================================
   Footer
   ========================================================================== */
/* Số đo lấy từ trang gốc: nền #1e73be, cột 306/306/204/204/204,
   tiêu đề cột Roboto Condensed 15px/600 trắng uppercase mb 20px,
   link rgba(255,255,255,.6) 16px Roboto, body 14px/28px. */
.hl-footer {
  background: var(--hl-blue);
  color: rgba(255, 255, 255, 0.8);
  padding-block: clamp(34px, 4.5vw, 52px);
}
.hl-footer a {
  color: rgba(255, 255, 255, 0.6);
}
.hl-footer a:hover {
  color: var(--hl-white);
}
.hl-footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1.5fr 1fr 1fr 1fr;
  gap: clamp(20px, 3vw, 36px);
}
.hl-footer__logo {
  width: clamp(150px, 16vw, 220px);
  margin-bottom: 18px;
}
.hl-footer__slogan {
  color: var(--hl-white);
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 14px;
}
/* Khối địa chỉ/điện thoại/email — nội dung CKEditor của static/footer,
   nên phải chịu được HTML bất kỳ admin nhập vào: ảnh, bảng, chuỗi dài. */
.hl-footer__about {
  font-size: 14px;
  line-height: 28px;
  color: var(--hl-white);
}
.hl-footer__about p {
  margin: 0 0 6px;
}
.hl-footer__about p:last-child {
  margin-bottom: 0;
}
.hl-footer__about i {
  width: 16px;
  margin-right: 8px;
  font-size: 13px;
}
.hl-footer__about a {
  color: var(--hl-white);
}
.hl-footer__about a:hover {
  text-decoration: underline;
}
.hl-footer__about img {
  max-width: 100%;
  height: auto;
}
.hl-footer__about table {
  max-width: 100%;
  display: block;
  overflow-x: auto;
}
.hl-footer__title {
  color: var(--hl-white);
  font-family: var(--hl-font-head);
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.hl-footer__links li {
  margin-bottom: 10px;
  font-size: 16px;
  line-height: 1.5;
}

/* cột "Tin mới nhất": ảnh nhỏ + tiêu đề */
.hl-footer__news li {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}
/* thẻ <a> mới là flex item, nên kích thước phải đặt ở đây —
   đặt flex lên <img> bên trong thì vô tác dụng và ảnh bị bóp méo */
.hl-footer__news-thumb {
  flex: 0 0 64px;
  display: block;
  width: 64px;
  height: 48px;
  overflow: hidden;
}
.hl-footer__news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hl-footer__news a {
  font-size: 14px;
  line-height: 1.45;
}
.hl-footer__newsdate {
  display: block;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 3px;
}

.hl-copyright {
  background: var(--hl-blue-dark);
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
  font-size: 13px;
  padding-block: 14px;
}

/* ==========================================================================
   Floating contact rail
   ========================================================================== */
.hl-rail {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 2px;
  z-index: 100;
}
.hl-rail__btn {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--hl-blue);
  color: var(--hl-white);
  font-size: 18px;
  transition: background var(--hl-t);
}
.hl-rail__btn:hover {
  background: var(--hl-navy);
  color: var(--hl-white);
}
.hl-rail__btn--fb {
  background: #1877f2;
}
.hl-rail__btn--zalo {
  background: #0068ff;
}

/* back to top */
.hl-totop {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--hl-navy);
  color: var(--hl-white);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity var(--hl-t),
    visibility var(--hl-t);
  z-index: 100;
}
.hl-totop.is-on {
  opacity: 1;
  visibility: visible;
}

/* ==========================================================================
   Trang Liên hệ
   Bản đồ full-width 450px (đúng như trang gốc), rồi 2 cột thông tin + form.
   Dùng lại .hl-heading của trang chủ cho tiêu đề section.
   ========================================================================== */
.hl-map {
  line-height: 0;
  background: #e8e8e8;
}
.hl-map iframe,
.hl-map > * {
  width: 100%;
  height: clamp(260px, 32vw, 450px);
  border: 0;
  display: block;
}

.hl-contact {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}

.hl-contact__info {
  list-style: none;
}
.hl-contact__info li {
  display: flex;
  gap: 14px;
  margin-bottom: 20px;
}
.hl-contact__icon {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--hl-blue);
  color: var(--hl-white);
  font-size: 15px;
}
.hl-contact__label {
  font-family: var(--hl-font-head);
  font-size: 15px;
  font-weight: 600;
  color: #2d2a2a;
  text-transform: uppercase;
  margin-bottom: 2px;
}
.hl-contact__value {
  font-size: 15px;
  line-height: 1.6;
  color: var(--hl-body);
}
.hl-contact__value a {
  color: var(--hl-body);
}
.hl-contact__value a:hover {
  color: var(--hl-blue);
}

/* nội dung CKEditor của static/lienhe — phải chịu được HTML tuỳ ý */
.hl-contact__intro {
  margin-bottom: 24px;
  font-size: 15px;
  line-height: 1.7;
}
.hl-contact__intro img {
  max-width: 100%;
  height: auto;
}
.hl-contact__intro table {
  max-width: 100%;
  display: block;
  overflow-x: auto;
}

/* ---- form ---- */
.hl-contact__form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.hl-field--full {
  grid-column: 1 / -1;
}
.hl-field input,
.hl-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--hl-line);
  background: var(--hl-white);
  font-size: 15px;
  color: var(--hl-ink);
  transition: border-color var(--hl-t);
}
.hl-field textarea {
  min-height: 140px;
  resize: vertical;
}
.hl-field input:focus,
.hl-field textarea:focus {
  outline: 0;
  border-color: var(--hl-blue);
}
.hl-field input::placeholder,
.hl-field textarea::placeholder {
  color: #a9a9a9;
}
.hl-field__err {
  display: none;
  margin-top: 5px;
  font-size: 13px;
  color: #d33;
}
.hl-field.is-invalid input,
.hl-field.is-invalid textarea {
  border-color: #d33;
}
.hl-field.is-invalid .hl-field__err {
  display: block;
}

.hl-contact__actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.hl-btn {
  padding: 12px 28px;
  border: 1px solid transparent;
  background: var(--hl-blue);
  color: var(--hl-white);
  font-size: 16px;
  font-weight: 500;
  border-radius: 3px;
  cursor: pointer;
  transition: background var(--hl-t);
}
.hl-btn:hover {
  background: var(--hl-navy);
}
.hl-btn--ghost {
  background: transparent;
  border-color: var(--hl-line);
  color: var(--hl-body);
}
.hl-btn--ghost:hover {
  background: #f3f3f3;
  color: var(--hl-ink);
}

.hl-alert {
  padding: 12px 16px;
  margin-bottom: 20px;
  border: 1px solid var(--hl-line);
  font-size: 15px;
}
.hl-alert--ok {
  border-color: #8ab63f;
  background: #f3f9ea;
  color: #4a6b1d;
}
.hl-alert--err {
  border-color: #d33;
  background: #fdf0f0;
  color: #a11;
}

@media (max-width: 991.98px) {
  .hl-contact {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 575.98px) {
  .hl-contact__form {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ==========================================================================
   Inner pages
   ========================================================================== */
.hl-crumbs {
  background: #f6f6f6;
  border-bottom: 1px solid var(--hl-line);
  padding-block: 12px;
  font-size: 13px;
}
.hl-crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.hl-crumbs li + li::before {
  content: "/";
  margin-right: 8px;
  color: #bbb;
}
.hl-crumbs li:last-child {
  color: var(--hl-ink);
}

/* Tiêu đề trang nội dung (Giới thiệu, chính sách, bài viết...) */
.hl-pagehead {
  text-align: center;
  margin-bottom: clamp(22px, 3vw, 34px);
}
.hl-pagehead__title {
  font-size: clamp(26px, 3.2vw, 36px);
  font-weight: 600;
  color: #2d2a2a;
  text-transform: uppercase;
  display: inline-block;
  border-bottom: 2px solid #83b735;
  padding-bottom: 10px;
}

/* Thân bài — là output CKEditor nên phải chịu được HTML tuỳ ý admin dán vào */
.hl-article {
  font-size: 16px;
  line-height: 1.75;
  color: var(--hl-body);
}
.hl-article > *:first-child {
  margin-top: 0;
}
.hl-article > *:last-child {
  margin-bottom: 0;
}
.hl-article p {
  margin: 0 0 1em;
}
.hl-article img {
  max-width: 100%;
  height: auto;
}
.hl-article table {
  width: 100%;
  border-collapse: collapse;
  display: block;
  overflow-x: auto;
}
.hl-article table td,
.hl-article table th {
  border: 1px solid var(--hl-line);
  padding: 8px 10px;
}
.hl-article iframe {
  max-width: 100%;
}
.hl-article h2,
.hl-article h3,
.hl-article h4 {
  margin: 1.4em 0 0.5em;
  font-family: var(--hl-font-head);
  font-weight: 600;
  color: #2d2a2a;
}
.hl-article h2 {
  font-size: clamp(20px, 2.2vw, 24px);
}
.hl-article h3 {
  font-size: clamp(18px, 2vw, 20px);
}
.hl-article ul,
.hl-article ol {
  margin: 0 0 1em;
  padding-left: 22px;
}
.hl-article ul {
  list-style: disc;
}
.hl-article ol {
  list-style: decimal;
}
.hl-article li {
  margin-bottom: 6px;
}
.hl-article a {
  color: var(--hl-blue);
  text-decoration: underline;
}
.hl-article blockquote {
  margin: 1.2em 0;
  padding: 12px 18px;
  border-left: 3px solid var(--hl-olive);
  background: #f7f7f7;
}

/* nút chia sẻ */
.hl-share {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: clamp(24px, 3vw, 36px);
}
.hl-share__label {
  font-size: 14px;
  color: var(--hl-body);
}
.hl-share a {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0f0f0;
  color: var(--hl-body);
  font-size: 14px;
  transition:
    background var(--hl-t),
    color var(--hl-t);
}
.hl-share a:hover {
  background: var(--hl-blue);
  color: var(--hl-white);
}

/* Ajax pagination — markup comes from PaginationsAjax, so these class names
   (first / prev / next / last / current / dot / disabled) are fixed by it. */
.pagination-ajax {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 32px;
}
.pagination-ajax a {
  display: block;
  padding: 7px 13px;
  border: 1px solid var(--hl-line);
  font-size: 14px;
  cursor: pointer;
  user-select: none;
}
.pagination-ajax a:hover:not(.disabled):not(.current) {
  background: var(--hl-blue);
  border-color: var(--hl-blue);
  color: var(--hl-white);
}
.pagination-ajax a.current {
  background: var(--hl-blue);
  border-color: var(--hl-blue);
  color: var(--hl-white);
}
.pagination-ajax a.disabled {
  opacity: 0.45;
  cursor: default;
}
.pagination-ajax a.dot {
  border-color: transparent;
  cursor: default;
}
.load-shop[aria-busy="true"] {
  opacity: 0.5;
  transition: opacity 0.2s ease;
}

/* Phân trang thường (không ajax). Tên class do $func->pagination() quy định:
   ul.pagination > li.page-item > a.page-link — đây là class kiểu Bootstrap,
   mà bản này không nạp Bootstrap CSS, nên bắt buộc phải tự style. */
.pagination {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: clamp(26px, 3vw, 36px) 0 0;
  padding: 0;
  list-style: none;
}
.pagination .page-item {
  display: block;
}
.pagination .page-link {
  display: block;
  padding: 8px 14px;
  border: 1px solid var(--hl-line);
  font-size: 14px;
  color: var(--hl-body);
  background: var(--hl-white);
  transition:
    background var(--hl-t),
    color var(--hl-t),
    border-color var(--hl-t);
}
.pagination .page-link:hover {
  background: var(--hl-blue);
  border-color: var(--hl-blue);
  color: var(--hl-white);
}
.pagination .page-item.active .page-link,
.pagination .page-item.active .page-link:hover {
  background: var(--hl-blue);
  border-color: var(--hl-blue);
  color: var(--hl-white);
}
/* ô "Page x / y" và các mục không có href thì không phải nút bấm */
.pagination .page-link:not([href]) {
  background: transparent;
  border-color: transparent;
  cursor: default;
}
.pagination .page-link:not([href]):hover {
  background: transparent;
  color: var(--hl-body);
}
.pagination .page-item.active .page-link:not([href]) {
  background: var(--hl-blue);
  border-color: var(--hl-blue);
  color: var(--hl-white);
}

/* ---- Danh sách bài viết ---- */
.hl-newsgrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.6vw, 30px);
}

/* Card bài viết ở trang danh sách — đầy đủ hơn card trượt ngoài trang chủ:
   ảnh, ngày đăng, tiêu đề, mô tả, link xem thêm. */
.hl-card {
  display: flex;
  flex-direction: column;
  background: var(--hl-white);
  border: 1px solid var(--hl-line);
  overflow: hidden;
  transition:
    box-shadow var(--hl-t),
    transform var(--hl-t);
}
.hl-card:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.09);
  transform: translateY(-3px);
}
.hl-card__media {
  display: block;
  overflow: hidden;
  background: #f3f3f3;
}
.hl-card__media img {
  width: 100%;
  aspect-ratio: 420 / 280;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.hl-card:hover .hl-card__media img {
  transform: scale(1.06);
}
.hl-card__body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 16px 18px 18px;
}
.hl-card__date {
  font-size: 13px;
  color: #9a9a9a;
  margin-bottom: 8px;
}
.hl-card__date i {
  margin-right: 6px;
  font-size: 12px;
}
.hl-card__name {
  font-family: var(--hl-font-head);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
  color: #2d2a2a;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hl-card__name a {
  color: inherit;
}
.hl-card:hover .hl-card__name a {
  color: var(--hl-blue);
}
.hl-card__desc {
  font-size: 14px;
  line-height: 1.65;
  color: var(--hl-body);
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
/* đẩy link xuống đáy để các card cao bằng nhau */
.hl-card__more {
  margin-top: auto;
  align-self: flex-start;
  font-family: var(--hl-font-head);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--hl-blue);
}
.hl-card__more i {
  margin-left: 6px;
  transition: transform var(--hl-t);
}
.hl-card:hover .hl-card__more i {
  transform: translateX(4px);
}

/* Type không bật ảnh (Thông tin, Hỗ trợ khách hàng, Về chúng tôi):
   hiện dạng danh sách gọn thay vì card trống ảnh. */
.hl-newslist {
  border-top: 1px solid var(--hl-line);
}
.hl-newslist li {
  border-bottom: 1px solid var(--hl-line);
}
.hl-newslist a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 4px;
  font-size: 16px;
  color: var(--hl-ink);
  transition: color var(--hl-t);
}
.hl-newslist a:hover {
  color: var(--hl-blue);
}
.hl-newslist i {
  color: var(--hl-olive);
  font-size: 13px;
}

/* ---- Chi tiết bài viết ---- */
.hl-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 18px;
  font-size: 13px;
  color: #9a9a9a;
}
.hl-meta i {
  margin-right: 6px;
}

.hl-related {
  margin-top: clamp(30px, 4vw, 44px);
}
.hl-related__title {
  font-family: var(--hl-font-head);
  font-size: 18px;
  font-weight: 600;
  color: #2d2a2a;
  text-transform: uppercase;
  padding-bottom: 10px;
  margin-bottom: 16px;
  border-bottom: 2px solid var(--hl-olive);
  display: inline-block;
}

/* ==========================================================================
   Trang sản phẩm — thanh lọc danh mục, giá trên card, trang chi tiết
   ========================================================================== */
.hl-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: clamp(22px, 3vw, 32px);
}
.hl-filter__item {
  padding: 8px 18px;
  border: 1px solid var(--hl-line);
  border-radius: 999px;
  font-size: 14px;
  color: var(--hl-body);
  transition:
    background-color var(--hl-t),
    border-color var(--hl-t),
    color var(--hl-t);
}
.hl-filter__item:hover {
  border-color: var(--hl-blue);
  color: var(--hl-blue);
}
.hl-filter__item.is-active {
  background: var(--hl-blue);
  border-color: var(--hl-blue);
  color: var(--hl-white);
}

/* Giá trên card danh sách — chỉ render khi admin thực sự nhập giá */
.hl-product__price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 15px;
}
.hl-product__price-new {
  color: #d0021b;
  font-weight: 700;
}
.hl-product__price-old {
  color: #aaa;
  font-size: 13px;
  text-decoration: line-through;
}

/* --- Chi tiết sản phẩm --- */
.hl-prodetail {
  display: grid;
  grid-template-columns: minmax(0, 520px) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}
.hl-prodetail__stage {
  border: 1px solid var(--hl-line);
  background: #fafafa;
}
.hl-prodetail__stage img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.hl-prodetail__thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}
.hl-prodetail__thumb {
  width: 76px;
  padding: 0;
  background: none;
  cursor: pointer;
  border: 1px solid var(--hl-line);
  transition: border-color var(--hl-t);
}
.hl-prodetail__thumb img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.hl-prodetail__thumb:hover,
.hl-prodetail__thumb.is-active {
  border-color: var(--hl-blue);
}

.hl-prodetail__name {
  font-family: var(--hl-font-head);
  font-size: clamp(21px, 2.6vw, 28px);
  font-weight: 700;
  line-height: 1.3;
  color: var(--hl-ink);
  margin: 0 0 14px;
}
.hl-prodetail__info .hl-meta a {
  color: var(--hl-blue);
}
.hl-prodetail__info .hl-meta a:hover {
  text-decoration: underline;
}

.hl-prodetail__price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px 0;
  border-top: 1px solid var(--hl-line);
  border-bottom: 1px solid var(--hl-line);
}
.hl-prodetail__price-label {
  font-size: 15px;
  color: var(--hl-body);
}
.hl-prodetail__price-new {
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 700;
  color: #d0021b;
}
.hl-prodetail__price-old {
  font-size: 15px;
  color: #aaa;
  text-decoration: line-through;
}

.hl-prodetail__desc {
  margin: 18px 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--hl-body);
}
.hl-prodetail__desc > *:first-child {
  margin-top: 0;
}
.hl-prodetail__desc > *:last-child {
  margin-bottom: 0;
}

.hl-prodetail__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 4px;
}
/* .hl-btn không khai báo display (dùng chung cho cả <button> form liên hệ),
   nên chỉ chuyển sang inline-flex trong ngữ cảnh này để icon thẳng hàng chữ. */
.hl-prodetail__cta .hl-btn {
  display: inline-flex;
  align-items: center;
}
.hl-prodetail__cta .hl-btn i {
  margin-right: 8px;
}

.hl-prodetail__content,
.hl-prodetail__related {
  margin-top: clamp(34px, 5vw, 56px);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1199.98px) {
  .hl-footer__grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
  }
  .hl-footer__col--latest {
    display: none;
  }
}

@media (max-width: 1299.98px) {
  /* ngoài 1222px container không còn chỗ cho mũi tên -> đưa vào trong ảnh */
  .hl-carousel__nav--prev {
    left: 4px;
  }
  .hl-carousel__nav--next {
    right: 4px;
  }
  .hl-carousel__nav {
    background: rgba(255, 255, 255, 0.8);
    color: var(--hl-ink);
  }
}

@media (max-width: 991.98px) {
  .hl-newsgrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hl-prodetail {
    grid-template-columns: minmax(0, 1fr);
  }
  .hl-burger {
    display: flex;
  }
  .hl-nav {
    display: none;
  }
  .hl-header__inner {
    justify-content: space-between;
  }
  .hl-header__name {
    font-size: clamp(13px, 2.4vw, 18px);
  }
  .hl-products {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .hl-carousel__item {
    flex-basis: calc((100% - var(--hl-car-gap)) / 2);
  }
  .hl-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .hl-topbar__inner {
    justify-content: center;
    padding: 10px;
  }
  .hl-topbar__slogan {
    flex: 1 1 100%;
    text-align: center;
  }
  .hl-topbar__social {
    justify-content: center;
    flex: 1 1 100%;
  }
  .hl-cats {
    grid-template-columns: minmax(0, 1fr);
  }
  .hl-products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hl-carousel {
    --hl-car-gap: 16px;
  }
  .hl-carousel__item {
    flex-basis: calc((100% - var(--hl-car-gap)) / 2);
  }
  .hl-commit__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hl-rail {
    top: auto;
    bottom: 0;
    transform: none;
    flex-direction: row;
    width: 100%;
  }
  .hl-rail__btn {
    flex: 1 1 0;
    height: 46px;
  }
  .hl-totop {
    bottom: 60px;
  }
}

@media (max-width: 479.98px) {
  .hl-header__name {
    display: none;
  }
  .hl-products {
    grid-template-columns: minmax(0, 1fr);
  }
  .hl-carousel__item {
    flex-basis: 100%;
  }
  .hl-footer__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* keep the hidden attribute working on elements we style as flex/grid */
[hidden] {
  display: none !important;
}
