/* ==========================================================================
   NTP Dây Đeo — hệ thống thiết kế dùng chung (theme WordPress + bản xem thử)
   ========================================================================== */

:root {
  --navy-900: #061a35;
  --navy: #0b2e59;
  --navy-700: #15427c;
  --blue: #1f5fae;
  --blue-100: #dce8f6;
  --blue-50: #eef4fb;
  --orange: #f26a1b;
  --orange-600: #d4560c;
  --orange-50: #fff3eb;
  --zalo: #0068ff;
  --ink: #0f1d2e;
  --text: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --surface: #f5f8fc;
  --white: #fff;

  --font: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(11, 46, 89, .06);
  --shadow: 0 1px 2px rgba(11, 46, 89, .05), 0 6px 20px rgba(11, 46, 89, .07);
  --shadow-lg: 0 14px 40px rgba(11, 46, 89, .16);
  --container: 1200px;
  --gutter: 16px;
  --header-h: 64px;
  /* Một tỉ lệ ảnh sản phẩm cho toàn website */
  --img-ratio: 4 / 3;
}
@media (min-width: 768px) { :root { --gutter: 24px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
[id] { scroll-margin-top: 90px; }
@media (min-width: 1024px) { [id] { scroll-margin-top: 150px; } }
body {
  margin: 0; background: var(--white); color: var(--text);
  font-family: var(--font); font-size: 16px; line-height: 1.65;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--orange-600); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.3; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 8px; top: -60px; z-index: 200; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 8px; color: #fff; }
.icon { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.2em; }
.icon--fill { fill: currentColor; stroke: none; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Nút ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 46px; padding: .65em 1.3em; border-radius: 999px; border: 2px solid transparent;
  font-weight: 600; font-size: 15px; line-height: 1.2; text-align: center; white-space: nowrap;
  transition: background-color .18s, color .18s, border-color .18s, transform .18s, box-shadow .18s;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--navy); color: #fff; }
.btn--primary:hover { background: var(--navy-700); color: #fff; }
.btn--accent { background: var(--orange); color: #fff; box-shadow: 0 6px 16px rgba(242, 106, 27, .28); }
.btn--accent:hover { background: var(--orange-600); color: #fff; }
.btn--ghost { background: #fff; color: var(--navy); border-color: var(--blue-100); }
.btn--ghost:hover { border-color: var(--navy); color: var(--navy); }
.btn--light { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .35); }
.btn--light:hover { background: #fff; color: var(--navy); }
.btn--zalo { background: var(--zalo); color: #fff; }
.btn--zalo:hover { background: #0057d6; color: #fff; }
.btn--sm { min-height: 38px; padding: .45em 1em; font-size: 14px; }
.btn--block { width: 100%; }

/* ---------- Thanh trên cùng ---------- */
.topbar { background: var(--navy-900); color: #c9d6e8; font-size: 13.5px; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 38px; }
.topbar a { color: #fff; }
.topbar a:hover { color: #ffb98f; }
.topbar__info, .topbar__links { display: flex; align-items: center; gap: 20px; }
.topbar__item { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.topbar__company { display: none; }
@media (min-width: 1024px) { .topbar__company { display: inline-flex; } }
@media (max-width: 767px) { .topbar__links, .topbar__mail { display: none; } .topbar .container { justify-content: center; } }

/* ---------- Đầu trang ---------- */
.site-header { position: sticky; top: 0; z-index: 90; background: #fff; border-bottom: 1px solid var(--line); transition: box-shadow .2s; }
.site-header.is-scrolled { box-shadow: 0 6px 20px rgba(11, 46, 89, .08); }
.header-main .container { display: flex; align-items: center; gap: 16px; min-height: var(--header-h); }
.site-logo { display: flex; align-items: center; flex: none; }
.site-logo img { width: 190px; height: auto; }
@media (min-width: 768px) { .site-logo img { width: 230px; } :root { --header-h: 76px; } }
.header-search { flex: 1; max-width: 520px; margin: 0 auto; display: none; position: relative; }
@media (min-width: 900px) { .header-search { display: block; } }
.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.header-hotline { display: none; align-items: center; gap: 10px; color: var(--ink); line-height: 1.25; }
.header-hotline small { display: block; color: var(--muted); font-size: 12px; font-weight: 500; }
.header-hotline strong { font-size: 17px; color: var(--navy); }
.header-hotline__icon { width: 40px; height: 40px; border-radius: 50%; background: var(--orange-50); color: var(--orange); display: grid; place-items: center; }
@media (min-width: 1100px) { .header-hotline { display: flex; } }
.header-cta { display: none; }
@media (min-width: 640px) { .header-cta { display: inline-flex; } }
.icon-btn { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--navy); display: inline-grid; place-items: center; }
.icon-btn:hover { border-color: var(--navy); }
.icon-btn .icon { width: 22px; height: 22px; }
@media (min-width: 900px) { .search-toggle { display: none; } }
@media (min-width: 1024px) { .menu-toggle { display: none; } }

/* Ô tìm kiếm */
.search-form { position: relative; display: flex; }
.search-form input[type="search"] {
  width: 100%; height: 46px; padding: 0 52px 0 18px; border: 1.5px solid var(--line); border-radius: 999px;
  background: var(--surface); font: inherit; font-size: 15px; color: var(--ink); -webkit-appearance: none; appearance: none;
}
.search-form input[type="search"]::placeholder { color: #8a97a8; }
.search-form input[type="search"]:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(31, 95, 174, .12); }
.search-form button { position: absolute; right: 4px; top: 4px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--navy); color: #fff; display: grid; place-items: center; }
.search-form button:hover { background: var(--orange); }
.search-suggest {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 100; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); padding: 6px; max-height: 70vh; overflow: auto;
}
.search-suggest[hidden] { display: none; }
.search-suggest a { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 8px; color: var(--ink); font-size: 14.5px; line-height: 1.35; }
.search-suggest a:hover, .search-suggest a.is-active { background: var(--blue-50); color: var(--navy); }
.search-suggest img { width: 52px; height: 39px; object-fit: cover; border-radius: 6px; background: var(--surface); flex: none; }
.search-suggest small { display: block; color: var(--muted); font-size: 12.5px; }
.search-suggest__all { justify-content: center; font-weight: 600; color: var(--blue) !important; border-top: 1px solid var(--line); margin-top: 4px; border-radius: 0 0 8px 8px !important; }
.search-suggest__empty { padding: 12px; color: var(--muted); font-size: 14px; }
.mobile-search { padding: 0 var(--gutter) 12px; display: none; position: relative; }
.mobile-search.is-open { display: block; }
@media (min-width: 900px) { .mobile-search { display: none !important; } }

/* Menu chính */
.main-nav { display: none; border-top: 1px solid var(--line); }
@media (min-width: 1024px) { .main-nav { display: block; } }
.main-nav .menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.main-nav .menu > li { position: relative; }
.main-nav .menu > li > a { display: flex; align-items: center; gap: 4px; padding: 13px 14px; color: var(--ink); font-weight: 600; font-size: 15px; border-bottom: 3px solid transparent; }
.main-nav .menu > li > a:hover,
.main-nav .menu > li.current-menu-item > a,
.main-nav .menu > li.current-menu-ancestor > a,
.main-nav .menu > li.current-category-ancestor > a { color: var(--navy); border-bottom-color: var(--orange); }
.main-nav .menu-item-has-children > a::after { content: ""; width: 7px; height: 7px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg) translateY(-3px); margin-left: 6px; opacity: .6; }
.main-nav .sub-menu {
  list-style: none; margin: 0; padding: 8px; position: absolute; left: 0; top: 100%; min-width: 240px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s; z-index: 95;
}
.main-nav li:hover > .sub-menu, .main-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.main-nav .sub-menu a { display: block; padding: 9px 12px; border-radius: 8px; color: var(--ink); font-weight: 500; font-size: 15px; }
.main-nav .sub-menu a:hover { background: var(--blue-50); color: var(--navy); }
.main-nav .main-nav__contact { margin-left: auto !important; }
.main-nav .main-nav__contact > a, .drawer .main-nav__contact > a { color: var(--orange-600) !important; }

/* Ngăn kéo menu điện thoại */
.drawer { position: fixed; inset: 0; z-index: 150; visibility: hidden; }
.drawer.is-open { visibility: visible; }
.drawer__backdrop { position: absolute; inset: 0; background: rgba(6, 26, 53, .5); opacity: 0; transition: opacity .2s; }
.drawer.is-open .drawer__backdrop { opacity: 1; }
.drawer__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(86vw, 360px); background: #fff; display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .25s ease; overflow-y: auto;
}
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.drawer__head img { width: 170px; }
.drawer .menu { list-style: none; margin: 0; padding: 8px 0; }
.drawer .menu li { position: relative; }
.drawer .menu a { display: block; padding: 13px 20px; color: var(--ink); font-weight: 600; border-bottom: 1px solid var(--surface); }
.drawer .menu .current-menu-item > a { color: var(--orange-600); }
.drawer .sub-menu { list-style: none; margin: 0; padding: 0 0 6px; background: var(--surface); display: none; }
.drawer .sub-menu.is-open { display: block; }
.drawer .sub-menu a { padding: 11px 20px 11px 36px; font-weight: 500; border-bottom: 0; }
.drawer .submenu-toggle { position: absolute; right: 8px; top: 6px; width: 40px; height: 40px; border: 0; background: transparent; color: var(--navy); display: grid; place-items: center; }
.drawer .submenu-toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
.drawer__contact { margin-top: auto; padding: 16px; display: grid; gap: 10px; background: var(--blue-50); }
.drawer__contact p { margin: 0; font-size: 14px; color: var(--muted); }

/* ---------- Khối chung ---------- */
.section { padding: 56px 0; }
@media (min-width: 768px) { .section { padding: 80px 0; } }
.section--surface { background: var(--surface); }
.section--tight { padding: 40px 0; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; margin-bottom: 28px; }
.section-head h2 { font-size: clamp(24px, 3.2vw, 34px); margin: 0; }
.section-head p { margin: 6px 0 0; color: var(--muted); max-width: 640px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--orange-600); margin-bottom: 8px; }
.eyebrow::before { content: ""; width: 22px; height: 3px; border-radius: 3px; background: var(--orange); }
.link-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--navy); white-space: nowrap; }
.link-more:hover { color: var(--orange-600); gap: 10px; }
.link-more .icon { transition: transform .18s; }

/* ---------- Banner chính ---------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(160deg, var(--navy-900) 0%, var(--navy) 55%, var(--navy-700) 100%); color: #d8e3f2; }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 300px at 85% 10%, rgba(242, 106, 27, .22), transparent 70%), radial-gradient(500px 400px at 0% 100%, rgba(31, 95, 174, .5), transparent 70%); pointer-events: none; }
.hero .container { position: relative; display: grid; gap: 36px; padding-top: 44px; padding-bottom: 52px; }
@media (min-width: 1024px) { .hero .container { grid-template-columns: 1.02fr 1fr; align-items: center; gap: 56px; padding-top: 72px; padding-bottom: 80px; } }
.hero__kicker { display: inline-flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); color: #fff; font-size: 13.5px; font-weight: 600; padding: 6px 14px; border-radius: 999px; margin-bottom: 18px; }
.hero__kicker span { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px rgba(242, 106, 27, .25); }
.hero h1 { color: #fff; font-size: clamp(30px, 5vw, 50px); line-height: 1.15; letter-spacing: -.02em; margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: #ffa36b; }
.hero__lead { font-size: clamp(16px, 1.6vw, 18px); color: #c9d6e8; max-width: 560px; margin-bottom: 24px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.hero__actions .btn { min-height: 52px; padding-inline: 1.6em; font-size: 16px; }
.hero__points { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
@media (min-width: 560px) { .hero__points { grid-template-columns: 1fr 1fr; } }
.hero__points li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; line-height: 1.45; color: #e6edf7; }
.hero__points .icon { color: #ffa36b; margin-top: 2px; }
.hero__media { display: grid; grid-template-columns: 1.15fr 1fr; grid-template-rows: auto auto; gap: 12px; }
.hero__media figure { margin: 0; border-radius: var(--radius); overflow: hidden; background: rgba(255, 255, 255, .08); box-shadow: 0 20px 40px rgba(0, 0, 0, .25); }
.hero__media a { display: block; height: 100%; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.hero__media figure:first-child { grid-row: span 2; }
.hero__media figure:first-child img { aspect-ratio: auto; min-height: 100%; }
@media (max-width: 559px) { .hero__media { grid-template-columns: 1fr 1fr; } .hero__media figure:first-child { grid-column: span 2; grid-row: auto; } .hero__media figure:first-child img { aspect-ratio: 16 / 10; } }

/* Dải cam kết dưới banner */
.trust { background: #fff; border-bottom: 1px solid var(--line); }
.trust .container { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
@media (min-width: 900px) { .trust .container { grid-template-columns: repeat(4, 1fr); } }
.trust__item { display: flex; align-items: center; gap: 12px; padding: 18px 8px; font-size: 14px; line-height: 1.4; color: var(--ink); font-weight: 600; }
.trust__item small { display: block; color: var(--muted); font-weight: 500; font-size: 13px; }
.trust__icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--blue-50); color: var(--navy); flex: none; }
.trust__icon .icon { width: 22px; height: 22px; }

/* ---------- Ô danh mục ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 640px) { .cat-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
@media (min-width: 1024px) { .cat-grid { grid-template-columns: repeat(6, 1fr); } }
.cat-tile { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: var(--ink); transition: transform .2s, box-shadow .2s, border-color .2s; }
.cat-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--blue-100); color: var(--ink); }
.cat-tile__img { aspect-ratio: var(--img-ratio); background: var(--surface); overflow: hidden; }
.cat-tile__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.cat-tile:hover .cat-tile__img img { transform: scale(1.05); }
.cat-tile__body { padding: 12px 14px 14px; }
.cat-tile__name { font-weight: 700; font-size: 15.5px; line-height: 1.3; display: block; }
.cat-tile__count { font-size: 13px; color: var(--muted); }
.cat-tile__go { position: absolute; top: 10px; right: 10px; width: 32px; height: 32px; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--navy); display: grid; place-items: center; box-shadow: var(--shadow-sm); opacity: 0; transform: scale(.8); transition: .2s; }
.cat-tile:hover .cat-tile__go { opacity: 1; transform: none; }

/* ---------- Thẻ sản phẩm ---------- */
.tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1) 24px; padding: 2px var(--gutter); }
.tabs::-webkit-scrollbar { display: none; }
.tab, .chip {
  flex: none; border: 1.5px solid var(--line); background: #fff; color: var(--ink); border-radius: 999px;
  padding: 8px 16px; font-weight: 600; font-size: 14.5px; white-space: nowrap; transition: .15s;
}
.tab:hover, .chip:hover { border-color: var(--navy); color: var(--navy); }
.tab[aria-selected="true"], .chip.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip small { opacity: .7; font-weight: 500; margin-left: 4px; }
.tab-panel[hidden] { display: none; }

.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 640px) { .product-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
@media (min-width: 1024px) { .product-grid { grid-template-columns: repeat(4, 1fr); gap: 24px; } }
.card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .2s, box-shadow .2s, border-color .2s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--blue-100); }
.card__img { position: relative; display: block; aspect-ratio: var(--img-ratio); background: var(--surface); overflow: hidden; }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card__img img { transform: scale(1.04); }
.card__img--empty { display: grid; place-items: center; color: #a9b6c6; }
.card__badge { position: absolute; left: 10px; top: 10px; background: rgba(255, 255, 255, .94); color: var(--navy); font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; box-shadow: var(--shadow-sm); }
.card__body { display: flex; flex-direction: column; gap: 6px; padding: 12px 12px 14px; flex: 1; }
@media (min-width: 640px) { .card__body { padding: 14px 16px 16px; } }
.card__title { font-size: 15px; font-weight: 600; line-height: 1.4; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (min-width: 640px) { .card__title { font-size: 16px; } }
.card__title a { color: var(--ink); }
.card__title a::after { content: ""; position: absolute; inset: 0; }
.card__title a:hover { color: var(--navy); }
.card__meta { font-size: 13px; color: var(--muted); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.card__foot { margin-top: auto; padding-top: 8px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.card__more { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--orange-600); }
.card:hover .card__more { gap: 10px; }
.grid-more { text-align: center; margin-top: 32px; }

/* ---------- Giới thiệu ---------- */
.about { display: grid; gap: 32px; }
@media (min-width: 1024px) { .about { grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; } }
.about__media { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.about__media img { border-radius: var(--radius); width: 100%; aspect-ratio: var(--img-ratio); object-fit: cover; }
.about__media img:nth-child(2) { margin-top: 32px; }
.about h2 { font-size: clamp(24px, 3.2vw, 34px); }
.check-list { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 10px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; }
.check-list .icon { color: var(--orange); margin-top: 4px; }
.check-list--2 { grid-template-columns: 1fr; }
@media (min-width: 560px) { .check-list--2 { grid-template-columns: 1fr 1fr; } }
.quote { border-left: 4px solid var(--orange); background: var(--orange-50); padding: 14px 18px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--ink); font-weight: 600; margin: 0 0 20px; }

/* Chất liệu */
.materials { display: grid; gap: 16px; }
@media (min-width: 768px) { .materials { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.material { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; position: relative; overflow: hidden; }
.material::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 4px; background: var(--navy); }
.material--accent::before { background: var(--orange); }
.material h3 { font-size: 19px; margin-bottom: 6px; }
.material p { margin: 0; color: var(--text); }
.material__tag { display: inline-block; font-size: 12.5px; font-weight: 700; color: var(--navy); background: var(--blue-50); padding: 3px 10px; border-radius: 999px; margin-bottom: 12px; }
.material--accent .material__tag { color: var(--orange-600); background: var(--orange-50); }

/* ---------- Thông tin đặt hàng ---------- */
.order { display: grid; gap: 40px; }
@media (min-width: 1024px) { .order { grid-template-columns: 1.3fr 1fr; gap: 56px; } }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 4px; }
.step { position: relative; display: grid; grid-template-columns: 48px 1fr; gap: 16px; padding-bottom: 22px; }
.step::before { counter-increment: step; content: counter(step); width: 48px; height: 48px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 700; font-size: 18px; display: grid; place-items: center; position: relative; z-index: 1; }
.step:not(:last-child)::after { content: ""; position: absolute; left: 23px; top: 48px; bottom: 0; width: 2px; background: var(--blue-100); }
.step:last-child::before { background: var(--orange); }
.step h3 { font-size: 17.5px; margin: 10px 0 4px; }
.step p { margin: 0; color: var(--text); font-size: 15px; }
.facts { background: var(--navy); color: #d3deee; border-radius: var(--radius); padding: 28px; }
.facts h3 { color: #fff; font-size: 20px; margin-bottom: 16px; }
.facts dl { margin: 0; display: grid; gap: 0; }
.facts dl div { display: grid; gap: 2px; padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.facts dl div:last-child { border-bottom: 0; }
.facts dt { font-size: 13px; color: #9fb3cf; font-weight: 500; }
.facts dd { margin: 0; color: #fff; font-weight: 600; }
.facts .btn { margin-top: 18px; }

/* ---------- Bài viết / dịch vụ ---------- */
.post-grid { display: grid; gap: 20px; }
@media (min-width: 640px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .post-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.post-card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .2s, box-shadow .2s; }
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.post-card__img { aspect-ratio: var(--img-ratio); background: var(--surface); overflow: hidden; }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; }
.post-card__body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-card__date { font-size: 13px; color: var(--muted); }
.post-card h3 { font-size: 18px; margin: 0; line-height: 1.4; }
.post-card h3 a { color: var(--ink); }
.post-card h3 a::after { content: ""; position: absolute; inset: 0; }
.post-card p { margin: 0; color: var(--text); font-size: 15px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-grid--featured > :first-child { }
@media (min-width: 1024px) {
  .post-grid--featured { grid-template-columns: 1.4fr 1fr 1fr; grid-template-rows: auto auto; }
  .post-grid--featured > :first-child { grid-row: span 2; }
  /* Bài nổi bật cao gấp đôi: ảnh giãn theo chiều cao thẻ để không trống phía dưới */
  .post-grid--featured > :first-child .post-card__img { aspect-ratio: auto; flex: 1; min-height: 320px; }
  .post-grid--featured > :first-child .post-card__body { flex: none; }
  .post-grid--featured > :not(:first-child) .post-card__body p { display: none; }
}

/* ---------- Dải kêu gọi liên hệ ---------- */
.cta-band { background: linear-gradient(120deg, var(--orange) 0%, #f5843f 100%); color: #fff; }
.cta-band .container { display: grid; gap: 20px; padding-top: 40px; padding-bottom: 40px; align-items: center; }
@media (min-width: 900px) { .cta-band .container { grid-template-columns: 1fr auto; padding-top: 48px; padding-bottom: 48px; } }
.cta-band h2 { color: #fff; font-size: clamp(22px, 3vw, 30px); margin-bottom: 6px; }
.cta-band p { margin: 0; color: #fff3ea; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-band .btn--primary { background: var(--navy-900); }
.cta-band .btn--light { border-color: rgba(255, 255, 255, .6); }
.cta-band .btn--light:hover { color: var(--orange-600); }

/* ---------- Chân trang ---------- */
.site-footer { background: var(--navy-900); color: #a9bad2; font-size: 15px; }
.site-footer a { color: #dbe5f2; }
.site-footer a:hover { color: #ffa36b; }
.footer-main { display: grid; gap: 36px; padding-top: 56px; padding-bottom: 40px; }
@media (min-width: 768px) { .footer-main { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .footer-main { grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 48px; } }
.footer-brand img { width: 220px; background: #fff; padding: 10px 14px; border-radius: 10px; margin-bottom: 16px; }
.footer-brand p { margin-bottom: 12px; }
.site-footer h3 { color: #fff; font-size: 16px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 16px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer-links .sub-menu { list-style: none; padding: 9px 0 0 14px; margin: 0; display: grid; gap: 9px; }
.footer-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.footer-contact li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; line-height: 1.5; }
.footer-contact .icon { color: #ffa36b; margin-top: 3px; }
.footer-contact strong { color: #fff; font-weight: 600; display: block; font-size: 14px; }
.social { display: flex; gap: 10px; margin-top: 16px; }
.social a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .08); color: #fff; }
.social a:hover { background: var(--orange); color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 18px 0 96px; font-size: 13.5px; }
@media (min-width: 768px) { .footer-bottom { padding-bottom: 18px; } }
.footer-bottom .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }

/* ---------- Nút liên hệ cố định ---------- */
.float-contact { position: fixed; right: 18px; bottom: 22px; z-index: 80; display: none; flex-direction: column; gap: 12px; }
@media (min-width: 768px) { .float-contact { display: flex; } }
.float-contact a { position: relative; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; color: #fff; box-shadow: var(--shadow-lg); transition: transform .18s; }
.float-contact a:hover { transform: scale(1.08); color: #fff; }
.float-contact__call { background: var(--orange); }
.float-contact__call::before { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--orange); opacity: .5; animation: ring 2s ease-out infinite; }
.float-contact__zalo { background: var(--zalo); font-weight: 800; font-size: 13px; letter-spacing: .02em; }
.float-contact .icon { width: 24px; height: 24px; }
.float-contact__label { position: absolute; right: 66px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 600; padding: 6px 10px; border-radius: 8px; white-space: nowrap; opacity: 0; pointer-events: none; transform: translateX(6px); transition: .18s; }
.float-contact a:hover .float-contact__label { opacity: 1; transform: none; }
@keyframes ring { 0% { transform: scale(.9); opacity: .6; } 100% { transform: scale(1.35); opacity: 0; } }

.mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 80; display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 8px; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(11, 46, 89, .08); }
@media (min-width: 768px) { .mobile-bar { display: none; } }
.mobile-bar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 50px; border-radius: 12px; font-size: 12.5px; font-weight: 700; color: var(--navy); background: var(--blue-50); line-height: 1.1; }
.mobile-bar .icon { width: 20px; height: 20px; }
.mobile-bar__zalo { color: var(--zalo) !important; }
.mobile-bar__zalo b { font-size: 15px; letter-spacing: .02em; }
.mobile-bar__quote { background: var(--orange) !important; color: #fff !important; }
@media (max-width: 767px) { body { padding-bottom: 72px; } }

/* ---------- Trang danh mục ---------- */
.page-hero { background: linear-gradient(160deg, var(--navy-900), var(--navy)); color: #c9d6e8; padding: 28px 0 32px; }
@media (min-width: 768px) { .page-hero { padding: 40px 0 44px; } }
.page-hero h1 { color: #fff; font-size: clamp(26px, 4vw, 40px); margin: 6px 0 6px; }
.page-hero p { margin: 0; max-width: 720px; }
.page-hero .breadcrumb, .page-hero .breadcrumb a { color: #9fb3cf; }
.page-hero .breadcrumb a:hover { color: #fff; }
.breadcrumb { font-size: 13.5px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--orange-600); }
.breadcrumb .sep, .breadcrumb .separator { opacity: .6; }
.breadcrumb p { margin: 0; }
.archive-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 24px; }
.archive-bar .tabs { margin-bottom: 0; flex: 1; min-width: 0; }
.archive-count { color: var(--muted); font-size: 14.5px; white-space: nowrap; }
.archive-search { width: 100%; max-width: 340px; }
.archive-search input[type="search"] { background: #fff; }

.pagination { margin-top: 40px; }
.pagination .nav-links, .pagination ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; list-style: none; padding: 0; margin: 0; }
.pagination a, .pagination span.page-numbers, .pagination .current {
  min-width: 44px; height: 44px; padding: 0 12px; border-radius: 12px; display: inline-grid; place-items: center;
  border: 1.5px solid var(--line); color: var(--ink); font-weight: 600; background: #fff;
}
.pagination a:hover { border-color: var(--navy); color: var(--navy); }
.pagination .current { background: var(--navy); border-color: var(--navy); color: #fff; }
.pagination .dots { border: 0; background: none; }
.empty-state { text-align: center; padding: 48px 16px; background: var(--surface); border-radius: var(--radius); }
.empty-state h2 { font-size: 22px; }
.empty-state .search-form { max-width: 460px; margin: 16px auto 0; }

/* ---------- Trang chi tiết sản phẩm ---------- */
.product-top { padding: 20px 0 48px; }
@media (min-width: 768px) { .product-top { padding: 28px 0 64px; } }
.product-top .breadcrumb { margin-bottom: 18px; }
.product { display: grid; gap: 28px; }
@media (min-width: 960px) { .product { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; align-items: start; } }
.product > *, .product-detail > *, .order > *, .about > * { min-width: 0; }
.gallery { position: relative; }
@media (min-width: 960px) { .gallery { position: sticky; top: calc(var(--header-h) + 64px); } }
.gallery__main { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line); aspect-ratio: var(--img-ratio); }
.gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.gallery__main a { display: block; height: 100%; cursor: zoom-in; }
.gallery__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); color: var(--navy); display: grid; place-items: center; box-shadow: var(--shadow); }
.gallery__nav--prev { left: 10px; }
.gallery__nav--next { right: 10px; }
.gallery__count { position: absolute; right: 12px; bottom: 12px; background: rgba(6, 26, 53, .7); color: #fff; font-size: 12.5px; font-weight: 600; padding: 3px 10px; border-radius: 999px; }
.gallery__thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; scrollbar-width: thin; padding-bottom: 4px; }
.gallery__thumbs button { flex: none; width: 80px; height: auto; padding: 0; border-radius: 8px; overflow: hidden; border: 2px solid transparent; background: var(--surface); opacity: .7; transition: .15s; }
.gallery__thumbs button img { width: 100%; height: auto; aspect-ratio: var(--img-ratio); object-fit: cover; }
.gallery__thumbs button:hover { opacity: 1; }
.gallery__thumbs button[aria-current="true"] { border-color: var(--orange); opacity: 1; }
.summary__cat { display: inline-block; font-size: 13px; font-weight: 700; color: var(--navy); background: var(--blue-50); padding: 4px 12px; border-radius: 999px; margin-bottom: 12px; }
.summary__cat:hover { background: var(--navy); color: #fff; }
.summary h1 { font-size: clamp(24px, 3.4vw, 34px); margin-bottom: 16px; }
.spec { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 20px; }
.spec__title { margin: 0; padding: 12px 16px; background: var(--surface); font-size: 15px; border-bottom: 1px solid var(--line); }
.spec dl { margin: 0; }
.spec dl div { display: grid; grid-template-columns: minmax(110px, 38%) 1fr; gap: 12px; padding: 11px 16px; border-bottom: 1px solid var(--line); font-size: 15px; }
.spec dl div:last-child { border-bottom: 0; }
.spec dt { color: var(--muted); font-weight: 500; }
.spec dd { margin: 0; color: var(--ink); font-weight: 600; }
.spec ul { margin: 0; padding: 12px 16px 12px 34px; }
.spec li { margin: 4px 0; }
.price-note { display: flex; gap: 10px; align-items: flex-start; background: var(--orange-50); border: 1px solid #ffd9c2; color: #7a3410; padding: 12px 14px; border-radius: var(--radius-sm); font-size: 15px; margin-bottom: 20px; }
.price-note .icon { color: var(--orange); margin-top: 3px; }
.quote-box { background: var(--navy); color: #c9d6e8; border-radius: var(--radius); padding: 20px; }
.quote-box h2 { color: #fff; font-size: 18px; margin-bottom: 4px; }
.quote-box p { font-size: 14.5px; margin-bottom: 14px; }
.quote-box__actions { display: grid; gap: 10px; }
@media (min-width: 480px) { .quote-box__actions { grid-template-columns: 1fr 1fr; } .quote-box__actions .btn--accent { grid-column: span 2; } }
.quote-box__actions .btn { min-height: 50px; }
.quote-box__meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 14px; font-size: 13.5px; }
.quote-box__meta a { color: #fff; }
.summary__perks { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; font-size: 14.5px; }
.summary__perks li { display: flex; gap: 8px; align-items: flex-start; }
.summary__perks .icon { color: #1a9a5b; margin-top: 3px; }

.product-detail { display: grid; gap: 32px; }
@media (min-width: 1024px) { .product-detail { grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: start; } }
.detail-aside { display: grid; gap: 16px; }
@media (min-width: 1024px) { .detail-aside { position: sticky; top: calc(var(--header-h) + 64px); } }
.aside-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: #fff; }
.aside-card h3 { font-size: 16px; margin-bottom: 12px; }
.aside-card .footer-contact .icon { color: var(--orange); }
.aside-card .footer-contact strong { color: var(--ink); }
.aside-card .footer-contact a { color: var(--navy); font-weight: 600; }
.aside-cats { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.aside-cats a { display: flex; justify-content: space-between; padding: 8px 10px; border-radius: 8px; color: var(--ink); font-weight: 500; }
.aside-cats a:hover, .aside-cats .is-active a { background: var(--blue-50); color: var(--navy); }
.aside-cats small { color: var(--muted); }

/* Nội dung bài viết */
.entry-content { color: var(--text); font-size: 16.5px; line-height: 1.75; max-width: 100%; overflow-wrap: anywhere; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content h1, .entry-content h2 { font-size: clamp(21px, 2.6vw, 26px); margin: 1.6em 0 .6em; }
.entry-content h3 { font-size: 20px; margin: 1.4em 0 .5em; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.entry-content li { margin: .3em 0; }
.entry-content li::marker { color: var(--orange); }
.entry-content strong { color: var(--ink); }
.entry-content a { text-decoration: underline; text-decoration-color: rgba(31, 95, 174, .35); text-underline-offset: 3px; }
.entry-content img { border-radius: var(--radius-sm); display: inline-block; margin: 4px; vertical-align: top; max-width: calc(100% - 8px); height: auto; aspect-ratio: var(--img-ratio); object-fit: cover; }
.entry-content p:has(> img) { display: flex; flex-wrap: wrap; gap: 10px; }
.entry-content p:has(> img) img { margin: 0; flex: 0 1 calc(50% - 5px); width: calc(50% - 5px); height: auto; aspect-ratio: var(--img-ratio); object-fit: cover; }
@media (min-width: 768px) { .entry-content p:has(> img) img { flex-basis: calc(33.333% - 7px); width: calc(33.333% - 7px); } }
.entry-content table { width: 100%; border-collapse: collapse; margin-bottom: 1.2em; display: block; overflow-x: auto; }
.entry-content td, .entry-content th { border: 1px solid var(--line); padding: 8px 10px; }
.entry-content hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.entry-content blockquote { margin: 0 0 1.2em; padding: 12px 18px; border-left: 4px solid var(--orange); background: var(--orange-50); }
.entry-title-sm { font-size: 22px; margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.entry-title-sm::before { content: ""; width: 6px; height: 24px; border-radius: 3px; background: var(--orange); }
.entry-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.entry-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.entry-tags a { font-size: 13px; background: var(--surface); color: var(--text); padding: 5px 12px; border-radius: 999px; }
.entry-tags a:hover { background: var(--navy); color: #fff; }

/* Bài viết (dịch vụ) */
.article-head { max-width: 820px; }
.article-cover { border-radius: var(--radius); overflow: hidden; margin: 0 0 28px; background: var(--surface); }
.article-cover img { width: 100%; aspect-ratio: var(--img-ratio); object-fit: cover; }

/* ---------- Trang liên hệ ---------- */
.contact-grid { display: grid; gap: 20px; }
@media (min-width: 640px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .contact-grid { grid-template-columns: repeat(4, 1fr); } }
.contact-card { display: flex; flex-direction: column; gap: 6px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: box-shadow .2s, border-color .2s; }
.contact-card:hover { box-shadow: var(--shadow); border-color: var(--blue-100); }
.contact-card__icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--blue-50); color: var(--navy); margin-bottom: 8px; }
.contact-card__icon .icon { width: 24px; height: 24px; }
.contact-card--accent .contact-card__icon { background: var(--orange-50); color: var(--orange); }
.contact-card--zalo .contact-card__icon { background: #e6f0ff; color: var(--zalo); font-weight: 800; font-size: 13px; }
.contact-card h2, .contact-card h3 { font-size: 16px; margin: 0; }
.contact-card p { margin: 0; color: var(--text); font-size: 15px; }
.contact-card a.big { font-size: 19px; font-weight: 700; color: var(--navy); }
.contact-card a.big:hover { color: var(--orange-600); }
.contact-card .btn { margin-top: auto; align-self: flex-start; }
.contact-layout { display: grid; gap: 32px; margin-top: 40px; }
@media (min-width: 1024px) { .contact-layout { grid-template-columns: 1fr 1fr; gap: 48px; } }
.panel { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: #fff; }
@media (min-width: 768px) { .panel { padding: 32px; } }
.panel h2 { font-size: 22px; }
.copy-btn { border: 1px solid var(--line); background: #fff; color: var(--navy); font-size: 12.5px; font-weight: 600; padding: 3px 10px; border-radius: 999px; margin-left: 8px; vertical-align: 2px; }
.copy-btn:hover { border-color: var(--navy); }
.copy-btn.is-done { background: #e7f7ee; border-color: #9fdcb8; color: #157347; }

/* 404 */
.notfound { text-align: center; padding: 80px 0; }
.notfound__code { font-size: clamp(72px, 14vw, 140px); font-weight: 800; color: var(--blue-100); line-height: 1; }
.notfound .search-form { max-width: 480px; margin: 24px auto; }

/* Hiệu ứng xuất hiện nhẹ */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
  .reveal.is-visible { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Lightbox đơn giản */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(6, 26, 53, .92); display: grid; place-items: center; padding: 16px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 88vh; border-radius: 8px; background: #fff; }
.lightbox__close { position: absolute; top: 12px; right: 12px; width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .15); color: #fff; display: grid; place-items: center; }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .15); color: #fff; display: grid; place-items: center; }
.lightbox__nav--prev { left: 12px; }
.lightbox__nav--next { right: 12px; }

/* Tương thích lớp căn chỉnh của WordPress */
.alignleft { float: left; margin: 0 1em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 14px; color: var(--muted); text-align: center; }
