/* ========================================
   Xưởng Tiến Dũng — Design System
   ======================================== */

:root {
  --brand-red: #c8102e;
  --brand-red-dark: #9e0c24;
  --brand-red-soft: #fde8ec;
  --brand-navy: #0c1e36;
  --brand-steel: #2a3f55;
  --brand-metal: #8a9bb0;
  --surface: #f4f6f9;
  --surface-warm: #eef1f5;
  --ink: #141c26;
  --ink-muted: #5a6a7c;
  --line: #d8dee8;
  --white: #ffffff;
  --shadow-soft: 0 8px 30px rgba(12, 30, 54, 0.08);
  --shadow-lift: 0 16px 40px rgba(12, 30, 54, 0.12);
  --radius: 12px;
  --font-display: "Barlow Condensed", "Be Vietnam Pro", sans-serif;
  --font-body: "Be Vietnam Pro", system-ui, sans-serif;
  --header-h: 88px;
  --nav-h: 52px;
  --text: var(--ink);
  --muted: var(--ink-muted);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Utilities thay Tailwind CDN (PageSpeed) ---------- */
.w-3\.5, .w-3-5 { width: 0.875rem; height: 0.875rem; }
.w-4, .h-4 { width: 1rem; height: 1rem; }
.w-5, .h-5 { width: 1.25rem; height: 1.25rem; }
.w-6, .h-6 { width: 1.5rem; height: 1.5rem; }
.w-7, .h-7 { width: 1.75rem; height: 1.75rem; }
.w-8, .h-8 { width: 2rem; height: 2rem; }
[data-lucide], svg.lucide {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
  stroke: currentColor;
}
.text-brand-red { color: var(--brand-red); }
.font-semibold { font-weight: 600; }
.link-underline:hover { text-decoration: underline; }
.sr-only {
  position: absolute;
  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: -9999px;
  top: 0;
  z-index: 10000;
  background: #fff;
  color: var(--brand-navy);
  padding: 0.5rem 0.85rem;
  font-weight: 600;
}
.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

/* ---------- Typography ---------- */
.font-display {
  font-family: var(--font-display);
  letter-spacing: 0.02em;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--brand-navy);
  margin: 0 0 1.75rem;
  letter-spacing: 0.04em;
}

.section-title::before {
  content: "";
  width: 5px;
  height: 1.35em;
  background: linear-gradient(180deg, var(--brand-red), var(--brand-red-dark));
  border-radius: 2px;
  flex-shrink: 0;
}

/* ---------- Top bar / Header ---------- */
.site-header {
  position: sticky;
  /* Kéo phần header-top ra khỏi viewport khi cuộn để chỉ còn thanh menu được ghim */
  top: calc(-1 * var(--header-top-h, var(--header-h)));
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s ease;
}

.site-header.is-nav-stuck {
  box-shadow: var(--shadow-soft);
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: var(--header-h);
  padding-block: 0.75rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
}

.brand-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.brand-text strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 700;
  line-height: 1;
  color: var(--brand-red);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.brand-text span {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--brand-steel);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.header-meta {
  flex: 1;
  text-align: center;
  min-width: 0;
}

.header-meta .company {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--brand-navy);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 0.25rem;
}

.header-meta .address {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  color: var(--ink-muted);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.btn-hotline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.15rem;
  background: linear-gradient(135deg, var(--brand-red), var(--brand-red-dark));
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(200, 16, 46, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-hotline:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(200, 16, 46, 0.35);
}

.cart-btn {
  position: relative;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--brand-steel);
  background: var(--white);
  transition: border-color 0.2s, color 0.2s;
}

.cart-btn:hover {
  border-color: var(--brand-red);
  color: var(--brand-red);
}

.cart-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--brand-red);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  color: var(--brand-navy);
  cursor: pointer;
}

/* ---------- Mobile drawer ---------- */
.mobile-drawer {
  display: none;
}

body.drawer-open {
  overflow: hidden;
}

.mobile-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(8, 16, 28, 0.5);
  opacity: 0;
  transition: opacity 0.28s ease;
}

.mobile-drawer-panel {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 210;
  width: min(360px, 88vw);
  height: 100%;
  background: var(--white);
  box-shadow: -12px 0 40px rgba(12, 30, 54, 0.18);
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.mobile-drawer.is-open .mobile-drawer-backdrop {
  opacity: 1;
}

.mobile-drawer.is-open .mobile-drawer-panel {
  transform: translateX(0);
}

.drawer-track {
  display: flex;
  width: 200%;
  height: 100%;
  transform: translateX(0);
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.drawer-track.show-sub,
.drawer-track.show-products {
  transform: translateX(-50%);
}

.drawer-view {
  width: 50%;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--white);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.15rem;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}

.drawer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.drawer-brand strong {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--brand-navy);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.drawer-brand span {
  font-size: 0.78rem;
  color: var(--ink-muted);
}

.drawer-close,
.drawer-back {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  border: 0;
  background: transparent;
  color: var(--brand-navy);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.35rem;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}

.drawer-close:hover,
.drawer-back:hover {
  background: var(--surface);
  color: var(--brand-red);
}

.drawer-back {
  padding: 0.4rem 0.5rem 0.4rem 0.15rem;
}

.drawer-subheader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.95rem 1.15rem 0.55rem;
  flex-shrink: 0;
}

.drawer-subheader h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--brand-navy);
}

.drawer-all {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--brand-red);
}

.drawer-nav {
  flex: 1;
  overflow-y: auto;
  padding: 0.35rem 0.65rem 1rem;
  -webkit-overflow-scrolling: touch;
}

.drawer-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  padding: 0.95rem 0.85rem;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--brand-navy);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.drawer-link:hover,
.drawer-link.is-active {
  background: var(--brand-red-soft);
  color: var(--brand-red);
}

.drawer-link-sub {
  border-bottom: 1px solid transparent;
}

.drawer-link svg {
  flex-shrink: 0;
  color: var(--brand-metal);
}

.drawer-link:hover svg,
.drawer-link.is-active svg {
  color: var(--brand-red);
}

.drawer-nav-sub .drawer-link {
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.85rem 0.85rem;
  border-bottom: 1px dashed var(--line);
  border-radius: 0;
}

.drawer-nav-sub .drawer-link:last-child {
  border-bottom: 0;
}

.drawer-footer {
  flex-shrink: 0;
  padding: 1rem 1.15rem 1.35rem;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0.75rem;
  background: var(--surface);
}

.drawer-hotline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.8rem 1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand-red), var(--brand-red-dark));
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.drawer-search {
  display: flex;
  align-items: stretch;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}

.drawer-search input {
  flex: 1;
  border: 0;
  outline: 0;
  padding: 0.7rem 0.85rem;
  font-size: 0.9rem;
  font-family: var(--font-body);
  min-width: 0;
}

.drawer-search button {
  width: 44px;
  border: 0;
  background: var(--brand-navy);
  color: var(--white);
  cursor: pointer;
  display: grid;
  place-items: center;
}

/* ---------- Navigation ---------- */
.site-nav {
  background: linear-gradient(90deg, #a30d25 0%, var(--brand-red) 40%, #d41835 100%);
  position: relative;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--nav-h);
  gap: 1rem;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.nav-menu > li {
  position: relative;
}

.nav-menu > li > a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.85rem 1rem;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.92;
  transition: opacity 0.2s, background 0.2s;
}

.nav-menu > li > a:hover,
.nav-menu > li > a.is-active {
  opacity: 1;
  background: rgba(0, 0, 0, 0.12);
}

.nav-menu > li > a.is-active {
  box-shadow: inset 0 -3px 0 #fff;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: var(--white);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow-lift);
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  z-index: 50;
  /* Giữ panel trong viewport khi màn hình laptop thấp */
  max-height: min(70vh, calc(100dvh - var(--nav-h) - 1rem));
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(12, 30, 54, 0.28) transparent;
}

.dropdown-menu::-webkit-scrollbar {
  width: 6px;
}

.dropdown-menu::-webkit-scrollbar-thumb {
  background: rgba(12, 30, 54, 0.28);
  border-radius: 999px;
}

/* Mega panel: nhiều cột, neo đúng dưới item "Sản phẩm" */
.dropdown-menu--mega {
  left: 0;
  right: auto;
  width: max-content;
  min-width: 360px;
  max-width: min(640px, calc(100vw - 2rem));
  padding: 0.65rem 0.65rem 0.45rem;
  border-radius: 0 0 14px 14px;
  border-top: 3px solid var(--brand-red);
}

.dropdown-mega-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(150px, 1fr));
  gap: 0.1rem 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.dropdown-mega-grid a,
.dropdown-menu a {
  display: block;
  padding: 0.48rem 0.7rem;
  font-size: 0.875rem;
  line-height: 1.35;
  color: var(--brand-steel);
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dropdown-mega-grid a:hover,
.dropdown-mega-grid a:focus-visible,
.dropdown-menu a:hover,
.dropdown-menu a:focus-visible {
  background: var(--brand-red-soft);
  color: var(--brand-red);
  outline: none;
}

.dropdown-mega-all {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin-top: 0.4rem;
  padding: 0.55rem 0.75rem;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--brand-red);
  text-align: center;
  transition: background 0.15s, color 0.15s;
}

.dropdown-mega-all:hover,
.dropdown-mega-all:focus-visible {
  background: var(--brand-red-soft);
  color: var(--brand-navy);
  outline: none;
}

.has-dropdown:hover .dropdown-menu,
.has-dropdown:focus-within .dropdown-menu,
.has-dropdown.open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

@media (min-width: 1100px) {
  .dropdown-menu--mega {
    min-width: 520px;
  }

  .dropdown-mega-grid {
    grid-template-columns: repeat(3, minmax(150px, 1fr));
  }
}

/* Laptop thấp: ưu tiên 3 cột để giảm chiều cao panel */
@media (min-width: 900px) and (max-height: 760px) {
  .dropdown-menu--mega {
    min-width: 500px;
  }

  .dropdown-mega-grid {
    grid-template-columns: repeat(3, minmax(140px, 1fr));
  }

  .dropdown-mega-grid a,
  .dropdown-menu a {
    padding: 0.4rem 0.6rem;
    font-size: 0.84rem;
  }

  .dropdown-menu--mega {
    padding: 0.5rem 0.55rem 0.35rem;
  }
}

.nav-search {
  display: flex;
  align-items: stretch;
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  min-width: 200px;
}

.nav-search input {
  flex: 1;
  border: 0;
  outline: 0;
  padding: 0.45rem 0.75rem;
  font-size: 0.85rem;
  font-family: var(--font-body);
  color: var(--ink);
  min-width: 0;
}

.nav-search button {
  width: 40px;
  border: 0;
  background: var(--brand-navy);
  color: var(--white);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s;
}

.nav-search button:hover {
  background: #163052;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: clamp(420px, 68vh, 620px);
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--white);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(8, 16, 28, 0.88) 0%, rgba(8, 16, 28, 0.55) 48%, rgba(200, 16, 46, 0.35) 100%),
    url("/images/xuong-gia-cong-tien-dung.jpg")
      center / cover no-repeat;
  transform: scale(1.04);
  animation: hero- ken 18s ease-in-out infinite alternate;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 40%, rgba(255, 120, 40, 0.18), transparent 55%);
  pointer-events: none;
}

@keyframes hero-ken {
  from {
    transform: scale(1.04) translateY(0);
  }
  to {
    transform: scale(1.1) translateY(-1.5%);
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 820px;
  margin-inline: auto;
  padding: 4rem 1.25rem;
  animation: fade-up 0.9s ease both;
}

.hero-content h1 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.5vw, 3.75rem);
  font-weight: 700;
  line-height: 1.1;
  text-transform: none;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

.hero-content p {
  margin: 0 auto;
  max-width: 640px;
  font-size: clamp(0.95rem, 1.6vw, 1.1rem);
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.7;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- Features ---------- */
.features {
  position: relative;
  z-index: 3;
  margin-top: -2.5rem;
  padding-bottom: 1rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
  text-align: center;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lift);
  border-color: rgba(200, 16, 46, 0.25);
}

.feature-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--white);
}

.feature-icon.consult {
  background: linear-gradient(135deg, #e11d48, #be123c);
}
.feature-icon.quality {
  background: linear-gradient(135deg, #d97706, #b45309);
}
.feature-icon.care {
  background: linear-gradient(135deg, #059669, #047857);
}
.feature-icon.ship {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

.feature-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--brand-navy);
}

.feature-card p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--ink-muted);
  line-height: 1.55;
}

/* ---------- Products ---------- */
.section {
  padding: 3.5rem 0;
}

.section-alt {
  background:
    linear-gradient(180deg, var(--surface) 0%, #e9eef4 100%);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lift);
}

.product-media {
  position: relative;
  aspect-ratio: 4 / 3;
  flex: 0 0 auto;
  overflow: hidden;
  background: var(--surface-warm);
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s ease;
}

/* Sản phẩm chưa có ảnh → hiện logo trọn vẹn thay vì bị cắt */
.product-media img.is-fallback {
  object-fit: contain;
  padding: 14%;
  background: var(--surface-warm);
}

.product-card:hover .product-media img {
  transform: scale(1.06);
}

/* Lazy load */
img.ht-lazy {
  opacity: 0.35;
  transition: opacity 0.25s ease;
  background: #f1f5f9;
}
img.ht-lazy.is-loaded,
img.is-loaded {
  opacity: 1;
  background: transparent;
}

.product-body {
  padding: 1rem 1.1rem 1.2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.product-body h3 {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--brand-navy);
  line-height: 1.35;
  transition: color 0.2s;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(1.35em * 2);
}

.product-card:hover .product-body h3 {
  color: var(--brand-red);
}

.product-price {
  margin-top: auto;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--brand-red);
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 2.5rem;
  align-items: start;
}

.about-media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lift);
}

.about-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.about-media::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 35%;
  background: linear-gradient(transparent, rgba(12, 30, 54, 0.55));
  pointer-events: none;
}

.about-content h2 {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--brand-navy);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.about-content p {
  margin: 0 0 1rem;
  color: var(--ink-muted);
  font-size: 0.98rem;
}

.about-content h3 {
  margin: 1.5rem 0 0.75rem;
  font-size: 1.15rem;
  color: var(--brand-navy);
}

.about-list {
  margin: 0 0 1.25rem;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.about-list li {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  font-size: 0.95rem;
  color: var(--brand-steel);
}

.about-list li i,
.about-list li svg {
  color: var(--brand-red);
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  padding: 0.85rem 1.4rem;
  background: linear-gradient(135deg, var(--brand-red), var(--brand-red-dark));
  color: #fff !important;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  text-decoration: none !important;
  box-shadow: 0 8px 20px rgba(200, 16, 46, 0.25);
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(200, 16, 46, 0.35);
  color: #fff !important;
}

.btn-primary svg,
.btn-primary i {
  color: inherit;
}

/* Nút trong prose không bị style link đỏ đè màu chữ */
.prose a.btn-primary,
.prose .btn-primary,
.prose a.btn-zalo {
  color: #fff !important;
  text-decoration: none !important;
}

.footer-form .btn-submit {
  color: #fff !important;
}

/* ---------- News ---------- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.35rem;
}

.news-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  transition: transform 0.25s, box-shadow 0.25s;
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lift);
}

.news-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--surface-warm);
}

.news-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.news-card:hover .news-media img {
  transform: scale(1.05);
}

.news-body {
  padding: 1.15rem 1.2rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex: 1;
}

.news-body h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--brand-navy);
  transition: color 0.2s;
}

.news-card:hover .news-body h3 {
  color: var(--brand-red);
}

.news-body p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-muted);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-more {
  margin-top: auto;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--brand-red);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background:
    linear-gradient(160deg, #071525 0%, var(--brand-navy) 55%, #132742 100%);
  color: rgba(255, 255, 255, 0.88);
  padding-top: 3.5rem;
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 10% 20%, rgba(200, 16, 46, 0.18), transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(37, 99, 235, 0.12), transparent 35%);
  pointer-events: none;
}

.footer-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
}

.footer-col h4 {
  margin: 0 0 1.1rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--white);
}

.footer-info {
  display: grid;
  gap: 0.7rem;
  font-size: 0.92rem;
}

.footer-info li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  line-height: 1.5;
}

.footer-info svg {
  flex-shrink: 0;
  margin-top: 0.15rem;
  color: #f87171;
}

.footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem 1rem;
}

.footer-links a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #fff;
}

.footer-form {
  display: grid;
  gap: 0.7rem;
}

.footer-form input,
.footer-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}

.footer-form input::placeholder,
.footer-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.footer-form input:focus,
.footer-form textarea:focus {
  border-color: rgba(248, 113, 113, 0.7);
  background: rgba(255, 255, 255, 0.1);
}

.footer-form textarea {
  min-height: 88px;
  resize: vertical;
}

.footer-form .btn-submit {
  justify-self: start;
  padding: 0.75rem 1.35rem;
  background: linear-gradient(135deg, var(--brand-red), var(--brand-red-dark));
  color: var(--white);
  border: 0;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.footer-form .btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(200, 16, 46, 0.35);
}

.form-success {
  display: none;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #6ee7b7;
  font-size: 0.9rem;
}

.form-success.is-visible {
  display: block;
  animation: fade-up 0.35s ease;
}

.footer-bottom {
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.15rem 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}

.social-links {
  display: flex;
  gap: 0.5rem;
}

.social-links a {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.8);
  transition: background 0.2s, color 0.2s;
}

.social-links a:hover {
  background: var(--brand-red);
  color: var(--white);
}

/* ---------- Floating contacts ---------- */
.float-actions {
  position: fixed;
  right: 1.1rem;
  bottom: 1.25rem;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.float-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--white);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
  transition: transform 0.2s;
  position: relative;
}

.float-btn:hover {
  transform: scale(1.08);
}

.float-btn.phone {
  background: linear-gradient(135deg, var(--brand-red), var(--brand-red-dark));
}

.float-btn.zalo {
  background: linear-gradient(135deg, #0068ff, #0050c8);
}

.float-btn::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid currentColor;
  opacity: 0.35;
  animation: ping 1.8s ease-out infinite;
}

@keyframes ping {
  0% {
    transform: scale(1);
    opacity: 0.4;
  }
  80%,
  100% {
    transform: scale(1.35);
    opacity: 0;
  }
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .container {
    padding-inline: 1.5rem;
  }

  .section {
    padding: 3rem 0;
  }

  .features-grid,
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .about-grid,
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-media img {
    aspect-ratio: 16 / 10;
  }

  .header-meta {
    display: none;
  }

  .header-top {
    padding-block: 0.85rem;
    gap: 0.85rem;
  }

  .page-hero {
    padding: 3rem 0 2.5rem;
  }

  .page-layout,
  .about-page-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-page-grid img {
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 768px) {
  :root {
    --header-h: 72px;
  }

  .container {
    padding-inline: 1.5rem;
  }

  .section {
    padding: 2.5rem 0;
  }

  .section-title {
    margin-bottom: 1.35rem;
    gap: 0.65rem;
  }

  .header-top {
    padding-block: 1rem;
    gap: 0.75rem;
  }

  .brand {
    gap: 0.65rem;
    min-width: 0;
  }

  .brand-logo {
    width: 48px;
    height: 48px;
  }

  .brand-text strong {
    font-size: 1.4rem;
  }

  .brand-text span {
    font-size: 0.65rem;
  }

  .header-actions {
    gap: 0.55rem;
  }

  .btn-hotline span {
    display: none;
  }

  .btn-hotline {
    padding: 0.65rem;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    justify-content: center;
  }

  .menu-toggle {
    display: grid;
  }

  .site-nav {
    display: none !important;
  }

  /* Mobile dùng drawer nên ghim cả header để luôn thấy nút menu */
  .site-header {
    top: 0;
  }

  .mobile-drawer {
    display: block;
    pointer-events: none;
  }

  .mobile-drawer.is-open {
    pointer-events: auto;
  }

  .mobile-drawer:not(.is-open) .mobile-drawer-backdrop {
    pointer-events: none;
  }

  .nav-inner {
    flex-direction: column;
    align-items: stretch;
    padding: 0.85rem 0 1.15rem;
    gap: 0.85rem;
  }

  .nav-menu {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-menu > li > a {
    padding: 0.95rem 0.35rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    margin: 0.35rem 0 0.65rem;
    display: none;
    padding: 0.35rem 0;
    max-height: none;
    overflow: visible;
    min-width: 0;
    width: auto;
    max-width: none;
    border-top: 0;
  }

  .dropdown-menu--mega {
    min-width: 0;
    width: auto;
    max-width: none;
    padding: 0.35rem 0;
    border-radius: 8px;
  }

  .dropdown-mega-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .has-dropdown.open .dropdown-menu {
    display: block;
  }

  .dropdown-mega-grid a,
  .dropdown-menu a {
    color: rgba(255, 255, 255, 0.9);
    padding: 0.7rem 1rem;
    white-space: normal;
  }

  .dropdown-mega-grid a:hover,
  .dropdown-menu a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
  }

  .dropdown-mega-all {
    border-top-color: rgba(255, 255, 255, 0.15);
    color: #fff;
  }

  .dropdown-mega-all:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
  }

  .nav-search {
    width: 100%;
  }

  .nav-search input {
    padding: 0.7rem 0.9rem;
  }

  .hero {
    min-height: clamp(380px, 62vh, 520px);
  }

  .hero-content {
    padding: 3.5rem 1.5rem 4rem;
  }

  .features {
    margin-top: -1.75rem;
    padding-bottom: 0.5rem;
  }

  .features-grid {
    gap: 0.9rem;
  }

  .feature-card {
    padding: 1.35rem 1.2rem;
  }

  .products-grid {
    gap: 1rem;
  }

  .product-body {
    padding: 1.05rem 1.15rem 1.2rem;
  }

  .about-grid {
    gap: 1.75rem;
  }

  .about-content h2 {
    margin-bottom: 1rem;
  }

  .about-list {
    gap: 0.75rem;
  }

  .news-grid {
    grid-template-columns: 1fr;
    gap: 1.1rem;
  }

  .news-body {
    padding: 1.2rem 1.2rem 1.3rem;
  }

  .site-footer {
    padding-top: 2.75rem;
  }

  .footer-grid {
    gap: 2rem;
    padding-bottom: 2rem;
  }

  .footer-col h4 {
    margin-bottom: 0.95rem;
  }

  .footer-links {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .footer-form input,
  .footer-form textarea {
    padding: 0.85rem 1rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    padding: 1.25rem 0;
    gap: 0.85rem;
  }

  .float-actions {
    right: 1rem;
    bottom: 1.15rem;
    gap: 0.7rem;
  }

  .page-hero {
    padding: 2.75rem 0 2.25rem;
  }

  .page-layout {
    gap: 1.5rem;
  }

  .sidebar-box {
    padding: 1.25rem 1.2rem;
  }

  .about-page-grid {
    gap: 1.75rem;
  }

  .category-grid {
    gap: 0.9rem;
    margin-bottom: 2rem;
  }

  .category-card {
    padding: 1.15rem 1.1rem;
  }

  .news-list {
    gap: 1.1rem;
  }

  .news-list-item {
    grid-template-columns: 1fr;
    height: auto;
  }

  .news-list-thumb {
    aspect-ratio: 16 / 10;
    height: auto;
    min-height: 0;
  }

  .news-list-body {
    padding: 0 1.2rem 1.25rem;
  }

  .contact-grid {
    gap: 1.35rem;
  }

  .contact-info-card,
  .contact-form-card {
    padding: 1.5rem 1.25rem;
  }

  .page-form .form-row {
    grid-template-columns: 1fr;
  }

  .page-form input,
  .page-form textarea {
    padding: 0.85rem 1rem;
  }

  .map-wrap {
    margin-top: 1.5rem;
    min-height: 280px;
  }

  .map-wrap iframe {
    height: 300px;
  }
}

@media (max-width: 480px) {
  .container {
    padding-inline: 1.35rem;
  }

  .section {
    padding: 2.25rem 0;
  }

  .header-top {
    padding-block: 1rem;
  }

  .features-grid,
  .products-grid,
  .category-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .cart-btn {
    display: none;
  }

  .hero-content {
    padding: 3.25rem 1.35rem 3.75rem;
  }

  .feature-card {
    padding: 1.4rem 1.25rem;
  }

  .product-body,
  .news-body {
    padding: 1.15rem 1.2rem 1.25rem;
  }

  .page-hero {
    padding: 2.6rem 0 2.2rem;
  }

  .page-hero h1 {
    font-size: 1.85rem;
  }

  .contact-info-card,
  .contact-form-card,
  .sidebar-box {
    padding: 1.4rem 1.25rem;
  }

  .news-list-body {
    padding: 0 1.2rem 1.25rem;
  }

  .category-card {
    padding: 1.2rem 1.15rem;
  }

  .float-actions {
    right: 1rem;
    bottom: 1.15rem;
  }

  .float-btn {
    width: 48px;
    height: 48px;
  }
}

/* ---------- Inner pages ---------- */
.page-hero {
  position: relative;
  padding: 3.5rem 0 3rem;
  color: var(--white);
  overflow: hidden;
  background:
    linear-gradient(120deg, rgba(8, 16, 28, 0.92), rgba(200, 16, 46, 0.55)),
    url("/images/xuong-gia-cong-tien-dung.jpg")
      center / cover no-repeat;
}

.page-hero h1 {
  margin: 0.5rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.75);
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.9);
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: #fff;
}

.breadcrumb .sep {
  opacity: 0.5;
}

/* Semantic breadcrumb (ol/li markup used by _Breadcrumb partial) */
.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.breadcrumb-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.breadcrumb-item:not(:last-child)::after {
  content: "/";
  color: var(--ink-muted, #64748b);
  opacity: 0.7;
}

.page-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
  align-items: start;
}

.page-content {
  min-width: 0;
}

.page-sidebar {
  display: grid;
  gap: 1.25rem;
}

.sidebar-box {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow-soft);
}

.sidebar-box h3 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--brand-navy);
  padding-bottom: 0.65rem;
  border-bottom: 2px solid var(--brand-red);
}

.sidebar-links {
  display: grid;
  gap: 0.15rem;
}

.sidebar-links a {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 0.35rem;
  font-size: 0.9rem;
  color: var(--brand-steel);
  border-bottom: 1px dashed var(--line);
  transition: color 0.2s, padding-left 0.2s;
}

.sidebar-links a:hover {
  color: var(--brand-red);
  padding-left: 0.55rem;
}

.sidebar-links li:last-child a {
  border-bottom: 0;
}

.prose {
  color: var(--ink);
  line-height: 1.75;
  font-size: 1.02rem;
}

.prose > *:first-child {
  margin-top: 0;
}

.prose h1,
.prose h2,
.prose h3,
.prose h4,
.prose h5,
.prose h6 {
  color: var(--brand-navy);
  font-family: var(--font-display);
  letter-spacing: 0.02em;
  line-height: 1.25;
  font-weight: 700;
}

.prose h1 {
  font-size: clamp(1.75rem, 2.4vw, 2.15rem);
  margin: 0 0 1rem;
}

.prose h2 {
  font-size: clamp(1.4rem, 2vw, 1.7rem);
  margin: 2rem 0 0.85rem;
  padding-bottom: 0.35rem;
  border-bottom: 2px solid color-mix(in srgb, var(--brand-red) 35%, transparent);
}

.prose h3 {
  font-size: 1.25rem;
  margin: 1.65rem 0 0.7rem;
}

.prose h4 {
  font-size: 1.1rem;
  margin: 1.4rem 0 0.55rem;
}

.prose h5,
.prose h6 {
  font-size: 1rem;
  margin: 1.2rem 0 0.45rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.prose p {
  margin: 0 0 1.05rem;
  color: var(--ink-muted);
  line-height: 1.8;
}

.prose a {
  color: var(--brand-red);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.prose a:hover {
  color: var(--brand-navy);
}

.prose strong,
.prose b {
  color: var(--brand-navy);
  font-weight: 700;
}

.prose em,
.prose i {
  font-style: italic;
}

.prose ul,
.prose ol {
  margin: 0 0 1.25rem;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.prose ul {
  list-style: none;
}

.prose ol {
  list-style: decimal;
  padding-left: 1.35rem;
}

.prose ul li {
  position: relative;
  padding-left: 1.25rem;
  color: var(--brand-steel);
  font-size: 0.98rem;
}

.prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-red);
}

.prose ol li {
  color: var(--brand-steel);
  padding-left: 0.25rem;
}

.prose blockquote,
.prose .quote {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem 1rem 1.35rem;
  border-left: 4px solid var(--brand-red);
  background: linear-gradient(90deg, color-mix(in srgb, var(--brand-red) 8%, #fff), #fff 72%);
  border-radius: 0 10px 10px 0;
  color: var(--brand-navy);
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.7;
  box-shadow: var(--shadow-soft);
}

.prose blockquote p,
.prose .quote p {
  margin: 0 0 0.65rem;
  color: inherit;
}

.prose blockquote p:last-child,
.prose .quote p:last-child {
  margin-bottom: 0;
}

.prose blockquote cite,
.prose .quote cite {
  display: block;
  margin-top: 0.65rem;
  font-size: 0.9rem;
  font-style: normal;
  color: var(--ink-muted);
}

.prose blockquote cite::before,
.prose .quote cite::before {
  content: "— ";
}

.prose hr {
  border: 0;
  height: 1px;
  margin: 2rem 0;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}

.prose .table-scroll {
  width: 100%;
  max-width: 100%;
  margin: 0 0 1.5rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow-soft);
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--brand-navy) 35%, #cbd5e1) transparent;
}

.prose .table-scroll::-webkit-scrollbar {
  height: 8px;
}

.prose .table-scroll::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--brand-navy) 40%, #94a3b8);
  border-radius: 999px;
}

.prose .table-scroll::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 999px;
}

.prose table {
  width: 100%;
  min-width: 520px;
  border-collapse: separate;
  border-spacing: 0;
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.5;
  border: 0;
  border-radius: 0;
  overflow: visible;
  background: #fff;
}

.prose .table-scroll > table {
  min-width: 560px;
}

.prose th,
.prose td {
  border: 0;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
  padding: 0.8rem 1rem;
  text-align: left;
  vertical-align: top;
  color: var(--brand-steel);
}

.prose th:last-child,
.prose td:last-child {
  border-right: 0;
}

.prose tr:last-child td {
  border-bottom: 0;
}

.prose thead th {
  background: var(--brand-navy);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
  position: sticky;
  top: 0;
  z-index: 1;
}

.prose tbody tr:nth-child(even) td {
  background: #f8fafc;
}

.prose tbody tr:hover td {
  background: color-mix(in srgb, var(--brand-red) 7%, #fff);
}

.prose td strong,
.prose th strong {
  color: inherit;
}

@media (max-width: 768px) {
  .prose .table-scroll {
    margin-bottom: 1.25rem;
    border-radius: 10px;
  }

  .prose table,
  .prose .table-scroll > table {
    min-width: 480px;
    font-size: 0.88rem;
  }

  .prose th,
  .prose td {
    padding: 0.65rem 0.75rem;
  }

  .prose thead th {
    font-size: 0.82rem;
  }
}

.prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: #f1f5f9;
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

.prose pre {
  margin: 0 0 1.25rem;
  padding: 1rem 1.15rem;
  background: #0c1e36;
  color: #e2e8f0;
  border-radius: 10px;
  overflow-x: auto;
}

.prose pre code {
  background: transparent;
  color: inherit;
  padding: 0;
}

/* Ảnh trong nội dung: mặc định căn giữa, click mở gallery */
.prose img,
.article-body img,
.detail-body img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1.35rem auto;
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

.prose figure {
  margin: 1.5rem auto;
  text-align: center;
}

.prose figure img {
  margin: 0 auto 0.65rem;
}

.prose figcaption {
  font-size: 0.88rem;
  color: var(--ink-muted);
  font-style: italic;
}

.prose .js-gallery-img,
.article-body .js-gallery-img,
.detail-body .js-gallery-img {
  cursor: zoom-in;
}

.about-page-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2.25rem;
  align-items: start;
}

.about-page-grid img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lift);
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.category-card {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  padding: 1.15rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  scroll-margin-top: 160px;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
  border-color: rgba(200, 16, 46, 0.25);
}

.category-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--brand-red-soft);
  color: var(--brand-red);
}

.category-card h3 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--brand-navy);
}

.category-card p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--ink-muted);
  line-height: 1.45;
}

.news-list {
  display: grid;
  gap: 1.25rem;
  /* Bề rộng ảnh; chiều cao item = 3/4 bề rộng → ảnh luôn đúng 4:3 */
  --news-thumb-w: 240px;
}

.news-list-item {
  display: grid;
  grid-template-columns: var(--news-thumb-w) 1fr;
  gap: 1.25rem;
  align-items: stretch;
  height: calc(var(--news-thumb-w) * 3 / 4);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.25s;
}

.news-list-item:hover {
  box-shadow: var(--shadow-lift);
}

.news-list-thumb {
  display: block;
  overflow: hidden;
  background: var(--surface-warm);
  height: 100%;
  min-height: 0;
  align-self: stretch;
  aspect-ratio: 4 / 3;
}

.news-list-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.45s ease;
}

.news-list-thumb img.is-fallback {
  object-fit: contain;
  padding: 12%;
  background: var(--surface-warm);
}

.news-list-item:hover .news-list-thumb img {
  transform: scale(1.05);
}

/* Body cao cố định theo số dòng → mọi item bằng nhau → ảnh đồng nhất kích thước */
.news-list-body {
  padding: 1.15rem 1.15rem 1.15rem 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.5rem;
  min-width: 0;
  overflow: hidden;
}

.news-list-body h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--brand-navy);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(1.35em * 2);
}

.news-list-body h3 a:hover {
  color: var(--brand-red);
}

.news-list-body p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--ink-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(1.6em * 2);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 2rem;
  align-items: start;
}

.contact-info-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-soft);
}

.contact-info-card h2 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--brand-navy);
  text-transform: uppercase;
}

.contact-info-card > p {
  margin: 0 0 1.5rem;
  color: var(--ink-muted);
}

.contact-rows {
  display: grid;
  gap: 1rem;
}

.contact-row {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.contact-row .icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--brand-red-soft);
  color: var(--brand-red);
}

.contact-row strong {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
  margin-bottom: 0.15rem;
}

.contact-row span,
.contact-row a {
  color: var(--brand-navy);
  font-weight: 600;
  font-size: 0.98rem;
}

.contact-row a:hover {
  color: var(--brand-red);
}

.contact-form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-soft);
}

.contact-form-card h3 {
  margin: 0 0 1.15rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--brand-navy);
  text-transform: uppercase;
}

.page-form {
  display: grid;
  gap: 0.85rem;
}

.page-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.page-form input,
.page-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  border-radius: 10px;
  padding: 0.8rem 0.95rem;
  font-family: var(--font-body);
  font-size: 0.92rem;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}

.page-form input:focus,
.page-form textarea:focus {
  border-color: rgba(200, 16, 46, 0.45);
  background: var(--white);
}

.page-form textarea {
  min-height: 120px;
  resize: vertical;
}

.map-wrap {
  margin-top: 2rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  min-height: 360px;
}

.map-wrap iframe {
  width: 100%;
  height: 380px;
  border: 0;
  display: block;
  filter: grayscale(0.15);
}

/* ---------- Page responsive overrides (must stay last) ---------- */
@media (max-width: 1024px) {
  .page-layout,
  .about-page-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-page-grid img {
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 768px) {
  .container {
    padding-inline: 1.5rem;
  }

  .page-layout {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
  }

  .page-sidebar {
    order: 2;
    width: 100%;
  }

  .page-content {
    order: 1;
    min-width: 0;
    width: 100%;
  }

  .category-grid {
    grid-template-columns: 1fr !important;
    gap: 0.9rem;
    margin-bottom: 2rem;
    width: 100%;
  }

  .category-card {
    width: 100%;
    max-width: 100%;
    padding: 1.2rem 1.15rem;
    gap: 0.9rem;
  }

  .category-card > div:last-child {
    min-width: 0;
    flex: 1;
  }

  .category-card h3 {
    font-size: 1.05rem;
  }

  .category-card p {
    font-size: 0.9rem;
    line-height: 1.5;
  }

  .news-list {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    width: 100%;
  }

  .news-list-item {
    display: flex;
    flex-direction: column;
    grid-template-columns: none;
    gap: 0;
    width: 100%;
    max-width: 100%;
    height: auto;
  }

  .news-list-thumb {
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 10;
  }

  .news-list-body {
    padding: 1.1rem 1.2rem 1.25rem;
  }

  .news-list-body h3 {
    font-size: 1.05rem;
    word-break: break-word;
  }

  .sidebar-box {
    padding: 1.25rem 1.2rem;
    width: 100%;
  }

  .sidebar-links a {
    padding: 0.75rem 0.2rem;
    font-size: 0.94rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .contact-info-card,
  .contact-form-card {
    padding: 1.4rem 1.2rem;
  }

  .page-form .form-row {
    grid-template-columns: 1fr;
  }

  .products-grid {
    grid-template-columns: 1fr !important;
    width: 100%;
  }

  .product-card {
    width: 100%;
    max-width: 100%;
  }

  .section-title {
    word-break: break-word;
  }
}

@media (max-width: 480px) {
  .container {
    padding-inline: 1.35rem;
  }

  .category-grid,
  .products-grid {
    grid-template-columns: 1fr !important;
  }

  .category-card {
    padding: 1.15rem 1.1rem;
  }

  .category-icon {
    width: 44px;
    height: 44px;
  }

  .news-list-body {
    padding: 1.05rem 1.15rem 1.15rem;
  }

  .news-list-body h3 {
    font-size: 1.02rem;
  }

  .sidebar-box {
    padding: 1.15rem 1.1rem;
  }
}

/* ---------- 404 Not Found ---------- */
.nf-section {
  padding: 4rem 0 4.5rem;
  background:
    radial-gradient(ellipse 60% 50% at 80% 0%, rgba(200, 16, 46, 0.05), transparent),
    radial-gradient(ellipse 50% 40% at 10% 100%, rgba(12, 30, 54, 0.05), transparent);
}
.nf-card {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.nf-code {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(6rem, 18vw, 10rem);
  font-weight: 700;
  line-height: 1;
  color: var(--brand-navy);
  letter-spacing: 0.02em;
}
.nf-gear {
  display: inline-grid;
  place-items: center;
  width: 0.85em;
  height: 0.85em;
  color: var(--brand-red);
}
.nf-gear-icon {
  width: 100%;
  height: 100%;
  animation: nfSpin 9s linear infinite;
}
@keyframes nfSpin {
  to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .nf-gear-icon { animation: none; }
}
.nf-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.4vw, 2.2rem);
  color: var(--brand-navy);
  margin: 0 0 0.75rem;
}
.nf-lead {
  color: var(--ink-muted);
  line-height: 1.75;
  max-width: 520px;
  margin: 0 auto 1.75rem;
}
.nf-search {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  max-width: 480px;
  margin: 0 auto 1.5rem;
  padding: 0.4rem 0.4rem 0.4rem 1rem;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
  transition: border-color 0.15s ease;
}
.nf-search:focus-within { border-color: var(--brand-red); }
.nf-search svg { color: var(--brand-metal); flex: 0 0 auto; }
.nf-search input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: transparent;
}
.nf-search .btn-primary {
  border-radius: 999px;
  padding: 0.6rem 1.25rem;
  margin: 0;
}
.nf-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.nf-actions .btn-primary,
.nf-actions .btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.nf-hotline {
  font-size: 0.95rem;
  color: var(--ink-muted);
  margin: 0;
}
.nf-hotline a { color: var(--brand-red); text-decoration: none; }
.nf-hotline a:hover { text-decoration: underline; }
.nf-suggest { margin-top: 3.5rem; }
.nf-suggest .section-title { text-align: center; }

@media (max-width: 640px) {
  .nf-section { padding: 2.5rem 0 3rem; }
  .nf-search { flex-wrap: nowrap; }
  .nf-search .btn-primary { padding: 0.55rem 1rem; font-size: 0.88rem; }
}

/* ---------- App pages (Razor) ---------- */
.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 2rem;
  align-items: start;
}
.detail-media {
  margin: 0;
  border-radius: 4px;
  overflow: hidden;
  background: #eef2f6;
}
.detail-media img {
  width: 100%;
  display: block;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.detail-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--brand-navy);
  margin: 0 0 0.75rem;
  line-height: 1.15;
}
.detail-meta { color: var(--muted); margin: 0 0 0.75rem; }
.detail-price {
  font-size: 1.15rem;
  margin: 0 0 1rem;
  color: var(--brand-navy);
}
.detail-price strong { color: var(--brand-red); font-size: 1.35rem; }
.detail-desc { color: var(--text); line-height: 1.7; margin: 0 0 1.25rem; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 1.15rem;
  border: 1.5px solid var(--brand-navy);
  color: var(--brand-navy);
  font-weight: 600;
  border-radius: 2px;
  transition: 0.2s ease;
}
.btn-outline:hover { background: var(--brand-navy); color: #fff; }

/* ---------- Star rating (shared) ---------- */
.stars { display: inline-flex; gap: 2px; line-height: 1; color: #d4d9e0; font-size: 1rem; letter-spacing: 1px; }
.stars .star.is-on { color: #f5a623; }
.detail-rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1rem;
  font-size: 0.92rem;
  color: var(--ink-muted);
  text-decoration: none;
}
.detail-rating-badge .rating-num { font-weight: 700; color: var(--brand-navy); }
.detail-rating-badge:hover .rating-count { color: var(--brand-red); text-decoration: underline; }

/* ---------- Product reviews ---------- */
.review-section { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.review-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  margin: 1.25rem 0 2rem;
}
.review-score { display: flex; flex-direction: column; gap: 0.35rem; }
.review-score-num { font-family: var(--font-display); font-size: 2.6rem; font-weight: 700; color: var(--brand-navy); line-height: 1; }
.review-score .stars { font-size: 1.2rem; }
.review-score-count { font-size: 0.88rem; color: var(--ink-muted); }
.review-summary-cta { flex: 1; min-width: 240px; text-align: right; }
.review-summary-cta p { margin: 0 0 0.75rem; color: var(--ink-muted); }
.review-summary-cta .btn-primary { display: inline-flex; align-items: center; gap: 0.4rem; }

.review-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 0 0 2rem;
  box-shadow: var(--shadow-soft);
}
.review-form[hidden] { display: none; }
.review-form-row { margin-bottom: 1rem; }
.review-form-row label { display: block; font-weight: 600; color: var(--brand-navy); margin-bottom: 0.4rem; font-size: 0.92rem; }
.review-form-row .req { color: var(--brand-red); }
.review-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.review-form input[type="text"],
.review-form input[type="tel"],
.review-form textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: #fff;
  transition: border-color 0.15s ease;
}
.review-form input:focus,
.review-form textarea:focus { outline: none; border-color: var(--brand-red); }
.review-form textarea { resize: vertical; }
.star-picker { display: inline-flex; gap: 4px; }
.star-pick {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.8rem;
  line-height: 1;
  color: #d4d9e0;
  padding: 0;
  transition: color 0.12s ease, transform 0.12s ease;
}
.star-pick:hover { transform: scale(1.1); }
.star-pick.is-on { color: #f5a623; }
.review-form-actions { display: flex; gap: 0.75rem; align-items: center; margin-top: 0.5rem; }
.review-form-msg { margin: 0.75rem 0 0; font-size: 0.9rem; min-height: 1.2em; }
.review-form-msg.is-error { color: var(--brand-red); }
.review-form-msg.is-ok { color: #1a8a3c; }

.review-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1rem; }
.review-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.35rem;
  background: #fff;
}
.review-item.is-new { animation: reviewIn 0.4s ease; }
@keyframes reviewIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.review-item-head { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.6rem; }
.review-avatar {
  width: 42px; height: 42px;
  flex: 0 0 42px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--brand-navy);
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
}
.review-author { margin: 0; font-weight: 700; color: var(--brand-navy); font-size: 0.98rem; }
.review-item-head .stars { font-size: 0.9rem; }
.review-date { margin-left: auto; font-size: 0.82rem; color: var(--ink-muted); white-space: nowrap; }
.review-text { margin: 0; color: var(--ink); line-height: 1.65; }
.review-empty { color: var(--ink-muted); font-style: italic; }
.review-empty[hidden] { display: none; }
.review-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 1.25rem 0 0;
  flex-wrap: wrap;
}
.review-pager[hidden] { display: none; }
.review-pager-btn {
  appearance: none;
  border: 1.5px solid var(--line);
  background: #fff;
  color: var(--brand-navy);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.5rem 0.95rem;
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.review-pager-btn:hover:not(:disabled) {
  border-color: var(--brand-red);
  color: var(--brand-red);
}
.review-pager-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.review-pager-info {
  font-size: 0.9rem;
  color: var(--ink-muted);
}
.review-pager-info strong { color: var(--brand-navy); }
.review-list.is-loading { opacity: 0.55; pointer-events: none; }

@media (max-width: 640px) {
  .review-summary { flex-direction: column; align-items: flex-start; }
  .review-summary-cta { text-align: left; }
  .review-form-grid { grid-template-columns: 1fr; }
  .review-date { margin-left: 0; }
  .review-item-head { flex-wrap: wrap; }
}

.article-wrap { max-width: 860px; }

/* ---------- Article detail ---------- */
.read-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 1200;
  background: transparent;
  pointer-events: none;
}
.read-progress-bar {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--brand-red), #ff5a75);
  transition: width 0.1s linear;
}

.article-header { margin-bottom: 1.25rem; }
/* Specificity cao hơn .prose ul (display: grid) và .prose ul li::before (bullet đỏ) */
.prose ul.article-meta,
ul.article-meta {
  list-style: none;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0;
  margin: 0;
  padding: 0;
  font-size: 0.875rem;
  color: var(--ink-muted);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.prose ul.article-meta::-webkit-scrollbar { display: none; }
.prose ul.article-meta li.article-meta-item,
.article-meta-item {
  position: static;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  padding-left: 0;
  white-space: nowrap;
  line-height: 1.4;
  font-size: 0.875rem;
}
.prose ul.article-meta li.article-meta-item::before,
.article-meta-item::before {
  content: none;
}
.prose ul.article-meta li.article-meta-item + li.article-meta-item::before,
.article-meta-item + .article-meta-item::before {
  content: "";
  position: static;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--brand-metal);
  margin: 0 0.85rem;
  flex: 0 0 auto;
  opacity: 0.7;
}
.article-meta-item svg {
  color: var(--brand-red);
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
}
.article-meta-item time,
.article-meta-item span {
  font-weight: 500;
  color: var(--brand-steel);
}
.article-meta-item a {
  font-weight: 600;
  color: var(--brand-navy);
  text-decoration: none;
}
.article-meta-item a:hover { color: var(--brand-red); }

/* Table of contents */
.article-toc {
  background: linear-gradient(180deg, #fff, var(--surface));
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand-red);
  border-radius: 10px;
  padding: 1.1rem 1.35rem;
  margin: 0 0 2rem;
}
.article-toc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.article-toc-title {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.08rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--brand-navy);
  margin: 0;
  padding: 0;
  border: none;
}
.article-toc-title svg { color: var(--brand-red); }
.article-toc-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink-muted);
  padding: 0.2rem 0.3rem;
}
.article-toc-toggle:hover { color: var(--brand-red); }
.article-toc-toggle svg { transition: transform 0.2s ease; }
.article-toc.is-collapsed .article-toc-toggle svg { transform: rotate(180deg); }
.article-toc-list {
  margin: 0.85rem 0 0;
  padding: 0 0 0 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  counter-reset: toc;
  overflow: hidden;
  transition: max-height 0.25s ease, opacity 0.2s ease;
}
.article-toc.is-collapsed .article-toc-list {
  max-height: 0;
  margin-top: 0;
  opacity: 0;
}
.article-toc-item { margin: 0; }
.article-toc-item.level-3 { padding-left: 1rem; font-size: 0.94rem; }
.article-toc-item a {
  color: var(--brand-steel);
  text-decoration: none;
  line-height: 1.5;
  transition: color 0.15s ease;
}
.article-toc-item a:hover { color: var(--brand-red); text-decoration: underline; }
.article-toc-item.is-active > a { color: var(--brand-red); font-weight: 700; }

/* Heading anchor offset khi click TOC (tránh bị header sticky che) */
.article-content h2,
.article-content h3 { scroll-margin-top: calc(var(--nav-h, 52px) + 20px); }

/* GEO intro: H2 hỏi + đoạn trả lời ngắn đầu bài */
.article-content .geo-intro {
  margin: 0 0 1.25rem;
  padding-bottom: 0.25rem;
}
.article-content .geo-intro h2 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}
.article-content .geo-intro p {
  margin-bottom: 0;
}

/* Floating TOC (kiểu plugin WordPress) — desktop: sát mép trái khung bài viết, ~25% từ trên xuống */
.toc-float {
  position: fixed;
  left: 1.25rem;
  top: 25vh;
  z-index: 1150;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}
.toc-float.is-visible { opacity: 1; visibility: visible; transform: none; }
.toc-float-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-red), var(--brand-red-dark));
  box-shadow: 0 10px 28px rgba(200, 16, 46, 0.4);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.toc-float-btn:hover { transform: translateY(-2px) scale(1.05); }
.toc-float.is-open .toc-float-btn { transform: scale(0.92); }
.toc-float-panel {
  position: absolute;
  left: 0;
  top: calc(100% + 0.75rem);
  width: min(340px, calc(100vw - 2.5rem));
  max-height: min(60vh, 460px);
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-lift);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px) scale(0.98);
  transform-origin: top left;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}
.toc-float.is-open .toc-float-panel { opacity: 1; visibility: visible; transform: none; }
.toc-float-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.toc-float-head > span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-display);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--brand-navy);
}
.toc-float-head svg { color: var(--brand-red); }
.toc-float-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink-muted);
  display: grid;
  place-items: center;
  padding: 0.2rem;
  border-radius: 6px;
}
.toc-float-close:hover { color: var(--brand-red); background: var(--brand-red-soft); }
.toc-float-list {
  list-style: none;
  margin: 0;
  padding: 0.6rem 0.5rem;
  overflow-y: auto;
  counter-reset: none;
}
.toc-float-item { margin: 0; }
.toc-float-item a {
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  color: var(--brand-steel);
  text-decoration: none;
  font-size: 0.92rem;
  line-height: 1.45;
  border-left: 3px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.toc-float-item.level-3 a { padding-left: 1.65rem; font-size: 0.88rem; }
.toc-float-item a:hover { background: var(--surface); color: var(--brand-navy); }
.toc-float-item.is-active a {
  background: var(--brand-red-soft);
  color: var(--brand-red);
  font-weight: 600;
  border-left-color: var(--brand-red);
}

@media (max-width: 768px) {
  /* Mobile: về góc dưới trái (trên thanh CTA), panel mở lên trên */
  .toc-float { left: 1rem !important; top: auto; bottom: 5.5rem; }
  .toc-float-btn { width: 48px; height: 48px; }
  .toc-float-panel {
    top: auto;
    bottom: calc(100% + 0.75rem);
    transform: translateY(12px) scale(0.98);
    transform-origin: bottom left;
  }
  .toc-float.is-open .toc-float-panel { transform: none; }
}

/* Share */
.article-share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}
.article-share-label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 700;
  color: var(--brand-navy);
  font-size: 0.95rem;
}
.article-share-label svg { color: var(--brand-red); }
.article-share-links { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  border: 1.5px solid var(--line);
  background: #fff;
  color: var(--brand-navy) !important;
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: 0.18s ease;
}
.share-btn:hover { border-color: var(--brand-red); color: var(--brand-red) !important; }
.share-fb:hover { border-color: #1877f2; color: #1877f2 !important; }
.share-zalo:hover { border-color: #0068ff; color: #0068ff !important; }
.share-copy.is-copied { border-color: #1a8a3c; color: #1a8a3c !important; }

@media (max-width: 640px) {
  .prose ul.article-meta, ul.article-meta { font-size: 0.82rem; }
  .prose ul.article-meta li.article-meta-item + li.article-meta-item::before,
  .article-meta-item + .article-meta-item::before { margin: 0 0.6rem; }
  .article-share { flex-direction: column; align-items: flex-start; }
}

/* Lightbox gallery — progressive enhancement, ảnh gốc vẫn trong DOM (SEO) */
.ht-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.ht-lightbox.is-open {
  display: flex;
}
.ht-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 16, 28, 0.88);
  backdrop-filter: blur(2px);
}
.ht-lightbox-dialog {
  position: relative;
  z-index: 1;
  width: min(1100px, 96vw);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
.ht-lightbox-stage {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40vh;
  z-index: 1;
}
.ht-lightbox-stage img {
  max-width: 100%;
  max-height: 78vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  background: #0b1524;
  position: relative;
  z-index: 0;
  pointer-events: none;
}
.ht-lightbox-caption {
  margin: 0;
  color: #e2e8f0;
  font-size: 0.95rem;
  text-align: center;
  max-width: 42rem;
}
.ht-lightbox-counter {
  color: #94a3b8;
  font-size: 0.85rem;
}
.ht-lightbox-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--brand-navy);
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
  transition: background 0.2s ease, transform 0.2s ease;
  z-index: 5;
  user-select: none;
}
.ht-lightbox-btn:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.06);
}
.ht-lightbox-btn:disabled {
  opacity: 0.35;
  cursor: default;
  transform: translateY(-50%);
}
.ht-lightbox-prev { left: 0.5rem; }
.ht-lightbox-next { right: 0.5rem; }
.ht-lightbox-close {
  position: absolute;
  top: -0.25rem;
  right: 0;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--brand-navy);
  font-size: 1.35rem;
  cursor: pointer;
  z-index: 6;
}
.ht-lightbox-close:hover { background: #fff; }
body.ht-lightbox-open { overflow: hidden; }

@media (max-width: 768px) {
  .ht-lightbox-btn {
    width: 38px;
    height: 38px;
    font-size: 1.2rem;
  }
  .ht-lightbox-prev { left: 0; }
  .ht-lightbox-next { right: 0; }
  .ht-lightbox-stage img { max-height: 70vh; }
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 2rem;
  justify-content: center;
}
.pagination a,
.pagination span {
  min-width: 2.25rem;
  height: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.65rem;
  border: 1px solid #d7dee7;
  color: var(--brand-navy);
  font-weight: 600;
  font-size: 0.9rem;
}
.pagination a:hover { border-color: var(--brand-red); color: var(--brand-red); }
.pagination .is-active {
  background: var(--brand-red);
  border-color: var(--brand-red);
  color: #fff;
}
.empty-state {
  text-align: center;
  color: var(--muted);
  padding: 2rem 1rem;
}
.search-page-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  max-width: 720px;
}
.search-page-form input {
  width: 100%;
  border: 1px solid #d7dee7;
  padding: 0.8rem 1rem;
  font: inherit;
}
.search-meta { color: var(--muted); margin: 0 0 1.5rem; }
.map-wrap {
  margin-top: 2rem;
  border-radius: 4px;
  overflow: hidden;
  min-height: 320px;
  border: 1px solid #e5eaf0;
}
.map-wrap iframe { width: 100%; height: 360px; border: 0; display: block; }
.section-title a { color: inherit; }
.section-title a:hover { color: var(--brand-red); }
body.drawer-open { overflow: hidden; }
@media (max-width: 900px) {
  .detail-layout { grid-template-columns: 1fr; }
  .search-page-form { grid-template-columns: 1fr; }
}

/* ========================================
   Home sections — USP, Price, Process, Gallery, Testimonials, FAQ
   ======================================== */
.container-narrow { max-width: 860px; }

.section-lead {
  margin: -1rem 0 2.25rem;
  max-width: 720px;
  color: var(--ink-muted);
  font-size: 1.02rem;
  line-height: 1.6;
}

/* ---------- USP & số liệu ---------- */
.usp-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.usp-card {
  position: relative;
  padding: 1.75rem 1.35rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  text-align: center;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.usp-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-red), var(--brand-red-dark));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.usp-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lift);
  border-color: transparent;
}

.usp-card:hover::before { transform: scaleX(1); }

.usp-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--brand-red);
  background: var(--brand-red-soft);
}

.usp-number {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.6rem);
  font-weight: 700;
  line-height: 1;
  color: var(--brand-navy);
  margin: 0 0 0.35rem;
}

.usp-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--brand-red);
  margin: 0 0 0.5rem;
}

.usp-card p:last-child {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

/* ---------- Bảng giá ---------- */
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.85rem 1.5rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.price-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }

.price-card.is-popular {
  border-color: var(--brand-red);
  box-shadow: 0 18px 44px rgba(200, 16, 46, 0.16);
}

.price-badge {
  position: absolute;
  top: -0.85rem;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand-red), var(--brand-red-dark));
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.price-card-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--brand-red);
  margin-bottom: 0.75rem;
}

.price-card-head h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--brand-navy);
  margin: 0;
}

.price-value {
  font-size: 1.05rem;
  color: var(--ink-muted);
  margin: 0 0 1.1rem;
}

.price-value strong {
  font-family: var(--font-display);
  font-size: 1.9rem;
  color: var(--brand-red);
}

.price-value span { font-size: 0.9rem; }

.price-feats {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: grid;
  gap: 0.55rem;
  flex: 1;
}

.price-feats li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.92rem;
  color: var(--brand-steel);
}

.price-feats li i,
.price-feats li svg { color: var(--brand-red); flex-shrink: 0; margin-top: 0.15rem; }

.price-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1rem;
  border-radius: 10px;
  border: 2px solid var(--brand-red);
  color: var(--brand-red);
  font-weight: 700;
  transition: background 0.2s, color 0.2s;
}

.price-cta:hover { background: var(--brand-red); color: #fff; }

.price-card.is-popular .price-cta {
  background: linear-gradient(135deg, var(--brand-red), var(--brand-red-dark));
  color: #fff;
}

.price-card.is-popular .price-cta:hover { filter: brightness(1.08); }

.price-quote-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: 2rem;
  padding: 1.5rem 1.75rem;
  border-radius: 16px;
  background: linear-gradient(120deg, var(--brand-navy), var(--brand-steel));
  color: #fff;
}

.price-quote-text {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.price-quote-text > i,
.price-quote-text > svg { color: #ffd35c; flex-shrink: 0; }

.price-quote-text strong { display: block; font-size: 1.15rem; }
.price-quote-text span { color: rgba(255, 255, 255, 0.82); font-size: 0.95rem; }

.price-quote-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }

.btn-zalo,
.btn-call-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.3rem;
  border-radius: 10px;
  font-weight: 700;
  transition: transform 0.2s, background 0.2s, color 0.2s;
}

.btn-zalo { background: linear-gradient(135deg, #0068ff, #0050c8); color: #fff; }
.btn-zalo:hover { transform: translateY(-2px); }

.btn-call-outline { border: 2px solid rgba(255, 255, 255, 0.55); color: #fff; }
.btn-call-outline:hover { background: #fff; color: var(--brand-navy); }

/* ---------- Quy trình ---------- */
.process-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  counter-reset: step;
}

.process-step {
  position: relative;
  padding: 2rem 1.35rem 1.5rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  text-align: center;
}

/* Đường nối ngang giữa các bước (desktop) */
.process-steps .process-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 2.4rem;
  right: -0.75rem;
  width: 1.5rem;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--brand-metal) 0 6px, transparent 6px 12px);
  z-index: 1;
}

.process-index {
  position: absolute;
  top: -0.9rem;
  left: 50%;
  transform: translateX(-50%);
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-red), var(--brand-red-dark));
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: 0 6px 16px rgba(200, 16, 46, 0.35);
}

.process-icon {
  width: 60px;
  height: 60px;
  margin: 0.5rem auto 0.9rem;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--brand-navy);
  background: var(--surface);
}

.process-step h3 { font-size: 1.05rem; font-weight: 700; color: var(--brand-navy); margin: 0 0 0.5rem; }
.process-step p { margin: 0; color: var(--ink-muted); font-size: 0.92rem; line-height: 1.55; }

/* ---------- Gallery công trình ---------- */
.gallery-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.75rem;
}

.gallery-tab {
  padding: 0.6rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--brand-steel);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.gallery-tab:hover { border-color: var(--brand-red); color: var(--brand-red); }

.gallery-tab.is-active {
  background: linear-gradient(135deg, var(--brand-red), var(--brand-red-dark));
  border-color: transparent;
  color: #fff;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.35rem;
}

.gallery-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gallery-card.is-hidden { display: none; }

.gallery-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); }

.gallery-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--surface);
}

.gallery-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-card:hover .gallery-media img { transform: scale(1.06); }

.gallery-cate {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: rgba(12, 30, 54, 0.82);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
}

.gallery-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.9rem 1rem 1.1rem;
}

.gallery-info h3 {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--brand-navy);
  margin: 0;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gallery-more {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--brand-red);
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
}

/* ---------- Testimonials ---------- */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.75rem 1.5rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
}

.testimonial-stars { display: flex; gap: 0.15rem; color: #f5a623; }

.testimonial-card blockquote {
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--brand-steel);
  font-size: 0.98rem;
  line-height: 1.65;
  flex: 1;
}

.testimonial-card figcaption {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-red), var(--brand-red-dark));
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
}

.testimonial-card figcaption strong { display: block; color: var(--brand-navy); }
.testimonial-card figcaption small { color: var(--ink-muted); font-size: 0.82rem; }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 0.85rem; }

.faq-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  overflow: hidden;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.faq-item.is-open { border-color: var(--brand-red); box-shadow: var(--shadow-soft); }

.faq-q { margin: 0; }

.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  background: transparent;
  border: 0;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-body);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--brand-navy);
}

.faq-chevron { color: var(--brand-red); flex-shrink: 0; transition: transform 0.25s ease; }
.faq-item.is-open .faq-chevron { transform: rotate(180deg); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-a p {
  margin: 0;
  padding: 0 1.25rem 1.15rem;
  color: var(--brand-steel);
  line-height: 1.65;
}

/* ---------- Sticky bottom CTA bar (mobile) ---------- */
.mobile-cta-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 95;
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  box-shadow: 0 -6px 20px rgba(12, 30, 54, 0.18);
}

.mobile-cta-bar a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 0.5rem;
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
}

.mobile-cta-bar .cta-call { background: linear-gradient(135deg, var(--brand-red), var(--brand-red-dark)); }
.mobile-cta-bar .cta-zalo { background: linear-gradient(135deg, #0068ff, #0050c8); }

/* ---------- Responsive các section trang chủ ---------- */
@media (max-width: 1024px) {
  .usp-grid,
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .price-grid,
  .gallery-grid,
  .testimonial-grid { grid-template-columns: repeat(2, 1fr); }
  .process-steps .process-step:not(:last-child)::after { display: none; }
}

@media (max-width: 768px) {
  .mobile-cta-bar { display: grid; }
  .float-actions { bottom: 5.25rem; }
  main { scroll-margin-bottom: 4rem; }

  .price-grid,
  .gallery-grid,
  .testimonial-grid { grid-template-columns: 1fr; }

  .price-quote-cta { flex-direction: column; align-items: flex-start; }
  .price-quote-actions { width: 100%; }
  .price-quote-actions a { flex: 1; justify-content: center; }
}

@media (max-width: 560px) {
  .usp-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr; }
  .gallery-tabs { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 0.35rem; }
  .gallery-tab { white-space: nowrap; }
}
