/* Blue Ox header and footer (bos-chrome.php). Mockup: "Blue Ox Header, Footer & My Account". */
.bos-hd, .bos-ft { --ink: #0b0f11; --panel: #131a1e; --line: #1c262b; --text: #f5f5f5; --soft: #c9d6da; --muted: #8fa3aa; --cyan: #1db9dc; --yellow: #f2c200; font-family: inherit; }
.bos-hd *, .bos-ft * { box-sizing: border-box; }
.bos-hd a, .bos-ft a { text-decoration: none; }
.bos-hd svg, .bos-ft svg { flex-shrink: 0; }

/* Header */
.bos-hd { position: sticky; top: 0; z-index: 999; background: var(--ink); color: var(--text); border-bottom: 1px solid var(--line); }
.admin-bar .bos-hd { top: 32px; }
.bos-hd-bar { max-width: 1360px; margin: 0 auto; padding: 0 24px; height: 72px; display: flex; align-items: center; gap: 28px; }
.bos-hd-logo { flex-shrink: 0; display: flex; align-items: center; color: var(--text); font-weight: 900; }
.bos-hd-logo img { height: 32px; width: auto; display: block; }
.bos-hd-nav { display: flex; align-items: center; gap: 4px; }
.bos-hd-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; background: none; border: 0; color: var(--soft); font: inherit; font-size: 14px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; cursor: pointer; }
.bos-hd-link:hover, .bos-hd-link[aria-expanded="true"] { color: var(--cyan); }
.bos-hd-link svg { width: 12px; height: 12px; }
.bos-hd-drop { position: relative; }
.bos-hd-panel { position: absolute; top: calc(100% + 14px); background: #fff; color: var(--ink); box-shadow: 0 18px 40px rgba(11, 15, 17, .28); border: 1px solid #e3e9ea; z-index: 10; }
.bos-hd-panel[hidden] { display: none; }
.bos-hd-shop { left: 0; width: 260px; padding: 8px 0; display: flex; flex-direction: column; }
.bos-hd-shop a, .bos-hd-acct-panel a { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; padding: 0 20px; color: var(--ink); font-size: 15px; }
.bos-hd-shop a:hover, .bos-hd-acct-panel a:hover { background: #f2f7f8; color: #0d7f97; }
.bos-hd-shop .bos-hd-panel-all { font-weight: 700; border-bottom: 1px solid #eef2f3; margin-bottom: 4px; }
.bos-hd-actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.bos-hd-lang { display: flex; align-items: center; min-height: 44px; padding: 0 12px; color: var(--muted); font-size: 13px; font-weight: 600; letter-spacing: 0.1em; }
.bos-hd-lang:hover { color: var(--cyan); }
.bos-hd-dealer { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink); background: var(--yellow); padding: 5px 9px; white-space: nowrap; }
.bos-hd-acct { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1px solid #33434a; background: none; color: var(--text); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.bos-hd-acct.is-in { background: var(--line); border-color: var(--line); }
.bos-hd-acct:hover { border-color: var(--cyan); }
.bos-hd-acct svg:last-child:not(:first-child) { width: 12px; height: 12px; }
.bos-hd-acct-name { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bos-hd-acct-panel { right: 0; width: 320px; }
.bos-hd-acct-who { padding: 18px 20px; border-bottom: 1px solid #eef2f3; display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: #4a5a60; }
.bos-hd-acct-who strong { font-size: 16px; color: var(--ink); }
.bos-hd-acct-panel .bos-hd-logout { border-top: 1px solid #eef2f3; color: #4a5a60; font-size: 14px; min-height: 48px; }
.bos-hd-badge { font-size: 12px; font-weight: 700; color: #8a4b00; background: #fce4c4; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.bos-hd-cart { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px; background: var(--cyan); color: var(--ink) !important; font-weight: 700; font-size: 14px; }
.bos-hd-cart:hover { background: #5fd3ec; }
.bos-hd-cart-count { min-width: 22px; height: 22px; border-radius: 11px; background: var(--ink); color: var(--text); font-size: 12px; display: inline-flex; align-items: center; justify-content: center; padding: 0 6px; }
.bos-hd-burger { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; background: none; border: 0; color: var(--text); cursor: pointer; padding: 0; }
.bos-hd-mobile { display: none; }

@media (max-width: 1240px) and (min-width: 961px) {
  .bos-hd-bar { gap: 16px; }
  .bos-hd-link { padding: 0 8px; letter-spacing: 0.04em; }
  .bos-hd-acct-name { max-width: 90px; }
}
@media (max-width: 960px) {
  .bos-hd-bar { height: 64px; gap: 8px; padding: 0 8px 0 16px; }
  .bos-hd-logo img { height: 24px; }
  .bos-hd-nav, .bos-hd-lang, .bos-hd-actions > .bos-hd-dealer, .bos-hd-acct-name, .bos-hd-cart-total, .bos-hd-acct svg:last-child:not(:first-child) { display: none; }
  .bos-hd-acct { width: 44px; padding: 0; justify-content: center; border: 0; background: none; }
  .bos-hd-acct.is-in { background: none; }
  .bos-hd-account .bos-hd-acct-panel { display: none !important; }
  .bos-hd-cart { position: relative; width: 44px; padding: 0; justify-content: center; }
  .bos-hd-cart-count { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; border: 2px solid var(--cyan); font-size: 11px; }
  .bos-hd-burger { display: inline-flex; }
  .bos-hd-mobile:not([hidden]) { display: flex; flex-direction: column; gap: 22px; padding: 20px 16px 28px; max-height: calc(100vh - 64px); overflow-y: auto; border-top: 1px solid var(--line); }
  .bos-menu-open body { overflow: hidden; }
  .bos-hd-mobile-acct { background: var(--panel); border: 1px solid #1f2a30; padding: 16px; display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); }
  .bos-hd-mobile-acct .bos-hd-dealer { align-self: flex-start; margin-bottom: 6px; }
  .bos-hd-mobile-acct strong { font-size: 17px; color: var(--text); }
  .bos-hd-mobile-acct-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
  .bos-hd-mobile-acct-links a { min-height: 44px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 6px; line-height: 1.25; padding-top: 8px !important; padding-bottom: 8px !important; border: 1px solid #33434a; color: var(--text); font-size: 14px; font-weight: 600; text-align: center; padding: 0 8px; }
  .bos-hd-mobile-signin { min-height: 48px; display: flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid #33434a; color: var(--text); font-weight: 600; }
  .bos-hd-mobile-acct-links .bos-hd-badge { font-size: 11px; padding: 1px 7px; }
  .bos-hd-mobile-shop p { margin: 0 0 6px; font-family: ui-monospace, monospace; font-size: 11px; letter-spacing: 0.16em; color: var(--cyan); text-transform: uppercase; }
  .bos-hd-mobile-shop a { min-height: 48px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); color: var(--text); font-weight: 900; font-size: 19px; text-transform: uppercase; }
  .bos-hd-mobile-shop svg { color: var(--cyan); width: 16px; height: 16px; }
  .bos-hd-mobile-more { display: flex; flex-direction: column; }
  .bos-hd-mobile-more a { min-height: 44px; display: flex; align-items: center; color: var(--soft); font-size: 16px; }
  .bos-hd-langs { display: flex; gap: 8px; }
  .bos-hd-langs a { flex: 1; min-height: 44px; display: flex; align-items: center; justify-content: center; border: 1px solid #33434a; color: var(--soft); }
  .bos-hd-langs a[aria-current] { border-color: var(--cyan); color: var(--text); font-weight: 600; }
}
@media (max-width: 782px) { .admin-bar .bos-hd { top: 0; } }

/* Footer */
.bos-ft { background: var(--ink); color: var(--text); }
.bos-ft-wrap { max-width: 1360px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.bos-ft-trust { border-bottom: 1px solid var(--line); border-top: 1px solid var(--line); }
.bos-ft-trust .bos-ft-wrap { padding-top: 28px; padding-bottom: 28px; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.bos-ft-trust .bos-ft-wrap > div { display: flex; gap: 14px; align-items: center; }
.bos-ft-trust svg { color: var(--cyan); width: 26px; height: 26px; }
.bos-ft-trust p { margin: 0; font-size: 14px; display: flex; flex-direction: column; }
.bos-ft-trust span { color: var(--muted); }
.bos-ft-cols { padding-top: 48px; padding-bottom: 36px; display: grid; grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr)); gap: 40px; }
.bos-ft-brand img { width: 200px; height: auto; margin-bottom: 16px; }
.bos-ft-brand p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--muted); max-width: 280px; }
.bos-ft-cols nav { display: flex; flex-direction: column; }
.bos-ft-title { margin: 0 0 10px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; letter-spacing: 0.16em; color: var(--cyan); text-transform: uppercase; }
.bos-ft-cols nav a { padding: 6px 0; font-size: 15px; color: var(--soft); }
.bos-ft-cols nav a:hover, .bos-ft-bottom a:hover { color: var(--cyan); }
.bos-ft-bottom { border-top: 1px solid var(--line); }
.bos-ft-bottom .bos-ft-wrap { padding-top: 18px; padding-bottom: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; font-size: 13px; color: var(--muted); }
.bos-ft-bottom a { color: var(--muted); }
.bos-ft-langs { margin-left: auto; display: flex; gap: 4px; }
.bos-ft-langs a { min-height: 36px; padding: 0 12px; display: flex; align-items: center; border: 1px solid #33434a; color: var(--soft); }
.bos-ft-langs a[aria-current] { border-color: var(--cyan); color: var(--text); font-weight: 600; }
@media (max-width: 960px) {
  .bos-ft-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; }
  .bos-ft-brand { grid-column: 1 / -1; }
  .bos-ft-wrap { padding-left: 16px; padding-right: 16px; }
  .bos-ft-langs { margin-left: 0; }
}
