/* NAM SUNG DIGITAL CATALOGUE — design tokens
   graphite · navy trầm · silver · trắng. Một họ chữ: Archivo (trục độ rộng wdth 62–125) */
@import url('/vendor/fonts/archivo.css');

:root {
  --graphite: #23272b;
  --graphite-2: #3a4046;
  --ink-soft: #5d646b;
  --navy: #162333;
  --navy-2: #22344a;
  --silver: #a9afb6;
  --silver-2: #cdd1d5;
  --mist: #e8eaec;
  --paper: #f4f5f6;
  --white: #ffffff;
  --alert: #a3362f;
  --ok: #2f6b4f;

  --bg: var(--paper);
  --surface: var(--white);
  --text: var(--graphite);
  --text-2: var(--ink-soft);
  --line: #d9dde1;
  --focus: #3d6a9e;

  --font: 'Archivo', 'Helvetica Neue', 'Segoe UI', Roboto, Arial, sans-serif;
  --r-s: 3px;
  --r-m: 6px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #15181b; --surface: #1d2125; --text: #e6e8ea; --text-2: #9aa2aa; --line: #30363c; --focus: #8fb4de;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] { --bg: #15181b; --surface: #1d2125; --text: #e6e8ea; --text-2: #9aa2aa; --line: #30363c; --focus: #8fb4de; color-scheme: dark; }

*, *::before, *::after { box-sizing: border-box; }
:root { padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
html { scroll-padding-top: env(safe-area-inset-top, 0px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
img, svg, canvas { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 40px; padding: 0 16px; border-radius: var(--r-s);
  border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer; text-decoration: none; font-weight: 500; font-size: 14px; white-space: nowrap;
  transition: background .15s, border-color .15s; }
.btn:hover { border-color: var(--text-2); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-solid { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn-solid:hover { background: var(--navy-2); border-color: var(--navy-2); }
.btn-danger { color: var(--alert); }
.btn-sm { min-height: 32px; padding: 0 10px; font-size: 13px; }

.notfound { min-height: 100vh; display: grid; place-content: center; text-align: left; padding: 24px; max-width: 520px; margin: 0 auto; }
.nf-code { font-size: 96px; font-weight: 800; font-stretch: 125%; letter-spacing: -.02em; margin: 0; color: var(--silver); line-height: 1; }
.notfound h1 { font-size: 28px; margin: 12px 0 8px; font-weight: 600; }
.notfound p { color: var(--text-2); margin: 0 0 24px; }

.toast-wrap { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 200; display: grid; gap: 8px; pointer-events: none; width: min(calc(100vw - 32px), 420px); }
.toast { background: var(--graphite); color: #fff; padding: 12px 16px; border-radius: var(--r-m); font-size: 14px; box-shadow: 0 8px 30px rgba(0,0,0,.25); pointer-events: auto; display: flex; gap: 12px; align-items: center; justify-content: space-between; }
.toast button { background: none; border: 0; color: var(--silver-2); text-decoration: underline; cursor: pointer; padding: 0; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
