/* Shared product detail pages */
#storefront-view[hidden], #letao-product[hidden], .product-detail-view[hidden], .masthead nav[hidden] { display: none; }
#letao-product { scroll-margin-top: 160px; }
#letao-product:focus, .product-detail-view:focus { outline: none; }
.pdp-breadcrumb { margin: 24px 0 20px; color: var(--muted); font-size: 13px; }
.pdp-breadcrumb a { text-decoration: underline; text-underline-offset: 3px; }
.pdp-breadcrumb a:hover { color: var(--wine); }
.pdp-breadcrumb [data-catalog-return] {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-right: 8px;
  color: var(--wine);
  font-weight: 600;
  text-decoration: none;
}
.pdp-breadcrumb .pdp-back-arrow { margin-right: 7px; }
.pdp-breadcrumb [data-catalog-return]:hover { text-decoration: underline; }
.pdp-breadcrumb [data-catalog-return]:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }

.pdp-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  align-items: center;
  gap: clamp(28px, 5vw, 76px);
}
.pdp-hero-photo, .pdp-intro { min-width: 0; }
.pdp-hero-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1800 / 1349;
  object-fit: cover;
  border-radius: 8px;
  background: var(--porcelain);
}
.pdp-hero-photo figcaption { margin: 8px 0 0 3px; font-size: 12px; line-height: 1.5; }
.pdp-intro { padding-block: 20px; color: #30251f; }
.pdp-kicker { margin-bottom: 12px; color: #79604d; font: 700 12px/1.3 var(--serif); letter-spacing: .14em; }
.pdp-intro h1 { color: #30251f; font-size: clamp(32px, 4vw, 56px); line-height: 1.16; font-weight: 650; overflow-wrap: anywhere; }
.pdp-lede { max-width: 38ch; margin-top: 16px; color: var(--muted); line-height: 1.75; word-break: keep-all; overflow-wrap: anywhere; }

.pdp-summary { scroll-margin-top: 24px; margin-top: 24px; padding-top: 18px; border-top: 1px solid #ded1c5; }
.pdp-facts { margin: 0 0 16px; font-size: 14px; }
.pdp-facts > div { display: grid; grid-template-columns: 5em minmax(0, 1fr); gap: 8px; padding: 4px 0; }
.pdp-facts dt { color: var(--muted); }
.pdp-facts dd { margin: 0; color: #30251f; word-break: keep-all; overflow-wrap: anywhere; }
.pdp-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.pdp-price strong { color: #30251f; font-size: clamp(23px, 2.4vw, 30px); line-height: 1.2; }
.pdp-summary > .note { margin-top: 10px; word-break: keep-all; overflow-wrap: anywhere; }
.pdp-actions { display: flex; flex-wrap: wrap; gap: 10px; min-width: 0; }
.pdp-summary .pdp-actions { margin-top: 18px; }
.pdp-compare-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  max-width: 100%;
  color: var(--muted);
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}
.pdp-compare-link:hover { color: var(--wine); }
.pdp-compare-link:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.pdp-actions .primary, .pdp-actions .quiet {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  max-width: 100%;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
}
.pdp-actions .quiet:hover { border-color: var(--wine); color: var(--wine); }
.pdp-tasting { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--border); }
.pdp-tasting h2 { color: #30251f; font-size: 17px; }
.pdp-tasting dl { margin: 14px 0 0; }
.pdp-tasting dl > div { display: grid; grid-template-columns: 3em minmax(0, 1fr); gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--border); }
.pdp-tasting dt { color: #594336; font-weight: 700; }
.pdp-tasting dd { margin: 0; color: var(--muted); word-break: keep-all; overflow-wrap: anywhere; }
.pdp-tasting .note { margin-top: 12px; word-break: keep-all; }

.pdp-pairing {
  scroll-margin-top: 24px;
  display: grid;
  grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr);
  align-items: center;
  gap: clamp(24px, 5vw, 70px);
  margin: clamp(56px, 8vw, 110px) 0;
  padding: clamp(20px, 4vw, 50px);
  background: #f4ede4;
  border-radius: 8px;
}
.pdp-pairing-photo { display: block; width: 100%; max-width: 300px; height: auto; aspect-ratio: 1; justify-self: center; object-fit: contain; background: #fffdf9; border-radius: 6px; }
.pdp-pairing-copy { min-width: 0; max-width: 590px; }
.pdp-pairing-copy h2 { color: #30251f; font-size: clamp(25px, 3vw, 38px); overflow-wrap: anywhere; }
.pdp-pairing-copy p { margin-top: 12px; color: var(--muted); line-height: 1.7; word-break: keep-all; overflow-wrap: anywhere; }
.pdp-pairing-copy .pdp-pair-total { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-top: 18px; color: #30251f; }
.pdp-pair-total strong { color: #30251f; font-size: 20px; }
.pdp-pairing-copy .pdp-actions { margin-top: 18px; }
.pdp-pairing-copy .note[role="status"]:empty { margin: 0; }
.pdp-pairing-matcha { background: #eff0e7; }

/* Packaged products show the full package; matcha photographs show the food. */
.pdp-hero-pack { grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); }
.pdp-hero-pack .pdp-hero-photo img { aspect-ratio: 1 / 1; object-fit: contain; padding: clamp(18px, 4vw, 52px); background: #f5efe8; }
.pdp-hero-pack .pdp-intro { max-width: 540px; }
.pdp-hero-matcha .pdp-hero-photo img { aspect-ratio: 1800 / 1349; object-fit: cover; object-position: center bottom; padding: 0; }

@media (max-width: 760px) {
  .pdp-breadcrumb { margin: 8px 0 7px; }
  .pdp-hero, .pdp-hero-pack { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .pdp-intro { padding-block: 6px 0; }
  .pdp-intro h1 { font-size: clamp(30px, 8vw, 42px); }
  .pdp-lede { margin-top: 10px; }
  .pdp-summary { margin-top: 18px; padding-top: 14px; }
  .pdp-hero-pack .pdp-hero-photo img { aspect-ratio: 1.15; padding: 20px; }
  .pdp-hero-matcha .pdp-hero-photo img { aspect-ratio: 1.45; padding: 0; }
  .pdp-pairing { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .pdp-pairing-photo { max-width: 220px; }
}
@media (max-width: 375px) {
  .pdp-hero-matcha .pdp-hero-photo img { aspect-ratio: 1.55; }
  .pdp-actions { flex-direction: column; align-items: stretch; }
  .pdp-actions .primary, .pdp-actions .quiet { width: 100%; }
}
