/* Cardstop V26 shared header: identical sizing and positioning on Price and Card List. */
.top-header,
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  min-height: 72px;
  border-bottom: 1px solid #ececea;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
}

.top-header .header-inner,
.site-header .header-inner {
  width: 100%;
  max-width: 1280px;
  height: 72px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  gap: 36px;
}

.top-header .header-inner > .brand,
.site-header .header-inner > .brand {
  position: static;
  width: 132px;
  height: 52px;
  margin: 0;
  display: flex;
  flex: 0 0 132px;
  align-items: center;
  transform: none;
}

.top-header .header-inner > .brand img,
.site-header .header-inner > .brand img {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  display: block;
  object-fit: contain;
}

.top-header .desktop-nav,
.site-header .desktop-nav {
  height: 100%;
  display: flex;
  align-items: stretch;
  gap: 26px;
}

.top-header .desktop-nav a,
.site-header .desktop-nav a {
  position: relative;
  padding: 0;
  display: grid;
  place-items: center;
  color: #171717;
  font-size: 14px;
  font-weight: 800;
  line-height: normal;
  text-decoration: none;
  white-space: nowrap;
}

.top-header .desktop-nav a::after,
.site-header .desktop-nav a::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  border-radius: 3px;
  background: #ed0817;
  content: "";
  transform: scaleX(0);
  transform-origin: left;
}

.top-header .desktop-nav a.current::after,
.site-header .desktop-nav a.current::after {
  transform: scaleX(1);
}

.top-header .header-actions,
.site-header .language-switch {
  position: static;
  margin-left: auto;
}

.top-header .lang-switch,
.site-header .language-switch {
  padding: 3px;
  display: flex;
  border: 1px solid #ddd;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}

.top-header .lang-switch a,
.site-header .language-switch a {
  min-width: 35px;
  padding: 7px 10px;
  display: block;
  border-radius: 999px;
  color: #777;
  background: transparent;
  font-size: 11px;
  font-weight: 900;
  line-height: normal;
  text-align: center;
  text-decoration: none;
}

.top-header .lang-switch a.active,
.site-header .language-switch a.active {
  color: #fff;
  background: #111;
}

@media (max-width: 760px) {
  .top-header,
  .site-header { min-height: 62px; }

  .top-header .header-inner,
  .site-header .header-inner {
    position: relative;
    height: 62px;
    padding: 0 15px;
    justify-content: center;
  }

  .top-header .desktop-nav,
  .site-header .desktop-nav { display: none; }

  .top-header .header-inner > .brand,
  .site-header .header-inner > .brand {
    position: absolute;
    left: 50%;
    width: 112px;
    height: 46px;
    flex-basis: 112px;
    transform: translateX(-50%);
  }

  .top-header .header-actions,
  .site-header .language-switch {
    position: absolute;
    right: 13px;
    margin: 0;
  }

  .top-header .lang-switch a,
  .site-header .language-switch a {
    min-width: 29px;
    padding: 6px 8px;
    font-size: 9px;
  }

  .top-header .mobile-nav-panel,
  .site-header .mobile-menu {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
