@import "/assets/app/shared/styles/page.3e88c4172a9633bb.css";

/**
 * Product page. The gallery scrolls, the buy panel stays put. Studio shots
 * are multiplied onto the page so the product has no visible plate.
 *
 * The three children are placed explicitly so that on a phone, where the
 * grid collapses to one column, the buy panel lands directly under the
 * lead photograph rather than below the whole gallery.
 */
.pdp {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(24rem, 1fr);
  column-gap: clamp(2rem, 5vw, 5rem);
  row-gap: var(--space-3);
  align-items: start;
  padding-block: var(--space-10) clamp(3rem, 6vw, 6rem);
}

.pdp-lead {
  grid-column: 1;
  grid-row: 1;
  /* A 190cm case is tall and narrow; a portrait plate wastes less page. */
  aspect-ratio: 4 / 5;
}

.pdp > .buy {
  grid-column: 2;
  grid-row: 1 / span 2;
}

.pdp > .gallery-rest {
  grid-column: 1;
  grid-row: 2;
}

.shot {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--bg-soft);
}

.shot.is-cutout {
  background: none;
}

/**
 * The studio shots frame a 190cm case inside a square, so most of the file
 * is white margin. Multiplying drops the white away, and a portrait tile
 * with object-fit: cover crops the margin rather than the product.
 */
.shot.is-cutout img {
  mix-blend-mode: multiply;
}

.shot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-rest {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
}

.gallery-rest .shot {
  aspect-ratio: 4 / 5;
}

/** Buy panel. */
.buy {
  position: sticky;
  top: calc(var(--header-h) + var(--space-6));
  display: grid;
  gap: var(--space-6);
}

.buy > * {
  margin: 0;
}

.buy-title {
  display: grid;
  gap: var(--space-3);
}

.buy-title h1 {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  overflow-wrap: break-word;
  font-weight: 800;
  font-stretch: 106%;
  line-height: 1.02;
  letter-spacing: -0.032em;
  text-transform: uppercase;
}

.buy-tagline {
  margin: 0;
  font-size: var(--text-md);
  line-height: 1.45;
  color: var(--ink-soft);
}

.buy-price {
  display: flex;
  align-items: baseline;
  gap: var(--space-4);
  padding-bottom: var(--space-6);
  border-bottom: var(--line);
}

.buy-price b {
  font-family: var(--font-mono);
  font-size: var(--text-xl);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.stock {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

.stock::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: var(--radius-pill);
  background: var(--success);
}

.stock.is-low::before {
  background: var(--flare);
}

.stock.is-out::before {
  background: var(--ink-faint);
}

.picker {
  display: grid;
  gap: var(--space-3);
}

.picker-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-4);
}

.picker-choice {
  font-size: var(--text-sm);
  color: var(--ink);
}

.picker-options {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

/** A size or closure choice: a plain square chip with the value on it. */
.chip {
  appearance: none;
  min-width: 4.5rem;
  padding: 0.7rem 1rem;
  background: var(--bg);
  border: 1px solid var(--rule-strong);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: border-color var(--duration-fast) var(--ease-out);
}

.chip:hover {
  border-color: var(--ink);
}

.chip.is-on {
  background: var(--spruce);
  border-color: var(--spruce);
  color: var(--snow);
}

.chip.is-off {
  opacity: 0.38;
  cursor: not-allowed;
  text-decoration: line-through;
}

/** A color choice: the color itself, with a ring when selected. */
.chip-color {
  appearance: none;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid rgb(14 21 24 / 0.2);
  border-radius: var(--radius-pill);
  cursor: pointer;
  box-shadow: 0 0 0 0 var(--spruce);
  transition: box-shadow var(--duration-fast) var(--ease-out);
}

.chip-color.is-on {
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px var(--spruce);
}

.buy-actions {
  display: grid;
  gap: var(--space-3);
}

.buy-row {
  display: flex;
  gap: var(--space-3);
}

.buy-row .button,
.buy-row button {
  flex: 1;
}

.buy-said {
  font-size: var(--text-sm);
  color: var(--ink);
}

.buy-said a {
  color: inherit;
}

/* The spec table's last rule already divides these two. */
.buy-specs-block + .buy-meta {
  border-top: none;
  padding-top: var(--space-4);
}

.buy-meta {
  display: grid;
  gap: var(--space-2);
  padding-top: var(--space-5);
  border-top: var(--line);
  font-size: var(--text-sm);
  color: var(--ink-soft);
}

.buy-meta .data {
  color: var(--ink-dim);
}

/**
 * The spec table. Label left, measurement right in tabular figures, a
 * hairline between rows: it reads down the numbers, which is what a
 * spec table is for.
 */
.buy-specs-block {
  display: grid;
  gap: var(--space-3);
  padding-top: var(--space-8);
}

.buy-specs {
  display: grid;
  margin: 0;
  border-top: var(--line);
}

.buy-specs > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-6);
  padding-block: var(--space-3-5);
  border-bottom: var(--line);
}

.buy-specs dt {
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--ink-soft);
}

.buy-specs dd {
  margin: 0;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  white-space: nowrap;
  color: var(--ink);
}

/** Features, laid out as rungs on the line rather than cards. */
.rungs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(2rem, 5vw, 5rem);
}

.rung {
  display: grid;
  gap: var(--space-2);
  padding-block: var(--space-6);
  border-top: var(--line);
  align-content: start;
}

.rung h3 {
  margin: 0;
  font-size: var(--text-md);
  font-weight: 600;
  letter-spacing: -0.015em;
}

.rung p {
  margin: 0;
  font-size: var(--text-sm);
  line-height: 1.6;
  color: var(--ink-soft);
}

.in-use {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-3);
  margin-top: var(--space-10);
}

@media (max-width: 68rem) {
  .pdp {
    grid-template-columns: minmax(0, 1fr);
    row-gap: var(--space-8);
  }

  .pdp-lead,
  .pdp > .buy,
  .pdp > .gallery-rest {
    grid-column: 1;
    grid-row: auto;
  }

  .buy {
    position: static;
  }

  .rungs,
  .in-use {
    grid-template-columns: minmax(0, 1fr);
  }

    }
