.product-view {
  --product-sticky-top: calc(var(--logo-h) + var(--header-pad-compact) * 2 + var(--nav-h) + 1rem);
  --gallery-offset: calc(var(--product-sticky-top) + 2.4rem + 2rem);
  width: min(75vw, 100%);
  max-width: 75vw;
  margin: 1.25rem auto 2rem;
}

.product-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(240px, 0.85fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: start;
}

.product-primary {
  display: grid;
  gap: 1.25rem;
  min-width: 0;
}

.product-gallery {
  --gallery-h: calc(100svh - var(--gallery-offset));
  display: grid;
  grid-template-columns: minmax(120px, 30%) minmax(0, 1fr);
  gap: 0.85rem;
  align-items: stretch;
  height: var(--gallery-h);
  max-height: var(--gallery-h);
}

.product-thumbs {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  height: 100%;
  min-height: 0;
  overflow-y: auto;
}

.product-thumbs__btn {
  width: 100%;
  flex: 1 1 0;
  min-height: 108px;
  max-height: 180px;
  aspect-ratio: 1;
  padding: 0.4rem;
  border: 0;
  border-radius: 16px;
  background: var(--surface);
  cursor: pointer;
}

.product-thumbs__btn.is-active {
  outline: 2px solid var(--brand-red);
  outline-offset: 2px;
}

.product-thumbs__btn img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-stage {
  position: relative;
  margin: 0;
  height: 100%;
  min-height: 0;
  border-radius: 28px;
  background: var(--surface);
  overflow: hidden;
}

.product-stage__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-stage__offer {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 1;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  background: var(--brand-red);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.product-panel {
  padding: 1.15rem 1.35rem 1.4rem;
  border-radius: 28px;
  background: var(--surface);
}

.product-panel h2 {
  margin: 0 0 0.85rem;
  font-size: 1.05rem;
}

.product-prose {
  position: relative;
}

.product-prose h1,
.product-prose h2,
.product-prose h3 {
  margin: 0 0 0.5rem;
}

.product-prose p { margin: 0 0 0.85rem; }
.product-prose ul,
.product-prose ol { margin: 0 0 0.85rem; padding-left: 1.2rem; }
.product-prose img { margin: 0.75rem 0; border-radius: 10px; }

.product-prose.is-clamped [data-prose-body] {
  max-height: 16rem;
  overflow: hidden;
}

.product-prose.is-clamped::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2.4rem;
  height: 3rem;
  background: var(--surface);
  opacity: 0.82;
  pointer-events: none;
}

.product-prose__more {
  display: block;
  margin: 0.35rem auto 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.product-prose__more[hidden] { display: none; }

.product-specs {
  width: 100%;
  border-collapse: collapse;
}

.product-specs th,
.product-specs td {
  padding: 0.75rem 0.2rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.product-specs th {
  width: 42%;
  color: var(--muted);
  font-weight: 500;
}

.product-specs tr:last-child th,
.product-specs tr:last-child td { border-bottom: 0; }

.product-consult {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.1rem 1.5rem;
  border-radius: 999px;
  background: var(--surface);
  color: inherit;
  text-decoration: none;
}

.product-consult:hover {
  text-decoration: none;
  color: inherit;
  background: var(--surface-2);
}

.product-consult:focus-visible {
  outline: 3px solid var(--brand-blue);
  outline-offset: 3px;
}

.product-consult__lottie {
  width: 70px;
  height: 70px;
  flex-shrink: 0;
}

.product-consult__copy {
  display: grid;
  gap: 0.15rem;
}

.product-consult__copy strong {
  font-family: var(--font-heading);
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
}

.product-consult__copy span {
  color: var(--muted);
  font-size: 0.95rem;
}

.product-buy {
  position: sticky;
  top: var(--product-sticky-top);
  align-self: start;
  min-width: 0;
}

.product-buy__crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0 0 0.45rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.product-buy__crumb a { color: inherit; }

.product-buy__tax {
  margin: 0 0 0.35rem;
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.product-buy__tax a { color: inherit; }

.product-buy__title {
  margin: 0 0 0.55rem;
  font-size: clamp(1.55rem, 2.4vw, 2.1rem);
  line-height: 1.15;
}

.product-buy .stock-flag {
  margin: 0 0 0.65rem;
}

.product-buy__price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.55rem;
  margin-bottom: 1rem;
}

.product-buy__now {
  font-family: var(--font-heading);
  font-size: clamp(1.45rem, 2vw, 1.85rem);
  font-weight: 700;
}

.product-buy__actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.product-buy__form {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex: 1 1 auto;
  min-width: 0;
}

.product-qty {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: var(--surface);
  padding: 0.15rem;
}

.product-qty button {
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  font-size: 1.1rem;
  cursor: pointer;
}

.product-qty button:hover { background: var(--surface-2); }

.product-qty input {
  width: 2.4rem;
  border: 0;
  background: transparent;
  text-align: center;
  font: inherit;
  font-weight: 700;
  color: inherit;
  -moz-appearance: textfield;
}

.product-qty input::-webkit-outer-spin-button,
.product-qty input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.product-buy__cta {
  flex: 1 1 10rem;
}

.product-buy__wish-form { margin: 0; }

.product-buy__wish {
  width: 2.7rem;
  height: 2.7rem;
  border: 0;
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

a.product-buy__wish:hover {
  text-decoration: none;
  color: var(--brand-red);
}

.product-buy__wish svg {
  width: 1.2rem;
  height: 1.2rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}

.product-buy__wish.is-on {
  color: var(--brand-red);
}

.product-buy__wish.is-on svg { fill: currentColor; }

.product-buy__unavailable {
  margin: 0 0 1rem;
  color: var(--muted);
}

.product-buy__excerpt {
  margin: 1rem 0 0;
  color: var(--muted);
}

.product-buy__ids {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 1.25rem 0 0;
}

.product-buy__ids div { margin: 0; }

.product-buy__ids dt {
  font-size: 0.75rem;
  color: var(--muted);
}

.product-buy__ids dd {
  margin: 0.15rem 0 0;
  font-weight: 700;
  word-break: break-word;
}

.product-related {
  display: grid;
  gap: 2rem;
  margin: 2.5rem 0 0;
}

.product-related h2 {
  margin: 0 0 0.9rem;
  font-size: 1.15rem;
}

@media (max-width: 1100px) {
  .product-view {
    width: min(88vw, 100%);
    max-width: 88vw;
  }

}

@media (max-width: 860px) {
  .product-view {
    width: 100%;
    max-width: 100%;
    margin-top: 0.75rem;
  }

  .product-layout {
    grid-template-columns: 1fr;
  }

  .product-buy {
    position: static;
  }

  .product-gallery {
    grid-template-columns: 1fr;
    height: auto;
    max-height: none;
  }

  .product-thumbs {
    flex-direction: row;
    order: 2;
    flex-wrap: nowrap;
    height: auto;
    overflow-x: auto;
  }

  .product-thumbs__btn {
    flex: 0 0 auto;
    width: 92px;
    height: 92px;
    min-height: 92px;
  }

  .product-consult {
    border-radius: 22px;
    justify-content: flex-start;
  }

  .product-stage {
    height: min(52svh, 320px);
    border-radius: 22px;
  }

  .product-panel { border-radius: 22px; }

}

@media (prefers-reduced-motion: reduce) {
  .product-consult__lottie { animation: none; }
}
