/* Product page additions to rk.css (docs/04 §F). Loaded on product pages only (inc/assets.php).
   rk.css already has .pdp, .gallery, .buy, .opt, .sw, .size, .segs, .stock, .deliv, .assure, .details, .specs,
   .docs, .acc, .fbt and .sticky-buy. */

/* Each photo is a button that opens the zoom viewer (covers the figure; the image stays the visual). */
.gallery__zoom { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; cursor: zoom-in; border-radius: var(--radius-media); }
.gallery__zoom:focus-visible { outline-offset: -4px; }
.gallery__tag, .gallery__play { pointer-events: none; }

/* POR: Ask for price + wishlist, no stepper or Buy now. */
.buy__actions--por { grid-template-columns: minmax(0, 1fr) auto; }

/* About text when the description has no list of points. */
.details__text { display: grid; gap: var(--space-4); font-size: var(--fs-sm); color: var(--color-ink-2); }

/* Zoom viewer (dialog opened through @rk/core open('zoom')). */
.zoom { position: fixed; inset: 0; z-index: 75; display: grid; grid-template-rows: auto minmax(0, 1fr); background: var(--color-ink); color: var(--color-on-ink); opacity: 0; transition: opacity var(--dur) var(--ease); }
.zoom.is-open { opacity: 1; }
.zoom__bar { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding: var(--space-3) var(--space-4) var(--space-3) var(--space-6); }
.zoom__count { font-size: var(--fs-sm); color: var(--color-on-ink-2); font-variant-numeric: tabular-nums; }
.zoom__stage { display: grid; place-items: center; min-height: 0; padding: 0 var(--space-16) var(--space-8); }
.zoom__stage img { width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; }
.zoom__nav { position: absolute; top: 50%; transform: translateY(-50%); }
.zoom__nav--prev { left: var(--space-4); }
.zoom__nav--prev .icon { transform: scaleX(-1); }
.zoom__nav--next { right: var(--space-4); }

@media (max-width: 767px) {
  .zoom__stage { padding: 0 0 var(--space-16); }
  .zoom__nav { top: auto; bottom: var(--space-4); transform: none; }
}

/* Delivery check, not served (rk-pdp.html): "WhatsApp us" link. */
.deliv__res a { text-decoration: underline; }

/* Quantity stopped at the stock (docs/04 §B stepper, ST-003 stock.cap). */
.buy__cap { font-size: var(--fs-xs); color: var(--color-alert); }

/* Former inline styles (docs/10 §1). */
.crumbs-wrap { padding-top: var(--space-6); }
.acc--plain { display: block; }
.acc--plain .faq__list { border-top: 0; }
.pdp-sec--last,
section.pdp-sec:last-of-type { padding-bottom: var(--space-section); } /* The last section (FAQ, else related or the bundle) keeps space above the footer. */
.fbt__title { margin-bottom: var(--space-8); }
