/* Language dropdown in header-top — CMS dark glass theme */
.lang-dropdown-wrap {
  position: relative;
}

.lang-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  line-height: 30px;
  padding: 0 10px;
  margin: 0 -10px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: #ffffff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  cursor: pointer;
  transition: color 0.25s ease, background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.lang-toggle .icon {
  padding-right: 5px;
}

.lang-toggle:hover,
.lang-dropdown-wrap.is-open .lang-toggle {
  color: var(--main-color);
}

.lang-dropdown-wrap.is-open .lang-toggle {
  background: rgba(32, 32, 32, 0.55);
  border-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.lang-switcher {
  display: flex;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-6px) scale(0.98);
  pointer-events: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 118px;
  flex-direction: column;
  gap: 3px;
  padding: 6px;
  background: rgba(32, 32, 32, 0.78);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  z-index: 1001;
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
}

.lang-switcher.open {
  visibility: visible;
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.lang-btn {
  display: block;
  width: 100%;
  padding: 7px 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, 0.55);
  font-size: 12px;
  font-weight: 500;
  font-family: inherit;
  text-align: left;
  letter-spacing: 0.02em;
  line-height: 1.25;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.lang-btn:hover {
  background: rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.92);
}

.lang-btn.active {
  background: rgba(228, 197, 144, 0.14);
  border-color: rgba(228, 197, 144, 0.38);
  color: var(--main-color);
  font-weight: 600;
  box-shadow:
    0 0 16px rgba(228, 197, 144, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.fixed-header .lang-switcher {
  background: rgba(32, 32, 32, 0.88);
}

/* Address in header */
.address-item {
  display: inline-flex;
  align-items: center;
  max-width: 360px;
}

.address-single {
  display: inline;
}

.address-dropdown-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.address-dropdown-wrap.is-hidden,
.address-single.is-hidden {
  display: none !important;
}

.address-select {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: none;
  color: inherit;
  font-size: inherit;
  font-family: inherit;
  cursor: pointer;
  padding: 0 18px 0 0;
  max-width: 320px;
  outline: none;
}

.address-select option {
  color: #333;
  background: #fff;
}

.address-dropdown-wrap::after {
  content: '\f107';
  font-family: 'Font Awesome 5 Pro', 'Font Awesome 5 Free';
  font-weight: 900;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  font-size: 12px;
  opacity: 0.7;
}

.is-hidden {
  display: none !important;
}

@media (max-width: 767px) {
  .address-item {
    max-width: 200px;
  }

  .address-select {
    max-width: 180px;
    font-size: 12px;
  }

  .lang-toggle {
    font-size: 12px;
  }

  .lang-switcher {
    min-width: 104px;
    padding: 5px;
    border-radius: 12px;
  }

  .lang-btn {
    font-size: 11px;
    padding: 6px 10px;
  }
}
