.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #F4F4F4;
  font-family: 'IBM Plex Sans', sans-serif;
}

.site-header__top {
  background: #fff;
  border-bottom: 1px solid #e5e5e5;
}

.site-header__bottom {
  background: #f3f3f3;
  border-bottom: 1px solid #e5e5e5;
}

.site-header__inner {
  width: 100%;
  max-width: 1260px;
  margin: 0 auto;
  padding-left: 48px;
  padding-right: 48px;
}

.site-header__top .site-header__inner {
  height: 80px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  column-gap: 28px;
}

.site-header__nav--center,
.site-header__actions {
  height: 100%;
}

.site-header__nav--center a {
  height: 100%;
  display: inline-flex;
  align-items: center;
}
/* LOGO */

.site-logo {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  height: 100%;
  text-decoration: none;
}

.site-logo img {
  height: 26px; /* clave: tamaño visual correcto */
  width: auto;
  display: block;
}

/* NAV CENTRO (FIX TIPOGRAFÍA) */

.site-header__nav--center {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;

  font-size: 15px;
  line-height: 25.5px;
  font-weight: 400;
}

.site-header__nav--center a {
  color: inherit;
  text-decoration: none;
  white-space: nowrap;

  display: inline-flex;
  align-items: center;

  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.site-header__nav--center a:hover {
  opacity: 1;
}

/* ACCIONES DERECHA */

.site-header__actions {
  justify-self: end;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
}

.site-header__actions a {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: inherit;
  text-decoration: none;
  position: relative;
  flex: 0 0 22px;
}

.site-header__actions svg {
  width: 20px;
  height: 20px;
  display: block;
  stroke: currentColor;
}

.cart-count {
  position: absolute;
  top: -6px;
  right: -7px;
  font-size: 10px;
  line-height: 1;
  color:#fff;
  background: #333;
  padding: 1px  3px 1px 3px;
  border-radius: 50%;
}

/* CATEGORÍAS */

.site-header__categories {
  min-height: 80px;
  display: flex;
  align-items: center;
  gap: 34px;
  white-space: nowrap;
  overflow-x: auto;
  scrollbar-width: none;

  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: normal;
}

.site-header__categories::-webkit-scrollbar {
  display: none;
}

.site-header__categories a {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 50px;
  color: #8a8a8a;
  text-decoration: none;
  flex: 0 0 auto;
  transition: color 0.2s ease;
}

.site-header__categories a::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 10px;
  width: 76px;
  height: 2px;
  background: #1E1E1E;
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}

.site-header__categories a:hover {
  color: #1E1E1E;
}

.site-header__categories a:hover::after {
  transform: translateX(-50%) scaleX(1);
}

.site-header__categories a.current-menu-item,
.site-header__categories a.current-menu-parent,
.site-header__categories a[aria-current="page"],
.site-header__categories .current-menu-item > a,
.site-header__categories .current-menu-parent > a {
  color: #1E1E1E;
}

.site-header__categories a.current-menu-item::after,
.site-header__categories a.current-menu-parent::after,
.site-header__categories a[aria-current="page"]::after,
.site-header__categories .current-menu-item > a::after,
.site-header__categories .current-menu-parent > a::after {
  transform: translateX(-50%) scaleX(1);
}

@media (max-width: 520px) {
  .site-header__nav--center {
    display: none;
  }

  .site-header__top .site-header__inner {
    grid-template-columns: auto 1fr;
  }

  .site-header__actions {
    justify-self: end;
  }
}