/* ─────────────────────────────────────────
   BLOCK: HEADER
───────────────────────────────────────── */
.header {
  background: var(--gray-bg);
  display: flex;
  align-items: stretch;
}

/* Обёртка — центрирует лого + контент при viewport > 1600px.
   Без неё лого улетает к левому краю экрана на сверхшироких мониторах. */
.header__wrapper {
  display: flex;
  align-items: stretch;
  width: 100%;
}

.header__inner {
  padding: 8px 28px 8px 110px;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.header__main {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* ─────────────────────────────────────────
   BLOCK: SITE-HEADER
   Общая оболочка: logo (слева) + right (справа)
───────────────────────────────────────── */
.site-header {
  display: flex;
  align-items: stretch;
  background: var(--gray-bg);
  padding: 0 24px;
}

/* ─────────────────────────────────────────
   BLOCK: SITE-HEADER__RIGHT (правая колонка)
───────────────────────────────────────── */
.site-header__right {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding-left: 20px;
}

/* ─────────────────────────────────────────
   СТРОКА 1: TOP-BAR
───────────────────────────────────────── */
.top-bar__inner {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  font-size: 12px;
  color: var(--gray-text);
}

/* ─────────────────────────────────────────
   Строка 2: поиск + иконки
───────────────────────────────────────── */
.header__main {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 10px 0;
}

.header__search {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.header__catalog-btn:hover {
  background: #222;
}

.header__catalog-label--mobile {
  display: none;
}

.header__catalog-icon {
  width: 20px;
  height: 20px;
  display: block;
  flex-shrink: 0;
}

/* ─────────────────────────────────────────
   BLOCK: LOGO
───────────────────────────────────────── */

.logo__img {
  width: 196.82px;
  height: auto;
}

.logo {
  min-width: 170px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.logo__tagline {
  font-family: 'Inter', 'Segoe UI', sans-serif;
  letter-spacing: 0.04em;
  font-weight: 300;
  font-size: 12px;
  margin-left: 60px;
  color: var(--black);
  margin-top: 6px;
  line-height: 1.3;
}

/* ─────────────────────────────────────────
   HEADER: SEARCH AREA
───────────────────────────────────────── */
.header__search {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.header__catalog-btn {
  height: 40px;
  background: var(--black);
  color: #fff;
  padding: 9px 18px;
  border: none;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}


.header__catalog-icon {
  width: 20px;
  height: 8px;
  display: block;
}

/* ─────────────────────────────────────────
   BLOCK: SEARCH-BOX
───────────────────────────────────────── */
.search-box {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0px 2px 0px 15px;
  flex: 1;
  max-width: 800px;
  /* gap: 8px; */
  background: #fff;
}

.search-box__icon {
  height: 20px;
  width: 20px;
}

.search-box__input {
  padding: 11px;
  border: none;
  outline: none;
  font-size: 14px;
  width: 100%;
  color: var(--gray-dark);
  background: transparent;
  font-family: inherit;
}

/* Кнопка поиска — скрыта по умолчанию, появляется при активном поле */
.search-box__btn {
  display: none;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  flex-shrink: 0;
  width: 37px;
  height: 34px;
  background: var(--purple, #7B35B5);
  border: none;
  cursor: pointer;
  padding: 0;
}

.search-box__btn-icon {
  width: 18px;
  height: 18px;
  display: block;
  filter: brightness(0) invert(1);
}

.search-box--active .search-box__btn {
  display: flex;
}

/* Выпадающая история */

.search-box__dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0%;
  width: 100%;
  max-width: 800px;
  background: #fff;
  border-top: 1px solid var(--gray-light);
  box-shadow: 0 4px 4px rgba(0, 0, 0, .09);
  z-index: 200;
  padding: 20px;
}

.search-box--active .search-box__dropdown {
  display: block;
}

.search-box__dropdown-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.search-box__dropdown-title {
  font-size: 14px;
  font-weight: 600;
  color: #6C6C6C;
}

.search-box__clear-all {
  background: none;
  border: none;
  font-size: 14px;
  color: var(--gray-mid, #9ca3af);
  cursor: pointer;
  padding: 0;
  font-family: inherit;
}

.search-box__clear-all:hover {
  color: var(--black);
}

.search-box__history {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.search-box__history-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.search-box__history-item:last-child {
  border-bottom: none;
}

.search-box__history-text {
  font-size: 14px;
  color: #6C6C6C;
  cursor: pointer;
}

.search-box__history-text:hover {
  color: var(--purple);
}

.search-box__history-remove {
  background: none;
  border: none;
  font-size: 18px;
  color: var(--gray-mid, #9ca3af);
  cursor: pointer;
  padding: 0 2px;
  line-height: 1;
  font-family: inherit;
}

.search-box__history-remove:hover {
  color: var(--black);
}

/* Выпадающие подсказки товаров */
.search-box__suggestions {
  display: none;
  position: absolute;
  top: 100%;
  left: 0%;
  width: 100%;
  max-width: 800px;
  background: #fff;
  border-top: 1px solid var(--gray-light);
  box-shadow: 0 4px 4px rgba(0, 0, 0, .09);
  z-index: 200;
  padding: 20px;
}

.search-box__product-image {
  max-width: 64px;
  max-height: 64px;
}

.search-box__products-head {
  font-size: 15px;
  font-weight: 600;
  color: #6C6C6C;
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}

/* список */
.search-box__products-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 20px;
}

.search-box__search-product {
  display: flex;
  gap: 30px;
}

.search-product__text {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.search-box__show-all {
  color: var(--purple);
  font-size: 15px;
  font-weight: 600;
  text-decoration: underline;
}

.search-box--typing .search-box__history-block {
  display: none;
}

.search-box--typing .search-box__suggestions {
  display: block;
}

/* ─────────────────────────────────────────
   HEADER: ICON BUTTONS
───────────────────────────────────────── */
.header__icons {
  display: flex;
  align-items: center;
  gap: 20px;
  background: none;
  border: none;
}

.header__icon {
  background: none;
  border: none;
}

.header__icon-btn {
  background: none;
  border: none;
  color: var(--gray-dark);
  stroke: #202020;
  stroke-width: 2px;
  /* width: 40px;
  height: 40px; */
  position: relative;
  display: flex;
}

/* ─────────────────────────────────────────
   HEADER: SUB-NAV
───────────────────────────────────────── */
.header__subnav {
  display: flex;
  gap: 34px;
  padding-top: 10px;
  font-size: 14px;
}

.header__subnav-link {
  color: var(--gray-mid);
}

.header__subnav-link:hover {
  color: var(--purple);
}