/* ==========================================================================
   LDTech — Hệ thống thiết kế (lấy cảm hứng từ ngôn ngữ thiết kế của Apple)
   ========================================================================== */

:root {
  --text: #1d1d1f;
  --text-2: #6e6e73;
  --text-3: #86868b;
  --bg: #ffffff;
  --bg-2: #f5f5f7;
  --bg-3: #fafafa;
  --line: rgba(0, 0, 0, .1);
  --line-soft: rgba(0, 0, 0, .06);
  --blue: #0071e3;
  --blue-hover: #0077ed;
  --blue-dark: #2997ff;
  --green: #1d8a45;
  --amber: #b25e02;
  --red: #d70015;

  --nav-h: 48px;
  --radius-s: 12px;
  --radius: 18px;
  --radius-l: 28px;
  --pill: 980px;
  --container: 1120px;
  --wide: 1440px;

  --ease: cubic-bezier(.16, 1, .3, 1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
          "Segoe UI Variable Display", "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -.012em;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

::selection { background: rgba(0, 113, 227, .18); }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ------------------------------------------------------------- layout ---- */

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 22px; }
.container--wide { max-width: var(--wide); }
.container--narrow { max-width: 780px; }

.section { padding: 100px 0; }
.section--tight { padding: 64px 0; }
.section--flush { padding-top: 0; }
.section--grey { background: var(--bg-2); }
.section--dark { background: #000; color: #f5f5f7; }
.section--dark .eyebrow { color: #a1a1a6; }
.section--dark .lead, .section--dark .muted { color: #a1a1a6; }
.section--dark .link-arrow { color: var(--blue-dark); }

.stack > * + * { margin-top: 18px; }
.center { text-align: center; }

/* --------------------------------------------------------- typography ---- */

h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -.02em; line-height: 1.08; }

.display {
  font-size: clamp(40px, 6.6vw, 80px);
  font-weight: 600;
  letter-spacing: -.025em;
  line-height: 1.05;
}
.title-1 { font-size: clamp(32px, 4.6vw, 56px); letter-spacing: -.022em; line-height: 1.08; }
.title-2 { font-size: clamp(26px, 3vw, 40px); letter-spacing: -.02em; }
.title-3 { font-size: clamp(21px, 2vw, 28px); letter-spacing: -.018em; }

.eyebrow {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .004em;
  color: var(--text-3);
  margin: 0 0 12px;
  text-transform: none;
}

.lead {
  font-size: clamp(19px, 1.8vw, 24px);
  line-height: 1.4;
  color: var(--text-2);
  font-weight: 400;
  letter-spacing: -.01em;
  margin: 0;
}

.body-text { font-size: 17px; line-height: 1.6; color: var(--text-2); margin: 0; }
.muted { color: var(--text-2); }
.small { font-size: 14px; line-height: 1.5; color: var(--text-2); }
.gradient-text {
  background: linear-gradient(92deg, #0071e3 0%, #7d5cff 48%, #ff375f 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ------------------------------------------------------------ buttons ---- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 11px 22px;
  border: 1px solid transparent; border-radius: var(--pill);
  font-size: 17px; font-weight: 400; letter-spacing: -.012em;
  cursor: pointer; transition: background .2s var(--ease), color .2s var(--ease), transform .2s var(--ease), border-color .2s;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-hover); }
.btn--ghost { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn--ghost:hover { background: var(--blue); color: #fff; }
.btn--dark { background: #f5f5f7; color: #1d1d1f; }
.btn--dark:hover { background: #fff; }
.btn--sm { min-height: 34px; padding-inline: 16px; font-size: 15px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 3px;
  color: var(--blue); font-size: 17px; letter-spacing: -.012em;
}
.link-arrow::after { content: "›"; font-size: 1.2em; line-height: 1; transition: transform .25s var(--ease); }
.link-arrow:hover { text-decoration: underline; }
.link-arrow:hover::after { transform: translateX(3px); }

.cta-row { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; }
.cta-row--center { justify-content: center; }

/* ---------------------------------------------------------------- nav ---- */

#site-header { position: sticky; top: 0; z-index: 100; }

.nav {
  height: var(--nav-h);
  background: rgba(255, 255, 255, .72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line-soft);
}
.nav__inner {
  max-width: var(--container); margin: 0 auto; padding: 0 22px;
  height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.nav__brand { display: flex; align-items: center; gap: 8px; font-size: 19px; font-weight: 600; letter-spacing: -.02em; }
.nav__brand svg { width: 22px; height: 22px; }
.nav__links { display: flex; align-items: center; gap: 34px; list-style: none; margin: 0; padding: 0; }
.nav__links a {
  font-size: 13px; letter-spacing: -.006em; color: rgba(29, 29, 31, .88);
  transition: color .2s, opacity .2s;
}
.nav__links a:hover { color: #000; }
.nav__links a.is-active { color: #000; font-weight: 500; }
.nav__actions { display: flex; align-items: center; gap: 18px; }
.nav__cta { font-size: 13px; color: var(--blue); }
.nav__toggle {
  display: none; width: 34px; height: 34px; align-items: center; justify-content: center;
  background: none; border: 0; cursor: pointer; border-radius: 8px;
}
.nav__toggle span { display: block; width: 17px; height: 1.5px; background: #1d1d1f; position: relative; transition: .3s var(--ease); }
.nav__toggle span::before, .nav__toggle span::after {
  content: ""; position: absolute; left: 0; width: 17px; height: 1.5px; background: #1d1d1f; transition: .3s var(--ease);
}
.nav__toggle span::before { top: -5px; }
.nav__toggle span::after { top: 5px; }
body.menu-open .nav__toggle span { background: transparent; }
body.menu-open .nav__toggle span::before { top: 0; transform: rotate(45deg); }
body.menu-open .nav__toggle span::after { top: 0; transform: rotate(-45deg); }

.nav__mobile {
  position: fixed; inset: var(--nav-h) 0 auto; z-index: 99;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line-soft);
  padding: 8px 22px 26px; display: none;
}
body.menu-open .nav__mobile { display: block; animation: fade-down .35s var(--ease); }
.nav__mobile a {
  display: block; padding: 15px 2px; font-size: 22px; font-weight: 500; letter-spacing: -.02em;
  border-bottom: 1px solid var(--line-soft);
}
.nav__mobile a:last-child { border-bottom: 0; }

@keyframes fade-down { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }

/* --------------------------------------------------------------- hero ---- */

.hero {
  position: relative; text-align: center;
  padding: clamp(72px, 10vw, 120px) 0 0;
  background: linear-gradient(180deg, #fbfbfd 0%, #ffffff 62%);
  overflow: hidden;
}
.hero__eyebrow {
  display: inline-block; font-size: 15px; font-weight: 500; color: var(--text-2);
  padding: 5px 14px; border: 1px solid var(--line); border-radius: var(--pill); margin-bottom: 22px;
  background: rgba(255, 255, 255, .7);
}
.hero__title { margin-bottom: 20px; }
.hero__title span { display: block; }
/* background-clip: text only paints inside the element box, so the tight display
   line-height clipped descenders (g, y, p) — grow the box, take the space back */
.hero__title .gradient-text { display: inline-block; padding-bottom: .18em; margin-bottom: -.18em; }
.hero__sub { max-width: 700px; margin: 0 auto 26px; }
.hero__visual {
  margin: clamp(40px, 6vw, 64px) auto 0; max-width: 980px;
  border-radius: var(--radius-l) var(--radius-l) 0 0; overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .18);
}
.hero__visual img { width: 100%; height: auto; }

/* ---------------------------------------------------------- stats bar ---- */

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { text-align: center; padding: 8px; }
.stat__value { font-size: clamp(32px, 4vw, 48px); font-weight: 600; letter-spacing: -.025em; line-height: 1; }
.stat__label { margin-top: 10px; font-size: 15px; color: var(--text-2); }

/* -------------------------------------------------------------- cards ---- */

.grid { display: grid; gap: 22px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--bg-2); border-radius: var(--radius-l); overflow: hidden;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.card:hover { transform: translateY(-5px); box-shadow: 0 22px 50px rgba(0, 0, 0, .1); }
.card__media { aspect-ratio: 4 / 3; overflow: hidden; background: #e8e8ed; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.card:hover .card__media img { transform: scale(1.04); }
.card__body { padding: 26px 28px 30px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card__title { font-size: 22px; font-weight: 600; letter-spacing: -.018em; }
.card__text { font-size: 15px; line-height: 1.5; color: var(--text-2); flex: 1; margin: 0; }
.card__foot { margin-top: 6px; }
.card__link { position: absolute; inset: 0; }

/* Thẻ dịch vụ — biểu tượng nét mảnh */
.svc {
  background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius-l);
  padding: 34px 32px 32px; display: flex; flex-direction: column; gap: 12px; position: relative;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .3s;
}
.svc:hover { transform: translateY(-5px); box-shadow: 0 22px 50px rgba(0, 0, 0, .08); border-color: transparent; }
.svc__icon {
  width: 46px; height: 46px; margin-bottom: 6px; color: var(--text);
}
.svc__icon svg { width: 100%; height: 100%; }
.svc__title { font-size: 21px; font-weight: 600; letter-spacing: -.018em; }
.svc__text { font-size: 15px; line-height: 1.55; color: var(--text-2); flex: 1; margin: 0; }

/* Thẻ sản phẩm */
.product {
  position: relative; display: flex; flex-direction: column; text-align: center;
  border-radius: var(--radius-l); padding: 40px 26px 34px; overflow: hidden;
  background: var(--bg-2);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.product:hover { transform: translateY(-6px); box-shadow: 0 26px 60px rgba(0, 0, 0, .12); }
.product__badge {
  align-self: center; font-size: 12px; font-weight: 600; letter-spacing: .01em;
  color: var(--amber); margin-bottom: 8px; min-height: 16px;
}
.product__name { font-size: 24px; font-weight: 600; letter-spacing: -.02em; }
.product__tagline { font-size: 15px; color: var(--text-2); margin: 8px 0 0; line-height: 1.45; }
.product__media { margin: 20px auto 18px; width: 100%; max-width: 234px; }
.product__media img { width: 100%; border-radius: var(--radius); }
.product__price { font-size: 15px; color: var(--text-2); margin-top: auto; }
.product__price b { color: var(--text); font-weight: 600; }
.product__actions { margin-top: 18px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* Bento — khối lớn */
.bento { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.feature-panel {
  position: relative; border-radius: var(--radius-l); overflow: hidden;
  background: var(--bg-2); padding: 52px 48px; min-height: 420px;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 12px;
}
.feature-panel--dark { background: #1d1d1f; color: #f5f5f7; }
.feature-panel--dark .card__text { color: #a1a1a6; }
.feature-panel--dark .link-arrow { color: var(--blue-dark); }
.feature-panel__bg { position: absolute; inset: 0; opacity: .95; }
.feature-panel__bg img { width: 100%; height: 100%; object-fit: cover; }
.feature-panel__content { position: relative; }
.feature-panel--center { justify-content: center; text-align: center; align-items: center; }

/* ------------------------------------------------------------ process ---- */

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; counter-reset: s; }
.step { border-top: 1px solid var(--line); padding-top: 20px; }
.step__num { font-size: 13px; font-weight: 600; color: var(--text-3); letter-spacing: .02em; }
.step__title { font-size: 21px; font-weight: 600; margin: 10px 0 8px; letter-spacing: -.018em; }
.step__text { font-size: 15px; color: var(--text-2); line-height: 1.55; margin: 0; }

/* ------------------------------------------------------------ marquee ---- */

.partners { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 40px; }
.partner {
  font-size: 17px; font-weight: 500; color: var(--text-3); letter-spacing: -.01em;
  padding: 8px 4px; transition: color .3s;
}
.partner:hover { color: var(--text); }

/* --------------------------------------------------------------- list ---- */

.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.check-list li { position: relative; padding-left: 30px; font-size: 17px; line-height: 1.5; color: var(--text-2); }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 7px; width: 18px; height: 10px;
  border-left: 2px solid var(--blue); border-bottom: 2px solid var(--blue);
  transform: rotate(-45deg); border-radius: 1px;
}

.spec-table { width: 100%; border-collapse: collapse; }
.spec-table tr { border-bottom: 1px solid var(--line-soft); }
.spec-table tr:first-child { border-top: 1px solid var(--line-soft); }
.spec-table th, .spec-table td { text-align: left; padding: 16px 4px; font-size: 16px; font-weight: 400; vertical-align: top; }
.spec-table th { color: var(--text-2); width: 42%; }

/* --------------------------------------------------------------- form ---- */

.form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 7px; }
.field label { font-size: 13px; font-weight: 500; color: var(--text-2); letter-spacing: -.004em; }
.field input, .field textarea, .field select {
  width: 100%; padding: 14px 16px; font: inherit; font-size: 16px; color: var(--text);
  background: #fff; border: 1px solid rgba(0, 0, 0, .16); border-radius: var(--radius-s);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 140px; resize: vertical; line-height: 1.55; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0, 113, 227, .12);
}
.field--hp { position: absolute; left: -9999px; opacity: 0; }

.form-note { font-size: 13px; color: var(--text-3); line-height: 1.5; }
.form-status { font-size: 15px; border-radius: var(--radius-s); padding: 14px 16px; display: none; }
.form-status.is-ok { display: block; background: rgba(29, 138, 69, .1); color: var(--green); }
.form-status.is-err { display: block; background: rgba(215, 0, 21, .08); color: var(--red); }

/* -------------------------------------------------------- contact info --- */

.info-list { display: grid; gap: 26px; }
.info-item__label { font-size: 13px; font-weight: 600; color: var(--text-3); margin-bottom: 5px; }
.info-item__value { font-size: 17px; line-height: 1.5; }
.info-item__value a:hover { color: var(--blue); }

.map-frame {
  width: 100%; height: 380px; border: 0; border-radius: var(--radius-l);
  background: var(--bg-2); filter: grayscale(.2) contrast(1.02);
}

/* ------------------------------------------------------------- footer ---- */

.footer { background: var(--bg-2); font-size: 12px; color: var(--text-2); padding: 42px 0 26px; }
.footer a:hover { text-decoration: underline; }
.footer__cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; padding-bottom: 26px; }
.footer__col h4 { font-size: 12px; font-weight: 600; color: var(--text); margin-bottom: 12px; }
.footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer__col a { color: var(--text-2); }
.footer__bottom {
  border-top: 1px solid var(--line); padding-top: 18px;
  display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: space-between; align-items: center;
}
.footer__legal { display: flex; flex-wrap: wrap; gap: 6px 18px; }

/* ------------------------------------------------------------ reveals ---- */

[data-reveal] { opacity: 0; transform: translateY(26px); }
.reveal-ready [data-reveal] { transition: opacity .9s var(--ease), transform .9s var(--ease); }
[data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ------------------------------------------------------------ skeleton --- */

.skeleton { background: linear-gradient(90deg, #f0f0f2 25%, #e6e6ea 37%, #f0f0f2 63%); background-size: 400% 100%; animation: shimmer 1.4s infinite; border-radius: var(--radius); }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }

/* ------------------------------------------------------------ filters ---- */

.filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.filter {
  border: 1px solid var(--line); background: #fff; border-radius: var(--pill);
  padding: 8px 18px; font-size: 15px; cursor: pointer; color: var(--text-2); transition: .25s var(--ease);
}
.filter:hover { border-color: var(--text-3); color: var(--text); }
.filter.is-active { background: var(--text); border-color: var(--text); color: #fff; }

/* -------------------------------------------------------------- detail --- */

.detail-hero { padding: 68px 0 40px; text-align: center; background: linear-gradient(180deg, #fbfbfd, #fff); }
.breadcrumb { font-size: 13px; color: var(--text-3); margin-bottom: 18px; }
.breadcrumb a:hover { color: var(--blue); }
.detail-visual { border-radius: var(--radius-l); overflow: hidden; margin-top: 42px; }
.prose { font-size: 19px; line-height: 1.62; color: var(--text-2); }
.prose p { margin: 0 0 22px; }
.prose p:last-child { margin-bottom: 0; }

.price-block { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 12px; }
.price-block__value { font-size: 32px; font-weight: 600; letter-spacing: -.02em; color: var(--text); }
.price-block__note { font-size: 15px; color: var(--text-2); }

/* ------------------------------------------------------- danh mục hàng --- */

/* Ô nhóm sản phẩm trên trang chủ */
.cat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.cat-tile {
  display: flex; flex-direction: column; border-radius: var(--radius-l); overflow: hidden;
  background: var(--bg-2); transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.cat-tile:hover { transform: translateY(-5px); box-shadow: 0 22px 50px rgba(0, 0, 0, .11); }
.cat-tile__media { aspect-ratio: 4 / 3; overflow: hidden; }
.cat-tile__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.cat-tile:hover .cat-tile__media img { transform: scale(1.05); }
.cat-tile__body { padding: 20px 20px 24px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.cat-tile__name { font-size: 18px; font-weight: 600; letter-spacing: -.018em; line-height: 1.25; }
.cat-tile__text { font-size: 13.5px; line-height: 1.45; color: var(--text-2); margin: 0; flex: 1; }
.cat-tile__count { font-size: 12px; font-weight: 600; color: var(--blue); }

/* Thanh lọc dính đầu trang danh mục */
.catalog-bar {
  position: sticky; top: var(--nav-h); z-index: 60;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line-soft);
}
.catalog-bar__inner {
  display: flex; align-items: center; gap: 16px; padding: 12px 0;
  justify-content: space-between; flex-wrap: wrap;
}
/* Man hinh rong: chip xuong dong de khong nhom nao bi o tim kiem che mat */
.catalog-bar .filters {
  justify-content: flex-start; flex: 1; min-width: 0;
  flex-wrap: wrap; padding: 2px 0;
  scrollbar-width: none; -ms-overflow-style: none;
}
.catalog-bar .filters::-webkit-scrollbar { display: none; }
.catalog-bar .filter { white-space: nowrap; flex: none; }
.filter__n {
  margin-left: 7px; font-size: 12px; opacity: .55; font-variant-numeric: tabular-nums;
}

.catalog-search {
  display: flex; align-items: center; gap: 8px; flex: none;
  background: rgba(0, 0, 0, .05); border-radius: var(--pill); padding: 0 14px; height: 36px;
  transition: box-shadow .2s, background .2s;
}
.catalog-search:focus-within { background: #fff; box-shadow: 0 0 0 3px rgba(0, 113, 227, .16); }
.catalog-search svg { width: 16px; height: 16px; color: var(--text-3); flex: none; }
.catalog-search input {
  border: 0; background: none; outline: none; font: inherit; font-size: 14px;
  width: 230px; max-width: 42vw; color: var(--text);
}
.catalog-search input::-webkit-search-cancel-button { cursor: pointer; }

/* Tiêu đề từng nhóm hàng */
.cat-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 20px;
  flex-wrap: wrap; margin-bottom: 32px;
  padding-bottom: 18px; border-bottom: 1px solid var(--line-soft);
}
.cat-head__text { margin: 8px 0 0; font-size: 17px; color: var(--text-2); max-width: 620px; }
.cat-head__count { font-size: 14px; color: var(--text-3); white-space: nowrap; }
.catalog-section { padding: 72px 0; }

/* Lưới sản phẩm gọn — dùng cho danh mục nhiều mặt hàng */
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: 16px; }
.pcard {
  display: flex; flex-direction: column; background: #fff;
  border: 1px solid var(--line-soft); border-radius: var(--radius);
  overflow: hidden; transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s;
}
.pcard:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(0, 0, 0, .1); border-color: transparent; }
.pcard__media { position: relative; aspect-ratio: 1; overflow: hidden; }
.pcard__media img { width: 100%; height: 100%; object-fit: contain; transition: transform .7s var(--ease); }
.pcard:hover .pcard__media img { transform: scale(1.05); }
.pcard__badge {
  position: absolute; top: 10px; left: 10px; font-size: 11px; font-weight: 600;
  background: rgba(255, 255, 255, .92); color: var(--text); padding: 4px 9px; border-radius: var(--pill);
  backdrop-filter: blur(6px);
}
.pcard__body { padding: 14px 15px 16px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.pcard__brand { font-size: 11px; font-weight: 600; letter-spacing: .02em; color: var(--text-3); text-transform: uppercase; }
.pcard__name {
  font-size: 14.5px; font-weight: 600; line-height: 1.32; letter-spacing: -.01em; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.pcard__price { font-size: 14px; color: var(--text-2); margin-top: 4px; }
.pcard__price b { color: var(--text); font-weight: 600; }
.pcard__price span { font-size: 12.5px; }

/* Đầu trang chi tiết sản phẩm — hai cột */
.detail-hero--tight { padding-bottom: 26px; }
.detail-hero--product { text-align: left; padding-bottom: 56px; }
.detail-hero--product .breadcrumb { text-align: center; }
.pdetail { display: grid; grid-template-columns: minmax(0, 440px) 1fr; gap: 52px; align-items: center; margin-top: 26px; }
.pdetail__media { border-radius: var(--radius-l); overflow: hidden; background: #fff; }
.pdetail__media img { width: 100%; height: auto; }
.pdetail__info { display: flex; flex-direction: column; gap: 16px; }
.pdetail__brand { font-size: 13px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; color: var(--text-3); margin: 0; }
.pdetail__badge { margin: 0; font-size: 13px; font-weight: 600; color: var(--amber); }

/* ------------------------------------------------------------ responsive - */

@media (max-width: 1000px) {
  /* O tim kiem xuong dong rieng de hang nhom duoc dung het be ngang.
     column + wrap se khien moi dong co theo noi dung (.filters tran khoi trang),
     nen bat buoc nowrap o day. */
  .catalog-bar__inner { flex-direction: column; align-items: stretch; gap: 12px; flex-wrap: nowrap; }
  .catalog-search { width: 100%; }
  .catalog-search input { width: 100%; max-width: none; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .pdetail { grid-template-columns: 1fr; gap: 32px; }
  .pdetail__media { max-width: 420px; margin: 0 auto; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer__cols { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .nav__links, .nav__cta { display: none; }
  .catalog-section { padding: 56px 0; }
  /* Hep: chip khong xuong dong ma cuon ngang, chay het be ngang man hinh
     de nguoi dung thay con nhom phia sau */
  .catalog-bar .filters {
    flex-wrap: nowrap; overflow-x: auto;
    margin-inline: -22px; padding-inline: 22px; scroll-padding-inline: 22px;
  }
  .nav__toggle { display: flex; }
  .section { padding: 72px 0; }
  .grid--3, .grid--2, .bento { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 32px 16px; }
  .form-row { grid-template-columns: 1fr; }
  .feature-panel { min-height: 340px; padding: 36px 30px; }
}

@media (max-width: 560px) {
  .grid--4 { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .pgrid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .pcard__body { padding: 12px 12px 14px; }
  .cat-head { margin-bottom: 24px; }
  .steps { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  .footer__cols { grid-template-columns: 1fr; gap: 24px; }
  .cta-row { gap: 12px 20px; }
  .btn { width: 100%; }
  .cta-row .link-arrow { width: auto; }
}
