/* HAVAL importer-inspired buyer menu. Scoped to the existing header only. */
.header .nav .menu .buyer-menu { position: static; }
.header .nav .menu .buyer-menu .buyer-menu__trigger {
  border: 0;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
  transform: none;
}
.header .nav .menu .buyer-menu.show .buyer-menu__trigger,
.header .nav .menu .buyer-menu .buyer-menu__trigger:hover,
.header .nav .menu .buyer-menu .buyer-menu__trigger:focus-visible { background: #f0f0f0; }
.header .nav .menu .buyer-menu .buyer-menu__trigger:focus-visible,
.buyer-menu__panel a:focus-visible { outline: 2px solid #1c1b1f; outline-offset: -3px; }
.header .nav .menu .buyer-menu .buyer-menu__panel {
  position: fixed;
  top: var(--buyer-menu-top, 115px) !important;
  right: 0;
  left: 0 !important;
  width: 100vw;
  max-height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border-top: 1px solid #dedede;
  background: #fff;
  box-shadow: 0 18px 28px rgba(0,0,0,.1);
  box-sizing: border-box;
}
.header .nav .menu .buyer-menu.show > .buyer-menu__panel {
  max-height: min(620px, calc(100vh - var(--buyer-menu-top, 115px)));
  overflow-y: auto;
}
.buyer-menu__grid { display: grid; grid-template-columns: minmax(280px, 26%) minmax(0, 1fr); min-height: 360px; }
.buyer-menu__actions { padding: 30px clamp(28px, 4vw, 74px); background: #f3f4f4; box-sizing: border-box; }
.buyer-menu__action {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 58px;
  border-bottom: 1px solid #d2d3d3;
  color: #1c1b1f;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.3;
  text-decoration: none;
}
.buyer-menu__action:last-child { border-bottom: 0; }
.buyer-menu__icon { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 20px; font-size: 20px; line-height: 1; }
.buyer-menu__sections { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 76px); padding: 42px clamp(32px, 4vw, 78px) 48px; box-sizing: border-box; }
.buyer-menu__section { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; min-width: 0; }
.buyer-menu__section h3 { margin: 0 0 12px; color: #777; font-size: 17px; font-weight: 700; line-height: 1.25; text-transform: uppercase; }
.buyer-menu__section a { color: #1c1b1f; font-size: 17px; font-weight: 400; line-height: 1.35; text-decoration: none; }
.buyer-menu__section a:hover { color: #555; text-decoration: underline; text-underline-offset: 4px; }
.header .nav .menu .buyer-menu .buyer-menu__action:hover { color: #555; text-decoration: none !important; }
.buyer-menu__action:hover .buyer-menu__label, .buyer-menu__action:focus-visible .buyer-menu__label { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 1100px) and (min-width: 992px) {
  .buyer-menu__grid { grid-template-columns: 28% minmax(0, 1fr); }
  .buyer-menu__actions { padding-inline: 28px; }
  .buyer-menu__sections { gap: 20px; padding-inline: 28px; }
  .buyer-menu__section a, .buyer-menu__action { font-size: 15px; }
}
@media (max-width: 991px) {
  .header .nav .menu .buyer-menu { position: relative; }
  .header .nav .menu .buyer-menu .buyer-menu__trigger { width: 100%; color: #1c1b1f; text-align: left; }
  .header .nav .menu .buyer-menu .buyer-menu__trigger .nav-link-main { color: #1c1b1f; }
  .header .nav .menu .buyer-menu .buyer-menu__trigger:hover,
  .header .nav .menu .buyer-menu .buyer-menu__trigger:focus-visible,
  .header .nav .menu .buyer-menu.show .buyer-menu__trigger { background: #ececec; }
  .header .nav .menu .buyer-menu .buyer-menu__panel {
    position: static;
    width: 100%;
    top: auto !important;
    max-height: 0;
    border: 0;
    box-shadow: none;
  }
  .header .nav .menu .buyer-menu.show > .buyer-menu__panel { max-height: 1200px; overflow: visible; }
  .buyer-menu__grid { display: block; min-height: 0; }
  .buyer-menu__actions { padding: 10px 24px; }
  .buyer-menu__action { min-height: 48px; font-size: 15px; }
  .buyer-menu__sections { display: block; padding: 22px 24px 28px; }
  .buyer-menu__section { gap: 0; padding-bottom: 20px; }
  .buyer-menu__section:last-child { padding-bottom: 0; }
  .buyer-menu__section h3 { margin: 0 0 6px; font-size: 13px; }
  .buyer-menu__section a { display: block; width: 100%; min-height: 44px; padding: 11px 0; font-size: 15px; box-sizing: border-box; }
}
@media (prefers-reduced-motion: reduce) {
  .header .nav .menu .buyer-menu .buyer-menu__panel { transition: none; }
}
