/* Product detail pages (built by build-product-pages.js).
   The hero borrows the bottle label: parchment, Georgia, faded engraving. */

.pd { gap: 2.25rem; }
.pd .detail-back { margin-bottom: 0; }

/* Hero: the label, at page size */
.pd-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 2.5rem;
  align-items: center;
  padding: 2.5rem;
  border-radius: 14px;
  background: #fdfbf3;
  color: #2b2b1f;
  font-family: Georgia, 'Times New Roman', serif;
}
.pd-hero-art {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.17;
  filter: grayscale(1) sepia(0.45) contrast(0.85) brightness(1.25);
}
.pd-brand { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: #6b6b4f; margin-bottom: 0.6rem; }
.pd-name { font-size: 2.1rem; line-height: 1.15; font-weight: 700; letter-spacing: 0.01em; margin-bottom: 0.3rem; }
.pd-botanical { font-style: italic; color: #6b6b4f; font-size: 1.05rem; margin-bottom: 1.1rem; }
.pd-lede { font-style: italic; font-size: 1.05rem; line-height: 1.55; color: #3a3a2c; margin-bottom: 1.4rem; max-width: 34ch; }
.pd-price { font-size: 1.6rem; font-weight: 700; margin-bottom: 0.2rem; }
.pd-size { font-size: 1rem; font-weight: 400; color: #6b6b4f; }
.pd-btc { font-size: 0.9rem; color: #8a7d4a; margin-bottom: 1.1rem; }
.pd-add {
  display: inline-block;
  min-width: 14rem;
  padding: 0.75rem 1.5rem;
  border: 1px solid #2b2b1f;
  border-radius: 6px;
  background: #2b2b1f;
  color: #fdfbf3;
  font: 600 0.95rem/1 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.pd-add:hover { background: #4a4a38; }
.pd-add.added { background: #2f6b3f; border-color: #2f6b3f; }
.pd-add:disabled { background: transparent; color: #6b6b4f; border-color: #b8b090; cursor: not-allowed; }
.pd-fine { font-size: 0.8rem; color: #6b6b4f; margin-top: 0.8rem; line-height: 1.5; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }

.pd-photo { margin: 0; }
.pd-photo img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; box-shadow: 0 10px 30px rgba(43, 43, 31, 0.25); }
.pd-photo figcaption { font: 0.7rem/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; color: #6b6b4f; margin-top: 0.45rem; }
.pd-photo figcaption a { color: inherit; }

/* At a glance */
.pd-glance { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: #222; border: 1px solid #222; border-radius: 12px; overflow: hidden; }
.pd-tile { background: #141414; padding: 1.1rem 1.2rem; display: flex; flex-direction: column; gap: 0.4rem; }
.pd-tile-k { font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: #c9a95a; }
.pd-tile-v { font-size: 0.95rem; line-height: 1.45; color: #e8e8e8; }

/* Sections */
.pd-h2 { font-family: Georgia, 'Times New Roman', serif; font-size: 1.35rem; font-weight: 700; color: #f0f0f0; margin-bottom: 0.9rem; }
.pd-body { color: #ccc; line-height: 1.75; font-size: 1rem; max-width: 70ch; }
.pd-uses { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.pd-uses li { padding: 0.5rem 0.95rem; border: 1px solid #333; border-radius: 999px; background: #141414; color: #ddd; font-size: 0.9rem; }
.pd-try { margin-top: 1.1rem; padding: 0.95rem 1.15rem; background: #141414; border: 1px solid #333; border-left: 3px solid #c9a95a; border-radius: 10px; }
.pd-try-k { font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: #c9a95a; margin-bottom: 0.35rem; }
.pd-try-t { font-family: Georgia, 'Times New Roman', serif; font-style: italic; font-size: 1.02rem; line-height: 1.55; color: #e8e8e8; }

.pd-details details { border-top: 1px solid #222; }
.pd-details details:last-child { border-bottom: 1px solid #222; }
.pd-details summary { cursor: pointer; padding: 0.95rem 0; font-weight: 600; color: #e8e8e8; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.pd-details summary::-webkit-details-marker { display: none; }
.pd-details summary::after { content: '+'; color: #c9a95a; font-size: 1.2rem; font-weight: 400; }
.pd-details details[open] summary::after { content: '−'; }
.pd-details p { color: #bbb; line-height: 1.7; font-size: 0.95rem; padding-bottom: 1rem; max-width: 70ch; }

/* Pairs well with */
.pd-pairs { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; }
.pd-pair { display: flex; flex-direction: column; gap: 0.25rem; padding: 0.75rem; border: 1px solid #222; border-radius: 12px; background: #141414; text-decoration: none; transition: border-color 0.15s; }
.pd-pair:hover { border-color: #444; }
.pd-pair img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; margin-bottom: 0.4rem; }
.pd-pair-name { color: #f0f0f0; font-weight: 600; font-size: 0.95rem; }
.pd-pair-bot { color: #999; font-style: italic; font-size: 0.8rem; }

@media (max-width: 860px) {
  .pd-hero { grid-template-columns: 1fr; padding: 1.5rem; gap: 1.5rem; }
  .pd-photo { order: -1; }
  .pd-name { font-size: 1.75rem; }
  .pd-add { width: 100%; }
  .pd-glance { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 420px) {
  .pd-glance { grid-template-columns: 1fr; }
  .pd-pairs { grid-template-columns: 1fr 1fr; gap: 0.6rem; }
}

/* Hero media (2026-10-08): our bottle photo, tall, then the plant photo smaller underneath.
   Products without a bottle photo yet show their label and a note in the bottle's place. */
.pd-media { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 0.9rem; }
.pd-main { display: block; width: 100%; max-width: 360px; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 10px;
           box-shadow: 0 10px 30px rgba(43, 43, 31, 0.25); }
.pd-pending { width: 100%; max-width: 360px; aspect-ratio: 2 / 3; display: flex; flex-direction: column; justify-content: center; gap: 1.1rem;
              padding: 1.25rem; border: 1px dashed #c9bd94; border-radius: 10px; background: rgba(243, 238, 221, 0.85); }
.pd-pending img { width: 100%; height: auto; display: block; border-radius: 3px; box-shadow: 0 4px 14px rgba(43, 43, 31, 0.25); }
.pd-pending p { font-style: italic; font-size: 0.95rem; line-height: 1.5; color: #6b6b4f; text-align: center; }
.pd-second { width: 100%; max-width: 360px; display: flex; gap: 0.8rem; align-items: center; }
.pd-second img { flex: none; width: 40%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; box-shadow: 0 4px 14px rgba(43, 43, 31, 0.2); }
.pd-second img.portrait { width: 30%; aspect-ratio: 3 / 4; }
.pd-second figcaption, .pd-media > figcaption { font: 0.72rem/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; color: #6b6b4f; }
.pd-second figcaption a, .pd-media > figcaption a { color: inherit; }
.pd-second figcaption b { display: block; font: italic 600 0.9rem/1.3 Georgia, 'Times New Roman', serif; color: #3a3a2c; margin-bottom: 0.15rem; }
.pd-details .pd-disclaimer { font-size: 0.8rem; color: #888; }
.pd-pending.reserve { aspect-ratio: auto; }
.pd-details ul { list-style: none; padding: 0 0 0.6rem; }
.pd-details li { color: #bbb; line-height: 1.6; font-size: 0.95rem; padding: 0.1rem 0; }
@media (max-width: 860px) {
  .pd-media { order: -1; }
  .pd-pending { aspect-ratio: auto; }
}
.pd-fine a { color: inherit; text-decoration: underline; }
