.brand {
  display: flex;
  align-items: center;
  min-width: 0;
  width: auto;
  height: 42px;
  gap: 7px;
  color: #111827;
}

.brand-logo {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  border-radius: 0;
  background: transparent;
  overflow: visible;
}

.brand-logo img {
  display: block;
  width: 20px;
  height: 20px;
  object-fit: contain;
  max-width: none;
}

.brand-copy strong,
.brand-copy small {
  display: block;
  white-space: nowrap;
  text-align: left;
}

.brand-copy {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
}

.brand-copy strong {
  font-size: 18px;
  line-height: 1;
  font-weight: 500;
  letter-spacing: 0.1px;
}

.icon-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 50px;
  height: 50px;
  min-width: 50px;
  min-height: 50px;
  color: #111827;
  background: transparent;
}

.icon-button svg {
  display: block;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
}

.search-button svg {
  width: 32px;
  height: 32px;
}

.phone-page:not(.detail-page) .search-button {
  display: none;
}

.phone-page:not(.detail-page) .fp-header.is-over-list .search-button {
  display: inline-flex;
}

.submit-product-button svg {
  width: 24px;
  height: 24px;
}

.language-button svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.language-button.is-switching svg {
  animation: languageSwitch 420ms ease;
}

.language-button.is-open svg {
  transform: scale(0.92);
}

.language-menu {
  position: fixed;
  top: calc(26px + var(--header-h) - 10px);
  right: calc(50% - min(100%, var(--phone-max)) / 2 + 92px);
  z-index: 1002;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  width: auto;
  padding: 0;
  pointer-events: none;
  transform-origin: top right;
}

.language-menu[hidden] {
  display: none;
}

.language-menu.is-visible {
  pointer-events: auto;
}

.language-menu button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  min-width: 96px;
  padding: 0 18px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 999px;
  color: #333;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: 15px;
  line-height: 1;
  font-weight: 700;
  white-space: nowrap;
}

.language-menu button.is-active {
  color: #fff;
  background: #111;
}

.language-menu.is-visible button {
  animation: menuChipIn 180ms ease both;
}

.language-menu.is-visible button:nth-child(2) {
  animation-delay: 24ms;
}

.menu-button svg {
  width: 30px;
  height: 30px;
}

.menu-button .menu-close-icon {
  display: none;
}

.menu-button.is-open .menu-open-icon {
  display: none;
}

.menu-button.is-open .menu-close-icon {
  display: block;
}

.more-menu {
  position: fixed;
  top: calc(26px + var(--header-h) - 10px);
  right: calc(50% - min(100%, var(--phone-max)) / 2 + 40px);
  z-index: 1001;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  width: auto;
  max-height: calc(100dvh - 78px);
  padding: 0;
  overflow-y: auto;
  border: 0;
  border-radius: 0;
  color: #273653;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  scrollbar-width: none;
  pointer-events: none;
  transform-origin: top right;
}

.more-menu::before {
  position: absolute;
  z-index: -1;
  top: -72px;
  right: -72px;
  bottom: -72px;
  left: -190px;
  background:
    radial-gradient(ellipse at 88% 18%, rgba(255, 255, 255, 0.78) 0%, rgba(255, 255, 255, 0.46) 30%, rgba(255, 255, 255, 0.16) 56%, transparent 74%),
    radial-gradient(ellipse at 72% 56%, rgba(105, 164, 255, 0.28) 0%, rgba(105, 164, 255, 0.16) 42%, transparent 72%),
    radial-gradient(ellipse at 100% 100%, rgba(255, 255, 255, 0.42) 0%, transparent 62%);
  content: "";
  filter: blur(22px);
  -webkit-mask-image: radial-gradient(ellipse at 82% 45%, #000 0%, rgba(0, 0, 0, 0.86) 38%, rgba(0, 0, 0, 0.34) 68%, transparent 88%);
  mask-image: radial-gradient(ellipse at 82% 45%, #000 0%, rgba(0, 0, 0, 0.86) 38%, rgba(0, 0, 0, 0.34) 68%, transparent 88%);
  opacity: 0;
  pointer-events: none;
  transform: translate3d(18px, -10px, 0) scale(0.98);
  transition: opacity 180ms ease, transform 180ms ease;
}

.more-menu::-webkit-scrollbar {
  display: none;
}

.more-menu[hidden] {
  display: none;
}

.more-menu.is-visible {
  pointer-events: auto;
}

.more-menu.is-visible::before {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

.more-menu .menu-chip {
  display: inline-flex;
  align-items: center;
  align-self: flex-end;
  min-height: 38px;
  padding: 0 18px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 999px;
  color: #333;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: 14px;
  line-height: 1;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.more-menu .menu-chip.active {
  color: #fff;
  background: #111;
}

.more-menu.is-visible .menu-chip {
  animation: menuChipIn 180ms ease both;
}

.more-menu.is-visible .menu-chip:nth-child(2) {
  animation-delay: 18ms;
}

.more-menu.is-visible .menu-chip:nth-child(3) {
  animation-delay: 36ms;
}

.more-menu.is-visible .menu-chip:nth-child(4) {
  animation-delay: 54ms;
}

.more-menu.is-visible .menu-chip:nth-child(5) {
  animation-delay: 72ms;
}

.more-menu.is-visible .menu-chip:nth-child(n + 6) {
  animation-delay: 90ms;
}

@keyframes menuChipIn {
  from {
    opacity: 0;
    transform: translate3d(0, -6px, 0) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes languageSwitch {
  0% {
    transform: rotate(0deg) scale(1);
  }

  45% {
    transform: rotate(-16deg) scale(0.88);
    opacity: 0.72;
  }

  100% {
    transform: rotate(0deg) scale(1);
    opacity: 1;
  }
}

.header-search {
  display: none;
  align-items: center;
  min-width: 0;
  height: 66px;
  padding: 0 14px 0 22px;
  border-radius: 999px;
  background: #f7f8fb;
}

.fp-header.is-searching .brand,
.fp-header.is-searching .language-button,
.fp-header.is-searching .search-button,
.fp-header.is-searching .submit-product-button {
  display: none;
}

.fp-header.is-searching .header-search {
  display: flex;
}

.header-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: #667085;
  background: transparent;
  font-size: 28px;
  font-weight: 520;
}

.header-search input::placeholder {
  color: #667085;
}

.clear-button,
.submit-button {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
}

.clear-button {
  color: #98a4b6;
  border-right: 2px solid #d4d9e3;
  border-radius: 0;
}

.clear-button::before,
.clear-button::after {
  position: absolute;
  top: 21px;
  left: 11px;
  width: 25px;
  height: 4px;
  border-radius: 4px;
  background: currentColor;
  content: "";
}

.clear-button::before {
  transform: rotate(45deg);
}

.clear-button::after {
  transform: rotate(-45deg);
}

.submit-button {
  color: var(--blue-text);
}

.submit-button::before,
.submit-button::after {
  position: absolute;
  content: "";
}

.submit-button::before {
  top: 21px;
  left: 10px;
  width: 26px;
  height: 4px;
  border-radius: 4px;
  background: currentColor;
}

.submit-button::after {
  top: 13px;
  right: 9px;
  width: 16px;
  height: 16px;
  border-top: 4px solid currentColor;
  border-right: 4px solid currentColor;
  transform: rotate(45deg);
}
