/* Shared product-video previews and one privacy-enhanced playback dialog. */
body.product-video-open {
  overflow: hidden;
}

body.product-video-open .whatsapp-float,
body.product-video-open .yao-chat-toggle,
body.product-video-open .mobile-contact-hub {
  visibility: hidden !important;
  pointer-events: none !important;
}

.product-video-trigger {
  border: 0;
  font: inherit;
}

.product-video-chip {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 3;
  display: inline-flex;
  min-height: 40px;
  padding: 0 14px 0 10px;
  align-items: center;
  gap: 9px;
  color: #ffffff;
  cursor: pointer;
  background: rgba(7, 10, 12, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 6px;
  backdrop-filter: blur(12px);
  font-size: 13px;
  font-weight: 650;
  line-height: 1;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.product-video-chip:hover,
.product-video-chip:focus-visible {
  background: #111518;
  border-color: #ffffff;
  transform: translateY(-1px);
}

/* Homepage product cards use dark studio imagery, so the video control needs
   a solid high-contrast surface instead of another dark translucent layer. */
.home-page button.product-video-chip {
  min-height: 40px !important;
  padding: 0 14px 0 10px !important;
  color: #111518 !important;
  -webkit-text-fill-color: #111518 !important;
  background: #ffffff !important;
  border: 1px solid #ffffff !important;
  border-radius: 6px !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28) !important;
  font-size: 13px !important;
  font-weight: 650 !important;
  letter-spacing: 0 !important;
  backdrop-filter: none;
}

.home-page button.product-video-chip:hover,
.home-page button.product-video-chip:focus-visible {
  color: #000000 !important;
  background: #ffffff !important;
  border-color: #ff6422 !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.36) !important;
}

.home-page button.product-video-chip .product-video-play-icon {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  background: #ff6422 !important;
  border-color: #ff6422 !important;
}

.product-video-play-icon {
  position: relative;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  border: 1px solid currentColor;
  border-radius: 50%;
}

.product-video-play-icon::after {
  position: absolute;
  top: 50%;
  left: 54%;
  width: 0;
  height: 0;
  content: "";
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 7px solid currentColor;
  transform: translate(-50%, -50%);
}

.product-video-section {
  width: min(1380px, calc(100% - 80px));
  margin: 0 auto;
  padding: clamp(72px, 8vw, 112px) 0;
}

.product-video-section + .product-video-section,
.product-video-section + .b02-section {
  padding-top: 0;
}

.product-video-heading {
  display: grid;
  margin-bottom: 32px;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 0.48fr);
  gap: clamp(28px, 7vw, 100px);
  align-items: end;
}

.product-video-heading h2 {
  max-width: 760px;
  margin: 0;
  color: #111513;
  font-size: clamp(32px, 3.4vw, 50px);
  font-weight: 680;
  line-height: 1.08;
  letter-spacing: 0;
}

.product-video-heading p {
  margin: 0;
  color: #646b68;
  font-size: 16px;
  line-height: 1.65;
}

.product-video-heading .eyebrow {
  margin-bottom: 12px;
  color: #dc5b1b;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  text-transform: uppercase;
}

.product-video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.product-video-card {
  min-width: 0;
}

.product-video-poster {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 0;
  padding: 0;
  overflow: hidden;
  color: #ffffff;
  cursor: pointer;
  background: #050607;
  border: 0;
  border-radius: 8px;
}

.product-video-poster img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transition: transform 220ms ease, opacity 220ms ease;
}

.product-video-poster::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(5, 7, 8, 0.02) 45%, rgba(5, 7, 8, 0.7) 100%);
}

.product-video-poster:hover img,
.product-video-poster:focus-visible img {
  opacity: 0.9;
  transform: scale(1.012);
}

.product-video-poster .product-video-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  width: 54px;
  height: 54px;
  border-color: rgba(255, 255, 255, 0.82);
  background: rgba(6, 9, 11, 0.72);
  transform: translate(-50%, -50%);
  backdrop-filter: blur(10px);
}

.product-video-poster .product-video-play-icon::after {
  border-top-width: 7px;
  border-bottom-width: 7px;
  border-left-width: 11px;
}

.product-video-poster-label {
  position: absolute;
  right: 18px;
  bottom: 16px;
  left: 18px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #ffffff;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.35;
  text-align: left;
}

.product-video-meta {
  display: flex;
  padding: 16px 2px 0;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.product-video-meta h3 {
  margin: 0;
  color: #151917;
  font-size: 20px;
  line-height: 1.25;
}

.product-video-meta p {
  max-width: 520px;
  margin: 6px 0 0;
  color: #68706d;
  font-size: 14px;
  line-height: 1.55;
}

.product-video-meta > span {
  flex: 0 0 auto;
  color: #777e7b;
  font-size: 12px;
  line-height: 1.4;
}

.product-video-feature {
  width: min(1180px, calc(100% - 80px));
}

.product-video-feature .product-video-grid {
  grid-template-columns: minmax(0, 1fr);
}

.product-video-feature .product-video-card {
  width: min(100%, 980px);
  margin: 0 auto;
}

body.yg-b02-page .b02-parallel-grid {
  grid-template-columns: minmax(0, 1fr);
}

body.yg-b02-page .b02-line-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.product-video-dialog {
  position: fixed;
  inset: 0;
  z-index: 10020;
  display: none;
  padding: 28px;
  place-items: center;
  background: rgba(5, 7, 9, 0.78);
  backdrop-filter: blur(8px);
}

.product-video-dialog.is-open {
  display: grid;
}

.product-video-dialog-panel {
  width: min(1100px, 100%);
  overflow: hidden;
  background: #0a0c0e;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
}

.product-video-dialog-head {
  min-height: 64px;
  display: flex;
  padding: 12px 14px 12px 20px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.product-video-dialog-title {
  margin: 0;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  font-size: 17px;
  font-weight: 650;
  line-height: 1.35;
}

.product-video-dialog-close {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  cursor: pointer;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 6px;
  font-size: 24px;
  line-height: 1;
}

#product-video-dialog .product-video-dialog-close {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

.product-video-dialog-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.product-video-dialog-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.product-video-dialog-foot {
  display: flex;
  min-height: 56px;
  padding: 10px 20px;
  align-items: center;
  justify-content: flex-end;
}

.product-video-dialog-link {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  font-size: 13px;
  font-weight: 620;
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 820px) {
  .product-video-section,
  .product-video-feature {
    width: calc(100% - 32px);
    padding: 64px 0;
  }

  .product-video-heading {
    margin-bottom: 26px;
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .product-video-heading h2 {
    font-size: 32px;
  }

  .product-video-heading p {
    font-size: 15px;
  }

  .product-video-grid {
    width: calc(100vw - 16px);
    margin-left: 0;
    padding-right: 16px;
    overflow-x: auto;
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(286px, 86vw);
    gap: 12px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .product-video-grid::-webkit-scrollbar {
    display: none;
  }

  .product-video-card {
    scroll-snap-align: start;
  }

  .product-video-feature .product-video-grid {
    width: 100%;
    padding-right: 0;
    display: block;
  }

  .product-video-feature .product-video-card {
    width: 100%;
  }

  body.yg-b02-page .b02-line-list {
    grid-template-columns: none;
  }

  .product-video-dialog {
    padding: 12px;
  }

  .product-video-dialog-panel {
    width: 100%;
  }

  .product-video-dialog-head {
    min-height: 56px;
    padding: 8px 8px 8px 14px;
  }

  .product-video-dialog-title {
    font-size: 14px;
  }

  .product-video-dialog-close {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  .product-video-dialog-foot {
    min-height: 50px;
    padding: 8px 14px;
  }
}

@media (max-width: 420px) {
  .product-video-chip {
    right: 10px;
    bottom: 10px;
    min-height: 36px;
    padding-right: 11px;
    font-size: 12px;
  }

  .product-video-poster-label {
    right: 14px;
    bottom: 13px;
    left: 14px;
    font-size: 13px;
  }

  .product-video-meta {
    display: block;
  }

  .product-video-meta > span {
    display: block;
    margin-top: 8px;
  }
}
