/* Swiper tweaks used by home template */

.cgp-testimonials-carousel {
  position: relative;
  overflow: visible;
}

.cgp-testimonials-shell {
  position: relative;
  display: block;
  padding: 0 56px;
}

.cgp-testimonials-swiper {
  /* Keep enough inner padding so card shadows aren't clipped */
  padding: 14px 12px 72px;
  /* Keep horizontal clipping, but allow full card height visibility */
  overflow-x: hidden !important;
  overflow-y: visible !important;
  width: 100%;
  box-sizing: border-box;
  flex: 1 1 auto;
}

/* Ensure card shadows aren't clipped by Swiper internals.
   Keep wrapper/slide overflow visible, but don't override the swiper viewport clipping. */
.cgp-testimonials-swiper .swiper-wrapper,
.cgp-testimonials-swiper .swiper-slide {
  overflow: visible !important;
}

/* Swiper adds styles to `.swiper` that can re-enable overflow: hidden.
   Re-assert our intended behavior on the actual swiper element. */
.cgp-testimonials-swiper.swiper {
  overflow-x: hidden !important;
  overflow-y: visible !important;
}

/* Ensure slides can grow naturally (avoid vertical clipping) */
.cgp-testimonials-swiper .swiper-wrapper {
  align-items: stretch;
}

.cgp-testimonials-swiper .swiper-slide {
  height: auto;
}

.cgp-testimonials-prev,
.cgp-testimonials-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 16px;
  background: rgba(205, 153, 51, 0.6);
  border: 2px solid rgba(205, 153, 51, 0.42);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.16);
  color: #0b0b0f;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  z-index: 3;
  transition: box-shadow 160ms ease, border-color 160ms ease, background 160ms ease;
}

.cgp-testimonials-prev {
  left: 0;
}

.cgp-testimonials-next {
  right: 0;
}

.cgp-testimonials-prev::before,
.cgp-testimonials-next::before {
  font-family: "bootstrap-icons";
  font-size: 1.2rem;
  line-height: 1;
  display: block;
}

.cgp-testimonials-prev::before {
  content: "\f284"; /* chevron-left */
}

.cgp-testimonials-next::before {
  content: "\f285"; /* chevron-right */
}

.cgp-testimonials-prev:hover,
.cgp-testimonials-next:hover {
  border-color: rgba(205, 153, 51, 0.62);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.2);
  background: rgba(205, 153, 51, 0.26);
}

.cgp-testimonials-prev:focus-visible,
.cgp-testimonials-next:focus-visible {
  outline: none;
  box-shadow: 0 0 0 0.2rem rgba(205, 153, 51, 0.35);
}

@media (max-width: 575.98px) {
  .cgp-testimonials-shell {
    padding: 0;
  }

  .cgp-testimonials-prev,
  .cgp-testimonials-next {
    display: none;
  }

  .cgp-testimonials-swiper {
    padding-bottom: 44px;
  }
}

.cgp-testimonials-pagination {
  text-align: center;
  z-index: 1;
  margin-top: 14px;
  display: flex;
  justify-content: center;
  gap: 8px;
  background: transparent;
}

/* Override Swiper's default absolute pagination positioning */
.cgp-testimonials-pagination.swiper-pagination {
  position: static;
  inset: auto;
  width: auto;
}

.cgp-testimonials-pagination .swiper-pagination-bullet {
  background: rgba(11, 11, 15, 0.28);
  opacity: 1;
}

.cgp-testimonials-pagination .swiper-pagination-bullet-active {
  background: #cd9933;
}

/* Home logo strip */
/* moved to style.scss */

/* Product cards: keep CTAs aligned consistently */
.product-card .card-body {
  display: flex;
  flex-direction: column;
}

.product-card .card-body .mt-3.d-grid {
  width: 100%;
  justify-items: stretch;
  margin-top: auto !important;
}

.product-card .card-body .mt-3.d-grid > .btn {
  width: 100%;
  display: block;
  justify-self: stretch;
}

/* Prevent any visual overflow (shadows) from reading as misalignment */
.product-card .card-body .mt-3.d-grid > .btn {
  box-sizing: border-box;
  max-width: 100%;
  box-shadow: none !important;
}

/* Single product: related swiper arrows visible on both sides */
.related-section .cgp-products-shell {
  position: relative;
  padding: 0 56px;
  overflow: visible;
}

.related-section .cgp-products-prev {
  left: 0 !important;
}

.related-section .cgp-products-next {
  right: 0 !important;
}

