body.home .sc-catalog-grid .sc-catalog-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto 36px 1fr;
  border: 1px solid #e5dfd3;
  border-radius: 10px;
  background: #fffdf9;
  box-shadow: 0 2px 8px rgb(57 43 28 / 7%);
}

body.home .sc-catalog-card > .sc-catalog-card__link {
  grid-row: 1;
}

body.home .sc-catalog-grid .sc-catalog-card .sc-catalog-card__name {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  min-height: 42px;
  height: 42px;
  margin: 0;
  padding-block: 0;
  line-height: 21px;
}

body.home .sc-catalog-card > .sc-catalog-price {
  display: flex;
  grid-row: 2;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  column-gap: .25em;
  min-width: 0;
  margin: 0;
  padding: 0 3px;
  font-size: clamp(13px, 3.4vw, 17px);
  line-height: 1.25;
}

body.home .sc-catalog-card > .sc-buy-controls {
  grid-row: 3;
  align-self: start;
  grid-template-columns: minmax(0, 1fr);
  gap: 7px;
  margin: 0;
  padding: 0 clamp(5px, 2vw, 12px) 12px;
}

body.home .sc-catalog-card .sc-buy-controls .sc-buy-qty {
  box-sizing: border-box;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 100%;
  max-width: none;
  min-height: 44px;
}

body.home .sc-catalog-card .sc-buy-controls .sc-buy-qty :is(button, input) {
  box-sizing: border-box;
  min-width: 0;
  width: 100%;
  min-height: 42px;
}

body.home .sc-catalog-card .sc-buy-controls .sc-buy-add {
  box-sizing: border-box;
  width: 100%;
  min-height: 44px;
  margin: 0;
}

body.home .sc-announcement {
  align-items: center;
}

body.home .sc-announcement .sc-announcement__track,
body.home .sc-announcement .sc-announcement__group {
  align-items: center;
}

body.home .sc-announcement .sc-announcement__group {
  justify-content: center;
}

body.home .sc-announcement .sc-announcement__message {
  padding: 9px clamp(22px, 5vw, 56px);
  line-height: 1.45;
}

body.home .sc-announcement .sc-announcement__message[aria-hidden="true"] {
  display: none;
}

body.home .sc-front .sc-front__name {
  box-sizing: border-box;
  min-height: 52px;
  padding: 8px 6px;
  place-items: center;
  text-align: center;
}

body.home .sc-front a.sc-front__card[href] {
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

body.home .sc-front a.sc-front__card[href]:is(:active, :focus-visible) {
  border-color: #a67c2e;
  box-shadow: 0 0 0 2px #a67c2e;
}

@media (hover: hover) {
  body.home .sc-front a.sc-front__card[href]:hover {
    border-color: #a67c2e;
    box-shadow: 0 0 0 2px #a67c2e;
  }
}

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

  body.home :is(#sc-hair, #sc-skin).sc-pillar {
    padding: 18px clamp(10px, 4vw, 22px);
  }

  body.home :is(#sc-hair, #sc-skin) .sc-grid-2 {
    gap: 12px;
  }

  body.home :is(#sc-hair, #sc-skin) .sc-grid-2__media:has(.sc-home-full-media-frame) {
    width: fit-content;
    max-width: 100%;
    margin-inline: auto;
  }

  body.home :is(#sc-hair, #sc-skin) .sc-home-full-media-frame {
    width: fit-content !important;
    max-width: 100%;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: auto !important;
    padding: 0;
    overflow: hidden;
  }

  body.home :is(#sc-hair, #sc-skin) img.sc-home-full-media {
    display: block;
    width: auto !important;
    height: clamp(180px, 60vw, 245px) !important;
    max-width: 100%;
    max-height: none !important;
    aspect-ratio: auto;
    object-fit: contain !important;
  }

  body.home :is(#sc-hair, #sc-skin) .sc-grid-2__content :is(.sc-eyebrow, .sc-title, .sc-lead) {
    margin-block: 0 5px;
  }

  body.home :is(#sc-hair, #sc-skin) .sc-grid-2__content > p:last-child {
    margin: 9px 0 0 !important;
  }

  body.home #sc-hair .sc-pillar__list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px 6px;
    margin-block: 8px 0;
  }

  body.home #sc-hair .sc-pillar__list li {
    margin: 0;
    padding: 0;
    font-size: 12px;
    line-height: 1.4;
  }

  body.home #sc-hair .sc-pillar__list li::before {
    display: none;
  }

  body.home #sc-skin .sc-pillar__variants {
    gap: 4px;
    margin-block: 7px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.home .sc-front a.sc-front__card[href] {
    transition: none;
  }
}

body.home .sc-catalog-grid .sc-catalog-card .sc-home-catalog-photo {
  display: block;
  width: 100%;
  height: auto !important;
  aspect-ratio: 1;
  object-fit: contain;
  background: #fff;
}

body.home .sc-catalog-grid .sc-catalog-card:is(#sc-medical-soap, #sc-medical-soap ~ .sc-catalog-card) {
  background-color: #fff;
  scroll-margin-top: 100px;
}

body.home .sc-front .sc-hero-slider {
  overflow: hidden;
  max-height: none;
  aspect-ratio: auto;
  background: #f6f1e8;
}

body.home .sc-hero-slider__slides {
  aspect-ratio: 2.9;
  overflow: hidden;
  touch-action: pan-y pinch-zoom;
}

body.home .sc-hero-slider__slides a {
  display: block;
  width: 100%;
  height: 100%;
}

body.home .sc-hero-slider__slides img {
  display: block;
  width: 100%;
  height: 100% !important;
  max-height: none !important;
  object-fit: cover !important;
}

body.home .sc-hero-slider__slides [hidden] {
  display: none !important;
}

body.home .sc-hero-slider__controls {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #fcfbf8;
}

body.home .sc-hero-slider__controls button {
  display: grid;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  place-items: center;
  border: 0;
  background: transparent;
  color: #181818;
}

body.home .sc-hero-slider__dot::before {
  width: 9px;
  height: 9px;
  border: 1px solid #79643b;
  border-radius: 50%;
  background: #e5dfd3;
  content: '';
}

body.home .sc-hero-slider__dot[aria-current="true"]::before {
  background: #9b7329;
}

body.home .sc-hero-slider__controls button:focus-visible {
  outline: 2px solid #79643b;
  outline-offset: -4px;
}

body.home :is(.sc-catalog-price, .sc-skin-offers__price) del {
  color: #55524d;
  text-decoration: line-through;
}

body.home :is(.sc-catalog-price, .sc-skin-offers__price) ins {
  color: #181818;
  background: transparent;
  font-weight: 700;
  text-decoration: none;
}

@media (max-width: 767px) {
  body.home .sc-hero-slider__controls button {
    min-height: 36px;
  }

  body.home .sc-announcement .sc-announcement__message {
    padding-block: 5px;
    font-size: 12px;
  }
}
