theme-featured-collection-tabs {
  display: contents;
}

.section-featured-collection {
  background-color: rgb(var(--color-background));
}

.featured-collection__tabs-wrapper {
  width: 100%;
}

.featured-collection__tabs-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-block-end: 40px;
}

.featured-collection__tabs-list {
  display: flex;
  gap: 20px;
  overflow-x: auto;
}

.featured-collection__tabs-content {
  position: relative;
}

.featured-collection__tabs-content-inner {
  animation: column-fade-in 0.8s ease;
  animation-fill-mode: forwards;
}

@media (max-width: 959px) {
  .featured-collection__tabs-content-inner.mobile-full-width {
    width: var(--body-container-width);
    margin-inline-start: calc(50% - calc(var(--body-container-width) / 2));
  }

  .featured-collection__tabs-content-inner.mobile-full-width
    .product-card-border-shadow {
    border-radius: 0;
  }

  .featured-collection__tabs-content-inner.mobile-full-width
    .featured-collection__track {
    gap: 0;
  }
}

@media (min-width: 960px) {
  .featured-collection__tabs-content-inner.desktop-full-width
    .featured-collection__track {
    width: var(--body-container-width);
    padding-inline: var(--page-padding);
    margin-inline-start: calc(50% - calc(var(--body-container-width) / 2));
    scroll-padding-inline: var(--page-padding);
  }
}

.featured-collection__tab {
  padding: 10px 20px;
  color: var(--tab-color);
  white-space: nowrap;
  cursor: pointer;
  background-color: var(--tab-background-color);
  border-color: var(--tab-border-color);
  border-style: solid;
  border-width: 1px;
  border-radius: 6px;
}

.featured-collection__tab.active {
  color: var(--tab-active-color);
  background-color: var(--tab-active-background-color);
  border-color: var(--tab-active-border-color);
}

.featured-collection__tabs-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 550px;
}

.featured-collection__tabs-loading svg {
  width: 40px;
  height: 40px;
}

.featured-collection__carousel
  .featured-collection__carousel-indicator-progress {
  max-width: 480px;
  height: 6px;
}

.featured-collection__carousel-view-more {
  background-color: #e1e4e8;
}

.featured-collection__carousel-view-more a {
  color: #000;
}

.featured-collection__carousel-view-more a::after {
  display: none;
}

.featured-collection__carousel-view-more-button {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.featured-collection__carousel-view-more-button-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: #fff;
  border-radius: 50%;
}

.featured-collection__button {
  position: absolute;
  inset-block-start: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  color: rgb(255 255 255 / 100%);
  background-color: rgb(0 0 0 / 100%);
  border: 0;
  border-radius: 2px;
  box-shadow: 0 4px 10px rgb(0 0 0 / 15%);
}

.featured-collection__button:disabled {
  display: none;
}

.featured-collection__button--previous {
  inset-inline-start: 0;
}

.featured-collection__button--previous svg {
  transform: rotate(180deg);
}

.featured-collection__button--next {
  inset-inline-end: 0;
}

:where(.featured-collection__tab) {
  margin: 0;
  font: inherit;
  text-align: inherit;
  appearance: none;
}

/* Standardize the homepage Products cards in the theme's mobile layout. */
@media (max-width: 959px) {
  #shopline-section-template--index__featured-collection .section-featured-collection .featured-collection__track {
    column-gap: 12px;
    row-gap: 20px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #shopline-section-template--index__featured-collection .section-featured-collection .featured-collection__track > li {
    min-width: 0;
  }

  #shopline-section-template--index__featured-collection .section-featured-collection .block-product-card
    :is(.block-product-buy-button-wrapper, .block-product-card__quick-add,
        .block-product-card__layer:has(.block-product-card__quick-add)) {
    display: none !important;
  }

  #shopline-section-template--index__featured-collection .section-featured-collection .block-product-image__layer-image-wrapper {
    padding: 0;
  }

  #shopline-section-template--index__featured-collection .section-featured-collection .block-product-image__image-wrapper {
    height: auto;
    aspect-ratio: 1;
  }

  #shopline-section-template--index__featured-collection .section-featured-collection .block-product-image__image {
    object-fit: contain;
  }

  #shopline-section-template--index__featured-collection .section-featured-collection .block-product-image__layer-wrapper
    > .block-product-card__layer:has(.block-product-card__discount-tag) {
    position: absolute;
    inset: auto auto 8px 8px;
    width: max-content;
    max-width: calc(100% - 16px);
    padding: 0;
    pointer-events: none;
  }

  #shopline-section-template--index__featured-collection .section-featured-collection .block-product-card__discount-tag {
    box-sizing: border-box;
    max-width: 100%;
    padding: 5px 7px;
    border-radius: 2px;
    background: #c20000;
    color: #fff;
    font-size: clamp(10px, 3vw, 12px);
    font-weight: 400;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    pointer-events: none;
  }

  #shopline-section-template--index__featured-collection .section-featured-collection .block-product-card-info {
    padding: 8px 2px 0;
    gap: 4px;
  }

  #shopline-section-template--index__featured-collection .section-featured-collection .block-product-title {
    min-height: 4.2em;
    font-size: 13px;
    line-height: 1.4;
    overflow-wrap: anywhere;
  }

  #shopline-section-template--index__featured-collection .section-featured-collection .block-product-title span {
    -webkit-line-clamp: 3;
  }

  #shopline-section-template--index__featured-collection .section-featured-collection .block-product-price .product-price {
    flex-direction: column;
    align-items: center;
    gap: 3px;
  }

  #shopline-section-template--index__featured-collection .section-featured-collection .block-product-price .product-price__sale {
    font-size: 14px;
  }

  #shopline-section-template--index__featured-collection .section-featured-collection .block-product-price .product-price__origin {
    font-size: 12px;
  }
}

@media (min-width: 960px) {
  #shopline-section-template--index__featured-collection
    .section-featured-collection:not(.save-badge-desktop-top-left)
    .block-product-image__layer-wrapper
    > .block-product-card__layer:has(.block-product-card__discount-tag) {
    inset: auto auto 10px 10px;
  }
}
