/* Produktvideo – samma 50/50-band som .sharper-product-section
   Bakgrund #f5f5f0 som "PRODUKTER FRÅN SHARPER".
   Full bredd via flex-rad i div.product, utan 100vw-breakout. */

.single-product div.product .smort-product-video,
.smort-product-video {
  flex: 0 0 100% !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  position: relative;
  left: auto;
  right: auto;
  float: none;
  clear: both;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  overflow: hidden;
  background-color: #f5f5f0;
  color: #0a0a0a;
  min-height: max(700px, 80vh);
}

/* Stack flush against the following Sharper 50/50 bands. */
.single-product
  div.product:has(.smort-product-video)
  .sharper-product-custom-sections {
  margin-top: 0 !important;
}

.smort-product-video__stage,
.smort-product-video__text {
  flex: 0 0 50%;
  width: 50%;
  max-width: 50%;
  min-width: 0;
  box-sizing: border-box;
  min-height: max(700px, 80vh);
}

.smort-product-video__stage {
  position: relative;
  overflow: hidden;
  background: #111;
}

.smort-product-video__text {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
}

.smort-product-video__top {
  width: 100%;
}

.smort-product-video__eyebrow {
  margin: 0 0 12px;
  font-family: "CustomHeadingFont", sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #0a0a0a;
}

.smort-product-video__title {
  margin: 0;
  font-family: "CustomHeadingFont", sans-serif;
  font-size: 80px;
  font-weight: 700;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0;
  color: #0a0a0a;
  margin-bottom: 1rem;
}

.smort-product-video__bottom {
  display: flex;
  flex-direction: column;
  margin-top: auto;
  width: 100%;
  max-width: 36em;
}

.smort-product-video__lead {
  margin: 0 0 16px;
  font-family: "CustomContentFont", sans-serif;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: normal;
  line-height: 1.6;
  color: #0a0a0a;
}

.smort-product-video__steps {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid #a4a4a4;
}

.smort-product-video__step {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin: 0;
  padding: 12px 0;
  border-bottom: 1px solid #a4a4a4;
}

.smort-product-video__step-num {
  flex: 0 0 auto;
  font-family: "CustomHeadingFont", sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #0a0a0a;
}

.smort-product-video__step-text {
  font-family: "CustomContentFont", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: #0a0a0a;
}

.smort-product-video__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
}

.smort-product-video__cta {
  display: inline-block;
  font-family: "CustomHeadingFont", sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  background: #000 !important;
  color: #fff !important;
  border: 1px solid #000;
  border-radius: 0;
  padding: 15px 32px;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.smort-product-video__cta:hover,
.smort-product-video__cta:focus-visible {
  background: #000;
  color: #fff !important;
  outline: none;
}

.smort-product-video__card {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 0;
  overflow: hidden;
  background: #111;
}

.smort-product-video__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #111;
}

.smort-pv-play,
.smort-pv-sound {
  font-family: "CustomHeadingFont", sans-serif;
  cursor: pointer;
  border: 0;
  border-radius: 0;
  color: #fff;
  appearance: none;
  -webkit-appearance: none;
}

.smort-pv-play {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: rgba(0, 0, 0, 0.4);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  font-size: 14px;
}

.smort-pv-play[hidden] {
  display: none !important;
}

.smort-pv-play__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 0;
  background: #fff;
  color: #000;
}

.smort-pv-controls {
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  padding: 48px 12px 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.78) 0%,
    rgba(0, 0, 0, 0.35) 55%,
    rgba(0, 0, 0, 0) 100%
  );
}

.smort-pv-sound {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  margin: 0 0 10px 12px;
  padding: 8px 12px;
  background: transparent;
  border: 1px solid #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  line-height: 1.2;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.smort-pv-sound:hover,
.smort-pv-sound:focus-visible,
.smort-pv-sound.is-on {
  background: #fff;
  color: #000;
  outline: none;
}

.smort-pv-sound__icon {
  display: flex;
  flex-shrink: 0;
}

.smort-pv-sound__icon--on,
.smort-pv-sound.is-on .smort-pv-sound__icon--off {
  display: none;
}

.smort-pv-sound.is-on .smort-pv-sound__icon--on {
  display: flex;
}

.smort-pv-progress {
  display: block;
  width: 100%;
  height: 3px;
  margin: 0;
  padding: 0;
  background: rgba(255, 255, 255, 0.25);
  border: 0;
  border-radius: 0;
  cursor: pointer;
}

.smort-pv-progress__bar {
  display: block;
  width: 0%;
  height: 100%;
  background: #fff;
}

.smort-product-video__card--tiktok {
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.smort-product-video__card--tiktok .tiktok-embed {
  margin: 0 auto !important;
  max-width: 100%;
  min-width: 0 !important;
  border-radius: 0 !important;
}

@media (max-width: 768px) {
  .single-product div.product .smort-product-video,
  .smort-product-video {
    flex-direction: column;
    min-height: 0;
  }

  .smort-product-video__stage,
  .smort-product-video__text {
    flex: 0 0 auto;
    width: 100%;
    max-width: 100%;
    min-height: 0;
  }

  .smort-product-video__stage {
    height: min(70vh, 520px);
    min-height: 320px;
  }

  .smort-product-video__text {
    min-height: 0;
    padding: 20px 15px;
  }

  .smort-product-video__title {
    font-size: 28px;
  }
}

@media (max-width: 480px) {
  .smort-product-video__title {
    font-size: 28px;
  }

  .smort-product-video__cta {
    width: 100%;
    text-align: center;
    box-sizing: border-box;
  }
}
