/* Shared Banana product slider shell and cards. */
.freshfruit-product-slider-shell {
  --background-image-slider1: linear-gradient(120deg, #9ac500 0%, #dafc5f 100%);
  --background-image-slider2: linear-gradient(120deg, #0d1393 0%, #7c83ff 100%);
  --background-image-slider3: linear-gradient(120deg, #be1f2f 0%, #f94758 100%);
  --background-image-slider4: linear-gradient(120deg, #db1284 0%, #ffc1e4 100%);
  --background-image-slider5: linear-gradient(120deg, #048232 0%, #25e96d 100%);
  --background-image-slider6: linear-gradient(120deg, #7138ab 0%, #c38cfd 100%);
  --background-image-slider7: linear-gradient(120deg, #d56700 0%, #ffa552 100%);
  position: relative;
  z-index: 40;
  width: 100%;
}

.freshfruit-product-slider-shell .text-fresh {
  font-size: 64px;
  font-weight: 800;
  line-height: 1;
  text-transform: capitalize;
}

.freshfruit-product-slider-shell .bg-slider1 { background-image: var(--background-image-slider1); }
.freshfruit-product-slider-shell .bg-slider2 { background-image: var(--background-image-slider2); }
.freshfruit-product-slider-shell .bg-slider3 { background-image: var(--background-image-slider3); }
.freshfruit-product-slider-shell .bg-slider4 { background-image: var(--background-image-slider4); }
.freshfruit-product-slider-shell .bg-slider5 { background-image: var(--background-image-slider5); }
.freshfruit-product-slider-shell .bg-slider6 { background-image: var(--background-image-slider6); }
.freshfruit-product-slider-shell .bg-slider7 { background-image: var(--background-image-slider7); }

.freshfruit-product-slider-shell .product-swiper {
  width: 100%;
  height: auto;
  overflow: visible;
  touch-action: pan-y;
  cursor: grab;
}

.freshfruit-product-slider-shell .product-swiper:active { cursor: grabbing; }

.freshfruit-product-slider-shell .product-swiper .swiper-wrapper {
  display: flex;
  align-items: stretch;
}

.freshfruit-product-slider-shell .product-swiper .swiper-slide {
  box-sizing: border-box;
  flex-shrink: 0;
  width: 275px;
  height: auto;
}

.freshfruit-product-slider-shell .product-swiper [data-product-card] .flex.items-center.justify-between.mt-2:last-child {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  min-height: 56px;
}

.freshfruit-product-slider-shell .product-swiper .product-cart-trigger,
.freshfruit-product-slider-shell .product-swiper .product-quantity-control {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  margin: 0;
}

.freshfruit-product-slider-shell .product-swiper .product-cart-trigger { z-index: 2; }

.freshfruit-product-slider-shell .product-swiper article > div:last-child > div > div:first-child > span {
  font-family: "Helvetica Now Var", Helvetica, sans-serif !important;
  font-size: 20px !important;
  font-style: normal !important;
  font-weight: 400 !important;
  line-height: 100% !important;
  letter-spacing: 0 !important;
}

.freshfruit-product-slider-shell .product-swiper article > div:last-child > div > h3 {
  font-family: "Helvetica Now Var", Helvetica, sans-serif !important;
  font-size: 24px !important;
  font-style: normal !important;
  font-weight: 400 !important;
  line-height: 100% !important;
  letter-spacing: 0 !important;
}

.freshfruit-product-slider-shell .product-swiper article > div:last-child > div > h3 + span {
  font-family: "Helvetica Now Var", Helvetica, sans-serif !important;
  font-size: 20px !important;
  font-style: normal !important;
  font-weight: 300 !important;
  line-height: 132% !important;
  letter-spacing: 0 !important;
}

.freshfruit-product-slider-shell .product-swiper [data-product-card] {
  --product-cart-control: #95d600;
}

.freshfruit-product-slider-shell .product-swiper .product-cart-trigger {
  flex: 0 0 auto;
  border: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.freshfruit-product-slider-shell .product-swiper .product-cart-trigger:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
}

.freshfruit-product-slider-shell .product-swiper .product-quantity-control {
  display: none;
  width: 168px;
  height: 56px;
  flex: 0 0 168px;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  border-radius: 999px;
  background: var(--product-cart-control);
  color: #fff;
  transform-origin: right center;
}

.freshfruit-product-slider-shell .product-swiper [data-product-card].is-cart-active .product-cart-trigger {
  display: none;
}

.freshfruit-product-slider-shell .product-swiper [data-product-card].is-cart-active .product-quantity-control,
.freshfruit-product-slider-shell .product-swiper .product-quantity-control:not(.hidden) {
  display: flex;
}

.freshfruit-product-slider-shell .product-swiper .product-quantity-button {
  display: grid;
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  place-items: center;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 180ms, transform 180ms cubic-bezier(.22, 1, .36, 1);
}

.freshfruit-product-slider-shell .product-swiper .product-quantity-button:hover {
  background: rgb(255 255 255 / 12%);
}

.freshfruit-product-slider-shell .product-swiper .product-quantity-button:active {
  transform: scale(.88);
}

.freshfruit-product-slider-shell .product-swiper .product-quantity-button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: -4px;
}

.freshfruit-product-slider-shell .product-swiper .product-quantity-value {
  min-width: 24px;
  color: #fff;
  font-family: "Helvetica Now Var", Helvetica, Arial, sans-serif;
  font-size: 26px;
  font-weight: 400;
  line-height: 1;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

@media (min-width: 768px) {
  .freshfruit-product-slider-shell .product-swiper .swiper-slide { width: 430px; }
}

@media (max-width: 767.98px) {
  .freshfruit-product-slider-shell h1.text-fresh { display: none !important; }

  .freshfruit-product-slider-shell .product-swiper article > div:last-child > div > div:first-child > span {
    font-size: 14px !important;
    line-height: 132% !important;
  }

  .freshfruit-product-slider-shell .product-swiper article > div:last-child > div > h3 {
    font-size: 20px !important;
    line-height: 120% !important;
  }

  .freshfruit-product-slider-shell .product-swiper article > div:last-child > div > h3 + span {
    font-size: 16px !important;
    line-height: 140% !important;
  }

  .freshfruit-product-slider-shell .product-swiper [data-product-card] .flex.items-center.justify-between.mt-2:last-child {
    min-height: 48px;
  }

  .freshfruit-product-slider-shell .product-swiper .product-quantity-control {
    width: 130px;
    height: 48px;
    flex-basis: 130px;
    padding: 0 5px !important;
  }

  .freshfruit-product-slider-shell .product-swiper .product-quantity-button {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .freshfruit-product-slider-shell .product-swiper .product-quantity-button { transition: none; }
}
