/* One complete garment or on-pet view per warm 3:4 canvas. */
.pp-catalog-presentation { width: 100%; color: var(--pp-ink, #243e35); }
.pp-catalog-presentation, .pp-catalog-presentation * { box-sizing: border-box; }
.pp-catalog-presentation [hidden] { display: none !important; }
.pp-catalog-presentation .pp-catalog-frame,
.pp-catalog-dialog-stage {
  position: relative; display: block; width: 100%; aspect-ratio: 3 / 4;
  overflow: hidden; isolation: isolate; padding: 0; margin: 0; min-height: 0;
  border: 1px solid #e6e0d6; border-radius: 10px; background: #f1eee7;
  color: inherit; line-height: 0; box-shadow: none; text-decoration: none;
  transform: none; cursor: pointer;
}
.pp-catalog-presentation--product .pp-catalog-frame { cursor: zoom-in; }
.pp-catalog-plane {
  position: absolute; inset: 0; display: block; overflow: hidden;
  opacity: 1; transition: opacity 160ms ease-out; pointer-events: none;
}
.pp-catalog-plane--worn { opacity: 0; }
.pp-catalog-presentation[data-view="worn"] .pp-catalog-frame > .pp-catalog-plane--main { opacity: 0; }
.pp-catalog-presentation[data-view="worn"] .pp-catalog-frame > .pp-catalog-plane--worn { opacity: 1; }
.pp-catalog-plane .pp-catalog-image { position: absolute; inset: 4%; display: block; }
.pp-catalog-plane .pp-catalog-image > img {
  position: absolute; inset: 0; display: block; width: 100%; height: 100%;
  max-width: min(100%, var(--pp-source-width, 100%)); max-height: min(100%, var(--pp-source-height, 100%)); margin: auto; padding: 0; border-radius: 0;
  object-fit: contain; object-position: center; transform: none;
}
.pp-catalog-plane .pp-catalog-image--spread {
  inset: 0; width: var(--pp-crop-width, 100%); height: var(--pp-crop-height, 100%);
  margin: auto; overflow: hidden;
}
.pp-catalog-plane .pp-catalog-image--spread > img { width: 200%; height: 100%; max-width: none; max-height: none; margin: 0; object-fit: fill; }
.pp-catalog-plane .pp-catalog-image--right > img { left: -100%; right: auto; }
.pp-catalog-presentation .pp-catalog-viewbar {
  display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center;
  justify-content: space-between; min-height: 52px; padding-top: 8px;
}
.pp-catalog-presentation .pp-catalog-controls { display: inline-flex; padding: 2px; border: 1px solid #dcd8ce; border-radius: 30px; background: #f4f1ea; }
.pp-catalog-presentation .pp-catalog-controls > button {
  min-width: 65px; min-height: 40px; margin: 0; padding: 8px 12px;
  border: 0; border-radius: 24px; background: transparent; color: #647168;
  font: 700 11px/1.3 'PP Nunito', sans-serif; box-shadow: none; cursor: pointer;
  transition: background 160ms ease-out, color 160ms ease-out; transform: none;
}
.pp-catalog-presentation .pp-catalog-controls > button[aria-pressed="true"] { background: #fffdf8; color: #263e32; box-shadow: 0 1px 3px #23382c12; }
.pp-catalog-presentation .pp-catalog-controls > button:disabled { opacity: .5; cursor: default; }
.pp-catalog-note, .pp-catalog-reference, .pp-catalog-error { color: #6f746c; font: 400 10px/1.4 'PP Nunito', sans-serif; }
.pp-catalog-presentation :is(a, button):focus-visible { outline: 3px solid #a4523c; outline-offset: 3px; }
.pp-catalog-presentation .pp-catalog-frame:focus-visible { outline-offset: -4px; }
.pp-catalog-presentation .pp-catalog-dialog {
  width: min(700px, calc(100% - 32px)); max-width: none; max-height: 94dvh;
  padding: 48px 18px 20px; border: 0; border-radius: 14px; margin: auto;
  background: #faf8f3; color: #243e35; overflow: auto;
}
.pp-catalog-dialog::backdrop { background: #17261fba; }
.pp-catalog-presentation .pp-catalog-dialog-close {
  position: absolute; top: 2px; right: 4px; min-width: 44px; min-height: 44px;
  padding: 0; border: 0; background: transparent; color: inherit; font-size: 28px;
}
.pp-catalog-dialog-stage { width: min(100%, 57dvh); margin: auto; cursor: default; }
.pp-catalog-dialog-stage > .pp-catalog-plane { opacity: 1; }
.pp-catalog-dialog p { margin: 14px auto 0; max-width: 48ch; text-align: center; font-size: 12px; line-height: 1.6; }
@media (max-width: 680px) {
  .pp-catalog-presentation .pp-catalog-frame { border-radius: 8px; }
  .pp-catalog-presentation .pp-catalog-viewbar { display: block; min-height: 79px; padding-top: 8px; }
  .pp-catalog-presentation .pp-catalog-controls { display: flex; width: 100%; }
  .pp-catalog-presentation .pp-catalog-controls > button { flex: 1; min-width: 0; min-height: 44px; padding: 8px 5px; font-size: 10px; }
  .pp-catalog-note, .pp-catalog-error { display: block; margin-top: 5px; padding-inline: 3px; }
  .pp-catalog-reference { display: flex; align-items: center; min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .pp-catalog-presentation .pp-catalog-plane,
  .pp-catalog-presentation .pp-catalog-controls > button { transition: none; }
}
