/* ==========================================================================
   LANXANG sole Co., Ltd. — parts catalogue
   Single stylesheet. Design tokens first, then layout top-to-bottom.
   ========================================================================== */

:root {
  --red: #c8102e;
  --red-dark: #8c0b1f;
  --red-hover: #a80d26;
  --red-soft: #f0506e;
  --gold: #d4a017;
  --dark: #0e0e0e;
  --dark-2: #1a1a1a;
  --dark-3: #2a2a2a;
  --white: #ffffff;
  --border: rgba(255, 255, 255, 0.08);

  /* The product photos sit on a studio backdrop that is dark at the sides and
     light in the middle. This matches it, so letterboxed photos blend in. */
  --photo-bg: linear-gradient(90deg, #8f9192, #bdbfc0 25%, #e4e6e6 50%, #bdbfc0 75%, #8f9192);

  --icon-phone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 4h4l2 5-2.5 1.5a11 11 0 0 0 5 5L15 13l5 2v4a2 2 0 0 1-2 2A16 16 0 0 1 3 6a2 2 0 0 1 2-2z'/%3E%3C/svg%3E");

  --sans: "DM Sans", "Noto Sans Lao", "Noto Sans SC", sans-serif;
  --logo: "Bebas Neue", sans-serif;
  --display: "Bebas Neue", sans-serif;

  --gutter: 5%;
  --nav-h: 68px;
  --content: 1200px;
}

/* Latin display face has no Lao/Chinese/Vietnamese coverage, so each locale
   gets a display font that actually renders its script. Matched with :lang()
   on any element, so a lang="lo" block inside another page is covered too. */
:lang(en) { --display: "Bebas Neue", sans-serif; }
:lang(lo) { --display: "Noto Sans Lao", "DM Sans", sans-serif; }
:lang(vi) { --display: "Oswald", "DM Sans", sans-serif; }
:lang(zh) { --display: "Noto Sans SC", "DM Sans", sans-serif; }

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--dark);
  color: var(--white);
  overflow-x: hidden;
}

:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

img { max-width: 100%; }

.icon { width: 1.15em; height: 1.15em; flex: none; display: block; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 300;
  background: var(--red); color: #fff; padding: 12px 20px;
  border-radius: 0 0 6px 0; font-size: 14px; font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { left: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- Navigation ---------- */

nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--gutter); height: var(--nav-h);
  background: rgba(14, 14, 14, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  display: flex; flex-direction: column; align-items: flex-start; gap: 5px;
  text-decoration: none; line-height: 1;
}
.nav-logo img { display: block; height: 32px; width: auto; }
.nav-logo-legal { font-size: 10px; color: var(--gold); letter-spacing: 0.6px; white-space: nowrap; }

.nav-right { display: flex; align-items: center; gap: 28px; }
.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-links a {
  text-decoration: none; color: rgba(255, 255, 255, 0.65);
  font-size: 13px; font-weight: 500; letter-spacing: 0.5px;
  text-transform: uppercase; transition: color 0.2s;
}
.nav-links a:hover { color: var(--white); }

.nav-cta {
  background: var(--red); color: #fff !important;
  padding: 8px 20px; border-radius: 4px; transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--red-dark) !important; }

.nav-toggle {
  display: none; align-items: center; justify-content: center;
  background: none; border: 1px solid var(--border);
  border-radius: 6px; color: var(--white);
  width: 40px; height: 38px; cursor: pointer;
}
.nav-toggle .icon { width: 20px; height: 20px; }

/* ---------- Language switcher ---------- */

.lang-switch { position: relative; }

.lang-current {
  display: flex; align-items: center; gap: 7px;
  background: transparent; border: 1px solid var(--border);
  color: rgba(255, 255, 255, 0.75); border-radius: 999px;
  padding: 7px 13px; font-family: var(--sans); font-size: 12.5px;
  cursor: pointer; transition: border-color 0.2s, color 0.2s;
}
.lang-current > .icon { width: 15px; height: 15px; opacity: 0.8; }
.lang-current:hover { border-color: rgba(255, 255, 255, 0.32); color: var(--white); }
.lang-switch.open .lang-current { border-color: var(--red); color: var(--white); }

.lang-caret { display: flex; opacity: 0.6; transition: transform 0.2s; }
.lang-caret .icon { width: 12px; height: 12px; }
.lang-switch.open .lang-caret { transform: rotate(180deg); }

.lang-menu {
  position: absolute; top: calc(100% + 10px); right: 0;
  min-width: 170px; background: var(--dark-2);
  border: 1px solid var(--border); border-radius: 9px; padding: 6px;
  list-style: none; box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity 0.18s, transform 0.18s, visibility 0.18s; z-index: 200;
}
.lang-switch.open .lang-menu { opacity: 1; visibility: visible; transform: none; }

.lang-menu a {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  text-decoration: none; color: rgba(255, 255, 255, 0.7); font-size: 13px;
  padding: 9px 12px; border-radius: 5px; transition: background 0.15s, color 0.15s;
}
.lang-menu a:hover { background: rgba(255, 255, 255, 0.06); color: var(--white); }
.lang-menu a[aria-current="true"] { color: var(--red); font-weight: 600; }
.lang-menu a[aria-current="true"]::after { content: "✓"; font-size: 11px; }

/* ---------- Hero ---------- */

.hero {
  min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
  align-items: center; padding: var(--nav-h) var(--gutter) 0;
  position: relative; overflow: hidden;
}

.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(ellipse 60% 80% at 70% 50%, #2a0a10, #0e0e0e 60%);
}

.hero-grid-lines {
  position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(rgba(200, 16, 46, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200, 16, 46, 0.06) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-content { position: relative; z-index: 1; padding: 80px 0; }

.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(200, 16, 46, 0.12); border: 1px solid rgba(200, 16, 46, 0.3);
  color: var(--red-soft); font-size: 11px; font-weight: 600; letter-spacing: 2px;
  text-transform: uppercase; padding: 6px 14px; border-radius: 2px; margin-bottom: 28px;
}
.hero-tag::before {
  content: ""; width: 6px; height: 6px; background: var(--red);
  border-radius: 50%; display: block;
}

.hero h1 {
  font-family: var(--display);
  font-size: clamp(46px, 6.5vw, 92px);
  line-height: 0.95; letter-spacing: 3px; margin-bottom: 12px;
}
.hero h1 em { font-style: normal; color: var(--red); }

.hero-native {
  font-family: "Noto Sans Lao", sans-serif; font-size: 22px;
  color: var(--gold); margin-bottom: 24px; display: block;
}

.hero p {
  font-size: 16px; color: rgba(255, 255, 255, 0.6);
  line-height: 1.7; max-width: 460px; margin-bottom: 40px;
}

.hero-actions { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }

.hero-visual {
  position: relative; z-index: 1; width: 100%; max-width: 540px; justify-self: center;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px;
  padding: 80px 0 116px;
}

.hero-tile {
  position: relative; aspect-ratio: 520 / 381; overflow: hidden;
  border-radius: 12px; background: var(--photo-bg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
}
.hero-tile:nth-child(even) { transform: translateY(36px); }
.hero-tile img {
  display: block; width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.03); /* crops the thin frame baked into the photos */
}
.hero-tile figcaption {
  position: absolute; left: 10px; bottom: 10px; max-width: calc(100% - 20px);
  background: rgba(14, 14, 14, 0.85); color: var(--white);
  font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 4px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ---------- Buttons ---------- */

.btn-primary {
  background: var(--red); color: #fff; padding: 14px 32px;
  border: none; border-radius: 4px; font-family: var(--sans);
  font-size: 14px; font-weight: 600; letter-spacing: 0.5px;
  text-decoration: none; cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  display: inline-flex; align-items: center; gap: 9px;
}
.btn-primary:hover { background: var(--red-hover); transform: translateY(-1px); }

.btn-secondary {
  color: rgba(255, 255, 255, 0.7); font-size: 14px; font-weight: 500;
  text-decoration: none; display: inline-flex; align-items: center; gap: 6px;
  transition: color 0.2s;
}
.btn-secondary:hover { color: #fff; }

.btn-ghost {
  background: transparent; color: #fff; padding: 13px 28px;
  border: 1px solid rgba(255, 255, 255, 0.25); border-radius: 4px;
  font-family: var(--sans); font-size: 14px; font-weight: 600;
  text-decoration: none; display: inline-flex; align-items: center; gap: 9px;
  transition: border-color 0.2s, background 0.2s;
}
.btn-ghost:hover { border-color: var(--white); background: rgba(255, 255, 255, 0.06); }

/* ---------- Stats bar ---------- */

.stats-bar {
  background: var(--dark-2);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 32px var(--gutter);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.stat-item { text-align: center; border-right: 1px solid var(--border); }
.stat-item:last-child { border-right: none; }
.stat-number {
  font-family: var(--logo); font-size: 48px; letter-spacing: 2px;
  color: var(--white); line-height: 1; margin-bottom: 6px;
}
.stat-number span { color: var(--red); }
.stat-label {
  font-size: 12px; color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase; letter-spacing: 1.5px; font-weight: 500;
}

/* ---------- Section headers ---------- */

.section-header { text-align: center; margin-bottom: 48px; }
.section-tag {
  display: inline-block; font-size: 11px; font-weight: 600;
  letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--gold); margin-bottom: 14px;
}
.section-title {
  font-family: var(--display); font-size: clamp(34px, 5vw, 58px);
  letter-spacing: 3px; line-height: 1.05; margin-bottom: 16px;
}
.section-sub {
  font-size: 15px; color: rgba(255, 255, 255, 0.5);
  max-width: 560px; margin: 0 auto; line-height: 1.7;
}

/* ---------- Part finder ---------- */

.search-section { padding: 100px var(--gutter); background: var(--dark); text-align: center; }

.search-box {
  max-width: 680px; margin: 0 auto 20px;
  background: var(--dark-2); border: 1px solid var(--border);
  border-radius: 8px; padding: 6px 6px 6px 18px;
  display: flex; gap: 12px; align-items: center; transition: border-color 0.2s;
}
.search-box:focus-within { border-color: var(--red); }
.search-box > .icon { width: 18px; height: 18px; color: rgba(255, 255, 255, 0.4); }
.search-box input {
  flex: 1; background: transparent; border: none; outline: none;
  font-family: var(--sans); font-size: 15px; color: var(--white); min-width: 0;
}
.search-box input::placeholder { color: rgba(255, 255, 255, 0.35); }
.search-box button {
  background: var(--red); color: #fff; border: none; border-radius: 5px;
  padding: 12px 24px; font-family: var(--sans); font-size: 13px;
  font-weight: 600; letter-spacing: 0.5px; cursor: pointer;
  transition: background 0.2s; white-space: nowrap;
}
.search-box button:hover { background: var(--red-dark); }

.search-hint { font-size: 13px; color: rgba(255, 255, 255, 0.35); line-height: 1.9; }
.search-hint button {
  background: none; border: none; padding: 0; font-family: var(--sans);
  font-size: 13px; color: rgba(255, 255, 255, 0.6); font-weight: 600;
  cursor: pointer; transition: color 0.2s;
}
.search-hint button:hover { color: var(--white); }

/* ---------- Catalogue ---------- */

.catalogue { padding: 100px var(--gutter); background: var(--dark-2); }
.catalogue-controls { max-width: var(--content); margin: 0 auto 40px; }

.catalogue-search { position: relative; max-width: 720px; margin: 0 auto 26px; }
.catalogue-search input {
  width: 100%; background: var(--dark-3); border: 1px solid var(--border);
  border-radius: 8px; padding: 16px 18px 16px 48px; color: var(--white);
  font-family: var(--sans); font-size: 15px; outline: none; transition: border-color 0.2s;
}
.catalogue-search input::placeholder { color: rgba(255, 255, 255, 0.35); }
.catalogue-search input:focus { border-color: rgba(200, 16, 46, 0.55); }
.catalogue-search > .icon {
  position: absolute; left: 17px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; color: rgba(255, 255, 255, 0.4); pointer-events: none;
}

.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  background: transparent; border: 1px solid var(--border);
  color: rgba(255, 255, 255, 0.65); border-radius: 999px; padding: 7px 15px;
  font-family: var(--sans); font-size: 12.5px; font-weight: 500;
  cursor: pointer; white-space: nowrap;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}
.chip-count { opacity: 0.5; font-size: 11px; }
.chip:hover { color: var(--white); border-color: rgba(255, 255, 255, 0.25); }
.chip.active { background: var(--red); border-color: var(--red); color: var(--white); }
.chip.active .chip-count { opacity: 0.8; }

.catalogue-count {
  text-align: center; margin-top: 20px; font-size: 13px;
  color: rgba(255, 255, 255, 0.45); letter-spacing: 0.4px;
}

.product-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px;
  max-width: var(--content); margin: 0 auto;
}

.product-card {
  background: var(--dark-3); border: 1px solid var(--border);
  border-radius: 10px; overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform 0.2s, border-color 0.25s;
}
.product-card:hover { transform: translateY(-4px); border-color: rgba(200, 16, 46, 0.45); }
.product-card[hidden] { display: none; }

.product-img {
  background: var(--photo-bg); aspect-ratio: 520 / 381; overflow: hidden;
}
.product-img img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transform: scale(1.03); /* crops the thin frame baked into the photos */
  transition: transform 0.35s;
}
.product-card:hover .product-img img { transform: scale(1.07); }

/* Long parts (shafts, racks, shock absorbers) come as wide strips. Show the whole
   strip on the studio backdrop instead of cropping the ends off. */
.product-img.wide { display: flex; align-items: center; }
.product-img.wide img {
  height: auto;
  -webkit-mask-image: linear-gradient(transparent 2%, #000 18%, #000 82%, transparent 98%);
  mask-image: linear-gradient(transparent 2%, #000 18%, #000 82%, transparent 98%);
}

.product-info { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-brand {
  font-size: 10px; text-transform: uppercase; letter-spacing: 1.6px;
  color: var(--gold); font-weight: 600;
}
.product-name { font-size: 15px; font-weight: 600; line-height: 1.35; }
.product-cat { font-size: 12px; color: rgba(255, 255, 255, 0.45); margin-bottom: 12px; }

.btn-call {
  margin-top: auto; display: flex; align-items: center; justify-content: center; gap: 8px;
  background: transparent; color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 4px;
  padding: 10px 12px; font-family: var(--sans); font-size: 13px; font-weight: 600;
  text-decoration: none; text-align: center;
  transition: background 0.2s, border-color 0.2s;
}
.btn-call::before {
  content: ""; width: 15px; height: 15px; flex: none; background: currentColor;
  -webkit-mask: var(--icon-phone) center / contain no-repeat;
  mask: var(--icon-phone) center / contain no-repeat;
}
.product-card:hover .btn-call, .btn-call:focus-visible { background: var(--red); border-color: var(--red); }

.catalogue-more { text-align: center; margin-top: 40px; }
.btn-more {
  background: transparent; color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.25); border-radius: 4px;
  padding: 13px 40px; font-family: var(--sans); font-size: 14px; font-weight: 600;
  cursor: pointer; transition: border-color 0.2s, background 0.2s;
}
.btn-more:hover { border-color: var(--red); background: rgba(200, 16, 46, 0.12); }
.btn-more[hidden] { display: none; }

.catalogue-empty {
  max-width: 560px; margin: 0 auto; text-align: center; padding: 56px 20px;
  color: rgba(255, 255, 255, 0.55); font-size: 15px; line-height: 1.7;
}
.catalogue-empty[hidden] { display: none; }
.catalogue-empty-title { color: var(--white); font-size: 18px; font-weight: 600; margin-bottom: 6px; }
.catalogue-empty-actions {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 24px;
}

/* ---------- Brands ---------- */

.brands { padding: 70px var(--gutter); background: var(--dark); border-top: 1px solid var(--border); }
.brands-label {
  text-align: center; font-size: 11px; text-transform: uppercase;
  letter-spacing: 3px; color: rgba(255, 255, 255, 0.4); margin-bottom: 36px;
}
.brands-row { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 20px 40px; }
.brand-item {
  font-family: var(--logo); font-size: 22px; letter-spacing: 3px;
  color: rgba(255, 255, 255, 0.35); transition: color 0.25s; user-select: none;
}
.brand-item:hover { color: rgba(255, 255, 255, 0.8); }

/* ---------- Why us ---------- */

.why { padding: 100px var(--gutter); background: var(--dark-2); }
.why-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  max-width: var(--content); margin: 0 auto;
}
.why-card {
  background: var(--dark); border: 1px solid var(--border);
  border-radius: 10px; padding: 32px 28px; transition: border-color 0.25s;
}
.why-card:hover { border-color: rgba(200, 16, 46, 0.35); }
.why-icon {
  width: 48px; height: 48px; border-radius: 10px; margin-bottom: 22px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(200, 16, 46, 0.12); color: var(--red-soft);
}
.why-icon .icon { width: 24px; height: 24px; }
.why-title { font-weight: 700; font-size: 16px; margin-bottom: 10px; }
.why-desc { font-size: 14px; color: rgba(255, 255, 255, 0.55); line-height: 1.7; }

/* ---------- About / showroom ---------- */

.about { padding: 100px var(--gutter); background: var(--dark); }
.about-grid {
  display: grid; grid-template-columns: 1fr 1.25fr; gap: 48px;
  max-width: var(--content); margin: 0 auto; align-items: stretch;
}
.about-info { display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }
.about-text { font-size: 16px; color: rgba(255, 255, 255, 0.65); line-height: 1.75; }

.about-facts { width: 100%; border-top: 1px solid var(--border); }
.about-fact {
  display: grid; grid-template-columns: 140px 1fr; gap: 16px;
  padding: 14px 0; border-bottom: 1px solid var(--border);
}
.about-fact dt {
  font-size: 11px; text-transform: uppercase; letter-spacing: 1.5px;
  color: var(--gold); font-weight: 600; padding-top: 2px;
}
.about-fact dd { font-size: 15px; color: var(--white); }
.about-fact a { color: var(--white); text-decoration: none; border-bottom: 1px solid var(--red); }
.about-fact a:hover { color: var(--red); }

.about-map {
  min-height: 360px; border-radius: 10px; overflow: hidden;
  border: 1px solid var(--border); background: var(--dark-2);
}
.about-map iframe { display: block; width: 100%; height: 100%; min-height: 360px; border: 0; }

/* ---------- Contact strip ---------- */

.contact-strip {
  background: var(--red); padding: 60px var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px; flex-wrap: wrap;
}
.contact-text h2 { font-family: var(--display); font-size: 36px; letter-spacing: 3px; margin-bottom: 6px; }
.contact-text p { font-size: 14px; color: rgba(255, 255, 255, 0.8); }
.contact-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

.btn-outline-white {
  background: transparent; border: 1.5px solid #fff; color: #fff;
  padding: 12px 28px; border-radius: 4px; font-family: var(--sans);
  font-size: 14px; font-weight: 600; text-decoration: none; transition: background 0.2s;
  display: inline-flex; align-items: center; gap: 9px;
}
.btn-outline-white:hover { background: rgba(255, 255, 255, 0.12); }

.btn-white-filled {
  background: #fff; color: var(--red); border: 1.5px solid #fff;
  padding: 12px 28px; border-radius: 4px; font-family: var(--sans);
  font-size: 14px; font-weight: 700; text-decoration: none; transition: transform 0.15s;
  display: inline-flex; align-items: center; gap: 9px;
}
.btn-white-filled:hover { transform: translateY(-2px); }

/* ---------- Footer ---------- */

footer { background: #080808; padding: 60px var(--gutter) 32px; border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 48px; margin-bottom: 48px; }
.footer-brand .nav-logo { gap: 7px; }
.footer-brand .nav-logo img { height: 44px; }
.footer-brand .nav-logo-legal { font-size: 11px; }
.footer-brand p {
  font-size: 14px; color: rgba(255, 255, 255, 0.45);
  line-height: 1.7; margin: 16px 0 24px; max-width: 300px;
}
.footer-social { display: flex; gap: 10px; }
.social-btn {
  width: 36px; height: 36px; border: 1px solid var(--border); border-radius: 4px;
  display: flex; align-items: center; justify-content: center; font-size: 14px;
  text-decoration: none; color: rgba(255, 255, 255, 0.5);
  transition: border-color 0.2s, color 0.2s;
}
.social-btn:hover { border-color: var(--red); color: var(--red); }

.footer-col h2 {
  font-size: 12px; text-transform: uppercase; letter-spacing: 2px;
  font-weight: 600; color: rgba(255, 255, 255, 0.55); margin-bottom: 20px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a, .footer-contact span {
  text-decoration: none; font-size: 14px; color: rgba(255, 255, 255, 0.5);
  transition: color 0.2s;
}
.footer-col ul a:hover { color: #fff; }
.footer-contact a, .footer-contact span { display: inline-flex; align-items: center; gap: 10px; }
.footer-contact .icon { width: 16px; height: 16px; color: var(--red-soft); }

.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 28px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { font-size: 13px; color: rgba(255, 255, 255, 0.4); }

.lang-toggle { display: flex; gap: 8px; }
.lang-toggle a {
  font-size: 12px; padding: 4px 12px; border-radius: 3px;
  border: 1px solid var(--border); color: rgba(255, 255, 255, 0.5);
  text-decoration: none; font-family: var(--sans);
  transition: border-color 0.2s, color 0.2s;
}
.lang-toggle a:hover { color: var(--white); }
.lang-toggle a[aria-current="true"] { border-color: var(--red); color: var(--red); }

/* ---------- 404 ---------- */

.nf-page { min-height: 100vh; display: flex; flex-direction: column; }
.nf-header { padding: 15px var(--gutter); border-bottom: 1px solid var(--border); }
.nf-header .nav-logo { display: inline-flex; }
.nf { flex: 1; width: 100%; max-width: 1000px; margin: 0 auto; padding: 64px var(--gutter) 80px; }
.nf-code {
  font-family: var(--logo); font-size: clamp(96px, 16vw, 160px); line-height: 1;
  letter-spacing: 6px; color: var(--red); text-align: center; margin-bottom: 40px;
}
.nf-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.nf-block {
  background: var(--dark-2); border: 1px solid var(--border); border-radius: 10px;
  padding: 28px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px;
}
.nf-block h2 { font-family: var(--display); font-size: 28px; letter-spacing: 1px; line-height: 1.2; }
.nf-block p { flex: 1; font-size: 15px; line-height: 1.6; color: rgba(255, 255, 255, 0.6); }
.nf-block .btn-primary { margin-top: 8px; padding: 12px 24px; }
.nf-footer { padding: 24px var(--gutter); border-top: 1px solid var(--border); }
.nf-footer p { font-size: 13px; color: rgba(255, 255, 255, 0.4); }

/* ---------- Lao and Chinese typography ----------
   Letter-spacing is a Latin display device. In Lao it pulls vowel and tone
   marks away from their consonants, and it makes Chinese look gappy. */

:is(.hero-tag, .hero h1, .section-tag, .section-title, .stat-label, .brands-label,
    .nav-links a, .about-fact dt, .footer-col h2, .contact-text h2, .nf-block h2,
    .catalogue-count):is(:lang(lo), :lang(zh)) {
  letter-spacing: normal;
}
/* Tiny tracked caps read fine in Latin; Lao and Chinese need a bigger size. */
:is(.hero-tag, .section-tag, .stat-label, .brands-label, .about-fact dt,
    .footer-col h2):is(:lang(lo), :lang(zh)) {
  font-size: 13px;
}
.hero h1:lang(lo) { line-height: 1.15; }
.hero h1:lang(zh) { line-height: 1.1; margin-bottom: 18px; }
/* Vietnamese stacks diacritics above and below the capitals. */
.hero h1:lang(vi) { font-size: clamp(42px, 5.4vw, 78px); line-height: 1.12; }
.section-title:lang(vi) { line-height: 1.2; }

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 1000px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-visual { display: none; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(1), .stat-item:nth-child(2) {
    padding-bottom: 24px; border-bottom: 1px solid var(--border);
  }
  .about-grid { grid-template-columns: 1fr; gap: 36px; }

  .nav-toggle { display: flex; }
  .nav-right { gap: 12px; }
  .nav-links {
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--dark-2); border-bottom: 1px solid var(--border);
    padding: 8px var(--gutter) 16px; display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { border-bottom: 1px solid var(--border); }
  .nav-links li:last-child { border-bottom: none; padding-top: 12px; }
  .nav-links a { display: block; padding: 14px 0; font-size: 14px; }
  .nav-cta { text-align: center; }
}

@media (max-width: 760px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .product-info { padding: 12px 12px 14px; }
  .product-name { font-size: 14px; }
  .btn-call { padding: 9px 8px; font-size: 12.5px; }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .nav-logo img { height: 27px; }
  .why-grid { grid-template-columns: 1fr; }
  .catalogue, .search-section, .why, .about { padding-top: 64px; padding-bottom: 64px; }
  .about-fact { grid-template-columns: 1fr; gap: 4px; }
  .about-map, .about-map iframe { min-height: 300px; }
  .hero-content { padding: 48px 0 64px; }
  .search-box { flex-direction: column; align-items: stretch; padding: 12px; gap: 8px; }
  .search-box > .icon { display: none; }
  .search-box input { padding: 4px 8px; }
  .search-box button { width: 100%; }

  /* 23 category chips would fill a whole phone screen; scroll them sideways. */
  .filter-chips {
    flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto;
    margin: 0 calc(-1 * var(--gutter)); padding: 2px var(--gutter) 6px;
    scrollbar-width: none;
  }
  .filter-chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; }

  .contact-strip { flex-direction: column; align-items: stretch; }
  .contact-actions a { flex: 1 1 100%; justify-content: center; }
  .contact-text h2 { font-size: 28px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .brands-row { gap: 14px 24px; }
  .brand-item { font-size: 19px; }
  .stats-bar { padding: 24px var(--gutter); }
  .stat-number { font-size: 34px; }
  .nf-grid { grid-template-columns: 1fr; }
}
