/* =========================================
   NAVIGATION CONTROLS (Durr Dental)
   ========================================= */

/* -- Anti-flash: hide controls until JS sets state -- */
#catalog-app:not(.controls-ready) .swiper-button-prev,
#catalog-app:not(.controls-ready) .swiper-button-next,
#catalog-app:not(.controls-ready) .slide-counter,
#catalog-app:not(.controls-ready) .hamburger-btn,
#catalog-app:not(.controls-ready) .request-info-desktop-btn,
#catalog-app:not(.controls-ready) .request-info-mobile-btn {
  opacity: 0;
  pointer-events: none;
  display: none !important;
}

/* -- Arrow buttons -- */
.swiper-button-prev,
.swiper-button-next {
  position: fixed !important;
  bottom: 50px !important;
  top: auto !important;
  width: 40px !important;
  height: 40px !important;
  border-radius: 50%;
  background: var(--primary-950);
  color: var(--white) !important;
  z-index: 9999;
  transition: background 0.2s;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
  background: rgba(12, 35, 59, 0.9);
}

.swiper-button-prev::after,
.swiper-button-next::after {
  font-size: 14px !important;
  font-weight: 700;
}

.swiper-button-prev {
  left: 28px !important;
  right: auto !important;
}

.swiper-button-next {
  left: 164px !important;
  right: auto !important;
}

/* -- Slide counter (between arrows) -- */
.slide-counter {
  position: fixed;
  bottom: 50px;
  left: 76px;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 82px;
  height: 40px;
  padding: 0 12px;
  background: var(--primary-950);
  border-radius: 20px;
  color: var(--white);
  font-family: var(--font-family);
  font-size: var(--text-sm);
  font-weight: var(--fw-book);
  white-space: nowrap;
}

/* -- Index button (grid icon, after arrows) -- */
.hamburger-btn {
  position: fixed !important;
  bottom: 50px;
  left: 230px;
  z-index: 200;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--primary-950);
  color: var(--primary-500);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background 0.2s;
}

.hamburger-btn:hover {
  background: rgba(12, 35, 59, 0.9);
}

.hamburger-icon {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hamburger-icon svg {
  width: 22px;
  height: 22px;
  display: block;
}

/* -- Hide arrows on home & form slides -- */
.catalog-swiper.hide-arrows .swiper-button-prev,
.catalog-swiper.hide-arrows .swiper-button-next {
  display: none !important;
}

#catalog-app.edge-slides .request-list-toggle-btn {
  display: none !important;
}

/* -- Navigation hint (bottom center, all slides) -- */
.slide-hint-global {
  position: absolute;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  color: var(--white);
  font-family: var(--font-family);
  font-size: var(--text-base);
  font-weight: var(--fw-book);
  opacity: 0.5;
  white-space: nowrap;
  pointer-events: none;
}


/* -- RICHIESTA INFO desktop button -- */
.request-info-desktop-btn {
  position: fixed !important;
  bottom: 50px;
  right: 28px;
  z-index: 9999;
  height: 40px;
  padding: 0 24px 0 24px;
  background: var(--primary-500);
  color: var(--white);
  border: none;
  border-radius: 20px;
  font-family: var(--font-family);
  font-size: var(--text-xs);
  font-weight: var(--fw-demi);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}

.request-info-desktop-btn .badge {
  position: absolute;
  top: -3px;
  right: -1px;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--primary-950);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid var(--white);
}

.request-info-desktop-btn:hover {
  background: var(--primary-700);
}

/* -- CARRELLO MOBILE button (sotto navbar) -- */
.request-info-mobile-btn {
  position: fixed;
  top: 120px;
  right: 16px;
  z-index: 9999;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--primary-500);
  color: var(--white);
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.request-info-mobile-btn .mobile-cart-icon,
.request-info-mobile-btn .mobile-close-icon {
  position: absolute;
  inset: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.request-info-mobile-btn .mobile-cart-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--white);
}

.request-info-mobile-btn .mobile-close-icon {
  color: var(--white);
  font-size: 30px;
  line-height: 1;
  opacity: 0;
  transform: scale(0.7) rotate(-45deg);
}

.request-info-mobile-btn.is-open .mobile-cart-icon {
  opacity: 0;
  transform: scale(0.7) rotate(45deg);
}

.request-info-mobile-btn.is-open .mobile-close-icon {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

.request-info-mobile-btn .badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  background: var(--primary-950);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

#catalog-app.request-list-open .request-info-desktop-btn .badge,
#catalog-app.request-list-open .request-info-mobile-btn .badge {
  opacity: 0 !important;
  visibility: hidden !important;
}

/* Desktop: mostra bottone testo, nascondi mobile */
@media (min-width: 769px) {
  .request-info-desktop-btn {
    display: flex;
    align-items: center;
  }
  .request-info-mobile-btn {
    display: none !important;
  }
}

/* Mobile: mostra icona, nascondi desktop */
@media (max-width: 768px) {
  .request-info-desktop-btn {
    display: none !important;
  }
  .request-info-mobile-btn {
    display: flex;
  }
}
