/* Header v3 â€” Dealer & Trust Hybrid */
.header-v3 {
  --header-v3-green: #0d4a3f;
  --header-v3-green-2: #12483e;
  --header-v3-paper: #fbf8f2;
  --header-v3-brass: #b98a44;
  --header-v3-ink: #17211d;
  --header-v3-muted: #66716b;
  --header-v3-line: rgba(23, 33, 29, 0.11);
  --header-v3-shadow: 0 18px 44px rgba(18, 72, 62, 0.12);
  position: sticky;
  top: 0;
  z-index: 70;
  width: 100%;
  color: var(--header-v3-ink);
  box-shadow: var(--header-v3-shadow);
}

.header-v3 a {
  text-decoration: none;
}

.header-v3-icon,
.header-v3-icon picture,
.header-v3-icon img {
  display: block;
  width: var(--header-v3-icon-size);
  height: var(--header-v3-icon-size);
}

.header-v3-icon {
  flex: 0 0 var(--header-v3-icon-size);
}

.header-v3-icon img {
  object-fit: contain;
}

.header-v3-trust {
  background:
    linear-gradient(90deg, rgba(255,255,255,.025), transparent 24%, rgba(185,138,68,.06) 100%),
    var(--header-v3-green);
  color: #fff;
}

.header-v3-trust-inner {
  width: min(1360px, calc(100% - 48px));
  min-height: 50px;
  margin: 0 auto;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 18px;
}

.header-v3-trust-primary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, auto));
  align-items: stretch;
}

.header-v3-trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 8px 22px;
  border-right: 1px solid rgba(255, 255, 255, 0.13);
}

.header-v3-trust-item:first-child {
  padding-left: 0;
}

.header-v3-trust-item .header-v3-icon {
  filter: brightness(0) saturate(100%) invert(70%) sepia(30%) saturate(780%) hue-rotate(359deg) brightness(88%);
}

.header-v3-trust-item span {
  min-width: 0;
  display: grid;
  gap: 1px;
}

.header-v3-trust-item strong {
  color: #fff;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 820;
  white-space: nowrap;
}

.header-v3-trust-item .header-v3-trust-short { display: none; }

.header-v3-trust-item small {
  color: rgba(255, 255, 255, 0.68);
  font-size: 10px;
  line-height: 1.2;
  white-space: nowrap;
}

.header-v3-trust-secondary {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 17px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 10px;
  font-weight: 760;
  white-space: nowrap;
}

.header-v3-trust-secondary span::first-letter {
  color: #e7c17f;
}

.header-v3-main {
  position: relative;
  min-height: 88px;
  display: grid;
  grid-template-columns: minmax(218px, 272px) minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(16px, 2vw, 30px);
  padding: 11px clamp(24px, 4vw, 58px);
  border-bottom: 1px solid var(--header-v3-line);
  background: rgba(251, 248, 242, 0.985);
  backdrop-filter: blur(18px);
}

.header-v3-brand,
.header-v3-logo,
.header-v3-logo img {
  display: block;
}

.header-v3-brand {
  width: min(100%, 254px);
  min-width: 0;
}

.header-v3-logo {
  aspect-ratio: 3 / 1;
}

.header-v3-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.header-v3-desktop-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(2px, .7vw, 12px);
  min-width: 0;
}

.header-v3-nav-link {
  position: relative;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 10px;
  border: 0;
  background: transparent;
  color: #26342e;
  font: inherit;
  font-size: 14px;
  font-weight: 760;
  white-space: nowrap;
  cursor: pointer;
}

.header-v3-nav-link::after {
  content: "";
  position: absolute;
  right: 10px;
  bottom: 3px;
  left: 10px;
  height: 2px;
  border-radius: 999px;
  background: var(--header-v3-brass);
  opacity: 0;
  transform: scaleX(.4);
  transition: opacity 160ms ease, transform 160ms ease;
}

.header-v3-nav-link:hover,
.header-v3-nav-link.active,
.header-v3-nav-link[aria-expanded="true"] {
  color: var(--header-v3-green-2);
}

.header-v3-nav-link:hover::after,
.header-v3-nav-link.active::after,
.header-v3-nav-link[aria-expanded="true"]::after {
  opacity: 1;
  transform: scaleX(1);
}

.header-v3-mega-shell {
  position: relative;
}

.header-v3-mega {
  position: absolute;
  top: calc(100% + 15px);
  left: -26px;
  z-index: 80;
  width: min(720px, calc(100vw - 110px));
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  overflow: hidden;
  border: 1px solid rgba(23, 33, 29, 0.1);
  border-radius: 16px;
  background: rgba(255, 253, 249, 0.995);
  box-shadow: 0 28px 70px rgba(18, 39, 32, 0.2);
}

.header-v3-mega[hidden] {
  display: none;
}

.header-v3-mega-products {
  padding: 14px;
}

.header-v3-mega-product {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  min-height: 88px;
  padding: 10px;
  border-radius: 11px;
  color: var(--header-v3-ink);
  transition: background 150ms ease, transform 150ms ease;
}

.header-v3-mega-product + .header-v3-mega-product {
  border-top: 1px solid rgba(23, 33, 29, 0.07);
}

.header-v3-mega-product:hover,
.header-v3-mega-product:focus-visible {
  background: #f4efe6;
  transform: translateX(2px);
}

.header-v3-mega-product img {
  width: 82px;
  height: 62px;
  border-radius: 8px;
  object-fit: cover;
  background: #ede9df;
}

.header-v3-mega-product span,
.header-v3-mega-support span {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.header-v3-mega-product strong,
.header-v3-mega-support strong {
  font-size: 13px;
  line-height: 1.3;
}

.header-v3-mega-product small,
.header-v3-mega-support small {
  color: var(--header-v3-muted);
  font-size: 11px;
  line-height: 1.35;
}

.header-v3-mega-product b {
  color: var(--header-v3-green);
  font-size: 23px;
  font-weight: 500;
}

.header-v3-mega-support {
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 18px;
  border-left: 1px solid rgba(23, 33, 29, 0.08);
  background: linear-gradient(160deg, #f7f2e8, #fffdf8);
}

.header-v3-mega-support a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 66px;
  padding: 10px;
  border-radius: 10px;
}

.header-v3-mega-support a:hover,
.header-v3-mega-support a:focus-visible {
  background: rgba(255, 255, 255, 0.72);
}

.header-v3-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-left: 17px;
  border-left: 1px solid var(--header-v3-line);
}

.header-v3-shop,
.header-v3-dealer {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 10px;
  padding: 0 15px;
  font-size: 13px;
  font-weight: 820;
  white-space: nowrap;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.header-v3-shop {
  background: linear-gradient(135deg, #b98a44, #c99a50);
  color: #fff;
  box-shadow: 0 11px 24px rgba(128, 89, 37, 0.22);
}

.header-v3-shop .header-v3-icon {
  filter: brightness(0) invert(1);
}

.header-v3-shop:hover {
  transform: translateY(-1px);
  box-shadow: 0 15px 28px rgba(128, 89, 37, 0.28);
}

.header-v3-dealer {
  border: 1px solid rgba(23, 33, 29, 0.11);
  background: #f7f5f0;
  color: var(--header-v3-ink);
}

.header-v3-dealer:hover {
  background: #fff;
}

.header-v3-mobile-actions,
.header-v3-mobile-layer {
  display: none;
}

body.header-v3-nav-open {
  overflow: hidden;
}

.header-v3 + main .hero {
  min-height: 650px;
  border-bottom-right-radius: 22px;
  border-bottom-left-radius: 22px;
}

.header-v3 + main .hero::after {
  background: linear-gradient(90deg, rgba(12, 28, 23, 0.78), rgba(12, 28, 23, 0.42) 50%, rgba(12, 28, 23, 0.08));
}

.header-v3 + main .hero-copy {
  width: min(690px, calc(100% - 36px));
}

@media (max-width: 1120px) {
  .header-v3-trust-inner {
    width: min(100% - 32px, 1120px);
  }

  .header-v3-trust-secondary {
    display: none;
  }

  .header-v3-trust-primary {
    width: 100%;
    grid-template-columns: repeat(3, 1fr);
  }

  .header-v3-trust-item {
    justify-content: center;
    padding-inline: 12px;
  }

  .header-v3-main {
    grid-template-columns: 210px minmax(0, 1fr) auto;
    gap: 10px;
    padding-inline: 18px;
  }

  .header-v3-brand {
    width: 205px;
  }

  .header-v3-desktop-nav {
    gap: 0;
  }

  .header-v3-nav-link {
    padding-inline: 7px;
    font-size: 12.5px;
  }

  .header-v3-actions {
    gap: 7px;
    padding-left: 10px;
  }

  .header-v3-shop,
  .header-v3-dealer {
    padding-inline: 11px;
    font-size: 12px;
  }

  .header-v3-shop b {
    display: none;
  }
}

@media (max-width: 920px) {
  .header-v3 {
    box-shadow: 0 10px 26px rgba(18, 72, 62, 0.1);
  }

  .header-v3-trust-inner {
    width: 100%;
    min-height: 36px;
  }

  .header-v3-trust-primary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .header-v3-trust-item {
    justify-content: center;
    gap: 5px;
    padding: 6px 4px;
    border-right-color: rgba(255, 255, 255, 0.1);
  }

  .header-v3-trust-item:first-child {
    padding-left: 4px;
  }

  .header-v3-trust-item .header-v3-icon {
    width: 15px;
    height: 15px;
    flex-basis: 15px;
  }

  .header-v3-trust-item strong {
    font-size: 9.5px;
    letter-spacing: -.01em;
  }

  .header-v3-trust-item small {
    display: none;
  }

  .header-v3-trust-item .header-v3-trust-long { display: none; }
  .header-v3-trust-item .header-v3-trust-short { display: inline; }


  .header-v3-main {
    min-height: 68px;
    grid-template-columns: minmax(118px, 1fr) auto;
    gap: 10px;
    padding: 7px 12px;
  }

  .header-v3-brand {
    width: clamp(140px, 42vw, 178px);
  }

  .header-v3-desktop-nav,
  .header-v3-actions {
    display: none;
  }

  .header-v3-mobile-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
  }

  .header-v3-menu-button,
  .header-v3-mobile-account,
  .header-v3-mobile-shop {
    min-width: 44px;
    min-height: 44px;
  }

  .header-v3-menu-button {
    display: inline-grid;
    width: 44px;
    place-content: center;
    gap: 4px;
    border: 1px solid rgba(23,33,29,.12);
    border-radius: 10px;
    background: transparent;
    cursor: pointer;
  }

  .header-v3-menu-button span {
    width: 19px;
    height: 2px;
    border-radius: 2px;
    background: var(--header-v3-ink);
  }

  .header-v3-mobile-shop {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border-radius: 9px;
    padding: 0 11px;
    background: var(--header-v3-brass);
    color: #fff;
    font-size: 12px;
    font-weight: 820;
  }

  .header-v3-mobile-shop .header-v3-icon {
    filter: brightness(0) invert(1);
  }

  .header-v3-mobile-account {
    display: inline-grid;
    place-items: center;
    border: 1px solid rgba(23,33,29,.12);
    border-radius: 10px;
    background: #fff;
  }

  .header-v3-mobile-layer {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: block;
    pointer-events: none;
    visibility: hidden;
  }

  .header-v3-mobile-layer.is-open {
    pointer-events: auto;
    visibility: visible;
  }

  .header-v3-mobile-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    border: 0;
    background: rgba(11, 25, 20, 0.58);
    opacity: 0;
    transition: opacity 180ms ease;
  }

  .header-v3-mobile-layer.is-open .header-v3-mobile-backdrop {
    opacity: 1;
  }

  .header-v3-mobile-drawer {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: min(88vw, 360px);
    overflow-y: auto;
    padding: 18px;
    background: #fbf8f2;
    box-shadow: 24px 0 60px rgba(8, 29, 23, 0.28);
    transform: translateX(-102%);
    transition: transform 210ms ease;
  }

  .header-v3-mobile-layer.is-open .header-v3-mobile-drawer {
    transform: translateX(0);
  }

  .header-v3-mobile-drawer-head {
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--header-v3-line);
  }

  .header-v3-mobile-drawer-head strong {
    color: var(--header-v3-green-2);
    font-family: var(--font-display);
    font-size: 25px;
  }

  .header-v3-mobile-drawer-head button {
    width: 44px;
    height: 44px;
    border: 1px solid rgba(23,33,29,.12);
    border-radius: 50%;
    background: #fff;
    color: var(--header-v3-ink);
    font-size: 27px;
    cursor: pointer;
  }

  .header-v3-mobile-drawer nav {
    display: grid;
    padding: 13px 0;
  }

  .header-v3-mobile-drawer nav a {
    min-height: 51px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(23,33,29,.07);
    color: #27352f;
    font-size: 15px;
    font-weight: 760;
  }

  .header-v3-mobile-drawer nav a.active {
    color: var(--header-v3-green);
  }

  .header-v3-mobile-quick {
    display: grid;
    gap: 8px;
    padding: 14px 0;
  }

  .header-v3-mobile-quick a {
    min-height: 48px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 10px;
    padding: 0 13px;
    background: var(--header-v3-green-2);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
  }

  .header-v3-mobile-quick a + a {
    border: 1px solid rgba(23,33,29,.12);
    background: #fff;
    color: var(--header-v3-ink);
  }

  .header-v3-mobile-quick a:first-child .header-v3-icon {
    filter: brightness(0) invert(1);
  }

  .header-v3-mobile-more {
    display: flex;
    gap: 8px;
    padding: 3px 0 14px;
  }

  .header-v3-mobile-more a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(23,33,29,.11);
    border-radius: 999px;
    padding: 0 13px;
    background: #fff;
    color: var(--header-v3-muted);
    font-size: 12px;
    font-weight: 760;
  }

  .header-v3-mobile-proof {
    display: grid;
    gap: 8px;
    border-top: 1px solid var(--header-v3-line);
    padding-top: 14px;
  }

  .header-v3-mobile-proof span {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--header-v3-muted);
    font-size: 12px;
    font-weight: 700;
  }

  .header-v3 + main .hero {
    min-height: 610px;
    border-radius: 0 0 16px 16px;
  }
}

@media (max-width: 360px) {
  .header-v3-trust-item strong {
    font-size: 8.5px;
  }

  .header-v3-brand {
    width: 130px;
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .header-v3-mobile-shop {
    min-width: 44px;
    padding-inline: 8px;
  }

  .header-v3-mobile-shop span {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .header-v3-mobile-drawer,
  .header-v3-mobile-backdrop,
  .header-v3-nav-link::after,
  .header-v3-mega-product,
  .header-v3-shop {
    transition: none;
  }
}