/* =========================================================
   MEHFARO - PREMIUM IMAGE + VIDEO SHOWCASE
========================================================= */


/* =========================================================
   REMOVE OLD STATIC HERO LABELS
========================================================= */

.hero-visual .visual-info,
.hero-visual .floating-card-one,
.hero-visual .floating-card-two {
  display: none !important;
}


/* =========================================================
   CLEAN OLD HERO IMAGE CARD
========================================================= */

.hero-visual .main-product-card {
  overflow: hidden !important;

  border-radius: 26px !important;

  border:
    1px solid
    rgba(255, 255, 255, 0.74) !important;

  background: transparent !important;

  box-shadow:
    0 18px 46px
    rgba(39, 27, 8, 0.15) !important;
}

.hero-visual .main-product-card img {
  width: 100% !important;
  height: 100% !important;

  display: block !important;

  object-fit: cover !important;

  border-radius: 26px !important;
}


/* =========================================================
   OWNER PROMOTION IMAGE
   BUTTON STAYS INSIDE IMAGE
========================================================= */

.hero.mf-commerce-hero
.mf-promo-frame {
  overflow: hidden !important;

  border-radius: 26px !important;
}

.hero.mf-commerce-hero
.mf-promo-slide {
  overflow: hidden !important;

  border-radius: 26px !important;
}

.hero.mf-commerce-hero
.mf-promo-slide img {
  border-radius: 26px !important;

  object-fit: cover !important;
}

.hero.mf-commerce-hero
.mf-promo-overlay {
  position: absolute !important;

  inset: 0 !important;

  padding: 18px !important;

  display: flex !important;

  align-items: flex-end !important;
  justify-content: flex-start !important;

  border-radius: 26px !important;

  background:
    linear-gradient(
      to top,
      rgba(7, 14, 13, 0.56),
      rgba(7, 14, 13, 0.02) 58%
    ) !important;

  pointer-events: none !important;
}

.hero.mf-commerce-hero
.mf-promo-shop-button {
  pointer-events: auto !important;

  min-height: 42px !important;

  padding:
    0
    18px !important;

  border: 0 !important;

  border-radius: 999px !important;

  background:
    linear-gradient(
      135deg,
      #c88917,
      #e0aa3e
    ) !important;

  color: #111111 !important;

  font-size: 11px !important;
  font-weight: 950 !important;

  box-shadow:
    0 8px 22px
    rgba(0, 0, 0, 0.22) !important;

  cursor: pointer !important;
}


/* =========================================================
   VIDEO SLOT
========================================================= */

.hero.mf-commerce-hero
.mf-video-showcase {
  width: 100% !important;

  min-width: 0 !important;

  margin: 0 !important;
  padding: 0 !important;

  position: relative !important;

  z-index: 6 !important;
}

.hero.mf-commerce-hero
.mf-video-showcase[hidden] {
  display: none !important;
}


/* =========================================================
   VIDEO SLIDES
========================================================= */

.mf-video-showcase-stage {
  width: 100%;

  min-width: 0;

  position: relative;
}

.mf-video-showcase-slide {
  display: none;

  width: 100%;

  min-width: 0;
}

.mf-video-showcase-slide.is-active {
  display: block;
}


/* =========================================================
   PREMIUM VIDEO CARD
========================================================= */

.mf-premium-video-card {
  width: 100%;

  min-width: 0;

  position: relative;

  overflow: hidden;

  border-radius: 26px;

  border:
    1px solid
    rgba(255, 255, 255, 0.76);

  background: #0e1514;

  box-shadow:
    0 18px 46px
    rgba(39, 27, 8, 0.16);
}


/* =========================================================
   VIDEO MEDIA
========================================================= */

.mf-premium-video-media {
  width: 100%;

  height: 360px;

  min-height: 360px;

  position: relative;

  overflow: hidden;

  background:
    #0e1514;
}

.mf-premium-video-media video,
.mf-premium-video-media iframe {
  display: block;

  width: 100% !important;
  height: 100% !important;

  border: 0;

  background:
    #0e1514;
}

.mf-premium-video-media video {
  object-fit: cover !important;
}


/* =========================================================
   VIDEO DARK GRADIENT
========================================================= */

.mf-premium-video-media::after {
  content: "";

  position: absolute;

  inset: 0;

  pointer-events: none;

  background:
    linear-gradient(
      to top,
      rgba(5, 11, 10, 0.82) 0%,
      rgba(5, 11, 10, 0.33) 42%,
      rgba(5, 11, 10, 0.02) 72%
    );

  z-index: 2;
}


/* =========================================================
   ALL VIDEO INFORMATION INSIDE VIDEO
========================================================= */

.mf-premium-video-overlay {
  position: absolute;

  inset:
    auto
    0
    0
    0;

  z-index: 5;

  padding:
    18px;

  display: grid;

  gap: 11px;

  color: #ffffff;
}


/* =========================================================
   VIDEO TOP COPY
========================================================= */

.mf-premium-video-copy {
  display: flex;

  align-items: flex-end;
  justify-content: space-between;

  gap: 12px;
}

.mf-premium-video-title-wrap {
  min-width: 0;

  flex: 1;
}

.mf-premium-video-kicker {
  display: block;

  margin-bottom: 4px;

  color:
    rgba(255, 255, 255, 0.74);

  font-size: 8px;
  font-weight: 950;

  letter-spacing: 0.16em;
}

.mf-premium-video-title {
  margin: 0;

  color: #ffffff;

  font-size:
    clamp(
      18px,
      2vw,
      25px
    );

  font-weight: 950;

  line-height: 1.06;

  letter-spacing: -0.03em;
}


/* =========================================================
   DISCOUNT BADGE
========================================================= */

.mf-premium-video-discount {
  flex-shrink: 0;

  min-height: 30px;

  padding:
    0
    10px;

  display: inline-flex;

  align-items: center;
  justify-content: center;

  border-radius: 999px;

  background:
    rgba(200, 137, 23, 0.96);

  color: #111111;

  font-size: 9px;
  font-weight: 950;

  box-shadow:
    0 7px 18px
    rgba(0, 0, 0, 0.16);
}


/* =========================================================
   MAIN SHOP NOW
========================================================= */

.mf-premium-video-shop {
  min-height: 40px;

  padding:
    0
    16px;

  border: 0;

  border-radius: 999px;

  display: inline-flex;

  align-items: center;
  justify-content: center;

  justify-self: start;

  background:
    linear-gradient(
      135deg,
      #c88917,
      #e1aa3d
    );

  color: #111111;

  font-size: 10px;
  font-weight: 950;

  cursor: pointer;

  box-shadow:
    0 8px 22px
    rgba(0, 0, 0, 0.20);
}


/* =========================================================
   PRODUCTS INSIDE VIDEO
========================================================= */

.mf-premium-video-products {
  width: 100%;

  min-width: 0;

  display: flex;

  gap: 8px;

  overflow-x: auto;

  padding-bottom: 2px;

  scrollbar-width:
    none;
}

.mf-premium-video-products::-webkit-scrollbar {
  display: none;
}


/* =========================================================
   PRODUCT CHIP
========================================================= */

.mf-premium-video-product {
  flex:
    0
    0
    auto;

  width: 150px;

  min-height: 56px;

  padding: 5px;

  border:
    1px solid
    rgba(255, 255, 255, 0.22);

  border-radius: 14px;

  display: grid;

  grid-template-columns:
    44px
    minmax(0, 1fr);

  align-items: center;

  gap: 7px;

  background:
    rgba(255, 255, 255, 0.14);

  color: #ffffff;

  backdrop-filter:
    blur(12px);

  -webkit-backdrop-filter:
    blur(12px);

  cursor: pointer;
}

.mf-premium-video-product-image {
  width: 44px;
  height: 44px;

  overflow: hidden;

  display: grid;

  place-items: center;

  border-radius: 10px;

  background:
    rgba(255, 255, 255, 0.15);
}

.mf-premium-video-product-image img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;
}

.mf-premium-video-product-image span {
  color: #ffffff;

  font-size: 10px;
  font-weight: 950;
}

.mf-premium-video-product-copy {
  min-width: 0;

  display: grid;

  gap: 2px;
}

.mf-premium-video-product-copy strong {
  overflow: hidden;

  color: #ffffff;

  font-size: 9px;
  font-weight: 900;

  text-overflow: ellipsis;
  white-space: nowrap;
}

.mf-premium-video-product-copy b {
  color: #efbd58;

  font-size: 9px;
  font-weight: 950;
}

.mf-premium-video-product-copy small {
  color:
    rgba(255, 255, 255, 0.70);

  font-size: 7px;
}


/* =========================================================
   VIDEO NAVIGATION
========================================================= */

.mf-video-showcase-controls {
  position: absolute;

  top: 14px;
  right: 14px;

  z-index: 20;

  display: flex;

  align-items: center;

  gap: 6px;
}

.mf-video-nav-button {
  width: 32px;
  height: 32px;

  padding: 0;

  border:
    1px solid
    rgba(255, 255, 255, 0.28);

  border-radius: 50%;

  display: grid;

  place-items: center;

  background:
    rgba(15, 22, 21, 0.52);

  color: #ffffff;

  font-size: 19px;

  backdrop-filter:
    blur(8px);

  cursor: pointer;
}

.mf-video-showcase-dots {
  display: flex;

  align-items: center;

  gap: 5px;
}

.mf-video-showcase-dot {
  width: 6px;
  height: 6px;

  padding: 0;

  border: 0;

  border-radius: 999px;

  background:
    rgba(255, 255, 255, 0.45);

  cursor: pointer;
}

.mf-video-showcase-dot.is-active {
  width: 18px;

  background: #d79b2d;
}


/* =========================================================
   WHEN REAL VIDEO EXISTS
========================================================= */

.hero.mf-commerce-hero.mf-has-video
.hero-visual {
  display: none !important;
}


/* =========================================================
   DESKTOP
========================================================= */

@media (min-width: 1101px) {

  .hero.mf-commerce-hero
  .mf-video-showcase {
    grid-column: 3 !important;
  }

  .hero.mf-commerce-hero:not(.mf-has-promotions)
  .mf-video-showcase {
    grid-column: 2 !important;
  }

}


/* =========================================================
   TABLET
========================================================= */

@media
(max-width: 1100px)
and
(min-width: 781px) {

  .hero.mf-commerce-hero
  .mf-video-showcase {
    grid-column: 2 !important;
  }

  .mf-premium-video-media {
    height: 330px;
    min-height: 330px;
  }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 780px) {

  .hero.mf-commerce-hero
  .mf-video-showcase,
  .hero.mf-commerce-hero:not(.mf-has-promotions)
  .mf-video-showcase {
    grid-column: 1 !important;

    width: 100% !important;

    order: 3 !important;
  }

  .mf-premium-video-card {
    border-radius: 22px;
  }

  .mf-premium-video-media {
    height: 360px;
    min-height: 360px;
  }

  .mf-premium-video-overlay {
    padding: 15px;
  }

}


/* =========================================================
   SMALL PHONE
========================================================= */

@media (max-width: 480px) {

  .mf-premium-video-media {
    height: 330px;
    min-height: 330px;
  }

  .mf-premium-video-copy {
    align-items: flex-start;

    flex-direction: column;
  }

  .mf-premium-video-title {
    font-size: 20px;
  }

  .mf-premium-video-product {
    width: 142px;
  }

  .mf-premium-video-shop {
    min-height: 38px;
  }

}

/* MEHFARO VIDEO SHOP ONLY V1 */

/* Hide MEHFARO VIDEO / laptop / discount */
.mf-premium-video-copy {
  display: none !important;
}

/* Hide linked product card/name/price */
.mf-premium-video-products {
  display: none !important;
}

/* Only Shop Now stays visible over video */
.mf-premium-video-shop {
  display: inline-flex !important;
}

/* MEHFARO OFFER DISCOUNT BADGE V1 */

.mf-offer-discount-badge {
  min-height: 28px;
  padding: 0 10px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  justify-self: start;
  align-self: flex-start;

  border-radius: 999px;

  background:
    rgba(200, 137, 23, 0.96);

  color: #111111;

  font-size: 9px;
  font-weight: 950;

  box-shadow:
    0 7px 18px
    rgba(0, 0, 0, 0.18);

  pointer-events: none;
}

/* Promotion: badge directly above Shop Now */
.hero.mf-commerce-hero
.mf-promo-overlay {
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: flex-end !important;
  gap: 8px !important;
}

/* Video: badge directly above Shop Now */
.mf-premium-video-overlay {
  align-content: end;
}

@media (max-width: 780px) {
  .mf-offer-discount-badge {
    min-height: 24px;
    padding: 0 8px;
    font-size: 8px;
  }
}

/* MEHFARO VIDEO SLIDER COUNTER V1 */

.mf-video-showcase-counter {
  min-height: 28px;
  padding: 0 9px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 999px;

  background:
    rgba(15, 22, 21, 0.52);

  color: #ffffff;

  font-size: 9px;
  font-weight: 900;

  backdrop-filter:
    blur(8px);

  -webkit-backdrop-filter:
    blur(8px);

  pointer-events: none;
}

@media (max-width: 780px) {
  .mf-video-showcase-counter {
    min-height: 26px;
    padding: 0 8px;
    font-size: 8px;
  }
}

/* MEHFARO VIDEO PROMO-LIKE NAVIGATION V1 */

.mf-video-showcase-controls {
  position: absolute !important;
  inset: 0 !important;

  z-index: 20 !important;

  display: block !important;

  pointer-events: none !important;
}

.mf-video-showcase-controls
.mf-video-nav-button {
  position: absolute !important;
  top: 50% !important;

  transform:
    translateY(-50%) !important;

  pointer-events: auto !important;
}

.mf-video-showcase-controls
[data-video-prev] {
  left: 12px !important;
  right: auto !important;
}

.mf-video-showcase-controls
[data-video-next] {
  right: 12px !important;
  left: auto !important;
}

.mf-video-showcase-dots {
  position: absolute !important;

  left: 50% !important;
  bottom: 50px !important;

  transform:
    translateX(-50%) !important;

  padding: 6px 8px !important;

  border-radius: 999px !important;

  background:
    rgba(15, 22, 21, 0.36) !important;

  backdrop-filter:
    blur(8px);

  -webkit-backdrop-filter:
    blur(8px);

  pointer-events: auto !important;
}

.mf-video-showcase-counter {
  position: absolute !important;

  top: 12px !important;
  right: 12px !important;

  pointer-events: none !important;
}

@media (max-width: 780px) {

  .mf-video-showcase-controls
  [data-video-prev] {
    left: 8px !important;
  }

  .mf-video-showcase-controls
  [data-video-next] {
    right: 8px !important;
  }

  .mf-video-showcase-dots {
    bottom: 48px !important;
  }

  .mf-video-showcase-counter {
    top: 8px !important;
    right: 8px !important;
  }
}

