body.home-page .catalog-official {
  height: auto;
  overflow: visible;
  margin-bottom: 60px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.home-page .catalog-official-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

body.home-page .catalog-official-title {
  display: flex;
  align-items: center;
  column-gap: 10px;
}

body.home-page .catalog-shield {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

body.home-page .catalog-shield svg {
  width: 30px;
  height: 30px;
}

body.home-page .catalog-official h1 {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  line-height: 100%;
  letter-spacing: -0.5px;
  color: var(--text-dark);
}

body.home-page .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"] body.home-page .catalog-official-more {
  background: #1e222b;
}

body.home-page .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;
}

body.home-page .catalog-official-more:hover:after {
  transform: translateX(2px);
}

body.home-page .catalog-categories {
  height: 48px;
  margin-bottom: 24px;
}

body.home-page .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"] body.home-page .catalog-categories__wrapper {
  background-color: #2a2e39;
}

body.home-page .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;
  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;
}

body.home-page .catalog-categories__btn--discount {
  color: var(--green-light);
}

body.home-page .catalog-categories__btn--hit {
  color: #ff8d28;
}

body.home-page .catalog-categories__btn:hover,
body.home-page .catalog-categories__btn--active {
  background-color: var(--blue);
  color: var(--white);
}

body.home-page .catalog-categories__btn--hit:hover,
body.home-page .catalog-categories__btn--hit.catalog-categories__btn--active {
  background-color: #ff8d28;
}

body.home-page .catalog-categories__btn--discount:hover,
body.home-page .catalog-categories__btn--discount.catalog-categories__btn--active {
  background-color: var(--green-light);
}

body.home-page .catalog-categories__btn--active {
  font-weight: 700;
}

body.home-page .catalog-categories__btn:focus-within {
  box-shadow: var(--focus-ring);
}

body.home-page .catalog-categories__btn img {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  transition: 0.3s filter ease-in-out;
}

body.home-page .catalog-categories__btn:hover img,
body.home-page .catalog-categories__btn--active img {
  filter: brightness(0) invert(1);
}

body.home-page .catalog-official-all {
  display: none;
}

body.home-page .catalog-feature-grid {
  --product-card-min-height: 296px;
  width: 100%;
  margin-top: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-auto-flow: row;
  grid-auto-columns: auto;
  grid-auto-rows: minmax(var(--product-card-min-height), auto);
  justify-content: start;
  gap: 16px;
  overflow: visible;
  overscroll-behavior-inline: auto;
  scroll-behavior: auto;
  scroll-snap-type: none;
  scrollbar-width: auto;
  cursor: default;
  touch-action: auto;
  user-select: auto;
}

body.home-page .catalog-feature-grid .product-card {
  min-height: var(--product-card-min-height);
}

body.home-page .catalog-feature-grid.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
  scroll-snap-type: none;
}

body.home-page .catalog-feature-grid img {
  -webkit-user-drag: none;
  user-select: none;
}

body.home-page .catalog-feature-grid::-webkit-scrollbar {
  display: none;
}

@media (max-width: 767px) {
  body.home-page .catalog-official {
    margin-bottom: 12px;
  }

  body.home-page .catalog-feature-grid {
    --product-card-min-height: 0;
    --product-title-height: 52px;
    --product-price-gap: 14px;
    --product-button-height: 48px;
    order: 3;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-right: 0;
    padding: 0;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  body.home-page .catalog-feature-grid .product-card {
    width: 100%;
    min-width: 0;
    max-width: none;
    min-height: 0;
    height: auto;
    border-radius: 14px;
    background: var(--surface);
    box-shadow: 0px 11.53px 24.7px 0px #1428501a;
  }

  body.home-page .catalog-feature-grid .product-card:nth-child(n + 3) {
    display: flex;
  }

  body.home-page .catalog-feature-grid .product-card:nth-child(n + 7) {
    display: none;
  }

  body.home-page .catalog-feature-grid .product-cover {
    width: 100%;
    height: 90px;
    max-height: none;
    aspect-ratio: auto;
  }

  .catalog-official .catalog-feature-grid .product-cover img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: cover;
  }

  body.home-page .catalog-feature-grid .product-body {
    padding: 10px 10px 15px;
  }

  body.home-page .catalog-feature-grid .product-body h3 {
    height: 42px;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 700;
    line-height: 100%;
  }

  body.home-page .catalog-feature-grid .price-line {
    height: 15px;
    gap: 8px;
    margin-bottom: 20px;
  }

  body.home-page .catalog-feature-grid .price-line strong {
    font-size: 18px;
    font-weight: 700;
    line-height: 13px;
  }

  body.home-page .catalog-feature-grid .price-line del {
    font-size: 12px;
    font-weight: 500;
  }

  body.home-page .catalog-feature-grid .product-body button,
  body.home-page .catalog-feature-grid .product-body a {
    height: 40px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
  }

  body.home-page .catalog-feature-grid .discount {
    width: auto;
    height: 26px;
    padding: 0 14px;
    border-radius: 0 13px 0 13px;
    font-size: 12px;
    font-weight: 600;
  }

  body.home-page .catalog-official h1 {
    font-size: 18px;
  }

  body.home-page .catalog-categories {
    padding: 4px;
    border-radius: 10px;
    background-color: var(--gray-light);
  }

  html[data-theme="dark"] body.home-page .catalog-categories {
    background-color: #2a2e39;
  }

  .catalog-official .catalog-categories__wrapper {
    justify-content: flex-start;
  }

  body.home-page .catalog-categories__wrapper {
    padding: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
  }

  body.home-page .catalog-categories__wrapper::-webkit-scrollbar {
    display: none;
  }

  body.home-page .catalog-categories__btn {
    padding: 0 20px;
  }

  body.home-page .catalog-categories__btn:focus-within {
    box-shadow: none;
  }

  body.home-page .catalog-official-all {
    width: 100%;
    height: 50px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin-top: 18px;
    padding: 0;
    border: 1px solid #c8cfdc;
    border-radius: 10px;
    background-color: var(--gray-light);
    font-size: 15px;
    font-weight: 700;
    line-height: 100%;
    letter-spacing: -0.5px;
    color: var(--gray);
    text-decoration: none;
  }

  html[data-theme="dark"] body.home-page .catalog-official-all {
    background-color: #2c3242;
    border-color: #2c3242;
  }
}

@media (max-width: 525px) {
  body.home-page .catalog-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.home-page .catalog-feature-grid .product-card:nth-child(n + 5) {
    display: none;
  }

  body.home-page .catalog-categories__btn {
    padding: 0 12px;
  }
}

@media (max-width: 445px) {
  body.home-page .catalog-categories__btn {
    padding: 0 16px;
  }
}

@media (max-width: 390px) {
  body.home-page .catalog-categories__btn {
    padding: 0 16px;
  }
}
