/* ============================================================
   Evassentials — Solid Contrast Theme Hero Carousel
   assets/css/hero-carousel.css
   ============================================================ */

/* ─────────────────────────────────────────────────────────────
   CAROUSEL WRAPPER
   ─────────────────────────────────────────────────────────── */

.hero-carousel {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  width: 100%;
  background: #773344;        /* Solid outer frame background */
}

/* ─────────────────────────────────────────────────────────────
   SLIDES — stacked, fade in/out
   ─────────────────────────────────────────────────────────── */

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.2s ease-in-out;
  z-index: 1;
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
  position: relative;        /* active slide pushes height */
  z-index: 2;
}

/* Solid Inner Card Background replacing the multi-color gradient */
.hero-slide-bg {
  position: absolute;
  inset: 0;
  background: #FFF1D0;        /* Crisp interior canvas contrast color */
  z-index: 0;
}

/* Subtle inner vignette shadow depth overlay for depth structure */
.hero-slide-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse at 75% 40%, rgba(255,255,255,0.4) 0%, transparent 70%),
    radial-gradient(ellipse at 20% 75%, rgba(81,52,77,0.06) 0%, transparent 60%);
  z-index: 1;
}

/* ─────────────────────────────────────────────────────────────
   SLIDE INNER LAYOUT
   ─────────────────────────────────────────────────────────── */

.hero-slide-inner {
  position: relative;
  z-index: 2;
  max-width: 1160px;
  margin: 0 auto;
  padding: 4.5rem 2rem;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 3rem;
}

/* ─────────────────────────────────────────────────────────────
   TEXT CONTENT (Updated for dark text readability on light ground)
   ─────────────────────────────────────────────────────────── */

.hero-slide-text { max-width: 560px; }

.hero-slide-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: #6F5060;            /* Muted Mauve accent for hierarchy anchor text */
  margin-bottom: 1rem;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.6s ease 0.3s, transform 0.6s ease 0.3s;
}

.hero-slide-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #8F2D56;            /* Deep brand color focal point typography */
  margin-bottom: 1rem;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.7s ease 0.45s, transform 0.7s ease 0.45s;
  text-shadow: 0 1px 2px rgba(81, 52, 77, 0.08);
}

.hero-slide-subtitle {
  font-size: 1.05rem;
  color: #8F2D56;
  font-weight: 600;
  line-height: 1.6;
  margin-bottom: 0.75rem;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.6s ease 0.6s, transform 0.6s ease 0.6s;
}

.hero-slide-body {
  font-size: 0.9rem;
  color: #6F5060;            /* Smooth editorial reading profile */
  line-height: 1.75;
  margin-bottom: 1.75rem;
  max-width: 460px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.6s ease 0.72s, transform 0.6s ease 0.72s;
}

/* CTA button — Deep solid base popping off the pistachio surface */
.hero-slide-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 2.4rem;
  background: #8F2D56 !important;
  color: #FFF1D0 !important;  /* High contrast pistachio typography inside button */
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: 8px;
  text-decoration: none;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 4px 14px rgba(81, 52, 77, 0.2); 
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.6s ease 0.85s,
              transform 0.6s ease 0.85s,
              box-shadow 0.2s ease,
              background-color 0.2s ease;
}

.hero-slide-cta:hover {
  background: #6F5060 !important;
  box-shadow: 0 6px 20px rgba(81, 52, 77, 0.3);
  transform: translateY(-1px) !important;
}

/* Docs and animations trigger */
.hero-slide.active .hero-slide-eyebrow,
.hero-slide.active .hero-slide-title,
.hero-slide.active .hero-slide-subtitle,
.hero-slide.active .hero-slide-body,
.hero-slide.active .hero-slide-cta {
  opacity: 1;
  transform: translateY(0);
}

/* ─────────────────────────────────────────────────────────────
   PRODUCT IMAGE 
   ─────────────────────────────────────────────────────────── */

.hero-slide-image {
  width: 280px;
  height: 340px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 45px rgba(81, 52, 77, 0.18); 
  flex-shrink: 0;
  opacity: 0;
  transform: translateX(20px) scale(0.97);
  transition: opacity 0.8s ease 0.5s,
              transform 0.8s cubic-bezier(0.4,0,0.2,1) 0.5s;
}
.hero-slide-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-slide.active .hero-slide-image {
  opacity: 1;
  transform: translateX(0) scale(1);
}

/* ─────────────────────────────────────────────────────────────
   NAVIGATION CONTROLS (Reverse contrast frame buttons)
   ─────────────────────────────────────────────────────────── */

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(81, 52, 77, 0.08); 
  border: 1px solid rgba(81, 52, 77, 0.15);
  color: #8F2D56;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.hero-arrow:hover {
  background: #8F2D56;
  border-color: #8F2D56;
  color: #FFF1D0;
}
.hero-arrow-prev { left: 1.5rem; }
.hero-arrow-next { right: 1.5rem; }

.hero-dots {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.hero-dot {
  width: 20px;
  height: 3px;
  border-radius: 1.5px;
  background: rgba(81, 52, 77, 0.2);
  border: none;
  cursor: pointer;
  transition: all 0.35s ease;
  padding: 0;
}
.hero-dot.active {
  width: 36px;
  background: #8F2D56;
}

/* ─────────────────────────────────────────────────────────────
   RESPONSIVE
   ─────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
  .hero-carousel   { min-height: 360px; }
  .hero-slide-inner {
    grid-template-columns: 1fr;
    padding: 3rem 1.25rem 4rem;
    gap: 2rem;
  }
  .hero-slide-image {
    width: 100%;
    height: 200px;
    order: -1;
  }
  .hero-slide-title { font-size: clamp(1.75rem, 7vw, 2.5rem); }
  .hero-arrow       { display: none; }
  .hero-dots        { bottom: 1rem; }
}

.wishlist-btn:hover {
  transform: scale(1.15) !important;
  background: white !important;
}
.wishlist-btn:active {
  transform: scale(0.95) !important;
}