/* Spinner base */
#dynamic-products,
.tapetit-target {
  position: relative;
}

.tapetit-spinner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity .2s;
}

.is-loading > .tapetit-spinner {
  opacity: 1;
}

.tapetit-spinner .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  margin: 0 4px;
  animation: tapetit-bounce .9s infinite alternate;
}
.tapetit-spinner .dot:nth-child(2) { animation-delay: .15s; }
.tapetit-spinner .dot:nth-child(3) { animation-delay: .3s; }

@keyframes tapetit-bounce {
  from { transform: translateY(0); opacity: .6; }
  to   { transform: translateY(-8px); opacity: 1; }
}

/* Optional: style the active label */
.tapetit-active-label { margin-bottom: 8px; font-weight: 600; }
.tapetit-active-label .prefix { opacity: .7; font-weight: 500; }



/* Overlay */
#tapetit-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
  z-index: 999; /* under the megamenu */
}
#tapetit-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* Megamenu visibility (tune to your structure) */
.products-dropdown-wrapper {
  display: none!important;
  position: relative; /* or your layout */
  z-index: 1000;      /* above overlay */
}
.products-dropdown-wrapper.active {
  display: block!important;
}




