html.pv-open { overflow: hidden; }
.product-card[data-product-id] { cursor: pointer; }
.product-card[data-product-id]:focus-visible { outline: 3px solid #166453; outline-offset: 3px; }
.product-view {
  --pv-ink: #152923; --pv-muted: #425c53; --pv-accent: #12634e; --pv-border: #dce6e1;
  position: fixed; inset: 0; margin: 0; padding: 0; border: 0; box-sizing: border-box;
  width: 100%; max-width: none; height: 100%; height: 100dvh; max-height: none;
  color: var(--pv-ink); background: #f7faf8; overflow: hidden;
}
.product-view[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.product-view [hidden] { display: none !important; }
.product-view::backdrop { background: #f7faf8; }
.product-view > header, .product-view > footer {
  background: #fff; padding-inline: max(12px, env(safe-area-inset-left)) max(12px, env(safe-area-inset-right));
}
.product-view > header {
  display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 8px;
  padding-top: max(8px, env(safe-area-inset-top)); padding-bottom: 8px; border-bottom: 1px solid var(--pv-border);
}
.pv-brand { display: flex; align-items: center; justify-content: center; gap: 8px; min-width: 0; font-weight: 700; font-size: .9rem; }
.pv-brand span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pv-brand img { width: 36px; height: 36px; object-fit: contain; flex: none; }
.product-view button, .product-view select, .pv-share-actions a {
  min-height: 44px; min-width: 44px; padding: 6px 10px; box-sizing: border-box; border: 1px solid var(--pv-border);
  border-radius: 10px; background: #fff; color: var(--pv-accent); font: inherit; font-size: .86rem; font-weight: 700;
}
.product-view button:disabled { opacity: .45; }
.product-view .pv-close { font-size: 1.5rem; padding: 0; }
.pv-scroll { overflow: auto; overscroll-behavior: contain; }
.pv-content { max-width: 780px; margin: auto; padding: 12px clamp(12px, 4vw, 28px) 26px; }
.pv-photo { margin: 0; display: grid; place-items: center; background: #edf3ef; border-radius: 16px; overflow: hidden; touch-action: pan-y pinch-zoom; }
.pv-photo img { width: 100%; height: clamp(180px, 43dvh, 540px); display: block; object-fit: contain; }
.pv-info { padding: 14px 2px; }
.pv-info h2 { margin: 0 0 6px; color: var(--pv-ink); font-size: clamp(1.3rem, 5vw, 2.2rem); line-height: 1.32; overflow-wrap: anywhere; }
.pv-description { color: var(--pv-muted); }
.pv-description p { margin: 3px 0; }
.pv-prices { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.pv-prices div { padding: 8px 12px; border: 1px solid var(--pv-border); border-radius: 10px; background: #fff; }
.pv-prices span { display: block; font-size: .78rem; color: var(--pv-muted); }
.pv-prices strong, .pv-prices b { color: var(--pv-accent); }
.pv-posters h3 { margin: 10px 0; font-size: 1rem; }
.pv-posters > div { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 10px; }
.pv-posters a { width: 138px; flex: none; padding: 8px; border-radius: 10px; background: white; color: var(--pv-accent); border: 1px solid var(--pv-border); }
.pv-posters img { width: 100%; height: 120px; object-fit: contain; display: block; }
.pv-posters span { display: block; padding-top: 5px; overflow-wrap: anywhere; }
.pv-share { margin-top: 12px; border-top: 1px solid var(--pv-border); }
.pv-share summary { padding: 13px 0; font-weight: 700; cursor: pointer; }
.pv-share-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.pv-share-actions a { display: inline-flex; align-items: center; }
.pv-url { width: 100%; box-sizing: border-box; padding: 9px; margin: 7px 0; font-size: 16px; }
.pv-qr { width: 176px; height: auto; display: block; }
.pv-download { display: inline-block; color: var(--pv-accent); padding: 10px 0; }
.product-view > footer { border-top: 1px solid var(--pv-border); padding-block: 7px max(7px, env(safe-area-inset-bottom)); }
.pv-nav, .pv-playback { display: flex; justify-content: space-between; align-items: center; gap: 8px; max-width: 720px; margin: auto; }
.pv-position { flex: none; font-variant-numeric: tabular-nums; font-size: .84rem; }
.pv-playback { margin-top: 5px; }
.pv-playback label { color: var(--pv-muted); font-size: .82rem; }
.product-view .pv-play, .product-view .pv-pause { background: var(--pv-accent); color: #fff; }
@media (min-width: 620px) {
  .product-view > footer { display: flex; justify-content: center; gap: 20px; }
  .pv-nav, .pv-playback { margin: 0; }
}

