/* =========================================================================
   AQWAKE BEST SELLERS 3D CONCAVE RIBBON CAROUSEL
   Adapted for Platō Coffee
   ========================================================================= */

/* Eyebrow Pill */
.carousel-eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(19, 56, 44, 0.08);
  border: 1px solid rgba(19, 56, 44, 0.18);
  color: #13382c;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
}

.carousel-eyebrow-pill i {
  color: #c88a4a;
  font-size: 0.75rem;
}

/* 3D Concave Amphitheater Stage Wrap */
.bestsellers-3d-stage-wrap {
  position: relative;
  width: 100%;
  max-width: 1060px;
  margin: 0 auto;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1150px;
  perspective-origin: 50% 50%;
  overflow: visible;
  user-select: none;
  touch-action: pan-y;
}

/* Flanking Stage Nav Arrows */
.bestsellers-3d-stage-wrap .stage-nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 60;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #e3ded6;
  color: #13382c;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 8px 24px rgba(19, 56, 44, 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: 6px;
}

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

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

@media (max-width: 480px) {
  .bestsellers-3d-stage-wrap .stage-nav-arrow {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
  }
  .bestsellers-3d-stage-wrap .stage-nav-arrow.arrow-left {
    left: 2px;
  }
  .bestsellers-3d-stage-wrap .stage-nav-arrow.arrow-right {
    right: 2px;
  }
}

.bestsellers-3d-stage-wrap .stage-nav-arrow:hover {
  background: #13382c;
  color: #ffffff;
  border-color: #13382c;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 12px 28px rgba(19, 56, 44, 0.3);
}

.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: 470px;
  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: -220px !important;
  margin-left: -125px !important;
  transform-origin: center center !important;
  width: 250px !important;
  min-height: 440px;
  height: 440px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid #e3ded6;
  box-shadow: 0 10px 30px rgba(19, 56, 44, 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:hover {
  border-color: rgba(19, 56, 44, 0.3);
  box-shadow: 0 16px 36px rgba(19, 56, 44, 0.16);
}

.bestsellers-3d-ring .product-card.card-center {
  border-color: #13382c;
  box-shadow: 0 20px 42px rgba(19, 56, 44, 0.22);
}

/* Card Media Wrap - Strictly relative and contained */
.card-media-wrap {
  position: relative !important;
  width: 100%;
  height: 220px;
  background-color: #f7f6f2;
  overflow: hidden !important;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-media-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  display: block;
}

.product-card:hover .card-media-wrap img {
  transform: scale(1.06);
}

/* Card Badges - strictly scoped inside .card-media-wrap */
.card-media-wrap .card-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.badge {
  display: inline-block;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.badge-best {
  background: #13382c;
  color: #ffffff;
}

.badge-new {
  background: #c88a4a;
  color: #ffffff;
}

.badge-popular {
  background: #235847;
  color: #ffffff;
}

.badge-limited {
  background: #8b3a3a;
  color: #ffffff;
}

/* Wishlist Button - strictly scoped inside .card-media-wrap */
.card-media-wrap .wishlist-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 6;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(0, 0, 0, 0.06);
  color: #63726c;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.card-media-wrap .wishlist-btn:hover {
  background: #ffffff;
  color: #e24a4a;
  transform: scale(1.12);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.card-media-wrap .wishlist-btn.active {
  color: #e24a4a;
}

/* Quick Actions Overlay (Desktop hover) */
.card-quick-actions {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px;
  display: flex;
  gap: 8px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55), transparent);
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.25s ease;
  z-index: 5;
}

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

.card-quick-btn {
  flex: 1;
  padding: 6px 10px;
  font-size: 0.72rem;
  font-weight: 600;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: all 0.2s ease;
}

.card-quick-btn.btn-view {
  background: rgba(255, 255, 255, 0.95);
  color: #13382c;
}

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

.card-quick-btn.btn-add {
  background: #13382c;
  color: #ffffff;
}

.card-quick-btn.btn-add:hover {
  background: #1d4e3f;
}

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

.card-category {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #c88a4a;
  margin-bottom: 0.25rem;
}

.card-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #19201d;
  line-height: 1.3;
  height: 2.4rem;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin-bottom: 0.4rem;
}

/* Star Rating */
.card-rating {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  color: #f59e0b;
  margin-bottom: 0.6rem;
}

.card-rating .rating-count {
  color: #8c9b95;
  font-size: 0.68rem;
}

/* Price Row */
.card-price-row {
  margin-top: auto;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-top: 0.5rem;
  border-top: 1px solid #f0ede8;
}

.card-price {
  font-size: 1.05rem;
  font-weight: 800;
  color: #13382c;
  font-family: 'Montserrat', sans-serif;
}

.card-compare-price {
  font-size: 0.78rem;
  color: #a0aea8;
  text-decoration: line-through;
  margin-left: 6px;
}

.card-cart-btn-round {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(19, 56, 44, 0.08);
  border: 1px solid rgba(19, 56, 44, 0.15);
  color: #13382c;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.card-cart-btn-round:hover {
  background: #13382c;
  color: #ffffff;
  transform: scale(1.08);
}

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

.carousel-indicator-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #d8d3c8;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.carousel-indicator-dot.active {
  width: 28px;
  background: #13382c;
}
