.site-header *,
.site-header *::before,
.site-header *::after {
  box-sizing: border-box;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  margin: 0;
  padding: 0;
  font-family: 'Inter', "Segoe UI", system-ui, sans-serif;
  line-height: 1.5;
  width: 100%;
}

.site-header .container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 16px;
  display: block;
}

.site-header .topbar {
  background: #f5f7fb;
  border-bottom: 1px solid #e2e8f0;
  font-size: 13px;
  color: #64748b;
  line-height: 1.5;
  margin: 0;
  padding: 0;
}

.site-header .topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 34px;
  margin: 0 auto;
  padding: 0 16px;
  width: 100%;
  max-width: 1240px;
  box-sizing: border-box;
}

.site-header .topbar-contacts {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 0;
  padding: 0;
  white-space: nowrap;
}

.site-header .topbar-contacts a {
  color: #64748b;
  text-decoration: none;
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
  padding: 0;
  background: none;
  border: none;
  display: inline;
  white-space: nowrap;
}

.site-header .topbar-contacts a:hover {
  color: #1a56db;
  text-decoration: none;
}

.site-header .header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 68px;
  margin: 0 auto;
  padding: 0 16px;
  width: 100%;
  max-width: 1240px;
  box-sizing: border-box;
  background: #fff;
}

.site-header .wordmark {
  display: inline-flex;
  align-items: center;
  height: 100%;
  text-decoration: none;
  color: #0f172a;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  white-space: nowrap;
  flex-shrink: 0;
}

.site-header .wordmark img {
  height: 40px;
  width: auto;
  display: block;
  margin: 0;
  padding: 0;
  border: none;
}

.site-header .header-search {
  flex: 1;
  max-width: 560px;
  display: flex;
  margin: 0;
  padding: 0;
  background: #fff;
  border: none;
  align-items: stretch;
  box-sizing: border-box;
}

.site-header .header-search input[type="search"] {
  height: 42px;
  border: 1px solid #e2e8f0;
  border-right: 0;
  border-radius: 8px 0 0 8px;
  padding: 0 14px;
  font-size: 15px;
  color: #0f172a;
  background: #fff;
  outline: none;
  margin: 0;
  flex: 1;
  min-width: 0;
  box-sizing: border-box;
  font-family: 'Inter', "Segoe UI", system-ui, sans-serif;
  line-height: 1.5;
}

.site-header .header-search input[type="search"]:focus {
  border-color: #1a56db;
}

.site-header .header-search button[type="submit"] {
  height: 42px;
  padding: 0 18px;
  border: 0;
  border-radius: 0 8px 8px 0;
  background: #1a56db;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  font-family: 'Inter', "Segoe UI", system-ui, sans-serif;
  white-space: nowrap;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.site-header .header-search button[type="submit"]:hover {
  background: #0a2e6e;
  color: #fff;
}

.site-header .header-cta {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 0 18px;
  border-radius: 8px;
  background: #1a56db;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  border: none;
  box-shadow: none;
  transform: none;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  line-height: 1.5;
  font-family: 'Inter', "Segoe UI", system-ui, sans-serif;
  box-sizing: border-box;
  margin-top: 0;
  margin-bottom: 0;
  margin-right: 0;
  flex-shrink: 0;
}

.site-header .header-cta:hover {
  background: #0a2e6e;
  color: #fff;
  border: none;
  box-shadow: none;
  transform: none;
  text-decoration: none;
}

.site-header .nav-row {
  border-top: 1px solid #e2e8f0;
  background: #fff;
  margin: 0;
  padding: 0;
  width: 100%;
}

.site-header .nav-links {
  display: flex !important;
  align-items: center;
  gap: 28px;
  height: 46px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  white-space: nowrap;
  margin: 0 auto;
  padding: 0 16px;
  width: 100%;
  max-width: 1240px;
  box-sizing: border-box;
  background: #fff;
  border: none;
}

.site-header .nav-links::-webkit-scrollbar {
  display: none;
}

.site-header .nav-links a {
  color: #0f172a;
  font-size: 14.5px;
  font-weight: 500;
  padding: 0;
  height: 46px;
  display: inline-flex;
  align-items: center;
  border-bottom: 2px solid transparent;
  text-decoration: none;
  margin: 0;
  line-height: 1.5;
  white-space: nowrap;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  flex-shrink: 0;
}

.site-header .nav-links a:hover {
  color: #1a56db;
  border-bottom-color: #1a56db;
  text-decoration: none;
  background: none;
}

@media (max-width: 860px) {
  .site-header .topbar {
    display: none;
  }

  .site-header .header-inner {
    height: auto;
    padding-top: 10px;
    padding-bottom: 10px;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
  }

  .site-header .wordmark img {
    height: 34px;
    width: auto;
    display: block;
  }

  .site-header .header-cta {
    margin-left: auto;
    padding: 0 12px;
    font-size: 13px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .site-header .header-search {
    order: 3;
    flex-basis: 100%;
    max-width: none;
    display: flex;
    margin: 0;
    padding: 0;
  }

  .site-header .header-search input[type="search"],
  .site-header .header-search button[type="submit"] {
    height: 40px;
    font-size: 14px;
  }

  .site-header .nav-links {
    gap: 20px;
    height: 42px;
    font-size: 14px;
    padding: 0 12px;
  }

  .site-header .nav-links a {
    height: 42px;
    font-size: 14px;
    border-bottom-width: 2px;
  }
}

/* ===== compact header, 1400 px (same as ebay.directusa.autos) ===== */
.site-header .topbar-inner, .site-header .header-inner, .site-header .nav-links { max-width: 1400px; }
.site-header { position: sticky; top: -29px; }
.site-header .topbar-inner { height: 28px; }
.site-header .topbar { font-size: 12.5px; }
.site-header .header-inner { height: 56px; gap: 20px; }
.site-header .wordmark img { height: 34px; }
.site-header .header-search { max-width: 640px; }
.site-header .header-search input[type="search"],
.site-header .header-search button[type="submit"] { height: 38px; font-size: 14.5px; }
.site-header .header-cta, .site-header .header-cta:hover { height: 38px; padding: 0 16px; font-size: 14.5px; }
.site-header .nav-links { height: 40px; gap: 24px; }
.site-header .nav-links a { height: 40px; font-size: 14px; }
.site-header .nav-links a.nav-main { font-weight: 700; color: #1a56db; }
.site-header [data-reveal] { cursor: pointer; }
@media (max-width: 860px) {
  .site-header { position: static; top: auto; }
  .site-header .header-inner { height: auto; padding-top: 8px; padding-bottom: 8px; gap: 8px; }
  .site-header .wordmark img { height: 30px; }
  .site-header .header-cta, .site-header .header-cta:hover { height: 34px; padding: 0 12px; font-size: 13px; }
  .site-header .header-search input[type="search"], .site-header .header-search button[type="submit"] { height: 38px; font-size: 14px; }
  .site-header .nav-links { height: 40px; gap: 18px; }
  .site-header .nav-links a { height: 40px; }
}

.site-header .cart-link { margin-left: auto; flex-shrink: 0; }
.site-header .cart-link + .header-cta { margin-left: 0; }
.site-header .cart-badge[hidden] { display: none; }
@media (max-width: 600px) { .site-header .cart-link { height: 34px; padding: 0 10px; font-size: 13px; } }

/* ===== header without the top info strip; Telegram + WhatsApp as compact buttons ===== */
.site-header { top: 0; }
.site-header .topbar { display: none; }
.site-header .header-cta, .site-header .header-cta:hover { gap: 7px; padding: 0 14px; }
.site-header .header-cta svg { display: block; flex-shrink: 0; }
.site-header .icon-btn {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 38px; height: 38px; margin: 0; padding: 0; border-radius: 8px;
  border: 1px solid #e2e8f0; background: #fff; color: #25a244; cursor: pointer; text-decoration: none;
}
.site-header .icon-btn:hover { border-color: #25a244; background: #f0fdf4; }
.site-header .icon-btn svg { display: block; }
.site-header .cart-link + .icon-btn, .site-header .icon-btn + .header-cta { margin-left: 0; }
.site-header .header-inner > .icon-btn:first-of-type { margin-left: auto; }
.site-header .cart-link ~ .icon-btn { margin-left: 0; }
@media (max-width: 860px) {
  .site-header .icon-btn { width: 34px; height: 34px; }
  .site-header .header-cta, .site-header .header-cta:hover { padding: 0 10px; }
}
@media (max-width: 420px) {
  .site-header .header-cta span { display: none; }
  .site-header .header-cta, .site-header .header-cta:hover { width: 34px; padding: 0; }
}

/* Telegram button: same square size as the WhatsApp icon */
.site-header .header-cta, .site-header .header-cta:hover { width: 38px; height: 38px; padding: 0; gap: 0; border-radius: 8px; justify-content: center; }
.site-header .header-cta span { display: none; }
.site-header .header-cta svg { width: 20px; height: 20px; }
@media (max-width: 860px) { .site-header .header-cta, .site-header .header-cta:hover { width: 34px; height: 34px; padding: 0; } }

/* ===== header without search; equal-width menu tabs (2026-10-16) ===== */
.site-header .header-inner > .cart-link { margin-left: auto; }
.site-header .nav-links { gap: 0; align-items: stretch; }
.site-header .nav-links a {
  flex: 1 1 0; min-width: 0; justify-content: center; text-align: center;
  white-space: normal; line-height: 1.2; padding: 0 8px; font-size: 14px;
}
@media (max-width: 860px) {
  .site-header .nav-links { gap: 0; }
  .site-header .nav-links a { flex: 0 0 116px; font-size: 13px; padding: 0 6px; }
}

/* ===== one-row header: logo | menu tabs | cart + icons (2026-10-16) ===== */
.site-header .header-inner { height: 64px; gap: 16px; }
.site-header .header-inner > .nav-row { flex: 1 1 auto; min-width: 0; border: 0; background: transparent; align-self: stretch; }
.site-header .header-inner > .nav-row .nav-links { max-width: none; width: 100%; height: 64px; padding: 0; margin: 0; }
.site-header .header-inner > .nav-row .nav-links a { height: 64px; font-size: 13.5px; padding: 0 6px; border-bottom-width: 2px; }
.site-header .header-inner > .cart-link { margin-left: 0; }
@media (max-width: 1100px) {
  .site-header .header-inner { height: auto; flex-wrap: wrap; padding-top: 8px; padding-bottom: 0; gap: 8px; }
  .site-header .header-inner > .cart-link { margin-left: auto; }
  .site-header .header-inner > .nav-row { order: 3; flex: 0 0 100%; border-top: 1px solid #e2e8f0; margin: 0 -16px; width: calc(100% + 32px); max-width: none; }
  .site-header .header-inner > .nav-row .nav-links { height: 42px; padding: 0 16px; }
  .site-header .header-inner > .nav-row .nav-links a { height: 42px; flex: 0 0 auto; min-width: 116px; }
}

/* short tab names: keep the header compact */
.site-header .header-inner { height: 56px; }
.site-header .header-inner > .nav-row .nav-links, .site-header .header-inner > .nav-row .nav-links a { height: 56px; }
.site-header .header-inner > .nav-row .nav-links a { white-space: nowrap; font-size: 14.5px; }
@media (max-width: 1100px) { .site-header .header-inner { height: auto; } .site-header .header-inner > .nav-row .nav-links, .site-header .header-inner > .nav-row .nav-links a { height: 42px; } }

/* ===== header tabs: no underline indicator (hover / current page), tab size and position unchanged ===== */
.site-header .nav-links a,
.site-header .nav-links a:hover,
.site-header .nav-links a:focus,
.site-header .nav-links a[aria-current],
.site-header .nav-links a.is-active { border-bottom-color: transparent !important; box-shadow: none !important; text-decoration: none; }

/* ===== compact header (2026-10-16): desktop 57px, one row down to 1000px; narrow: 54px top row + 36px tabs ===== */
@media (min-width: 1000px) and (max-width: 1100px) {
  .site-header .header-inner { height: 56px; flex-wrap: nowrap; padding-top: 0; padding-bottom: 0; gap: 12px; }
  .site-header .header-inner > .nav-row { order: 0; flex: 1 1 auto; border-top: 0; margin: 0; width: auto; }
  .site-header .header-inner > .nav-row .nav-links { height: 56px; padding: 0; }
  .site-header .header-inner > .nav-row .nav-links a { height: 56px; flex: 1 1 0; min-width: 0; font-size: 14px; padding: 0 4px; }
  .site-header .header-inner > .cart-link { margin-left: 0; }
}
@media (max-width: 999px) {
  .site-header .header-inner { padding-top: 9px; row-gap: 9px; }
  .site-header .header-inner > .nav-row .nav-links, .site-header .header-inner > .nav-row .nav-links a { height: 36px; }
}
@media (max-width: 860px) {
  .site-header .cart-link { height: 36px; }
  .site-header .header-cta, .site-header .header-cta:hover { width: 36px; height: 36px; }
  .site-header .header-wa, .site-header .header-icon, .site-header a.icon-btn { width: 36px; height: 36px; }
}

@media (max-width: 860px) { .site-header .header-inner > .cart-link { height: 36px; } }

/* personal account button (2026-10-16) */
.site-header .icon-acct { color: #1a56db; }
.site-header .icon-acct:hover { border-color: #1a56db; }
