.product-detail {
  min-height: calc(100vh - 96px);
  padding: clamp(30px, 4vw, 54px) 0 clamp(50px, 6vw, 88px);
  background:
    radial-gradient(
      circle at 85% 15%,
      rgba(255, 255, 255, 0.055),
      transparent 32%
    ),
    #17191c;
  color: #f3f1ec;
}

.product-detail__container,
.next-products__container {
  width: min(100% - 48px, 1440px);
  margin-inline: auto;
}

.product-detail .breadcrumb {
  margin-bottom: clamp(28px, 4vw, 50px);
}

.product-detail .breadcrumb span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-detail__grid {
  display: grid;
  grid-template-columns: minmax(420px, 1.05fr) minmax(360px, 0.95fr);
  align-items: stretch;
  gap: clamp(45px, 7vw, 110px);
}

.product-detail__visual {
  position: relative;
  display: grid;
  min-height: clamp(570px, 62vw, 760px);
  overflow: hidden;
  place-items: center;
  background:
    radial-gradient(circle at 50% 43%, #ffffff, #deddd8 74%),
    #efeee9;
}

.product-detail__visual img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 720px;
  padding: clamp(35px, 5vw, 75px);
  object-fit: contain;
  filter: drop-shadow(0 28px 24px rgba(0, 0, 0, 0.25));
  animation: productEntrance 750ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes productEntrance {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.product-detail__number {
  position: absolute;
  top: 25px;
  left: 27px;
  z-index: 2;
  color: #55595d;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.product-detail__size {
  position: absolute;
  top: 21px;
  right: 22px;
  z-index: 2;
  padding: 8px 12px;
  border: 1px solid rgba(23, 25, 28, 0.18);
  border-radius: 999px;
  color: #414549;
  font-size: 0.68rem;
  font-weight: 700;
}

.product-detail__content {
  display: flex;
  max-width: 610px;
  padding: clamp(18px, 3vw, 45px) 0;
  flex-direction: column;
  justify-content: center;
}

.product-detail__category {
  margin-bottom: 17px;
  color: #ba3036;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.product-detail h1 {
  font-size: clamp(3.5rem, 6vw, 7.2rem);
  font-weight: 600;
  line-height: 0.9;
  letter-spacing: -0.06em;
}

.product-detail__description {
  max-width: 560px;
  margin-top: clamp(28px, 4vw, 48px);
  color: #aeb2b7;
  font-size: clamp(1rem, 1.35vw, 1.2rem);
  line-height: 1.7;
}

.product-detail__specifications {
  margin-top: clamp(24px, 3vw, 40px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.product-detail__specifications div {
  display: flex;
  justify-content: space-between;
  gap: 25px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.product-detail__specifications dt {
  color: #b2b6ba;
  font-size: 0.8rem;
  line-height: 1.4;
}

.product-detail__specifications dd {
  color: #f3f1ec;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.4;
  text-align: right;
}

.product-detail__actions {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 38px;
}

.product-detail__buy {
  display: inline-flex;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 0 24px;
  background-color: #f3f1ec;
  color: #17191c;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  transition:
    background-color 180ms ease,
    transform 180ms ease;
}

.product-detail__buy:hover {
  background-color: #ffffff;
  transform: translateY(-2px);
}

.product-detail__back {
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  color: #c4c7ca;
  font-size: 0.76rem;
  font-weight: 700;
  text-decoration: none;
}

.product-detail__notice {
  margin-top: 17px;
  color: #73787e;
  font-size: 0.67rem;
  line-height: 1.5;
}

.next-products {
  padding: clamp(48px, 6vw, 84px) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background-color: #141619;
  color: #f3f1ec;
}

.next-products__container {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
}

.next-products__carousel {
  width: min(100% - 48px, 1440px);
  margin: 32px auto 0;
}

.next-products__eyebrow {
  margin-bottom: 14px;
  color: #e0555d;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.next-products h2 {
  max-width: 830px;
  font-size: clamp(2.8rem, 5vw, 5.5rem);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.055em;
}

.next-products h2 span {
  display: block;
  color: #969ba0;
}

.next-products__link {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.32);
  color: #f3f1ec;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.product-detail__buy:focus-visible,
.product-detail__back:focus-visible,
.next-products__link:focus-visible {
  outline: 2px solid #f3f1ec;
  outline-offset: 5px;
}

@media (max-width: 1100px) {
  .product-detail__grid {
    grid-template-columns: minmax(330px, 0.9fr) minmax(330px, 1.1fr);
    gap: 45px;
  }

  .product-detail__visual {
    min-height: 560px;
  }

  .product-detail h1 {
    font-size: clamp(3.3rem, 7vw, 5.5rem);
  }
}

@media (max-width: 780px) {
  .product-detail {
    padding: 32px 0 75px;
  }

  .product-detail__container,
  .next-products__container {
    width: min(100% - 32px, 660px);
  }

  .product-detail .breadcrumb {
    margin-bottom: 38px;
  }

  .product-detail__grid {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .product-detail__visual {
    min-height: auto;
    aspect-ratio: 1 / 1.08;
  }

  .product-detail__visual img {
    max-height: none;
    padding: clamp(28px, 10vw, 58px);
  }

  .product-detail__content {
    max-width: none;
    padding: 0;
  }

  .product-detail h1 {
    font-size: clamp(3rem, 14vw, 5rem);
  }

  .product-detail__description {
    margin-top: 25px;
  }

  .next-products__container {
    display: grid;
    align-items: start;
  }

  .next-products__carousel {
    width: 100%;
    margin-top: 24px;
  }
}

@media (max-width: 450px) {
  .product-detail__container,
  .next-products__container {
    width: calc(100% - 24px);
  }

  .product-detail__actions {
    display: grid;
    gap: 18px;
  }

  .product-detail__buy {
    width: 100%;
  }

  .product-detail__back {
    width: max-content;
  }

  .product-detail h1 {
    font-size: clamp(2.75rem, 15vw, 4rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .product-detail__visual img {
    animation: none;
  }

  .product-detail__buy {
    transition: none;
  }
}

/* Razor port: clickable gallery (images + videos). The wrapper is layout-neutral so the big image
   keeps sitting directly in the .product-detail__visual grid exactly as before. */
[data-product-gallery] {
  display: contents;
}

.product-detail__visual .product-detail__video {
  width: 100%;
  max-height: 720px;
  margin: 0;
  padding: clamp(20px, 3vw, 40px);
  background-color: transparent;
}

.product-detail__thumb {
  position: relative;
  width: 72px;
  height: 72px;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(23, 25, 28, 0.25);
  border-radius: 8px;
  background-color: #ffffff;
  cursor: pointer;
}

.product-detail__thumb.is-active {
  border: 2px solid var(--color-accent, #a7262c);
}

/* The big-image rule (.product-detail__visual img: padding, drop shadow, entrance animation)
   must not hit thumbnails. */
.product-detail__visual .product-detail__thumb img,
.product-detail__thumb video {
  width: 100%;
  height: 100%;
  max-height: none;
  padding: 4px;
  object-fit: contain;
  filter: none;
  animation: none;
}

.product-detail__thumb-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background-color: rgba(0, 0, 0, 0.35);
  color: #ffffff;
  font-size: 1.1rem;
}

/* Admin preview of a product (drafts too): makes clear visitors may not see this page. */
.product-preview-note {
  position: relative;
  z-index: 5;
  padding: 12px 20px;
  background-color: #ffcf4a;
  color: #17191c;
  font-size: 0.86rem;
  font-weight: 700;
  text-align: center;
}
