/* ====================================================================== *
 * PRODUCT SLIDER
 * All styles scoped under .product-slider-block
 * ====================================================================== */

/* ---------- Panel (light bg, rounded bottom corners) ---------- *
 * The <section> carries the "behind" colour (inline). This panel sits on
 * top; its rounded bottom corners reveal that colour underneath.
 * Swap #eef2f7 for a theme var if you have one for this light blue-grey.  */
.product-slider-block .ps-panel {
  background: #eef2f7;
  border-bottom-left-radius: 48px;
  border-bottom-right-radius: 48px;
  padding-left: clamp(20px, 5vw, 80px);
  padding-right: clamp(20px, 5vw, 80px);
}

.product-slider-block .ps-row {
  align-items: center;
}

/* Keep the intro text (esp. the headline) from running the full column width */
.product-slider-block .ps-intro {
  padding-right: 56px;
}

/* ---------- Left intro ---------- */
.product-slider-block .ps-headline {
  margin: 0 0 20px;
  font-size: 44px;
  font-weight: 800;
  line-height: 1.05;
  color: var(--primarycolor);
}
.product-slider-block .ps-supporting {
  font-size: 17px;
  line-height: 1.6;
  color: #3f4a56; /* readable body grey — swap for a var if desired */
}
.product-slider-block .ps-supporting p {
  margin: 0 0 12px;
}
.product-slider-block .ps-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

/* ---------- Slider track ---------- */
.product-slider-block .ps-slider-wrap {
  min-width: 0; /* let the flex/scroll child shrink instead of overflowing the page */
}
.product-slider-block .ps-track-wrap {
  position: relative;
}
/* Fades the cards out on the far right edge. Keep this colour in sync with .ps-panel background. */
.product-slider-block .ps-track-wrap::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 64px;
  background: linear-gradient(to right, rgba(238, 242, 247, 0) 0%, #eef2f7 100%);
  pointer-events: none;
  z-index: 2;
}
.product-slider-block .ps-track {
display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 24px;
  -webkit-overflow-scrolling: touch;
  padding-top: 24px;
  padding-bottom: 48px;
  margin-top: -24px;
  margin-bottom: -48px;
  scrollbar-width: none;
  padding-left: 24px;
}
.product-slider-block .ps-track::-webkit-scrollbar {
  display: none;
}
.product-slider-block .ps-card {
  flex: 0 0 320px;
  max-width: 320px;
  scroll-snap-align: start;
}

/* ---------- Tile shell ---------- */
.product-slider-block .ps-tile {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--white);
  border: 1px solid #e6e9ef;
  border-radius: 16px;
  overflow: hidden;
}
.product-slider-block .ps-tile a{
  color: var(--primarycolor);
}
.product-slider-block .ps-tile:hover{
  transform: translateY(-4px);
  border-color: #d3dbe6;
  box-shadow: 0 18px 30px rgba(0,40,85,.12);
}
/* ---------- Product media (radial glow + drop shadow) ---------- */
.product-slider-block .ps-media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 260px;
  padding: 36px;
  /* white at top-center fading to light blue. Swap #dbe4f0 for a var if you have one. */
  background: radial-gradient(120% 90% at 50% 0%, #ffffff 0%, #dbe4f0 100%);
}
.product-slider-block .ps-media .ps-product-img,
.product-slider-block .ps-media img {
  max-width: 80%;
  max-height: 100%;
  height: auto;
  filter: drop-shadow(0 18px 22px rgba(0, 40, 85, 0.28));
}

/* ---------- Bubble label ---------- */
.product-slider-block .ps-bubble {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 6px 14px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.75);
  color: var(--primarycolor);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---------- Product body ---------- */
.product-slider-block .ps-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 26px 24px 28px;
}
.product-slider-block .ps-label {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5c6672;
  line-height: 1.3;
  margin-bottom: 8px;
}
.product-slider-block .ps-title {
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 700;
  color: var(--primarycolor);
}
.product-slider-block .ps-summary {
  margin: 0 0 20px;
  font-size: 15px;
  line-height: 1.6;
  color: #5c6672;
}

/* ---------- CTA card ---------- */
.product-slider-block .ps-cta-media img {
  display: block;
  width: 100%;
  height: auto;
}
.product-slider-block .ps-cta-body {
  display: flex;
  flex-direction: column;
  padding: 28px 24px 30px;
}
.product-slider-block .ps-cta-headline {
  margin: 0 0 14px;
  font-size: 22px;
  font-weight: 700;
  color: var(--primarycolor);
}
.product-slider-block .ps-cta-sub {
  margin: 0 0 6px;
  font-size: 15px;
  color: #5c6672;
}
.product-slider-block .ps-cta-phone {
  display: inline-block;
  margin: 0 0 6px;
  font-size: 34px;
  font-weight: 800;
  line-height: 1.1;
  color: var(--primarycolor);
  text-decoration: none;
}
.product-slider-block .ps-cta-hours {
  margin: 0 0 22px;
  font-size: 14px;
  color: #5c6672;
}
.product-slider-block .ps-cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* ---------- Nav arrows (below tiles, left aligned) ---------- */
.product-slider-block .ps-nav {
  position: relative;
  display: flex;
  gap: 22px;
  margin-top: 26px;
  z-index: 5;
}
.product-slider-block .ps-nav button {
  display: inline-flex;
  align-items: center;
  padding: 0;
  border: none;
  background: none;
  color: var(--primarycolor);
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
}
.product-slider-block .ps-nav .ps-arrow {
  display: block;
  width: 30px;
  height: 14px;
}
.product-slider-block .ps-nav .ps-prev .ps-arrow {
  transform: scaleX(-1); /* reuse the same arrow, pointing left */
}
.product-slider-block .ps-nav button:hover {
  color: var(--maingreen);
  transform: translateX(2px);
}
.product-slider-block .ps-nav .ps-prev:hover {
  transform: translateX(-2px);
}
/* Not clickable (no slides in that direction) — faded blue. Swap for a var if you have one. */
.product-slider-block .ps-nav button:disabled,
.product-slider-block .ps-nav button:disabled:hover {
  color: #a7b7ce;
  cursor: default;
  transform: none;
}

/* ---------- Responsive ---------- */
@media screen and (max-width: 991px) {
  .product-slider-block .ps-row {
    align-items: flex-start;
  }
  .product-slider-block .ps-intro {
    margin-bottom: 36px;
    padding-right: 0;
  }
  .product-slider-block .ps-headline {
    font-size: 34px;
  }
}
@media screen and (max-width: 575px) {
  .product-slider-block .ps-card {
    flex-basis: 78%;
    max-width: 78%;
  }
  .product-slider-block .ps-cta-phone {
    font-size: 30px;
  }
}
