/* ==========================================================================
   AQWAKE-INSPIRED 3D CONCAVE RIBBON CAROUSEL (Best Sellers Hero Stage)
   Custom-tuned for Patricia Coffee Brewers
   ========================================================================== */

.carousel-eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(103, 16, 21, 0.08);
  color: #671015;
  border: 1px solid rgba(103, 16, 21, 0.22);
  padding: 0.35rem 0.95rem;
  border-radius: 9999px;
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.carousel-eyebrow-pill i {
  color: #C8A962;
  font-size: 0.8rem;
}

/* 3D Stage Outer Wrap */
.bestsellers-3d-stage-wrap {
  position: relative;
  width: 100%;
  max-width: 1120px;
  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;
}

/* Flanking Stage Nav Arrows */
.bestsellers-3d-stage-wrap .stage-nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 70;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 1px solid rgba(43, 30, 23, 0.12);
  color: #1A1412;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 10px 30px rgba(26, 20, 18, 0.15);
  cursor: pointer;
  transition: all 0.28s 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: 1200px) {
  .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: #671015;
  color: #FFFFFF;
  border-color: #671015;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 14px 32px rgba(103, 16, 21, 0.35);
}

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

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

/* Individual 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: -130px !important;
  transform-origin: center center !important;
  flex: 0 0 260px !important;
  width: 260px !important;
  min-height: 470px !important;
  height: 470px !important;
  background: #FFFFFF;
  border-radius: 18px;
  border: 1px solid rgba(43, 30, 23, 0.08);
  box-shadow: 0 16px 40px rgba(26, 20, 18, 0.08);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  cursor: pointer;
  will-change: transform, opacity;
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1),
              opacity 0.45s cubic-bezier(0.2, 0.8, 0.2, 1),
              box-shadow 0.35s ease;
}

.bestsellers-3d-ring .product-card.card-center {
  box-shadow: 0 24px 50px rgba(26, 20, 18, 0.16), 0 0 0 1.5px rgba(103, 16, 21, 0.2);
}

/* Media Wrap in 3D Card */
.bestsellers-3d-ring .product-card .card-media-wrap {
  position: relative;
  width: 100%;
  height: 250px;
  background: #F8F5F0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 1rem;
}

.bestsellers-3d-ring .product-card .card-media-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.08));
}

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

/* Badges on Card Media */
.card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 5;
  background: #1A1412;
  color: #FAF7F2;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.22rem 0.65rem;
  border-radius: 9999px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.card-badge.badge-signature {
  background: #671015;
  color: #FFFFFF;
}

.card-badge.badge-gold {
  background: #C8A962;
  color: #1A1412;
}

/* Quick View floating action on card */
.card-quick-actions {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  gap: 6px;
  z-index: 5;
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.25s ease;
}

.bestsellers-3d-ring .product-card.card-center:hover .card-quick-actions,
.bestsellers-3d-ring .product-card:hover .card-quick-actions {
  opacity: 1;
  transform: translateY(0);
}

.card-quick-btn {
  flex: 1;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(43, 30, 23, 0.12);
  color: #1A1412;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.5rem 0.6rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.card-quick-btn:hover {
  background: #671015;
  color: #FFFFFF;
  border-color: #671015;
}

/* Card Body */
.bestsellers-3d-ring .product-card .card-body {
  padding: 1rem 1.15rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
  background: #FFFFFF;
}

.card-origin-tag {
  font-size: 0.68rem;
  font-weight: 600;
  color: #C8A962;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-product-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #1A1412;
  line-height: 1.3;
  margin: 0 0 0.4rem 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-tasting-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 0.75rem;
}

.tasting-tag {
  font-size: 0.65rem;
  color: #554D46;
  background: #F4EFEA;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  white-space: nowrap;
}

.card-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(43, 30, 23, 0.07);
  padding-top: 0.65rem;
  margin-top: auto;
}

.card-price {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  color: #1A1412;
}

.card-rating-stars {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 0.72rem;
  color: #E29B24;
}

.card-rating-stars span {
  font-weight: 700;
  color: #554D46;
  font-size: 0.7rem;
  margin-left: 2px;
}

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

.indicator-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(43, 30, 23, 0.2);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.indicator-dot.active {
  width: 28px;
  border-radius: 9999px;
  background: #671015;
}

/* Responsiveness & Mobile Optimization */
@media (max-width: 768px) {
  .bestsellers-3d-stage-wrap {
    min-height: 430px;
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
    padding: 0 4px;
  }
  
  .bestsellers-3d-ring {
    min-height: 410px;
    width: 100%;
  }

  .bestsellers-3d-ring .product-card {
    margin-top: -200px !important;
    margin-left: -100px !important;
    flex: 0 0 200px !important;
    width: 200px !important;
    min-height: 400px !important;
    height: 400px !important;
    border-radius: 14px;
  }

  .bestsellers-3d-ring .product-card .card-media-wrap {
    height: 185px;
    padding: 0.75rem;
  }

  .card-product-title {
    font-size: 0.95rem;
  }

  .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: 420px) {
  .bestsellers-3d-stage-wrap {
    min-height: 400px;
  }

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

  .bestsellers-3d-ring .product-card {
    margin-top: -190px !important;
    margin-left: -92px !important;
    flex: 0 0 184px !important;
    width: 184px !important;
    min-height: 380px !important;
    height: 380px !important;
  }

  .bestsellers-3d-ring .product-card .card-media-wrap {
    height: 170px;
    padding: 0.5rem;
  }

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

  .card-product-title {
    font-size: 0.88rem;
    margin-bottom: 0.25rem;
  }

  .card-price {
    font-size: 1rem;
  }

  .tasting-tag {
    font-size: 0.6rem;
    padding: 0.1rem 0.35rem;
  }
}
