/* sanpham.vuduykien.com · hệ màu Apple (DESIGN.md): một màu nhấn #0066cc, nền trắng xen #f5f5f7, không bóng, không gradient. */
:root {
  --nen: #ffffff;
  --mat-2: #f5f5f7;
  --chu: #1d1d1f;
  --chu-2: #333333;
  --chu-3: #6a6a6f;
  --nhan: #0066cc;
  --nhan-dam: #0052a3;
  --nhan-nhat: #e8f1fb;
  --focus: #0071e3;
  --vien: #e0e0e0;
  --vien-dam: #86868b;
  --qua-do: #c8372b;
  --r-s: 8px;
  --r-m: 12px;
  --r-l: 16px;
  --le: clamp(16px, 4.5vw, 32px);
  --font: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--nen); color: var(--chu); font: 400 17px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: var(--nhan); text-decoration: none; }
a:hover { color: var(--nhan-dam); text-decoration: underline; text-underline-offset: 3px; }
a:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: var(--r-s); }
.khung { width: 100%; max-width: 1184px; margin: 0 auto; padding: 0 var(--le); }
.bo-qua { position: absolute; left: -9999px; top: 0; background: var(--nhan); color: #fff; padding: 10px 16px; border-radius: var(--r-s); z-index: 10; }
.bo-qua:focus { left: 16px; top: 8px; color: #fff; }

/* đầu trang */
.dau { border-bottom: 1px solid var(--vien); background: var(--nen); }
.dau .khung { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 12px; }
.thuong-hieu { display: inline-flex; align-items: center; gap: 10px; color: var(--chu); font-weight: 600; font-size: 15px; }
.thuong-hieu:hover { color: var(--chu); text-decoration: none; }
.thuong-hieu img { width: 32px; height: 32px; border-radius: 8px; }
.ngon-ngu { display: inline-flex; padding: 3px; background: var(--mat-2); border: 1px solid var(--vien); border-radius: 999px; }
.ngon-ngu a { display: inline-flex; align-items: center; justify-content: center; min-width: 52px; min-height: 40px; padding: 0 14px; border-radius: 999px; color: var(--chu-2); font-size: 14px; font-weight: 600; letter-spacing: 0.04em; }
.ngon-ngu a:hover { color: var(--nhan-dam); text-decoration: none; }
.ngon-ngu a[aria-current="true"] { background: var(--nhan); color: #fff; }

/* giới thiệu */
.gioi-thieu { padding: clamp(32px, 6vw, 72px) 0 clamp(28px, 5vw, 56px); }
.gioi-thieu .khung { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.chan-dung { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; border: 1px solid var(--vien); background: var(--mat-2); flex: none; }
.gioi-thieu h1 { margin: 0 0 6px; font-size: clamp(30px, 1.3rem + 2.4vw, 44px); line-height: 1.22; font-weight: 700; letter-spacing: -0.01em; }
.vai-tro { margin: 0 0 12px; color: var(--nhan-dam); font-size: 15px; font-weight: 600; letter-spacing: 0.02em; }
.bio { margin: 0 0 20px; max-width: 40em; color: var(--chu-2); font-size: 19px; line-height: 1.6; }
.lien-ket { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.lien-ket a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--vien); border-radius: 999px; background: var(--nen); color: var(--chu); font-size: 15px; font-weight: 500; }
.lien-ket a:hover { border-color: var(--nhan); color: var(--nhan-dam); text-decoration: none; }

/* sản phẩm */
.san-pham { background: var(--mat-2); padding: clamp(32px, 5vw, 56px) 0 clamp(40px, 7vw, 80px); }
.nhom { margin: 0 0 clamp(32px, 5vw, 48px); }
.nhom:last-child { margin-bottom: 0; }
.nhom h2 { display: flex; align-items: baseline; gap: 10px; margin: 0 0 16px; font-size: clamp(22px, 1.1rem + 1.1vw, 28px); line-height: 1.22; font-weight: 700; }
.nhom h2 .dem { color: var(--chu-3); font-size: 15px; font-weight: 500; }
.luoi { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.the { display: flex; flex-direction: column; gap: 12px; height: 100%; padding: 20px; background: var(--nen); border: 1px solid var(--vien); border-radius: var(--r-l); }
.the:hover { border-color: var(--nhan); }
.the-dau { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.bieu-tuong { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: var(--r-m); background: var(--nhan-nhat); color: var(--nhan); flex: none; }
.bieu-tuong svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nhan { display: inline-flex; align-items: center; min-height: 26px; padding: 0 10px; border-radius: 999px; background: var(--nhan-nhat); color: var(--nhan-dam); font-size: 13px; font-weight: 600; letter-spacing: 0.04em; white-space: nowrap; }
.nhan.mien-phi { background: var(--nen); color: var(--qua-do); border: 1.5px solid var(--qua-do); }
.the h3 { margin: 0; font-size: 19px; line-height: 1.3; font-weight: 600; }
.mo-ta { margin: 0; color: var(--chu-2); font-size: 16px; line-height: 1.55; flex: 1; }
.ngon { margin: 0; color: var(--chu-3); font-size: 14px; font-weight: 500; }
.nut-hang { display: flex; flex-direction: column; gap: 4px; margin-top: 4px; }
.nut { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border-radius: var(--r-m); background: var(--nhan); color: #fff; font-size: 16px; font-weight: 600; text-align: center; }
.nut:hover { background: var(--nhan-dam); color: #fff; text-decoration: none; }
.nut:active { transform: scale(0.97); }
.them { display: flex; flex-wrap: wrap; gap: 0 16px; margin: 0; padding: 0; list-style: none; }
.them a { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; font-weight: 500; }

/* chân trang */
.chan { padding: 32px 0 48px; border-top: 1px solid var(--vien); color: var(--chu-3); font-size: 14px; line-height: 1.6; }
.chan p { margin: 0 0 8px; }
.chan a { color: var(--chu-2); text-decoration: underline; text-underline-offset: 3px; }
.chan a:hover { color: var(--nhan-dam); }

/* trang 404 */
.loi { padding: clamp(48px, 10vw, 112px) 0; }
.loi h1 { margin: 0 0 12px; font-size: clamp(30px, 1.3rem + 2.4vw, 44px); line-height: 1.22; }
.loi p { margin: 0 0 20px; color: var(--chu-2); font-size: 19px; }
.loi .nut { display: inline-flex; }

@media (min-width: 720px) {
  .gioi-thieu .khung { flex-direction: row; align-items: center; gap: 32px; }
  .chan-dung { width: 144px; height: 144px; }
}
@media (prefers-reduced-motion: reduce) { .nut:active { transform: none; } }
