/* ==========================================================================
   Mellkderma Master Hero Showcase (Cinematic Editorial Video Slider)
   ========================================================================== */

.hero-showcase-master {
  position: relative;
  min-height: 760px;
  background: radial-gradient(circle at 50% 25%, #ffffff 0%, #faf6f0 55%, #f3ece0 100%);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 32px 0 20px 0;
  border-bottom: 1px solid rgba(197, 155, 39, 0.18);
  user-select: none;
  -webkit-user-select: none;
}

.hero-showcase-container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
  position: relative;
  justify-content: space-between;
}

/* 1. Track & Slides */
.hero-slides-track {
  position: relative;
  width: 100%;
  min-height: 560px;
  display: flex;
  align-items: center;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1), transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
  transform: translateX(25px) scale(0.98);
  display: flex;
  align-items: center;
  z-index: 1;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0) scale(1);
  z-index: 2;
}

.hero-slide.prev-slide {
  transform: translateX(-25px) scale(0.98);
}

/* Slide Backdrop & Ambient Studio Lights */
.hero-slide-backdrop {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.hero-ambient-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
  transition: all 1s ease;
}

.glow-gold {
  top: 15%;
  right: 15%;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(212, 168, 67, 0.35) 0%, rgba(245, 230, 190, 0.12) 60%, transparent 100%);
}

.glow-solar {
  top: 10%;
  right: 18%;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(230, 140, 30, 0.32) 0%, rgba(245, 200, 120, 0.15) 55%, transparent 100%);
}

.glow-sapphire {
  top: 15%;
  right: 16%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(30, 58, 138, 0.28) 0%, rgba(96, 165, 250, 0.12) 60%, transparent 100%);
}

.glow-amber {
  top: 12%;
  right: 15%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(180, 83, 9, 0.3) 0%, rgba(251, 191, 36, 0.14) 60%, transparent 100%);
}

.glow-emerald {
  top: 15%;
  right: 18%;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.25) 0%, rgba(167, 243, 208, 0.12) 60%, transparent 100%);
}

.glow-platinum {
  top: 15%;
  right: 15%;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(148, 163, 184, 0.3) 0%, rgba(241, 245, 249, 0.15) 60%, transparent 100%);
}

/* ==========================================================================
   2. Slide 1 Master Lineup (Full Panoramic Centered Layout)
   ========================================================================== */
.hero-slide-master-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  text-align: center;
  padding: 10px 0 0 0;
}

.master-header-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 860px;
  margin: 0 auto;
}

.master-header-content .hero-slide-title {
  font-size: 2.35rem;
  margin-bottom: 10px;
}

.master-header-content .hero-slide-subtitle {
  font-size: 0.98rem;
  margin-bottom: 14px;
  max-width: 720px;
}

.master-header-content .hero-spec-pills {
  justify-content: center;
  margin-bottom: 16px;
}

.master-header-content .hero-slide-actions {
  justify-content: center;
  margin-bottom: 14px;
}

.master-panoramic-stage {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  min-height: 240px;
  margin-top: auto;
}

.master-lineup-mobile {
  display: none;
}

.master-lineup-wrap {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 16px;
  width: 100%;
  max-width: 1100px;
  z-index: 2;
}

.lineup-item {
  object-fit: contain;
  filter: drop-shadow(0 14px 20px rgba(15, 23, 42, 0.18));
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), filter 0.35s ease;
  cursor: pointer;
  pointer-events: auto !important;
}

.lineup-item:hover {
  transform: translateY(-8px) scale(1.04);
  filter: drop-shadow(0 20px 28px rgba(140, 91, 22, 0.3));
}

.master-lineup-wrap .item-1 { height: 230px; }
.master-lineup-wrap .item-2 { height: 195px; }
.master-lineup-wrap .item-3 { height: 160px; }
.master-lineup-wrap .item-4 { height: 160px; }
.master-lineup-wrap .item-5 { height: 195px; }
.master-lineup-wrap .item-6 { height: 230px; }

/* ==========================================================================
   3. Slides 2-6 (Split Editorial Layout: Left Content, Right Photography)
   ========================================================================== */
.hero-slide-grid {
  position: relative;
  z-index: 2;
  width: 100%;
  display: grid;
  grid-template-columns: 480px 1fr;
  align-items: center;
  gap: 40px;
}

/* Slide Content (Left) */
.hero-slide-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 480px;
  z-index: 3;
}

.hero-tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 13px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(197, 155, 39, 0.3);
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: #8c5b16;
  margin-bottom: 14px;
  box-shadow: 0 4px 12px rgba(140, 91, 22, 0.08);
}

.hero-slide-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.35rem;
  line-height: 1.18;
  font-weight: 800;
  color: #0b1220;
  letter-spacing: -0.4px;
  margin: 0 0 14px 0;
  text-transform: uppercase;
}

.hero-slide-subtitle {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 0.98rem;
  line-height: 1.58;
  color: #475569;
  margin: 0 0 18px 0;
  font-weight: 400;
}

.hero-spec-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.hero-spec-pills .spec-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: rgba(248, 250, 252, 0.88);
  border: 1px solid rgba(203, 213, 225, 0.85);
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #334155;
  letter-spacing: 0.3px;
}

.hero-spec-pills .spec-pill i {
  color: #c59b27;
  font-size: 0.8rem;
}

.hero-slide-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-hero-action {
  padding: 12px 24px !important;
  font-size: 0.84rem !important;
  letter-spacing: 0.8px !important;
  text-transform: uppercase !important;
  font-weight: 700 !important;
  border-radius: 9999px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  box-shadow: 0 6px 20px rgba(197, 155, 39, 0.28) !important;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1) !important;
}

.btn-hero-action:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 10px 26px rgba(197, 155, 39, 0.4) !important;
}

.btn-outline-hero {
  padding: 11px 20px;
  background: rgba(255, 255, 255, 0.8);
  border: 1.5px solid rgba(15, 23, 42, 0.16);
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #0b1220;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  backdrop-filter: blur(8px);
}

.btn-outline-hero:hover {
  background: #0b1220;
  color: #ffffff;
  border-color: #0b1220;
  transform: translateY(-2px);
}

/* 4. Slide Visual Stage (Right) */
.hero-slide-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  min-height: 480px;
  width: 100%;
}

.hero-visual-stage {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

/* Frosted Studio Pedestal */
.hero-pedestal-surface {
  position: absolute;
  bottom: 0;
  left: 5%;
  right: 5%;
  height: 80px;
  background: radial-gradient(ellipse at 50% 10%, rgba(255, 255, 255, 0.95) 0%, rgba(240, 235, 222, 0.6) 55%, transparent 80%);
  border-radius: 50%;
  filter: blur(10px);
  z-index: 1;
}

.stage-reflection {
  position: absolute;
  bottom: -10px;
  left: 10%;
  right: 10%;
  height: 35px;
  background: radial-gradient(ellipse at 50% 50%, rgba(140, 91, 22, 0.14) 0%, transparent 75%);
  filter: blur(8px);
  z-index: 1;
}

/* Product Duo & Hero Showcase (Slides 2-5) */
.duo-showcase-wrap {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 20px;
  z-index: 2;
  width: 100%;
  max-width: 620px;
}

.hero-featured-img {
  max-height: 350px;
  max-width: 48%;
  object-fit: contain;
  filter: drop-shadow(0 20px 30px rgba(15, 23, 42, 0.18));
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  cursor: pointer;
  pointer-events: auto !important;
}

.hero-featured-img:hover {
  transform: translateY(-6px) scale(1.03);
  filter: drop-shadow(0 26px 38px rgba(140, 91, 22, 0.28));
}

/* Slide 3 Jars (Shorter & Wider) */
.slide-night .hero-featured-img {
  max-height: 250px;
}

/* Slide 6 Cluster (3 products) */
.slide-purity .hero-featured-img {
  max-height: 270px;
  max-width: 31%;
}

/* Floating Clinical Info Card attached to visual */
.hero-floating-card {
  display: none !important;
  position: absolute;
  top: 8%;
  right: 0%;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(197, 155, 39, 0.35);
  border-radius: 12px;
  padding: 12px 16px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(12px);
  max-width: 195px;
  z-index: 5;
  animation: floatCard 4s ease-in-out infinite alternate;
}

@keyframes floatCard {
  0% { transform: translateY(0); }
  100% { transform: translateY(-7px); }
}

.card-label {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #8c5b16;
  margin-bottom: 3px;
}

.card-title {
  font-size: 0.84rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.25;
  margin-bottom: 3px;
}

.card-desc {
  font-size: 0.7rem;
  color: #64748b;
  line-height: 1.35;
}

/* ==========================================================================
   5. Controls Bar (Bottom Video Player Style)
   ========================================================================== */
.hero-controls-bar {
  position: relative;
  z-index: 10;
  width: 100%;
  margin-top: 20px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(197, 155, 39, 0.24);
  border-radius: 9999px;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

/* Play/Pause Button */
.hero-play-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #0b1220;
  color: #ffffff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  cursor: pointer;
  transition: all 0.25s ease;
  flex-shrink: 0;
}

.hero-play-btn:hover {
  background: #c59b27;
  transform: scale(1.08);
}

/* Interactive Timeline Track */
.hero-timeline-track {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  overflow-x: auto;
  scrollbar-width: none;
}

.hero-timeline-track::-webkit-scrollbar {
  display: none;
}

.hero-timeline-step {
  background: transparent;
  border: none;
  padding: 5px 10px;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  cursor: pointer;
  flex: 1;
  min-width: 105px;
  transition: all 0.25s ease;
  text-align: left;
}

.hero-timeline-step:hover {
  background: rgba(197, 155, 39, 0.08);
}

.step-header {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
}

.step-num {
  font-family: 'Cinzel', serif;
  font-size: 0.68rem;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.5px;
}

.step-title {
  font-size: 0.72rem;
  font-weight: 700;
  color: #64748b;
  white-space: nowrap;
  letter-spacing: 0.2px;
}

.step-progress-bar {
  width: 100%;
  height: 3px;
  background: rgba(203, 213, 225, 0.55);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

.step-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #c59b27, #e0b84c);
  border-radius: 2px;
  transition: width 0.1s linear;
}

.hero-timeline-step.active .step-num {
  color: #8c5b16;
}

.hero-timeline-step.active .step-title {
  color: #0b1220;
}

.hero-timeline-step.active .step-progress-bar {
  background: rgba(197, 155, 39, 0.2);
}

/* Arrow Controls (Prev / Next) */
.hero-arrow-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.hero-arrow-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(15, 23, 42, 0.12);
  color: #0b1220;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.74rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.hero-arrow-btn:hover {
  background: #0b1220;
  color: #ffffff;
  border-color: #0b1220;
  transform: scale(1.08);
}

/* ==========================================================================
   Responsive Breakpoints for Hero Showcase
   ========================================================================== */

@media (max-width: 1100px) {
  .hero-slide-grid {
    grid-template-columns: 420px 1fr;
    gap: 20px;
  }
  .hero-slide-title {
    font-size: 2.1rem;
  }
  .master-header-content .hero-slide-title {
    font-size: 2.1rem;
  }
  .master-lineup-wrap .item-1 { height: 200px; }
  .master-lineup-wrap .item-2 { height: 170px; }
  .master-lineup-wrap .item-3 { height: 140px; }
  .master-lineup-wrap .item-4 { height: 140px; }
  .master-lineup-wrap .item-5 { height: 170px; }
  .master-lineup-wrap .item-6 { height: 200px; }
  .hero-featured-img { max-height: 300px; }
  .slide-night .hero-featured-img { max-height: 220px; }
  .slide-purity .hero-featured-img { max-height: 230px; }
}

@media (max-width: 860px) {
  .hero-showcase-master {
    min-height: auto;
    padding: 12px 0 10px 0;
  }
  .hero-showcase-container {
    padding: 0 14px;
  }
  .hero-slides-track {
    min-height: 470px;
  }
  
  /* Compact Slide 1 (Master Portfolio) */
  .hero-slide-master-layout {
    padding: 4px 0 0 0;
    justify-content: flex-start;
  }
  .master-header-content {
    max-width: 100%;
    margin-bottom: 6px;
  }
  .master-header-content .hero-slide-title {
    font-size: 1.35rem;
    line-height: 1.18;
    letter-spacing: 0.5px;
    margin: 4px 0 6px 0;
  }
  
  /* HIDE EXTRA TEXT ON MOBILE as requested */
  .hero-slide-subtitle {
    display: none !important;
  }
  .hero-spec-pills {
    display: none !important;
  }
  .btn-outline-hero {
    display: none !important;
  }
  
  .master-header-content .hero-slide-actions {
    margin-bottom: 6px;
    justify-content: center;
  }
  .master-header-content .btn-hero-action {
    padding: 6px 16px !important;
    font-size: 0.76rem !important;
  }
  
  /* Master Lineup visible and nicely sized on mobile */
  .master-lineup-desktop {
    display: none !important;
  }
  .master-lineup-mobile {
    display: flex !important;
    justify-content: center;
    align-items: flex-end;
    width: 100%;
    padding: 0 4px;
    z-index: 2;
  }
  .lineup-collage-mobile {
    width: 100%;
    max-width: 440px;
    height: auto;
    max-height: 220px;
    object-fit: contain;
    filter: drop-shadow(0 14px 28px rgba(15, 23, 42, 0.2));
    cursor: pointer;
  }
  .master-panoramic-stage {
    min-height: 200px;
    margin-top: 10px;
    width: 100%;
  }
  .master-lineup-wrap {
    gap: 7px;
    align-items: flex-end;
    padding: 0 4px;
  }
  .master-lineup-wrap .item-1 { height: 160px; }
  .master-lineup-wrap .item-2 { height: 138px; }
  .master-lineup-wrap .item-3 { height: 112px; }
  .master-lineup-wrap .item-4 { height: 112px; }
  .master-lineup-wrap .item-5 { height: 138px; }
  .master-lineup-wrap .item-6 { height: 160px; }
  
  /* Slides 2-6 (Split Editorial Layout) */
  .hero-slide-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 8px;
  }
  .hero-slide-content {
    align-items: center;
    max-width: 100%;
    margin-bottom: 4px;
  }
  .hero-slide-title {
    font-size: 1.3rem;
    line-height: 1.2;
    margin: 4px 0 6px 0;
  }
  .hero-tag-pill {
    font-size: 0.68rem;
    padding: 3px 10px;
    margin-bottom: 4px;
  }
  .hero-slide-actions {
    justify-content: center;
    margin-top: 4px;
    margin-bottom: 6px;
  }
  .btn-hero-action {
    padding: 6px 16px !important;
    font-size: 0.76rem !important;
  }
  .hero-slide-visual {
    min-height: 220px;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .hero-featured-img {
    max-height: 230px;
    max-width: 48%;
  }
  .slide-night .hero-featured-img {
    max-height: 170px;
  }
  .slide-purity .hero-featured-img {
    max-height: 175px;
  }
  .hero-floating-card {
  display: none !important;
    display: none !important;
  }
  .hero-timeline-step .step-title {
    display: none !important;
  }
  .hero-timeline-track {
    gap: 4px !important;
    min-width: 0 !important;
    flex: 1 1 auto !important;
    overflow: visible !important;
  }
  .hero-timeline-step {
    min-width: 0 !important;
    flex: 1 1 0 !important;
    padding: 3px 1px !important;
    align-items: center !important;
    width: auto !important;
  }
  .step-header {
    justify-content: center !important;
    width: 100% !important;
  }
  .step-num {
    font-size: 0.65rem !important;
    text-align: center !important;
    width: 100% !important;
  }
  .step-progress-bar {
    width: 100% !important;
    height: 3px !important;
  }
  .hero-arrow-nav {
    gap: 4px !important;
    flex-shrink: 0 !important;
  }
  .hero-play-btn, .hero-arrow-btn {
    width: 28px !important;
    height: 28px !important;
    font-size: 0.72rem !important;
    flex-shrink: 0 !important;
  }
  .hero-controls-bar {
    padding: 4px 8px !important;
    gap: 6px !important;
    margin-top: 8px;
    box-sizing: border-box !important;
  }
}

@media (max-width: 480px) {
  .hero-slides-track {
    min-height: 420px;
  }
  .master-header-content .hero-slide-title {
    font-size: 1.15rem;
    margin: 3px 0 4px 0;
  }
  .hero-slide-title {
    font-size: 1.15rem;
    margin: 3px 0 4px 0;
  }
  .hero-tag-pill {
    font-size: 0.62rem;
    padding: 2px 8px;
  }
  .master-panoramic-stage {
    min-height: 180px;
    margin-top: 6px;
  }
  .master-lineup-wrap {
    gap: 4px;
  }
  .master-lineup-wrap .item-1 { height: 140px; }
  .master-lineup-wrap .item-2 { height: 120px; }
  .master-lineup-wrap .item-3 { height: 98px; }
  .master-lineup-wrap .item-4 { height: 98px; }
  .master-lineup-wrap .item-5 { height: 120px; }
  .master-lineup-wrap .item-6 { height: 140px; }
  
  .hero-slide-visual {
    min-height: 200px;
  }
  .hero-featured-img {
    max-height: 200px;
  }
  .slide-night .hero-featured-img {
    max-height: 155px;
  }
  .slide-purity .hero-featured-img {
    max-height: 160px;
  }
  .duo-showcase-wrap {
    gap: 8px;
  }
  .hero-controls-bar {
    padding: 4px 6px !important;
    gap: 4px !important;
  }
  .hero-play-btn, .hero-arrow-btn {
    width: 26px !important;
    height: 26px !important;
    font-size: 0.68rem !important;
  }
  .hero-timeline-track {
    gap: 3px !important;
  }
  .step-num {
    font-size: 0.62rem !important;
  }
}
