/* Thicket Pulse — product (plot sheet) */

.tp-product {
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(1.2rem, 3vw, 2.5rem) clamp(1rem, 3vw, 2rem) 3.5rem;
}

.tp-product__crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  margin-bottom: 1.15rem;
  font-size: 0.85rem;
  color: var(--tp-mute);
}

.tp-product__miss {
  max-width: 28rem;
  margin: 3rem auto;
  padding: 2rem 1.4rem;
  text-align: center;
  border-radius: var(--tp-radius);
  background: var(--tp-panel);
  border: 1px solid var(--tp-line);
  box-shadow: var(--tp-shadow);
}

.tp-product__miss h1 {
  margin: 0.35rem 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 800;
}

.tp-product__miss p {
  margin: 0 0 1.1rem;
  color: var(--tp-mute);
  line-height: 1.5;
}

.tp-product__miss-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: center;
}

.tp-product__stage {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.15rem;
  align-items: start;
  margin-bottom: 1.35rem;
}

.tp-product__media {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 0.65rem;
  align-items: stretch;
}

.tp-film {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.tp-film__shot {
  flex: 1;
  min-height: 4.5rem;
  padding: 0;
  border: 1.5px solid var(--tp-line);
  border-radius: var(--tp-radius-sm);
  overflow: hidden;
  background: var(--tp-meadow);
  cursor: pointer;
  transition: border-color 0.25s ease, transform 0.3s var(--tp-snap), box-shadow 0.25s ease;
}

.tp-film__shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tp-film__shot:hover { transform: translateY(-2px); }

.tp-film__shot.is-active {
  border-color: var(--tp-flare);
  box-shadow: 0 0 0 3px rgba(255, 92, 43, 0.18);
}

.tp-viewport {
  position: relative;
  min-height: 22rem;
  border-radius: var(--tp-radius);
  overflow: hidden;
  background: var(--tp-meadow);
  border: 1px solid var(--tp-line);
  box-shadow: var(--tp-shadow);
}

.tp-viewport__img {
  width: 100%;
  height: 100%;
  min-height: 22rem;
  object-fit: cover;
  display: block;
  transition: transform 0.55s var(--tp-ease), object-position 0.45s ease;
  transform-origin: center center;
}

.tp-viewport.is-zoomed .tp-viewport__img {
  /* scale set inline via JS */
}

.tp-viewport__tag {
  position: absolute;
  left: 0.85rem;
  bottom: 0.85rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(21, 36, 28, 0.78);
  color: #f4f7f4;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
}

.tp-plot {
  position: sticky;
  top: 1.15rem;
  padding: 1.25rem 1.3rem 1.4rem;
  border-radius: var(--tp-radius);
  background: var(--tp-panel);
  border: 1px solid var(--tp-line);
  box-shadow: var(--tp-shadow);
}

.tp-plot h1 {
  margin: 0.25rem 0 0.65rem;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.8vw, 1.95rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.tp-plot__flags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
}

.tp-flag {
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: var(--tp-meadow);
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--tp-pine);
}

.tp-flag--sale { background: rgba(255, 92, 43, 0.15); color: var(--tp-flare); }
.tp-flag--ok { background: rgba(111, 175, 122, 0.2); color: #2d6b3a; }
.tp-flag--out { background: #f5e0dc; color: #8a2e12; }

.tp-plot__price {
  margin: 0 0 0.75rem;
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
}

.tp-plot__price s {
  color: var(--tp-mute);
  font-size: 0.95rem;
}

.tp-plot__price strong {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--tp-pine);
}

.tp-plot__copy {
  margin: 0 0 1rem;
  color: var(--tp-mute);
  line-height: 1.55;
  font-size: 0.95rem;
}

.tp-plot__alert {
  margin: 0 0 0.85rem;
  padding: 0.65rem 0.8rem;
  border-radius: var(--tp-radius-sm);
  background: #fff0eb;
  border: 1px solid rgba(255, 92, 43, 0.3);
  color: #8a2e12;
  font-size: 0.88rem;
}

.tp-packs {
  margin: 0 0 0.9rem;
  padding: 0;
  border: none;
}

.tp-packs legend {
  margin-bottom: 0.45rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tp-mute);
}

.tp-packs__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tp-pack {
  min-height: 2.35rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1.5px solid var(--tp-line);
  background: var(--tp-mist);
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 650;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.tp-pack.is-active {
  background: var(--tp-pine);
  border-color: var(--tp-pine);
  color: #f5fff7;
}

.tp-plot__qty {
  margin-bottom: 0.95rem;
}

.tp-plot__qty > label {
  display: block;
  margin-bottom: 0.4rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tp-mute);
}

.tp-stepper {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--tp-line);
  border-radius: 999px;
  background: var(--tp-mist);
  overflow: hidden;
}

.tp-stepper button {
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  background: transparent;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--tp-ink);
  cursor: pointer;
}

.tp-stepper button:hover { background: var(--tp-meadow); }

.tp-stepper input {
  width: 2.75rem;
  height: 2.5rem;
  border: none;
  background: transparent;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  -moz-appearance: textfield;
}

.tp-stepper input::-webkit-outer-spin-button,
.tp-stepper input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.tp-plot__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

.tp-btn.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}

.tp-plot__pay {
  margin: 0;
  font-size: 0.8rem;
  color: var(--tp-mute);
}

.tp-product__dossier {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
  margin-bottom: 0.9rem;
}

.tp-dossier {
  padding: 1.15rem 1.2rem 1.25rem;
  border-radius: var(--tp-radius);
  background: var(--tp-panel);
  border: 1px solid var(--tp-line);
}

.tp-dossier--wide { margin-bottom: 1.25rem; }

.tp-dossier h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 750;
}

.tp-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem 1rem;
  margin: 0;
}

.tp-specs dt {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tp-mute);
}

.tp-specs dd {
  margin: 0.15rem 0 0;
  font-size: 0.9rem;
}

.tp-notes {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--tp-mute);
  line-height: 1.55;
  font-size: 0.92rem;
}

.tp-notes li + li { margin-top: 0.35rem; }

.tp-beats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.tp-beat {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.65rem;
  align-items: start;
}

.tp-beat__n {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--tp-vein);
}

.tp-beat strong {
  display: block;
  font-family: var(--font-display);
  margin-bottom: 0.2rem;
}

.tp-beat p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--tp-mute);
  line-height: 1.45;
}

.tp-related {
  margin-bottom: 1rem;
}

.tp-related__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: end;
  margin-bottom: 0.85rem;
}

.tp-related__head h2 {
  margin: 0.2rem 0 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 750;
}

.tp-related__rail {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.35rem;
  scroll-snap-type: x mandatory;
  cursor: grab;
}

.tp-related__item {
  flex: 0 0 11.5rem;
  scroll-snap-align: start;
  text-decoration: none;
  color: inherit;
  border-radius: var(--tp-radius-sm);
  background: var(--tp-panel);
  border: 1px solid var(--tp-line);
  overflow: hidden;
  transition: transform 0.3s var(--tp-snap), box-shadow 0.3s ease;
}

.tp-related__item:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(21, 36, 28, 0.08);
}

.tp-related__img {
  display: block;
  aspect-ratio: 1;
  background: var(--tp-meadow);
}

.tp-related__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tp-related__body {
  display: grid;
  gap: 0.25rem;
  padding: 0.65rem 0.75rem 0.8rem;
}

.tp-related__title {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 650;
  line-height: 1.25;
}

.tp-related__price {
  font-size: 0.85rem;
  color: var(--tp-pine);
  font-weight: 700;
}

.tp-product__foot {
  margin: 2rem 0 0;
  text-align: center;
  font-size: 0.8rem;
  color: var(--tp-mute);
}

@media (max-width: 920px) {
  .tp-product__stage {
    grid-template-columns: 1fr;
  }

  .tp-plot { position: static; }

  .tp-product__dossier {
    grid-template-columns: 1fr;
  }

  .tp-beats {
    grid-template-columns: 1fr;
  }
}

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

  .tp-film {
    flex-direction: row;
    order: 2;
  }

  .tp-film__shot {
    flex: 1;
    min-height: 3.5rem;
  }

  .tp-viewport { order: 1; }

  .tp-specs {
    grid-template-columns: 1fr;
  }

  .tp-plot__actions .tp-btn {
    flex: 1 1 100%;
  }
}
