/* Product detail page */

.product-page-body {
  background: var(--color-cream);
}

.product-page__loading,
.product-page__empty {
  padding: calc(var(--header-height) + 4rem) 0 6rem;
  text-align: center;
}

.product-page__empty h1 {
  margin-bottom: 0.75rem;
}

.product-hero {
  position: relative;
  min-height: clamp(28rem, 72vh, 40rem);
  display: flex;
  align-items: flex-end;
  padding-bottom: clamp(2.5rem, 6vw, 4rem);
  margin-top: calc(var(--header-height) * -1);
  padding-top: var(--header-height);
}

.product-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.product-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(15, 26, 20, 0.92) 0%,
    rgba(15, 26, 20, 0.55) 45%,
    rgba(15, 26, 20, 0.25) 100%
  );
}

.product-hero__content {
  position: relative;
  z-index: 1;
  color: var(--color-white);
  max-width: 42rem;
}

.product-hero__back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(245, 240, 232, 0.8);
  margin-bottom: 1rem;
  transition: color var(--transition-fast);
}

.product-hero__back:hover {
  color: var(--color-copper-light);
}

.product-hero__series {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-copper-light);
  margin-bottom: 0.75rem;
}

.product-hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.05;
  margin-bottom: 1rem;
}

.product-hero__desc {
  font-size: 1rem;
  line-height: 1.65;
  color: rgba(245, 240, 232, 0.85);
  margin-bottom: 1.25rem;
}

.product-hero__specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.product-hero__specs span {
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  background: rgba(245, 240, 232, 0.12);
  border: 1px solid rgba(245, 240, 232, 0.15);
}

.product-hero__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
}

.product-hero__price {
  font-family: var(--font-price);
  font-size: clamp(1.25rem, 3vw, 1.625rem);
  font-weight: 500;
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "tnum" 1, "lnum" 1;
  color: var(--color-copper-light);
}

.product-gallery {
  padding-block: clamp(3.5rem, 7vw, 5.5rem);
  background: var(--color-white);
}

.product-gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.875rem;
}

.product-gallery__item {
  appearance: none;
  border: none;
  padding: 0;
  margin: 0;
  background: none;
  cursor: zoom-in;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.product-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.product-gallery__item:hover img {
  transform: scale(1.04);
}

.product-plan {
  padding-block: clamp(3.5rem, 7vw, 5.5rem);
  background: var(--color-cream);
}


.product-plan__sheet {
  max-width: 920px;
  margin-inline: auto;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  line-height: 0;
  font-size: 0;
}

.product-plan__img {
  width: 100%;
  height: auto;
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  vertical-align: top;
}

.product-plan__page + .product-plan__page {
  margin-top: 0;
}

.product-cta {
  padding-block: clamp(3rem, 6vw, 4.5rem);
  background: var(--color-dark);
  color: var(--color-white);
}

.product-cta__inner {
  text-align: center;
  max-width: min(52rem, 100%);
  margin-inline: auto;
}

.product-cta__inner h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.15rem, 3.6vw, 2.5rem);
  margin-bottom: 0.75rem;
  white-space: nowrap;
  line-height: 1.25;
}

.product-cta__inner h2 em {
  color: var(--color-copper-light);
  font-style: normal;
  white-space: nowrap;
}

.product-cta__inner p {
  color: rgba(245, 240, 232, 0.75);
  margin-bottom: 1.5rem;
}

.product-plan__sheet--zoomable {
  display: block;
  width: 100%;
  max-width: 920px;
  padding: 0;
  margin-inline: auto;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: zoom-in;
  position: relative;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.product-plan__sheet--zoomable:hover,
.product-plan__sheet--zoomable:focus-visible {
  box-shadow: var(--shadow-deep);
  outline: none;
}

.product-plan__sheet--zoomable:focus-visible {
  box-shadow: 0 0 0 3px rgba(184, 115, 51, 0.45), var(--shadow-deep);
}

.product-plan__hint {
  position: absolute;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  z-index: 2;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  background: rgba(15, 26, 20, 0.82);
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.2;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0.96;
  box-shadow: var(--shadow-soft);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: stretch;
  padding: 0;
  background: rgba(15, 26, 20, 0.94);
  backdrop-filter: blur(8px);
}

.lightbox[hidden] {
  display: none !important;
}

.lightbox__toolbar {
  position: absolute;
  top: 1.1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.45rem;
  border-radius: 999px;
  background: rgba(15, 26, 20, 0.72);
  border: 1px solid rgba(245, 240, 232, 0.14);
  box-shadow: var(--shadow-soft);
}

.lightbox__zoom-btn {
  min-width: 2.35rem;
  height: 2.35rem;
  padding: 0 0.55rem;
  border: none;
  border-radius: 999px;
  background: rgba(245, 240, 232, 0.12);
  color: var(--color-white);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox__zoom-btn--wide {
  font-size: 0.8125rem;
  font-family: var(--font-body);
  letter-spacing: 0.02em;
}

.lightbox__zoom-btn:hover,
.lightbox__zoom-btn:focus-visible {
  background: rgba(245, 240, 232, 0.22);
  outline: none;
}

.lightbox__zoom-label {
  min-width: 3.25rem;
  text-align: center;
  color: rgba(245, 240, 232, 0.9);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
}

.lightbox__stage {
  flex: 1;
  width: 100%;
  height: 100%;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 4.75rem 1rem 1.5rem;
  cursor: grab;
  touch-action: pan-x pan-y;
}

.lightbox--zoomed .lightbox__stage {
  cursor: grab;
}

.lightbox__img {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
  margin: 0 auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-deep);
  user-select: none;
  -webkit-user-drag: none;
}

.lightbox:not(.lightbox--spec):not(.lightbox--zoomed) .lightbox__stage {
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox:not(.lightbox--spec):not(.lightbox--zoomed) .lightbox__img {
  width: auto;
  max-width: min(1200px, 100%);
  max-height: calc(100vh - 6.5rem);
  object-fit: contain;
}

.lightbox__close {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  z-index: 3;
  width: 2.75rem;
  height: 2.75rem;
  border: none;
  border-radius: 50%;
  background: rgba(245, 240, 232, 0.12);
  color: var(--color-white);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox__close:hover,
.lightbox__close:focus-visible {
  background: rgba(245, 240, 232, 0.22);
  outline: none;
}

@media (max-width: 560px) {
  .product-plan__hint {
    font-size: 0.75rem;
    bottom: 0.75rem;
    padding: 0.45rem 0.75rem;
  }

  .lightbox__toolbar {
    top: auto;
    bottom: 1rem;
    left: 50%;
  }

  .lightbox__close {
    top: 0.75rem;
    right: 0.75rem;
  }

  .lightbox__stage {
    padding: 3.5rem 0.65rem 4.75rem;
  }
}

.product-card__img-wrap {
  cursor: pointer;
}

@media (max-width: 900px) {
  .product-gallery__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .product-gallery__grid {
    grid-template-columns: 1fr;
  }

  .product-hero__footer {
    flex-direction: column;
    align-items: stretch;
  }

  .product-hero__footer .btn {
    width: 100%;
    text-align: center;
  }
}
