/**
 * Hot Deals 3D Slider Styles - Premium Redesign
 * Modern, elegant design with smooth animations
 */

/* ===== Slider Container ===== */
.hot-deals-slider-container {
  height: 40rem;
  width: 100%;
  max-width: 1400px;
  margin: 2rem auto;
  display: flex;
  justify-content: center;
  align-items: center;
  user-select: none;
  position: relative;
  padding: 0 1rem;
}

/* ===== Navigation Arrows ===== */
.hot-deals-left-arrow,
.hot-deals-right-arrow {
  height: 100%;
  width: 10%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
}

.hot-deals-nav-btn {
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: #333;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  font-size: 1.25rem;
}

.hot-deals-nav-btn:hover {
  background: #fff;
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  color: #dc2626;
}

.dark .hot-deals-nav-btn {
  background: rgba(42, 42, 42, 0.95);
  border-color: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.dark .hot-deals-nav-btn:hover {
  background: rgba(55, 55, 55, 0.95);
  color: #f43f5e;
}

/* ===== Slider Content ===== */
.hot-deals-slider-content {
  height: 100%;
  width: 80%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: row;
  overflow: hidden;
  position: relative;
  perspective: 1000px;
}

.hot-deals-slider-content-background {
  height: 100%;
  width: 102%;
  position: absolute;
  top: 0;
  left: -1%;
  background: linear-gradient(
    to left,
    rgba(249, 250, 251, 0.95),
    transparent 15%,
    transparent 85%,
    rgba(249, 250, 251, 0.95)
  );
  z-index: 3;
  pointer-events: none;
}

.dark .hot-deals-slider-content-background {
  background: linear-gradient(
    to left,
    rgba(17, 24, 39, 0.95),
    transparent 15%,
    transparent 85%,
    rgba(17, 24, 39, 0.95)
  );
}

/* ===== Slide Cards ===== */
.hot-deals-slider-content .hot-deals-slide {
  position: absolute;
  left: 50%;
  height: 28rem;
  max-height: 450px;
  width: 18rem;
  min-width: 320px;
  border-radius: 24px;
  z-index: 0;
  transform: translate(-50%, 0) rotateY(0deg) scale(1, 1);
  transform-style: preserve-3d;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  will-change: transform, opacity;
  contain: layout style paint;
}

/* Position 1 - Far Left */
.hot-deals-slide.position-1 {
  left: 20% !important;
  z-index: 1 !important;
  transform: translate(-50%, 0) rotateY(-15deg) scale(0.75, 0.75) !important;
  opacity: 0.6 !important;
  filter: blur(4px) brightness(0.8);
}

/* Position 2 - Left */
.hot-deals-slide.position-2 {
  left: 35% !important;
  z-index: 2 !important;
  transform: translate(-50%, 0) rotateY(-8deg) scale(0.85, 0.85) !important;
  opacity: 0.8 !important;
  filter: blur(2px) brightness(0.9);
}

/* Position 3 - Center (Active) */
.hot-deals-slide.position-3 {
  left: 50% !important;
  z-index: 5 !important;
  transform: translate(-50%, 0) rotateY(0deg) scale(1, 1) !important;
  opacity: 1 !important;
  filter: blur(0px) brightness(1);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1);
  height: 439px;
}

.hot-deals-slide.position-3:hover {
  transform: translate(-50%, -8px) rotateY(0deg) scale(1.02, 1.02) !important;
  box-shadow: 0 30px 80px rgba(220, 38, 38, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.2);
}

/* Position 4 - Right */
.hot-deals-slide.position-4 {
  left: 65% !important;
  z-index: 2 !important;
  transform: translate(-50%, 0) rotateY(8deg) scale(0.85, 0.85) !important;
  opacity: 0.8 !important;
  filter: blur(2px) brightness(0.9);
}

/* Position 5 - Far Right */
.hot-deals-slide.position-5 {
  left: 80% !important;
  z-index: 1 !important;
  transform: translate(-50%, 0) rotateY(15deg) scale(0.75, 0.75) !important;
  opacity: 0.6 !important;
  filter: blur(4px) brightness(0.8);
}

/* Hidden Position */
.hot-deals-slide.position-none {
  left: 50%;
  z-index: 0;
  transform: translate(-50%, 0) rotateY(0deg) scale(0.6, 0.6);
  opacity: 0;
  filter: blur(8px);
}

/* ===== Card Wrapper ===== */
.hot-deals-card-wrapper {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
}

.dark .hot-deals-card-wrapper {
  background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.hot-deals-slide.position-3 .hot-deals-card-wrapper {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.dark .hot-deals-slide.position-3 .hot-deals-card-wrapper {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

/* ===== Discount Badge ===== */
.hot-deals-discount-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 10;
  background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-weight: 900;
  font-size: 0.875rem;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
  border: 2px solid rgba(255, 255, 255, 0.2);
  animation: pulse-badge 2s ease-in-out infinite;
}

@keyframes pulse-badge {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.hot-deals-discount-text {
  display: block;
  line-height: 1;
}

/* ===== Action Buttons ===== */
.hot-deals-actions {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.hot-deals-slide.position-3 .hot-deals-actions {
  opacity: 1;
}

.hot-deals-action-btn {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  color: #333;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  font-size: 1rem;
}

.hot-deals-action-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.hot-deals-wishlist:hover {
  background: #f43f5e;
  color: white;
  border-color: #f43f5e;
}

.hot-deals-cart:hover {
  background: #fbbf24;
  color: white;
  border-color: #fbbf24;
}

.dark .hot-deals-action-btn {
  background: rgba(42, 42, 42, 0.95);
  border-color: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* ===== Image Section ===== */
.hot-deals-media {
  position: relative;
  width: 100%;
  height: 45%;
  min-height: 12rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff !important;
  overflow: hidden;
  padding: 1.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.dark .hot-deals-media {
  background: #ffffff !important;
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.hot-deals-image-link {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hot-deals-image {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
  display: block;
  transition: transform 0.3s ease;
}

.hot-deals-slide.position-3:hover .hot-deals-image {
  transform: scale(1.05);
}

.hot-deals-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f3f4f6;
  color: #9ca3af;
  font-size: 3rem;
}

.dark .hot-deals-image-placeholder {
  background: #374151;
  color: #6b7280;
}

/* ===== Content Section ===== */
.hot-deals-content {
  flex: 1;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 100%);
}

.dark .hot-deals-content {
  background: linear-gradient(180deg, rgba(31, 41, 55, 0) 0%, rgba(31, 41, 55, 1) 100%);
}

/* Brand Badge */
.hot-deals-brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.75rem;
  background: rgba(220, 38, 38, 0.1);
  border: 1px solid rgba(220, 38, 38, 0.2);
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #dc2626;
  width: fit-content;
}

.dark .hot-deals-brand-badge {
  background: rgba(220, 38, 38, 0.2);
  border-color: rgba(220, 38, 38, 0.3);
  color: #f87171;
}

.hot-deals-brand-badge i {
  font-size: 0.625rem;
}

/* Title */
.hot-deals-title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.4;
  color: #111827;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 3.15rem;
  text-align: left;
}

.dark .hot-deals-title {
  color: #f9fafb;
}

.hot-deals-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
  text-align: left;
}

.hot-deals-title a:hover {
  color: #dc2626;
}

.dark .hot-deals-title a:hover {
  color: #f43f5e;
}

/* Specs Grid */
.hot-deals-specs-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.25rem;
  text-align: left;
}

.hot-deals-spec-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.625rem;
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 500;
  color: #374151;
  direction: ltr;
  text-align: left;
}

.dark .hot-deals-spec-chip {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  color: #d1d5db;
}

.hot-deals-spec-chip i {
  font-size: 0.625rem;
  opacity: 0.7;
}

/* Price Section */
.hot-deals-price-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-top: auto;
  padding-top: 0.5rem;
}

.hot-deals-original-price {
  font-size: 0.875rem;
  color: #9ca3af;
  text-decoration: line-through;
  font-weight: 500;
}

.dark .hot-deals-original-price {
  color: #6b7280;
}

.hot-deals-price {
  font-size: 1.5rem;
  font-weight: 900;
  color: #dc2626;
  line-height: 1;
}

.dark .hot-deals-price {
  color: #f43f5e;
}

/* CTA Button */
.hot-deals-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.25rem;
  background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
  margin-top: 0.5rem;
}

.hot-deals-cta-btn:hover {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4);
}

.hot-deals-cta-btn i {
  font-size: 0.75rem;
  transition: transform 0.3s ease;
}

.hot-deals-cta-btn:hover i {
  transform: translateX(4px);
}

[dir="rtl"] .hot-deals-cta-btn:hover i {
  transform: translateX(-4px);
}

/* ===== RTL Support ===== */
[dir="rtl"] .hot-deals-slider-content-background {
  background: linear-gradient(
    to right,
    rgba(249, 250, 251, 0.95),
    transparent 15%,
    transparent 85%,
    rgba(249, 250, 251, 0.95)
  );
}

[dir="rtl"].dark .hot-deals-slider-content-background {
  background: linear-gradient(
    to right,
    rgba(17, 24, 39, 0.95),
    transparent 15%,
    transparent 85%,
    rgba(17, 24, 39, 0.95)
  );
}

/* ===== Responsive Design ===== */
@media screen and (max-width: 768px) {
  .hot-deals-slider-container {
    height: 35rem;
  }

  .hot-deals-slider-content .hot-deals-slide {
    width: 16rem;
    min-width: 280px;
    height: 26rem;
  }

  .hot-deals-slide.position-1,
  .hot-deals-slide.position-5 {
    opacity: 0.3 !important;
  }

  .hot-deals-slide.position-2,
  .hot-deals-slide.position-4 {
    opacity: 0.7 !important;
  }
}

@media screen and (max-width: 640px) {
  .hot-deals-slider-container {
    height: 32rem;
  }

  .hot-deals-slide.position-1,
  .hot-deals-slide.position-5 {
    opacity: 0 !important;
  }

  .hot-deals-slide.position-2,
  .hot-deals-slide.position-4 {
    opacity: 0.5 !important;
  }
}

@media screen and (max-width: 480px) {
  .hot-deals-slider-content .hot-deals-slide {
    width: 14rem;
    min-width: 260px;
    height: 24rem;
  }

  .hot-deals-slide.position-1,
  .hot-deals-slide.position-2,
  .hot-deals-slide.position-4,
  .hot-deals-slide.position-5 {
    opacity: 0 !important;
  }

  .hot-deals-slide.position-3 {
    left: 50% !important;
    width: 90% !important;
    min-width: auto !important;
  }
}

/* ===== Accessibility ===== */
@media (prefers-reduced-motion: reduce) {
  .hot-deals-slider-content .hot-deals-slide,
  .hot-deals-nav-btn,
  .hot-deals-action-btn,
  .hot-deals-cta-btn,
  .hot-deals-image {
    transition: none !important;
    animation: none !important;
  }
}
