/* ==========================================================================
   Marji V5 — fast fixes for the home page products section
   • Kill horizontal page scroll caused by blurred side cards extending out
   • Reposition products carousel arrows so they sit on the ACTIVE card's
     edges (not overlapping the info column)
   • Tighter feature-icon row so all 4 fit on one line at default zoom
   ========================================================================== */

/* Kill horizontal scroll on the whole page */
html, body { overflow-x: hidden; }

/* Contain the blurred side-slides inside the section */
.products-slider {
  position: relative;
  overflow: hidden;
}

/* Shell becomes a fixed-width "active card window" with arrows on its edges */
.products-slider .products-shell {
  position: relative;
  max-width: 780px;     /* roughly the visible width of the active card */
  margin: 0 auto;
  padding: 0;
}

/* Swiper itself stays wider via overflow:visible so blurred side cards
   peek out left/right within the section's overflow:hidden */
.products-slider .products-swiper {
  overflow: visible;
  padding: 30px 0 40px;
}

/* Arrows on the shell edges (override the V4 calc-based positioning) */
.products-slider .swiper-button-prev,
.products-slider .swiper-button-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 54px;
  height: 54px;
  margin: 0;
}
.products-slider .swiper-button-prev { left: -27px;  right: auto; }
.products-slider .swiper-button-next { right: -27px; left: auto; }

/* Pagination dots back UNDER the slider so users can see slide position */
.products-slider .products-shell .swiper-pagination,
.products-slider .swiper-pagination {
  display: block !important;
  position: relative;
  bottom: auto;
  margin-top: 18px;
}
.products-slider .swiper-pagination-bullet {
  width: 10px; height: 10px;
  background: #d8d8d8;
  opacity: 1;
  margin: 0 4px;
}
.products-slider .swiper-pagination-bullet-active {
  background: var(--color-primary);
}

/* Make the 4 feature icons fit comfortably in the info column */
.product-card-v3 .pv3-features {
  gap: 12px;
  flex-wrap: nowrap;
  justify-content: flex-start;
}
.product-card-v3 .pv3-features .pv3-feat {
  min-width: 0;
  flex: 0 0 auto;
}
.product-card-v3 .pv3-features .pv3-feat .ic {
  width: 40px; height: 40px;
  font-size: 16px;
}
.product-card-v3 .pv3-features .pv3-feat .lbl {
  font-size: 10px;
  white-space: nowrap;
}

/* If the info column gets really narrow, allow wrap as a last resort */
@media (max-width: 1199px) {
  .products-slider .products-shell { max-width: 720px; }
}
@media (max-width: 991px) {
  .products-slider .products-shell { max-width: 92%; }
  .products-slider .swiper-button-prev { left: 4px; }
  .products-slider .swiper-button-next { right: 4px; }
  .product-card-v3 .pv3-features { flex-wrap: wrap; }
}
@media (max-width: 767px) {
  .products-slider .swiper-button-prev,
  .products-slider .swiper-button-next { width: 42px; height: 42px; }
  .products-slider .swiper-button-prev { left: -2px; }
  .products-slider .swiper-button-next { right: -2px; }
}
