@media screen and (max-width: 959px) {
  .featured-collection .grid__item:only-child {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

@media screen and (max-width: 959px) {
  .featured-collection .slider.slider--tablet {
    margin-block-end: 15px;
  }
}

@media screen and (max-width: 959px) {
  .featured-collection .slider--tablet.product-grid {
    /* scroll-padding-left: 15px; */
  }
}

.featured-collection__title-group {
  margin-block-end: 20px;
}

.featured-collection__title {
  text-align: center;
}

@media screen and (min-width: 960px) {
  .featured-collection__title-group {
    margin-block-end: 40px;
  }
}

.featured-collection__title .title:not(:only-child) {
  margin-block-end: 10px;
}

.featured-collection__title-group {
  display: flex;
  align-items: center;
  flex: 1;
  overflow: hidden;
  padding-inline-end: 40px;
}

.featured-collection__title-line {
  display: inline-block;
  width: 203px;
  height: 1px;
  background-color: rgb(var(--color-text));
  margin-inline-start: 24px;
}

@media screen and (max-width: 959px) {
  .featured-collection__title-group {
    padding-inline-end: 0;
    justify-content: center;
  }

  .featured-collection__title-line {
    width: 101px;
    margin-inline-start: 12px;
  }
}

.featured-collection__title--ellipsis {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.featured-collection__tabs {
  display: flex;
  gap: 20px;
  margin-block-end: 50px;
  flex-wrap: nowrap;
  overflow-x: auto;
  align-items: center;
  flex: 1;
  margin-inline-end: 20px;
}

@media screen and (max-width: 959px) {
  .featured-collection__tabs {
    margin-inline-end: 0;
    margin-block-end: 20px;
    /* justify-content: center; */
  }
  .featured-collection__tabs.flex-start {
    justify-content: flex-start;
  }
}

.featured-collection__tabs-item {
  white-space: nowrap;
  cursor: pointer;
  /* opacity: 0.4; */
  text-transform: uppercase;
  padding: 10px 23px;
  background-color: rgb(var(--color-button-background-normal));
  color: rgb(var(--color-button-text-normal));
  border: 1px solid rgb(var(--color-button-border-normal));
  border-radius: var(--color-button-border-radius);
}

@media screen and (max-width: 959px) {
  .featured-collection__tabs-item {
    padding: 5px 10px;
    font-size: 16px;
  }
}

.featured-collection__tabs-item--active {
  opacity: 1;
  background-color: rgb(var(--color-button-background));
  color: rgb(var(--color-button-text));
  /* border-radius: var(--btn-border-radius); */
  border: 1px solid rgb(var(--color-button-border));
}

.featured-collection slide-pagination {
  margin-block-end: 50px;
}

.featured-collection featured-collection-tabs > div {
  align-items: center;
}

.featured-collection .collection__view-all a:not(.link) {
  margin-block-start: 10px;
}

.featured-collection__mb-view-all {
  position: relative;
  display: block;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: rgba(var(--color-text), 0.05);
  border-radius: var(--product-card-border-radius);
}

.featured-collection__mb-view-all .mb-view-all__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 50%;
  position: relative;
  background-color: rgb(var(--color-button-background));
  color: rgb(var(--color-button-text));
  transform: rotate(-90deg);
}

.featured-collection__mb-view-all .mb-view-all__text {
  margin-block-start: 16px;
  text-align: center;
  color: rgb(var(--color-text));
}

@media screen and (max-width: 959px) {
  .featured-collection .slider__slide {
    scroll-snap-align: end;
  }
}

@media screen and (min-width: 960px) {
  .featured-collection slider-component:not(.page-width) {
    padding: 0;
  }
}

.featured-collection__view-all a:not(.link) {
  margin-block-start: 10px;
}

.featured-collection .slider {
  overflow-y: hidden;
}

.featured-collection .slider-button {
  border-radius: 2px;
  height: 40px;
  width: 40px;
  color: rgb(var(--color-button-text));
  background-color: rgb(var(--color-button-background));
  position: absolute;
  inset-block: 40% 100%;
  margin: auto;
}

.featured-collection .slider-button svg {
  width: 18px;
  height: 18px;
}

.featured-collection .slider-button--prev {
  inset-inline-start: 30px;
}

.featured-collection .slider-button--next {
  inset-inline-end: 30px;
}

.featured-collection .slider-button[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
}

.featured-collection .slider-button[disabled] .icon {
  color: rgba(var(--color-button-text));
}

@media screen and (max-width: 959px) {
  .featured-collection .slider:not(.slider--mobile) {
    flex-wrap: wrap;
  }
  .featured-collection .slider.slider--mobile {
    margin-block-end: 0;
  }
  .featured-collection .slider--mobile .slider__slide {
    width: calc((200vw - var(--page-padding)) / (2 * var(--mobile-cols) + 1));
  }
  .featured-collection #Slider-swatch .slider__slide {
    width: unset;
  }
  .featured-collection .slider.slider--mobile.columns_mobile-3 .slider__slide {
    width: calc(var(--grid-horizontal-space) + 85px);
  }
}

@media screen and (min-width: 960px) {
  .featured-collection .slider:not(.slider--desktop) {
    flex-wrap: wrap;
  }
  .featured-collection .slider--mobile:not(.slider--desktop) + .slider-buttons {
    display: none;
  }
  .featured-collection .slider--desktop {
    scroll-padding-left: var(--page-padding);
  }
}

/* fix:safari svg  */

.featured-collection .product-card-wrapper .placeholder svg {
  width: 100%;
}

@media screen and (max-width: 959px) {
  .featured-collection__tabs {
    gap: 10px;
  }
}

.featured-collection__spin {
  position: relative;
  height: 550px;
  width: 100%;
  display: none;
}

@media screen and (max-width: 959px) {
  .featured-collection__spin {
    height: 350px;
  }
}

[data-loading="true"] .featured-collection__slider {
  display: none;
}

[data-loading="true"] .featured-collection__spin {
  display: block;
}

[data-loading="true"] .featured-collection__spin .loading-overlay__spinner {
  position: absolute;
  inset-inline-start: 50%;
  inset-block-start: 50%;
  margin-inline-start: -20px;
  margin-block-start: -20px;
  display: flex;
  animation: rotate linear 1.5s infinite;
}

[data-loading="true"]
  .featured-collection__spin
  .loading-overlay__spinner
  .icon {
  width: 40px;
  height: 40px;
}

/* The ipad end responds to the mobile end in vertical screen */

/* @custom-media --tablet (max-width: 959px); */

/* @custom-media --gt-mobile (min-width: 751px); */

/* detectingScreen need to consider the configuration of the tablet */
