header#masthead {
  background-color: rgba(12, 30, 19, 1);
  transition: background-color 0.3s ease;
  position: relative;
  top: 0;
  width: 100%;
  z-index: 20;
}

.home header#masthead {
  position: fixed;
  background-color: rgba(12, 30, 19, 0.2);
}

header#masthead.sticky {
  position: fixed;
  background-color: rgba(12, 30, 19, 1);
}

header#masthead .header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 0;
}

a.custom-logo-link {
  display: flex;
}

header#masthead.sticky .header-container {
  border-bottom: none;
}

#primary-menu .menu-item a,
.sticky .menu-item a {
  font-size: 15px;
  font-weight: 500;
  line-height: normal;
  color: var(--White);
  transition: color 0.3s ease;
  text-transform: uppercase;
  position: relative;
  text-decoration: none;
}

/* Подчеркивание при наведении на ссылку */
#primary-menu .menu-item a {
  position: relative;
  display: inline-block;
}

#primary-menu .menu-item a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 1px;
  bottom: 0;
  left: 0;
  background-color: currentColor;
  transition: width 0.3s ease;
}

#primary-menu .menu-item a:hover {
  text-decoration: none;
}

#primary-menu .menu-item a:hover::after {
  width: 100%;
}

/* Тот же эффект при наведении на весь li с подменю */
#primary-menu .menu-item-has-children {
  position: relative;
}

#primary-menu .menu-item-has-children>a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 1px;
  bottom: 0;
  left: 0;
  background-color: currentColor;
  transition: width 0.3s ease;
}

#primary-menu .menu-item-has-children:hover>a::after {
  width: 100%;
}


.main-navigation ul {
  column-gap: clamp(1.25rem, 0.0305rem + 2.4390vw, 2.5rem);
}

.site-branding {
  max-width: clamp(8.69rem, 7.4303rem + 5.3748vw, 13.88rem);
}

.header-container_right {
  display: flex;
  align-items: center;
  column-gap: 24px;
}

.cart {
  width: 24px;
  height: 25px;
  position: relative;
  cursor: pointer;
}

.cart svg {
  width: 100%;
  height: 100%;
  fill: #F9F9F9;
}

hr.line {
  height: 30px;
  margin: 0;
  width: 1px;
  background-color: #E6E6E6;
}

div#popup-cart {
  right: 0;
  height: 100%;
  border-radius: inherit;
  max-width: 400px;
      overflow-x: auto;
}

.popup-content.cart-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between; 
  min-height: 100%;
}
span.badge {
    position: absolute;
    display: block;
    top: -10px;
    right: -10px;
    line-height: normal;
    color: #fff;
    font-weight: 400;
}


@media (max-width: 768px) {
  .header-container_right {
    flex-direction: row-reverse;
  }

  hr.line {
    display: none;
  }
}

/* Language Switcher Styles (header) */
.lang-switcher {
  position: relative;
  display: inline-block;
  z-index: 100;
}

.lang-switcher__btn {
  background: none;
  border: none;
  color: #F9F9F9;
  font-size: 18px;
  display: flex;
  align-items: center;
  cursor: pointer;
  gap: 8px;
  padding: 4px 10px;
  border-radius: 6px;
  transition: background 0.2s;
}

.lang-switcher__btn:hover,
.lang-switcher__btn:focus {
  background: rgba(255, 255, 255, 0.08);
}

.lang-switcher__icon {
  display: flex;
  align-items: center;
}

.lang-switcher__dropdown {
  position: absolute;
  right: 0;
  top: 110%;
  background: #1a2a1e;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  min-width: 70px;
  padding: 6px 0;
  display: none;
}

.lang-switcher__option {
  display: block;
  color: #F9F9F9;
  text-decoration: none;
  padding: 8px 18px;
  font-size: 16px;
  transition: background 0.2s, color 0.2s;
}

.lang-switcher__option:hover {
  background: #23382b;
  color: #fff;
}

.lang-switcher__dropdown.active {
  display: block;
}