.header {
  width: 100%;
  z-index: 100;
  background-color: transparent;
  padding: 1rem 3rem;
  transition: all 0.3s ease;
  margin-bottom: 0.875rem;
}

.header__container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 3.75rem;
}

.header__logo img {
  height: 3.375rem;
  width: 9.375rem;
}

.header__menu {
  display: flex;
  gap: 0.25rem;
  list-style: none;
}

.header__menu-item a {
  color: #000000;
  font-weight: 300;
  font-size: 1.315rem;
  line-height: 1.5;
  letter-spacing: -0.05em;
  padding: 0.625rem 2rem;
  padding-top: 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid transparent;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  white-space: nowrap;
}

.header__menu-item a:hover {
  border-color: #000000;
}

.active-link {
  position: relative;
  pointer-events: none;
  cursor: default;
}

.active-link::before {
  content: "";
  position: absolute;
  left: 0.667rem;
  top: 50%;
  transform: translateY(-50%);
  width: 0.667rem;
  height: 0.667rem;
  background-color: #e64410;
  border-radius: 50%;
}

.header__buttons {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.header__icon-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 0.5rem;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s ease;
  background-color: transparent;
}

.header__icon-btn:hover {
  border-color: #000000;
}

.header__icon-btn img {
  width: 1.5rem;
  height: 1.5rem;
  display: block;
  object-fit: contain;
  filter: invert(1);
}

.header__cart-btn {
  position: relative;
}

.header__cart-count {
  position: absolute;
  top: 0.25rem;
  right: 0.25rem;
  background-color: #e64410;
  color: #fff;
  font-size: 0.75rem;
  font-weight: bold;
  width: 1.125rem;
  height: 1.125rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header__burger-btn {
  display: none;
}

.header__burger {
  width: 1.5rem;
  height: 1.5rem;
  display: block;
}

.header__burger-btn .header__burger {
  filter: none;
}

/* Адаптив хедер  */

@media (max-width: 960px) {
  .header {
    padding: 1rem 2rem;
    border-bottom: 1px solid #0000004d;
  }

  .header__nav {
    display: none;
  }

  .header__burger-btn {
    display: flex;
  }
}

@media (max-width: 480px) {
  .header {
    padding: 0.625rem 1rem;
  }

  .header__logo img {
    height: 2.5rem;
    width: 6.938rem;
  }

  .header__buttons {
    display: flex;
    gap: 0.5rem;
    align-items: center;
  }

  .header__icon-btn {
    width: 3rem;
    height: 3rem;
  }

  .header__icon-btn img {
    width: 1.25rem;
    height: 1.25rem;
  }
}

/* Поиск  */

.search {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  visibility: hidden;
  opacity: 0;
  transition:
    visibility 0.3s,
    opacity 0.3s;
}

.search--open {
  visibility: visible;
  opacity: 1;
}

.search__container {
  position: relative;
  z-index: 110;
  display: flex;
  gap: 2.5rem;
  width: 100vw;
  min-height: auto;
  background-color: #fcf7f3;
  padding: 2rem 3rem 2.5rem;
}

.search--open .search__container {
  transform: translateY(0);
}

.search__content {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  width: 100%;
}

.search__search-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  gap: 1rem;
}

.search-bar__input {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
}

.search-bar__input-icon {
  padding: 0.5rem;
}

.search-bar__input img {
  width: 1.25rem;
  height: 1.25rem;
  filter: invert(1);
}

.search-bar__input input {
  flex: 1;
  border: none;
  background: none;
  outline: none;
  font-size: 1rem;
  padding: 0.5rem 0;
  color: #121011;
}

.search-bar__input input::placeholder {
  color: #475467;
}

.search-bar__close-icon {
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: 1rem;
}

.search-bar__close-icon img {
  width: 1rem;
  height: 1rem;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.search-bar__close-icon:hover img {
  opacity: 1;
}

.search__description {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin-top: auto;
}

.search__message {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: center;
  max-width: 40rem;
  margin: auto;
}

.search__message-line {
  font-size: 2rem;
  color: #121011;
  letter-spacing: -0.05em;
}

.search__message-line--secondary {
  font-size: 1.25rem;
  color: #121011;
  line-height: 1.4;
  letter-spacing: -0.05em;
}

.search__success {
  display: none;
}

.search__success--active {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
}

.search__success-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.success-header-count,
.success-header-link {
  font-size: 1rem;
  line-height: 1.4;
  letter-spacing: -0.05em;
  color: #667085;
  transition: all 0.2s ease;
}

.success-header-link {
  text-decoration: underline;
}

.success-header-link:hover {
  color: #121011;
}

.search__success-list {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
}

/* .search__success-list::-webkit-scrollbar {
  display: none;
} */

.search__success-list-item {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-width: 19.813rem;
  max-width: 19.813rem;
  /*height: 30.688rem;*/
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.2s ease;
  position: relative;
}

.list-item__cart-btn {
  position: absolute;
  bottom: 8.5rem;
  right: 1rem;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background-color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.8);
  transition: all 0.2s ease;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  padding: 0;
}

.list-item__cart-btn img {
  width: 1.25rem !important;
  height: 1.25rem !important;
  object-fit: contain;
  transition: filter 0.3s ease;
  filter: brightness(0);
  pointer-events: none;
}

.search__success-list-item:hover .list-item__cart-btn {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.list-item__cart-btn:hover {
  background-color: #e64410;
}

.list-item__cart-btn:hover img {
  filter: brightness(0) invert(1);
}

.list-item__cart-btn:active {
  transform: scale(0.95);
}

.search__success-list-item:hover .list-item__info-title h4,
.search__success-list-item:hover .list-item__info-title h3,
.search__success-list-item:hover .list-item__info-price {
  color: #e64410;
}

.list__item-link {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.list-item__info-title h4,
.list-item__info-title h3,
.list-item__info-price {
  color: #121011;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.05em;
  transition: color 0.2s ease;
}

.list__item-image {
  width: 100%;
  height: 23.125rem;
  object-fit: cover;
}

.list-item__info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.list-item__info-title {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.list-item__info-title h4,
.list-item__info-title h3,
.list-item__info-price {
  color: #121011;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.05em;
}

.list-item__info-price {
  font-size: 1.5rem;
}

/* Поиск адаптив  */

@media (max-width: 1440px) {
  .search__message-line {
    font-size: 1.5rem;
  }

  .search__message-line--secondary {
    font-size: 1rem;
  }
}

@media (max-width: 960px) {
  .search__success-list {
    overflow-x: auto;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.5rem;
  }

  .search__success-list::-webkit-scrollbar {
    display: none;
  }

  .search__success-list-item {
    flex-shrink: 0;
  }

  .list-item__cart-btn {
    bottom: 7.75rem;
    opacity: 1;
    visibility: visible;
    transform: scale(1);
  }
}

@media (max-width: 768px) {
  .search__success-list {
    gap: 1rem;
  }

  .search__success-list-item {
    width: 16rem;
    /*height: 26rem;*/
  }

  .list__item-image {
    height: 19rem;
  }
}

@media (max-width: 480px) {
  .search__container {
    padding: 2rem 1rem 2.5rem;
  }

  .search__success-list {
    gap: 0.75rem;
  }

  .search__success-list-item {
    width: 14rem;
    height: 23rem;
  }

  .list__item-image {
    height: 16rem;
  }

  .list-item__info-price {
    font-size: 1.25rem;
  }

  .list-item__info-title h4,
  .list-item__info-title h3 {
    font-size: 0.875rem;
  }
}

/* Меню  */

.menu {
  position: fixed;
  z-index: 110;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: flex-start;
  background-color: rgba(13, 20, 33, 0.5);
  visibility: hidden;
  opacity: 0;
  transition:
    visibility 0.2s,
    opacity 0.2s ease;
}

.menu--open {
  visibility: visible;
  opacity: 1;
}

.menu__container {
  position: relative;
  z-index: 110;
  display: flex;
  flex-direction: column;
  width: 100vw;
  min-height: 25rem;
  background-color: #fcf7f3;
}

.menu__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 5.85rem;
  padding: 1rem 2rem;
  width: 100%;
  border-bottom: 1px solid #0000004d;
}

.icon-btn--search img,
.icon-btn--cart img {
  filter: invert(1);
}

.icon-btn--close img {
  filter: none;
  width: 1.25rem;
  height: 1.25rem;
}

.menu__content {
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 1;
  padding: 3rem 3rem 3rem 2.5rem;
}

.menu__content-list {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.menu__content-list li {
  font-size: 1rem;
  line-height: 1.5;
  letter-spacing: -0.05em;
  cursor: pointer;
  padding: 0.5rem 0;
  position: relative;
  display: inline-block;
  width: auto;
  transition: color 0.2s ease;
}

.menu__content-list li a {
  color: black;
}

.menu__content-list li:hover {
  opacity: 0.8;
  transition: all 0.2s ease;
}

/* Меню адаптив  */

@media (max-width: 480px) {
  .menu__header {
    padding: 1rem;
    height: auto;
  }

  .icon-btn--close img {
    filter: none;
    width: 1rem;
    height: 1rem;
  }
}
