/* =========================
   HOTSPOT WRAPPER
========================= */

.products {
  width: 100%;
  padding: 2rem;
}

.product-card {
  width: 80%;
  margin-inline: auto;
}

.product-image {
  position: relative;
}

.product-image img {
  width: 100%;
  display: block;
  height: auto;
}

/* =========================
   HOTSPOTS
========================= */

.hotspot {
  position: absolute;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  border: none;
  background: var(--blue-500);
  cursor: pointer;
  z-index: 2;
}

.hotspot::before {
  content: "";
  position: absolute;

  top: 50%;
  left: 50%;

  transform: translate(-50%, -50%);

  width: 100%;
  height: 100%;

  border-radius: inherit;

  background: inherit;

  animation: pulse 2s infinite;
}

/* =========================
   HOTSPOT POSITIONS
========================= */

.h-1 {
  left: 14%;
  top: 15%;
}

.h-2 {
  left: 37%;
  top: 55%;
}

.h-4 {
  left: 84%;
  top: 24%;
}

.h-5 {
  left: 72%;
  top: 18%;
}

.h-6 {
  left: 3.5%;
  top: 50%;
}

/* =========================
   MODAL
========================= */

.hotspot-modal {
  position: fixed;
  inset: 0;

  display: flex;
  justify-content: center;
  align-items: center;

  z-index: 999;

  opacity: 0;
  visibility: hidden;

  transition:
    opacity 250ms ease,
    visibility 250ms ease;
}

.hotspot-modal.active {
  opacity: 1;
  visibility: visible;
}

.hotspot-modal__overlay {
  position: absolute;
  inset: 0;

  background: rgba(0,0,0,0.65);

  backdrop-filter: blur(4px);
}

.hotspot-modal__card {
  position: relative;

  width: min(90vw, 700px);

  background: white;

  border-radius: 2rem;

  overflow: hidden;

  z-index: 2;

  animation: modalIn 300ms ease;
}

/* .hotspot-modal__image {
  width: 100%;
  height: 320px;
  object-fit: contain;
  display: block;
}

.hotspot-modal__image {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: none;
  }

  .hotspot-modal__video {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: contain;
    display: none;
    background: white;
  } */

  .hotspot-modal__image,
.hotspot-modal__video {
  width: 100%;

  max-height: 75vh;

  object-fit: contain;

  display: none;

  background: black;
}

.hotspot-modal__content {
  padding: 2.4rem;
}

.hotspot-modal__title {
  font-size: 2.8rem;
  margin-bottom: 0.4rem;
  font-family: Inter;
  color: var(--main-color-dark)
}

.hotspot-modal__description {
  font-size: 1.6rem;
  line-height: 1.6;
  font-family: Inter;
  color: var(--main-color-dark)
}

.hotspot-modal__close {
  position: absolute;

  top: 1.6rem;
  right: 1.6rem;

  width: 4rem;
  height: 4rem;

  border-radius: 50%;
  border: none;

  background: rgba(0,0,0,0.5);

  color: white;

  font-size: 2.4rem;

  cursor: pointer;

  z-index: 5;
}






/* =========================
   ANIMATIONS
========================= */

@keyframes pulse {

  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }

  100% {
    transform: translate(-50%, -50%) scale(3);
    opacity: 0;
  }
}

@keyframes modalIn {

  from {
    transform: scale(.9);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}



/* ============================================================
   MOBILE OVERRIDES — HOTSPOTS.CSS
   screens <= 798px
============================================================ */

@media screen and (max-width: 798px) {

    /* =========================
       PRODUCTS WRAPPER
    ========================= */
  
    .products {
      width: 100%;
      padding: 1rem 0;
    }
  
    .product-card {
      width: 100%;
      margin-inline: auto;
    }
  
    .product-image {
      width: 100%;
      position: relative;
      overflow: hidden;
    }
  
    .product-image img {
      width: 100%;
      height: auto;
      display: block;
    }
  
    /* =========================
       HOTSPOTS
    ========================= */
  
    .hotspot {
      width: 1.8rem;
      height: 1.8rem;
    }
  
    .hotspot::before {
      animation: pulse 2.2s infinite;
    }
  
    /* =========================
       HOTSPOT POSITIONS
       (Fine-tuned for mobile)
    ========================= */
  
    .h-1 {
      left: 14%;
      top: 15%;
    }
  
    .h-2 {
      left: 37%;
      top: 55%;
    }
  
    .h-4 {
      left: 84%;
      top: 24%;
    }
  
    .h-5 {
      left: 72%;
      top: 18%;
    }
  
    .h-6 {
      left: 3.5%;
      top: 50%;
    }
  
    /* =========================
       MODAL
    ========================= */
  
    .hotspot-modal {
      padding: 1.6rem;
    }
  
    .hotspot-modal__card {
  
      width: 100%;
  
      max-width: 100%;
  
      border-radius: 1.6rem;
  
      overflow: hidden;
    }
  
    .hotspot-modal__image,
    .hotspot-modal__video {
  
      width: 100%;
  
      max-height: 60vh;
  
      object-fit: contain;
  
      background: black;
    }
  
    .hotspot-modal__content {
      padding: 2rem;
    }
  
    .hotspot-modal__title {
  
      font-size: 2rem;
  
      line-height: 1.2;
  
      margin-bottom: 0.8rem;
    }
  
    .hotspot-modal__description {
  
      font-size: 1.4rem;
  
      line-height: 1.6;
    }
  
    .hotspot-modal__close {
  
      top: 1rem;
      right: 1rem;
  
      width: 3.6rem;
      height: 3.6rem;
  
      font-size: 2rem;
    }
  
    /* =========================
       BETTER TOUCH TARGETS
    ========================= */
  
    .hotspot,
    .hotspot-modal__close {
      touch-action: manipulation;
    }
  
  }