:root {
  color-scheme: dark;
  --bg: #09090f;
  --surface: rgba(21, 21, 31, 0.82);
  --surface-solid: #15151f;
  --surface-soft: #1b1b27;
  --line: rgba(255, 255, 255, 0.09);
  --text: #f7f7fb;
  --muted: #a8a8b8;
  --accent: #de2b9d;
  --accent-two: #6238f0;
  --success: #45d18c;
  --warning: #ffbf5b;
  --radius: 26px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% -10%, rgba(98, 56, 240, 0.14), transparent 32%),
    var(--bg);
  color: var(--text);
  font-family: "Noto Sans Thai", -apple-system, BlinkMacSystemFont, sans-serif;
}

button,
input,
select {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.ambient {
  position: fixed;
  z-index: -1;
  width: 430px;
  height: 430px;
  border-radius: 50%;
  filter: blur(130px);
  opacity: 0.17;
  pointer-events: none;
}

.ambient-one {
  top: 20%;
  left: -260px;
  background: var(--accent-two);
}

.ambient-two {
  right: -260px;
  bottom: 5%;
  background: var(--accent);
}

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1320px, calc(100% - 40px));
  margin: 18px auto 0;
  padding: 12px 14px 12px 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(9, 9, 15, 0.76);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(24px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
}

.brand img {
  width: 46px;
  height: 46px;
  border-radius: 14px;
}

.brand span {
  display: grid;
  line-height: 1.05;
}

.brand strong {
  font-size: 0.95rem;
  letter-spacing: 0.11em;
}

.brand small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.65rem;
  letter-spacing: 0.28em;
}

.header-actions,
.hero-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 14px;
  font-weight: 700;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.primary-button {
  background: linear-gradient(135deg, var(--accent-two), var(--accent));
  box-shadow: 0 12px 30px rgba(187, 34, 158, 0.2);
  color: white;
  cursor: pointer;
}

.primary-button.large {
  min-height: 52px;
  padding-inline: 26px;
}

.ghost-button {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.primary-button:hover,
.ghost-button:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.18);
}

main {
  width: min(1320px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(340px, 0.8fr);
  gap: clamp(40px, 7vw, 100px);
  align-items: center;
  min-height: 660px;
  padding: 80px 4vw 50px;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 13px;
  border: 1px solid rgba(69, 209, 140, 0.25);
  border-radius: 999px;
  background: rgba(69, 209, 140, 0.07);
  color: #a9f0cd;
  font-size: 0.8rem;
  font-weight: 700;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 6px rgba(69, 209, 140, 0.12);
}

.hero h1 {
  max-width: 760px;
  margin: 26px 0 18px;
  font-size: clamp(3rem, 6vw, 6.4rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.hero h1 span {
  background: linear-gradient(100deg, #ffffff 5%, #b8a7ff 45%, #ff87d3 90%);
  -webkit-background-clip: text;
  color: transparent;
}

.hero-copy > p {
  max-width: 650px;
  margin-bottom: 32px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.9;
}

.text-link {
  color: var(--muted);
  font-weight: 600;
}

.text-link:hover {
  color: var(--text);
}

.hero-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 420px;
  padding: 42px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 38px;
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.02)),
    rgba(17, 17, 27, 0.84);
  box-shadow: var(--shadow);
}

.hero-card-glow {
  position: absolute;
  z-index: -1;
  right: -110px;
  bottom: -130px;
  width: 330px;
  height: 330px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-two), var(--accent));
  filter: blur(30px);
  opacity: 0.5;
}

.hero-card > img {
  width: 150px;
  height: 150px;
  border-radius: 36px;
  box-shadow: 0 22px 45px rgba(0, 0, 0, 0.4);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 54px;
}

.hero-metrics > div {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.15);
}

.hero-metrics strong,
.hero-metrics span {
  display: block;
}

.hero-metrics strong {
  font-size: 2rem;
}

.hero-metrics span,
.hero-card > p {
  color: var(--muted);
  font-size: 0.78rem;
}

.hero-card > p {
  margin: 18px 2px 0;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-block: 1px solid var(--line);
}

.trust-strip > div {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1px 14px;
  padding: 24px 30px;
}

.trust-strip > div + div {
  border-left: 1px solid var(--line);
}

.trust-strip span {
  grid-row: 1 / 3;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 800;
}

.trust-strip strong {
  font-size: 0.95rem;
}

.trust-strip small {
  color: var(--muted);
}

.stock-section {
  padding: 110px 0 120px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
}

.eyebrow {
  margin: 0 0 8px;
  color: #e477c4;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.2em;
}

.section-heading h2,
.contact-section h2 {
  margin: 0;
  font-size: clamp(2.2rem, 4vw, 4.4rem);
  line-height: 1.12;
  letter-spacing: -0.045em;
}

.section-heading > p {
  color: var(--muted);
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto auto;
  gap: 14px;
  align-items: center;
  margin-bottom: 32px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  backdrop-filter: blur(20px);
}

.quick-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  grid-column: 1 / -1;
}

.quick-filters label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
  font-size: 0.78rem;
  cursor: pointer;
}

.quick-filters input {
  width: 17px;
  height: 17px;
  accent-color: var(--accent);
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.18);
}

.search-box svg {
  width: 20px;
  fill: none;
  stroke: var(--muted);
  stroke-linecap: round;
  stroke-width: 1.8;
}

.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
}

.search-box input::placeholder {
  color: #777789;
}

.category-filters {
  display: flex;
  gap: 7px;
  max-width: 520px;
  overflow-x: auto;
  scrollbar-width: none;
}

.category-filters::-webkit-scrollbar {
  display: none;
}

.filter-chip {
  flex: none;
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.filter-chip.active {
  border-color: rgba(222, 43, 157, 0.42);
  background: rgba(222, 43, 157, 0.13);
  color: #ffb6e4;
}

.sort-control {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 0.8rem;
  white-space: nowrap;
}

.sort-control select {
  min-height: 42px;
  padding: 0 34px 0 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #181822;
  color: var(--text);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.product-card {
  position: relative;
  content-visibility: auto;
  contain-intrinsic-size: 520px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-solid);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.16);
  cursor: pointer;
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.product-card:hover {
  transform: translateY(-7px);
  border-color: rgba(222, 43, 157, 0.32);
  box-shadow: 0 25px 55px rgba(0, 0, 0, 0.3);
}

.product-image-wrap {
  position: relative;
  aspect-ratio: 1 / 0.84;
  overflow: hidden;
  background:
    radial-gradient(circle at 25% 20%, rgba(255, 255, 255, 0.16), transparent 20%),
    linear-gradient(145deg, #2c224f, #171421 60%, #2a1325);
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 350ms ease;
}

.product-card:hover .product-image {
  transform: scale(1.035);
}

.placeholder-product {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: rgba(255, 255, 255, 0.84);
}

.placeholder-product img {
  width: 35%;
  border-radius: 24%;
  opacity: 0.82;
  filter: drop-shadow(0 15px 24px rgba(0, 0, 0, 0.3));
}

.image-count {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.66);
  font-size: 0.72rem;
  font-weight: 700;
  backdrop-filter: blur(8px);
}

.product-body {
  padding: 19px;
}

.product-meta,
.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.product-meta {
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.73rem;
}

.stock-badge {
  color: #a7efd0;
}

.product-body h3 {
  min-height: 54px;
  margin: 3px 0 12px;
  font-size: 1.08rem;
  line-height: 1.55;
}

.card-model-label,
.cash-price-label {
  display: block;
  margin-top: 11px;
  color: var(--muted);
  font-size: 0.65rem;
}

.card-specs {
  display: grid;
  gap: 6px;
  margin: 0 0 13px;
}

.card-specs div {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 7px;
  align-items: baseline;
}

.card-specs dt,
.card-specs dd {
  margin: 0;
  font-size: 0.68rem;
  line-height: 1.4;
}

.card-specs dt {
  color: var(--muted);
}

.card-specs dd {
  overflow: hidden;
  color: var(--text);
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.finance-status {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 8px;
  padding: 5px 8px;
  border-radius: 8px;
  font-size: 0.66rem;
  font-weight: 800;
}

.finance-status.available {
  background: rgba(69, 209, 140, 0.12);
  color: #a7efd0;
}

.finance-status.unavailable {
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
}

.installment-lines {
  display: grid;
  gap: 5px;
}

.installment-lines span {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 6px;
  color: #d8b7ff;
  font-size: 0.67rem;
  line-height: 1.45;
}

.installment-lines b {
  color: var(--muted);
  font-weight: 600;
}

.product-tags span,
.detail-chip {
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
  font-size: 0.7rem;
}

.price-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 10px;
  margin-top: 3px;
}

.load-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.load-more-button {
  min-width: 180px;
  cursor: pointer;
}

.price-row strong {
  font-size: 1.42rem;
  letter-spacing: -0.035em;
}

.price-copy {
  display: grid;
  gap: 3px;
}

.price-copy small {
  color: #d8b7ff;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.45;
}

.price-row span {
  color: #f58ccc;
  font-size: 0.76rem;
  font-weight: 700;
}

.state-card {
  display: grid;
  justify-items: center;
  min-height: 300px;
  padding: 60px 20px;
  border: 1px dashed rgba(255, 255, 255, 0.13);
  border-radius: var(--radius);
  text-align: center;
}

.state-card h3 {
  margin: 20px 0 6px;
}

.state-card p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
}

.spinner {
  width: 42px;
  height: 42px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}

.state-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(222, 43, 157, 0.12);
  color: #ff8dd3;
  font-weight: 800;
}

.hidden {
  display: none !important;
}

.contact-section {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 60px;
  align-items: start;
  padding: 70px;
  border: 1px solid var(--line);
  border-radius: 36px;
  background:
    linear-gradient(135deg, rgba(98, 56, 240, 0.12), rgba(222, 43, 157, 0.08)),
    var(--surface-solid);
}

.contact-details {
  display: grid;
  gap: 18px;
}

.contact-details p {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 14px;
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.contact-details strong {
  color: var(--text);
}

.contact-details a {
  color: #f08bc9;
}

footer {
  display: flex;
  justify-content: space-between;
  width: min(1320px, calc(100% - 40px));
  margin: 0 auto;
  padding: 42px 0;
  color: #777789;
  font-size: 0.78rem;
}

.product-dialog {
  width: min(1040px, calc(100% - 30px));
  max-height: min(860px, calc(100vh - 30px));
  padding: 0;
  overflow: hidden auto;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 30px;
  background: #12121b;
  color: var(--text);
  box-shadow: var(--shadow);
}

.product-dialog::backdrop {
  background: rgba(3, 3, 8, 0.82);
  backdrop-filter: blur(10px);
}

.dialog-close {
  position: sticky;
  z-index: 5;
  top: 16px;
  float: right;
  width: 42px;
  height: 42px;
  margin: 16px 16px -58px 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.58);
  color: white;
  font-size: 1.6rem;
  cursor: pointer;
}

.dialog-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  min-height: 590px;
}

.dialog-gallery {
  padding: 20px;
  background: #0c0c12;
}

.dialog-main-image {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1 / 0.9;
  overflow: hidden;
  border-radius: 22px;
  background: linear-gradient(145deg, #2c224f, #171421 60%, #2a1325);
}

.dialog-main-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.dialog-thumbs {
  display: flex;
  gap: 9px;
  margin-top: 12px;
  overflow-x: auto;
}

.dialog-thumb {
  flex: none;
  width: 68px;
  height: 68px;
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 12px;
  background: #22222c;
  cursor: pointer;
}

.dialog-thumb.active {
  border-color: var(--accent);
}

.dialog-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dialog-info {
  padding: 55px 36px 36px;
}

.dialog-info h2 {
  margin: 12px 0;
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1.2;
}

.dialog-price {
  margin: 20px 0 3px;
  color: #ff97d7;
  font-size: 2rem;
  font-weight: 800;
}

.dialog-installments {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 4px 0 18px;
}

.dialog-installments div {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
}

.dialog-installments small,
.dialog-installments strong {
  display: block;
}

.dialog-installments small {
  color: var(--muted);
  font-size: 0.68rem;
}

.dialog-installments strong {
  margin-top: 4px;
  color: #d8b7ff;
  font-size: 0.78rem;
}

.dialog-description {
  color: var(--muted);
  line-height: 1.8;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 24px 0;
}

.detail-grid div {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
}

.detail-grid small,
.detail-grid strong {
  display: block;
}

.detail-grid small {
  margin-bottom: 5px;
  color: var(--muted);
}

.dialog-actions {
  display: grid;
  gap: 10px;
}

.dialog-actions .primary-button,
.dialog-actions .ghost-button {
  width: 100%;
}

.chat-toggle {
  position: fixed;
  z-index: 80;
  right: 22px;
  bottom: 22px;
  display: grid;
  gap: 1px;
  min-width: 172px;
  padding: 12px 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  background: linear-gradient(135deg, var(--accent-two), var(--accent));
  color: white;
  text-align: left;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.38);
  cursor: pointer;
}

.chat-toggle span {
  font-size: 0.86rem;
  font-weight: 800;
}

.chat-toggle strong {
  font-size: 0.68rem;
  opacity: 0.78;
}

.customer-chat {
  position: fixed;
  z-index: 90;
  right: 22px;
  bottom: 90px;
  display: grid;
  grid-template-rows: auto auto minmax(160px, 1fr) auto;
  width: min(390px, calc(100vw - 28px));
  height: min(650px, calc(100vh - 120px));
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 26px;
  background: #12121b;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.55);
  opacity: 0;
  pointer-events: none;
  transform: translateY(24px) scale(0.96);
  transform-origin: bottom right;
  transition: opacity 180ms ease, transform 180ms ease;
}

.customer-chat.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 17px 18px;
  background: linear-gradient(135deg, #5a35db, #c72b91);
}

.chat-header div {
  display: grid;
}

.chat-header strong {
  font-size: 0.92rem;
}

.chat-header span {
  font-size: 0.68rem;
  opacity: 0.78;
}

.chat-header button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.2);
  color: white;
  font-size: 1.35rem;
  cursor: pointer;
}

.chat-product {
  display: grid;
  gap: 2px;
  padding: 13px 17px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
}

.chat-product strong {
  font-size: 0.83rem;
}

.chat-product span,
.chat-product small {
  color: var(--muted);
  font-size: 0.68rem;
}

.chat-product small {
  color: #e09bce;
  font-weight: 700;
}

.chat-messages {
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  padding: 16px;
  background:
    radial-gradient(circle at 100% 0, rgba(98, 56, 240, 0.1), transparent 35%),
    #0d0d14;
}

.chat-notice {
  margin: auto;
  max-width: 280px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.7;
  text-align: center;
}

.chat-message {
  display: grid;
  gap: 3px;
  max-width: 85%;
}

.chat-message.customer {
  align-self: flex-end;
  justify-items: end;
}

.chat-message.store {
  align-self: flex-start;
}

.chat-message small,
.chat-message time {
  color: #777789;
  font-size: 0.6rem;
}

.chat-message p {
  margin: 0;
  padding: 9px 12px;
  border-radius: 15px;
  background: #252532;
  font-size: 0.78rem;
  line-height: 1.55;
}

.chat-message.customer p {
  background: linear-gradient(135deg, #653bf0, #cc2b94);
}

.chat-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 11px;
  border-top: 1px solid var(--line);
  background: #15151f;
}

.chat-form input {
  min-width: 0;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 13px;
  outline: 0;
  background: #0c0c12;
  color: white;
}

.chat-form button {
  padding: 0 16px;
  border: 0;
  border-radius: 13px;
  background: var(--accent);
  color: white;
  font-weight: 800;
  cursor: pointer;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 1080px) {
  .hero {
    grid-template-columns: 1fr 380px;
    padding-inline: 0;
  }

  .filter-panel {
    grid-template-columns: 1fr auto;
  }

  .category-filters {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .site-header {
    width: min(100% - 22px, 1320px);
    margin-top: 10px;
  }

  .header-actions .ghost-button {
    display: none;
  }

  main,
  footer {
    width: min(100% - 24px, 1320px);
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 70px 0;
  }

  .hero-card {
    min-height: 360px;
  }

  .trust-strip {
    grid-template-columns: 1fr;
  }

  .trust-strip > div + div {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-section,
  .dialog-layout {
    grid-template-columns: 1fr;
  }

  .contact-section {
    padding: 38px 28px;
  }
}

@media (max-width: 560px) {
  .brand strong {
    font-size: 0.78rem;
  }

  .brand small {
    font-size: 0.53rem;
  }

  .brand img {
    width: 40px;
    height: 40px;
  }

  .header-actions .primary-button {
    min-height: 40px;
    padding-inline: 13px;
    font-size: 0.75rem;
  }

  .hero h1 {
    font-size: clamp(2.7rem, 15vw, 4rem);
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .text-link {
    padding: 12px;
    text-align: center;
  }

  .hero-card {
    min-height: 330px;
    padding: 28px;
    border-radius: 28px;
  }

  .hero-card > img {
    width: 112px;
    height: 112px;
  }

  .hero-metrics {
    margin-top: 40px;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
  }

  .filter-panel {
    grid-template-columns: 1fr;
  }

  .category-filters {
    grid-column: auto;
    grid-row: auto;
  }

  .quick-filters {
    grid-column: auto;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .quick-filters label {
    flex: none;
    padding-inline: 10px;
    font-size: 0.68rem;
  }

  .sort-control {
    justify-content: space-between;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .product-body h3 {
    min-height: 44px;
    margin-block: 9px 7px;
    font-size: 0.8rem;
    line-height: 1.35;
  }

  .product-card {
    border-radius: 18px;
  }

  .product-body {
    padding: 11px;
  }

  .product-meta {
    align-items: flex-start;
    gap: 3px;
    font-size: 0.58rem;
  }

  .product-tags {
    display: none;
  }

  .card-model-label,
  .cash-price-label {
    margin-top: 7px;
    font-size: 0.55rem;
  }

  .card-specs {
    gap: 4px;
    margin-bottom: 8px;
  }

  .card-specs div {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 3px;
  }

  .card-specs dt,
  .card-specs dd {
    font-size: 0.56rem;
  }

  .finance-status {
    margin-bottom: 6px;
    padding: 4px 6px;
    font-size: 0.55rem;
  }

  .installment-lines {
    gap: 3px;
  }

  .installment-lines span {
    grid-template-columns: 45px minmax(0, 1fr);
    gap: 3px;
    font-size: 0.55rem;
  }

  .price-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
    margin-top: 10px;
  }

  .price-row strong {
    font-size: 0.96rem;
  }

  .price-copy small,
  .price-row span {
    font-size: 0.6rem;
  }

  .image-count {
    right: 7px;
    bottom: 7px;
    padding: 4px 7px;
    font-size: 0.6rem;
  }

  .contact-details p {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  footer {
    flex-direction: column;
    gap: 8px;
  }

  .dialog-gallery {
    padding: 12px;
  }

  .dialog-info {
    padding: 28px 20px;
  }

  .dialog-installments {
    grid-template-columns: 1fr;
  }

  .chat-toggle {
    right: 12px;
    bottom: 12px;
    min-width: 142px;
    padding: 10px 14px;
    border-radius: 17px;
  }

  .customer-chat {
    right: 7px;
    bottom: 72px;
    width: calc(100vw - 14px);
    height: min(620px, calc(100vh - 86px));
    border-radius: 22px;
  }
}
