/* tabs */
.product-tab-panel.hidden {
  display: none !important;
}

.product-tab-btn {
  background-color: #ffffff;
  color: #193285;
  border: 1px solid #e5e7eb;
  border-bottom: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.product-tab-btn:hover:not(.active) {
  color: #19407c;
  background-color: #f8fafc;
  border-color: #cbd5e1;
}

.product-tab-btn.active {
  background-color: #08b9f8;
  color: #ffffff;
  border-color: transparent;
}

.product-tab-btn.active:hover {
  filter: brightness(1.06);
}

.product-tab-btn:active {
  transform: translateY(0);
}

#product-hero-tabs {
  scrollbar-width: none;
  /* Firefox */
  -ms-overflow-style: none;
  /* IE and Edge */
}

#product-hero-tabs::-webkit-scrollbar {
  display: none;
  /* Chrome, Safari, and Opera */
}

/* hero banner full height and rounded corner */
#single-product-hero {
  min-height: 480px;
}

#single-product-hero .product-hero-bg,
#single-product-hero .product-hero-spacer {
  min-height: 480px;
}

@media (max-width: 1023px) {
  #single-product-hero .product-hero-bg,
  #single-product-hero .product-hero-bg img {
    border-bottom-right-radius: 0 !important;
    border-radius: 0 !important;
  }

  #single-product-hero .product-hero-bg img {
    object-position: center center !important;
  }
}

@media (min-width: 1024px) {
  #single-product-hero {
    min-height: 580px;
  }

  #single-product-hero .product-hero-bg,
  #single-product-hero .product-hero-spacer {
    min-height: 580px;
  }

  #single-product-hero .product-hero-bg {
    overflow: hidden !important;
    border-bottom-right-radius: 10px !important;
    -webkit-mask-image: -webkit-radial-gradient(white, black);
    isolation: isolate;
  }

  #single-product-hero .product-hero-bg img {
    border-bottom-right-radius: 10px !important;
    object-fit: cover !important;
    object-position: center center !important;
  }
}

@media (min-width: 1280px) {
  #single-product-hero {
    min-height: 650px;
  }

  #single-product-hero .product-hero-bg,
  #single-product-hero .product-hero-spacer {
    min-height: 650px;
  }
}

/* desktop: image is always a square (half the section width) and never
   stretches with the right column. Right column keeps its natural height;
   if it is taller than the image, the section simply grows. */
@media (min-width: 1024px) {
  #single-product-hero {
    min-height: 0 !important;
    container-type: inline-size; /* 50cqw = half the section width */
  }

  #single-product-hero .product-hero-bg {
    bottom: auto;
    height: 50cqw;
    min-height: 0 !important;
  }

  #single-product-hero .product-hero-spacer {
    min-height: 0 !important;
  }

  #single-product-hero > .main-container {
    min-height: 50cqw;
    padding-top: 5.5rem; /* clear the floating header */
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}

/* featured grid */
#featured-grid {
  overflow-x: hidden;
  /* fallback */
  overflow-x: clip;
}

#featured-grid .swiper.features-swiper {
  overflow: visible !important;
  /* so the desktop card shadows aren't cut */
}

@media (max-width: 1023px) {
  #featured-grid .swiper.features-swiper {
    clip-path: inset(-3rem -100vw -3rem -100vw);
  }
}

/* review swiper */
#reviews-slider {
  overflow-x: hidden;
  overflow-x: clip;
}

#reviews-slider .swiper.reviews-swiper {
  overflow: visible !important;
  clip-path: inset(-2rem -100vw -2rem 0);
}

#reviews-slider .reviews-swiper .swiper-wrapper {
  align-items: stretch;
}

#reviews-slider .reviews-swiper .swiper-slide {
  height: auto !important;
  display: flex;
  flex-direction: column;
}

/* shopping banner */
.shopping-banner {
  background: linear-gradient(90deg, #162c78 0%, #4771d3 50%, #162c78 100%);
}

.shopping-banner-inner {
  background: transparent;
}

@media (min-width: 1024px) {
  .shopping-banner {
    background: #fff;
  }

  .shopping-banner-inner {
    background: linear-gradient(90deg, #162c78 0%, #4771d3 50%, #162c78 100%);
    border-radius: 10px;
  }
}

/* faq */
.faq-item:has(.faq-question[aria-expanded="true"]) .faq-icon-circle {
  fill: transparent;
  stroke: white;
}

.faq-item:has(.faq-question[aria-expanded="true"]) .faq-icon-arrow {
  stroke: white;
}

.faq-section-bg {
  background: linear-gradient(90.28deg, #022673 0%, #006dd5 30.03%, #006dd5 69.88%, #022673 100%);
}

@media (min-width: 1024px) {
  .faq-section-bg {
    background: #fff;
  }
}
