/* Keep horizontal clipping without creating a scroll container for the logo bar. */
body.output-mode--iframe:is([data-output-mode="store"], [data-output-mode="configurator"]) {
  overflow-x: clip;
}

.store-header {
  position: sticky;
  top: 0;
  z-index: 601;
  border-bottom: var(--theme-store-header-border, 1px solid #eee);
  background: var(--theme-store-header-background, #fff);
}

.store-header__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  max-width: 1920px;
  margin-inline: auto;
  padding: var(--theme-store-header-block-padding, 13px) var(--theme-stock-gutter, 40px);
}

.store-header__logo {
  grid-column: 2;
  font-family: var(--heading-font);
  font-weight: 700;
}

.store-header__logo img {
  display: block;
  width: auto;
  height: var(--theme-store-logo-height, 40px);
  max-width: min(180px, 42vw);
  object-fit: contain;
}

.store-header__inner > .language-switcher {
  grid-column: 3;
  justify-self: end;
}

.store-header .language-switcher a {
  color: var(--theme-store-language-copy, var(--primary, #002c5f));
}

.store-heading {
  color: var(--theme-store-heading-copy, var(--theme-stock-title-copy, var(--heading-ink, #000)));
  background: var(--theme-store-heading-background, var(--tableHighlight, #f9f9f9));
}

.store-heading__inner {
  max-width: 1920px;
  margin-inline: auto;
  padding: var(--theme-store-heading-padding, 12px 20px);
  padding-inline: var(--theme-stock-gutter, 40px);
  font-family: var(--theme-stock-title-family, var(--heading-font));
}

.store-heading__title,
.store-heading__subtitle {
  margin: 0;
  font: inherit;
  font-size: 16px;
  line-height: 20px;
}

.store-heading__title {
  color: inherit;
  font-size: var(--theme-store-title-size, 16px);
  line-height: var(--theme-store-title-line, 20px);
  font-weight: 700;
}

.store-heading__subtitle {
  margin-top: var(--theme-store-subtitle-gap, 0px);
  font-size: var(--theme-store-subtitle-size, 16px);
  line-height: var(--theme-store-subtitle-line, 20px);
  font-weight: var(--theme-store-subtitle-weight, inherit);
  text-transform: var(--theme-store-subtitle-transform, none);
}

.store-heading__brand {
  text-transform: uppercase;
}

.store-heading__online {
  color: #ad9d91;
}

@media (max-width: 680px) {
  .store-header__inner,
  .store-heading__inner {
    padding-inline: 20px;
  }
}

body:is([data-output-mode="store"], [data-output-mode="store-iframe"])
  .inventory-page--listing .inventory-page__navigation a[aria-current="page"] {
  border-bottom: var(--theme-store-nav-border, var(--theme-stock-navlink-border, 3px solid #002c5f));
}

body[data-design-system="maxus"] {
  --theme-store-heading-background: #021d47;
  --theme-store-heading-copy: #fff;
  --theme-store-language-copy: #00275e;
  --theme-store-title-size: 18px;
}

@media (min-width: 1021px) {
  body[data-design-system="maxus"] {
    --theme-store-logo-height: 64px;
    --theme-store-heading-padding: 15px 0 24px;
    --theme-store-subtitle-gap: 6px;
    --theme-store-subtitle-size: 20px;
    --theme-store-subtitle-line: 25px;
  }
}

body:is([data-design-system="fiat"], [data-design-system="honda"], [data-design-system="opel"]) {
  --theme-store-heading-background: #f9f9f9;
}

body:is([data-design-system="alfa"], [data-design-system="fiat-prof"], [data-design-system="jeep"]) {
  --theme-store-heading-background: #f3f2f3;
}

body[data-design-system="alfa"]:is([data-output-mode="store"], [data-output-mode="configurator"]) {
  --theme-store-header-background: #1c1f2a;
  --theme-store-header-border: 0;
  --theme-store-language-copy: #fff;
}

body[data-design-system="alfa"][data-output-mode="store"] {
  --theme-store-heading-copy: #000;
  --theme-store-heading-padding: 12px 0 20px;
  --theme-store-title-size: 18px;
  --theme-store-subtitle-transform: uppercase;
}

body[data-design-system="jeep"]:is([data-output-mode="store"], [data-output-mode="store-iframe"]) {
  --theme-store-header-background: #000;
  --theme-store-header-border: 0;
  --theme-store-language-copy: #fff;
  --theme-store-logo-height: 32px;
  --theme-store-title-size: 18px;
  --theme-store-heading-padding: 12px 0 20px;
  --theme-store-subtitle-weight: 700;
  --theme-store-nav-border: 2px solid #0e6dee;
  --theme-stock-title-transform: uppercase;
}

.store-header__logo {
  color: var(--theme-store-language-copy, inherit);
}

body[data-design-system="citroen"] {
  --theme-store-heading-background: #57718a;
  --theme-store-heading-copy: #fff;
}

body[data-design-system="citroen"][data-output-mode="store"] {
  --theme-store-subtitle-weight: 700;
  --theme-store-subtitle-transform: uppercase;
}

@media (min-width: 1021px) {
  body[data-design-system="citroen"][data-output-mode="store"] {
    --theme-store-logo-height: 68px;
    --theme-store-heading-padding: 14px 0 20px;
    --theme-store-title-size: 24px;
    --theme-store-title-line: 26px;
  }
}

body[data-design-system="nissan"] {
  --theme-store-heading-background: #4c4c4c;
  --theme-store-heading-copy: #fff;
}

body[data-design-system="hyundai"][data-output-mode="store"] {
  --theme-store-logo-height: 18px;
  --theme-store-header-block-padding: 21px;
}

body[data-design-system="ds"][data-output-mode="store"] {
  --theme-store-header-background: #000;
  --theme-store-header-border: 0;
  --theme-store-language-copy: #fff;
  --theme-store-heading-background: #e9e7e2;
  --theme-store-heading-copy: #1a1b1b;
  --theme-store-subtitle-gap: 2px;
  --theme-store-subtitle-transform: uppercase;
}

@media (min-width: 1021px) {
  body[data-design-system="ds"][data-output-mode="store"] {
    --theme-store-logo-height: 61px;
    --theme-store-header-block-padding: 17px;
    --theme-store-heading-padding: 16px 0 22px;
  }
}

body[data-design-system="peugeot"] {
  --theme-store-heading-background: #ececee;
  --theme-store-nav-border: 3px solid #0074e8;
}

body[data-design-system="ford"] {
  --theme-store-heading-background: #f0f0f0;
}

body[data-design-system="volvo"] {
  --theme-store-heading-background: #fff;
}

.store-navigation {
  max-width: var(--site-width,1200px);
  margin: 1rem auto;
  padding: 0 1rem;
}

.store-navigation ul {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  list-style: none;
  padding: 0;
}

.store-navigation a[aria-current=page] {
  font-weight: 700;
}

.output-mode--iframe .site-footer {
  margin-top: 2rem;
}
