/* MHV V6 — canonical SVG, storefront header and footer responsive layout.
   Loaded last on storefront HTML. No commerce or category selectors removed. */
:root {
  --mhv-logo-ratio: 491.38 / 104;
  --mhv-logo-desktop: 274px;
  --mhv-logo-mobile: 210px;
  --mhv-logo-footer: 224px;
}
/* Desktop old background logo / reflection is replaced by an actual image. */
body .header .top_header { background: var(--mhv-petrol, #102c38) !important; }
body .header .top_header .logo,
body .header .top_header .logo a {
  box-sizing: border-box;
  float: none;
  padding: 0;
  margin: 0;
  background: none !important;
  border: 0;
  box-shadow: none;
  text-indent: 0;
  filter: none;
}
body .header .top_header .logo a {
  display: block;
  width: min(100%, var(--mhv-logo-desktop));
  height: auto;
  max-width: 100%;
}
body .header .top_header .logo a img,
.mhv-logo-svg img,
.mhv-contact-logo img,
.mhv-site-footer__logo img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto !important;
  aspect-ratio: var(--mhv-logo-ratio);
  object-fit: contain;
  background: transparent;
  border: 0;
  box-shadow: none;
  filter: none;
  transform: none;
}
@media (min-width: 991px) {
  body .header .top_header .topmenumb { flex: 0 1 var(--mhv-logo-desktop); min-width: 0; }
  body .header .top_header { min-height: 84px; }
  body .header .top_header .search { flex: 0 1 490px; }
  body .header .top_menu > .menu { height: auto; min-height: 33px; }
  body .header .top_menu > .menu > .menutop {
    display: flex; flex-wrap: wrap; align-items: center; float: none;
    width: 100%; margin: 0; padding: 0;
  }
  body .header .top_menu > .menu > .menutop > li { float: none; flex-shrink: 0; }
}
/* Mobile header uses a flexible middle track: even 320px retains all controls. */
.mhv-app .mhv-header {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 38px minmax(0,1fr) auto;
  align-items: center;
  gap: 8px;
  height: auto;
  min-height: 64px;
  padding: 8px 12px;
  background: var(--mhv-petrol, #102c38);
  border-bottom: 1px solid var(--mhv-petrol, #102c38);
}
.mhv-app .mhv-header .mhv-logo-svg {
  display: block;
  margin: 0 auto;
  padding: 0;
  width: min(100%, var(--mhv-logo-mobile));
  min-width: 0;
  height: auto;
  background: transparent;
  box-shadow: none;
}
.mhv-app .mhv-header .mhv-header-icons { display: flex; gap: 4px; min-width: 0; }
.mhv-app .mhv-header :is(.mhv-menu-btn,.mhv-icon-btn) {
  box-sizing: border-box;
  width: 38px; height: 38px;
  flex: 0 0 38px;
  background: transparent;
  color: #fff;
}
.mhv-app .mhv-search input { min-width: 0; }
.mhv-app .mhv-topbar { gap: 6px; height: auto; min-height: 36px; flex-wrap: wrap; padding: 8px 12px; }
.mhv-contact-app .mhv-contact-header {
  box-sizing: border-box;
  grid-template-columns: 38px minmax(0,1fr) auto;
  gap: 6px;
  height: auto;
  min-height: 64px;
  padding: 8px 12px;
  background: var(--mhv-petrol, #102c38);
  border-color: var(--mhv-petrol, #102c38);
}
.mhv-contact-app .mhv-contact-header button,
.mhv-contact-app .mhv-contact-header div a { background: transparent; color: #fff; }
.mhv-contact-app .mhv-contact-header div { gap: 4px; }
.mhv-contact-app .mhv-contact-logo { width: min(100%, var(--mhv-logo-mobile)); min-width: 0; margin-inline: auto; }
.mhv-contact-app .mhv-branch-photo { display: grid; place-items: center; background: var(--mhv-petrol, #102c38); }
.mhv-contact-app .mhv-branch-photo img { width: min(80%, 274px); height: auto; object-fit: contain; transform: none; }
.mhv-contact-app .mhv-branch-photo::after { content: none; }
/* Keep logo on the dark footer without a white badge. */
.mhv-site-footer .mhv-site-footer__logo {
  display: block; width: min(100%, var(--mhv-logo-footer)); padding: 0;
  margin: 0 0 14px; border: 0; border-radius: 0;
  background: transparent !important; box-shadow: none;
}
@media (max-width: 360px) {
  .mhv-app .mhv-header, .mhv-contact-app .mhv-contact-header { padding-inline: 8px; gap: 4px; }
  .mhv-app .mhv-header .mhv-header-icons { gap: 2px; }
}
/* Legacy PC renderer at tablet widths still receives the SVG, not the PNG. */
@media (max-width: 990px) {
  body .header .top_header { box-sizing: border-box; width: 100%; margin: 0; padding: 4px 12px 10px; height: auto; }
  body .header .top_header .topmenumb {
    display: grid; grid-template-columns: 47px minmax(0,1fr) 47px;
    align-items: center; min-width: 0; width: 100%; height: auto; padding: 0;
  }
  body .header .top_header .topmenumb > .clr { display: none; }
  body .header .top_header .topmenumb > .logo { grid-column: 2; min-width: 0; float: none; }
  body .header .top_header .logo a { width: min(100%, 210px); margin-inline: auto; }
  body .header .top_header .search { box-sizing: border-box; width: 100%; padding: 0; margin: 0; }
  body .header .search .fr_search {
    box-sizing: border-box; width: 100%; height: 44px; margin: 0; padding: 3px;
    border: 1px solid #c3ddd3; border-radius: 8px; background: #fff !important;
  }
  .header #mvpHeaderSearchForm { position: relative; display: flex; align-items: center; height: 100%; }
  .header #mvpHeaderSearchInput { box-sizing: border-box; flex: 1 1 auto; width: auto; min-width: 0; height: 100%; padding: 0 8px; }
  .header #mvpHeaderSearchForm .btn {
    position: static; flex: 0 0 76px; width: 76px; height: 36px; background: #186255;
    border: 0; border-radius: 6px; color: #fff; margin: 0; font-weight: 600;
  }
  .header #mvpHeaderSearchForm .btn span { display: inline; }
}
