/* Inter self-host (không phụ thuộc CDN Google) — variable font, 2 subset.
   Bắt buộc có subset "vietnamese" để hiển thị đủ dấu (ế, ộ, ẩ…). */
@font-face {
  font-family: 'InterVariable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/fonts/inter-vietnamese.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1,
    U+01AF-01B0, U+1EA0-1EF9, U+20AB;
}

@font-face {
  font-family: 'InterVariable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191,
    U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Design tokens — style Watermaps (kính mờ sáng, bo tròn, xanh TGLT).
   Một nguồn duy nhất cho màu/bo góc/đổ bóng → sửa 1 chỗ, cả site theo. */
:root {
  --primary: #26a0db;        /* xanh dương chủ đạo */
  --primary-dark: #1f8cc0;   /* dùng cho hover */
  --surface: #ECF5FA;        /* nền xanh nhạt */
  --glass: rgba(255, 255, 255, 0.72);
  --border: rgba(13, 18, 30, 0.08);
  --radius: 16px;
  --radius-sm: 12px;
  --shadow: 0 4px 20px rgba(13, 18, 30, 0.1);
  --shadow-lg: 0 12px 40px rgba(13, 18, 30, 0.14);
  --text: #1a2230;
  --text-muted: #5b6675;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  /* Chừa chỗ cho header fixed (12px padding + 60px bar + 12px padding = 84px). */
  padding-top: 84px;
  font-family: 'InterVariable', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: #fff;
  /* Chặn thanh cuộn ngang do khung AR full-bleed (width:100vw). */
  overflow-x: hidden;
}

.page-container {
  max-width: 720px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
}

.product-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.product-list a {
  display: block;
  padding: 0.75rem 1rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  text-decoration: none;
  color: #1a1a1a;
}

/* --- Nút quay lại (trang sản phẩm) --- */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.3rem 0;
  transition: color 0.15s ease;
}

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

.back-link svg {
  width: 18px;
  height: 18px;
}

/* --- Tiêu đề sản phẩm --- */
.product-title {
  font-size: clamp(1.5rem, 4vw, 2rem);
  line-height: 1.2;
  margin: 0.4rem 0 1rem;
}

/* --- Khối CTA đặt hàng --- */
.product-cta {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
}

/* --- Nút chính (CTA / card) — dùng chung --- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  box-shadow: 0 6px 20px rgba(38, 160, 219, 0.35);
  transition: filter 0.15s ease, transform 0.15s ease;
}

.btn-primary:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}
