/* ==========================================================================
   Hero Product Showcase Section Styles (Absolute Coordinates Layout & Featured-Grid Arrows)
   ========================================================================== */

.hero-product-showcase {
  position: relative;
  width: 100%;
  height: 100dvh;
  background: #f7f4ed;
  overflow: hidden;
}

.hero-product-showcase__page-width {
  height: 100%;
  position: relative;
}

.hero-product-showcase__container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* FULL SECTION BACKDROP CIRCLE GLOW */
.hero-product-showcase__glow-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.hero-product-showcase__circle-glow {
  position: absolute;
  inset: 0%;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  filter: blur(200px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity;
}

.hero-product-showcase__circle-glow.is-active {
  opacity: 0.95;
  visibility: visible;
}

/* TOP/CENTER MEDIA AREA (Absolute position viewport) */
.hero-product-showcase__media-area {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 4;
  pointer-events: none;
}

.hero-product-showcase__media-slide {
  display: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-product-showcase__media-slide.is-active,
.hero-product-showcase__media-slide.is-animating-out,
.hero-product-showcase__media-slide.is-animating-in {
  display: block;
}

.hero-product-showcase__media-slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 5;
}

/* MAIN HERO PRODUCT IMAGE (Dead Center) */
.hero-product-showcase__main-media {
  position: absolute;
  top: 44%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  max-width: 40%;
  z-index: 4;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease;
  will-change: transform, opacity;
  opacity: 1;
}

.hero-product-showcase__main-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  mix-blend-mode: multiply;
  filter: contrast(105%) brightness(102%);
}

/* 3 DECOR FLOATING ASSETS (Absolute Positioned across section) */
.hero-product-showcase__decor {
  position: absolute;
  pointer-events: auto;
  z-index: 5;
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.55s ease;
  will-change: transform, opacity;
}

.hero-product-showcase__decor img {
  width: 100%;
  height: auto;
  display: block;
  mix-blend-mode: multiply;
  filter: contrast(105%);
}

.hero-product-showcase__decor--1 {
  top: 15%;
  left: 6%;
  width: 100px;
  z-index: 2;
}

.hero-product-showcase__decor--2 {
  top: 15%;
  right: 6%;
  width: 140px;
  z-index: 2;
}

.hero-product-showcase__decor--3 {
  bottom: 10%;
  right: 28%;
  width: 150px;
  z-index: 3;
}

/* Media Slide Animation (Image slides down out of section & up from below) */
.hero-product-showcase__media-slide.is-animating-out .hero-product-showcase__main-media {
  transform: translate(-50%, 100%);
  opacity: 0;
}

.hero-product-showcase__media-slide.is-animating-out .hero-product-showcase__decor {
  opacity: 0;
  transform: scale(0.85);
}

.hero-product-showcase__media-slide.is-animating-in .hero-product-showcase__main-media {
  transform: translate(-50%, 100%);
  opacity: 0;
}

.hero-product-showcase__media-slide.is-animating-in .hero-product-showcase__decor {
  opacity: 0;
  transform: scale(0.9);
}

/* BOTTOM LEFT: Product Name, Description & Shop Button */
.hero-product-showcase__left-info {
  position: absolute;
  bottom: 60px;
  left: 60px;
  z-index: 6;
  width: 100%;
  max-width: 460px;
  pointer-events: auto;
}

.hero-product-showcase__text-slide {
  display: none;
  flex-direction: column;
  justify-content: flex-end;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.55s ease, visibility 0.55s ease;
  will-change: transform, opacity;
  transform: translateX(0);
}

.hero-product-showcase__text-slide.is-active,
.hero-product-showcase__text-slide.is-animating-out,
.hero-product-showcase__text-slide.is-animating-in {
  display: flex;
}

.hero-product-showcase__text-slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 5;
}

.hero-product-showcase__text-slide.is-animating-out {
  position: absolute;
  bottom: 0;
  left: 0;
  transform: translateX(-100%);
  opacity: 0;
}

.hero-product-showcase__text-slide.is-animating-in {
  position: absolute;
  bottom: 0;
  left: 0;
  transform: translateX(-100%);
  opacity: 0;
}

.hero-product-showcase__title {
  font-family: 'Poppins', sans-serif;
  font-size: 44px;
  font-weight: 800;
  line-height: 56px;
  color: #111111;
  text-transform: uppercase;
  margin: 0 0 16px 0;
}

.hero-product-showcase__description {
  margin-bottom: 16px;
  max-width: 420px;
  font-weight: normal;
}

.hero-product-showcase__description p {
  margin: 0 0 6px 0;
}

.hero-product-showcase__button-wrapper {
  margin-top: 5px;
}

.hero-product-showcase .button:hover,
.hero-product-showcase .button:not(.button--link, .button--text):hover {
  border: none;
  box-shadow: none;
  outline: none;
}

.hero-product-showcase .button::after,
.hero-product-showcase .button:hover::after,
.hero-product-showcase .button:not(.button--link, .button--text):hover::after {
  border: none;
  box-shadow: none;
  outline: none;
}

/* BOTTOM CENTER: Pagination Controls (Featured-Grid Style & Double Chevron Arrows) */
.hero-product-showcase__center-pagination {
  position: absolute;
  bottom: 35px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  pointer-events: auto;
}

.hero-product-showcase__controls {
  display: flex;
  align-items: center;
  gap: 16px;
}

.hero-product-showcase__arrow {
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.25, 1);
}

.hero-product-showcase__arrow:hover {
  transform: scale(1.08);
}

.arrow-double-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.chevron-arrow {
  transition: all 0.3s cubic-bezier(0.25, 1, 0.25, 1);
}

.chevron-arrow--main {
  width: 22px;
  height: 22px;
  z-index: 2;
}

.chevron-arrow--sub {
  width: 18px;
  height: 18px;
  max-width: 0;
  opacity: 0;
  margin: 0;
  transform: scale(0.75);
  z-index: 1;
  transition: max-width 0.3s cubic-bezier(0.25, 1, 0.25, 1), opacity 0.25s ease, transform 0.3s ease, margin 0.3s ease;
}

.hero-product-showcase__arrow.js-hero-prev:hover .chevron-arrow--sub {
  max-width: 18px;
  opacity: 1;
  margin-right: -25px;
  transform: scale(0.9);
}

.hero-product-showcase__arrow.js-hero-next:hover .chevron-arrow--sub {
  max-width: 18px;
  opacity: 1;
  margin-left: -25px;
  transform: scale(0.9);
}

.hero-product-showcase__progress-track {
  width: 130px;
  height: 2px;
  background: rgba(255, 255, 255, .15);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.hero-product-showcase__progress-fill {
  height: 100%;
  background: #fff;
  width: 33.333%;
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 4px;
  transition: left 0.4s cubic-bezier(0.16, 1, 0.3, 1), width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* BOTTOM RIGHT: Carousel Switcher Bar */
.hero-product-showcase__right-carousel {
  position: absolute;
  bottom: 35px;
  right: 60px;
  z-index: 10;
  pointer-events: auto;
}

.hero-product-showcase__switcher {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
}

.hero-product-showcase__thumb-btn {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  background: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  padding: 3px;
  overflow: visible;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.hero-product-showcase__thumb-btn:hover {
  border-color: rgba(0, 0, 0, 0.3);
  transform: translateY(-1px);
}

/* Active State: Top & Bottom Indicator Lines & Shaded Card BG (Matching User Image) */
.hero-product-showcase__thumb-btn.is-active {
  border-color: transparent;
  background: #dcdcdc;
  transform: none;
  box-shadow: none;
}

/* Top Indicator Line */
.hero-product-showcase__thumb-btn.is-active::before {
  content: '';
  position: absolute;
  top: -9px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 1px;
  background: #aab0b6;
  border-radius: 2px;
}

/* Bottom Indicator Line */
.hero-product-showcase__thumb-btn.is-after,
.hero-product-showcase__thumb-btn.is-active::after {
  content: '';
  position: absolute;
  bottom: -9px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 1px;
  background: #aab0b6;
  border-radius: 2px;
}

.hero-product-showcase__thumb-image {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  overflow: hidden;
}

.hero-product-showcase__thumb-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  mix-blend-mode: multiply;
}

/* Mobile & Tablet Responsive Adjustments (<= 1024px) */
@media (max-width: 1024px) {
  .hero-product-showcase {
    height: auto;
    min-height: auto;
    padding: 24px 0 40px 0;
  }

  .hero-product-showcase__container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  /* Move carousel product switcher to the VERY TOP on mobile and tablet */
  .hero-product-showcase__right-carousel {
    order: -1;
    position: relative;
    inset: auto;
    margin: 0 auto;
    width: 100%;
    display: flex;
    justify-content: center;
    pointer-events: auto;
  }

  .hero-product-showcase__switcher {
    padding: 8px 12px;
    gap: 10px;
  }

  .hero-product-showcase__thumb-btn {
    width: 48px;
    height: 48px;
  }

  /* Hide floating image 3 on <= 1024px */
  .hero-product-showcase__decor--3 {
    display: none !important;
  }

  /* Hide pagination controls on <= 1024px */
  .hero-product-showcase__center-pagination {
    display: none !important;
  }

  /* Media Area (Main Product Image) */
  .hero-product-showcase__media-area {
    order: 1;
    position: relative;
    height: 280px;
    width: 100%;
  }

  .hero-product-showcase__main-media {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 260px;
    z-index: 4;
  }

  .hero-product-showcase__decor--1 {
    top: 10%;
    left: 4%;
    width: 70px;
    z-index: 2;
  }

  .hero-product-showcase__decor--2 {
    top: 10%;
    right: 4%;
    width: 90px;
    z-index: 2;
  }

  /* Text & Button Info Section below main image */
  .hero-product-showcase__left-info {
    order: 2;
    position: relative;
    inset: auto;
    margin: 0 auto;
    width: 100%;
    pointer-events: auto;
  }

  /* Responsive Chữ Nhỏ Lại */
  .hero-product-showcase__title {
    font-size: 26px;
    line-height: 34px;
    margin-bottom: 10px;
  }

  .hero-product-showcase__description {
    font-size: 14px;
    line-height: 20px;
    margin-bottom: 14px;
    max-width: 100%;
  }

  .hero-product-showcase .button {
    font-size: 14px;
    padding: 10px 24px;
  }
}

@media (max-width: 749px) {
  .hero-product-showcase__media-area {
    height: 240px;
  }

  .hero-product-showcase__main-media {
    max-width: 210px;
  }

  .hero-product-showcase__decor--1 {
    width: 55px;
  }

  .hero-product-showcase__decor--2 {
    width: 75px;
  }

  .hero-product-showcase__title {
    font-size: 22px;
    line-height: 28px;
  }

  .hero-product-showcase__description {
    font-size: 13px;
    line-height: 18px;
  }
}