/* =========================================================================
   product.css — layout for /products/*.html. Pairs with article.css, which
   supplies the shell (nav drawer, footer accordion) and the prose styles.
   ========================================================================= */

.pd-top { display: grid; grid-template-columns: 1fr 1.02fr; gap: 46px; align-items: start; }

/* Bottle shot on its category gradient, same treatment as the storefront card */
.pd-shot {
  border-radius: 26px; aspect-ratio: 1 / 1.02;
  overflow: hidden;
  border: 1.5px solid rgba(61,47,35,0.10);
  box-shadow: var(--shadow-md);
  background-image: repeating-linear-gradient(45deg, rgba(61,47,35,0.05) 0 2px, transparent 2px 18px);
  position: sticky; top: 24px;
}
/* The bottle is positioned against the box's edges rather than sized with
   percentages. A percentage height resolves against a *definite* height, and
   this box gets its height from aspect-ratio — so `height: 82%` silently fell
   back to auto and rendered the 800px-tall PNG at full size, clipped by
   overflow. Insets give object-fit a definite box to letterbox inside. */
.pd-shot { position: relative; }
.pd-shot img {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 80%; height: 86%; max-width: none;
  object-fit: contain;
  filter: drop-shadow(0 16px 22px rgba(0,0,0,0.32));
}

/* Quick facts strip under the summary */
.pd-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 24px; }
.pd-fact {
  background: var(--paper-soft); border: 1.5px solid rgba(61,47,35,0.12);
  border-radius: 13px; padding: 14px 12px; text-align: center;
}
.pd-fact b {
  display: block; font-family: var(--font-display); font-weight: 400;
  font-size: 21px; line-height: 1; color: var(--brown); letter-spacing: 0.02em;
}
.pd-fact span {
  display: block; margin-top: 6px; font-family: var(--font-mono);
  font-size: 9.5px; letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--brown-soft);
}

@media (max-width: 900px) {
  .pd-top { grid-template-columns: 1fr; gap: 28px; }
  .pd-shot { position: relative; top: auto; aspect-ratio: 1 / 0.86; }
  .pd-shot img { width: 68%; height: 88%; }
  .pd-facts { grid-template-columns: repeat(2, 1fr); }
  /* ingredient highlight rows stack rather than squeezing a 190px label column */
  .pd-hl { grid-template-columns: 1fr !important; gap: 6px !important; }
}
