.home-page {
  padding-block: 0;
}

.home-page__container {
  display: grid;
  gap: clamp(2rem, 5vw, 4.5rem);
  padding-block: clamp(1.5rem, 4vw, 3rem) clamp(3rem, 6vw, 5rem);
}

.home-categories-carousel {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  overflow: hidden;
}

.home-categories-carousel__header {
  display: none;
}

.home-categories-carousel__viewport {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.home-categories-carousel__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 112px;
  grid-template-rows: repeat(2, auto);
  gap: 1.15rem clamp(1rem, 2vw, 2.2rem);
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0 3rem;
}

.home-categories-carousel__track::-webkit-scrollbar {
  display: none;
}

.home-category-card {
  display: grid;
  justify-items: center;
  gap: 0.55rem;
  color: var(--color-ink);
  text-align: center;
  text-decoration: none;
}

.home-category-card__image-wrap {
  position: relative;
  display: grid;
  place-items: center;
  width: 104px;
  height: 104px;
  border-radius: 999px;
  background: var(--color-surface);
  overflow: hidden;
}

.home-category-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-category-card__name {
  display: -webkit-box;
  min-height: 2.75rem;
  overflow: hidden;
  color: var(--color-ink);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.28;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.home-categories-carousel__arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 36px;
  min-height: 36px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--color-ink);
  box-shadow: 0 8px 18px rgba(35, 33, 41, 0.1);
  transform: translateY(-50%);
}

.home-categories-carousel__arrow--prev {
  left: 0.35rem;
}

.home-categories-carousel__arrow--next {
  right: 0.35rem;
}

.home-categories-carousel__arrow:disabled {
  cursor: default;
  opacity: 0.34;
}

.home-categories-carousel__arrow:disabled:hover {
  background: rgba(255, 255, 255, 0.92);
  color: var(--color-ink);
}

.home-categories-carousel__arrow img {
  width: 22px;
  height: 22px;
}

.home-promotion-carousel {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
}

.home-promotion-carousel__viewport {
  position: relative;
  overflow: hidden;
}

.home-promotion-carousel__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  gap: 1rem;
  overflow-x: auto;
  overscroll-behavior: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.home-promotion-carousel__track::-webkit-scrollbar {
  display: none;
}

.home-promotion-banner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(230px, 0.82fr) minmax(380px, 1fr);
  align-items: stretch;
  min-height: clamp(315px, 31vw, 395px);
  padding: clamp(1.15rem, 2.8vw, 2.2rem);
  padding-bottom: 0;
  border: 1px solid rgba(194, 67, 102, 0.16);
  border-radius: 8px;
  background:
    radial-gradient(circle at 20% 25%, rgba(255, 255, 255, 0.9) 0 16%, transparent 34%),
    linear-gradient(135deg, #fff6fb 0%, #fce5ef 46%, #f7d1e2 100%);
  box-shadow: 0 20px 52px rgba(194, 67, 102, 0.14);
  overflow: hidden;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.home-promotion-banner--is-clickable {
  cursor: pointer;
}

.home-promotion-banner::before {
  content: "";
  position: absolute;
  inset: auto 38% -22% -10%;
  height: 58%;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
  transform: rotate(-7deg);
  pointer-events: none;
}

.home-promotion-banner--no-image {
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  padding-bottom: clamp(1.15rem, 2.8vw, 2.2rem);
}

.home-promotion-banner__art,
.home-promotion-banner__content {
  position: relative;
  z-index: 1;
}

.home-promotion-banner__art {
  align-self: end;
  display: flex;
  justify-content: center;
  min-width: 0;
  height: 100%;
  margin: 0;
}

.home-promotion-banner__image {
  display: block;
  height: 100%;
  max-height: clamp(300px, 31vw, 395px);
  object-fit: contain;
  object-position: center bottom;
}

.home-promotion-banner__content {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 0.72rem;
  min-width: 0;
  max-width: 560px;
  padding: clamp(1.1rem, 3vw, 2.7rem) clamp(0.4rem, 2vw, 1.5rem) clamp(1.3rem, 3vw, 2.4rem);
}

.home-promotion-banner__title {
  max-width: 17ch;
  margin: 0;
  color: var(--color-brand);
  font-size: clamp(1.95rem, 3.4vw, 3.45rem);
  font-weight: 900;
  line-height: 0.95;
}

.home-promotion-banner__subtitle {
  max-width: 44ch;
  margin: 0;
  color: var(--color-muted);
  font-size: clamp(0.95rem, 1.5vw, 1.15rem);
  font-weight: 500;
  line-height: 1.35;
}

.home-promotion-banner__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.52rem;
  width: fit-content;
  min-height: 42px;
  margin-top: 0.2rem;
  padding: 0.68rem 1rem;
  border: 0;
  border-radius: 8px;
  background: var(--color-brand);
  color: var(--color-on-brand);
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.1;
  text-decoration: none;
  transition:
    background-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.home-promotion-banner__button:hover {
  background: #9f3452;
  color: var(--color-on-brand);
}

.home-promotion-banner__button-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.home-promotion-carousel__arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 38px;
  min-height: 38px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--color-ink);
  box-shadow: 0 10px 22px rgba(35, 33, 41, 0.12);
  transform: translateY(-50%);
}

.home-promotion-carousel__arrow--prev {
  left: 0.55rem;
}

.home-promotion-carousel__arrow--next {
  right: 0.55rem;
}

.home-promotion-carousel__arrow:disabled {
  cursor: default;
  opacity: 0.36;
}

.home-promotion-carousel__arrow:disabled:hover {
  background: rgba(255, 255, 255, 0.92);
  color: var(--color-ink);
}

.home-promotion-carousel__arrow:not(:disabled):hover {
  background: var(--color-brand);
  color: var(--color-on-brand);
}

.home-promotion-carousel__arrow:not(:disabled):hover img {
  filter: brightness(0) invert(1);
}

.home-promotion-carousel__arrow img {
  width: 22px;
  height: 22px;
  transition: filter 160ms ease;
}

.home-promotion-carousel__dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 0.85rem;
}

.home-promotion-carousel__dot {
  width: 7px;
  min-height: 7px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(194, 67, 102, 0.28);
  transition:
    background-color 160ms ease,
    transform 160ms ease,
    width 160ms ease;
}

.home-promotion-carousel__dot.is-active {
  width: 22px;
  background: var(--color-brand);
}

.home-for-you {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
}

.home-for-you__header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.4rem;
  margin-bottom: 4.5rem;
}

.home-for-you__header span {
  display: block;
  width: 48px;
  height: 1px;
  background: rgba(35, 33, 41, 0.28);
}

.home-for-you__header h2 {
  margin: 0;
  color: var(--color-ink);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
}

.home-for-you__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1.6rem 1rem;
}

.home-for-you__actions {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.home-for-you__load-more {
  min-height: 42px;
  padding-inline: 1.8rem;
  border: 1px solid var(--color-brand);
  border-radius: 999px;
  background: var(--color-surface);
  color: var(--color-brand);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.home-for-you__load-more:hover {
  background: var(--color-brand);
  color: var(--color-on-brand);
}

.home-for-you__load-more.is-loading {
  opacity: 0.7;
}

.for-you-product-card--skeleton {
  pointer-events: none;
}

.skeleton-block,
.skeleton-line,
.skeleton-button {
  display: block;
  overflow: hidden;
  background: linear-gradient(
    90deg,
    rgba(246, 238, 243, 0.9) 0%,
    rgba(255, 255, 255, 0.95) 42%,
    rgba(246, 238, 243, 0.9) 84%
  );
  background-size: 220% 100%;
  animation: skeleton-shimmer 1.05s ease-in-out infinite;
}

.skeleton-block {
  aspect-ratio: 3 / 4;
}

.skeleton-line {
  width: 100%;
  height: 0.74rem;
  border-radius: 999px;
}

.skeleton-line--title {
  margin-top: 0.45rem;
}

.skeleton-line--price {
  width: 58%;
}

.skeleton-line--price-short {
  width: 42%;
}

.skeleton-button {
  width: 34px;
  min-height: 30px;
  border-radius: 7px;
}

@media (prefers-reduced-motion: reduce) {
  .skeleton-block,
  .skeleton-line,
  .skeleton-button {
    animation: none;
  }
}

.home-brands {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
}

.home-brands__header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.4rem;
  margin-bottom: 4.5rem;
}

.home-brands__header span {
  display: block;
  width: 48px;
  height: 1px;
  background: rgba(35, 33, 41, 0.28);
}

.home-brands__header h2 {
  margin: 0;
  color: var(--color-ink);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  text-align: center;
}

.home-brands__grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.8rem;
}

.home-brands__viewport {
  position: relative;
  overflow: hidden;
}

.home-brand-card {
  display: grid;
  min-width: 0;
  justify-items: center;
  align-content: center;
  padding: 1rem 0.8rem;
  border: 1px solid rgba(35, 33, 41, 0.06);
  border-radius: 8px;
  background: var(--color-surface);
  color: var(--color-ink);
  text-align: center;
  text-decoration: none;
  transition:
    border-color 160ms ease,
    transform 160ms ease;
}

.home-brand-card:hover {
  border-color: rgba(255, 105, 180, 0.5);
  transform: translateY(-2px);
}

.home-brand-card__media {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 84px;
  padding: 0.25rem;
  background: var(--color-surface);
}

.home-brand-card__media img {
  display: block;
  width: 100%;
  max-width: 150px;
  max-height: 66px;
  object-fit: contain;
}

.home-brand-card__fallback {
  color: var(--color-brand);
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.15;
}

.home-brands__arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 36px;
  min-height: 36px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--color-ink);
  box-shadow: 0 8px 18px rgba(35, 33, 41, 0.1);
  transform: translateY(-50%);
}

.home-brands__arrow--prev {
  left: 0.35rem;
}

.home-brands__arrow--next {
  right: 0.35rem;
}

.home-brands__arrow:disabled {
  cursor: default;
  opacity: 0.34;
}

.home-brands__arrow:disabled:hover {
  background: rgba(255, 255, 255, 0.94);
  color: var(--color-ink);
}

.home-brands__arrow img {
  width: 22px;
  height: 22px;
}

@media (max-width: 900px) {
  .home-page,
  .home-page__container,
  .home-promotion-carousel,
  .home-promotion-banner,
  .home-categories-carousel,
  .home-for-you,
  .home-brands {
    max-width: 100%;
    min-width: 0;
    overflow-x: clip;
  }

  .home-for-you,
  .home-for-you__grid {
    overflow: visible;
    overscroll-behavior: auto;
    -webkit-overflow-scrolling: auto;
  }

  .home-categories-carousel__track {
    grid-auto-columns: 98px;
    grid-template-rows: repeat(2, auto);
    gap: 1rem 1.4rem;
    padding-inline: 0;
  }

  .home-category-card__image-wrap {
    width: 92px;
    height: 92px;
  }

  .home-categories-carousel__arrow {
    display: none;
  }

  .home-promotion-carousel__track {
    gap: 0.75rem;
  }

  .home-promotion-banner,
  .home-promotion-banner--no-image {
    grid-template-columns: minmax(155px, 0.46fr) minmax(0, 0.54fr);
    align-items: stretch;
    min-height: clamp(250px, 42vw, 325px);
    padding: clamp(0.65rem, 2.2vw, 1rem);
    padding-bottom: 0;
  }

  .home-promotion-banner--no-image {
    grid-template-columns: minmax(0, 1fr);
    padding-bottom: clamp(0.65rem, 2.2vw, 1rem);
  }

  .home-promotion-banner__art {
    justify-content: center;
    height: 100%;
    max-height: clamp(240px, 42vw, 325px);
  }

  .home-promotion-banner__image {
    height: 100%;
    max-width: none;
  }

  .home-promotion-banner__content {
    justify-items: start;
    gap: 0.48rem;
    padding: clamp(1rem, 2.8vw, 1.45rem) clamp(0.25rem, 1.4vw, 0.7rem) clamp(1rem, 2.6vw, 1.3rem);
    text-align: left;
  }

  .home-promotion-banner__title {
    max-width: 18ch;
    font-size: clamp(1.35rem, 5.6vw, 2.35rem);
    line-height: 0.96;
  }

  .home-promotion-banner__subtitle {
    max-width: 28ch;
    font-size: clamp(0.74rem, 2.2vw, 0.94rem);
    line-height: 1.25;
  }

  .home-promotion-banner__button {
    min-height: 38px;
    padding: 0.6rem 0.82rem;
    font-size: 0.76rem;
  }

  .home-promotion-banner__button-icon {
    width: 16px;
    height: 16px;
  }

  .home-promotion-carousel__arrow {
    display: none;
  }

  .home-for-you__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.2rem 0.8rem;
  }

  .home-brands__grid {
    grid-auto-flow: column;
    grid-auto-columns: minmax(148px, 24vw);
    grid-template-columns: none;
    grid-template-rows: repeat(2, auto);
    gap: 0.75rem;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-inline: 2.8rem;
  }

  .home-brands__grid::-webkit-scrollbar {
    display: none;
  }
}

@media (max-width: 560px) {
  .home-categories-carousel {
    padding-block: 1.2rem;
    overflow: hidden;
  }

  .home-categories-carousel__track {
    grid-auto-columns: 70px;
    grid-template-rows: repeat(2, auto);
    gap: 0.75rem 0.85rem;
    padding-inline: 0;
  }

  .home-category-card__image-wrap {
    width: 64px;
    height: 64px;
  }

  .home-category-card__name {
    min-height: 1.6rem;
    font-size: 10px;
    line-height: 1.18;
  }

  .home-promotion-banner {
    border-radius: 8px;
    gap:20px;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    min-height: clamp(200px, 50vw, 238px);
    padding: 0.56rem 0.64rem 0;
  }

  .home-promotion-banner--no-image {
    grid-template-columns: minmax(0, 1fr);
    padding-bottom: 0.62rem;
  }

  .home-promotion-banner__art {
    justify-content: flex-start;
    min-width: 0;
    max-height: clamp(190px, 56vw, 238px);
  }

  .home-promotion-banner__image {
    width: 100%;
    max-height: clamp(190px, 56vw, 238px);
    object-position: left bottom;
  }

  .home-promotion-banner__content {
    min-width: 0;
    gap: 0.3rem;
    align-content: center;
    padding: 0.58rem 0 0.72rem 0.18rem;
  }

  .home-promotion-banner__title {
    max-width: 11ch;
    font-size: clamp(1.18rem, 5.6vw, 1.72rem);
    line-height: 0.94;
  }

  .home-promotion-banner__subtitle {
    display: block;
    max-width: 100%;
    overflow: visible;
    font-size: clamp(0.62rem, 2.48vw, 0.74rem);
    line-height: 1.18;
    -webkit-box-orient: initial;
    -webkit-line-clamp: unset;
  }

  .home-promotion-banner__button {
    min-height: 34px;
    gap: 0.32rem;
    padding: 0.48rem 0.58rem;
    font-size: 0.64rem;
  }

  .home-promotion-banner__button-icon {
    width: 13px;
    height: 13px;
  }

  .home-for-you__header {
    gap: 1rem;
    margin-bottom: 2rem;
  }

  .home-for-you__header span {
    width: 40px;
  }

  .home-for-you__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 0.7rem;
  }

  .home-brands__header {
    gap: 1rem;
    margin-bottom: 2rem;
  }

  .home-brands__header span {
    width: 34px;
  }

  .home-brands__grid {
    grid-auto-columns: 170px;
    grid-template-rows: repeat(2, auto);
    gap: 0.7rem;
    padding-inline: 0.15rem;
    animation: home-brands-scroll-hint 4.5s ease-in-out infinite;
  }

  .home-brands__grid.has-seen-scroll {
    animation: none;
  }

  .home-brand-card {
    padding: 0.72rem 0.65rem;
  }

  .home-brand-card__media {
    min-height: 88px;
    padding-inline: 0.15rem;
  }

  .home-brand-card__media img {
    max-width: 152px;
    max-height: 64px;
  }

  .home-brands__arrow {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-brands__grid {
    animation: none;
  }
}
