/**
 * ProDeuren Slider + Hotspot Image blocks and the carousel shortcodes (v1.11.0)
 * 1:1 with prodeuren.nl (/binnendeurbeslag/, /buitendeurbeslag/)
 *
 * Breakpoints (same as the live Elementor/Swiper carousels):
 *   Slides per view / gap : desktop >= 1024px | tablet 768 - 1023px | mobile <= 767px
 *   Card + image sizes    : >= 769px | <= 768px
 *   Section width         : >= 1025px | <= 1024px
 *
 * 1. Section headings + spacing (patterns)
 * 2. Slider base (all layouts)
 * 3. Layout "hotspot"  - Kozijn-deur combinaties
 * 4. Layout "cards"    - Shop voordeur kozijnen (category cards)
 * 5. Hotspot Image (dots + product popup)
 */

/* ==========================================================================
   1. SECTION HEADINGS + SPACING (patterns)
   ========================================================================== */
.pdn-custom-theme-slider-section {
  margin-top: 0 !important;
  padding: 0 !important;
  max-width: none !important;
}

.pdn-custom-theme-slider-section > * {
  margin-top: 0 !important;
}

.pdn-custom-theme-slider-section .pdn-custom-theme-slider-heading {
  font-family: "Open Sans", Arial, Helvetica, sans-serif !important;
  font-size: 23px !important;
  font-weight: 600 !important; /* live: 700 is set, but only Open Sans 600 is loaded, so it shows as 600 */
  line-height: 36.8px !important;
  color: #000000 !important;
  letter-spacing: normal !important;
  text-transform: none !important;
  margin: 0 0 50px 0 !important;
  padding: 0 !important;
}

/* Hotspot carousel section: 50px heading gap, 80 / 50 / 30px below */
.pdn-custom-theme-slider-section--hotspot {
  margin-bottom: 80px !important;
}

/* Card carousel section: 50px heading gap, 80 / 50 / 20px below */
.pdn-custom-theme-slider-section--cards {
  margin-bottom: 80px !important;
}

@media only screen and (max-width: 1024px) {
  .pdn-custom-theme-slider-section--hotspot,
  .pdn-custom-theme-slider-section--cards {
    margin-bottom: 50px !important;
  }
}

@media only screen and (max-width: 768px) {
  .pdn-custom-theme-slider-section--hotspot {
    margin-bottom: 30px !important;
  }

  .pdn-custom-theme-slider-section--cards {
    margin-bottom: 20px !important;
  }

  .pdn-custom-theme-slider-section--hotspot .pdn-custom-theme-slider-heading {
    margin-bottom: 30px !important;
  }
}

/* ==========================================================================
   2. SLIDER BASE
   ========================================================================== */
.pdn-custom-theme-slider {
  /* No grey flash on tap (inherited by the slides, links and buttons), as live. */
  -webkit-tap-highlight-color: transparent;
  --pdn-custom-theme-spv: var(--pdn-custom-theme-spv-d, 1);
  --pdn-custom-theme-gap: var(--pdn-custom-theme-gap-d, 20px);
  /* Full page width (without the vertical scrollbar, set by the slider JS) */
  --pdn-custom-theme-page-w: calc(100vw - var(--pdn-custom-theme-sbw, 0px));
  position: relative !important;
  display: block !important;
  box-sizing: border-box !important;
  max-width: none !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding: 0 !important;
}

@media only screen and (max-width: 1023.98px) {
  .pdn-custom-theme-slider {
    --pdn-custom-theme-spv: var(--pdn-custom-theme-spv-t, 1);
    --pdn-custom-theme-gap: var(--pdn-custom-theme-gap-t, 20px);
  }
}

@media only screen and (max-width: 767.98px) {
  .pdn-custom-theme-slider {
    --pdn-custom-theme-spv: var(--pdn-custom-theme-spv-m, 1);
    --pdn-custom-theme-gap: var(--pdn-custom-theme-gap-m, 15px);
  }
}

.pdn-custom-theme-slider__viewport {
  position: relative !important;
  overflow: hidden !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  touch-action: pan-y;
}

.pdn-custom-theme-slider__track {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: stretch !important;
  gap: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  will-change: transform;
  transform: translate3d(0, 0, 0);
}

.pdn-custom-theme-slider.is-dragging .pdn-custom-theme-slider__track {
  cursor: grabbing;
}

.pdn-custom-theme-slider .pdn-custom-theme-slider__track > .pdn-custom-theme-slider__slide {
  flex: 0 0 calc((100% - (var(--pdn-custom-theme-spv) - 1) * var(--pdn-custom-theme-gap)) / var(--pdn-custom-theme-spv)) !important;
  width: calc((100% - (var(--pdn-custom-theme-spv) - 1) * var(--pdn-custom-theme-gap)) / var(--pdn-custom-theme-spv)) !important;
  min-width: 0 !important;
  max-width: none !important;
  margin: 0 var(--pdn-custom-theme-gap) 0 0 !important;
  position: relative !important;
  box-sizing: border-box !important;
}

.pdn-custom-theme-slider__slide img {
  -webkit-user-drag: none;
  user-select: none;
}

/* Pagination: live Swiper "bullets" styled as 2px lines, 28px under the slides */
.pdn-custom-theme-slider__pagination {
  display: flex !important;
  justify-content: center !important;
  align-items: flex-start !important;
  flex-wrap: wrap !important;
  height: 30px !important;
  margin: 0 !important;
  padding: 28px 0 0 0 !important;
  box-sizing: border-box !important;
  line-height: 0 !important;
}

.pdn-custom-theme-slider__pagination:empty {
  display: none !important;
}

.pdn-custom-theme-slider__bullet {
  position: relative !important;
  display: block !important;
  width: 100px !important;
  height: 2px !important;
  min-height: 0 !important;
  margin: 0 6px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: rgba(0, 0, 0, 0.32) !important;
  box-shadow: none !important;
  cursor: pointer !important;
  opacity: 1 !important;
  transition: background-color 0.3s ease !important;
  -webkit-appearance: none;
  appearance: none;
}

/* Bigger click area without changing the 2px line */
.pdn-custom-theme-slider__bullet::before {
  content: "" !important;
  position: absolute !important;
  top: -10px !important;
  bottom: -10px !important;
  left: 0 !important;
  right: 0 !important;
}

.pdn-custom-theme-slider__bullet.is-active,
.pdn-custom-theme-slider__bullet:hover {
  background: #616161 !important;
}

.pdn-custom-theme-slider__bullet:focus-visible {
  outline: 2px solid #013dc4 !important;
  outline-offset: 4px !important;
}

@media only screen and (max-width: 768px) {
  .pdn-custom-theme-slider__bullet {
    width: 22px !important;
  }
}

/* ==========================================================================
   3. LAYOUT "HOTSPOT" - Kozijn-deur combinaties
   live: section = 90% of the page width (centered), 600px high images
   ========================================================================== */
.pdn-custom-theme-slider.pdn-custom-theme-slider--hotspot {
  --pdn-custom-theme-bleed-w: calc(var(--pdn-custom-theme-page-w) - 7px);
  width: calc(var(--pdn-custom-theme-bleed-w) * 0.9) !important;
  margin-left: calc(50% - var(--pdn-custom-theme-bleed-w) * 0.45) !important;
  margin-right: 0 !important;
}

.pdn-custom-theme-slider--hotspot .pdn-custom-theme-slider__track > .pdn-custom-theme-slider__slide {
  height: 600px !important;
  overflow: visible !important;
}

@media only screen and (max-width: 1024px) {
  .pdn-custom-theme-slider.pdn-custom-theme-slider--hotspot {
    --pdn-custom-theme-bleed-w: 100vw;
  }
}

@media only screen and (max-width: 768px) {
  .pdn-custom-theme-slider--hotspot .pdn-custom-theme-slider__viewport {
    margin: 0 10px !important;
  }

  .pdn-custom-theme-slider--hotspot .pdn-custom-theme-slider__track > .pdn-custom-theme-slider__slide {
    height: min(600px, calc(100vw - 50px)) !important;
  }
}

/* The image keeps its own ratio, 600px high, centered in the slide (dots stay on the same spot) */
.pdn-custom-theme-slider--hotspot .pdn-custom-theme-hotspot {
  position: absolute !important;
  inset: 0 !important;
  margin: 0 !important;
}

.pdn-custom-theme-slider--hotspot .pdn-custom-theme-hotspot__stage {
  position: absolute !important;
  top: 0 !important;
  left: 50% !important;
  height: 100% !important;
  width: auto !important;
  aspect-ratio: var(--pdn-custom-theme-hotspot-ratio, 1 / 1) !important;
  transform: translateX(-50%) !important;
}

/* live (mobile/tablet <= 768px): the image is not centered - it starts at
   (slide center - min(325px, 50vw)), so on phones it touches the screen edge,
   its left side is cut and the next slide peeks in on the right */
@media only screen and (max-width: 768px) {
  .pdn-custom-theme-slider--hotspot .pdn-custom-theme-hotspot__stage {
    left: calc(50% - min(325px, 50vw)) !important;
    transform: none !important;
  }
}

/* ==========================================================================
   4. LAYOUT "CARDS" - Shop voordeur kozijnen (existing category card look)
   ========================================================================== */
.pdn-custom-theme-slider.pdn-custom-theme-slider--cards {
  --pdn-custom-theme-cards-w: min(1350px, calc(var(--pdn-custom-theme-page-w) - 7px));
  width: var(--pdn-custom-theme-cards-w) !important;
  margin-left: calc(50% - var(--pdn-custom-theme-cards-w) / 2) !important;
  margin-right: 0 !important;
}

@media only screen and (max-width: 1024px) {
  .pdn-custom-theme-slider.pdn-custom-theme-slider--cards {
    width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
  }
}

@media only screen and (max-width: 768px) {
  .pdn-custom-theme-slider.pdn-custom-theme-slider--cards {
    margin-left: calc(50% - 50vw + 10px) !important;
  }
}

.pdn-custom-theme-slider.pdn-custom-theme-slider--cards .pdn-custom-theme-slider__track > .pdn-custom-theme-slider__slide.pdn-custom-theme-cat-card {
  display: flex !important;
  flex-direction: column !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  background: #ffffff !important;
  border: 1px solid #f0f0f0 !important;
  border-radius: 10px !important;
  overflow: hidden !important;
  padding: 0 !important;
  transition: all 0.3s ease !important;
}

.pdn-custom-theme-slider.pdn-custom-theme-slider--cards .pdn-custom-theme-slider__track > .pdn-custom-theme-slider__slide.pdn-custom-theme-cat-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 10px 25px rgba(1, 61, 196, 0.15) !important;
  border-color: #013dc4 !important;
}

.pdn-custom-theme-slider.pdn-custom-theme-slider--cards .pdn-custom-theme-slider__slide.pdn-custom-theme-cat-card figure,
.pdn-custom-theme-slider.pdn-custom-theme-slider--cards .pdn-custom-theme-slider__slide.pdn-custom-theme-cat-card figure a {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  flex: 0 0 auto !important;
  aspect-ratio: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

.pdn-custom-theme-slider.pdn-custom-theme-slider--cards .pdn-custom-theme-slider__slide.pdn-custom-theme-cat-card figure img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  aspect-ratio: auto !important;
  object-fit: fill !important;
  border-radius: 0 !important;
  transition: transform 0.5s ease !important;
}

.pdn-custom-theme-slider.pdn-custom-theme-slider--cards .pdn-custom-theme-slider__slide.pdn-custom-theme-cat-card:hover figure img {
  transform: scale(1.05) !important;
}

/* Title area: live = 15px padding + 15px extra left padding, 17px / 27.2px line, 16px 600 link */
.pdn-custom-theme-slider.pdn-custom-theme-slider--cards .pdn-custom-theme-slider__slide.pdn-custom-theme-cat-card p.pdn-custom-theme-cat-card-title {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 1 1 auto !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 15px 15px 15px 30px !important;
  box-sizing: border-box !important;
  min-height: 57.2px !important; /* live: 15px + 27.2px line + 15px */
  background: #ffffff !important;
  font-size: 17px !important;
  line-height: 27.2px !important;
  text-align: center !important;
}

.pdn-custom-theme-slider.pdn-custom-theme-slider--cards .pdn-custom-theme-slider__slide.pdn-custom-theme-cat-card p.pdn-custom-theme-cat-card-title a {
  display: inline !important;
  font-family: "Open Sans", Arial, Helvetica, sans-serif !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  line-height: 25.6px !important;
  color: #242424 !important;
  text-decoration: none !important;
  white-space: normal !important;
  transition: color 0.3s ease !important;
}

.pdn-custom-theme-slider.pdn-custom-theme-slider--cards .pdn-custom-theme-slider__slide.pdn-custom-theme-cat-card:hover p.pdn-custom-theme-cat-card-title a {
  color: #013dc4 !important;
}

@media only screen and (max-width: 1024px) {
  .pdn-custom-theme-slider.pdn-custom-theme-slider--cards .pdn-custom-theme-slider__slide.pdn-custom-theme-cat-card p.pdn-custom-theme-cat-card-title a {
    color: #000000 !important;
  }
}

/* <= 768px: 230px card, 150px image (cover), 10px padding, 14px / 18.2px, 2 lines max */
@media only screen and (max-width: 768px) {
  .pdn-custom-theme-slider.pdn-custom-theme-slider--cards .pdn-custom-theme-slider__track > .pdn-custom-theme-slider__slide.pdn-custom-theme-cat-card {
    height: 230px !important;
    min-height: 230px !important;
    max-height: 230px !important;
  }

  .pdn-custom-theme-slider.pdn-custom-theme-slider--cards .pdn-custom-theme-slider__slide.pdn-custom-theme-cat-card figure,
  .pdn-custom-theme-slider.pdn-custom-theme-slider--cards .pdn-custom-theme-slider__slide.pdn-custom-theme-cat-card figure a {
    height: 150px !important;
    min-height: 150px !important;
    max-height: 150px !important;
    flex: 0 0 150px !important;
  }

  .pdn-custom-theme-slider.pdn-custom-theme-slider--cards .pdn-custom-theme-slider__slide.pdn-custom-theme-cat-card figure img {
    height: 150px !important;
    min-height: 150px !important;
    max-height: 150px !important;
    object-fit: cover !important;
    object-position: center center !important;
  }

  .pdn-custom-theme-slider.pdn-custom-theme-slider--cards .pdn-custom-theme-slider__slide.pdn-custom-theme-cat-card p.pdn-custom-theme-cat-card-title {
    padding: 10px 15px !important;
    min-height: 0 !important;
    font-size: 14px !important;
    line-height: 18.2px !important;
  }

  .pdn-custom-theme-slider.pdn-custom-theme-slider--cards .pdn-custom-theme-slider__slide.pdn-custom-theme-cat-card p.pdn-custom-theme-cat-card-title a {
    line-height: 20.8px !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }
}

/* ==========================================================================
   5. HOTSPOT IMAGE (blue dots + product popup)
   ========================================================================== */
.pdn-custom-theme-hotspot {
  position: relative;
  -webkit-tap-highlight-color: transparent;
  display: block;
  margin: 0;
}

.pdn-custom-theme-hotspot__stage {
  position: relative;
  width: 100%;
  aspect-ratio: var(--pdn-custom-theme-hotspot-ratio, 1 / 1);
}

.pdn-custom-theme-hotspot__img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  object-fit: fill !important;
  border-radius: 10px !important;
  user-select: none;
}

.pdn-custom-theme-hotspot__spot {
  position: absolute !important;
  width: 20px !important;
  height: 20px !important;
  margin: -10px 0 0 -10px !important;
  border-radius: 50% !important;
  box-shadow: 0 0 3px rgba(0, 0, 0, 0.15) !important;
  z-index: 2;
}

.pdn-custom-theme-hotspot__spot.is-open {
  z-index: 30;
}

.pdn-custom-theme-hotspot__dot {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  z-index: 1 !important;
  display: block !important;
  width: 20px !important;
  height: 20px !important;
  min-width: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  background-color: #1c61e7 !important;
  box-shadow: inset 100px 100px rgba(255, 255, 255, 0) !important;
  cursor: pointer !important;
  transition: all 0.3s !important;
  animation: pdn-custom-theme-pulse 2s ease-in-out infinite;
  backface-visibility: hidden;
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
}

/* White center dot */
.pdn-custom-theme-hotspot__dot::after {
  content: "" !important;
  position: absolute !important;
  top: 7px !important;
  left: 7px !important;
  width: 6px !important;
  height: 6px !important;
  border-radius: 50% !important;
  background-color: #ffffff !important;
}

.pdn-custom-theme-hotspot__dot:hover {
  box-shadow: inset 100px 100px rgba(255, 255, 255, 0.1) !important;
}

.pdn-custom-theme-hotspot__spot.is-open .pdn-custom-theme-hotspot__dot {
  box-shadow: inset 100px 100px rgba(0, 0, 0, 0.1) !important;
}

.pdn-custom-theme-hotspot__dot:focus-visible {
  outline: 2px solid #ffffff !important;
  outline-offset: 2px !important;
}

/* Pulsing ring (live "wd-Sonar") */
.pdn-custom-theme-hotspot__sonar {
  position: absolute !important;
  top: -8px !important;
  left: -8px !important;
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  background-color: rgba(255, 255, 255, 0.5) !important;
  opacity: 0;
  pointer-events: none !important;
  backface-visibility: hidden;
  animation: pdn-custom-theme-sonar 2s ease infinite;
}

@keyframes pdn-custom-theme-sonar {
  0% {
    opacity: 0;
    transform: scale(0.2);
  }
  50% {
    opacity: 0.8;
  }
  100% {
    opacity: 0;
    transform: scale(1);
  }
}

/* Blue dot grows and shrinks (live "wd-Pulse") */
@keyframes pdn-custom-theme-pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
}

@media (prefers-reduced-motion: reduce) {
  .pdn-custom-theme-hotspot__sonar,
  .pdn-custom-theme-hotspot__dot {
    animation: none;
  }
}

/* Popup: 250px white box, 15px padding, 10px radius (position set by JS so it always stays inside the slider) */
.pdn-custom-theme-hotspot__popup {
  position: absolute !important;
  top: 30px;
  left: -115px;
  z-index: 10 !important;
  width: 250px !important;
  max-width: none !important;
  box-sizing: border-box !important;
  padding: 15px !important;
  border-radius: 10px !important;
  background: #ffffff !important;
  box-shadow: 0 0 3px rgba(0, 0, 0, 0.15) !important;
  text-align: center !important;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: opacity 0.25s, visibility 0.25s, transform 0.25s;
}

/* Hand cursor only on the links/button inside the popup */
.pdn-custom-theme-hotspot__popup,
.pdn-custom-theme-hotspot__popup * {
  cursor: default !important;
}

.pdn-custom-theme-hotspot__popup a,
.pdn-custom-theme-hotspot__popup a *,
.pdn-custom-theme-hotspot__popup button {
  cursor: pointer !important;
}

.pdn-custom-theme-hotspot__spot.is-open .pdn-custom-theme-hotspot__popup {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.pdn-custom-theme-hotspot__popup > * {
  margin-top: 0 !important;
  margin-bottom: 10px !important;
}

.pdn-custom-theme-hotspot__popup > *:last-child {
  margin-bottom: 0 !important;
}

.pdn-custom-theme-hotspot__title {
  font-family: "Lexend Deca", Arial, Helvetica, sans-serif !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  line-height: 22.4px !important;
  color: #000000 !important;
  padding: 0 !important;
}

.pdn-custom-theme-hotspot__title a {
  display: block !important;
  width: fit-content !important;
  max-width: 100% !important;
  margin: 0 auto !important;
  font-family: "Lexend Deca", Arial, Helvetica, sans-serif !important;
  font-size: 15px !important;
  font-weight: 400 !important;
  line-height: 20px !important;
  color: #000000 !important;
  text-decoration: none !important;
}

.pdn-custom-theme-hotspot__title a:hover {
  color: #013dc4 !important;
}

.pdn-custom-theme-hotspot__price {
  font-family: "Lexend Deca", Arial, Helvetica, sans-serif !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  line-height: 19.2px !important;
  color: #000000 !important;
}

.pdn-custom-theme-hotspot__vanaf {
  font-size: 15px !important;
  font-weight: 600 !important;
  color: #000000 !important;
}

.pdn-custom-theme-hotspot__amount {
  font-size: 18px !important;
  font-weight: 600 !important;
  color: #000000 !important;
}

.pdn-custom-theme-hotspot__price.is-on-sale .pdn-custom-theme-hotspot__amount {
  color: #ff0000 !important;
}

.pdn-custom-theme-hotspot__old {
  margin-left: 4px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #808080 !important;
  text-decoration: line-through !important;
}

.pdn-custom-theme-hotspot__popup a.pdn-custom-theme-hotspot__button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 36px !important;
  margin: 0 !important;
  padding: 5px 14px !important;
  border: 0 !important;
  border-radius: 5px !important;
  background-color: #1c61e7 !important;
  box-shadow: none !important;
  color: #ffffff !important;
  font-family: "Open Sans", Arial, Helvetica, sans-serif !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  line-height: 14.4px !important;
  text-transform: none !important;
  text-decoration: none !important;
  cursor: pointer !important;
  transition: background-color 0.25s ease !important;
}

.pdn-custom-theme-hotspot__popup a.pdn-custom-theme-hotspot__button:hover {
  background-color: #013dc4 !important;
}

.pdn-custom-theme-hotspot__popup a.pdn-custom-theme-hotspot__button.loading {
  opacity: 0.7 !important;
}

.pdn-custom-theme-hotspot__popup .added_to_cart {
  display: none !important;
}

@media only screen and (max-width: 768px) {
  .pdn-custom-theme-hotspot__title {
    font-size: 14px !important;
    line-height: 19.6px !important;
  }

  .pdn-custom-theme-hotspot__title a {
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 17px !important;
  }

  .pdn-custom-theme-hotspot__price {
    font-size: 14px !important;
    line-height: 16.8px !important;
  }
}
