/* AUTO.MIG24: unified responsive header layout, 2026-10-14 */
html body header,
html body header .container,
html body .mig-header,
html body .mig-header * {
  box-sizing: border-box;
}

html body header .container,
html body .mig-header,
html body .mig-header-search,
html body .mig-header-search #search.input-group {
  min-width: 0;
}

html body .mig-header {
  display: grid !important;
  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr) 84px !important;
  grid-template-areas: "logo search cart";
  align-items: center !important;
  gap: clamp(16px, 2vw, 28px) !important;
  width: 100%;
}

html body .mig-header > #logo {
  grid-area: logo;
  min-width: 0;
}

html body .mig-header > .mig-header-search {
  grid-area: search;
  width: 100%;
  min-width: 0;
}

html body .mig-header > #header-cart {
  grid-area: cart;
  position: relative !important;
  z-index: 4;
  align-self: center !important;
  justify-self: center !important;
  width: 84px;
  min-width: 0;
  margin: 0 !important;
}

html body .mig-header > .mig-header-art {
  display: none !important;
}

html body .mig-header-search #search.input-group {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) clamp(112px, 10vw, 148px) !important;
  align-items: stretch !important;
  gap: clamp(10px, 1.25vw, 18px) !important;
  width: 100% !important;
  min-height: 64px !important;
  margin: 0 !important;
  flex-wrap: nowrap !important;
}

html body .mig-header-search #search.input-group > input.form-control {
  display: block !important;
  flex: 0 1 auto !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  height: 64px !important;
  min-height: 64px !important;
  margin: 0 !important;
  padding: 0 20px !important;
  font-family: Arial, "Helvetica Neue", sans-serif !important;
  font-size: 17px !important;
  line-height: 1.25 !important;
}

html body .mig-header-search #search.input-group > button.btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: none !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  height: 64px !important;
  min-height: 64px !important;
  margin: 0 !important;
  padding: 0 18px !important;
  font-family: Arial, "Helvetica Neue", sans-serif !important;
  font-size: 18px !important;
  line-height: 1 !important;
  white-space: nowrap;
}

html body .mig-header-search #search.input-group > button.btn i {
  flex: 0 0 auto;
  margin-right: 9px !important;
  font-size: 24px !important;
}

html body #header-cart .mig-mini-cart {
  display: flex !important;
  align-items: center;
  justify-content: center !important;
  width: 100%;
  min-width: 0;
}

html body #header-cart .mig-header-cart-button,
html body #header-cart button.mig-header-cart-button {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: none !important;
  width: 76px !important;
  min-width: 76px !important;
  max-width: 76px !important;
  height: 76px !important;
  min-height: 76px !important;
  margin: 0 !important;
  padding: 0 !important;
}

html body #header-cart .mig-header-cart-button i {
  margin: 0 !important;
  font-size: 30px !important;
}

html body #header-cart .mig-cart-count {
  top: -7px !important;
  right: -7px !important;
  min-width: 36px !important;
  height: 36px !important;
  padding: 0 8px !important;
  font-size: 15px !important;
}

html body #top .nav > .list-inline {
  display: flex !important;
  align-items: center !important;
  flex-wrap: nowrap;
  width: 100%;
  min-width: 0;
}

@media (min-width: 1200px) {
  html body #top .nav > .list-inline {
    justify-content: space-between !important;
  }

  html body #top .nav > .list-inline > .list-inline-item + .list-inline-item {
    margin-left: 0;
    padding-left: clamp(12px, 1.25vw, 22px);
  }
}

html body #top .nav > .list-inline > .list-inline-item,
html body #top .nav > .list-inline > .list-inline-item > a,
html body #top .nav > .list-inline > .list-inline-item > .dropdown > a,
html body #top .nav > .list-inline > .list-inline-item > .mig-vin-menu > a {
  color: #111 !important;
  font-family: Arial, "Helvetica Neue", sans-serif !important;
  text-shadow: none !important;
}

html body #top .dropdown-toggle > span,
html body #top .mig-vin-menu > .mig-checkout-link > span:not(.mig-vin-badge) {
  display: inline-block !important;
  color: #111 !important;
  font-size: inherit !important;
  line-height: inherit !important;
  text-indent: 0 !important;
  visibility: visible !important;
  opacity: 1 !important;
}

html body #top .mig-vin-panel,
html body #top .mig-vin-panel * {
  white-space: normal;
}

html body #top .mig-vin-empty {
  overflow-wrap: anywhere;
}

@media (max-width: 1399px) {
  html body .mig-header {
    grid-template-columns: minmax(210px, 290px) minmax(0, 1fr) 76px !important;
    gap: 18px !important;
  }

  html body .mig-header > #header-cart {
    width: 76px;
  }

  html body .mig-header-search #search.input-group {
    grid-template-columns: minmax(0, 1fr) 120px !important;
    gap: 12px !important;
  }

  html body .mig-header-search #search.input-group > button.btn {
    font-size: 17px !important;
  }
}

@media (max-width: 1199px) {
  html body .mig-header {
    grid-template-columns: minmax(190px, 250px) minmax(0, 1fr) 68px !important;
    gap: 14px !important;
  }

  html body .mig-header > #header-cart {
    width: 68px;
  }

  html body .mig-header-search #search.input-group {
    grid-template-columns: minmax(0, 1fr) 104px !important;
    gap: 10px !important;
  }

  html body .mig-header-search #search.input-group > input.form-control,
  html body .mig-header-search #search.input-group > button.btn {
    height: 58px !important;
    min-height: 58px !important;
  }

  html body .mig-header-search #search.input-group > input.form-control {
    padding: 0 16px !important;
    font-size: 15px !important;
  }

  html body .mig-header-search #search.input-group > button.btn {
    padding: 0 12px !important;
    font-size: 15px !important;
  }

  html body #header-cart .mig-header-cart-button,
  html body #header-cart button.mig-header-cart-button {
    width: 64px !important;
    min-width: 64px !important;
    max-width: 64px !important;
    height: 64px !important;
    min-height: 64px !important;
  }

  html body #top .nav > .list-inline {
    flex-wrap: wrap;
    row-gap: 6px;
  }
}

@media (max-width: 991px) {
  html body .mig-mainnav {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  html body .mig-mainnav .container {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-right: 0;
    margin-left: 0;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
  }

  html body .mig-mainnav a {
    flex: 0 0 auto;
  }

  html body #top .mig-vin-panel {
    position: fixed;
    top: 82px;
    right: 16px;
    left: auto;
    width: 420px;
    max-width: calc(100vw - 32px);
    max-height: calc(100vh - 98px);
    overflow-y: auto;
  }

  html body #top .mig-vin-panel::before,
  html body #top .mig-vin-panel::after {
    display: none;
  }

  html body .mig-header {
    grid-template-columns: minmax(0, 1fr) 68px !important;
    grid-template-areas:
      "logo logo"
      "search cart";
    gap: 14px !important;
    min-height: 0;
  }

  html body .mig-header > #header-cart {
    width: 68px;
  }

  html body .mig-header-search #search.input-group {
    grid-template-columns: minmax(0, 1fr) 96px !important;
  }

  html body #top .nav > .list-inline {
    flex-wrap: wrap;
    align-content: center;
    row-gap: 8px;
  }
}

@media (max-width: 575px) {
  html body #top .mig-vin-panel {
    right: 12px;
    left: 12px;
    width: auto;
    max-width: none;
  }

  html body .mig-header {
    grid-template-columns: minmax(0, 1fr) 60px !important;
    gap: 12px !important;
  }

  html body .mig-header > #header-cart {
    width: 60px;
  }

  html body .mig-header-search #search.input-group {
    grid-template-columns: minmax(0, 1fr) 52px !important;
    gap: 8px !important;
  }

  html body .mig-header-search #search.input-group > input.form-control,
  html body .mig-header-search #search.input-group > button.btn {
    height: 52px !important;
    min-height: 52px !important;
  }

  html body .mig-header-search #search.input-group > input.form-control {
    padding: 0 12px !important;
    font-size: 13px !important;
  }

  html body .mig-header-search #search.input-group > button.btn {
    padding: 0 !important;
    font-size: 0 !important;
  }

  html body .mig-header-search #search.input-group > button.btn i {
    margin: 0 !important;
    font-size: 20px !important;
  }

  html body #header-cart .mig-header-cart-button,
  html body #header-cart button.mig-header-cart-button {
    width: 56px !important;
    min-width: 56px !important;
    max-width: 56px !important;
    height: 56px !important;
    min-height: 56px !important;
  }

  html body #header-cart .mig-header-cart-button i {
    font-size: 24px !important;
  }

  html body #header-cart .mig-cart-count {
    top: -5px !important;
    right: -5px !important;
    min-width: 30px !important;
    height: 30px !important;
    font-size: 13px !important;
  }
}
