/* Product detail uses the shared Wonder Aisle catalogue palette and shop data. */
body .product-detail {
  --product-ink: #123f47;
  --product-coral: #ff785b;
  --product-canvas: #f5f0e8;
  --product-soft: #fbf9f5;
  max-width: 1440px;
  margin-inline: auto;
  padding: clamp(.75rem, 2vw, 1.5rem);
  border-radius: 1.5rem;
  background: var(--product-canvas);
}

body .product-detail .product-shop-header { border: 0; }
body .product-detail .product-breadcrumb { margin-block: .15rem .8rem; }
body .product-detail .product-detail-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.25rem, 3vw, 3rem); align-items: start; }
body .product-detail .product-detail-media { display: grid; grid-template-columns: 4.75rem minmax(0, 1fr); grid-template-rows: auto; gap: .75rem 1rem; align-content: start; overflow: visible; border: 0; border-radius: 1.2rem; background: transparent; box-shadow: none; }
body .product-detail .product-featured-image { grid-column: 2; grid-row: 1; min-width: 0; overflow: hidden; border-radius: 1.2rem; background: #f8e7ee; }
body .product-detail .product-detail-media.no-thumbnails .product-featured-image,
body .product-detail .product-detail-media.no-thumbnails .product-image-placeholder { grid-column: 1 / -1; }
body .product-detail .product-image-open { min-height: 0; }
body .product-detail .product-featured-image img { width: 100%; height: min(54vw, 40rem); max-height: 40rem; aspect-ratio: 1 / 1; object-fit: contain; background: #f8e7ee; }
body .product-detail .product-gallery { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; gap: .65rem; max-height: min(40rem, 58vw); padding: 0; overflow-x: hidden; overflow-y: auto; border: 0; background: transparent; }
body .product-detail .product-gallery button { flex: 0 0 4.75rem; width: 4.75rem; height: 4.75rem; border: 2px solid transparent; border-radius: .85rem; background: #f8e7ee; }
body .product-detail .product-gallery button[aria-pressed="true"] { border-color: var(--product-ink); box-shadow: none; }
body .product-detail .product-gallery img { width: 100%; height: 100%; aspect-ratio: 1; object-fit: contain; background: transparent; }
body .product-detail .product-video { grid-column: 1 / -1; width: 100%; margin: .25rem 0 0; }
body .product-detail .product-detail-copy { display: flex; flex-direction: column; gap: .8rem; min-width: 0; padding: clamp(.25rem, 1vw, 1rem) 0; }
body .product-detail .product-detail-copy > * { min-width: 0; margin-block: 0; }
body .product-detail .product-detail-copy > h1 { margin: 0; color: var(--product-ink); font-size: clamp(2rem, 4vw, 3rem); line-height: 1.08; letter-spacing: -.035em; }
body .product-detail .product-detail-shop-name { color: #a31850; font-size: .8rem; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
body .product-detail .product-purchase-panel { position: static; display: flex; flex-direction: column; gap: .8rem; max-width: none; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
body .product-detail .product-purchase-panel .product-price { gap: .5rem; margin: 0; }
body .product-detail .product-price strong { color: var(--product-ink); font-size: clamp(2.2rem, 4.5vw, 3rem); }
body .product-detail .product-confidence { gap: .4rem 1rem; margin: 0; color: var(--product-ink); }
body .product-detail .product-confidence span:first-child { color: inherit; }
body .product-detail .product-actions { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: .7rem; margin: .4rem 0 0; }
body .product-detail .product-primary-cta { min-height: 3.5rem; justify-content: center; border: 0; border-radius: 999px; background: var(--product-coral); color: var(--product-ink); font-size: 1.05rem; font-weight: 850; }
body .product-detail .product-primary-cta:hover { background: #f26a4e; color: var(--product-ink); }
body .product-detail .product-save-form, body .product-detail .product-save-button { height: 100%; }
body .product-detail .product-save-button { min-height: 3.5rem; padding-inline: 1.2rem; border: 2px solid var(--product-ink); border-radius: 999px; background: #fff; color: var(--product-ink); }
body .product-detail .product-save-button.is-saved { background: var(--product-ink); color: #fff; }
body .product-detail .product-share { position: relative; align-self: center; color: var(--product-ink); }
body .product-detail .product-share .wa-icon--share::before { content: "\f1e0"; }
body .product-detail .product-share > summary { display: inline-flex; min-height: 2.9rem; align-items: center; justify-content: center; gap: .5rem; padding: .65rem 1rem; border: 2px solid var(--product-ink); border-radius: 999px; background: #fff; cursor: pointer; font-weight: 800; list-style: none; }
body .product-detail .product-share > summary::-webkit-details-marker { display: none; }
body .product-detail .product-share-menu { position: absolute; z-index: 5; top: calc(100% + .5rem); left: 0; display: grid; min-width: 12rem; gap: .2rem; padding: .45rem; border: 1px solid #ded8ce; border-radius: .9rem; background: #fff; box-shadow: 0 .6rem 1.6rem #123f4722; }
body .product-detail .product-share-menu a, body .product-detail .product-share-menu button { display: block; width: 100%; padding: .65rem .75rem; border: 0; border-radius: .55rem; background: transparent; color: var(--product-ink); font: inherit; text-align: left; text-decoration: none; cursor: pointer; }
body .product-detail .product-share-menu [hidden] { display: none; }
body .product-detail .product-share-menu :is(a, button):hover { background: var(--product-canvas); }
body .product-detail .product-share-status { margin: .25rem .75rem .4rem; color: #5b6062; font-size: .85rem; }
body .product-detail .product-purchase-note { color: #5b6062; text-align: left; }
body .product-detail .product-curation { padding-top: .9rem; border-top: 1px solid #e5dfd6; }
body .product-detail .product-curation h3 { margin: 0 0 .35rem; color: var(--product-ink); font-size: 1.15rem; }
body .product-detail .product-curation p, body .product-detail .product-description { margin: 0; line-height: 1.55; }
body .product-detail .verified-listing-facts { padding: .9rem 0 0; border: 0; border-top: 1px solid #e5dfd6; border-radius: 0; background: transparent; }
body .product-detail .verified-listing-facts > div:first-child { margin-bottom: .65rem; }
body .product-detail .verified-listing-facts dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr)); gap: .65rem; margin: 0; }
body .product-detail .verified-listing-facts dl > div { padding: .8rem; border-radius: .9rem; background: var(--product-soft); }
body .product-detail .verified-listing-facts dt { color: #606467; font-size: .78rem; }
body .product-detail .verified-listing-facts dd { margin: .15rem 0 0; font-weight: 800; }
body .product-detail .verified-listing-facts > p { margin: .6rem 0 0; font-size: .85rem; }
body .product-detail .product-facts { margin-top: .25rem; }
body .product-detail .listing-data-note { margin-top: .2rem; }
body .product-detail .related-products { margin-top: clamp(1.5rem, 3vw, 2.5rem); }
body .product-detail .related-products h2 { color: var(--product-ink); }
body .product-detail .related-product-grid { grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); }
body .product-detail .related-product-card { overflow: hidden; border-radius: 1rem; background: #fff; }
body .product-detail .related-product-card > a { text-decoration: none; }
body .product-detail .related-product-card img { aspect-ratio: 1; object-fit: contain; background: #f8e7ee; }
body .product-detail .affiliate-disclosure { margin-top: 1.5rem; }
body .product-detail :is(a, button, summary):focus-visible { outline: 3px solid #aa1753; outline-offset: 3px; }

@media (max-width: 800px) {
  body .product-detail { padding: .75rem; border-radius: 1rem; }
  body .product-detail .product-detail-grid { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  body .product-detail .product-detail-media { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto; gap: .65rem; }
  body .product-detail .product-featured-image { grid-column: 1; grid-row: 1; }
  body .product-detail .product-image-open { min-height: 0; }
  body .product-detail .product-featured-image img { height: min(92vw, 32rem); max-height: 32rem; }
  body .product-detail .product-gallery { grid-column: 1; grid-row: 2; flex-direction: row; max-height: none; overflow-x: auto; overflow-y: hidden; }
  body .product-detail .product-gallery button { flex-basis: 4.25rem; width: 4.25rem; height: 4.25rem; }
  body .product-detail .product-video { grid-column: 1; }
  body .product-detail .product-detail-copy { gap: .7rem; padding: .25rem 0; }
  body .product-detail .product-detail-copy > h1 { font-size: clamp(1.8rem, 8vw, 2.5rem); }
  body .product-detail .product-actions { grid-template-columns: minmax(0, 1fr); }
  body .product-detail .product-save-button { width: 100%; }
  body .product-detail .product-share { width: 100%; }
  body .product-detail .product-share > summary { width: 100%; }
}

@media (min-width: 801px) {
  body .product-detail .product-featured-image { aspect-ratio: 1 / 1; }
  body .product-detail .product-image-open,
  body .product-detail .product-featured-image img { width: 100%; height: 100%; max-height: none; }
  body .product-detail .product-featured-image img { aspect-ratio: auto; }
}

@media (prefers-reduced-motion: reduce) {
  body .product-detail *, body .product-detail *::before, body .product-detail *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
