:root {
  --be-tong: #E6E8E5;   /* nền bê tông giống nền ảnh chụp máy */
  --giay: #F7F8F6;      /* mặt sáng */
  --muc: #1C232B;       /* chữ, nền tối */
  --kem: #98A3A9;       /* màu lá kẽm: đường kẻ, chữ phụ */
  --pin: #1F8F45;       /* xanh vỏ cell pin của shop */
  --zalo: #0068FF;
  --chu-tieu-de: "Archivo", "Arial Narrow", sans-serif;
  --chu-than: "Be Vietnam Pro", system-ui, sans-serif;
  --le: clamp(1rem, 4vw, 3rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 4.5rem; }
body {
  margin: 0;
  background: var(--be-tong);
  color: var(--muc);
  font: 400 1rem/1.6 var(--chu-than);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--zalo); outline-offset: 3px; }

h1, h2, h3 {
  font-family: var(--chu-tieu-de);
  font-stretch: 72%;
  font-weight: 800;
  line-height: 1;
  margin: 0 0 .6em;
  letter-spacing: -.01em;
}
h2 { font-size: clamp(2rem, 4.5vw, 3.25rem); }
h3 { font-size: 1.35rem; font-weight: 700; line-height: 1.15; }
p { margin: 0 0 1em; max-width: 62ch; }

/* ---------- Nút ---------- */
.nut {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: .7em 1.3em;
  border-radius: 999px;
  font: 600 1rem/1 var(--chu-than);
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
}
.nut-zalo { background: var(--zalo); color: #fff; }
.nut-zalo:hover { background: #0052cc; }
.nut-vien { border-color: var(--muc); }
.nut-vien:hover { background: var(--muc); color: var(--giay); }
.nut.nho { min-height: 40px; padding: .5em 1em; font-size: .9rem; }
.hang-nut { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- Đầu trang ---------- */
.dau {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 1.5rem;
  padding: .7rem var(--le);
  background: color-mix(in srgb, var(--be-tong) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid color-mix(in srgb, var(--kem) 50%, transparent);
}
.ten-shop {
  font: 900 1.35rem/1 var(--chu-tieu-de);
  font-stretch: 68%;
  text-decoration: none;
  white-space: nowrap;
}
.menu { display: flex; gap: 1.25rem; margin-left: auto; }
.menu a { text-decoration: none; font-weight: 500; font-size: .95rem; }
.menu a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
  padding: clamp(2rem, 6vw, 5rem) var(--le) clamp(3rem, 7vw, 6rem);
}
.hero h1 {
  font-size: clamp(3rem, 8.2vw, 7.4rem);
  font-stretch: 64%;
  font-weight: 900;
  line-height: .9;
  letter-spacing: -.02em;
  word-spacing: .1em;
  max-width: 9ch;
}
.hero-phu { font-size: 1.15rem; margin-bottom: 1.75rem; }
.hero-anh { position: relative; margin: 0; }
.hero-anh img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: 4px;
}
/* Tem pin: thứ duy nhất "đậm" trên trang */
.tem {
  position: absolute; left: -1.5rem; bottom: 2rem;
  display: grid; gap: .15rem;
  padding: 1rem 1.4rem 1.1rem;
  background: var(--pin); color: #fff;
  border-radius: 6px;
  transform: rotate(-3deg);
  box-shadow: 0 14px 30px -12px rgba(28, 35, 43, .55);
  animation: dan-tem .7s cubic-bezier(.2, .9, .3, 1.3) .3s both;
}
.tem-lon { font: 900 2.1rem/1 var(--chu-tieu-de); font-stretch: 66%; }
.tem-dong { font-size: .9rem; opacity: .92; }
@keyframes dan-tem {
  from { opacity: 0; transform: rotate(-12deg) scale(1.25); }
  to   { opacity: 1; transform: rotate(-3deg) scale(1); }
}

/* ---------- Khối chung ---------- */
.khoi { padding: clamp(3rem, 7vw, 6rem) var(--le); }
.khoi-dau { margin-bottom: 2rem; }
.khoi-toi { background: var(--muc); color: var(--giay); }
.khoi-toi .bang th, .khoi-toi .bang td { border-color: #3a444f; }
.khoi-toi .nut-vien { border-color: var(--giay); }
.khoi-ke { background: var(--giay); }
.ghi-nho { font-size: .95rem; color: color-mix(in srgb, currentColor 75%, transparent); }

.hai-cot {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem); align-items: start;
}
.hai-cot.dao { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
.anh-khung { margin: 0; }
.anh-khung img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 4px; }

/* ---------- Bộ lọc + lưới máy ---------- */
.loc { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.loc-nut {
  font: 500 .95rem/1 var(--chu-than);
  padding: .65em 1.1em; min-height: 42px;
  border: 1.5px solid var(--kem); border-radius: 999px;
  background: transparent; color: var(--muc); cursor: pointer;
}
.loc-nut:hover { border-color: var(--muc); }
.loc-nut[aria-pressed="true"] { background: var(--muc); border-color: var(--muc); color: var(--giay); }

.luoi {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 2.5rem 1.5rem;
}
.may { display: flex; flex-direction: column; }
.may img {
  width: 100%; aspect-ratio: 1; object-fit: cover;
  border-radius: 4px; background: var(--giay);
  margin-bottom: .9rem;
}
.may h3 { font: 600 1rem/1.35 var(--chu-than); margin: 0 0 .35rem; }
.gia {
  font: 800 1.7rem/1 var(--chu-tieu-de); font-stretch: 75%;
  font-variant-numeric: tabular-nums;
  margin: 0 0 .3rem;
}
.gia small { font: 500 .85rem var(--chu-than); margin-right: .25rem; color: #5b666e; }
.may .ghi { font-size: .85rem; color: #5b666e; margin: 0 0 .2rem; }
.may .tang { font-size: .85rem; font-weight: 600; color: var(--pin); margin: 0 0 .2rem; }
.may .hoi-mua {
  margin-top: auto; padding-top: .6rem;
  align-self: flex-start;
  font-weight: 600; font-size: .95rem; color: var(--zalo);
  text-underline-offset: 4px;
}

/* ---------- Bảng giá ---------- */
.cuon { overflow-x: auto; margin: 0 calc(-1 * var(--le)); padding: 0 var(--le); }
.bang { width: 100%; border-collapse: collapse; margin: 1.5rem 0 1.25rem; font-size: .95rem; }
.bang th, .bang td { text-align: left; padding: .75rem .6rem; border-bottom: 1px solid color-mix(in srgb, var(--kem) 60%, transparent); }
.bang thead th { font-weight: 500; font-size: .85rem; color: color-mix(in srgb, currentColor 65%, transparent); }
.bang tbody th { font-weight: 600; white-space: nowrap; }
.bang .so { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bang tbody .so { font-weight: 600; }
.bang .mo { font-weight: 400 !important; opacity: .55; }

/* ---------- VinFast ---------- */
.hai-muc {
  display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 2rem;
  margin-bottom: 1.5rem;
}
.muc { border-top: 3px solid var(--muc); padding-top: 1rem; }
.gia-to { font: 900 2.6rem/1 var(--chu-tieu-de); font-stretch: 70%; margin: .3rem 0 .8rem; }
.anh-doi { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.anh-doi img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 4px; }

/* ---------- Hỏi đáp ---------- */
.hoi-dap { max-width: 64rem; }
.hoi { border-bottom: 1px solid color-mix(in srgb, var(--kem) 60%, transparent); }
.hoi summary {
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; gap: 1rem;
  padding: 1.1rem 0; font-weight: 600; font-size: 1.05rem;
}
.hoi summary::-webkit-details-marker { display: none; }
.hoi summary::after { content: "+"; font: 700 1.4rem/1 var(--chu-tieu-de); color: var(--pin); }
.hoi[open] summary::after { content: "–"; }
.hoi p { margin: 0 0 1.2rem; color: #45505a; }

/* ---------- Chính sách ---------- */
.ds-chinh-sach {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem 2.5rem; margin: 0;
}
.ds-chinh-sach dt { font-weight: 700; margin-bottom: .3rem; }
.ds-chinh-sach dd { margin: 0; color: #45505a; }

/* ---------- Cửa hàng ---------- */
.cua-hang {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: clamp(2rem, 5vw, 4rem); align-items: start;
  background: var(--giay);
}
.dia-chi { font: 800 1.9rem/1.15 var(--chu-tieu-de); font-stretch: 75%; }
.ban-do { width: 100%; height: 380px; border: 0; border-radius: 4px; background: var(--be-tong); }

.chan { padding: 2rem var(--le) 6rem; font-size: .9rem; color: #5b666e; }

/* ---------- Thanh liên hệ dưới (điện thoại) ---------- */
.thanh-duoi { display: none; }

/* ---------- Thông báo ---------- */
.bao {
  position: fixed; left: 50%; bottom: 5.5rem; z-index: 40;
  transform: translate(-50%, 1rem);
  max-width: min(92vw, 420px);
  padding: .8rem 1.1rem; border-radius: 8px;
  background: var(--muc); color: var(--giay); font-size: .95rem;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
}
.bao.hien { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Màn hình nhỏ ---------- */
@media (max-width: 900px) {
  .menu { display: none; }
  .dau .nut { margin-left: auto; }
  .hero, .hai-cot, .hai-cot.dao, .cua-hang { grid-template-columns: minmax(0, 1fr); }
  .hai-cot.dao .anh-khung { order: 2; }
  .hero h1 { max-width: 11ch; }
  .tem { left: .75rem; bottom: 1rem; }
  .hai-muc { grid-template-columns: 1fr; }
  .anh-khung img { aspect-ratio: 4 / 3; }
}
@media (max-width: 640px) {
  .dau .nut { display: none; }
  .luoi { grid-template-columns: 1fr 1fr; gap: 2rem 1rem; }
  .gia { font-size: 1.35rem; }
  .bang { font-size: .8rem; }
  .bang th, .bang td { padding: .6rem .35rem; }
  .bang th, .bang .so { white-space: normal; }
  .bang tbody .so { white-space: nowrap; }
  .thanh-duoi {
    display: grid; grid-template-columns: 1fr 1fr;
    position: fixed; inset: auto 0 0 0; z-index: 30;
    background: var(--muc);
    padding: .5rem .5rem calc(.5rem + env(safe-area-inset-bottom));
    gap: .5rem;
  }
  .thanh-duoi a {
    display: flex; align-items: center; justify-content: center;
    min-height: 48px; border-radius: 999px;
    color: var(--giay); font-weight: 600; text-decoration: none;
    border: 1.5px solid #4a5560;
  }
  .thanh-duoi .zalo { background: var(--zalo); border-color: var(--zalo); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tem { animation: none; }
}
