/* ========================================
   Details - Common Section
   ======================================== */

.details-page .common-section {
  position: relative;
  overflow: hidden;
  --common-section-cta-padding-block: 9px;
  --common-section-cta-padding-inline: 14px;
  --common-section-cta-gap: 8px;
  --common-section-cta-icon-size: 16px;
  --common-section-height: calc(100svh - 30px);
  --common-section-desktop-gap: 40px;
  background-color: #050816;
}

.details-page .common-section__inner {
  position: relative;
  width: 100%;
  overflow: hidden;
}

/* ---- Shared layout: mobile vertical flow ---- */
.details-page .common-section__layout {
  position: relative;
  left: 50%;
  isolation: isolate;
  width: 100vw;
  --tw-translate-x: -50%;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
  overflow: hidden;
  background-color: #0a1120;
}

.details-page .common-section__background {
  position: absolute;
  inset: 0px;
}

.details-page .common-section__background-picture {
  display: block;
  height: 100%;
  width: 100%;
}

.details-page .common-section__background-picture img {
  display: block;
  height: 100%;
  width: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  -o-object-position: center;
     object-position: center;
}

.details-page .common-section__background--mobile-empty {
  display: none;
}

.details-page .common-section__body {
  position: relative;
  z-index: 10;
  display: grid;
  width: 100%;
  grid-template-rows: 1fr auto;
  gap: 24px;
  padding-top: 40px;
  padding-bottom: 40px;
}

.details-page .common-section--reverse .common-section__body {
  display: flex;
  flex-direction: column;
}

.details-page .common-section__copy {
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / var(--tw-text-opacity, 1));
  padding-right: 20px;
  padding-left: 20px;
  cursor: text;
}

.details-page .common-section__title {
  margin-top: 1.25rem;
  font-weight: 700;
  font-size: 24px;
  line-height: 24px;
  color: #ffffff;
  text-align: center;
}

.details-page .common-section__desc {
  margin-top: 1.25rem;
  max-width: 36rem;
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / var(--tw-text-opacity, 1));
  margin-right: 0;
  margin-left: 0;
  font-size: 14px;
  line-height: 20px;
  text-align: center;
}

.details-page .common-section__actions {
  margin-top: 32px;
}

.details-page .common-section__product {
  display: flex;
  width: 100%;
  align-items: flex-start;
  justify-content: center;
}

.details-page .common-section__product--mobile-empty {
  display: none;
}

.details-page .common-section__product--placeholder {
  display: none;
}

.details-page .common-section__media-picture {
  display: contents;
}

.details-page .common-section__image-shell {
  display: contents;
}

.details-page .common-section__media {
  display: block;
  -o-object-fit: contain;
     object-fit: contain;
  -o-object-position: center;
     object-position: center;
  width: 90vw;
  max-width: 90%;
  height: auto;
  aspect-ratio: auto;
}

.details-page .common-section__video {
  background-color: #000;
}

.details-page .common-section__youtube {
  display: block;
  width: 90vw;
  max-width: 90%;
  height: auto;
  aspect-ratio: 16 / 9;
  border: 0;
  background-color: #000;
}

/* ---- CTA ---- */
.details-page .common-section__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / var(--tw-text-opacity, 1));
  padding-block: var(--common-section-cta-padding-block);
  padding-inline: var(--common-section-cta-padding-inline);
  gap: var(--common-section-cta-gap);
  font-size: 16px;
  white-space: nowrap;
}

.details-page .common-section__cta:hover {
  filter: brightness(1.18);
}

.details-page .common-section__cta:hover > * {
  font-weight: 500;
}

.details-page .common-section__cta-icon {
  width: var(--common-section-cta-icon-size);
  height: var(--common-section-cta-icon-size);
}

/* ========================================
   Responsive
   ======================================== */

@media (min-width: 768px) {
  .details-page .common-section {
    --common-section-cta-gap: 10px;
    --common-section-desktop-gap: 40px;
    height: var(--common-section-height);
    max-height: var(--common-section-height);
  }

  .details-page .common-section__inner {
    height: 100%;
  }

  /* The same DOM changes from vertical mobile flow to desktop split layout. */
  .details-page .common-section__layout {
    left: auto;
    height: 100%;
    width: 100%;
    --tw-translate-x: 0px;
    transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
    isolation: auto;
    overflow: visible;
    background-color: transparent;
  }

  .details-page .common-section__background {
    background-color: transparent;
  }

  .details-page .common-section__background--mobile-empty {
    display: block;
  }

  .details-page .common-section__background--desktop-empty {
    display: none;
  }

  .details-page .common-section__body {
    width: 100%;
    margin-right: auto;
    margin-left: auto;
  }

  @media (min-width: 640px) {

    .details-page .common-section__body {
      max-width: 640px;
    }
  }

  @media (min-width: 768px) {

    .details-page .common-section__body {
      max-width: 768px;
    }
  }

  @media (min-width: 960px) {

    .details-page .common-section__body {
      max-width: 960px;
    }
  }

  @media (min-width: 1280px) {

    .details-page .common-section__body {
      max-width: 1280px;
    }
  }

  @media (min-width: 1440px) {

    .details-page .common-section__body {
      max-width: 1440px;
    }
  }

  @media (min-width: 1680px) {

    .details-page .common-section__body {
      max-width: 1680px;
    }
  }

  @media (min-width: 1860px) {

    .details-page .common-section__body {
      max-width: 1860px;
    }
  }
  .details-page .common-section__body {
    max-width: min(90%, 1400px);
    margin-left: auto;
    margin-right: auto;
    display: flex;
    height: 100%;
    align-items: center;
    gap: var(--common-section-desktop-gap);
    padding-top: 0;
    padding-bottom: 0;
  }

  .details-page .common-section--reverse .common-section__body {
    flex-direction: row;
  }

  .details-page .common-section__copy {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
    --tw-text-opacity: 1;
    color: rgb(255 255 255 / var(--tw-text-opacity, 1));
    width: calc((100% - var(--common-section-desktop-gap)) / 2);
    margin-right: 0;
    margin-left: 0;
    padding-right: 0;
    padding-left: 0;
    align-items: stretch;
  }

  .details-page .common-section__copy--reveal {
    opacity: 0;
    transform: translateY(-24px);
    transition: opacity 520ms ease, transform 520ms ease;
    will-change: opacity, transform;
  }

  .details-page .common-section__copy--reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
  }

  .details-page .common-section__product {
    display: flex;
    height: 100%;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    width: calc((100% - var(--common-section-desktop-gap)) / 2);
  }

  .details-page .common-section__product--mobile-empty {
    display: flex;
  }

  .details-page .common-section__product--desktop-empty {
    display: none;
  }

  .details-page .common-section__product--placeholder {
    display: flex;
  }

  .details-page .common-section--reverse .common-section__copy {
    order: 2;
  }

  .details-page .common-section--reverse .common-section__product {
    order: 1;
  }

  .details-page .common-section__image-shell {
    overflow: hidden;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .details-page .common-section__media {
    -o-object-fit: cover;
       object-fit: cover;
    -o-object-position: center;
       object-position: center;
    width: 100%;
    max-width: 100%;
    max-height: none;
    height: auto;
    aspect-ratio: auto;
  }

  .details-page .common-section__youtube {
    width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .details-page .common-section__title {
    margin-top: 14px;
    font-size: 32px;
    line-height: 32px;
    text-align: left;
  }

  .details-page .common-section__desc {
    margin-top: 10px;
    font-size: 16px;
    line-height: 20px;
    text-align: left;
  }

  .details-page .common-section__actions {
    margin-top: 20px;
  }

  .details-page .common-section__actions .common-section__cta-icon {
    height: 1rem;
    width: 1rem;
  }

  .details-page .common-section__cta:hover {
    filter: none;
  }
}

@supports (height: 100dvh) {
  .details-page .common-section {
    --common-section-height: calc(100dvh - 30px);
  }
}

@media (min-width: 960px) {
  .details-page .common-section {
    --common-section-cta-padding-block: 10px;
    --common-section-cta-padding-inline: 18px;
    --common-section-cta-gap: 14px;
    --common-section-cta-icon-size: 18px;
    --common-section-desktop-gap: 48px;
  }

  .details-page .common-section__title {
    margin-top: 18px;
    font-size: 36px;
    line-height: 36px;
  }

  .details-page .common-section__desc {
    margin-top: 18px;
  }

  .details-page .common-section__actions {
    margin-top: 32px;
  }

  .details-page .common-section__actions .common-section__cta-icon {
    width: 18px;
    height: 18px;
  }
}

@media (min-width: 1280px) {
  .details-page .common-section {
    --common-section-desktop-gap: 56px;
  }

  .details-page .common-section__title {
    margin-top: 24px;
    font-size: 40px;
    line-height: 40px;
  }

  .details-page .common-section__desc {
    margin-top: 22px;
  }

  .details-page .common-section__actions {
    margin-top: 40px;
  }

  .details-page .common-section__actions .common-section__cta-icon {
    height: 1.25rem;
    width: 1.25rem;
  }
}

@media (min-width: 1280px) and (max-height: 900px) {
  .details-page .common-section__title {
    margin-top: 16px;
  }

  .details-page .common-section__desc {
    margin-top: 14px;
  }

  .details-page .common-section__actions {
    margin-top: 24px;
  }
}

@media (min-width: 1440px) {
  .details-page .common-section {
    --common-section-cta-padding-block: 10px;
    --common-section-cta-padding-inline: 20px;
    --common-section-cta-gap: 16px;
    --common-section-cta-icon-size: 20px;
    --common-section-desktop-gap: 64px;
  }

  .details-page .common-section__desc {
    max-width: 100%;
    font-size: 16px;
    line-height: 20px;
  }

  .details-page .common-section__title {
    font-size: 46px;
    line-height: 46px;
  }
}
