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

featured-collection-slider {
  position: relative;
  display: block;
}

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

.featured-collection-new .collection__description > * {
  margin: 0;
}

.featured-collection-new .collection__title {
  text-align: center;
  margin-block-end: 20px;
}

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

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

.featured-collection-new__title {
  text-align: var(--title-algin);
}

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

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

.featured-collection-new .splide__list {
  flex-wrap: nowrap;
}

@media screen and (max-width: 959px) {
  .featured-collection-new .splide__list:not(.slider--mobile) {
    flex-wrap: wrap;
  }

  .featured-collection-new .slider-buttons {
    display: none;
  }
  .splide[data-mobile-slider="false"] {
    visibility: unset;
  }
}

@media screen and (min-width: 960px) {
  .featured-collection-new .splide__list:not(.slider--desktop) {
    flex-wrap: wrap;
  }
  .splide[data-desktop-slider="false"] {
    visibility: unset;
  }
  .splide[data-desktop-slider="false"] .slider-buttons {
    display: none;
  }
  .featured-collection-new .slider--desktop {
    scroll-padding-left: var(--page-padding);
  }
}

/* fix:safari svg  */

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

.featured-collection-new .featured-control__arrow-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
  cursor: pointer;
  position: relative;
  background-color: rgba(var(--color-page-background));
  box-shadow: 0 5px 5px rgb(0 0 0 / 10%);
  transition: transform 0.3s;
  border: none;
}

.featured-collection-new .featured-control__arrow-button svg {
  width: 12.5px;
  height: 12.5px;
}

.featured-collection-new .featured-control__arrow-button[name="previous"] {
  position: absolute;
  inset-inline-start: 42px;
  inset-block-start: 50%;
  transform: rotate(90deg);
  box-shadow: 5px 0 5px rgb(0 0 0 / 10%);
}

.featured-collection-new
  .featured-control__arrow-button[name="previous"]:hover {
  transform: scale(1.12) rotate(90deg);
}

.featured-collection-new .featured-control__arrow-button[name="next"] {
  position: absolute;
  inset-inline-end: 46px;
  inset-block-start: 50%;
  transform: rotate(-90deg);
  box-shadow: -5px 0 5px rgb(0 0 0 / 10%);
}

.featured-collection-new .featured-control__arrow-button[name="next"]:hover {
  transform: scale(1.12) rotate(-90deg);
}

.featured-collection-new .featured-control__arrow-button:disabled {
  cursor: not-allowed;
  opacity: 0.3;
}

.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) {
  .slider-mobile--full {
    padding-inline: 0 !important;
  }

  .slider--full {
    padding-inline: 0 !important;
    margin-inline: 0 !important;
    scroll-padding-left: 0;
    scroll-padding-right: 0;
  }

  .slider--full .slider__slide,
  .slider--full .grid__item {
    padding-inline: 0;
  }
  .slider--full.slider--mobile .slider__slide,
  .slider--full.slider--mobile .grid__item {
    width: calc(
      (100% - (33.3% / var(--mobile-cols))) / var(--mobile-cols)
    ) !important;
    flex-grow: 1;
  }

  .slider--full .card .card__content {
    padding: 0 8%;
  }

  .slider--full .card__bottom-actions {
    padding: 0 8%;
  }

  .slider--full .global-product-card-border-shadow,
  .slider--full .card__media {
    border-radius: 0 !important;
  }
}

/* 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 */
