/* An Phát Pump & Motor — giao diện trưng bày sản phẩm */
:root {
  --brand: #00a19c;
  --brand-600: #008a86;
  --brand-700: #006f6c;
  --brand-50: #e8f7f6;
  --brand-100: #c9eeec;
  --ink: #0c1d26;
  --ink-2: #1d3340;
  --text: #3d5260;
  --muted: #6b7f8b;
  --line: #e3eaee;
  --bg: #f4f7f8;
  --surface: #ffffff;
  --accent: #f6a609;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(12, 29, 38, .06), 0 1px 3px rgba(12, 29, 38, .05);
  --shadow: 0 10px 30px -12px rgba(12, 29, 38, .18);
  --shadow-lg: 0 24px 60px -20px rgba(12, 29, 38, .28);
  --wrap: 1240px;
  --header-h: 72px;
  --font: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.65; color: var(--text);
  background: var(--bg); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.25; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
.section--tight { padding: 48px 0; }
.section--white { background: var(--surface); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--brand-700); margin-bottom: 12px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--brand); border-radius: 2px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 32px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(26px, 3.2vw, 36px); margin: 0; }
.section-head p { margin: 8px 0 0; color: var(--muted); max-width: 560px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 48px; padding: 0 22px;
  border-radius: 999px; font-weight: 600; font-size: 15px; border: 1px solid transparent;
  transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s; white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--primary { background: var(--brand); color: #fff; box-shadow: 0 8px 20px -8px rgba(0, 161, 156, .7); }
.btn--primary:hover { background: var(--brand-600); transform: translateY(-1px); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--ink-2); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand-700); }
.btn--white { background: #fff; color: var(--ink); }
.btn--white:hover { background: var(--brand-50); }
.btn--zalo { background: #0068ff; color: #fff; }
.btn--zalo:hover { background: #0057d6; }
.btn--sm { height: 40px; padding: 0 16px; font-size: 14px; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--brand-700); }
.link-arrow svg { width: 16px; height: 16px; transition: transform .2s; }
.link-arrow:hover svg { transform: translateX(3px); }

/* Top bar + header */
.topbar { background: var(--ink); color: #c4d3da; font-size: 13px; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; height: 38px; gap: 16px; }
.topbar a:hover { color: #fff; }
.topbar__info { display: flex; gap: 22px; overflow: hidden; white-space: nowrap; }
.topbar__info span { display: inline-flex; align-items: center; gap: 6px; }
.topbar svg { width: 14px; height: 14px; opacity: .8; }

.header {
  position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.header.is-stuck { border-color: var(--line); box-shadow: 0 6px 24px -18px rgba(12, 29, 38, .4); }
.header .wrap { display: flex; align-items: center; height: var(--header-h); gap: 28px; }
.logo { display: flex; align-items: center; gap: 12px; flex: none; }
.logo img { height: 46px; width: auto; }
.logo__text { display: flex; flex-direction: column; line-height: 1.2; }
.logo__text strong { color: var(--ink); font-size: 15px; letter-spacing: .01em; }
.logo__text small { color: var(--muted); font-size: 12px; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a {
  position: relative; padding: 10px 14px; border-radius: 10px; font-weight: 500; font-size: 15px; color: var(--ink-2);
  transition: color .2s, background .2s;
}
.nav a:hover { color: var(--brand-700); background: var(--brand-50); }
.nav a.is-active { color: var(--brand-700); }
.nav a.is-active::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; border-radius: 2px; background: var(--brand);
}
.header__actions { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; border: 1px solid var(--line);
  background: #fff; color: var(--ink); transition: border-color .2s, color .2s;
}
.icon-btn:hover { border-color: var(--brand); color: var(--brand-700); }
.icon-btn svg { width: 20px; height: 20px; }
.kbd { font-size: 11px; color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; margin-left: 4px; }
.search-trigger { width: auto; padding: 0 12px 0 14px; gap: 8px; display: flex; align-items: center; color: var(--muted); font-size: 14px; }
.menu-toggle { display: none; }

/* Mobile drawer */
.drawer { position: fixed; inset: 0; z-index: 80; pointer-events: none; }
.drawer__bg { position: absolute; inset: 0; background: rgba(12, 29, 38, .5); opacity: 0; transition: opacity .25s; }
.drawer__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(340px, 86vw); background: #fff; padding: 20px;
  transform: translateX(100%); transition: transform .3s cubic-bezier(.2, .8, .2, 1); display: flex; flex-direction: column; gap: 6px;
  overflow-y: auto;
}
.drawer.is-open { pointer-events: auto; }
.drawer.is-open .drawer__bg { opacity: 1; }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__panel a.drawer__link { padding: 14px 12px; border-radius: 10px; font-weight: 600; color: var(--ink); }
.drawer__panel a.drawer__link:hover { background: var(--brand-50); }
.drawer__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.drawer__cats { padding: 4px 0 8px 12px; display: grid; gap: 2px; }
.drawer__cats a { padding: 8px 12px; border-radius: 8px; font-size: 14px; color: var(--text); }
.drawer__cats a:hover { background: var(--bg); }
.drawer__cta { margin-top: auto; display: grid; gap: 10px; padding-top: 16px; }

/* Hero */
.hero { position: relative; overflow: hidden; background: radial-gradient(1200px 500px at 85% 0%, #d9f3f1 0%, rgba(217, 243, 241, 0) 60%), linear-gradient(180deg, #fff 0%, var(--bg) 100%); }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px; mask-image: radial-gradient(700px 400px at 70% 30%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(700px 400px at 70% 30%, #000 0%, transparent 70%);
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; padding-top: 64px; padding-bottom: 72px; }
.hero h1 { font-size: clamp(34px, 4.6vw, 56px); line-height: 1.1; letter-spacing: -.025em; margin-bottom: 20px; }
.hero h1 em { font-style: normal; color: var(--brand); position: relative; }
.hero__lead { font-size: 18px; color: var(--text); max-width: 540px; margin-bottom: 28px; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 40px; }
.hero__stats { display: grid; grid-template-columns: repeat(4, auto); gap: 28px; justify-content: start; }
.stat strong { display: block; font-size: 28px; color: var(--ink); line-height: 1.1; letter-spacing: -.02em; }
.stat span { font-size: 13px; color: var(--muted); }
.hero__visual { position: relative; aspect-ratio: 1 / .92; }
.hero__card {
  position: absolute; background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 18px;
  display: flex; flex-direction: column; gap: 8px; border: 1px solid var(--line);
}
.hero__card img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.hero__card span { font-size: 13px; font-weight: 600; color: var(--ink); text-align: center; }
.hero__card--1 { width: 56%; left: 4%; top: 6%; z-index: 2; }
.hero__card--2 { width: 40%; right: 0; top: 0; }
.hero__card--3 { width: 42%; right: 6%; bottom: 0; z-index: 3; }
.hero__badge {
  position: absolute; left: 0; bottom: 10%; z-index: 4; background: var(--ink); color: #fff; border-radius: 16px; padding: 14px 18px;
  display: flex; gap: 12px; align-items: center; box-shadow: var(--shadow-lg);
}
.hero__badge svg { width: 30px; height: 30px; color: var(--accent); }
.hero__badge strong { display: block; font-size: 15px; }
.hero__badge small { color: #a9bcc6; font-size: 12px; }

/* Trust strip */
.trust { background: var(--ink); color: #d3e0e6; }
.trust .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.trust__item { display: flex; gap: 14px; align-items: center; padding: 26px 20px; border-left: 1px solid rgba(255, 255, 255, .08); }
.trust__item:first-child { border-left: 0; padding-left: 0; }
.trust__item svg {
  width: 34px;
  height: 34px;
  color: var(--brand);
  flex: none;
  transform-origin: 50% 60%;
  will-change: transform;
  display: block;
}
.trust__item:hover svg {
  color: #5eead4;
}
.trust__item strong { display: block; color: #fff; font-size: 15px; }
.trust__item span { font-size: 13px; }

/* Category cards */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cat-card {
  position: relative; background: var(--surface); border-radius: var(--radius-lg); border: 1px solid var(--line); padding: 22px;
  display: flex; flex-direction: column; gap: 14px; overflow: hidden; transition: transform .25s, box-shadow .25s, border-color .25s;
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--brand-100); }
.cat-card__img { aspect-ratio: 4 / 3; display: grid; place-items: center; background: linear-gradient(180deg, var(--bg), #fff); border-radius: 14px; }
.cat-card__img img { width: 72%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.cat-card h3 { font-size: 17px; margin: 0; }
.cat-card__meta { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--muted); }
.cat-card__arrow { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-50); color: var(--brand-700); transition: background .2s, color .2s; }
.cat-card:hover .cat-card__arrow { background: var(--brand); color: #fff; }
.cat-card__arrow svg { width: 16px; height: 16px; }
.cat-card--feature { grid-column: span 2; grid-row: span 2; background: linear-gradient(150deg, var(--brand-700), var(--ink)); color: #d6eceb; border: 0; }
.cat-card--feature h3 { color: #fff; font-size: 24px; }
.cat-card--feature .cat-card__img { background: rgba(255, 255, 255, .96); flex: 1; aspect-ratio: auto; min-height: 240px; }
.cat-card--feature .cat-card__meta { color: #a8d2d0; }
.cat-card--feature p { margin: 0; font-size: 14px; color: #b9d9d8; }

/* Tabs */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.tab {
  height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: 14px; font-weight: 500; color: var(--ink-2);
  transition: all .2s;
}
.tab:hover { border-color: var(--brand); color: var(--brand-700); }
.tab.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }

/* Product cards */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.p-card {
  position: relative; display: flex; flex-direction: column; background: var(--surface); border-radius: var(--radius); border: 1px solid var(--line);
  overflow: hidden; transition: transform .25s, box-shadow .25s, border-color .25s;
}
.p-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--brand-100); }
.p-card__img { position: relative; aspect-ratio: 1; padding: 22px; background: #fff; display: grid; place-items: center; }
.p-card__img img { width: 100%; height: 100%; object-fit: contain; }
.p-card__brand {
  position: absolute; top: 12px; left: 12px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  background: var(--brand-50); color: var(--brand-700); padding: 4px 9px; border-radius: 999px;
}
.p-card__body { padding: 16px 18px 18px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; flex: 1; }
.p-card__sku { font-size: 12px; color: var(--muted); font-weight: 500; }
.p-card h3 {
  font-size: 15px; font-weight: 600; margin: 0; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 2.8em; text-transform: none;
}
.p-card__specs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.chip { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; padding: 4px 9px; border-radius: 8px; background: var(--bg); color: var(--ink-2); font-weight: 500; }
.chip svg { width: 12px; height: 12px; color: var(--brand); }
.p-card__more { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 600; color: var(--brand-700); padding-top: 4px; }
.p-card__more svg { width: 16px; height: 16px; transition: transform .2s; }
.p-card:hover .p-card__more svg { transform: translateX(3px); }

/* Banner slider */
.slider { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); background: #dfe8eb; aspect-ratio: 1920 / 700; }
.slider img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .8s ease; }
.slider img.is-active { opacity: 1; }
.slider__dots { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; }
.slider__dots button { width: 10px; height: 10px; border-radius: 999px; border: 0; background: rgba(255, 255, 255, .6); padding: 0; transition: width .3s, background .3s; }
.slider__dots button.is-active { width: 28px; background: #fff; }

/* Features */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px 24px; }
.feature__icon { width: 52px; height: 52px; border-radius: 14px; background: var(--brand-50); color: var(--brand-700); display: grid; place-items: center; margin-bottom: 18px; }
.feature__icon svg { width: 26px; height: 26px; }
.feature h3 { font-size: 17px; }
.feature p { font-size: 14px; color: var(--muted); margin: 0; }

/* Applications */
.apps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.app { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 3 / 4; color: #fff; display: flex; align-items: flex-end; isolation: isolate; }
.app img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.app::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(12, 29, 38, 0) 35%, rgba(12, 29, 38, .85) 100%); }
.app__body { padding: 22px; }
.app__body h3 { color: #fff; font-size: 20px; margin-bottom: 4px; }
.app__body p { font-size: 14px; color: #d1e0e5; margin: 0; }

/* News */
.post-card { display: flex; flex-direction: column; background: var(--surface); border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; transition: transform .25s, box-shadow .25s; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.post-card__img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg); }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; }
.post-card__body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-card__meta { font-size: 12px; color: var(--muted); display: flex; gap: 10px; align-items: center; }
.post-card__meta .tag { color: var(--brand-700); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.post-card h3 { font-size: 17px; margin: 0; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-card p { font-size: 14px; color: var(--muted); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-card--lead { grid-column: span 2; flex-direction: row; }
.post-card--lead .post-card__img { aspect-ratio: auto; flex: 1.2; min-height: 320px; }
.post-card--lead .post-card__body { flex: 1; padding: 32px; justify-content: center; }
.post-card--lead h3 { font-size: 24px; -webkit-line-clamp: 3; }
.post-card--lead p { -webkit-line-clamp: 4; }

/* CTA band */
.cta-band { position: relative; overflow: hidden; border-radius: 28px; background: linear-gradient(120deg, var(--brand) 0%, var(--brand-700) 60%, var(--ink) 100%); color: #e4f5f4; padding: 56px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: center; }
.cta-band::after { content: ""; position: absolute; width: 420px; height: 420px; right: -120px; top: -160px; border-radius: 50%; border: 60px solid rgba(255, 255, 255, .07); }
.cta-band h2 { color: #fff; font-size: clamp(26px, 3vw, 36px); }
.cta-band p { margin: 0; color: #c7ebe9; }
.cta-band__actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; position: relative; z-index: 1; }

/* Page hero / breadcrumb */
.page-hero { background: linear-gradient(180deg, #fff, var(--bg)); border-bottom: 1px solid var(--line); padding: 40px 0 36px; }
.page-hero h1 { font-size: clamp(28px, 3.6vw, 42px); margin: 6px 0 8px; }
.page-hero p { color: var(--muted); margin: 0; max-width: 680px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 13px; color: var(--muted); }
.crumbs a:hover { color: var(--brand-700); }
.crumbs svg { width: 14px; height: 14px; opacity: .6; }

/* Catalog */
.catalog { display: grid; grid-template-columns: 280px 1fr; gap: 32px; align-items: start; padding: 36px 0 80px; }
.sidebar { position: sticky; top: calc(var(--header-h) + 20px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px; max-height: calc(100vh - var(--header-h) - 40px); overflow: auto; }
.sidebar h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 4px 8px 12px; }
.cat-list, .cat-list ul { list-style: none; margin: 0; padding: 0; }
.cat-list ul { padding-left: 14px; margin: 2px 0 6px; border-left: 1px solid var(--line); margin-left: 12px; }
.cat-list a { display: flex; justify-content: space-between; gap: 8px; padding: 8px 10px; border-radius: 10px; font-size: 14px; color: var(--ink-2); transition: background .15s, color .15s; }
.cat-list a:hover { background: var(--bg); }
.cat-list a.is-active { background: var(--brand-50); color: var(--brand-700); font-weight: 600; }
.cat-list .count { color: var(--muted); font-size: 12px; font-weight: 500; }
.cat-list > li > a { font-weight: 600; }
.toolbar { display: flex; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 20px; flex-wrap: wrap; }
.toolbar h2 { font-size: 22px; margin: 0; }
.toolbar__count { color: var(--muted); font-size: 14px; }
.field { position: relative; flex: 1; max-width: 380px; min-width: 220px; }
.field svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); }
.field input, .select { width: 100%; height: 46px; border-radius: 12px; border: 1px solid var(--line); background: #fff; padding: 0 14px 0 42px; font: inherit; font-size: 15px; color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.field input:focus, .select:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(0, 161, 156, .12); }
.select { padding: 0 36px 0 14px; width: auto; appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7f8b' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 16px; }
.catalog__filters-btn { display: none; }
.empty { text-align: center; padding: 64px 20px; background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius-lg); color: var(--muted); }
.is-hidden { display: none !important; }

/* Product detail */
.product { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding: 32px 0 56px; align-items: start; }
.gallery { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 12px; }
.gallery__main { background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--line); aspect-ratio: 1; display: grid; place-items: center; padding: 40px; position: relative; overflow: hidden; }
.gallery__main img { width: 100%; height: 100%; object-fit: contain; }
.gallery__thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.gallery__thumbs button { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 8px; aspect-ratio: 1; }
.gallery__thumbs button.is-active { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(0, 161, 156, .15); }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: contain; }
.product__brand { display: inline-flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.badge { font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 6px 11px; border-radius: 999px; background: var(--brand-50); color: var(--brand-700); }
.badge--ink { background: var(--ink); color: #fff; }
.product h1 { font-size: clamp(24px, 2.8vw, 34px); margin-bottom: 10px; }
.product__sku { color: var(--muted); font-size: 14px; margin-bottom: 22px; }
.product__sku strong { color: var(--ink); }
.keyspecs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 24px; }
.keyspec { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.keyspec span { display: block; font-size: 12px; color: var(--muted); margin-bottom: 2px; }
.keyspec strong { color: var(--ink); font-size: 16px; }
.checklist { list-style: none; padding: 0; margin: 0 0 26px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; }
.checklist li { display: flex; gap: 10px; font-size: 14px; color: var(--ink-2); line-height: 1.45; }
.checklist svg { width: 18px; height: 18px; flex: none; color: var(--brand); margin-top: 1px; }
.product__cta { display: flex; gap: 12px; flex-wrap: wrap; padding: 22px; background: var(--surface); border-radius: var(--radius-lg); border: 1px solid var(--line); align-items: center; }
.product__cta p { margin: 0 auto 0 0; font-size: 14px; color: var(--muted); }
.product__cta p strong { display: block; color: var(--ink); font-size: 16px; }
.assure { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; }
.assure div { display: flex; gap: 10px; align-items: center; font-size: 13px; color: var(--ink-2); }
.assure svg { width: 22px; height: 22px; color: var(--brand); flex: none; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px; }
.panel + .panel { margin-top: 20px; }
.panel h2 { font-size: 22px; margin-bottom: 18px; }
.spec-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.spec-table th, .spec-table td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); }
.spec-table th { width: 38%; color: var(--muted); font-weight: 500; background: var(--bg); }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }
.spec-table td { color: var(--ink); font-weight: 600; }
.detail-layout { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start; padding-bottom: 72px; }
.aside-card { position: sticky; top: calc(var(--header-h) + 20px); background: var(--ink); color: #c6d6dd; border-radius: var(--radius-lg); padding: 28px; }
.aside-card h3 { color: #fff; font-size: 20px; }
.aside-card p { font-size: 14px; }
.aside-card .btn { width: 100%; margin-top: 10px; }

/* Prose (descriptions, articles, policies) */
.prose { color: var(--ink-2); font-size: 16.5px; line-height: 1.8; }
.prose > *:first-child { margin-top: 0; }
.prose h2 { font-size: 26px; margin: 1.8em 0 .6em; }
.prose h3 { font-size: 20px; margin: 1.6em 0 .5em; }
.prose h4 { font-size: 17px; margin: 1.4em 0 .4em; }
.prose p { margin: 0 0 1.1em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin: .35em 0; }
.prose li::marker { color: var(--brand); }
.prose a { color: var(--brand-700); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose img { border-radius: 14px; margin: 1.4em auto; }
.prose strong { color: var(--ink); }
.prose table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: 15px; display: block; overflow-x: auto; }
.prose td, .prose th { border: 1px solid var(--line); padding: 10px 12px; }
.prose blockquote { margin: 1.4em 0; padding: 16px 20px; border-left: 3px solid var(--brand); background: var(--brand-50); border-radius: 0 12px 12px 0; }

.article { max-width: 820px; margin: 0 auto; padding: 40px 0 64px; }
.article__cover { border-radius: var(--radius-lg); overflow: hidden; margin: 28px 0 36px; box-shadow: var(--shadow); }
.article__cover img { width: 100%; height: auto; display: block; }
.article__meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: 14px; color: var(--muted); align-items: center; }
.article__meta .badge { font-size: 11px; }
.article__meta svg { width: 15px; height: 15px; flex: none; }
.article h1 { font-size: clamp(28px, 3.8vw, 44px); line-height: 1.18; margin: 14px 0 16px; letter-spacing: -.02em; }
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px 24px; margin-bottom: 32px; }
.toc strong { display: block; color: var(--ink); margin-bottom: 8px; font-size: 15px; }
.toc ol { margin: 0; padding-left: 20px; display: grid; gap: 4px; font-size: 15px; }
.toc a:hover { color: var(--brand-700); }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about-img { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: t; }
.brands { display: flex; flex-wrap: wrap; gap: 10px; }
.brands span { padding: 10px 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-weight: 600; color: var(--ink-2); font-size: 14px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 32px; align-items: start; padding: 40px 0 80px; }
.branch { display: flex; gap: 16px; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.branch + .branch { margin-top: 14px; }
.branch__icon { width: 46px; height: 46px; border-radius: 12px; background: var(--brand-50); color: var(--brand-700); display: grid; place-items: center; flex: none; }
.branch__icon svg { width: 22px; height: 22px; }
.branch h3 { font-size: 16px; margin-bottom: 4px; }
.branch p { margin: 0; font-size: 14px; }
.branch a.link-arrow { font-size: 13px; margin-top: 6px; }
.form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px; display: grid; gap: 16px; }
.form h2 { font-size: 24px; margin: 0; }
.form label { display: grid; gap: 6px; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.form input, .form textarea, .form select { font: inherit; font-size: 15px; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: #fff; color: var(--ink); }
.form textarea { min-height: 120px; resize: vertical; }
.form input:focus, .form textarea:focus, .form select:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(0, 161, 156, .12); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form__note { font-size: 13px; color: var(--muted); margin: 0; }

/* Footer */
.footer { background: var(--ink); color: #9fb3bd; padding: 64px 0 0; font-size: 14px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer h4 { color: #fff; font-size: 15px; margin-bottom: 16px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer a:hover { color: #fff; }
.footer__brand img { height: 52px; width: auto; background: #fff; border-radius: 12px; padding: 6px 10px; margin-bottom: 16px; }
.footer__contact { display: grid; gap: 10px; margin-top: 16px; }
.footer__contact a, .footer__contact span { display: flex; gap: 10px; align-items: flex-start; }
.footer__contact svg { width: 16px; height: 16px; flex: none; margin-top: 3px; color: var(--brand); }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, .08); padding: 20px 0; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; }
.footer__branch { margin-bottom: 14px; }
.footer__branch strong { color: #e2ecf0; display: block; font-size: 13px; }

/* Floating contact */
.fab { position: fixed; right: 18px; bottom: 18px; z-index: 60; display: grid; gap: 10px; }
.fab a { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: #fff; box-shadow: 0 10px 24px -8px rgba(12, 29, 38, .45); transition: transform .2s; }
.fab a:hover { transform: scale(1.08); }
.fab svg { width: 24px; height: 24px; }
.fab__phone { background: var(--brand); animation: ring 2.4s infinite; }
.fab__zalo { background: #0068ff; font-weight: 800; font-size: 13px; }
.to-top { background: var(--ink); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.to-top.is-visible { opacity: 1; pointer-events: auto; }
@keyframes ring { 0%, 100% { box-shadow: 0 0 0 0 rgba(0, 161, 156, .5); } 50% { box-shadow: 0 0 0 12px rgba(0, 161, 156, 0); } }

/* Search overlay */
.search { position: fixed; inset: 0; z-index: 90; display: none; }
.search.is-open { display: block; }
.search__bg { position: absolute; inset: 0; background: rgba(12, 29, 38, .55); backdrop-filter: blur(4px); }
.search__panel { position: relative; max-width: 680px; margin: 10vh auto 0; background: #fff; border-radius: 20px; box-shadow: var(--shadow-lg); overflow: hidden; width: calc(100% - 32px); }
.search__input { display: flex; align-items: center; gap: 12px; padding: 0 20px; border-bottom: 1px solid var(--line); }
.search__input svg { width: 22px; height: 22px; color: var(--muted); flex: none; }
.search__input input { flex: 1; height: 64px; border: 0; font: inherit; font-size: 18px; color: var(--ink); background: none; }
.search__input input:focus { outline: 0; }
.search__results { max-height: 60vh; overflow-y: auto; padding: 8px; }
.search__group { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 12px 12px 6px; font-weight: 600; }
.search__item { display: flex; gap: 14px; align-items: center; padding: 10px 12px; border-radius: 12px; }
.search__item:hover, .search__item.is-active { background: var(--brand-50); }
.search__item img { width: 52px; height: 52px; object-fit: contain; background: #fff; border-radius: 10px; border: 1px solid var(--line); flex: none; }
.search__item strong { display: block; color: var(--ink); font-size: 14px; font-weight: 600; line-height: 1.35; }
.search__item small { color: var(--muted); font-size: 12px; }
.search__empty { padding: 32px; text-align: center; color: var(--muted); }
.search__foot { display: flex; gap: 16px; padding: 10px 20px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); background: var(--bg); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Responsive */
@media (max-width: 1100px) {
  .nav, .search-trigger .kbd, .header__phone { display: none; }
  .menu-toggle { display: grid; }
  .header__actions { margin-left: auto; }
  .grid, .cat-grid, .features { grid-template-columns: repeat(3, 1fr); }
  .cat-card--feature { grid-column: span 3; grid-row: auto; }
  .cat-card--feature .cat-card__img { min-height: 220px; }
  .apps { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .detail-layout { grid-template-columns: 1fr; }
  .aside-card { position: static; }
}
@media (max-width: 900px) {
  .hero .wrap, .about-grid, .contact-grid, .product { grid-template-columns: 1fr; }
  .hero__visual { max-width: 520px; margin: 0 auto; width: 100%; }
  .hero__stats { grid-template-columns: repeat(2, auto); }
  .trust .wrap { grid-template-columns: 1fr 1fr; }
  .trust__item:nth-child(3) { border-left: 0; padding-left: 0; }
  .catalog { grid-template-columns: 1fr; }
  .sidebar { position: fixed; inset: auto 0 0 0; top: auto; z-index: 85; max-height: 75vh; border-radius: 22px 22px 0 0; transform: translateY(105%); transition: transform .3s; box-shadow: var(--shadow-lg); }
  .sidebar.is-open { transform: none; }
  .catalog__filters-btn { display: inline-flex; }
  .gallery { position: static; }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .post-card--lead { grid-column: span 2; flex-direction: column; }
  .post-card--lead .post-card__img { min-height: 0; aspect-ratio: 16 / 9; }
  .cta-band { grid-template-columns: 1fr; padding: 40px 28px; }
  .cta-band__actions { justify-content: flex-start; }
  .values, .timeline { grid-template-columns: 1fr 1fr; }
  .topbar__info span:nth-child(n+2) { display: none; }
}
@media (max-width: 640px) {
  :root { --header-h: 64px; }
  .section { padding: 52px 0; }
  .wrap { padding: 0 16px; }
  .logo img { height: 40px; }
  .logo__text, .topbar { display: none; }
  .header .wrap { gap: 12px; }
  .search-trigger span { display: none; }
  .search-trigger { padding: 0; width: 44px; justify-content: center; }
  .grid, .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .cat-card--feature { grid-column: span 2; }
  .features, .grid--3, .values, .timeline { grid-template-columns: 1fr; }
  .post-card--lead { grid-column: auto; }
  .apps { grid-template-columns: 1fr 1fr; gap: 12px; }
  .app { aspect-ratio: 4 / 5; }
  .app__body { padding: 16px; }
  .app__body h3 { font-size: 17px; }
  .app__body p { display: none; }
  .p-card__img { padding: 14px; }
  .p-card__body { padding: 12px 14px 14px; }
  .p-card h3 { font-size: 14px; }
  .p-card__more { display: none; }
  .cat-card { padding: 14px; }
  .cat-card h3 { font-size: 15px; }
  .keyspecs { grid-template-columns: 1fr 1fr; }
  .checklist { grid-template-columns: 1fr; }
  .assure { grid-template-columns: 1fr; }
  .panel { padding: 22px; }
  .form__row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .trust .wrap { grid-template-columns: 1fr; }
  .trust__item { border-left: 0; padding: 16px 0; border-top: 1px solid rgba(255, 255, 255, .08); }
  .trust__item:first-child { border-top: 0; }
  .hero .wrap { padding-top: 40px; padding-bottom: 48px; gap: 36px; }
  .hero__lead { font-size: 16px; }
  .stat strong { font-size: 24px; }
  .gallery__main { padding: 24px; }
  .product__cta .btn { flex: 1; }
}
