/* ==========================================================================
   Header (sticky, transparent over hero) + Footer
   ========================================================================== */

/* ------------------------------------------------------------------ header */
.header-wrapper {
  display: block;
  position: sticky;
  top: 0;
  z-index: 20;
  background: #fff;
  transition: all 0.3s;
}
.header-wrapper.is-transparent {
  background: transparent !important;
  -webkit-backdrop-filter: unset !important;
  backdrop-filter: unset !important;
}
.header-wrapper.is-solid {
  background: linear-gradient(135deg, rgba(231, 255, 253, 0.4), rgba(231, 255, 253, 0.4)) !important;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.header {
  display: grid;
  grid-template-areas: "heading navigation separator icons";
  grid-template-columns: auto auto 1fr;
  column-gap: 20px;
  align-items: center;
  max-width: var(--header-width);
  margin: 0 auto;
  padding: 25px 50px;
}

.header__heading { grid-area: heading; margin: 0; line-height: 0; justify-self: start; }
.header__heading-link { display: inline-block; text-decoration: none; line-height: 0; }
.header__heading-logo { display: block; width: 160px; height: auto; }
.header__heading-logo-wrapper { line-height: 0; }
.header__heading-logo-wrapper[data="white"] { display: none; }
.is-transparent .header__heading-logo-wrapper[data="white"] { display: block; }
.is-transparent .header__heading-logo-wrapper[data="org"] { display: none; }

.header__inline-menu { grid-area: navigation; }
.list-menu--inline { display: flex; align-items: center; list-style: none; margin: 0; padding: 0; }
.header__menu-item {
  display: block;
  padding: 12px;
  text-decoration: none;
  font-size: 14px;
  letter-spacing: calc(14px * -0.022);
  color: var(--navy);
  font-weight: 500;
  text-transform: uppercase;
  white-space: nowrap;
}
.header__menu-item:hover { text-decoration: underline; text-underline-offset: 4px; }
.header__menu-item.is-active { text-decoration: underline; text-underline-offset: 4px; }

.header__separator {
  grid-area: separator;
  width: 1px;
  height: 100%;
  display: block;
  margin-left: auto;
  margin-right: auto;
  background: rgba(3, 74, 76, 0.5);
}
.is-transparent .header__separator { background: #fff; opacity: 0; }

.header__icons {
  grid-area: icons;
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 0;
}
.header__localization { position: relative; }
.localization-selector {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 10px 12px;
  font-size: 15px;
  color: var(--navy);
}
.localization-selector .icon-caret { width: 10px; height: 6px; }
.localization-list {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 6px 24px rgba(8, 14, 65, 0.12);
  list-style: none;
  margin: 0;
  padding: 8px 0;
  min-width: 140px;
  display: none;
  z-index: 5;
}
.localization-list.open { display: block; }
.localization-list a {
  display: block; padding: 8px 16px; font-size: 14px; color: var(--navy) !important; text-decoration: none;
}
.localization-list a:hover { background: var(--light-blue); }

.header__icon--account {
  margin-left: 25px;
  margin-right: 18.25px;
  text-decoration: none;
  font-size: 15px;
  font-family: "MoriSemi", sans-serif;
  white-space: nowrap;
}
.header__icon--cart {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  text-decoration: none;
}
.header__icon--cart svg path { fill: var(--navy); }
.cart-count-bubble {
  position: absolute;
  top: 4px;
  right: 3px;
  width: 15px;
  height: 15px;
  border-radius: 100%;
  background: var(--navy);
  color: #fff !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
}
.header__icon--menu { display: none; background: none; border: 0; padding: 0; cursor: pointer; }
.icon-hamburger line { stroke: var(--navy); }

/* transparent (over hero) state */
.is-transparent .header__menu-item,
.is-transparent .localization-selector,
.is-transparent .header__icon--account { color: #fff !important; }
.is-transparent .header__icon--cart svg path { fill: #fff; }
.is-transparent .localization-selector .icon-caret path { fill: #fff; }
.is-transparent .icon-hamburger line { stroke: #fff; }

/* ------------------------------------------------------------ mobile menu */
.he_mob-menu-outer {
  background: #fff;
  padding: 20px;
  position: fixed;
  top: 0;
  width: 100%;
  height: 100%;
  right: -100%;
  z-index: 99999;
  transition: all 0.5s;
}
.he_mob-menu-outer.menuOpen { right: 0; }
.he_mob-menu-header { display: flex; align-items: center; gap: 24px; justify-content: space-between; }
.he_mob-menu-logo { display: block; width: 100%; max-width: 160px; }
.he_mob-menu-close { width: 100%; max-width: 36px; display: block; cursor: pointer; }
.he_mob-menu-topline {
  display: flex; align-items: center; gap: 8px; justify-content: space-between; margin-top: 12px;
}
.he_mob-menu-topline * { color: var(--navy); font-size: 14px; line-height: 1.15em; text-decoration: none; }
.he_mob-menu-topline > div { padding: 10px 8px; cursor: pointer; }
.he_mob-sub-btn {
  margin-top: 8px; display: flex; align-items: center; padding: 36px 18px; border-radius: var(--radius);
  gap: 8px; background-size: cover; background-position: center; text-decoration: none;
  background-image: url("../img/after_android_auto_bmw-BFhBoUIt.png");
}
.he_mob-sub-btn * { color: #fff; font-size: 16px; line-height: 1em; }
.he_mob-sub-btn img { max-width: 8px; display: block; }
.he_mob-menu-products { height: calc(100dvh - 300px); overflow-y: auto; margin-top: 12px; }
.he_mob-menu-products_grid { display: grid; }
.he_mob-menu-product-cell {
  text-decoration: none; color: var(--navy); padding-top: 8px; padding-bottom: 16px; position: relative;
}
.he_mob-menu-product-cell .hea_border-line.top { position: absolute; left: 0; top: 0; }
.he_mob-menu-product-cell__in { display: flex; align-items: center; gap: 12px; position: relative; }
.he_mob-menu-product-cell__in > div:nth-child(1) { width: 60px; }
.he_mob-menu-product-cell__in img { display: block; width: 100%; }
.he_mob-menu-pr-title { margin: 0; font-size: 20px; line-height: 1.15em; }
.he_mob-menu-pr-desc { color: var(--navy-40); font-size: 14px; line-height: 1.15em; margin: 2px 0 0; }
.he_mob-footer-container { position: absolute; bottom: 0; left: 0; background: #fff; padding: 20px; width: 100%; }
.he_mob-footer-btn {
  display: block; width: 100%; text-align: center; padding: 20px; border-radius: var(--radius);
  cursor: pointer; text-decoration: none; background: var(--green);
  font-family: "MoriSemi", sans-serif; font-size: 14px; line-height: 1.15em; color: var(--navy);
}

/* ------------------------------------------------------------------ footer */
.footer.he_product-outer-section { padding-bottom: 32px; }
.ha_footer-containre { display: flex; gap: 64px; }
.ha_footer-containre > div:nth-child(1) { width: 80%; }
.ha_footer-containre > div:nth-child(2) { width: 100%; }
.ha_footer-logo { max-width: 200px; margin-bottom: 40px; display: block; }
.ha_footer-text {
  font-size: 24px; line-height: 1.3em; margin: 40px 0 64px; font-weight: 400; max-width: 440px;
  font-family: "Clash", sans-serif;
}
.ha_footer-subtext { font-size: 16px; line-height: 1.3em; margin: 16px 0; }
.ha_footer-subtext a { text-decoration: underline; }
.ha_footer-socials {
  display: flex; align-items: center; gap: 8px; padding-top: 24px; margin-top: 24px;
  position: relative; max-width: 500px;
}
.ha_footer-socials .hea_border-line { position: absolute; top: 0; background-color: rgba(255, 255, 255, 0.5); }
.ha_footer-socials img { width: 24px !important; height: 24px !important; display: block; }
.ha_footer-socials p { font-size: 16px; opacity: 0.5; margin: 0; }

.newsletter-form { margin-left: 0 !important; max-width: 500px !important; }
.newsletter-form__field-wrapper .field { display: flex; align-items: center; }
.newsletter-form__field-wrapper .field__input {
  background: rgba(255, 255, 255, 0.2);
  width: 78%;
  display: block;
  height: 48px;
  border-radius: var(--radius);
  border: 0;
  padding: 0 16px;
  color: #fff;
  font-size: 15px;
}
.newsletter-form__field-wrapper .field__input::placeholder { color: rgba(255, 255, 255, 0.6); }
.newsletter-form__field-wrapper .field__input:focus { outline: 1px solid rgba(255, 255, 255, 0.6); }
.newsletter-form__button.field__button {
  color: #1a258a !important;
  font-size: 14px;
  line-height: 1.3em;
  padding: 16px 20px;
  font-weight: 400;
  height: 47px !important;
  border-radius: var(--radius);
  background-color: #fff !important;
  position: relative;
  top: 1px;
  left: 10px;
  width: 120px;
  border: 0;
  cursor: pointer;
}

.ha_footer-menus { display: flex; gap: 32px; }
.ha_footer-menus > div { width: 100%; }
.ha_footer-menu-title-box { position: relative; padding-bottom: 0; }
.ha_footer-menu-title-box .hea_border-line {
  position: absolute; bottom: 0; background-color: rgba(255, 255, 255, 0.5);
}
.ha_footer-menu-title {
  font-size: 16px; line-height: 1.3em; margin: 0 0 16px; opacity: 0.5; padding-bottom: 16px; text-transform: uppercase;
}
.ha_footer-link {
  font-size: 14px; line-height: 1.3em; margin: 12px 0; display: block; cursor: pointer;
  text-decoration: none; text-transform: uppercase;
}
.ha_footer-link:hover { text-decoration: underline; }
.ha_footer-disclaimer { margin: 40px 0 24px; padding: 24px 0; position: relative; opacity: 0.5; }
.ha_footer-disclaimer p { font-size: 14px; line-height: 1.3em; margin: 0; }
.ha_footer-disclaimer .hea_border-line.topFooterLine { position: absolute; top: 0; background-color: #fff; }
.ha_footer-disclaimer .hea_border-line.bottomFooterLine { position: absolute; bottom: 0; background-color: #fff; }
.ha_footer-info { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ha_footer-info p, .ha_footer-info a { margin: 0; font-size: 14px; line-height: 1.3em; opacity: 0.5; text-decoration: none; }

/* ---------------------------------------------------------- instagram bar */
.he_product-outer--ig-outer { overflow: hidden; width: 100%; margin-top: -2px; }
.he_product-outer--ig-track {
  display: flex; gap: 0; width: max-content; animation: igScroll 30s linear infinite; overflow: hidden;
}
.he_product-item { flex: 0 0 290px; width: 290px; height: 290px; overflow: hidden; }
.he_product-item img {
  width: 100%; height: 100%; display: block; aspect-ratio: 1; object-fit: cover; transform: scale(1.02);
}
@keyframes igScroll { 0% { transform: translate(0); } 100% { transform: translate(-50%); } }

/* ------------------------------------------------------------ cart drawer */
.he_cart-drawer-overlay {
  position: fixed; inset: 0; background: rgba(8, 14, 65, 0.4); z-index: 100000;
  opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.he_cart-drawer-overlay.open { opacity: 1; pointer-events: auto; }
.he_cart-drawer {
  position: fixed; top: 0; right: -420px; width: 400px; max-width: 100%; height: 100%;
  background: #fff; z-index: 100001; transition: right 0.4s; padding: 24px; display: flex; flex-direction: column;
}
.he_cart-drawer.open { right: 0; }
.he_cart-drawer-head { display: flex; align-items: center; justify-content: space-between; }
.he_cart-drawer-head h3 { margin: 0; font-size: 24px; font-weight: 400; }
.he_cart-drawer-close { cursor: pointer; background: none; border: 0; font-size: 24px; line-height: 1; }
.he_cart-drawer-body { margin-top: 24px; flex: 1; overflow-y: auto; }
.he_cart-line { display: flex; gap: 12px; align-items: center; padding: 12px 0; }
.he_cart-line img { width: 64px; border-radius: var(--radius); background: var(--light-blue); }
.he_cart-line p { margin: 0; font-size: 14px; }
.he_cart-empty { font-size: 14px; color: var(--navy-80); }
.he_cart-drawer-foot { padding-top: 16px; }

/* ------------------------------------------------------------ responsive */
@media (max-width: 989px) {
  .header {
    grid-template-areas: "menu heading icons";
    grid-template-columns: 1fr auto 1fr;
    padding: 12px 16px;
  }
  .header__heading { justify-self: center; grid-area: heading; }
  .header__icon--menu { display: block; grid-area: menu; justify-self: start; }
  .header__inline-menu,
  .header__separator,
  .header__localization,
  .header__icon--account { display: none; }
  .header__heading-logo { width: 140px; }
}

@media (max-width: 678px) {
  .ha_footer-containre { flex-wrap: wrap; gap: 24px; }
  .ha_footer-containre > div:nth-child(1) { width: 100%; }
  .ha_footer-menus { flex-wrap: wrap; gap: 16px; }
  .ha_footer-info { flex-wrap: wrap; }
  .ha_footer-menu-title { padding-bottom: 0; padding-top: 24px; border-bottom: none; }
  .newsletter-form__button.field__button { width: 35%; }
  .newsletter-form__field-wrapper .field__input { width: 63%; }
  .ha_footer-text { font-size: 20px; margin: 24px 0 32px; }
  .footer.he_product-outer-section { padding-bottom: 40px; padding-top: 40px; }
  .he_product-item { flex: 0 0 200px; width: 200px; height: 200px; }
}
