/* brand.css — giao diện trang từng hãng (lấy từ url.html, thêm breadcrumb và danh sách hãng khác) */
:root {
  --navy: #10293F;
  --steel: #2C5C82;
  --accent: #C8202F;
  --bg: #EEF2F5;
  --card: #FFFFFF;
  --ink: #17242F;
  --muted: #5E7080;
  --line: #DCE4EA;
  --radius: 16px;
}

* { box-sizing: border-box; }

body {
  font-family: 'Roboto', sans-serif;
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(44,92,130,0.12), transparent 60%),
    var(--bg);
  margin: 0;
  padding: 0;
  color: var(--ink);
}

.container { max-width: 860px; margin: auto; padding: 18px 20px 28px; }

/* ===== Header ===== */
header {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  padding: 12px 20px;
  border-bottom: 1px solid var(--line);
  z-index: 999;
  flex-wrap: wrap;
}
header .logo { width: 190px; height: auto; display: block; flex-shrink: 0; }
.header-info { flex: 1 1 260px; min-width: 0; }
.header-info h1 {
  font-family: 'Be Vietnam Pro', sans-serif;
  font-weight: 800;
  font-size: 20px;
  line-height: 1.2;
  margin: 0 0 3px;
  color: var(--navy);
  letter-spacing: -0.2px;
}
.header-info p { font-size: 12.5px; color: var(--muted); margin: 0; line-height: 1.4; max-width: 420px; }
.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

@media (max-width: 760px) {
  header { padding: 12px 16px; }
  header .logo { width: 160px; }
  .header-info { order: 3; flex-basis: 100%; margin-top: 4px; }
  .header-info p { display: none; }
  .header-info h1 { font-size: 17px; }
}

.app-button {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 20px;
  width: 42px;
  height: 42px;
  cursor: pointer;
  color: var(--navy);
  box-shadow: 0 2px 6px rgba(16,41,63,0.08);
  transition: background 0.15s ease, transform 0.15s ease;
}
.app-button:hover { background: #F3F6F8; }
.app-button:active { transform: scale(0.96); }

/* ===== App grid ===== */
.app-grid {
  position: fixed;
  top: 66px;
  right: 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 30px rgba(16,41,63,0.18);
  padding: 18px;
  width: 250px;
  display: none;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  z-index: 1000;
}
.app-grid a { text-align: center; text-decoration: none; color: var(--ink); font-size: 12.5px; font-weight: 500; }
.app-grid img { width: 40px; height: 40px; margin-bottom: 5px; }

@media (max-width: 600px) {
  .app-grid { top: 108px; right: 12px; width: 84%; padding: 16px; gap: 10px; }
}

.btn-download {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 74px;
  padding: 8px 6px 9px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(16,41,63,0.06);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.btn-download .icon-wrap {
  width: 40px; height: 40px; border-radius: 11px; background: #EFE7FC;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  transition: background 0.15s ease;
}
.btn-download svg { width: 20px; height: 20px; flex-shrink: 0; color: #7C3AED; }
.btn-download .btn-label { font-size: 11px; font-weight: 600; color: var(--navy); text-align: center; line-height: 1.25; white-space: nowrap; }
.btn-download:hover { transform: translateY(-2px); border-color: #D8C7F5; box-shadow: 0 8px 18px rgba(124,58,237,0.16); }
.btn-download:hover .icon-wrap { background: #E3D5FA; }
.btn-download:active { transform: translateY(0); }

@media (max-width: 480px) {
  .btn-download { width: 64px; padding: 7px 4px 8px; }
  .btn-download .icon-wrap { width: 36px; height: 36px; }
  .btn-download svg { width: 18px; height: 18px; }
  .btn-download .btn-label { font-size: 10px; }
}

/* ===== Breadcrumb ===== */
.crumbs { font-size: 13px; color: var(--muted); margin: 0 0 12px; }
.crumbs a { color: var(--steel); text-decoration: none; font-weight: 500; }
.crumbs a:hover { text-decoration: underline; }

/* ===== Viewer card ===== */
.viewer-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 14px 34px rgba(16,41,63,0.10);
  overflow: hidden;
}
.viewer-card .viewer-topbar {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 14px; font-weight: 500; color: var(--muted);
}
.viewer-card .viewer-topbar svg { width: 16px; height: 16px; color: var(--steel); flex-shrink: 0; }
.viewer-note { padding: 40px 24px; text-align: center; color: var(--muted); font-size: 14px; }

/* ===== Hãng khác ===== */
.related { margin-top: 22px; }
.related h2 { font-family: 'Be Vietnam Pro', sans-serif; font-size: 15px; font-weight: 700; color: var(--navy); margin: 0 0 10px; }
.rel { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.rel a {
  display: block; padding: 7px 13px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--line);
  color: var(--ink); text-decoration: none; font-size: 13px; font-weight: 500;
}
.rel a:hover { background: #F3F6F8; }

.site-footer { text-align: center; font-size: 12.5px; color: var(--muted); padding: 8px 0 24px; }
.site-footer a { color: var(--steel); text-decoration: none; }

/* ===== Contact button ===== */
.contact-button { position: fixed; bottom: 30px; right: 30px; z-index: 999; }
@media (max-width: 767px) { .contact-button { bottom: 20px; right: 20px; } }
.contact-button .main-btn {
  background-color: var(--navy);
  border: none;
  border-radius: 50%;
  width: 58px; height: 58px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(16,41,63,0.3);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.15s ease;
}
.contact-button .main-btn:hover { transform: scale(1.05); }
.contact-button .main-btn img { width: 28px; height: 28px; filter: brightness(0) invert(1); }
.contact-options {
  display: none;
  position: absolute;
  bottom: 70px; right: 0;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(16,41,63,0.2);
  padding: 8px;
  width: 170px;
}
.contact-options a {
  display: block; padding: 10px 12px;
  text-decoration: none; color: var(--ink);
  border-bottom: 1px solid var(--line);
  font-size: 15px; font-weight: 600; border-radius: 8px;
}
.contact-options a:last-child { border-bottom: none; }
.contact-options a:hover { background-color: #F3F6F8; }
