.featured-products {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 40px;
  margin-top: 160px;
}

.featured-products__title {
  font-family: var(--font-heading);
  font-size: 48px;
  font-variation-settings:
    "wdth" 100,
    "wght" 500;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
}

.featured-products__list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
  width: 100%;
}

:is(.featured-products, .product-catalog) .recommended-product-card {
  display: flex;
  width: calc((100% - 72px) / 4);
  max-width: 312px;
  min-width: 0;
  min-height: 471px;
  flex: 0 1 calc((100% - 72px) / 4);
  flex-direction: column;
  overflow: hidden;
  border-radius: 16px;
  background: rgb(255 255 255 / 60%);
  box-shadow: var(--shadow-block);
}

:is(.featured-products, .product-catalog) .recommended-product-card__media {
  position: relative;
  height: 215px;
  flex: 0 0 215px;
  overflow: hidden;
  background: var(--page-background);
}

:is(.featured-products, .product-catalog)
  .recommended-product-card__media
  > a:first-child {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
}

:is(.featured-products, .product-catalog) .recommended-product-card__image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100% !important;
  max-width: none;
  height: 100% !important;
  min-height: 0;
  object-fit: cover;
  object-position: center center;
  transition: transform 420ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

:is(.featured-products, .product-catalog)
  .recommended-product-card:hover
  .recommended-product-card__image,
:is(.featured-products, .product-catalog)
  .recommended-product-card:focus-within
  .recommended-product-card__image {
  transform: scale(1.055);
}

:is(.featured-products, .product-catalog) .recommended-product-card__category {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: calc(100% - 24px);
  padding: 8px 10px;
  border-radius: 8px;
  background: rgb(255 255 255 / 60%);
  box-shadow: 0 2px 4px rgb(0 0 0 / 7%);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
}

:is(.featured-products, .product-catalog)
  .recommended-product-card__category
  img {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  filter: brightness(0) saturate(100%) invert(50%) sepia(82%) saturate(2682%)
    hue-rotate(281deg) brightness(92%) contrast(86%);
  object-fit: contain;
}

:is(.featured-products, .product-catalog) .recommended-product-card__body {
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
  gap: 16px;
  padding: 15px 16px 16px;
}

:is(.featured-products, .product-catalog)
  .recommended-product-card__variations {
  display: flex;
  min-width: 0;
  flex-wrap: nowrap;
  gap: 6px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 2px;
  scrollbar-width: none;
}

:is(.featured-products, .product-catalog)
  .recommended-product-card__variations::-webkit-scrollbar {
  display: none;
}

:is(.featured-products, .product-catalog) .recommended-product-card__variation {
  min-width: max-content;
  padding: 6px 8px;
  border-radius: 4px;
  background: var(--color-white);
  box-shadow: 0 2px 3.5px rgb(0 0 0 / 7%);
  color: var(--color-text-secondary);
  font-family: var(--font-heading);
  font-size: 12px;
  font-variation-settings:
    "wdth" 100,
    "wght" 500;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
}

:is(.featured-products, .product-catalog)
  .recommended-product-card__variation.is-active {
  background: var(--primary-gradient);
  color: var(--color-white);
}

:is(.featured-products, .product-catalog)
  .recommended-product-card__variation:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}

:is(.featured-products, .product-catalog) .recommended-product-card__details {
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
  gap: 8px;
}

:is(.featured-products, .product-catalog) .recommended-product-card__title,
:is(.featured-products, .product-catalog) .recommended-product-card__price,
:is(.featured-products, .product-catalog)
  .recommended-product-card__price
  .amount {
  font-family: var(--font-heading);
  font-size: 20px;
  font-variation-settings:
    "wdth" 100,
    "wght" 600;
  font-weight: 600;
  line-height: 1.2;
}

:is(.featured-products, .product-catalog)
  .recommended-product-card__title
  a:hover {
  color: var(--color-primary);
}

:is(.featured-products, .product-catalog)
  .recommended-product-card__description {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  color: var(--color-text-secondary);
  font-size: 14px;
  line-height: 1.2;
}

:is(.featured-products, .product-catalog) .recommended-product-card__meta,
:is(.featured-products, .product-catalog) .recommended-product-card__form {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

:is(.featured-products, .product-catalog) .recommended-product-card__form {
  flex-wrap: wrap;
}

:is(.featured-products, .product-catalog) .recommended-product-card__europe {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 6px 12px;
  border-radius: 30px;
  background: #d4d0ff;
  box-shadow: 0 2px 2px rgb(0 0 0 / 7%);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}

:is(.featured-products, .product-catalog)
  .recommended-product-card__europe
  img {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}

:is(.featured-products, .product-catalog) .recommended-product-card__price {
  display: inline-flex;
  min-width: 0;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 8px;
  white-space: normal;
}

:is(.featured-products, .product-catalog)
  .recommended-product-card__price
  .price {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 8px;
}

:is(.featured-products, .product-catalog)
  .recommended-product-card__price
  :is(del, ins) {
  display: inline-flex;
  white-space: nowrap;
}

:is(.featured-products, .product-catalog)
  .recommended-product-card__price
  del {
  color: var(--color-text-secondary);
  opacity: 1;
  text-decoration-color: currentcolor;
  text-decoration-line: line-through;
  text-decoration-skip-ink: none;
  text-decoration-thickness: 1.5px;
}

:is(.featured-products, .product-catalog)
  .recommended-product-card__price
  del
  .amount {
  color: inherit;
  font-size: 0.75em;
  font-weight: 500;
}

:is(.featured-products, .product-catalog)
  .recommended-product-card__price
  ins {
  background: transparent;
  text-decoration: none;
}

:is(.featured-products, .product-catalog)
  .recommended-product-card__price
  :is(del, ins)
  bdi {
  white-space: nowrap;
}

:is(.featured-products, .product-catalog)
  button.recommended-product-card__cart.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 44px;
  margin-left: auto;
  padding: 12px 24px;
  border: 0;
  border-radius: 12px;
  background: var(--color-primary);
  box-shadow:
    inset 4px 4px 14px rgb(0 0 0 / 25%),
    inset -4px -4px 14px rgb(255 255 255 / 25%);
  color: var(--color-white);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

:is(.featured-products, .product-catalog)
  button.recommended-product-card__cart.button:hover,
:is(.featured-products, .product-catalog)
  button.recommended-product-card__cart.button:focus-visible {
  background: var(--color-primary);
  color: var(--color-white);
}

:is(.featured-products, .product-catalog) .recommended-product-card__cart img {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
}

:is(.featured-products, .product-catalog)
  button.recommended-product-card__cart.is-loading {
  opacity: 0.72;
  cursor: wait;
}

.featured-products__more {
  min-width: 290px;
}

@media (max-width: 1200px) and (min-width: 769px) {
  .featured-products .recommended-product-card {
    width: 312px;
    flex-basis: 312px;
  }
}

@media (max-width: 768px) {
  .featured-products {
    gap: 32px;
    margin-top: 80px;
  }

  .featured-products__title {
    max-width: 336px;
    font-size: 36px;
  }

  .featured-products__list {
    display: flex;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 12px;
    width: calc(100% + var(--page-gutter));
    margin-right: calc(-1 * var(--page-gutter));
    margin-bottom: -10px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 2px var(--page-gutter) 10px 0;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .featured-products__list::-webkit-scrollbar {
    display: none;
  }

  :is(.featured-products, .product-catalog) .recommended-product-card {
    min-height: 379px;
    max-width: 200px;
    flex: 0 0 200px;
    border-radius: 12px;
    scroll-snap-align: start;
  }

  :is(.featured-products, .product-catalog) .recommended-product-card__media {
    height: 144px;
    flex-basis: 144px;
  }

  :is(.featured-products, .product-catalog)
    .recommended-product-card__category {
    top: 8px;
    right: 8px;
    gap: 4px;
    padding: 6px 8px;
    font-size: 10px;
  }

  :is(.featured-products, .product-catalog)
    .recommended-product-card__category
    img,
  :is(.featured-products, .product-catalog)
    .recommended-product-card__europe
    img {
    width: 12px;
    height: 12px;
    flex-basis: 12px;
  }

  :is(.featured-products, .product-catalog) .recommended-product-card__body {
    gap: 12px;
    padding: 16px 8px;
  }

  :is(.featured-products, .product-catalog)
    .recommended-product-card__variation {
    font-size: 10px;
  }

  :is(.featured-products, .product-catalog) .recommended-product-card__title,
  :is(.featured-products, .product-catalog) .recommended-product-card__price,
  :is(.featured-products, .product-catalog)
    .recommended-product-card__price
    .amount {
    font-size: 14px;
  }

  :is(.featured-products, .product-catalog)
    .recommended-product-card__description {
    -webkit-line-clamp: 3;
    font-size: 12px;
  }

  :is(.featured-products, .product-catalog) .recommended-product-card__europe {
    gap: 5px;
    padding: 5px 8px;
    font-size: 10px;
    width: 100%;
    justify-content: center;
  }

  :is(.featured-products, .product-catalog) .recommended-product-card__price {
    width: 100%;
  }

  :is(.featured-products, .product-catalog)
    button.recommended-product-card__cart.button {
    width: 100%;
    min-height: 44px;
    margin-left: 0;
    padding-inline: 12px;
  }

  .featured-products__more {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 499px) {
  :is(.featured-products, .product-catalog) .recommended-product-card {
    max-width: 161px;
    flex-basis: 161px;
  }
}

@media (prefers-reduced-motion: reduce) {
  :is(.featured-products, .product-catalog) .recommended-product-card__image {
    transition: none;
  }
}
