#product-dialog {
  --product-paper: #fffdf9;
  --product-line: #d8d5cd;
  --product-ink: #25392f;
  --product-link: #185446;
  --product-action: #863440;
  --product-panel: #f4f3eb;
  --product-selected: #dceee5;
  --product-muted: #515952;
  color: var(--product-ink);
  background: var(--product-paper);
  padding: 0;
  overflow: hidden;
}
html[data-theme=dark] #product-dialog {
  --product-paper: #242135;
  --product-line: #615b72;
  --product-ink: #f6f1fa;
  --product-link: #f3d39d;
  --product-action: #993e4f;
  --product-panel: #322e40;
  --product-selected: #514335;
  --product-muted: #d6d0dd;
  background: var(--product-paper);
}
#product-dialog .dialog-close {
  position: absolute;
  inset: 8px 8px auto auto;
  margin: 0;
  width: 44px;
  height: 44px;
}
#product-content {
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  max-height: min(90vh, 90dvh);
}
.product-scroll { min-height: 0; overflow: auto; overscroll-behavior: contain; }
.product-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas: "gallery heading" "gallery information";
  align-items: start;
  column-gap: clamp(20px, 3vw, 42px);
  row-gap: 14px;
  padding: clamp(16px, 3vw, 34px);
}
#product-content .detail-heading { grid-area: heading; min-width: 0; padding-right: 40px; }
#product-content .detail-heading .eyebrow { margin: 0 0 4px; }
#product-title { font-size: clamp(23px, 3vw, 34px); line-height: 1.13; margin: 0 0 7px; overflow-wrap: anywhere; color: var(--product-ink); }
#product-content .detail-price { color: var(--product-ink); font-size: 23px; margin: 0; }
#product-content .detail-gallery { grid-area: gallery; position: sticky; top: 0; }
#product-content .detail-info { grid-area: information; display: grid; gap: 15px; min-width: 0; }
#product-content .detail-info :is(.availability, .material-note, .exchange-note, .product-dimensions) { margin: 0; }
#product-content .detail-photo img { object-fit: contain; max-height: 48vh; }
#product-content .photo-thumbs { gap: 6px; margin-top: 8px; }
#product-content .photo-thumbs img { width: 48px; height: 48px; object-fit: contain; }
#product-content .photo-disclaimer { margin: 6px 0 0; font-size: 13px; }
#product-content .product-description { white-space: pre-line; margin: 0 12px 12px; font-size: 16px; line-height: 1.5; }
#product-content :is(.product-palette,.product-description-panel) { padding: 0; margin: 0; border: 1px solid var(--product-line); border-radius: 13px; color: var(--product-ink); background: var(--product-panel); }
#product-content summary { display: flex; align-items: center; min-height: 46px; padding: 10px 38px 10px 12px; cursor: pointer; color: var(--product-ink); font-weight: 700; }
#product-content summary::after { right: 14px; top: 50%; transform: translateY(-50%); font-size: 21px; line-height: 1; color: var(--product-link); }
#product-content :is(.product-description,.material-note,.palette-label) { color: var(--product-muted); }
#product-content .color-fieldset legend { color: var(--product-ink); }
#product-content :is(.material-swatch,.original-color) { background: var(--product-paper); color: var(--product-ink); border: 1px solid var(--product-line); }
#product-content :is(.material-swatch,.original-color)[aria-pressed=true] { background: var(--product-selected); border-color: var(--product-link); box-shadow: inset 0 0 0 1px var(--product-link); }
#product-content :is(.material-swatch,.original-color):hover { border-color: var(--product-link); }
#product-content :is(summary,button,a):focus-visible { outline: 2px solid var(--product-link); outline-offset: -2px; }
.picked-swatch { display: inline-block; width: 20px; height: 20px; margin-inline: 4px 8px; vertical-align: middle; border-radius: 50%; border: 1px solid #8b8880; }
#product-content .color-fieldset { margin: 0 12px; padding: 8px 0 4px; }
#product-content .product-palette .material-note { padding: 8px 12px 12px; }
#product-content .product-availability { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
#product-content .product-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
#product-content :is(.timing-question, .product-links button) { background: none; color: var(--product-link); border: 0; padding: 6px 0; text-decoration: underline; cursor: pointer; }
#product-content .detail-info a { color: var(--product-link); }
.dimension-ruler { display: flex; flex-wrap: wrap; justify-content: space-between; margin: 10px 0 0; color: var(--product-link); font-size: 12px; }
.dimension-ruler > small { width: 100%; margin-bottom: 4px; font-size: 12px; }
.dimension-ruler > div { width: 100%; height: 13px; border-inline-end: 1px solid currentColor; background: repeating-linear-gradient(to right,currentColor 0 1px,transparent 1px var(--mark)) left bottom / 100% 5px no-repeat; }
.dimension-ruler > div::before { content: ""; display: block; width: var(--extent); height: 5px; border-radius: 3px; background: currentColor; }
.product-actions {
  flex: none;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0 14px;
  padding: 10px clamp(16px, 3vw, 34px) max(10px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--product-line);
  background: var(--product-paper);
}
#product-content .product-share { min-height: 44px; padding: 4px; color: var(--product-link); background: transparent; border: 0; font-weight: 700; }
#product-content .detail-add { position: static; width: 100%; min-height: 46px; margin: 0; color: #fff; background: var(--product-action); border: 0; box-shadow: 0 3px 0 #592532; }
#product-content .detail-add:hover { box-shadow: 0 4px 0 #592532; }
#product-content .detail-add:active { box-shadow: 0 1px 0 #592532; }
.product-share-status { grid-column: 1 / -1; }
.product-share-status:not(:empty) { padding-top: 8px; }
.product-share-status textarea { display: block; width: 100%; }
@media (max-width: 760px) {
  #product-content { max-height: min(92vh, 92dvh); }
  .product-layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: "heading" "gallery" "information"; gap: 14px; padding: 16px; }
  #product-content .detail-gallery { position: static; }
  #product-content .detail-photo img { max-height: min(33dvh, 280px); }
  #product-content .photo-thumbs img { width: 40px; height: 40px; }
  #product-content .material-options { grid-template-columns: repeat(auto-fit,minmax(77px,1fr)); }
  #product-content .material-swatch > span { hyphens: auto; }
}

#product-content .product-key-facts {
  margin-top: .7rem;
  display: grid;
  gap: .35rem;
  color: var(--product-ink);
  font-size: .9rem;
  line-height: 1.4;
}
#product-content .product-key-facts p { margin: 0; color: inherit; }
.product-key-facts a { color: var(--product-link); width: fit-content; }
.product-key-measures { display:flex; flex-wrap:wrap; gap:.3rem 1rem; margin:0; }
.product-key-measures div { display:flex; gap:.28rem; }
.product-key-measures dd { margin:0; font-weight:700; }
.product-usage-note p { white-space:pre-line; overflow-wrap:anywhere; }
