.catalog-official {
  margin-bottom: 60px;
}

.catalog-official-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.catalog-official-title {
  display: flex;
  align-items: center;
  column-gap: 10px;
}

.catalog-shield {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.catalog-shield svg {
  width: 30px;
  height: 30px;
}

.catalog-official h1 {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  line-height: 100%;
  letter-spacing: -0.5px;
  color: var(--text-dark);
}

.catalog-official-more {
  height: 32px;
  display: flex;
  align-items: center;
  column-gap: 10px;
  flex-shrink: 0;
  padding: 0 12px;
  border-radius: 8px;
  background-color: var(--gray-light);
  font-size: 15px;
  font-weight: 600;
  line-height: 100%;
  letter-spacing: -0.5px;
  color: var(--gray);
  text-decoration: none;
}

html[data-theme="dark"] .catalog-official-more {
  background: #1e222b;
}

.catalog-official-more:after {
  content: "";
  width: 16px;
  height: 16px;
  background: url("../../assets/arrow-2.svg") no-repeat center;
  background-size: 100%;
  transition: transform 0.3s ease-in-out;
}

.catalog-official-more:hover:after {
  transform: translateX(2px);
}

.catalog-categories {
  height: 48px;
  margin-bottom: 24px;
}

.catalog-categories__wrapper {
  height: 100%;
  display: flex;
  justify-content: space-between;
  column-gap: 4px;
  padding: 4px 3px;
  border-radius: 10px;
  background-color: var(--gray-light);
}

html[data-theme="dark"] .catalog-categories__wrapper {
  background-color: #2a2e39;
}

.catalog-categories__btn {
  height: 100%;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  column-gap: 8px;
  padding: 0 13px;
  border: 0;
  border-radius: 10px;
  background-color: transparent;
  font-size: 15px;
  font-weight: 600;
  line-height: 100%;
  letter-spacing: -0.5px;
  color: var(--gray);
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color 0.3s ease-in-out,
    color 0.3s ease-in-out;
  cursor: pointer;
}

.catalog-categories__btn--discount {
  color: var(--green-light);
}

.catalog-categories__btn:hover,
.catalog-categories__btn--active {
  background-color: var(--blue);
  color: var(--white);
}

.catalog-categories__btn--discount:hover,
.catalog-categories__btn--discount.catalog-categories__btn--active {
  background-color: var(--green-light);
}

.catalog-categories__btn--active {
  font-weight: 700;
}

.catalog-categories__btn:focus-within {
  box-shadow: var(--focus-ring);
}

.catalog-categories__btn img {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  transition: 0.3s filter ease-in-out;
}

.catalog-categories__btn:hover img,
.catalog-categories__btn--active img {
  filter: brightness(0) invert(1);
}

.catalog-official-all {
  display: none;
}

@media (max-width: 767px) {
  .catalog-official {
    margin-bottom: 12px;
  }

  body.catalog-page .catalog-official {
    margin-bottom: 0;
  }

  .catalog-official h1 {
    font-size: 18px;
  }

  .catalog-categories {
    padding: 4px;
    border-radius: 10px;
    background-color: var(--gray-light);
  }

  html[data-theme="dark"] .catalog-categories {
    background-color: #2a2e39;
  }

  .catalog-categories__wrapper {
    padding: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
  }

  .catalog-categories__wrapper::-webkit-scrollbar {
    display: none;
  }

  .catalog-categories__btn {
    padding: 0 20px;
  }

  .catalog-categories__btn:focus-within {
    box-shadow: none;
  }

  .catalog-official-all {
    width: 100%;
    height: 50px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin-top: 18px;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background-color: var(--gray-light);
    border: 1px solid #c8cfdc;
    font-size: 15px;
    font-weight: 700;
    line-height: 100%;
    letter-spacing: -0.5px;
    color: var(--gray);
    text-decoration: none;
  }

  html[data-theme="dark"] .catalog-official-all {
    background-color: #2c3242;
    border-color: #2c3242;
  }
}

@media (max-width: 525px) {
  .catalog-categories__btn {
    padding: 0 12px;
  }
}

@media (max-width: 445px) {
  .catalog-categories__btn {
    padding: 0 8px;
  }
}

@media (max-width: 390px) {
  .catalog-categories__btn {
    padding: 0 16px;
  }
}
