/* ==========================================================================
   TERRAFORCE TIRES — STYLESHEET
   Design tokens live in :root. Change colours / radius / spacing here.
   ========================================================================== */

:root {
  /* Brand */
  --ink:          #101a14;
  --ink-soft:     #2b3a31;
  --muted:        #5c6a61;
  --muted-2:      #87948b;
  --line:         #e2e7df;
  --line-strong:  #cfd7cc;

  --paper:        #ffffff;
  --paper-2:      #f6f8f4;
  --paper-3:      #eef2ea;

  --green-900:    #0b2e1c;
  --green-800:    #0f3d26;
  --green-700:    #14522f;
  --green-600:    #1a7f4b;
  --green-100:    #e7f2ea;

  --amber:        #f0a91d;
  --amber-dark:   #cf8b0a;
  --amber-100:    #fdf3dd;

  --radius:       10px;
  --radius-lg:    16px;
  --radius-sm:    6px;
  --shadow-sm:    0 1px 2px rgba(16, 26, 20, .06), 0 1px 3px rgba(16, 26, 20, .05);
  --shadow-md:    0 6px 18px rgba(16, 26, 20, .08), 0 2px 6px rgba(16, 26, 20, .05);
  --shadow-lg:    0 18px 44px rgba(16, 26, 20, .14);

  --container:    1240px;
  --gutter:       clamp(16px, 4vw, 40px);

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans Thai", "Leelawadee UI", "PingFang SC", "Microsoft YaHei", Tahoma, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

/* ------------------------------------------------------------- RESET ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -.02em; font-weight: 800; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--amber); color: var(--ink); }
:focus-visible { outline: 3px solid var(--green-600); outline-offset: 2px; }

/* ----------------------------------------------------------- LAYOUT ---- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: clamp(48px, 7vw, 88px); }
.section--tight { padding-block: clamp(32px, 4vw, 56px); }
.section--paper { background: var(--paper-2); }
.section--ink { background: var(--green-900); color: #fff; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(28px, 3.5vw, 44px);
  flex-wrap: wrap;
}
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
.section-head p { color: var(--muted); max-width: 62ch; margin-top: 10px; }
.section--ink .section-head p { color: rgba(255, 255, 255, .68); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--green-600);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--amber);
  flex: none;
}
.section--ink .eyebrow { color: var(--amber); }

/* ---------------------------------------------------------- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .02em;
  border: 1px solid transparent;
  transition: background .18s, color .18s, border-color .18s, transform .18s, box-shadow .18s;
  white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; flex: none; }
.btn--primary { background: var(--green-700); color: #fff; }
.btn--primary:hover { background: var(--green-800); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn--amber { background: var(--amber); color: #201a06; }
.btn--amber:hover { background: #ffbe3d; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn--ghost { border-color: var(--line-strong); color: var(--ink); background: #fff; }
.btn--ghost:hover { border-color: var(--green-600); color: var(--green-700); background: var(--green-100); }
.btn--light { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .24); }
.btn--light:hover { background: rgba(255, 255, 255, .18); }
.btn--block { width: 100%; }
.btn--sm { padding: 9px 16px; font-size: 13px; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--green-700);
  border-bottom: 1px solid transparent;
  transition: gap .18s, border-color .18s;
}
.text-link svg { width: 16px; height: 16px; }
.text-link:hover { gap: 12px; border-color: currentColor; }

/* ----------------------------------------------------------- TOPBAR ---- */
.topbar {
  background: var(--green-900);
  color: rgba(255, 255, 255, .8);
  font-size: 12.5px;
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 40px;
  flex-wrap: wrap;
}
.topbar__left { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.topbar a { display: inline-flex; align-items: center; gap: 7px; transition: color .15s; }
.topbar a:hover { color: var(--amber); }
.topbar svg { width: 14px; height: 14px; opacity: .7; }
.topbar__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--amber);
  font-weight: 700;
  letter-spacing: .04em;
}
.topbar__badge::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 3px rgba(240, 169, 29, .22);
}

/* ----------------------------------------------------------- HEADER ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 74px;
}
.logo { display: inline-flex; align-items: center; gap: 11px; flex: none; }
.logo__mark {
  width: 42px; height: 42px;  border-radius: 9px;
  background: linear-gradient(150deg, var(--green-700), var(--green-900));
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: .02em;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14);
}
.logo__mark span { color: var(--amber); }
.logo__text { display: flex; flex-direction: column; line-height: 1.1; }
.logo__name { font-size: 19px; font-weight: 800; letter-spacing: -.01em; }
.logo__name em { font-style: normal; color: var(--green-600); }
.logo__sub {
  font-size: 10px;
  letter-spacing: .19em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-top: 3px;
  font-weight: 600;
}

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-soft);
  transition: background .15s, color .15s;
}
.nav a:hover { background: var(--paper-3); color: var(--green-700); }
.nav a.is-active { color: var(--green-700); background: var(--green-100); }

.header__actions { display: flex; align-items: center; gap: 10px; flex: none; }
.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  place-items: center;
}
.nav-toggle svg { width: 20px; height: 20px; }

/* ------------------------------------------------------------- HERO ---- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 520px at 78% -8%, rgba(26, 127, 75, .38), transparent 62%),
    radial-gradient(700px 420px at 4% 104%, rgba(240, 169, 29, .16), transparent 65%),
    linear-gradient(165deg, var(--green-900) 0%, #0a2417 58%, #081d12 100%);
  color: #fff;
  padding-block: clamp(52px, 7vw, 96px) clamp(44px, 6vw, 80px);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 70% 20%, #000 0%, transparent 72%);
  pointer-events: none;
}
.hero__inner { position: relative; z-index: 1; }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.7rem);
  line-height: 1.06;
  margin-bottom: 20px;
}
.hero h1 .hl { color: var(--amber); }
.hero__lead {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: rgba(255, 255, 255, .76);
  max-width: 54ch;
  margin-bottom: 30px;
}
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 34px; }
.hero__meta {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .14);
}
.hero__meta div { font-size: 13px; color: rgba(255, 255, 255, .62); }
.hero__meta strong { display: block; font-size: 20px; color: #fff; letter-spacing: -.01em; }

.hero__card {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--radius-lg);
  padding: 26px;
  backdrop-filter: blur(6px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .28);
}
.hero__card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--amber);
  font-weight: 700;
  margin-bottom: 18px;
}
.hero__card-head > span + span { color: rgba(255, 255, 255, .45); letter-spacing: .06em; }
.hero__spec { display: grid; gap: 0; }
.hero__spec li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, .13);
  font-size: 13.5px;
}
.hero__spec li:last-child { border-bottom: 0; }
.hero__spec span { color: rgba(255, 255, 255, .58); }
.hero__spec b { font-weight: 700; color: #fff; }
.hero__card .text-link { color: var(--amber); margin-top: 16px; }

/* -------------------------------------------------------- TRUST BAR ---- */
.trustbar {
  background: var(--paper-3);
  border-bottom: 1px solid var(--line);
}
.trustbar__inner {
  display: flex;
  align-items: center;
  gap: 10px 34px;
  padding-block: 16px;
  flex-wrap: wrap;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.trustbar__inner b { color: var(--ink); font-weight: 800; }
.trustbar__inner svg { width: 15px; height: 15px; color: var(--green-600); }

/* ------------------------------------------------------ CATEGORY CARD -- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.cat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .22s, box-shadow .22s, border-color .22s;
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--line-strong); }
.cat-card__media { position: relative; aspect-ratio: 4 / 3; background: var(--paper-3); overflow: hidden; }
.cat-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.cat-card:hover .cat-card__media img { transform: scale(1.045); }
.cat-card__icon {
  position: absolute;
  top: 14px; left: 14px;
  width: 40px; height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .92);
  display: grid;
  place-items: center;
  color: var(--green-700);
  box-shadow: var(--shadow-sm);
}
.cat-card__icon svg { width: 22px; height: 22px; }
.cat-card__count {
  position: absolute;
  top: 14px; right: 14px;
  background: var(--green-900);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .06em;
  padding: 5px 10px;
  border-radius: 100px;
}
.cat-card__body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.cat-card__body h3 { font-size: 17.5px; margin-bottom: 6px; }
.cat-card__tagline { font-size: 12.5px; font-weight: 600; color: var(--green-600); letter-spacing: .04em; text-transform: uppercase; margin-bottom: 12px; }
.cat-card__desc { font-size: 14px; color: var(--muted); flex: 1; }
.cat-card__range {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12.5px;
  color: var(--muted);
}
.cat-card__range b { font-family: var(--mono); font-size: 12px; color: var(--ink); letter-spacing: -.02em; }
.cat-card__range svg { width: 15px; height: 15px; color: var(--green-600); flex: none; }

/* --------------------------------------------------------- PRODUCTS ---- */
.prod-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(258px, 1fr));
  gap: 20px;
}
.prod-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.prod-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.prod-card__media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--paper-2);
  overflow: hidden;
}
.prod-card__media img { width: 100%; height: 100%; object-fit: contain; transition: transform .35s ease; }
.prod-card:hover .prod-card__media img { transform: scale(1.04); }
.prod-card__flag {
  position: absolute;
  top: 10px; left: 10px;
  background: var(--amber);
  color: #201a06;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 4px;
}
.prod-card__cat {
  position: absolute;
  top: 10px; right: 10px;
  background: rgba(255, 255, 255, .92);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 4px;
}
.prod-card__body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.prod-card__model { font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 5px; }
.prod-card__size { font-size: 25px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; font-family: var(--mono); }
.prod-card__pattern { font-size: 13px; color: var(--green-700); font-weight: 600; margin-top: 4px; }
.prod-card__specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 12px;
  margin: 14px 0 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--line-strong);
  font-size: 12.5px;
  flex: 1;
}
.prod-card__specs dt { color: var(--muted-2); font-size: 11px; letter-spacing: .05em; text-transform: uppercase; }
.prod-card__specs dd { margin: 0; font-weight: 600; color: var(--ink-soft); }
.prod-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.prod-card__cta {
  font-size: 13px;
  font-weight: 700;
  color: var(--green-700);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.prod-card__cta svg { width: 15px; height: 15px; transition: transform .18s; }
.prod-card:hover .prod-card__cta svg { transform: translateX(3px); }

/* ------------------------------------------------------------ ADVANT -- */
.adv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.adv-card { background: #fff; padding: 28px 26px 32px; }
.adv-card__icon {
  width: 44px; height: 44px;
  border-radius: 11px;
  background: var(--green-100);
  color: var(--green-700);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}
.adv-card__icon svg { width: 22px; height: 22px; }
.adv-card h3 { font-size: 16.5px; margin-bottom: 8px; }
.adv-card p { font-size: 14px; color: var(--muted); }

/* ------------------------------------------------------------- CERTS --- */
.cert-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.cert-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .05em;
  color: var(--ink-soft);
  background: #fff;
}
.cert-pill svg { width: 15px; height: 15px; color: var(--green-600); }

/* ---------------------------------------------------------- CTA BAND --- */
.cta-band {
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, var(--green-800), var(--green-900) 70%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(32px, 5vw, 56px);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  align-items: center;
}
.cta-band::after {
  content: "";
  position: absolute;
  right: -120px; top: -120px;
  width: 420px; height: 420px;
  border-radius: 50%;
  border: 60px solid rgba(240, 169, 29, .12);
}
.cta-band h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); margin-bottom: 12px; }
.cta-band p { color: rgba(255, 255, 255, .72); font-size: 15px; max-width: 60ch; }
.cta-band__actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; position: relative; z-index: 1; }

/* ------------------------------------------------------------ FILTERS -- */
.listing { display: grid; grid-template-columns: 272px minmax(0, 1fr); gap: 32px; align-items: start; }

.filters {
  position: sticky;
  top: 92px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 20px;
  max-height: calc(100vh - 116px);
  overflow-y: auto;
}
.filters__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
}
.filters__head strong { font-size: 14px; letter-spacing: .04em; text-transform: uppercase; }
.filters__reset { font-size: 12.5px; font-weight: 700; color: var(--green-600); }
.filters__reset:hover { text-decoration: underline; }
.filter-group { padding-block: 16px; border-top: 1px solid var(--line); }
.filter-group:first-of-type { border-top: 0; padding-top: 0; }
.filter-group__title {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 12px;
}
.filter-opt {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 0;
  font-size: 14px;
  cursor: pointer;
  color: var(--ink-soft);
  transition: color .15s;
}
.filter-opt:hover { color: var(--green-700); }
.filter-opt input {
  appearance: none;
  width: 17px; height: 17px;
  border: 1.5px solid var(--line-strong);
  border-radius: 4px;
  flex: none;
  position: relative;
  transition: background .15s, border-color .15s;
}
.filter-opt input:checked { background: var(--green-700); border-color: var(--green-700); }
.filter-opt input:checked::after {
  content: "";
  position: absolute;
  left: 5px; top: 1.5px;
  width: 4px; height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.filter-opt input[type="radio"] { border-radius: 50%; }
.filter-opt input[type="radio"]:checked::after {
  left: 4px; top: 4px;
  width: 7px; height: 7px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  transform: none;
}
.filter-opt__count { margin-left: auto; font-size: 11.5px; color: var(--muted-2); font-family: var(--mono); }

.filters__close { display: none; }
.filters__apply { display: none; }
.filters-backdrop { display: none; }

/* ------------------------------------------------------------ TOOLBAR -- */
.toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.search-field {
  position: relative;
  flex: 1;
  min-width: 220px;
}
.search-field svg {
  position: absolute;
  left: 14px; top: 50%;
  transform: translateY(-50%);
  width: 17px; height: 17px;
  color: var(--muted-2);
  pointer-events: none;
}
.search-field input {
  width: 100%;
  padding: 12px 14px 12px 42px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  font-size: 14.5px;
  transition: border-color .15s, box-shadow .15s;
}
.search-field input::placeholder { color: var(--muted-2); }
.search-field input:focus {
  outline: none;
  border-color: var(--green-600);
  box-shadow: 0 0 0 3px rgba(26, 127, 75, .14);
}
.select {
  padding: 12px 38px 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235c6a61' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 16px;
  font-size: 14px;
  font-weight: 600;
  appearance: none;
  cursor: pointer;
}
.select:focus { outline: none; border-color: var(--green-600); }
.result-count { font-size: 13.5px; color: var(--muted); }
.result-count b { color: var(--ink); font-weight: 800; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 100px;
  background: var(--green-100);
  color: var(--green-800);
  font-size: 12.5px;
  font-weight: 700;
}
.chip button { display: grid; place-items: center; width: 15px; height: 15px; }
.chip button svg { width: 13px; height: 13px; opacity: .65; }
.chip button:hover svg { opacity: 1; }

.empty-state {
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  padding: 56px 24px;
  text-align: center;
  color: var(--muted);
  background: var(--paper-2);
}
.empty-state h3 { font-size: 17px; color: var(--ink); margin-bottom: 8px; }
.empty-state p { font-size: 14px; }

.filter-bar { display: none; }

/* -------------------------------------------------------- PAGE HEADER -- */
.page-head {
  background: linear-gradient(160deg, var(--green-900), #0a2417);
  color: #fff;
  padding-block: clamp(32px, 4.5vw, 56px);
  position: relative;
  overflow: hidden;
}
.page-head::after {
  content: "";
  position: absolute; inset: 0;
  background-image: linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to right, #000, transparent 70%);
}
.page-head__inner { position: relative; z-index: 1; }
.page-head h1 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); margin-bottom: 12px; }
.page-head p { color: rgba(255, 255, 255, .7); max-width: 70ch; font-size: 15px; }

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, .55);
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.breadcrumb a:hover { color: var(--amber); }
.breadcrumb svg { width: 13px; height: 13px; opacity: .5; }
.breadcrumb span { color: rgba(255, 255, 255, .9); }
.breadcrumb--dark { color: var(--muted); }
.breadcrumb--dark span { color: var(--ink); }
.breadcrumb--dark a:hover { color: var(--green-700); }

/* ------------------------------------------------------ PRODUCT DETAIL */
.pd { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 40px; align-items: start; }
.pd__media {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper-2);
  padding: 18px;
  position: relative;
}
.pd__media img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; border-radius: var(--radius); background: #fff; }
.pd__thumbs { display: flex; gap: 10px; margin-top: 12px; }
.pd__thumb {
  width: 76px; height: 76px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #fff;
  padding: 4px;
}
.pd__thumb img { width: 100%; height: 100%; object-fit: contain; }

.pd__info h1 { font-size: clamp(1.7rem, 3vw, 2.3rem); font-family: var(--mono); letter-spacing: -.03em; }
.pd__model { font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 8px; }
.pd__pattern { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 14px; font-weight: 700; color: var(--green-700); }
.pd__badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 22px; }
.badge {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  padding: 6px 11px;
  border-radius: 5px;
  background: var(--paper-3);
  color: var(--ink-soft);
  border: 1px solid var(--line);
}
.badge--green { background: var(--green-100); color: var(--green-800); border-color: #cfe4d6; }
.badge--amber { background: var(--amber-100); color: #8a5c04; border-color: #f4dfae; }

.pd__keyfacts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 24px;
}
.pd__keyfacts div { background: #fff; padding: 14px 16px; }
.pd__keyfacts dt { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); font-weight: 700; }
.pd__keyfacts dd { margin: 4px 0 0; font-size: 15px; font-weight: 700; }

.spec-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.spec-table caption {
  text-align: left;
  font-size: 11.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted-2);
  font-weight: 800;
  padding-bottom: 10px;
}
.spec-table th, .spec-table td { text-align: left; padding: 11px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table th { width: 46%; font-weight: 500; color: var(--muted); }
.spec-table td { font-weight: 700; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }
.spec-table .mono { font-family: var(--mono); font-size: 13.5px; }

.quote-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-md);
  padding: 24px;
  position: sticky;
  top: 92px;
}
.quote-card h3 { font-size: 17px; margin-bottom: 6px; }
.quote-card > p { font-size: 13.5px; color: var(--muted); margin-bottom: 18px; }
.quote-card__rows { display: grid; gap: 8px; margin-bottom: 18px; font-size: 13px; }
.quote-card__rows div { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 8px; border-bottom: 1px dashed var(--line); }
.quote-card__rows dt, .quote-card__rows span:first-child { color: var(--muted); }
.quote-card__rows b { font-weight: 700; }
.quote-card__contact { display: grid; gap: 9px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13.5px; }
.quote-card__contact a { display: flex; align-items: center; gap: 9px; font-weight: 600; color: var(--ink-soft); }
.quote-card__contact a:hover { color: var(--green-700); }
.quote-card__contact svg { width: 16px; height: 16px; color: var(--green-600); }

.pd-section { margin-top: 40px; }
.pd-section h2 { font-size: 19px; margin-bottom: 14px; }
.pd-section p { color: var(--muted); font-size: 14.5px; max-width: 92ch; }
.use-list { display: grid; gap: 10px; margin-top: 14px; }
.use-list li { display: flex; gap: 10px; font-size: 14.5px; align-items: flex-start; }
.use-list svg { width: 17px; height: 17px; color: var(--green-600); flex: none; margin-top: 3px; }

/* ------------------------------------------------------------- FORMS --- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 12.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.field label .req { color: #c0392b; }
.field input, .field select, .field textarea {
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  font-size: 14.5px;
  transition: border-color .15s, box-shadow .15s;
  width: 100%;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--green-600);
  box-shadow: 0 0 0 3px rgba(26, 127, 75, .14);
}
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235c6a61' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; padding-right: 38px; }
.field .hint { font-size: 12px; color: var(--muted-2); }
.form-note { font-size: 12.5px; color: var(--muted); margin-top: 14px; line-height: 1.6; }
.form-msg {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  display: none;
}
.form-msg.is-error { display: block; background: #fdeceb; color: #a1291f; border: 1px solid #f6cdc9; }
.form-msg.is-ok { display: block; background: var(--green-100); color: var(--green-800); border: 1px solid #cfe4d6; }

.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 40px; align-items: start; }
.contact-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
  background: #fff;
}
.contact-card h3 { font-size: 16px; margin-bottom: 16px; }
.contact-list { display: grid; gap: 16px; }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; }
.contact-list__icon {
  width: 34px; height: 34px;
  border-radius: 8px;
  background: var(--green-100);
  color: var(--green-700);
  display: grid;
  place-items: center;
  flex: none;
}
.contact-list__icon svg { width: 17px; height: 17px; }
.contact-list b { display: block; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 2px; }
.contact-list a:hover { color: var(--green-700); }
.contact-list span, .contact-list a { color: var(--ink-soft); }

.hours-table { width: 100%; font-size: 13.5px; border-collapse: collapse; }
.hours-table td { padding: 7px 0; border-bottom: 1px dashed var(--line); color: var(--muted); }
.hours-table td:last-child { text-align: right; font-weight: 700; color: var(--ink-soft); }

/* ------------------------------------------------------ LANG SWITCHER -- */
.lang-switch { position: relative; flex: none; }
.lang-switch__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-soft);
  transition: border-color .15s, color .15s, background .15s;
}
.lang-switch__btn svg { width: 15px; height: 15px; opacity: .75; }
.lang-switch__btn .chev { width: 12px; height: 12px; opacity: .45; }
.lang-switch__btn:hover { border-color: var(--green-600); color: var(--green-700); }
.lang-switch__menu {
  position: absolute;
  right: 0;
  top: calc(100% + 7px);
  min-width: 196px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 6px;
  z-index: 90;
}
.lang-switch__menu[hidden] { display: none; }
.lang-switch__menu button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  padding: 9px 12px;
  border-radius: 6px;
  font-size: 13.5px;
  text-align: left;
  color: var(--ink-soft);
}
.lang-switch__menu button:hover { background: var(--paper-3); }
.lang-switch__menu button.is-active { background: var(--green-100); color: var(--green-800); font-weight: 700; }
.lang-switch__menu em { font-style: normal; font-size: 11px; color: var(--muted-2); letter-spacing: .05em; }

/* 泰文行高需要更宽，避免声调符号被裁切 */
html[lang="th"] body { line-height: 1.85; }
html[lang="th"] h1, html[lang="th"] h2, html[lang="th"] h3, html[lang="th"] h4 { line-height: 1.5; }
html[lang="th"] .hero h1 { line-height: 1.35; }
html[lang="th"] .logo__name { font-size: 17px; }
html[lang="th"] .eyebrow,
html[lang="th"] .hero__card-head,
html[lang="th"] .filter-group__title,
html[lang="th"] .prod-card__model,
html[lang="th"] .cat-card__tagline { letter-spacing: 0; text-transform: none; }
html[lang="zh"] .logo__name { letter-spacing: 0; }

/* ------------------------------------------------------------ FOOTER --- */
.site-footer { background: var(--green-900); color: rgba(255, 255, 255, .66); padding-top: 56px; font-size: 14px; }
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
  gap: 40px;
  padding-bottom: 44px;
}
.footer__brand .logo__name { color: #fff; }
.footer__brand .logo__name em { color: var(--amber); }
.footer__brand .logo__sub { color: rgba(255, 255, 255, .4); }
.footer__brand p { margin-top: 16px; font-size: 13.5px; line-height: 1.7; max-width: 40ch; }
.footer h4 {
  color: #fff;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 16px;
  font-weight: 800;
}
.footer ul { display: grid; gap: 9px; font-size: 13.5px; }
.footer a:hover { color: var(--amber); }
.footer__contact { display: grid; gap: 11px; font-size: 13.5px; }
.footer__contact li { display: flex; gap: 9px; align-items: flex-start; }
.footer__contact svg { width: 15px; height: 15px; color: var(--amber); flex: none; margin-top: 3px; }
.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding-block: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: rgba(255, 255, 255, .45);
}
.footer__bottom a:hover { color: #fff; }
.footer__market {
  display: flex; flex-wrap: wrap; gap: 6px 14px;
  font-size: 12.5px; color: rgba(255, 255, 255, .5);
  margin-top: 14px;
}

/* --------------------------------------------------------- UTILITIES --- */
.mt-0 { margin-top: 0; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.center { text-align: center; }
.stack-16 { display: grid; gap: 16px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.divider { height: 1px; background: var(--line); border: 0; margin-block: 32px; }
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--green-700); color: #fff; padding: 10px 16px; z-index: 200;
}
.skip-link:focus { left: 8px; top: 8px; }

/* -------------------------------------------------------- RESPONSIVE --- */
@media (max-width: 1100px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__card { max-width: 520px; }
  .listing { grid-template-columns: 240px minmax(0, 1fr); gap: 24px; }
  .pd { grid-template-columns: minmax(0, 1fr) 330px; gap: 28px; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 900px) {
  .nav, .header__actions .btn { display: none; }
  .nav-toggle { display: grid; }
  .header__inner { min-height: 64px; }

  .nav.is-open {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 12px var(--gutter) 20px;
    box-shadow: var(--shadow-lg);
  }
  .nav.is-open a { padding: 12px 14px; font-size: 15px; }

  .listing { grid-template-columns: 1fr; }
  .filter-bar { display: flex; gap: 10px; align-items: center; margin-bottom: 16px; }
  .toolbar .result-count { display: none; }
  .filters {
    position: fixed;
    inset: 0;
    top: 0;
    z-index: 120;
    max-height: none;
    border-radius: 0;
    border: 0;
    padding: 20px var(--gutter) 90px;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform .25s ease;
    width: 100%;
    max-width: 420px;
  }
  .filters.is-open { transform: none; box-shadow: var(--shadow-lg); }
  .filters__close { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--line-strong); border-radius: 6px; }
  .filters__close svg { width: 16px; height: 16px; }
  .filters__apply {
    position: fixed; left: 0; right: 0; bottom: 0;
    width: 100%; max-width: 420px;
    padding: 14px var(--gutter);
    background: #fff;
    border-top: 1px solid var(--line);
    z-index: 121;
  }
  .filters-backdrop {
    position: fixed; inset: 0;
    background: rgba(16, 26, 20, .45);
    z-index: 110;
    display: none;
    border: 0;
  }
  .filters-backdrop.is-open { display: block; }

  .pd { grid-template-columns: 1fr; }
  .quote-card { position: static; }
  .contact-grid { grid-template-columns: 1fr; }
  .cta-band { grid-template-columns: 1fr; }
  .cta-band__actions { justify-content: flex-start; }
  .two-col { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  /* 品牌副标题在窄屏会撑破 header，隐藏掉换行 */
  .logo__sub { display: none; }
  .lang-switch__btn { height: 38px; padding: 0 8px; gap: 5px; }
  .lang-switch__btn svg:first-child { display: none; }
  .lang-switch__menu { min-width: 176px; }
  .logo__mark { width: 36px; height: 36px; font-size: 13px; border-radius: 8px; }
  .logo__name { font-size: 16.5px; }
  .logo__text { min-width: 0; }
  .topbar__left { gap: 14px; font-size: 12px; }
  .topbar__badge { display: none; }
  .hero__meta { gap: 18px; }
  .hero__meta strong { font-size: 17px; }
  .prod-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
  .prod-card__body { padding: 12px 12px 14px; }
  .prod-card__size { font-size: 19px; }
  .prod-card__pattern { font-size: 11.5px; }
  .prod-card__specs { grid-template-columns: 1fr; gap: 4px; margin: 10px 0 12px; padding-top: 10px; font-size: 11.5px; }
  .prod-card__cat { display: none; }
  .section-head { gap: 16px; }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .form-grid { grid-template-columns: 1fr; }
  .pd__keyfacts { grid-template-columns: 1fr 1fr; }
  .cat-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}

@media print {
  .site-header, .topbar, .site-footer, .filters, .quote-card, .cta-band { display: none !important; }
  body { color: #000; }
}
