/* Hyundai Gia Định — giao diện WordPress. Màu và cỡ chữ đổi ở :root. */

@font-face { font-family: "HGDSans"; font-weight: 400; font-display: swap; src: url(../fonts/HyundaiSansText-Regular.woff2) format("woff2"), url(../fonts/HyundaiSansText-Regular.otf) format("opentype"); }
@font-face { font-family: "HGDSans"; font-weight: 500; font-display: swap; src: url(../fonts/HyundaiSansText-Medium.woff2) format("woff2"), url(../fonts/HyundaiSansText-Medium.otf) format("opentype"); }
@font-face { font-family: "HGDSans"; font-weight: 700; font-display: swap; src: url(../fonts/HyundaiSansText-Bold.woff2) format("woff2"), url(../fonts/HyundaiSansText-Bold.otf) format("opentype"); }
@font-face { font-family: "HGDHead"; font-weight: 400; font-display: swap; src: url(../fonts/HyundaiSansHead-Medium.woff2) format("woff2"), url(../fonts/HyundaiSansHead-Medium.otf) format("opentype"); }
@font-face { font-family: "HGDHead"; font-weight: 500; font-display: swap; src: url(../fonts/HyundaiSansHead-Medium.woff2) format("woff2"), url(../fonts/HyundaiSansHead-Medium.otf) format("opentype"); }
@font-face { font-family: "HGDHead"; font-weight: 700; font-display: swap; src: url(../fonts/HyundaiSansHead-Medium.woff2) format("woff2"), url(../fonts/HyundaiSansHead-Medium.otf) format("opentype"); }

:root {
  --navy: #002c5f;
  --navy-2: #00376f;
  --sky: #00aad2;
  --sand: #f6f3f2;
  --ink: #1c1b1b;
  --muted: #5f6670;
  --line: #e4e7eb;
  --wrap: 1200px;
  --head-h: 76px;
  --font: "HGDSans", "Segoe UI", Roboto, Arial, sans-serif;
  --font-head: "HGDHead", "HGDSans", "Segoe UI", Roboto, Arial, sans-serif;
}

/* ---------- Nền tảng ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-padding-top: calc(var(--head-h) + 70px); }
body { margin: 0; font: 16px/1.6 var(--font); color: var(--ink); background: #fff; overflow-x: clip; -webkit-font-smoothing: antialiased; }
img, video, iframe { max-width: 100%; }
img { height: auto; }
a { color: var(--navy); text-decoration: none; transition: color .2s, background-color .2s, border-color .2s; }
a:hover { color: var(--sky); }
h1, h2, h3, h4, h5 { font-family: var(--font-head); line-height: 1.25; letter-spacing: -0.01em; color: var(--ink); margin: 0 0 .6em; }
button, input, select, textarea, option, optgroup { font: inherit; font-family: var(--font); color: inherit; }
svg text { font-family: var(--font-head) !important; }
/* Nội dung dán từ nơi khác (Word, Facebook) không được đổi font: chỉ dùng Hyundai Sans Text / Head */
.hgd-entry, .hgd-entry *:not(h1):not(h2):not(h3):not(h4):not(h5):not(h6) { font-family: var(--font) !important; }
.hgd-entry h1, .hgd-entry h2, .hgd-entry h3, .hgd-entry h4, .hgd-entry h5, .hgd-entry h6, .hgd-entry h1 *, .hgd-entry h2 *, .hgd-entry h3 *, .hgd-entry h4 *, .hgd-entry h5 *, .hgd-entry h6 * { font-family: var(--font-head) !important; }
::placeholder { font-family: var(--font); }
button { cursor: pointer; }
[hidden] { display: none !important; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.screen-reader-text:focus { position: fixed !important; top: 8px; left: 8px; z-index: 10000; width: auto; height: auto; clip: auto; padding: 10px 16px; background: #fff; }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 2px; }
.hgd-wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.hgd-narrow { max-width: 860px; }
.hgd-center { text-align: center; margin-top: 40px; }
.hgd-ico { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }

.hgd-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 24px;
  border: 1px solid var(--navy); background: var(--navy); color: #fff; font-weight: 600; font-size: 14px; letter-spacing: .02em; text-transform: uppercase;
}
.hgd-btn:hover { background: var(--navy-2); border-color: var(--navy-2); color: #fff; }
.hgd-btn-line { background: #fff; color: var(--navy); }
.hgd-btn-line:hover { background: var(--navy); color: #fff; }
.hgd-btn-sky { background: var(--sky); border-color: var(--sky); }

/* ---------- Dải trên cùng ---------- */
.hgd-topbar { background: var(--navy); color: #c9d4e3; font-size: 13px; }
.hgd-topbar .hgd-wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 38px; }
.hgd-addr { display: flex; gap: 22px; min-width: 0; white-space: nowrap; }
.hgd-addr span { overflow: hidden; text-overflow: ellipsis; }
.hgd-topnav { display: flex; align-items: center; gap: 18px; white-space: nowrap; }
.hgd-topnav ul { display: flex; gap: 18px; margin: 0; padding: 0; list-style: none; }
.hgd-topnav a { color: #c9d4e3; }
.hgd-topnav a:hover { color: #fff; }
.hgd-topnav .hgd-hotline { color: #fff; font-weight: 700; }

/* ---------- Đầu trang ---------- */
.hgd-header { position: sticky; top: 0; z-index: 900; background: #fff; box-shadow: 0 1px 0 #e9edf2; }
.hgd-header-row { display: flex; align-items: center; gap: 24px; min-height: var(--head-h); }
.hgd-logo { flex: 0 1 auto; display: block; min-width: 0; }
.hgd-logo img { max-width: 100%; }
.hgd-logo img { display: block; height: 26px; width: auto; object-fit: contain; object-position: left center; }
.hgd-nav { flex: 1 1 auto; display: flex; justify-content: center; min-width: 0; }
.hgd-menu { display: flex; align-items: center; margin: 0; padding: 0; list-style: none; }
.hgd-menu > li { position: static; display: flex; align-items: center; }
.hgd-menu > li:not(.hgd-has-mega) { position: relative; }
.hgd-menu > li > a { display: flex; align-items: center; height: var(--head-h); padding: 0 16px; color: var(--ink); font-size: 15px; font-weight: 500; white-space: nowrap; }
.hgd-menu > li > a:hover, .hgd-menu > li.current-menu-item > a, .hgd-menu > li.current-menu-ancestor > a { color: var(--navy); }
.hgd-sub-toggle { display: inline-flex; margin-left: -12px; padding: 4px; border: 0; background: none; color: var(--muted); }
.hgd-sub-toggle .hgd-ico { width: 16px; height: 16px; transition: transform .2s; }
.hgd-menu .sub-menu {
  position: absolute; top: 100%; left: 0; min-width: 240px; margin: 0; padding: 8px 0; list-style: none; background: #fff;
  box-shadow: 0 16px 36px rgba(0, 20, 50, .14); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .2s;
}
.hgd-menu .sub-menu a { display: block; padding: 10px 20px; color: var(--ink); font-size: 14px; }
.hgd-menu .sub-menu a:hover { background: var(--sand); color: var(--navy); }
.hgd-header-tools { flex: 0 0 auto; display: flex; align-items: center; gap: 14px; }
.hgd-search { position: relative; display: flex; align-items: center; }
.hgd-search input { width: 0; padding: 0; border: 0; border-bottom: 1px solid transparent; background: transparent; transition: width .25s, padding .25s; outline: 0; }
.hgd-search.is-open input { width: 190px; padding: 6px 4px; border-bottom-color: var(--navy); }
.hgd-search button { display: flex; padding: 6px; border: 0; background: none; color: var(--navy); }
.hgd-cta { display: inline-flex; align-items: center; height: 46px; padding: 0 24px; background: var(--navy); color: #fff; font-weight: 500; font-size: 15px; white-space: nowrap; }
.hgd-cta:hover { background: var(--navy-2); color: #fff; }
.hgd-dealer { display: flex; align-items: center; height: 46px; padding-left: 18px; border-left: 1px solid #d5dbe3; color: #002C5F; font-family: "HGDHead", sans-serif; font-weight: 500; font-size: 20px; line-height: 1; letter-spacing: -.01em; white-space: nowrap; }
.hgd-dealer:hover { color: #002C5F; }
.hgd-dealer img { display: block; max-height: 40px; width: auto; }
.hgd-burger { display: none; padding: 6px; border: 0; background: none; color: var(--navy); }
.hgd-burger .hgd-ico { width: 28px; height: 28px; }

/* Menu con dạng thanh ngang toàn chiều rộng (kiểu Toyota): nền trắng, chữ đen, rê chuột chữ xanh đậm có gạch chân */
@media (min-width: 992px) {
  .hgd-menu > li.menu-item-has-children:not(.hgd-has-mega) { position: static; }
  .hgd-menu > li.menu-item-has-children > .sub-menu {
    left: 0; right: 0; top: 100%; min-width: 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 0 8px; padding: 0 20px;
    background: #fff; border-top: 1px solid var(--line); box-shadow: 0 14px 28px rgba(0, 20, 50, .10);
  }
  .hgd-menu > li.menu-item-has-children > .sub-menu > li { position: relative; }
  .hgd-menu > li.menu-item-has-children > .sub-menu a {
    position: relative; display: flex; align-items: center; height: 60px; padding: 0 22px; background: none;
    color: #111; font-size: 14px; font-weight: 500; letter-spacing: .02em; text-transform: uppercase; white-space: nowrap;
  }
  .hgd-menu > li.menu-item-has-children > .sub-menu a::after {
    content: ""; position: absolute; left: 22px; right: 22px; bottom: 0; height: 3px; background: var(--navy); transform: scaleX(0); transition: transform .2s;
  }
  .hgd-menu > li.menu-item-has-children > .sub-menu a:hover,
  .hgd-menu > li.menu-item-has-children > .sub-menu .current-menu-item > a { background: none; color: var(--navy); }
  .hgd-menu > li.menu-item-has-children > .sub-menu a:hover::after,
  .hgd-menu > li.menu-item-has-children > .sub-menu .current-menu-item > a::after { transform: scaleX(1); }
}

/* Bảng xe thả xuống (5 tab) */
.hgd-mega {
  position: absolute; left: 0; right: 0; top: 100%; padding: 32px 0 26px; background: #fff; border-top: 1px solid var(--line);
  box-shadow: 0 24px 40px rgba(0, 20, 50, .12); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .2s; max-height: calc(100vh - var(--head-h) - 40px); overflow: auto;
}
@media (hover: hover) and (min-width: 992px) {
  .hgd-menu > li:hover > .sub-menu, .hgd-menu > li:focus-within > .sub-menu,
  .hgd-menu > li:hover > .hgd-mega, .hgd-menu > li:focus-within > .hgd-mega { opacity: 1; visibility: visible; transform: none; }
  .hgd-menu > li:hover > .hgd-sub-toggle .hgd-ico { transform: rotate(180deg); }
}
.hgd-menu > li.is-open > .sub-menu, .hgd-menu > li.is-open > .hgd-mega { opacity: 1; visibility: visible; transform: none; }
.hgd-mega .hgd-tabs { display: flex; justify-content: space-between; gap: 0; margin: 0 0 28px; padding: 0; border-bottom: 1px solid #c9ced6; overflow-x: auto; }
.hgd-mega .hgd-tabs button { flex: 1 1 0; min-width: max-content; padding: 6px 18px 16px; border: 0; border-bottom: 3px solid transparent; margin-bottom: -1px; background: none; color: #6b7280; font-size: 15px; font-weight: 400; letter-spacing: .02em; text-transform: uppercase; white-space: nowrap; cursor: pointer; }
.hgd-mega .hgd-tabs button:hover { color: var(--navy); }
.hgd-mega .hgd-tabs button.is-on { color: #111; font-weight: 500; border-bottom-color: var(--navy); }
.hgd-mega-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px 48px; }
.hgd-mega-car { display: flex; flex-direction: column; min-width: 0; color: var(--ink); }
.hgd-mega-badge { min-height: 16px; color: #e4002b; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; }
.hgd-mega-img { display: flex; align-items: center; justify-content: center; height: 150px; margin: 2px 0 10px; }
.hgd-mega-img img { width: auto; height: auto; max-width: 100%; max-height: 100%; transition: transform .3s; }
.hgd-mega-car:hover .hgd-mega-img img { --lift: 4px; }
/* Ảnh xe theo độ lớn thật (biến --s, --ox... do hgd_car_fit() tính) */
.hgd-car-img img, .hgd-mega-img img { transform-origin: var(--ox, 50%) var(--oy, 100%); transform: translate(var(--tx, 0%), calc(var(--ty, 0%) - var(--lift, 0px))) scale(var(--s, 1)); }
.hgd-mega-name { color: #111; font-family: var(--font-head); font-size: 19px; font-weight: 400; text-transform: uppercase; line-height: 1.25; }
.hgd-mega-name:hover { color: var(--navy); }
.hgd-mega-car small { display: block; padding: 3px 0 10px; border-bottom: 1px solid #d5dbe3; color: #002C5F; font-size: 13px; font-weight: 500; }
.hgd-mega-links { display: flex; gap: 18px; padding-top: 10px; font-size: 13px; }
.hgd-mega-links a { color: #111; text-decoration: underline; text-underline-offset: 3px; }
.hgd-mega-links a:hover { color: var(--navy); }
.hgd-pd-catalog { margin: 14px 0 0; font-size: 14px; }
.hgd-pd-catalog a { color: var(--navy); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.hgd-mega-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); }
.hgd-mega-foot > a { font-weight: 700; }
.hgd-mega-foot span { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Tab + thẻ xe kiểu Toyota ---------- */
.hgd-tabs { display: flex; border-bottom: 1px solid var(--ink); margin: 0 0 32px; overflow-x: auto; scrollbar-width: none; }
.hgd-tabs::-webkit-scrollbar { display: none; }
.hgd-tabs button {
  position: relative; flex: 0 0 auto; padding: 16px 22px 14px; border: 0; background: none; color: var(--muted);
  font-size: 15px; font-weight: 500; text-transform: uppercase; letter-spacing: .03em; white-space: nowrap;
}
.hgd-tabs button::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--navy); transform: scaleX(0); transition: transform .2s; }
.hgd-tabs button:hover { color: var(--navy); }
.hgd-tabs button.is-on { color: var(--ink); font-weight: 700; }
.hgd-tabs button.is-on::after { transform: scaleX(1); }
.hgd-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 44px 48px; }
.hgd-car { min-width: 0; }
.hgd-car-img { display: flex; align-items: flex-end; justify-content: center; height: 120px; margin-bottom: 18px; }
.hgd-car-img img { width: auto; height: auto; max-width: 100%; max-height: 100%; transition: transform .35s; }
.hgd-car:hover .hgd-car-img img { --lift: 5px; }
@media (min-width: 992px) { .hgd-car-img { height: 156px; } } /* máy tính: ảnh xe to hơn ~130% */
.hgd-car-name { margin: 0; font-size: 20px; font-weight: 500; text-transform: uppercase; }
.hgd-car-name a { color: var(--ink); }
.hgd-car-name a:hover { color: var(--navy); }
.hgd-car-price { margin: 4px 0 0; padding-bottom: 12px; border-bottom: 1px solid #d8dce1; color: #002C5F; font-size: 13px; font-weight: 500; }
.hgd-car-links { display: flex; gap: 22px; margin: 12px 0 0; }
.hgd-car-links a { font-size: 13px; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.hgd-car-links a.hgd-quote { color: var(--navy); font-weight: 700; }
.hgd-car.is-hidden, .hgd-mega-car.is-hidden { display: none; }

/* ---------- Banner trượt full HD (1920 x 1080) ---------- */
.hgd-hero { background: var(--navy); }
.hgd-slider { position: relative; overflow: hidden; width: 100%; aspect-ratio: 16 / 9; min-height: 220px; } /* banner trải hết chiều ngang, giữ đủ ảnh 16:9 không cắt */
.hgd-slides { display: flex; height: 100%; transition: transform .6s ease; will-change: transform; }
.hgd-slides.is-drag { transition: none; }
.hgd-slide { flex: 0 0 100%; height: 100%; }
.hgd-slide a { display: block; height: 100%; }
.hgd-slide img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hgd-ctrl { position: absolute; left: 50%; bottom: 66px; z-index: 3; transform: translateX(-50%); display: flex; align-items: center; gap: 14px; }
.hgd-arrow { width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: rgba(0, 44, 95, .55); color: #fff; font-size: 30px; line-height: 36px; }
.hgd-arrow:hover { background: var(--navy); }
.hgd-dots { display: flex; gap: 10px; }
.hgd-dots button { width: 34px; height: 4px; padding: 0; border: 0; border-radius: 2px; background: rgba(255, 255, 255, .55); box-shadow: 0 0 3px rgba(0, 0, 0, .25); }
.hgd-dots button.is-on { background: #fff; }
.hgd-hero-empty { padding: 120px 0 140px; color: #fff; }
.hgd-hero-empty h1 { color: #fff; font-size: clamp(32px, 4vw, 52px); }

.hgd-quick { position: relative; z-index: 5; margin-top: -46px; }
.hgd-quick ul { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; background: #fff; box-shadow: 0 12px 30px rgba(0, 20, 50, .12); }
.hgd-quick li { border-right: 1px solid #edf0f3; }
.hgd-quick li:last-child { border-right: 0; }
.hgd-quick a { display: flex; align-items: center; gap: 16px; height: 100%; padding: 24px 26px; color: var(--ink); }
.hgd-quick a:hover { background: var(--sand); color: var(--ink); }
.hgd-quick .hgd-ico { width: 30px; height: 30px; color: var(--navy); }
.hgd-quick b { display: block; color: var(--navy); font-size: 16px; }
.hgd-quick small { display: block; color: var(--muted); font-size: 13px; margin-top: 3px; }

/* ---------- Khối nội dung chung ---------- */
.hgd-section { padding: 80px 0; }
.hgd-sand { background: var(--sand); }
.hgd-head { margin: 0 0 36px; }
.hgd-head small, .hgd-page-head small, .hgd-pd-h small {
  display: block; margin-bottom: 10px; color: var(--sky); font: 600 13px/1 var(--font); letter-spacing: .2em; text-transform: uppercase;
}
.hgd-head h2 { margin: 0; font-size: clamp(28px, 3vw, 40px); color: var(--navy); }
.hgd-page-head { padding: 64px 0 40px; background: var(--sand); }
.hgd-page-head h1 { margin: 0; font-size: clamp(28px, 3.4vw, 44px); color: var(--navy); }
.hgd-page-head p { margin: 14px 0 0; color: var(--muted); max-width: 720px; }
.hgd-page-head time { display: block; margin-top: 12px; color: var(--muted); font-size: 14px; }
.hgd-page-head a { color: var(--sky); }
.hgd-404 { padding: 120px 0; }
.hgd-404 p { display: flex; gap: 12px; flex-wrap: wrap; }

.hgd-entry { padding-top: 40px; padding-bottom: 64px; font-size: 17px; line-height: 1.75; color: #374151; }
.hgd-entry > *:first-child { margin-top: 0; }
.hgd-entry h2, .hgd-entry h3, .hgd-entry h4 { color: var(--navy); margin: 1.6em 0 .6em; }
.hgd-entry h2 { font-size: clamp(24px, 2.4vw, 32px); }
.hgd-entry h3 { font-size: clamp(20px, 2vw, 26px); }
.hgd-entry img { display: block; margin: 8px auto 24px; }
.hgd-entry figure { margin: 0 0 24px; }
.hgd-entry table { width: 100%; border-collapse: collapse; margin: 0 0 24px; font-size: 15px; display: block; overflow-x: auto; }
.hgd-entry td, .hgd-entry th { padding: 10px 12px; border: 1px solid var(--line); text-align: left; }
.hgd-entry iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; }
/* Bài viết tin tức: căn đều 2 bên, khoảng cách dòng đều (ghi đè định dạng cũ dán từ Word/Facebook) */
.hgd-article .hgd-entry p, .hgd-article .hgd-entry li, .hgd-article .hgd-entry blockquote, .hgd-article .hgd-entry > div { text-align: justify !important; text-justify: inter-word; line-height: 1.8 !important; }
.hgd-article .hgd-entry p { margin: 0 0 1.1em !important; }
.hgd-article .hgd-entry li { margin: 0 0 .5em !important; }
.hgd-article .hgd-entry ul, .hgd-article .hgd-entry ol { margin: 0 0 1.1em; padding-left: 1.4em; }
.hgd-article .hgd-entry p span, .hgd-article .hgd-entry li span, .hgd-article .hgd-entry p font { font-size: inherit !important; line-height: inherit !important; font-family: inherit !important; }
.hgd-article .hgd-entry p:empty, .hgd-article .hgd-entry p:has(> br:only-child) { display: none; }
.hgd-article .hgd-entry h2, .hgd-article .hgd-entry h3, .hgd-article .hgd-entry h4 { text-align: left !important; line-height: 1.4; }
.hgd-article .hgd-entry .wp-block-image, .hgd-article .hgd-entry figure, .hgd-article .hgd-entry p:has(> img:only-child), .hgd-article .hgd-entry figcaption { text-align: center !important; }
.hgd-article .hgd-entry img { max-width: 100%; height: auto; }
.hgd-article .hgd-page-head h1 { text-align: justify; text-justify: inter-word; }

.hgd-services { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.hgd-service { display: flex; flex-direction: column; background: #fff; color: var(--ink); box-shadow: 0 6px 20px rgba(0, 20, 50, .06); transition: transform .25s, box-shadow .25s; }
.hgd-service:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(0, 20, 50, .12); color: var(--ink); }
.hgd-service-img { aspect-ratio: 16 / 9; overflow: hidden; background: #e9edf2; }
.hgd-service-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hgd-service b { padding: 20px 20px 6px; color: var(--navy); font-family: var(--font-head); font-size: 18px; }
.hgd-service small { padding: 0 20px 22px; color: var(--muted); font-size: 14px; }

.hgd-news { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 28px; }
.hgd-news-card { display: flex; flex-direction: column; }
.hgd-news-img { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #e9edf2; }
.hgd-news-img { background: #f1f3f6; }
.hgd-news-img img { width: 100%; height: 100%; object-fit: contain; display: block; transition: transform .4s; }
.hgd-news-card:hover .hgd-news-img img { transform: scale(1.04); }
.hgd-news-body { padding-top: 16px; }
.hgd-news-body time { color: var(--sky); font-size: 13px; font-weight: 600; }
.hgd-news-body h3 { margin: 6px 0 10px; font-size: 18px; font-weight: 700; line-height: 1.45; text-align: justify; text-justify: inter-word; text-transform: none; }
.hgd-news-body h3 a { color: var(--ink); }
.hgd-news-body h3 a:hover { color: var(--navy); }
.hgd-news-body p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; text-align: justify; text-justify: inter-word; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; max-height: calc(1.7em * 3); }
.hgd-pager { margin-top: 48px; }
.hgd-pager .nav-links { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; }
.hgd-pager .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 42px; padding: 0 10px; border: 1px solid var(--line); color: var(--ink); }
.hgd-pager .page-numbers.current, .hgd-pager .page-numbers:hover { background: var(--navy); border-color: var(--navy); color: #fff; }

/* ---------- Trang chi tiết xe (kiểu Toyota) ---------- */
.hgd-pd-hero { position: relative; aspect-ratio: 1920 / 1280; height: auto; background: #0b1420; color: #fff; }
.hgd-pd-media { position: absolute; inset: 0; overflow: hidden; }
.hgd-pd-media img { width: 100%; height: 100%; object-fit: cover; }
.hgd-pd-media img.is-cutout { object-fit: contain; padding: 40px 10% 180px; }
.hgd-pd-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,.55) 100%); }
.hgd-pd-copy { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 0 20px 46px; text-align: center; }
.hgd-pd-name { margin: 0; color: #fff; font-size: clamp(34px, 4vw, 52px); text-shadow: 0 2px 16px rgba(0,0,0,.35); }
.hgd-pd-sub { margin: 10px 0 28px; font-size: 15px; letter-spacing: .18em; text-transform: uppercase; text-shadow: 0 1px 8px rgba(0,0,0,.4); }
.hgd-pd-btns { display: flex; justify-content: center; flex-wrap: wrap; gap: 20px; }
.hgd-pd-btns > a, .hgd-pd-est > button {
  display: inline-flex; align-items: center; justify-content: center; min-width: 176px; height: 44px; padding: 0 22px;
  border: 1px solid #fff; background: rgba(0,0,0,.08); color: #fff; font-weight: 600; font-size: 14px; letter-spacing: .02em; text-transform: uppercase;
}
.hgd-pd-btns > a:hover, .hgd-pd-est > button:hover, .hgd-pd-est.is-open > button { background: #fff; color: var(--navy); }
.hgd-pd-est { position: relative; z-index: 10; }
.hgd-pd-est-menu { position: absolute; left: 0; right: 0; top: calc(100% + 6px); display: none; background: #fff; box-shadow: 0 10px 30px rgba(0,0,0,.25); text-align: left; }
.hgd-pd-est.is-open .hgd-pd-est-menu { display: block; }
.hgd-pd-est-menu a { display: block; padding: 13px 18px; color: var(--navy); font-size: 14px; font-weight: 600; border-bottom: 1px solid #edf0f3; }
.hgd-pd-est-menu a:hover { background: var(--sand); color: var(--navy); }

.hgd-pd-promo { background: var(--navy); color: #fff; }
.hgd-pd-promo .hgd-wrap { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 14px 28px; padding-top: 14px; padding-bottom: 14px; }
.hgd-pd-promo strong { font-size: 15px; letter-spacing: .04em; text-transform: uppercase; }
.hgd-timer { display: flex; gap: 8px; }
.hgd-timer span { display: flex; flex-direction: column; align-items: center; min-width: 54px; padding: 6px 4px; background: rgba(255,255,255,.1); }
.hgd-timer b { font-size: 20px; line-height: 1.1; }
.hgd-timer small { font-size: 11px; opacity: .8; text-transform: uppercase; }
.hgd-pd-promo .hgd-btn { min-height: 40px; }

.hgd-pd-nav { position: sticky; top: var(--head-h); z-index: 800; background: #fff; border-bottom: 1px solid #e3e7ec; box-shadow: 0 6px 18px rgba(0,30,70,.06); }
.hgd-pd-nav .hgd-wrap { display: flex; align-items: center; gap: 20px; height: 60px; }
.hgd-pd-nav b { flex: 0 0 auto; padding-right: 20px; border-right: 1px solid #e3e7ec; color: var(--navy); font-family: var(--font-head); font-weight: 500; font-size: 19px; line-height: 28px; white-space: nowrap; }
.hgd-pd-nav ul { flex: 1 1 auto; display: flex; justify-content: center; gap: 0; height: 100%; margin: 0; padding: 0; list-style: none; overflow-x: auto; scrollbar-width: none; }
.hgd-pd-nav ul::-webkit-scrollbar { display: none; }
.hgd-pd-nav li { flex: 0 0 auto; }
.hgd-pd-nav ul a {
  position: relative; display: flex; align-items: center; height: 100%; padding: 0 10px; color: #6b7684;
  font-family: var(--font-head); font-size: 12.5px; font-weight: 500; text-transform: uppercase; letter-spacing: .02em; white-space: nowrap; transition: color .2s;
}
.hgd-pd-nav ul a::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 0; height: 3px; background: var(--sky); transform: scaleX(0); transition: transform .25s; }
.hgd-pd-nav ul a:hover { color: var(--navy); }
.hgd-pd-nav ul a.is-on { color: var(--navy); }
.hgd-pd-nav ul a.is-on::after { transform: scaleX(1); }
.hgd-pd-navcta { flex: 0 0 auto; display: inline-flex; align-items: center; height: 40px; padding: 0 20px; background: var(--navy); color: #fff; font-size: 13.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
.hgd-pd-navcta:hover { background: var(--navy-2); color: #fff; }
.hgd-pd-tabbed .hgd-pd-sec[hidden] { display: none !important; }
.hgd-pd-tabbed .hgd-pd-sec.is-in { animation: hgdTabIn .35s ease both; }
.hgd-pd-tabbed .hgd-pd-body > .hgd-pd-sec, .hgd-pd-tabbed .hgd-pd-versions { background: #fff !important; border-top: 0; }
.hgd-pd-tabbed .hgd-pd-sec, .hgd-pd-tabbed .hgd-pd-sec.hgd-entry { padding: 48px 0 72px; }
@keyframes hgdTabIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
@media (max-width: 1240px) { .hgd-pd-nav b { display: none; } .hgd-pd-nav ul { justify-content: flex-start; } }

.hgd-pd-sec { padding: 72px 0; scroll-margin-top: calc(var(--head-h) + 58px); }
.hgd-pd-body > .hgd-pd-sec:nth-child(odd) { background: var(--sand); }
.hgd-pd-inner { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.hgd-pd-h {
  position: relative; margin: 0 0 44px; padding-left: 22px; color: var(--navy); font-size: clamp(30px, 3.2vw, 46px); line-height: 1.15; text-align: left; letter-spacing: -.005em;
}
.hgd-pd-h::before { content: ""; position: absolute; left: 0; top: .14em; bottom: .14em; width: 6px; border-radius: 3px; background: var(--sky); }
.hgd-pd-h small { display: none; }
.hgd-pd-sec .hgd-pd-h, .hgd-entry .hgd-pd-h { margin: 0 0 44px; font-size: clamp(30px, 3.2vw, 46px); }
.hgd-pd-sec.hgd-entry { padding-top: 72px; padding-bottom: 72px; }
.hgd-pd-sec.hgd-entry h3, .hgd-pd-sec.hgd-entry h4 { text-align: center; }
.hgd-pd-sec.hgd-entry p:empty { display: none; }

/* Phiên bản & giá */
.hgd-vers-title { margin: 56px 0 24px; padding-top: 40px; border-top: 1px solid #e3e7ec; color: var(--navy); font-size: 22px; text-transform: uppercase; letter-spacing: .03em; }
.hgd-pd-versions { background: #fff; border-top: 1px solid #e6e9ee; }
.hgd-vers { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.hgd-vers li { display: flex; flex-direction: column; padding: 28px 24px 24px; border: 1px solid #e1e5ea; background: #fff; transition: border-color .2s, box-shadow .2s; }
.hgd-vers li:hover { border-color: var(--navy); box-shadow: 0 10px 30px rgba(0,44,95,.08); }
.hgd-vers h3 { margin: 0 0 18px; color: var(--navy); font-size: 19px; line-height: 1.3; text-transform: uppercase; letter-spacing: .02em; }
.hgd-vers-price { margin: auto 0 22px; color: #002C5F; font-family: var(--font-head); font-weight: 500; font-size: 24px; line-height: 1.2; }
.hgd-vers-price small { display: block; margin-bottom: 6px; color: #6b7684; font-family: var(--font-body, inherit); font-size: 13px; font-weight: 400; }
.hgd-vers-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hgd-vers-btns .hgd-btn { min-height: 44px; padding: 0 10px; font-size: 13.5px; }

/* Nội dung trang xe (khối ảnh, thẻ, thư viện) */
.hgd-pd-sec .hgd-pd-inner { max-width: 1240px; }
.hgd-pd-sec.hgd-entry .wp-block-image { margin: 0 0 28px; }
.hgd-pd-sec.hgd-entry .wp-block-image img { width: auto; max-width: 100%; max-height: 680px; height: auto; margin: 0 auto; }
.hgd-pd-sec.hgd-entry h3 { max-width: 820px; margin: 8px auto 12px; font-size: clamp(22px, 2.2vw, 30px); line-height: 1.3; }
.hgd-pd-sec.hgd-entry h3 + p, .hgd-pd-sec.hgd-entry > .hgd-pd-inner > p { max-width: 820px; margin: 0 auto 48px; text-align: center; color: #4b5563; }
.hgd-pd-sec.hgd-entry .wp-block-columns.hgd-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 28px; margin: 0 0 56px; }
.hgd-pd-sec.hgd-entry .hgd-cards > .wp-block-column { min-width: 0; margin: 0; }
.hgd-pd-sec.hgd-entry .hgd-cards .wp-block-image { margin: 0 0 16px; overflow: hidden; background: #eef1f4; aspect-ratio: 4 / 3; }
.hgd-pd-sec.hgd-entry .hgd-cards .wp-block-image img { width: 100%; max-height: none; height: 100%; object-fit: cover; transition: transform .4s; }
.hgd-pd-sec.hgd-entry .hgd-cards .wp-block-column:hover img { transform: scale(1.04); }
.hgd-pd-sec.hgd-entry .hgd-cards h4 { margin: 0 0 8px; font-size: 17px; line-height: 1.4; text-align: left; }
.hgd-pd-sec.hgd-entry .hgd-cards p { margin: 0; font-size: 15px; line-height: 1.65; text-align: left; color: #4b5563; }
.hgd-pd-sec.hgd-entry .wp-block-gallery.hgd-gallery { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 24px) / 3); gap: 12px; margin: 0 0 56px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.hgd-pd-sec.hgd-entry .hgd-gallery::-webkit-scrollbar { display: none; }
.hgd-pd-sec.hgd-entry .hgd-gallery .wp-block-image { width: auto !important; margin: 0; aspect-ratio: 16 / 10; overflow: hidden; background: #eef1f4; scroll-snap-align: start; }
.hgd-pd-sec.hgd-entry .hgd-gallery .wp-block-image img { width: 100%; max-height: none; height: 100%; object-fit: cover; }
.hgd-gal { position: relative; margin: 0 0 56px; }
.hgd-gal > .wp-block-gallery { margin-bottom: 0 !important; }
.hgd-gal-btn { position: absolute; top: 50%; z-index: 2; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-top: -22px; border: 0; border-radius: 50%; background: rgba(255,255,255,.92); color: var(--navy); box-shadow: 0 4px 14px rgba(0,0,0,.18); cursor: pointer; transition: opacity .2s; }
.hgd-gal-btn[disabled] { opacity: 0; pointer-events: none; }
.hgd-gal-prev { left: 12px; } .hgd-gal-next { right: 12px; }
.hgd-gal-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; }
.hgd-pd-sec.hgd-entry .hgd-cards-4 { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
.hgd-pd-sec.hgd-entry .hgd-cards-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
/* Các mục nội dung xe (Nổi bật, Ngoại thất, ...): mọi ảnh khung 1920 × 1280 (3:2), chữ căn đều hai bên thẳng mép ảnh, nhịp dòng đều */
.hgd-pd-sec[id^="muc-"] { --nb-gap: 24px; }
.hgd-pd-sec[id^="muc-"] .wp-block-image { aspect-ratio: 1920 / 1280 !important; overflow: hidden; background: #eef1f4; }
.hgd-pd-sec[id^="muc-"] > .hgd-pd-inner > .wp-block-image { width: 100%; }
.hgd-pd-sec[id^="muc-"] .wp-block-image img { width: 100% !important; height: 100% !important; max-height: none !important; object-fit: cover; margin: 0 !important; }
.hgd-pd-sec[id^="muc-"] h3, .hgd-pd-sec[id^="muc-"] h4 { max-width: none !important; margin: 0 0 8px !important; line-height: 1.75 !important; text-align: left !important; }
.hgd-pd-sec[id^="muc-"] p { max-width: none !important; margin: 0 0 calc(var(--nb-gap) * 2) !important; line-height: 1.75 !important; text-align: justify !important; text-justify: inter-word; }
.hgd-pd-sec[id^="muc-"] > .hgd-pd-inner > .wp-block-image, .hgd-pd-sec[id^="muc-"] .hgd-cards .wp-block-image { margin: 0 0 var(--nb-gap) !important; }
.hgd-pd-sec[id^="muc-"] .hgd-cards p { margin-bottom: 0 !important; }
.hgd-pd-sec[id^="muc-"] .hgd-gal, .hgd-pd-sec[id^="muc-"] .wp-block-columns.hgd-cards { margin-bottom: calc(var(--nb-gap) * 2) !important; }
.hgd-pd-sec[id^="muc-"] h3 + .wp-block-image, .hgd-pd-sec[id^="muc-"] h3 + .wp-block-columns, .hgd-pd-sec[id^="muc-"] h3 + .hgd-gal { margin-top: 16px !important; }
.hgd-spec td.is-yes { color: var(--navy); font-size: 12px; }
.hgd-spec td.is-no { color: #b0b8c3; }
.hgd-pd-inner > *:last-child { margin-bottom: 0 !important; }

/* Bảng thông số so sánh phiên bản */
.hgd-spec-wrap { overflow-x: auto; margin: 0 0 8px; border: 1px solid #e1e5ea; background: #fff; }
.hgd-entry table.hgd-spec { display: table; min-width: 640px; margin: 0; font-size: 14.5px; line-height: 1.5; }
.hgd-spec th, .hgd-spec td { border: 0; border-bottom: 1px solid #edf0f3; padding: 11px 16px; vertical-align: top; }
.hgd-spec thead th { position: sticky; top: 0; background: var(--navy); color: #fff; font-weight: 500; text-align: center; white-space: nowrap; }
.hgd-spec thead th:first-child { text-align: left; }
.hgd-spec td { text-align: center; color: #374151; }
.hgd-spec td:first-child { text-align: left; color: #1f2937; font-weight: 500; width: 34%; }
.hgd-spec .hgd-spec-group th { background: #eef2f7; color: var(--navy); font-size: 13.5px; text-transform: uppercase; letter-spacing: .05em; text-align: left; }
.hgd-spec tbody tr:not(.hgd-spec-group):hover td { background: #f8fafc; }

.hgd-pd-colorbox { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.hgd-pd-car { background: radial-gradient(ellipse at 50% 85%, #e9edf2 0, #fff 65%); }
.hgd-pd-car img { display: block; width: 100%; max-width: 760px; margin: 0 auto; transition: opacity .25s; }
.hgd-pd-cname { margin: 0 0 14px; min-height: 1.4em; color: var(--navy); font-size: 18px; font-weight: 700; }
.hgd-pd-pick ul { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 28px; padding: 0; list-style: none; }
.hgd-pd-pick button { display: block; width: 40px; height: 40px; padding: 0; border: 1px solid #cfd5dd; border-radius: 50%; box-shadow: inset 0 0 0 3px #fff; transition: box-shadow .2s, border-color .2s; }
.hgd-pd-pick button.is-on { border-color: var(--navy); box-shadow: inset 0 0 0 3px #fff, 0 0 0 2px var(--navy); }
.hgd-pd-price { margin: 0 0 24px; padding-top: 20px; border-top: 1px solid #e6e9ee; font-size: 22px; font-weight: 700; }
.hgd-pd-pick-btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Hộp thoại (form lái thử, báo giá, dự toán) ---------- */
.hgd-modal { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(0, 16, 36, .6); }
.hgd-modal-box { position: relative; width: 100%; max-width: 520px; max-height: calc(100vh - 40px); overflow: auto; padding: 36px 32px 28px; background: #fff; box-shadow: 0 30px 60px rgba(0,0,0,.3); }
.hgd-modal-wide .hgd-modal-box { max-width: 960px; }
.hgd-modal-box h2 { margin: 0 0 6px; color: var(--navy); font-size: 26px; }
.hgd-modal-sub { margin: 0 0 22px; color: var(--muted); font-size: 14px; }
.hgd-modal-x { position: absolute; top: 12px; right: 12px; padding: 6px; border: 0; background: none; color: var(--muted); }
.hgd-modal-x:hover { color: var(--navy); }
.hgd-modal .hgd-entry { padding: 16px 0 0; }
.hgd-note { margin: 0; color: #b42318; font-size: 13px; text-align: center; }
body.hgd-lock { overflow: hidden; }

.hgd-form { display: grid; gap: 14px; }
.hgd-form label { display: grid; gap: 6px; color: var(--ink); font-size: 14px; font-weight: 600; }
.hgd-form input, .hgd-form select, .hgd-form textarea { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #cfd5dd; background: #fff; font-weight: 400; font-size: 15px; border-radius: 0; }
.hgd-form input:focus, .hgd-form select:focus, .hgd-form textarea:focus { border-color: var(--navy); outline: 0; box-shadow: 0 0 0 3px rgba(0, 44, 95, .12); }
.hgd-form .hgd-btn { margin-top: 6px; width: 100%; }
.hgd-form .hgd-hp { position: absolute; left: -9999px; }
.hgd-form-msg { margin: 0; font-size: 14px; }
.hgd-form-msg.is-ok { color: #067647; font-weight: 600; }
.hgd-form-msg.is-err { color: #b42318; }
.hgd-quote-price { margin: 0; padding: 12px 14px; background: var(--sand); color: var(--navy); font-weight: 700; }
.hgd-card { padding: 32px; background: #fff; box-shadow: 0 10px 30px rgba(0,20,50,.08); }
.hgd-card h2 { margin: 0 0 6px; color: var(--navy); font-size: 24px; }
.hgd-contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.hgd-contact-lg li { font-size: 17px; }
.hgd-about-entry p { text-align: justify; text-justify: inter-word; line-height: 1.8; }
.hgd-about-entry h2 { margin-top: 1.4em; }
.hgd-why { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin: 24px 0 8px; padding: 0; list-style: none; }
.hgd-why li { margin: 0 !important; padding: 20px 22px; background: #f4f6f9; border-left: 4px solid var(--navy); line-height: 1.7 !important; text-align: left !important; }
.hgd-why b { display: block; margin-bottom: 4px; color: var(--navy); font-family: var(--font-head) !important; font-weight: 500; font-size: 18px; }
.hgd-about-info .hgd-contact-lg li { margin-bottom: 16px; }
.hgd-about-info .hgd-contact-lg a { color: var(--navy); font-weight: 500; }
.hgd-about-info .hgd-hours { font-size: 16px; }
.hgd-social-dark { margin: 8px 0 20px; }
.hgd-about-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
.hgd-map iframe { display: block; width: 100%; height: 420px; border: 0; }

/* ---------- Chân trang ---------- */
.hgd-footer { background: #0b1d33; color: #b8c4d4; font-size: 14px; }
.hgd-footer-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px; padding-top: 64px; padding-bottom: 48px; }
.hgd-footer h4 { margin: 0 0 18px; color: #fff; font-size: 16px; text-transform: uppercase; letter-spacing: .06em; }
.hgd-footer ul { margin: 0; padding: 0; list-style: none; }
.hgd-footer li { margin: 0 0 10px; }
.hgd-footer a { color: #b8c4d4; }
.hgd-footer a:hover { color: #fff; }
.hgd-footer-cars li { margin-bottom: 9px; }
.hgd-footer-cars a { text-transform: uppercase; font-size: 13px; letter-spacing: .04em; }
.hgd-footer .hgd-footer-logo { display: inline-block; margin-bottom: 18px; color: #fff; font-family: "HGDHead", sans-serif; font-weight: 500; font-size: 28px; line-height: 1.1; letter-spacing: -.01em; }
.hgd-footer .hgd-footer-logo:hover { color: #fff; }
.hgd-footer .hgd-footer-logo img { display: block; max-height: 48px; width: auto; }
.hgd-logo-white img { filter: brightness(0) invert(1); margin-bottom: 18px; }
.hgd-social { display: flex; flex-wrap: wrap; gap: 10px; }
.hgd-social a { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; color: #fff; transition: transform .2s, filter .2s; }
.hgd-social a:hover { color: #fff; transform: translateY(-2px); filter: brightness(1.12); }
.hgd-social svg { width: 22px; height: 22px; }
.hgd-social-facebook { background: #1877f2; }
.hgd-social-youtube { background: #ff0000; }
.hgd-social-zalo { background: #0068ff; }
.hgd-social-zalo svg { width: 30px; height: 30px; }
.hgd-social-tiktok { background: #000; box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); }
.hgd-visits { margin-top: 26px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.08); }
.hgd-visits-title { margin: 0 0 14px; color: #fff; font-family: var(--font-head); font-weight: 500; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
.hgd-visits-nums { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 0; }
.hgd-visits-nums > div { min-width: 0; padding: 0 0 0 10px; border-left: 1px solid rgba(255,255,255,.1); }
.hgd-visits-nums > div:first-child { padding-left: 0; border-left: 0; }
.hgd-visits-nums dd { order: -1; margin: 0; color: #fff; font-family: var(--font-head); font-weight: 500; font-size: 20px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.hgd-visits-nums > div { display: flex; flex-direction: column; }
.hgd-visits-nums dt { margin-top: 2px; color: #8fa1b8; font-size: 11px; line-height: 1.3; }
.hgd-visits-online dt::before { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 5px 1px 0; border-radius: 50%; background: #12b76a; vertical-align: middle; }
.hgd-visits-chart { margin-top: 18px; }
.hgd-visits-chart p { margin: 0 0 8px; color: #8fa1b8; font-size: 11.5px; }
.hgd-footer .hgd-visits-chart ol { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin: 0; padding: 0; list-style: none; }
.hgd-visits-chart li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 0; cursor: default; }
.hgd-visits-chart i { display: flex; align-items: flex-end; width: 100%; height: 44px; border-bottom: 1px solid rgba(255,255,255,.14); }
.hgd-visits-chart i::before { content: ""; display: block; width: 100%; height: max(2px, var(--h)); border-radius: 4px 4px 0 0; background: rgba(0,170,210,.45); transition: background .15s; }
.hgd-visits-chart li.is-today i::before { background: var(--sky); }
.hgd-visits-chart li:hover i::before { background: #7fd8ee; }
.hgd-visits-chart small { color: #8fa1b8; font-size: 10.5px; line-height: 1; }
.hgd-visits-chart li.is-today small { color: #fff; }
.hgd-visits-chart li::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); padding: 5px 8px; border-radius: 4px; background: #fff; color: #0b1d33; font-size: 12px; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .12s; z-index: 2; }
.hgd-visits-chart li:hover::after { opacity: 1; }
.hgd-visits-chart li:first-child::after { left: 0; transform: none; }
.hgd-visits-chart li:last-child::after { left: auto; right: 0; transform: none; }
.hgd-footer-map { margin-top: 0; }
.hgd-footer-map iframe { display: block; width: 100%; height: 300px; border: 0; border-radius: 6px; background: #1a2d45; }
.hgd-contact { margin: 0; padding: 0; list-style: none; }
.hgd-contact li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; }
.hgd-contact .hgd-ico { width: 18px; height: 18px; margin-top: 2px; color: var(--sky); }
.hgd-hours { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; }
.hgd-hours dt { font-weight: 500; white-space: nowrap; }
.hgd-hours dd { margin: 0; }
.hgd-hours .hgd-hours-off { grid-column: 1 / -1; }
.hgd-hours-foot dt { color: #fff; }
.hgd-hours-short { display: flex; flex-direction: column; gap: 4px; }
.hgd-hours-short span { white-space: nowrap; }
.hgd-hours-short b { color: #fff; font-weight: 500; }
.hgd-hours-box { margin: 0 0 32px; padding: 20px 24px; background: #f4f6f9; border-left: 4px solid var(--navy); }
.hgd-hours-box h3 { margin: 0 0 10px; color: var(--navy); }
.hgd-hours-box .hgd-hours { font-size: 16px; line-height: 1.7; }
.hgd-copy { border-top: 1px solid rgba(255,255,255,.08); padding: 18px 0; font-size: 13px; color: #8696ab; }

.hgd-float { position: fixed; right: 16px; bottom: 20px; z-index: 950; display: flex; flex-direction: column; gap: 10px; }
.hgd-float a { display: flex; align-items: center; justify-content: center; width: 50px; height: 50px; border-radius: 50%; color: #fff; font-size: 12px; font-weight: 700; box-shadow: 0 6px 16px rgba(0,0,0,.2); }
.hgd-float-call { background: #12b76a; }
.hgd-float-zalo { background: #0068ff; }
.hgd-float-mess { background: linear-gradient(45deg, #0a7cff 0%, #a033ff 60%, #ff5c87 100%); }
.hgd-float-mess svg { width: 28px; height: 28px; }
.hgd-float a:hover { color: #fff; transform: scale(1.06); }
.hgd-float { align-items: flex-end; bottom: 48px; }
.hgd-float-list { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; padding-right: 9px; }
.hgd-float-list[hidden] { display: none; }
.hgd-float-list:not([hidden]) > * { animation: hgdFloatIn .18s ease-out both; }
@keyframes hgdFloatIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.hgd-float-toggle { display: flex; align-items: center; gap: 6px; height: 46px; padding: 0 14px 0 11px; border: 0; border-radius: 8px; background: var(--navy); color: #fff; font: inherit; font-size: 15px; cursor: pointer; box-shadow: 0 6px 16px rgba(0,0,0,.25); }
.hgd-float-toggle b { font-weight: 500; font-size: 14px; white-space: nowrap; }
.hgd-float-toggle .hgd-ico { width: 20px; height: 20px; }
.hgd-float-toggle .hgd-float-ico-close, .hgd-float-toggle[aria-expanded="true"] .hgd-float-ico-open { display: none; }
.hgd-float-toggle[aria-expanded="true"] .hgd-float-ico-close { display: inline-flex; }
.hgd-float-toggle span { display: inline-flex; }
.hgd-float-toggle:not([aria-expanded="true"]) { animation: hgdPulse 2.4s infinite; }
@keyframes hgdPulse { 0%, 70%, 100% { box-shadow: 0 6px 16px rgba(0,0,0,.25), 0 0 0 0 rgba(0,44,95,.45); } 35% { box-shadow: 0 6px 16px rgba(0,0,0,.25), 0 0 0 12px rgba(0,44,95,0); } }
.hgd-float-form { position: relative; }
.hgd-float-formbtn { display: flex; align-items: center; justify-content: center; width: 50px; height: 50px; padding: 0; border: 0; border-radius: 50%; background: var(--navy); color: #fff; cursor: pointer; box-shadow: 0 6px 16px rgba(0,0,0,.2); }
.hgd-float-formbtn:hover, .hgd-float-formbtn[aria-expanded="true"] { transform: scale(1.06); }
.hgd-float-formbtn .hgd-ico { width: 24px; height: 24px; }
.hgd-float-menu { position: absolute; right: 62px; top: 50%; transform: translateY(-50%); min-width: 210px; padding: 6px 0; background: #fff; border-radius: 6px; box-shadow: 0 10px 28px rgba(0,20,50,.22); }
.hgd-float-menu[hidden] { display: none; }
.hgd-float-menu::after { content: ""; position: absolute; right: -6px; top: 50%; margin-top: -6px; border: 6px solid transparent; border-right: 0; border-left-color: #fff; }
.hgd-float .hgd-float-menu a { display: flex; align-items: center; justify-content: flex-start; gap: 10px; width: auto; height: auto; padding: 11px 18px; border-radius: 0; background: none; box-shadow: none; color: #111; font-size: 15px; font-weight: 500; white-space: nowrap; }
.hgd-float .hgd-float-menu a:hover { color: var(--navy); background: #f2f5f9; transform: none; }
.hgd-float-menu .hgd-ico { width: 20px; height: 20px; color: var(--navy); }

/* ---------- Máy tính bảng ---------- */
@media (min-width: 992px) {
  .hgd-header-row { gap: 16px; }
  .hgd-logo { flex-shrink: 0; }
  .hgd-logo img { height: 20px; }
  .hgd-menu > li > a { padding: 0 11px; }
  .hgd-header-tools { gap: 10px; }
  .hgd-cta { padding: 0 16px; }
  .hgd-dealer { padding-left: 14px; font-size: 17px; }
}
@media (max-width: 1100px) {
  .hgd-grid, .hgd-mega-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 32px; }
  .hgd-services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hgd-footer-grid { grid-template-columns: 1fr 1fr; }
  .hgd-menu > li > a { padding: 0 12px; font-size: 14px; }
}
@media (max-width: 991px) {
  :root { --head-h: 64px; }
  .hgd-addr span:last-child, .hgd-topnav ul { display: none; }
  .hgd-burger { display: flex; }
  .hgd-search.is-open input { width: 140px; }
  .hgd-cta { height: 40px; padding: 0 14px; font-size: 14px; }
  .hgd-nav {
    position: fixed; top: calc(var(--head-h) + var(--top-h, 0px)); left: 0; right: 0; bottom: 0; z-index: 899; display: block; overflow: auto;
    background: #fff; border-top: 1px solid var(--line); transform: translateX(100%); transition: transform .25s; visibility: hidden;
  }
  .hgd-nav.is-open { transform: none; visibility: visible; }
  .hgd-menu { flex-direction: column; align-items: stretch; }
  .hgd-menu > li { flex-wrap: wrap; border-bottom: 1px solid var(--line); position: relative; }
  .hgd-menu > li > a { flex: 1 1 auto; height: 56px; padding: 0 20px; font-size: 16px; }
  .hgd-sub-toggle { margin: 0; padding: 0 20px; height: 56px; }
  .hgd-menu > li.is-open > .hgd-sub-toggle .hgd-ico { transform: rotate(180deg); }
  .hgd-menu .sub-menu, .hgd-mega { position: static; flex: 0 0 100%; display: none; opacity: 1; visibility: visible; transform: none; box-shadow: none; max-height: none; }
  .hgd-menu > li.is-open > .sub-menu, .hgd-menu > li.is-open > .hgd-mega { display: block; }
  .hgd-mega { padding: 0 0 20px; border-top: 0; }
  .hgd-mega .hgd-tabs { position: sticky; top: 0; background: #fff; z-index: 2; margin-bottom: 20px; }
  .hgd-tabs button { padding: 14px 16px 12px; font-size: 14px; }
  .hgd-slider { max-height: none; }
  .hgd-ctrl { bottom: 14px; gap: 10px; }
  .hgd-arrow { width: 32px; height: 32px; font-size: 24px; line-height: 29px; }
  .hgd-quick { margin-top: 0; }
  .hgd-quick ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hgd-quick li:nth-child(2n) { border-right: 0; }
  .hgd-quick li { border-bottom: 1px solid #edf0f3; }
  .hgd-quick a { padding: 16px 14px; gap: 10px; }
  .hgd-quick small { display: none; }
  .hgd-quick b { font-size: 14px; }
  .hgd-section { padding: 56px 0; }
  .hgd-news { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hgd-pd-hero { height: auto; min-height: 0; max-height: none; display: flex; flex-direction: column; background: var(--navy); }
  .hgd-pd-hero { aspect-ratio: auto; }
  .hgd-pd-media { position: relative; aspect-ratio: 1920 / 1280; }
  .hgd-pd-media::after { display: none; }
  .hgd-pd-media img.is-cutout { padding: 20px; }
  .hgd-pd-copy { position: static; padding: 28px 20px 32px; }
  .hgd-pd-btns { gap: 12px; }
  .hgd-pd-nav .hgd-wrap { height: 50px; gap: 12px; }
  .hgd-pd-nav b, .hgd-pd-navcta { display: none; }
  .hgd-pd-nav ul a { padding: 0 10px; font-size: 13px; }
  .hgd-pd-sec, .hgd-pd-sec.hgd-entry { padding-top: 48px; padding-bottom: 48px; }
  .hgd-pd-colorbox { grid-template-columns: 1fr; gap: 24px; }
  .hgd-pd-car img, .hgd-spin-view { max-width: 560px; }
  .hgd-contact-grid { grid-template-columns: 1fr; }
  .hgd-why { grid-template-columns: 1fr; }
  .hgd-entry { font-size: 16px; }
}

/* ---------- Điện thoại ---------- */
@media (min-width: 992px) and (max-width: 1100px) {
  .hgd-logo img { height: 16px; }
  .hgd-menu > li > a { padding: 0 8px; }
  .hgd-search { display: none; }
}
@media (max-width: 420px) {
  .hgd-search { display: none; }
}
@media (max-width: 560px) {
  .hgd-topbar { display: none; }
  .hgd-header-row { gap: 10px; }
  .hgd-logo { flex: 1 1 auto; }
  .hgd-logo img { width: 100%; max-width: 260px; height: auto; }
  .hgd-header-tools { gap: 8px; }
  .hgd-dealer { height: 32px; padding-left: 10px; font-size: 14px; }
  .hgd-cta { display: none; }
  .hgd-search.is-open { position: absolute; right: 50px; background: #fff; }
  .hgd-grid, .hgd-mega-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; }
  /* Điện thoại: ảnh xe rộng hết thẻ cho dễ nhìn */
  .hgd-car-img { height: auto; aspect-ratio: 3 / 2; margin-bottom: 8px; }
  .hgd-car-img img { width: 100%; height: auto; max-height: none; }
  .hgd-mega-img { height: auto; aspect-ratio: 3 / 2; }
  .hgd-mega-img img { width: 100%; height: auto; max-height: none; }
  .hgd-mega-name { font-size: 15px; }
  .hgd-mega-links { flex-direction: column; gap: 6px; }
  .hgd-car-name { font-size: 15px; }
  .hgd-car-price { font-size: 12px; padding-bottom: 8px; }
  .hgd-car-links { flex-direction: column; gap: 6px; }
  .hgd-arrow { display: none; }
  .hgd-slider { min-height: 0; }
  .hgd-services, .hgd-news, .hgd-footer-grid { grid-template-columns: 1fr; }
  .hgd-head { margin-bottom: 24px; }
  .hgd-pd-media { aspect-ratio: 1920 / 1280; }
  .hgd-pd-sub { font-size: 13px; letter-spacing: .12em; margin-bottom: 20px; }
  .hgd-pd-btns { flex-direction: column; align-items: stretch; }
  .hgd-pd-btns > a, .hgd-pd-est > button { width: 100%; }
  .hgd-pd-promo strong { width: 100%; text-align: center; font-size: 13px; }
  .hgd-pd-pick-btns .hgd-btn { flex: 1 1 100%; }
  .hgd-pd-h, .hgd-pd-sec .hgd-pd-h, .hgd-entry .hgd-pd-h { margin-bottom: 28px; }
  .hgd-modal { padding: 0; align-items: flex-end; }
  .hgd-modal-box { max-height: 92vh; padding: 30px 20px 22px; }
  .hgd-card { padding: 24px 18px; }
  .hgd-float a, .hgd-float-formbtn { width: 44px; height: 44px; }
}

/* Bộ chữ nhận diện: chữ chính (tiêu đề, menu, nút, tên xe, giá) = Hyundai Sans Head Medium;
   chữ phụ (nội dung, mô tả, form) = Hyundai Sans Text Regular. */
h1, h2, h3, h4, h5, h6,
.hgd-menu > li > a, .hgd-cta, .hgd-btn, .hgd-dealer, .hgd-topnav .hgd-hotline,
.hgd-tabs button, .hgd-mega-name, .hgd-mega-foot > a, .hgd-car-name, .hgd-car-price, .hgd-mega-car small,
.hgd-head small, .hgd-page-head small, .hgd-pd-h small,
.hgd-pd-name, .hgd-pd-sub, .hgd-pd-btns > a, .hgd-pd-est > button, .hgd-pd-est-menu a, .hgd-pd-nav b, .hgd-pd-nav ul a, .hgd-pd-navcta,
.hgd-pd-cname, .hgd-pd-price, .hgd-quote-price, .hgd-service b, .hgd-float a, .hgd-mega-badge {
  font-family: var(--font-head); font-weight: 500;
}
.hgd-menu .sub-menu a, .hgd-form label, .hgd-car-links a, .hgd-mega-links a, .hgd-news-body time { font-family: var(--font); font-weight: 400; }
.hgd-car-links a.hgd-quote { font-weight: 500; }

/* ---------- Trang Dự toán chi phí (kiểu Toyota) ---------- */
.hgd-est { padding: 56px 0 80px; }
.hgd-est-title { margin: 0 0 40px; text-align: center; color: var(--ink); font-size: clamp(30px, 4vw, 48px); text-transform: uppercase; }
.hgd-est-intro { max-width: 760px; margin: -20px auto 36px; text-align: center; color: var(--muted); }
.hgd-est-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.hgd-est h2 { margin: 0 0 26px; color: var(--ink); font-size: 24px; text-transform: uppercase; }
.hgd-est-fields label, .hgd-est-label { display: grid; grid-template-columns: 46% 1fr; align-items: center; gap: 16px; margin: 0 0 12px; color: var(--muted); font-size: 15px; }
.hgd-est-fields i { color: #e4002b; font-style: normal; }
.hgd-est-fields select {
  width: 100%; padding: 8px 28px 8px 0; border: 0; border-bottom: 1px solid #b9c0c9; border-radius: 0; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%235f6670' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 4px center;
  color: var(--ink); font: 400 15px var(--font); appearance: none; -webkit-appearance: none; cursor: pointer;
}
.hgd-est-fields select:focus { outline: 0; border-bottom-color: var(--navy); }
.hgd-est-label { grid-template-columns: 1fr; gap: 2px; margin-top: 18px; }
.hgd-est-label small { font-size: 12px; font-style: italic; }
.hgd-est-car { margin: 18px 0 0; text-align: center; }
.hgd-est-car img { display: block; width: 100%; max-width: 440px; aspect-ratio: 16 / 9; margin: 0 auto; object-fit: contain; }
.hgd-est-car figcaption { margin-top: 8px; font-family: var(--font-head); font-weight: 500; font-size: 22px; text-transform: uppercase; color: var(--ink); }
.hgd-est-colors { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin: 18px 0 0; padding: 0; list-style: none; }
.hgd-est-colors button { width: 38px; height: 38px; border-radius: 50%; border: 1px solid #c9ced6; box-shadow: inset 0 0 0 3px #fff; cursor: pointer; padding: 0; }
.hgd-est-colors button.is-on { outline: 2px solid var(--navy); outline-offset: 3px; }
.hgd-est-cname { margin: 12px 0 0; min-height: 1.5em; text-align: center; color: var(--muted); }

.hgd-est-sheet { padding: 28px 24px 26px; background: #fff; box-shadow: 0 6px 30px rgba(0, 20, 50, .12); }
.hgd-est-rows { margin: 0 0 20px; }
.hgd-est-rows > div { display: flex; justify-content: space-between; gap: 16px; padding: 6px 0; color: var(--muted); font-size: 15px; }
.hgd-est-rows dt small { font-size: 12px; }
.hgd-est-rows dd { margin: 0; color: var(--ink); white-space: nowrap; }
.hgd-est-rows-sm { margin: 10px 0 0; }
.hgd-est-rows-sm > div { font-size: 14px; }
.hgd-est-more { margin: 0 0 18px; background: #f3f5f8; }
.hgd-est-more summary {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; background: var(--navy); color: #fff; cursor: pointer; list-style: none;
  font-family: var(--font-head); font-weight: 500; font-size: 15px;
}
.hgd-est-more summary::-webkit-details-marker { display: none; }
.hgd-est-more summary::after { content: ""; width: 9px; height: 9px; border-right: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(45deg) translateY(-3px); transition: transform .2s; }
.hgd-est-more[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.hgd-est-more-body { padding: 14px 16px 16px; }
.hgd-est-check { display: flex; align-items: center; gap: 10px; margin: 6px 0 10px; color: var(--ink); font-size: 14px; cursor: pointer; }
.hgd-est-check input { width: 18px; height: 18px; accent-color: var(--navy); }
.hgd-est-inline { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 10px; color: var(--muted); font-size: 14px; }
.hgd-est-inline input, .hgd-est-inline select { width: 52%; padding: 7px 8px; border: 1px solid #c9ced6; background: #fff; font: 400 14px var(--font); text-align: right; }
.hgd-est-loan { margin: 0 0 6px 28px; }
.hgd-est-total { display: flex; flex-wrap: wrap; align-items: baseline; padding: 14px 20px 16px; border: 1px solid #c9d5e3; border-left: 4px solid var(--navy); background: #eef3f9; }
.hgd-est-total span { flex: 0 0 100%; color: var(--navy); font-size: 15px; }
.hgd-est-total strong { flex: 1 1 auto; color: var(--navy); font-family: var(--font-head); font-weight: 500; font-size: clamp(30px, 3.4vw, 42px); line-height: 1.3; }
.hgd-est-total em { color: var(--navy); font-style: normal; font-size: 26px; }
.hgd-est-note { margin: 14px 0 18px; color: var(--muted); font-size: 13px; }
.hgd-est-note { font-size: 14px; line-height: 1.7; }
.hgd-est-note b { color: var(--navy); font-family: var(--font-head); font-weight: 500; }
.hgd-est-call { display: inline-flex; align-items: center; gap: 6px; margin: 2px 4px; padding: 4px 14px 4px 10px; border-radius: 999px; background: var(--navy); color: #fff !important; font-family: var(--font-head); font-weight: 500; font-size: 15px; line-height: 1.5; text-decoration: none; white-space: nowrap; vertical-align: middle; }
.hgd-est-call:hover { background: #00418a; }
.hgd-est-call svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; }
/* Dự toán: chữ chính dùng Hyundai Sans Head, chữ phụ dùng Hyundai Sans Text */
.hgd-est-fields label > span, .hgd-est-label > span, .hgd-est-rows dd, .hgd-est-total span, .hgd-est-total em, .hgd-est-check > span, .hgd-est-inline > span, .hgd-est-cname { font-family: var(--font-head); font-weight: 500; }
.hgd-est-fields select, .hgd-est-fields option, .hgd-est-rows dt, .hgd-est-label small, .hgd-est-note, .hgd-est-inline select, .hgd-est-inline input { font-family: var(--font); font-weight: 400; }
.hgd-est-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 991px) {
  .hgd-est-grid { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 560px) {
  .hgd-est { padding: 36px 0 56px; }
  .hgd-est-title { margin-bottom: 28px; }
  .hgd-est h2 { font-size: 19px; }
  .hgd-est-fields label { grid-template-columns: 40% 1fr; gap: 10px; font-size: 14px; }
  .hgd-est-sheet { padding: 22px 16px; margin: 0 -4px; }
  .hgd-est-rows > div { font-size: 14px; }
  .hgd-est-btns { grid-template-columns: 1fr; }
  .hgd-est-loan { margin-left: 0; }
}

.hgd-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hgd-form-row[hidden] { display: none; }
.hgd-form select:disabled { background: #f3f5f8; color: #8a94a3; }
@media (max-width: 400px) { .hgd-form-row { grid-template-columns: 1fr; } }
@media (max-width: 900px) {
  .hgd-pd-sec.hgd-entry .wp-block-columns.hgd-cards, .hgd-pd-sec.hgd-entry .hgd-cards-4 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 24px 16px; }
  .hgd-pd-sec.hgd-entry .wp-block-gallery.hgd-gallery { grid-auto-columns: calc((100% - 12px) / 2); }
}
@media (max-width: 560px) {
  .hgd-pd-sec.hgd-entry .wp-block-columns.hgd-cards, .hgd-pd-sec.hgd-entry .hgd-cards-4, .hgd-pd-sec.hgd-entry .hgd-cards-2 { grid-template-columns: 1fr !important; }
  .hgd-pd-sec.hgd-entry .wp-block-gallery.hgd-gallery { grid-auto-columns: 86%; gap: 8px; }
  .hgd-vers-btns { grid-template-columns: 1fr; }
  .hgd-spec td:first-child { width: auto; }
}

.hgd-pd-sec[id^="muc-"] .wp-block-columns.hgd-cards:has(> .wp-block-column:only-child) { grid-template-columns: 1fr !important; }
.hgd-pd-sec[id^="muc-"] .wp-block-columns.hgd-cards:has(> .wp-block-column:nth-child(2):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
.hgd-form-hint { margin: -6px 0 0; color: var(--muted, #5b6573); font-size: 13px; line-height: 1.5; }
.hgd-form textarea { min-height: 70px; resize: vertical; }
.hgd-page-head small { text-transform: none; letter-spacing: .02em; font-size: 14px; }
.hgd-thanks { background: var(--sand); }
.hgd-thanks-card { max-width: 680px; margin: 0 auto; text-align: center; }
.hgd-thanks-ico { display: inline-flex; width: 64px; height: 64px; align-items: center; justify-content: center; margin-bottom: 18px; border-radius: 50%; background: var(--navy); }
.hgd-thanks-ico svg { width: 34px; height: 34px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.hgd-thanks h1 { margin: 0 0 12px; color: var(--navy); font-size: clamp(24px, 3vw, 32px); line-height: 1.25; }
.hgd-thanks-text { margin: 0 auto 24px; max-width: 520px; color: var(--muted); line-height: 1.7; }
.hgd-thanks .hgd-hours-box { text-align: left; margin: 0 auto 24px; max-width: 420px; }
.hgd-thanks-cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 0 0 16px; }
.hgd-thanks-home { margin: 0; font-size: 14px; }
.hgd-thanks-home a { color: var(--navy); text-decoration: underline; }
.hgd-form-warn { margin: -6px 0 0; padding: 10px 12px; border-left: 3px solid #b42318; background: #fef3f2; color: #b42318; font-size: 14px; line-height: 1.5; }
.hgd-thanks-dealer { margin: 8px auto 20px; padding-top: 22px; border-top: 1px solid #e3e7ec; max-width: 520px; }
.hgd-thanks-addr { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0 0 14px; color: var(--ink); font-size: 15px; }
.hgd-thanks-addr .hgd-ico { flex: 0 0 auto; width: 18px; height: 18px; color: var(--sky); }
.hgd-thanks-dealer .hgd-social { justify-content: center; margin: 0; }
/* Máy tính: rê chuột vào icon form là hiện 3 mục (điện thoại vẫn bấm để mở) */
@media (hover: hover) and (pointer: fine) {
  .hgd-float-form:hover .hgd-float-menu[hidden], .hgd-float-form:focus-within .hgd-float-menu[hidden] { display: block !important; }
  .hgd-float-menu::before { content: ""; position: absolute; top: 0; bottom: 0; right: -20px; width: 20px; }
}
.hgd-need { display: grid; gap: 10px; margin: 0; padding: 0; border: 0; }
.hgd-need[hidden] { display: none; }
.hgd-need legend { margin-bottom: 8px; padding: 0; color: var(--ink); font-size: 14px; font-weight: 600; }
.hgd-form .hgd-need label { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 14px; border: 1px solid #cfd5dd; background: #fff; font-weight: 500; font-size: 15px; cursor: pointer; }
.hgd-form .hgd-need input { width: 18px; height: 18px; min-height: 0; margin: 0; padding: 0; accent-color: var(--navy); }
.hgd-form .hgd-need label:has(input:checked) { border-color: var(--navy); box-shadow: 0 0 0 1px var(--navy); color: var(--navy); }
/* Ảnh showroom trang Về Hyundai Gia Định (khung 3:2) */
.hgd-about-photo { margin: 32px 0 !important; aspect-ratio: 3 / 2; overflow: hidden; background: #eef1f4; }
.hgd-about-photo img { width: 100% !important; height: 100% !important; margin: 0 !important; object-fit: cover; display: block; }

/* Màu xe: ảnh xoay 360° (kéo/vuốt ngang để xoay) */
.hgd-pd-car { position: relative; }
.hgd-pd-car.has-spin { cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.hgd-pd-car.has-spin.is-turning { cursor: grabbing; }
.hgd-pd-car.has-spin img { transition: none; pointer-events: none; }
.hgd-spin-view { width: 100%; max-width: 760px; margin: 0 auto; background-repeat: no-repeat; pointer-events: none; }
.hgd-spin-view[hidden] { display: none !important; }
.hgd-spin-badge { display: none; }
.hgd-pd-car.has-spin .hgd-spin-badge { display: flex; flex-direction: column; align-items: center; justify-content: center; position: absolute; left: 50%; top: 50%; width: 96px; height: 96px; margin: -48px 0 0 -48px; border-radius: 50%; background: rgba(0, 44, 95, .55); color: #fff; font: 500 20px/1.1 "Hyundai Sans Head", sans-serif; pointer-events: none; transition: opacity .3s; }
.hgd-spin-badge small { margin-top: 4px; font: 400 11px/1.2 "Hyundai Sans Text", sans-serif; }
.hgd-pd-car.is-used .hgd-spin-badge { opacity: 0; }

/* Giá & Màu xe trên máy tính: xe lớn một hàng; hàng dưới: chọn màu bên trái, 3 nút bên phải, căn giữa theo chiều dọc; không hiện dòng "Giá từ" (điện thoại giữ nguyên) */
@media (min-width: 992px) {
  .hgd-pd-colorbox { grid-template-columns: 1fr; gap: 20px; }
  .hgd-pd-car img, .hgd-spin-view { max-width: 1060px; }
  .hgd-pd-car.has-spin .hgd-spin-badge { width: 110px; height: 110px; margin: -55px 0 0 -55px; }
  .hgd-pd-pick { display: grid; grid-template-columns: 1fr auto auto; grid-template-rows: auto auto; column-gap: 12px; row-gap: 12px; align-items: center; padding-bottom: 28px; border-bottom: 1px solid #e6e9ee; }
  .hgd-pd-cname { grid-column: 1; grid-row: 1; margin: 0; }
  .hgd-pd-pick ul { grid-column: 1; grid-row: 2; margin: 0; }
  .hgd-pd-price { display: none; }
  .hgd-pd-pick-btns { grid-column: 2; grid-row: 2; flex-wrap: nowrap; }
  .hgd-pd-catalog { grid-column: 3; grid-row: 2; margin: 0; font-size: 14px; }
  .hgd-pd-catalog a { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 24px; border: 1px solid var(--navy); background: #fff; color: var(--navy); font-weight: 600; letter-spacing: .02em; text-transform: uppercase; text-decoration: none; }
  .hgd-pd-catalog a:hover { background: var(--navy); color: #fff; }
}
