.product-detail-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #f9f8f6;
}

.product-detail-media {
  position: relative;
  background: radial-gradient(
    ellipse 82% 68% at 50% 44%,
    #ffffff 0%,
    #fcfbf9 38%,
    #f9f8f6 72%,
    #f5f3f0 100%
  );
  padding: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-detail-media--gallery {
  display: block;
  padding: 32px 20px 28px;
  overflow: hidden;
  background: #f9f8f6;
  box-sizing: border-box;
}

.product-detail-gallery {
  width: 100%;
}

.product-detail-gallery__track {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  background: #f9f8f6;
}

.product-detail-gallery__track::-webkit-scrollbar {
  display: none;
}

.product-detail-gallery__track:focus-visible {
  outline: 1px solid rgba(17, 17, 17, 0.2);
  outline-offset: 4px;
}

.product-detail-gallery__slide {
  flex: 0 0 100%;
  scroll-snap-align: center;
  scroll-snap-stop: always;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: min(72vh, 600px);
  padding: 0;
  box-sizing: border-box;
  background: radial-gradient(
    ellipse 82% 68% at 50% 44%,
    #ffffff 0%,
    #fcfbf9 38%,
    #f9f8f6 72%,
    #f5f3f0 100%
  );
}

.product-detail-gallery__slide--video {
  background: #f9f8f6;
}

.product-detail-gallery__video-blend {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f9f8f6;
}

.product-detail-gallery__video-blend .product-detail-video,
.product-detail-gallery__slide--lifestyle .product-detail-gallery__img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: min(72vh, 580px);
  object-fit: contain;
  object-position: center;
}

.product-detail-gallery__video-blend .product-detail-video {
  background: #f9f8f6;
  filter: none;
  mix-blend-mode: multiply;
}

.product-detail-page--old-phalanx .product-detail-gallery__video-blend .product-detail-video {
  mix-blend-mode: normal;
}

.product-detail-page--star-orange .product-detail-gallery__video-blend .product-detail-video {
  mix-blend-mode: normal;
}

.product-detail-page--star-pink .product-detail-gallery__video-blend .product-detail-video {
  mix-blend-mode: normal;
}

.product-detail-page--free-soul .product-detail-gallery__video-blend .product-detail-video {
  mix-blend-mode: normal;
}

.product-detail-page--dragon-green .product-detail-gallery__video-blend .product-detail-video {
  mix-blend-mode: normal;
}

.product-detail-page--dragon-red .product-detail-gallery__video-blend .product-detail-video {
  mix-blend-mode: normal;
}

.product-detail-page--dragon-pink .product-detail-gallery__video-blend .product-detail-video {
  mix-blend-mode: normal;
}

.product-detail-page--game-blue .product-detail-gallery__video-blend .product-detail-video {
  mix-blend-mode: normal;
}

.product-detail-page--game-green .product-detail-gallery__video-blend .product-detail-video {
  mix-blend-mode: normal;
}

.product-detail-page--game-pink .product-detail-gallery__video-blend .product-detail-video {
  mix-blend-mode: normal;
}

.product-detail-page--game-orange .product-detail-gallery__video-blend .product-detail-video {
  mix-blend-mode: normal;
}

.product-detail-gallery__slide--primary .product-detail-gallery__img {
  filter: drop-shadow(0 26px 32px rgba(17, 17, 17, 0.12));
}

.product-detail-gallery__slide--lifestyle .product-detail-gallery__img {
  filter: drop-shadow(0 20px 28px rgba(17, 17, 17, 0.1));
}

.product-detail-gallery__dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  padding: 0 16px;
}

.product-detail-gallery__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(17, 17, 17, 0.22);
  transition: background 0.25s ease, transform 0.25s ease;
}

.product-detail-gallery__dot--active {
  background: rgba(17, 17, 17, 0.58);
  transform: scale(1.15);
}

.product-detail-image {
  width: auto;
  height: auto;
  max-width: 72%;
  max-height: 78vh;
  object-fit: contain;
  filter: drop-shadow(0 26px 32px rgba(17, 17, 17, 0.12));
}

.product-detail-info {
  padding: 150px 72px 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #f9f8f6;
}

.product-detail-eyebrow {
  margin: 0 0 36px;
  font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  font-size: 11px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: rgba(17, 17, 17, 0.55);
}

.product-detail-title {
  margin: 0 0 42px;
  font-family: "Ladoga", "Cormorant Garamond", Georgia, serif;
  font-size: clamp(64px, 6vw, 110px);
  line-height: 0.94;
  font-weight: 400;
  letter-spacing: -0.035em;
  color: #111111;
}

.product-detail-variants {
  margin: 0 0 40px;
  max-width: 620px;
}

.product-detail-variants__label {
  margin: 0 0 14px;
  font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(17, 17, 17, 0.55);
}

.product-detail-variants__list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.product-detail-variants__option {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 76px;
  padding: 8px 6px 10px;
  border: 1px solid rgba(17, 17, 17, 0.16);
  background: #f9f8f6;
  color: #111111;
  text-decoration: none;
  transition:
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.product-detail-variants__option:hover {
  border-color: rgba(17, 17, 17, 0.45);
  background: #ffffff;
}

.product-detail-variants__option--active {
  border-color: #111111;
  background: #ffffff;
  box-shadow: 0 0 0 1px #111111;
  pointer-events: none;
}

.product-detail-variants__thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background: radial-gradient(
    ellipse 82% 68% at 50% 44%,
    #ffffff 0%,
    #fcfbf9 38%,
    #f9f8f6 72%,
    #f5f3f0 100%
  );
}

.product-detail-variants__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 6px 10px rgba(17, 17, 17, 0.1));
}

.product-detail-variants__name {
  font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: capitalize;
  text-align: center;
  line-height: 1.25;
  color: rgba(17, 17, 17, 0.72);
}

.product-detail-description {
  margin: 0 0 56px;
  max-width: 620px;
  font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(17px, 1.25vw, 21px);
  line-height: 1.6;
  font-weight: 300;
  color: rgba(17, 17, 17, 0.72);
}

.product-detail-specs {
  max-width: 620px;
}

.product-detail-spec-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  padding: 18px 0;
  border-top: 1px solid rgba(17, 17, 17, 0.22);
  font-size: 13px;
  letter-spacing: 0.06em;
}

.product-detail-spec-row:last-child {
  border-bottom: 1px solid rgba(17, 17, 17, 0.22);
}

.product-detail-spec-row dt {
  margin: 0;
  color: rgba(17, 17, 17, 0.55);
  text-transform: uppercase;
  font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif;
}

.product-detail-spec-row dd {
  margin: 0;
  color: #111111;
  font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif;
}

.product-detail-button {
  margin-top: 44px;
  width: fit-content;
  min-width: 320px;
  height: 58px;
  padding: 0 28px;
  border: 1px solid #111111;
  background: #111111;
  color: #f9f8f6;
  font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  transition: background 220ms ease, color 220ms ease, border-color 220ms ease;
}

.product-detail-button:hover {
  background: transparent;
  color: #111111;
  border-color: #111111;
}

.product-detail-button--added {
  background: transparent;
  color: #111111;
  border-color: #111111;
}

.product-detail-back {
  display: inline-block;
  margin-top: 28px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(17, 17, 17, 0.55);
  font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif;
}

@media (max-width: 768px) {
  .product-detail-page {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: var(--header-h);
    max-width: 100%;
    overflow-x: hidden;
  }

  .product-detail-media {
    min-height: 58vh;
    height: auto;
    padding: 64px 24px 40px;
    box-sizing: border-box;
  }

  .product-detail-media.product-detail-media--gallery {
    min-height: 0;
    padding: 24px 14px 22px;
  }

  .product-detail-gallery__slide {
    min-height: min(54vh, 480px);
  }

  .product-detail-gallery__video-blend .product-detail-video,
  .product-detail-gallery__slide--lifestyle .product-detail-gallery__img {
    max-width: 100%;
    max-height: min(58vh, 500px);
  }

  .product-detail-media.product-detail-media--gallery .product-detail-video {
    max-width: 100%;
    width: 100%;
  }

  .product-detail-image,
  .product-detail-media img,
  .product-detail-media video {
    max-width: 82%;
    max-height: 48vh;
    width: auto;
    height: auto;
    object-fit: contain;
  }

  .product-detail-gallery__dots {
    margin-top: 20px;
  }

  .product-detail-info {
    padding: 64px 24px max(90px, calc(env(safe-area-inset-bottom, 0px) + 72px));
    box-sizing: border-box;
  }

  .product-detail-title {
    font-size: clamp(40px, 12vw, 56px);
    line-height: 0.95;
    overflow-wrap: anywhere;
    margin-bottom: 28px;
  }

  .product-detail-variants {
    margin-bottom: 32px;
  }

  .product-detail-variants__option {
    width: 72px;
  }

  .product-detail-variants__thumb {
    width: 58px;
    height: 58px;
  }

  .product-detail-description {
    font-size: 17px;
    line-height: 1.6;
    max-width: 100%;
  }

  .product-detail-specs {
    max-width: 100%;
  }

  .product-detail-button {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }
}

@media (max-width: 480px) {
  .product-detail-media {
    min-height: 50vh;
    padding: 48px 24px 32px;
  }

  .product-detail-media.product-detail-media--gallery {
    min-height: 0;
    padding: 20px 12px 20px;
  }

  .product-detail-gallery__slide {
    min-height: min(50vh, 420px);
  }

  .product-detail-gallery__video-blend .product-detail-video,
  .product-detail-gallery__slide--lifestyle .product-detail-gallery__img {
    max-width: 100%;
    max-height: min(54vh, 440px);
  }

  .product-detail-media.product-detail-media--gallery .product-detail-video {
    max-width: 100%;
    width: 100%;
  }

  .product-detail-image,
  .product-detail-media img,
  .product-detail-media video {
    max-width: 86%;
    max-height: 44vh;
  }

  .product-detail-info {
    padding: 48px 24px max(72px, calc(env(safe-area-inset-bottom, 0px) + 56px));
  }

  .product-detail-eyebrow {
    margin-bottom: 24px;
    font-size: 10px;
    letter-spacing: 0.28em;
  }

  .product-detail-title {
    margin-bottom: 28px;
    font-size: clamp(36px, 11vw, 48px);
    line-height: 0.98;
  }

  .product-detail-description {
    margin-bottom: 36px;
    font-size: 16px;
    line-height: 1.65;
  }

  .product-detail-spec-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    padding: 14px 0;
  }

  .product-detail-button {
    margin-top: 32px;
    height: 52px;
    font-size: 10px;
    letter-spacing: 0.22em;
  }

  .product-detail-back {
    margin-top: 22px;
  }
}
