/* ========================================
   PROMOTIONAL SECTION (REUSABLE)
   Version: 4.0 - Complete Enhancement
   Last Updated: March 1, 2026
   ======================================== */

/* === WRAPPER & CONTAINER === */
.promo-wrapper {
  width: 100%;
  background: linear-gradient(135deg, #fdf2f8 0%, #fef3c7 100%);
  padding: 4rem 1rem;
  margin: 0;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.promo-wrapper.hidden {
  display: none;
}

.promo-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: center;
}

/* === VISUAL COLUMN === */
.promo-visual {
  position: relative;
}

/* === SLIDESHOW STYLES === */
.promo-slideshow-wrapper {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  background: white;
  padding: 1rem;
}

.promo-slideshow {
  position: relative;
  width: 100%;
  height: 500px;
  overflow: hidden;
  border-radius: 0.5rem;
  background: #f9fafb;
}

.promo-slide {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  opacity: 0 !important;
  visibility: hidden;
  transition: opacity 0.8s ease-in-out, visibility 0s 0.8s;
  pointer-events: none;
  display: flex !important;
  align-items: center;
  justify-content: center;
  z-index: 0;
}

.promo-slide-active {
  opacity: 1 !important;
  visibility: visible !important;
  transition: opacity 0.8s ease-in-out, visibility 0s 0s;
  pointer-events: auto;
  z-index: 1;
}

.promo-slide img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center center;
  border-radius: 0.5rem;
  display: block;
}

.promo-slide-caption {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #44403c;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* === NAVIGATION CONTROLS === */
.promo-slide-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border: 2px solid rgba(220, 38, 38, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.promo-slide-prev {
  left: 1.5rem;
}

.promo-slide-next {
  right: 1.5rem;
}

.promo-slide-nav:hover {
  background: #dc2626;
  border-color: #dc2626;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4);
}

.promo-slide-nav:hover i {
  color: white;
}

.promo-slide-nav i {
  font-size: 1.25rem;
  color: #dc2626;
  transition: color 0.3s ease;
}

.promo-slide-nav:active {
  transform: translateY(-50%) scale(0.95);
}

/* === SLIDE INDICATORS (DOTS) === */
.promo-slide-indicators {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 10;
}

.promo-slide-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: 2px solid rgba(220, 38, 38, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
}

.promo-slide-dot:hover {
  background: rgba(255, 255, 255, 0.8);
  transform: scale(1.2);
}

.promo-slide-dot-active {
  background: #dc2626;
  border-color: #dc2626;
  transform: scale(1.3);
}

/* === LEGACY IMAGE WRAPPER (FALLBACK) === */
.promo-image-wrapper {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  background: white;
  padding: 1rem;
}

.promo-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0.5rem;
  object-fit: cover;
  max-height: 500px;
}

.promo-badge {
  position: absolute;
  top: 2rem;
  right: 2rem;
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
  color: white;
  padding: 0.5rem 1.25rem;
  border-radius: 2rem;
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.4);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  animation: pulse-badge 2s ease-in-out infinite;
  z-index: 11;
}

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

/* === CONTENT COLUMN === */
.promo-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.promo-offer {
  text-align: left;
}

.promo-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.5rem;
  color: #881337;
  margin: 0 0 0.5rem 0;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.promo-subtitle {
  font-size: 1.25rem;
  color: #44403c;
  margin: 0 0 1.5rem 0;
  font-weight: 300;
}

/* === DISCOUNT BLOCK === */
.promo-discount-block {
  display: inline-flex;
  align-items: baseline;
  gap: 0.75rem;
  background: white;
  padding: 1rem 2rem;
  border-radius: 0.75rem;
  border: 2px solid #fda4af;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.promo-discount-amount {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 3rem;
  color: #dc2626;
  line-height: 1;
  font-weight: 700;
}

.promo-discount-label {
  font-size: 1rem;
  color: #78716c;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* === PROMO CODE BLOCK === */
.promo-code-block {
  margin-top: 1.5rem;
}

.promo-code-label {
  font-size: 0.875rem;
  color: #78716c;
  margin: 0 0 0.5rem 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.promo-code-box {
  background: white;
  border: 3px dashed #f472b6;
  border-radius: 0.5rem;
  padding: 1rem 1.5rem;
  display: inline-block;
  margin-bottom: 0.5rem;
}

.promo-code-value {
  font-family: 'Courier New', monospace;
  font-size: 1.75rem;
  font-weight: 700;
  color: #881337;
  letter-spacing: 0.1em;
  user-select: all;
}

.promo-code-instruction {
  font-size: 0.875rem;
  color: #a8a29e;
  margin: 0;
  font-style: italic;
}

/* === CALL TO ACTION BUTTONS === */
.promo-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.promo-cta {
  flex: 1;
  min-width: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.25rem 1rem;
  background: white;
  border: 2px solid #e7e5e4;
  border-radius: 0.75rem;
  text-decoration: none;
  color: #44403c;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.25s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.promo-cta:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  border-color: #fda4af;
  color: #881337;
}

.promo-cta i {
  font-size: 1.75rem;
  color: #dc2626;
  transition: transform 0.25s ease;
}

.promo-cta:hover i {
  transform: scale(1.1);
}

.promo-cta span {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* === DISCLAIMER === */
.promo-disclaimer {
  font-size: 0.75rem;
  color: #a8a29e;
  margin: 1rem 0 0 0;
  text-align: left;
}

/* ========================================
   RESPONSIVE BREAKPOINTS
   ======================================== */

/* Tablet (< 1024px) */
@media (max-width: 1023px) {
  .promo-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .promo-slideshow {
    height: 400px;
  }

  .promo-title {
    font-size: 2rem;
  }

  .promo-discount-amount {
    font-size: 2.5rem;
  }

  .promo-ctas {
    justify-content: center;
  }
  
  .promo-slide-nav {
    width: 40px;
    height: 40px;
  }
  
  .promo-slide-prev {
    left: 1rem;
  }
  
  .promo-slide-next {
    right: 1rem;
  }
}

/* Mobile (< 640px) */
@media (max-width: 639px) {
  .promo-wrapper {
    padding: 2.5rem 1rem;
  }
  
  .promo-slideshow {
    height: 300px;
  }

  .promo-title {
    font-size: 1.75rem;
  }

  .promo-subtitle {
    font-size: 1rem;
  }

  .promo-discount-amount {
    font-size: 2rem;
  }

  .promo-code-value {
    font-size: 1.25rem;
  }

  .promo-ctas {
    flex-direction: column;
  }

  .promo-cta {
    width: 100%;
    min-width: 100%;
  }

  .promo-badge {
    top: 1rem;
    right: 1rem;
    padding: 0.4rem 1rem;
    font-size: 0.75rem;
  }

  .promo-slideshow-wrapper {
    padding: 0.75rem;
  }

  .promo-discount-block {
    padding: 0.75rem 1.5rem;
  }
  
  .promo-slide-nav {
    width: 36px;
    height: 36px;
  }
  
  .promo-slide-nav i {
    font-size: 1rem;
  }
  
  .promo-slide-prev {
    left: 0.5rem;
  }
  
  .promo-slide-next {
    right: 0.5rem;
  }
  
  .promo-slide-caption {
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
  }
  
  .promo-slide-dot {
    width: 8px;
    height: 8px;
  }
}

/* ========================================
   FALLBACK & ERROR STATES
   ======================================== */

/* Hide section if image fails to load */
.promo-image:not([src]),
.promo-image[src=""],
.promo-image[src="#"] {
  display: none;
}

.promo-image:not([src]) ~ .promo-badge {
  display: none;
}

/* Ensure text remains readable if background fails */
.promo-wrapper {
  background-color: #fef3c7; /* Fallback solid color */
}

/* Print styles */
@media print {
  .promo-wrapper {
    display: none;
  }
}

/* === UPDATED SLIDER CONTROLS (March 1, 2026) === */
.promo-slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border: 2px solid rgba(220, 38, 38, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  outline: none;
}

.promo-slider-prev {
  left: 1rem;
}

.promo-slider-next {
  right: 1rem;
}

.promo-slider-nav:hover {
  background: #dc2626;
  border-color: #dc2626;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4);
}

.promo-slider-nav:hover i {
  color: white;
}

.promo-slider-nav i {
  font-size: 1.25rem;
  color: #dc2626;
  transition: color 0.3s ease;
}

.promo-slider-nav:active {
  transform: translateY(-50%) scale(0.95);
}

/* Updated Dots Styles */
.promo-slider-dots {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.75rem;
  z-index: 10;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.promo-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(136, 19, 55, 0.3);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  outline: none;
  padding: 0;
}

.promo-dot:hover {
  background: rgba(136, 19, 55, 0.6);
  transform: scale(1.2);
}

.promo-dot-active {
  background: #881337;
  transform: scale(1.4);
}

/* Mobile Optimizations */
@media (max-width: 768px) {
  .promo-slider-nav {
    width: 40px;
    height: 40px;
  }
  
  .promo-slider-prev {
    left: 0.5rem;
  }
  
  .promo-slider-next {
    right: 0.5rem;
  }
  
  .promo-slider-nav i {
    font-size: 1rem;
  }
  
  .promo-slider-dots {
    bottom: 1rem;
    padding: 0.4rem 0.8rem;
    gap: 0.5rem;
  }
  
  .promo-dot {
    width: 10px;
    height: 10px;
  }
}

/* Safari iOS specific fixes */
@supports (-webkit-touch-callout: none) {
  .promo-slide {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
  }
  
  .promo-slider-nav {
    -webkit-tap-highlight-color: transparent;
  }
}

/* ========================================
   ENHANCED FEATURES v4.0 (March 1, 2026)
   ======================================== */

/* === CLICKABLE SLIDE LINK === */
.promo-slide-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  position: relative;
  text-decoration: none;
  cursor: pointer;
}

.promo-slide-link:hover .promo-slide-caption {
  background: rgba(255, 255, 255, 1);
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* === ENHANCED CAPTION WITH PRICE === */
.promo-slide-caption {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.promo-slide-title {
  font-size: 1rem;
  font-weight: 600;
  color: #44403c;
  flex: 1;
}

.promo-slide-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: #dc2626;
  white-space: nowrap;
}

/* === SLIDE COUNTER === */
.promo-slide-counter {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #44403c;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 10;
}

.promo-slide-counter span {
  color: #dc2626;
  font-size: 1.1rem;
}

/* === PROGRESS BAR === */
.promo-progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: rgba(0, 0, 0, 0.1);
  z-index: 10;
  overflow: hidden;
}

.promo-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #dc2626 0%, #881337 100%);
  width: 0%;
  transition: width 0.05s linear;
  box-shadow: 0 0 10px rgba(220, 38, 38, 0.5);
}

/* === PAUSE/PLAY BUTTON === */
.promo-play-pause {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border: 2px solid rgba(220, 38, 38, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  outline: none;
}

.promo-play-pause:hover {
  background: #dc2626;
  border-color: #dc2626;
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4);
}

.promo-play-pause:hover i {
  color: white;
}

.promo-play-pause i {
  font-size: 1.1rem;
  color: #dc2626;
  transition: color 0.3s ease;
}

.promo-play-pause:active {
  transform: scale(0.95);
}

/* === SWIPE HINT (MOBILE FIRST-VISIT) === */
.promo-swipe-hint {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  padding: 2rem;
  border-radius: 1rem;
  z-index: 20;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.promo-swipe-icon {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 2rem;
  color: white;
}

.promo-swipe-arrow {
  font-size: 3rem;
  color: #dc2626;
  animation: swipe-arrow 1.5s ease-in-out infinite;
}

.promo-swipe-text {
  color: white;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
}

@keyframes swipe-arrow {
  0%, 100% {
    transform: translateX(0);
    opacity: 1;
  }
  50% {
    transform: translateX(20px);
    opacity: 0.5;
  }
}

.promo-swipe-hint-animate {
  animation: fade-in-out 3s ease-in-out;
}

@keyframes fade-in-out {
  0%, 100% {
    opacity: 0;
  }
  10%, 90% {
    opacity: 1;
  }
}

/* === SECONDARY CTA BUTTON === */
.promo-cta-secondary {
  background: linear-gradient(135deg, #fdf2f8 0%, #fef3c7 100%);
  border: 2px solid #fda4af;
  color: #881337;
}

.promo-cta-secondary:hover {
  background: linear-gradient(135deg, #fce7f3 0%, #fef08a 100%);
  border-color: #dc2626;
}

.promo-cta-secondary i {
  color: #881337;
}

/* === LARGER MOBILE IMAGES === */
@media (max-width: 768px) {
  .promo-slideshow {
    height: 60vh;
    max-height: 600px;
    min-height: 400px;
  }
  
  .promo-slide-counter {
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
  }
  
  .promo-play-pause {
    top: 0.75rem;
    right: 0.75rem;
    width: 40px;
    height: 40px;
  }
  
  .promo-play-pause i {
    font-size: 1rem;
  }
  
  .promo-slide-caption {
    bottom: 0.75rem;
    left: 0.75rem;
    right: 0.75rem;
    padding: 0.6rem 0.8rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .promo-slide-title {
    font-size: 0.9rem;
  }
  
  .promo-slide-price {
    font-size: 1rem;
  }
  
  .promo-progress-bar {
    height: 3px;
  }
}

/* === TOUCH TARGET SIZES (56px minimum) === */
@media (max-width: 768px) {
  .promo-slider-nav,
  .promo-play-pause {
    min-width: 56px;
    min-height: 56px;
  }
  
  .promo-dot {
    min-width: 16px;
    min-height: 16px;
    width: 16px;
    height: 16px;
  }
  
  .promo-dot:hover {
    transform: scale(1.1);
  }
  
  .promo-dot-active {
    transform: scale(1.3);
  }
}

/* === SCREEN READER ONLY CLASS === */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* === PERFORMANCE OPTIMIZATIONS === */
.promo-slide,
.promo-slide img {
  will-change: opacity;
}

.promo-progress-fill {
  will-change: width;
}

/* === PRINT STYLES === */
@media print {
  .promo-slider-nav,
  .promo-slider-dots,
  .promo-play-pause,
  .promo-slide-counter,
  .promo-progress-bar,
  .promo-swipe-hint {
    display: none !important;
  }
}

/* ========================================
   NEWSLETTER PROMO BLOCK
   Added: March 9, 2026
   ======================================== */

.newsletter-promo {
  background: linear-gradient(135deg, #e0f2f1 0%, #b2dfdb 100%);
  border: 2px solid #00695c;
  border-radius: 12px;
  padding: 24px;
  margin: 24px 0;
  box-shadow: 0 4px 12px rgba(0, 105, 92, 0.15);
  transition: all 0.3s ease;
}

.newsletter-promo:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 105, 92, 0.25);
}

.newsletter-promo-title {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 12px;
  line-height: 1.3;
}

.newsletter-promo-text {
  color: #2d3748;
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 16px;
}

.newsletter-promo-competition {
  background: linear-gradient(135deg, #fef5e7 0%, #fdebd0 100%);
  border-left: 4px solid #f39c12;
  padding: 12px 16px;
  margin-bottom: 20px;
  border-radius: 8px;
  color: #2d3748;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.6;
}

.newsletter-promo-btn {
  display: block;
  width: 100%;
  background: linear-gradient(135deg, #00695c 0%, #00524d 100%);
  color: white;
  padding: 14px 20px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 105, 92, 0.3);
}

.newsletter-promo-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 105, 92, 0.4);
  background: linear-gradient(135deg, #00524d 0%, #003d39 100%);
  color: white;
}

.newsletter-promo-btn:active {
  transform: translateY(0);
}

/* Mobile responsiveness for newsletter promo */
@media (max-width: 768px) {
  .newsletter-promo {
    padding: 20px;
    margin: 20px 0;
  }
  
  .newsletter-promo-title {
    font-size: 20px;
  }
  
  .newsletter-promo-text {
    font-size: 14px;
  }
  
  .newsletter-promo-competition {
    font-size: 13px;
    padding: 10px 14px;
  }
  
  .newsletter-promo-btn {
    padding: 12px 18px;
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .newsletter-promo {
    padding: 16px;
    margin: 16px 0;
  }
  
  .newsletter-promo-title {
    font-size: 18px;
  }
}
