/* ===================================================================
   SPECIAL DEALS SECTION - AUTO-ROTATION DESIGN
   Full-width background with glass-style product card slider
   Updated: Mobile keeps the same side-by-side (image left / content
   right) layout as desktop, just scaled down, instead of stacking.
   =================================================================== */

.special-deals-section {
  position: relative;
  width: 100vw;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  background-attachment: scroll;
  overflow: hidden;
}

/* Dark overlay for better contrast */
.special-deals-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, var(--overlay-opacity, 0.7)),
    rgba(0, 0, 0, calc(var(--overlay-opacity, 0.7) - 0.2))
  );
  z-index: 1;
}

/* Container */
.special-deals-container {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

/* Section Header */
.special-deals-header {
  text-align: center;
  margin-bottom: 30px;
}

.special-deals-title {
  font-size: 2rem;
  font-weight: 700;
  color: #ffffff !important;
  margin: 0 0 8px 0;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.special-deals-subtitle {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.95) !important;
  margin: 0;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

/* ===================================================================
   SLIDER WRAPPER - Contains all deal cards
   =================================================================== */

.deals-slider-wrapper {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

/* Deal Card - Glass Morphism Style */
.special-deal-card {
  display: grid;
  grid-template-columns: 40% 60%;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  
  /* Rotation Animation Properties */
  opacity: 0;
  visibility: hidden;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  transition: opacity 0.6s ease-in-out, visibility 0.6s ease-in-out;
}

/* Active deal card */
.special-deal-card.active {
  opacity: 1;
  visibility: visible;
  position: relative;
}

/* Fade animation variants (for smoother transitions) */
.special-deal-card.fade-out {
  opacity: 0;
}

.special-deal-card.fade-in {
  opacity: 1;
}

/* Product Image */
.deal-card-image {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.deal-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Deal Badge - no box-shadow */
.deal-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: var(--brand-color, #0ea5e9);
  color: #ffffff;
  padding: 6px 14px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
  box-shadow: none;
  z-index: 2;
}

/* Product Content */
.deal-card-content {
  padding: 25px 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
}

.deal-product-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff !important;
  margin: 0 0 10px 0;
  line-height: 1.2;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Rating */
.deal-rating {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.deal-stars {
  display: flex;
  align-items: center;
  gap: 2px;
}

.star-full {
  color: #fbbf24;
}

.star-half {
  color: #fbbf24;
}

.star-empty {
  color: rgba(255, 255, 255, 0.3);
}

.rating-text {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.85) !important;
}

/* Price */
.deal-price {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.price-current {
  font-size: 2.25rem;
  font-weight: 800;
  color: #ffffff !important;
  line-height: 1;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.price-current .woocommerce-Price-amount {
  color: #ffffff !important;
}

.price-original {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.6) !important;
  text-decoration: line-through;
}

/* You Save badge - white text */
.price-saved {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff !important;
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  height: 32px;
}

/* Countdown Timer */
.deal-countdown {
  background: rgba(255, 255, 255, 0.12);
  padding: 15px;
  border-radius: 12px;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.countdown-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95) !important;
  margin: 0 0 10px 0;
  text-align: center;
}

.countdown-timer {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.countdown-item {
  text-align: center;
  background: rgba(255, 255, 255, 0.1);
  padding: 10px 5px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.countdown-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
  margin-bottom: 3px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.countdown-label {
  display: block;
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.8) !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

/* Action Buttons - flat, minimal hover */
.deal-actions {
  display: flex;
  gap: 12px;
}

.deal-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 10px;
  text-decoration: none;
  transition: background-color 0.2s ease;
  border: none;
  cursor: pointer;
  box-shadow: none;
}

.deal-btn svg {
  width: 20px;
  height: 20px;
}

.deal-btn-primary {
  background: var(--brand-color, #0ea5e9);
  color: #ffffff;
}

.deal-btn-primary:hover {
  background: var(--brand-color-hover, #0284c7);
  color: #ffffff;
}

.deal-btn-secondary {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.deal-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.3);
  color: #ffffff;
}

/* ===================================================================
   NAVIGATION CONTROLS - Dots & Arrows
   =================================================================== */

/* Navigation Dots */
.deals-nav-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 25px;
}

.deals-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.deals-dot:hover {
  background: rgba(255, 255, 255, 0.5);
  transform: scale(1.2);
}

.deals-dot.active {
  background: var(--brand-color, #0ea5e9);
  border-color: var(--brand-color, #0ea5e9);
  width: 32px;
  border-radius: 6px;
}

/* Navigation Arrows */
.deals-nav-arrows {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  z-index: 10;
}

.deals-arrow {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  pointer-events: all;
  color: #ffffff;
}

.deals-arrow:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.deals-arrow-prev {
  margin-left: -60px;
}

.deals-arrow-next {
  margin-right: -60px;
}

/* No Deals State */
.no-deals {
  text-align: center;
  padding: 80px 40px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  max-width: 600px;
  margin: 0 auto;
}

.no-deals svg {
  color: rgb(255, 255, 255);
  margin-bottom: 20px;
}

.no-deals h3 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #ffffff !important;
  margin: 0 0 10px 0;
}

.no-deals p {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.8) !important;
  margin: 0 0 30px 0;
}

/* ===================================================================
   RESPONSIVE DESIGN
   Side-by-side layout (image left / content right) is preserved at
   every breakpoint below - only sizes shrink, nothing stacks.
   =================================================================== */

/* Tablet */
@media (max-width: 1024px) {
  .special-deals-section {
    height: auto;
    min-height: 500px;
    max-height: none;
    padding: 50px 20px;
    background-attachment: scroll;
  }

  .special-deals-title {
    font-size: 1.75rem;
  }

  .deal-card-image {
    min-height: 260px;
  }

  .deal-card-content {
    padding: 24px;
  }

  .deal-product-title {
    font-size: 1.25rem;
  }

  .price-current {
    font-size: 1.75rem;
  }

  /* Adjust arrows for tablet */
  .deals-arrow-prev {
    margin-left: -10px;
  }

  .deals-arrow-next {
    margin-right: -10px;
  }
}

/* Mobile - keeps the same 2-column (image / content) layout as desktop */
@media (max-width: 768px) {
  .special-deals-section {
    padding: 30px 12px;
    min-height: auto;
  }

  .special-deals-header {
    margin-bottom: 16px;
  }

  .special-deals-title {
    font-size: 1.25rem;
  }

  .special-deals-subtitle {
    font-size: 0.75rem;
  }

  .special-deal-card {
    grid-template-columns: 34% 66%;
    border-radius: 14px;
  }

  .deal-card-image {
    min-height: 140px;
  }

  .deal-badge {
    top: 8px;
    left: 8px;
    padding: 4px 10px;
    font-size: 0.625rem;
  }

  .deal-card-content {
    padding: 10px 12px;
  }

  .deal-product-title {
    font-size: 0.875rem;
    margin-bottom: 5px;
    line-height: 1.25;
  }

  .deal-rating {
    gap: 6px;
    margin-bottom: 5px;
  }

  .rating-text {
    font-size: 0.625rem;
  }

  .deal-price {
    gap: 5px;
    margin-bottom: 8px;
  }

  .price-current {
    font-size: 1.125rem;
  }

  .price-original {
    font-size: 0.6875rem;
  }

  .price-saved {
    font-size: 0.5625rem;
    padding: 3px 7px;
    height: auto;
  }

  .deal-countdown {
    padding: 6px;
    margin-bottom: 8px;
    border-radius: 8px;
  }

  .countdown-title {
    font-size: 0.5625rem;
    margin-bottom: 4px;
  }

  .countdown-timer {
    gap: 3px;
  }

  .countdown-item {
    padding: 4px 1px;
    border-radius: 5px;
  }

  .countdown-value {
    font-size: 0.6875rem;
    margin-bottom: 0;
  }

  .countdown-label {
    font-size: 0.4375rem;
    letter-spacing: 0.25px;
  }

  /* Keep buttons side by side, just smaller (not stacked) */
  .deal-actions {
    flex-direction: row;
    gap: 5px;
  }

  .deal-btn {
    padding: 7px 8px;
    font-size: 0.625rem;
    border-radius: 7px;
    gap: 3px;
  }

  .deal-btn svg {
    width: 13px;
    height: 13px;
  }

  /* Hide arrows on mobile, keep dots */
  .deals-nav-arrows {
    display: none;
  }

  .deals-nav-dots {
    margin-top: 12px;
    gap: 6px;
  }

  .deals-dot {
    width: 8px;
    height: 8px;
  }

  .deals-dot.active {
    width: 20px;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .special-deals-section {
    padding: 24px 8px;
  }

  .special-deals-title {
    font-size: 1.125rem;
  }

  .special-deal-card {
    grid-template-columns: 32% 68%;
  }

  .deal-card-image {
    min-height: 110px;
  }

  .deal-badge {
    padding: 3px 8px;
    font-size: 0.5625rem;
  }

  .deal-card-content {
    padding: 10px 10px;
  }

  .deal-product-title {
    font-size: 0.8125rem;
  }

  .price-current {
    font-size: 1.0625rem;
  }

  .countdown-value {
    font-size: 0.75rem;
  }

  .deals-dot {
    width: 7px;
    height: 7px;
  }

  .deals-dot.active {
    width: 18px;
  }

  .deal-btn {
    font-size: 0.625rem;
    padding: 7px 6px;
  }

  .deal-btn svg {
    width: 12px;
    height: 12px;
  }
}