:root {
  --nen: #101113;
  --mat: #17191c;
  --mat-2: #1e2125;
  --vien: #2c3036;
  --chu: #f1eee8;
  --chu-phu: #a6a59f;
  --sang: #f4b860;
  --sang-chu: #1b1408;
  --zalo: #0068ff;
  --bo-goc: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--nen);
  color: var(--chu);
  font-family: 'Be Vietnam Pro', 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--sang); outline-offset: 3px; }
button { font: inherit; color: inherit; cursor: pointer; }

.khung { width: min(1180px, 100% - 32px); margin-inline: auto; }

/* Thanh trên */
.thanh-tren {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(16,17,19,.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--vien);
}
.thanh-tren-trong { display: flex; align-items: center; gap: 28px; min-height: 62px; }
.logo {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: .12em;
  text-decoration: none;
  white-space: nowrap;
}
.logo b { font-weight: 700; color: var(--sang); }
.menu { display: flex; gap: 22px; margin-right: auto; }
.menu a { color: var(--chu-phu); text-decoration: none; font-size: 15px; }
.menu a:hover { color: var(--chu); }
.nut-zalo-nho {
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--zalo);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

/* Nút */
.nut {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 20px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.nut-chinh { background: var(--sang); color: var(--sang-chu); }
.nut-chinh:hover { background: #f7c87e; }
.nut-phu { border: 1px solid var(--vien); background: var(--mat-2); }
.nut-phu:hover { border-color: #4a4f57; }
.nut-zalo { background: var(--zalo); color: #fff; }
.nut-zalo:hover { background: #0058d8; }

/* Mở đầu */
.mo-dau { padding: 56px 0 40px; }
.mo-dau-trong {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 48px;
  align-items: center;
}
.nhan-nho {
  margin: 0 0 10px;
  color: var(--sang);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}
h1 {
  margin: 0 0 16px;
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 700;
  line-height: 1.15;
  text-wrap: balance;
}
.mo-ta { margin: 0 0 26px; color: var(--chu-phu); font-size: 17px; max-width: 46ch; }
.hang-nut { display: flex; flex-wrap: wrap; gap: 10px; }

.mo-dau-anh {
  position: relative;
  display: block;
  border-radius: var(--bo-goc);
  overflow: hidden;
  border: 1px solid var(--vien);
  text-decoration: none;
  box-shadow: 0 24px 60px rgba(0,0,0,.45);
}
.mo-dau-anh[hidden] { display: none; }
.mo-dau-anh img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .5s; }
.mo-dau-anh:hover img { transform: scale(1.02); }
.nhan-anh {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 10px 10px 14px;
  border-radius: 10px;
  background: rgba(16,17,19,.78);
  backdrop-filter: blur(6px);
  font-size: 15px;
}
.nhan-anh b {
  padding: 6px 12px;
  border-radius: 8px;
  background: var(--sang);
  color: var(--sang-chu);
  font-size: 14px;
  white-space: nowrap;
}

/* Khối nội dung */
.khoi { padding: 48px 0; }
h2 { margin: 0 0 22px; font-size: clamp(24px, 3vw, 30px); font-weight: 700; line-height: 1.2; }

.ba-buoc {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: buoc;
}
.ba-buoc li {
  counter-increment: buoc;
  padding: 20px;
  border: 1px solid var(--vien);
  border-radius: var(--bo-goc);
  background: var(--mat);
}
.ba-buoc li::before {
  content: counter(buoc);
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: rgba(244,184,96,.14);
  color: var(--sang);
  font-weight: 700;
}
.ba-buoc b { display: block; margin-bottom: 4px; font-size: 17px; font-weight: 600; }
.ba-buoc span { color: var(--chu-phu); font-size: 15px; }

/* Danh mục mẫu */
.dau-khoi { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 20px; margin-bottom: 18px; }
.dau-khoi h2 { margin: 0; }
.dem-mau { margin: 0; color: var(--chu-phu); font-size: 14px; }

.bo-loc { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-bottom: 24px; }
.nhom-loc { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 7px 14px;
  border: 1px solid var(--vien);
  border-radius: 999px;
  background: var(--mat);
  font-size: 14px;
}
.chip small { color: var(--chu-phu); font-size: 12px; }
.chip:hover { border-color: #4a4f57; }
.chip[aria-pressed="true"] { background: var(--chu); border-color: var(--chu); color: #15161a; font-weight: 600; }
.chip[aria-pressed="true"] small { color: #5d5c58; }

.luoi-mau {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr));
  gap: 18px;
}
.the-mau {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--vien);
  border-radius: var(--bo-goc);
  background: var(--mat);
  overflow: hidden;
}
.the-anh {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  background: radial-gradient(120% 90% at 50% 0%, #22252a, #121315);
  overflow: hidden;
}
.the-anh img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
a.the-anh:hover img { transform: scale(1.03); }
.the-anh svg { width: 100%; height: 100%; }
.huy-hieu {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(16,17,19,.8);
  color: var(--chu-phu);
  font-size: 12px;
  font-weight: 600;
}
.huy-hieu.co-3d { background: var(--sang); color: var(--sang-chu); }

.the-chu { display: flex; flex-direction: column; flex: 1; padding: 16px 18px 18px; }
.the-loai { margin: 0 0 4px; color: var(--sang); font-size: 13px; font-weight: 600; }
.the-mau h3 { margin: 0 0 4px; font-size: 18px; font-weight: 600; line-height: 1.3; }
.the-kich-thuoc { margin: 0 0 10px; color: var(--chu-phu); font-size: 14px; }
.the-den { margin: 0 0 16px; padding: 0; list-style: none; font-size: 14px; }
.the-den li { position: relative; padding-left: 16px; }
.the-den li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: .62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sang);
}
.the-cho { margin: 6px 0 0; color: var(--chu-phu); font-size: 14px; }
.the-nut { margin-top: auto; }
.chua-co h3 { color: #cfccc5; }

.khong-co { padding: 28px; border: 1px dashed var(--vien); border-radius: var(--bo-goc); color: var(--chu-phu); text-align: center; }
.khong-co[hidden] { display: none; }

/* Chân trang */
.chan-trang { margin-top: 32px; padding: 32px 0 calc(32px + env(safe-area-inset-bottom)); border-top: 1px solid var(--vien); background: var(--mat); }
.chan-trang-trong { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.chan-trang p { margin: 8px 0 0; color: var(--chu-phu); font-size: 14px; max-width: 52ch; }

/* Máy tính bảng và điện thoại */
@media (max-width: 900px) {
  .mo-dau { padding: 28px 0 24px; }
  .mo-dau-trong { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .mo-ta { font-size: 16px; }
  .ba-buoc { grid-template-columns: minmax(0, 1fr); }
  .khoi { padding: 32px 0; }
}
@media (max-width: 560px) {
  .menu { display: none; }
  .thanh-tren-trong { justify-content: space-between; min-height: 56px; }
  .hang-nut .nut { flex: 1 1 100%; }
  .bo-loc { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .nhom-loc { min-width: 0; flex-wrap: nowrap; overflow-x: auto; margin-inline: -16px; padding-inline: 16px; scrollbar-width: none; }
  .nhom-loc::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
  .nhan-anh { font-size: 14px; }
  .chan-trang .nut { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
