.featured-collection-section {
  --ymay-gap: 20px;
}

.featured-collection-section .page-width {
  overflow: hidden;
}

.featured-collection-ymay {
  position: relative;
  align-items: stretch !important;
  row-gap: 24px !important;
}

.featured-collection-ymay__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding-inline-end: 104px;
}

.featured-collection-ymay__intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
  max-width: 46rem;
}

.featured-collection-ymay__intro .block-heading {
  margin: 0;
  padding-inline-end: 0;
  font-size: clamp(22px, 2.2vw, 32px);
  font-weight: 700;
  line-height: 1.15;
}

.featured-collection-ymay__intro .block-description {
  margin: 0;
  max-width: 46ch;
  color: #767984;
  font-size: 16px;
  line-height: 1.5;
}

.featured-collection-ymay__intro .block-description :where(p) {
  margin: 0;
  color: inherit;
  font-size: inherit;
  line-height: inherit;
}

.featured-collection-ymay__carousel {
  position: relative;
  width: 100%;
}

.featured-collection-section .product-list__track.card-grid,
.featured-collection-section .product-list__theme-carousel .product-list__track,
.featured-collection-section .mobile\:product-list__theme-carousel .product-list__track {
  --column-gap: var(--ymay-gap);
  --row-gap: var(--ymay-gap);
  width: 100%;
  max-width: 100%;
  margin-inline: 0;
  padding-inline: 0;
  scroll-padding-inline: 0;
}

/* Hide overlay swatches — not in design */
.featured-collection-section .product-card__swatches {
  display: none;
}

@media (min-width: 960px) {
  theme-recommended-product[loaded] {
    display: contents;
  }

  /* Pull carousel arrows into the header top-right */
  .featured-collection-ymay__carousel .product-list__theme-carousel > div:has(.carousel-indicator__arrows),
  .featured-collection-section .product-list .block-heading~theme-recommended-product .product-list__theme-carousel > div:has(.carousel-indicator__arrows) {
    height: 0;
    margin: 0;
    padding: 0;
    overflow: visible;
    justify-content: flex-end;
  }

  .featured-collection-ymay__carousel .carousel-indicator__arrows,
  .featured-collection-section .product-list .block-heading~theme-recommended-product .carousel-indicator__arrows {
    position: absolute;
    inset-block-start: -78px;
    inset-inline-end: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 10px;
    width: auto;
    margin-block-start: 0;
    visibility: visible;
  }

  .featured-collection-ymay__carousel .carousel-indicator__arrow,
  .featured-collection-section .product-list .block-heading~theme-recommended-product .carousel-indicator__arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    opacity: 1;
    border: 1px solid rgb(var(--color-text) / 0.35);
    border-radius: 50%;
    background: #fff;
    color: rgb(var(--color-text));
    box-shadow: none;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease,
      opacity 0.2s ease;
  }

  .featured-collection-ymay__carousel .carousel-indicator__arrow::before,
  .featured-collection-ymay__carousel .carousel-indicator__arrow::after,
  .featured-collection-section .product-list .block-heading~theme-recommended-product .carousel-indicator__arrow::before,
  .featured-collection-section .product-list .block-heading~theme-recommended-product .carousel-indicator__arrow::after {
    content: none;
  }

  .featured-collection-ymay__carousel .carousel-indicator__arrow:not([disabled]):hover,
  .featured-collection-section .product-list .block-heading~theme-recommended-product .carousel-indicator__arrow:not([disabled]):hover {
    opacity: 1;
    border-color: #111;
    background: #111;
    color: #fff;
  }

  .featured-collection-ymay__carousel .carousel-indicator__arrow[disabled],
  .featured-collection-section .product-list .block-heading~theme-recommended-product .carousel-indicator__arrow[disabled] {
    opacity: 0.35;
    cursor: default;
  }

  .featured-collection-section .product-list__theme-carousel .product-list__track {
    --column-width: calc((100% - var(--column-gap) * (var(--gap-columns, var(--columns)) - 1)) / var(--columns));
  }
}

@media (min-width: 960px) and (max-width: 1279px) {
  .featured-collection-section .product-list__theme-carousel .product-list__track {
    --tab-columns: min(var(--columns), 3);
    --column-width: calc((100% - var(--column-gap) * (var(--gap-columns, var(--tab-columns)) - 1)) / var(--tab-columns));
  }
}

@media (max-width: 959px) {
  .featured-collection-ymay {
    row-gap: 16px !important;
  }

  .featured-collection-ymay__header {
    padding-inline-end: 0;
  }

  .featured-collection-ymay__intro {
    max-width: none;
  }

  .featured-collection-ymay__intro .block-heading {
    font-size: 28px;
  }

  .featured-collection-ymay__intro .block-description {
    max-width: none;
    font-size: 14px;
  }

  .featured-collection-section .mobile\:product-list__theme-carousel .product-list__track,
  .featured-collection-section .product-list__track.card-grid {
    --mobile-columns: 2;
    --mobile-gap-columns: 2;
    --mobile-columns-alt: 2;
    --mobile-gap-columns-alt: 2;
    --column-width: calc((100% - var(--column-gap) * (2 - 1)) / 2);
  }
}
