/* Header + footer v2 cho các trang dùng layouts.app (Tailwind): danh sách sản phẩm, danh mục, tin tức, trang CMS, liên hệ.
   Trang chủ và chi tiết sản phẩm (layouts.v2) lấy các rule này từ landing.css/site.css/v2.css; file này chép lại giá trị cuối cùng
   ở đó nhưng giới hạn trong .header và .site-footer để không đụng reset toàn cục (h2, p…) của nội dung Tailwind.
   Sửa giao diện header/footer thì sửa cả hai nơi. */
.header, .site-footer {
  --ink: #1a2129; --muted: #53606c; --paper: #f5f7f9; --line: #dce2e7; --blue: #1c69d4; --blue-light: #8fbcff;
  font-family: "Times New Roman", Times, "Liberation Serif", "Noto Serif", serif; font-size: 16px; font-weight: 400; line-height: 1.65; -webkit-font-smoothing: antialiased;
}
.header *, .site-footer * { box-sizing: border-box; }
.header a, .site-footer a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
.header :is(a, button, summary):focus-visible, .site-footer a:focus-visible { outline: 3px solid var(--blue); outline-offset: 5px; }
.header img, .site-footer img { display: block; max-width: 100%; height: auto; }
.header p, .site-footer p, .site-footer h3 { margin: 0; }
.header .wrap, .site-footer .wrap { width: min(1248px, calc(100% - 80px)); margin-inline: auto; }

/* Header */
.header { position: sticky; top: 0; z-index: 40; color: var(--ink); background: #fffffffa; border-bottom: 1px solid var(--line); }
.header .header-inner { height: 78px; display: flex; align-items: center; gap: 20px; }
.header .logo { display: inline-flex; position: relative; align-items: center; gap: 10px; font-size: 24px; letter-spacing: -.04em; font-weight: 750; flex-shrink: 0; }
.header .logo-mark { display: block; width: auto; height: 36px; }
.header .logo-caption { position: absolute; top: 35px; left: 51px; font-size: 6px; font-weight: 600; letter-spacing: .13em; white-space: nowrap; }
.header .desktop-nav { display: flex; gap: 20px; margin: auto; font-size: 1rem; line-height: 1.4; font-weight: 500; }
.header .desktop-nav a { min-height: 44px; display: inline-flex; align-items: center; }
.header .desktop-nav a:hover, .header .desktop-nav a[aria-current] { color: var(--blue); }
.header .header-phone { font-size: .875rem; font-weight: 600; line-height: 1.6; white-space: nowrap; }
.header .header-phone span { display: block; color: var(--muted); font-size: .75rem; font-weight: 400; }
.header .language-menu { position: relative; flex-shrink: 0; font-size: .9375rem; }
.header .language-menu summary { cursor: pointer; list-style: none; min-height: 44px; display: flex; align-items: center; gap: 8px; padding: 0 10px; border: 1px solid var(--line); font-weight: 500; }
.header .language-menu summary::-webkit-details-marker { display: none; }
.header .language-menu nav { position: absolute; z-index: 30; right: 0; top: calc(100% + 8px); width: 250px; max-width: calc(100vw - 32px); border: 1px solid var(--line); background: #fff; padding: 6px; }
.header .language-menu nav > * { display: flex; align-items: center; min-height: 44px; padding: 8px 12px; }
.header .language-menu .language-unavailable { align-items: flex-start; flex-direction: column; gap: 2px; color: var(--muted); cursor: not-allowed; }
.header .language-unavailable small { font-size: .8125rem; line-height: 1.4; }
.header .language-menu a:hover, .header .language-menu [aria-current] { color: var(--blue); background: var(--paper); }
.header .menu-toggle { display: none; place-items: center; min-width: 44px; min-height: 44px; padding: 10px; margin-right: -10px; border: 0; border-radius: 0; background: transparent; color: var(--ink); cursor: pointer; }

/* Footer */
















@media (max-width: 1150px) {
  .header .wrap, .site-footer .wrap { width: calc(100% - 56px); }
  .header .header-inner, .header .desktop-nav { gap: 14px; }
  .header .header-phone { display: none; }
  .header .logo { font-size: 22px; }
}
@media (max-width: 900px) {
  .header .desktop-nav { display: none; }
  .header .header-phone { display: block; margin-left: auto; }
  .header .menu-toggle { display: grid; }
  .header .header-inner { height: 68px; }
  
}
@media (max-width: 600px) {
  .header .wrap, .site-footer .wrap { width: calc(100% - 40px); }
  .header .header-inner { height: 64px; }
  .header .logo { font-size: 21px; gap: 8px; }
  .header .logo-mark { height: 31px; }
  .header .logo-caption { top: 31px; left: 43px; font-size: 5px; }
  .header .header-phone { display: none; }
  .header .language-menu { margin-left: auto; }
  
  
  
  
  
  
  
  
}
@media (max-width: 360px) {
  .header .wrap, .site-footer .wrap { width: calc(100% - 32px); }
}
