/* ==========================================================================
   AQWAKE 3D AMPHITHEATER CAROUSEL (Under Best Sellers / Compliance Packages)
   ========================================================================== */

.bestsellers-3d-stage-wrap {
  position: relative;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1150px;
  perspective-origin: 50% 50%;
  overflow: visible;
  user-select: none;
  touch-action: pan-y;
  padding: 1.5rem 0;
}

/* Flanking Stage Nav Arrows */
.bestsellers-3d-stage-wrap .stage-nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 60;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.12);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.bestsellers-3d-stage-wrap .stage-nav-arrow.arrow-left {
  left: 8px;
}

.bestsellers-3d-stage-wrap .stage-nav-arrow.arrow-right {
  right: 8px;
}

@media (min-width: 1280px) {
  .bestsellers-3d-stage-wrap .stage-nav-arrow.arrow-left {
    left: -24px;
  }
  .bestsellers-3d-stage-wrap .stage-nav-arrow.arrow-right {
    right: -24px;
  }
}

.bestsellers-3d-stage-wrap .stage-nav-arrow:hover {
  background: #e85d04;
  color: #ffffff;
  border-color: #e85d04;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 12px 28px rgba(232, 93, 4, 0.35);
}

.bestsellers-3d-stage-wrap .stage-nav-arrow:active {
  transform: translateY(-50%) scale(0.95);
}

/* 3D Ring Stage */
.bestsellers-3d-ring {
  position: relative;
  width: 100%;
  min-height: 480px;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
  user-select: none;
}

/* Product Card in 3D Stage */
.bestsellers-3d-ring .product-card {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  margin-top: -240px !important;
  margin-left: -135px !important;
  transform-origin: center center !important;
  width: 270px !important;
  min-height: 470px;
  height: 470px;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  transform-style: preserve-3d;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), 
              opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1), 
              box-shadow 0.35s ease, 
              border-color 0.35s ease;
  will-change: transform, opacity;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.bestsellers-3d-ring .product-card .card-media-wrap {
  height: 200px;
  aspect-ratio: unset;
  position: relative;
  background-color: #f1f5f9;
  overflow: hidden;
}

.card-img-primary,
.card-img-secondary {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-img-secondary {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.product-card:hover .card-img-secondary {
  opacity: 1;
  transform: scale(1.05);
}

.product-card:hover .card-img-primary {
  transform: scale(1.05);
}

/* Badges on Card */
.card-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 4;
}

.card-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 0.28rem 0.65rem;
  border-radius: 9999px;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.card-badge.badge-vic {
  background: #0f172a;
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.card-badge.badge-best {
  background: #e85d04;
  color: #ffffff;
}

.card-badge.badge-life {
  background: #dc2626;
  color: #ffffff;
}

.card-badge.badge-warranty {
  background: #059669;
  color: #ffffff;
}

/* Quick Action Overlay */
.card-quick-actions {
  position: absolute;
  bottom: 10px;
  left: 10px;
  right: 10px;
  z-index: 4;
  display: flex;
  gap: 0.4rem;
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.25s ease;
}

.product-card:hover .card-quick-actions {
  opacity: 1;
  transform: translateY(0);
}

.card-quick-view-btn {
  flex: 1;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(6px);
  color: #0f172a;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.55rem 0.45rem;
  border-radius: 8px;
  border: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
}

.card-quick-view-btn:hover {
  background: #0f172a;
  color: #ffffff;
}

.card-quick-book-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #e85d04;
  color: #ffffff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  box-shadow: 0 4px 12px rgba(232, 93, 4, 0.35);
  transition: all 0.2s ease;
}

.card-quick-book-btn:hover {
  background: #d00000;
  transform: scale(1.06);
}

/* Card Body */
.bestsellers-3d-ring .product-card .card-body {
  padding: 1.1rem 1.15rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  background: #ffffff;
}

.bestsellers-3d-ring .product-card .card-category {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #e85d04;
  margin-bottom: 0.3rem;
}

.bestsellers-3d-ring .product-card .card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.35;
  height: 2.7rem;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin-bottom: 0.45rem;
}

.bestsellers-3d-ring .product-card .card-rating {
  font-size: 0.74rem;
  color: #f59e0b;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 0.55rem;
}

.bestsellers-3d-ring .product-card .card-rating span {
  color: #64748b;
  font-size: 0.7rem;
  margin-left: 2px;
}

.bestsellers-3d-ring .product-card .card-features-mini {
  list-style: none;
  padding: 0;
  margin: 0 0 0.6rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
}

.bestsellers-3d-ring .product-card .card-features-mini li {
  font-size: 0.72rem;
  color: #475569;
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bestsellers-3d-ring .product-card .card-features-mini li i {
  color: #10b981;
  font-size: 0.68rem;
  flex-shrink: 0;
}

.bestsellers-3d-ring .product-card .card-price-row {
  border-top: 1px solid #f1f5f9;
  padding-top: 0.65rem;
  margin-top: auto;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.bestsellers-3d-ring .product-card .card-price {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
}

.bestsellers-3d-ring .product-card .card-price-period {
  font-size: 0.68rem;
  color: #64748b;
  font-weight: 500;
}

.bestsellers-3d-ring .product-card .card-compare-price {
  font-size: 0.78rem;
  color: #94a3b8;
  text-decoration: line-through;
  margin-left: 4px;
}

/* Center Highlight Card — Front & Prominent */
.bestsellers-3d-ring .product-card.card-center {
  border: 2px solid #e85d04;
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.18), 0 0 0 1px rgba(232, 93, 4, 0.2);
}

.bestsellers-3d-ring .product-card:hover {
  border-color: #e85d04;
}

/* Indicators */
.carousel-indicators {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 2rem;
}

.carousel-indicator-dot {
  width: 9px;
  height: 9px;
  border-radius: 9999px;
  background: #cbd5e1;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s ease;
}

.carousel-indicator-dot.active {
  width: 26px;
  background: #e85d04;
  box-shadow: 0 2px 8px rgba(232, 93, 4, 0.4);
}

/* ==========================================================================
   MOBILE OPTIMIZATION FOR 3D CAROUSEL (Smaller & Perfectly Centered)
   ========================================================================== */
@media (max-width: 768px) {
  .bestsellers-3d-stage-wrap {
    min-height: 440px;
    padding: 0.5rem 0;
    max-width: 100vw;
    overflow: hidden;
  }

  .bestsellers-3d-ring {
    min-height: 420px;
  }

  /* Make product cards smaller on mobile as requested */
  .bestsellers-3d-ring .product-card {
    width: 220px !important;
    min-height: 390px;
    height: 390px;
    margin-top: -195px !important;
    margin-left: -110px !important;
    border-radius: 16px;
  }

  .bestsellers-3d-ring .product-card .card-media-wrap {
    height: 155px;
  }

  .bestsellers-3d-ring .product-card .card-body {
    padding: 0.85rem 0.9rem;
  }

  .bestsellers-3d-ring .product-card .card-title {
    font-size: 0.84rem;
    height: 2.3rem;
    margin-bottom: 0.3rem;
  }

  .bestsellers-3d-ring .product-card .card-features-mini {
    margin-bottom: 0.4rem;
  }

  .bestsellers-3d-ring .product-card .card-features-mini li {
    font-size: 0.67rem;
  }

  .bestsellers-3d-ring .product-card .card-price {
    font-size: 1.02rem;
  }

  .bestsellers-3d-ring .product-card .card-quick-actions {
    opacity: 1; /* Always visible on mobile touch */
    transform: translateY(0);
  }

  .bestsellers-3d-stage-wrap .stage-nav-arrow {
    width: 38px;
    height: 38px;
    font-size: 0.9rem;
  }

  .bestsellers-3d-stage-wrap .stage-nav-arrow.arrow-left {
    left: 4px;
  }

  .bestsellers-3d-stage-wrap .stage-nav-arrow.arrow-right {
    right: 4px;
  }
}

@media (max-width: 400px) {
  .bestsellers-3d-ring .product-card {
    width: 200px !important;
    margin-left: -100px !important;
    min-height: 375px;
    height: 375px;
    margin-top: -188px !important;
  }
}

/* ==========================================================================
   QUICK VIEW MODAL STYLING
   ========================================================================== */
.quickview-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
}

.quickview-overlay.active {
  opacity: 1;
  visibility: visible;
}

.quickview-modal {
  background: #ffffff;
  border-radius: 20px;
  max-width: 780px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  transform: scale(0.95) translateY(10px);
  transition: transform 0.25s ease;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 680px) {
  .quickview-modal {
    grid-template-columns: 1fr;
  }
}

.quickview-overlay.active .quickview-modal {
  transform: scale(1) translateY(0);
}

.quickview-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(241, 245, 249, 0.9);
  border: none;
  color: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
}

.quickview-close-btn:hover {
  background: #e85d04;
  color: #ffffff;
}

.quickview-media {
  position: relative;
  background: #f8fafc;
  min-height: 280px;
}

.quickview-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.quickview-details {
  padding: 2rem 1.8rem;
  display: flex;
  flex-direction: column;
}

.quickview-category {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #e85d04;
  letter-spacing: 0.08em;
  margin-bottom: 0.35rem;
}

.quickview-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

.quickview-price-wrap {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 1rem;
}

.quickview-price {
  font-size: 1.5rem;
  font-weight: 800;
  color: #0f172a;
}

.quickview-desc {
  font-size: 0.85rem;
  color: #475569;
  line-height: 1.55;
  margin-bottom: 1.2rem;
}

.quickview-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.quickview-features li {
  font-size: 0.82rem;
  color: #334155;
  display: flex;
  align-items: center;
  gap: 8px;
}

.quickview-features li i {
  color: #10b981;
}

.quickview-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: auto;
}
