/* Public pages read the administrator-saved framing style. No customer selector is rendered.
   The presentation is scoped to the native mockup states: Canvas is always untouched,
   while Framed and Unframed share the administrator's mat/no-mat choice. */
.product-page[data-framing-style="mat"] .auto-mockup.framed .mockup-art{padding:clamp(12px,2.2vw,24px);background:#fff}
.product-page[data-framing-style="mat"] .auto-mockup.unframed .mockup-art{padding:clamp(12px,2.2vw,24px);background:#fff}
.product-page[data-framing-style="no-mat"] .auto-mockup.framed .mockup-art{padding:0}
.product-page[data-framing-style="no-mat"] .auto-mockup.unframed .mockup-art{padding:0;background:transparent}
.product-page[data-framing-style="mat"] .auto-mockup.framed .mockup-art img,
.product-page[data-framing-style="mat"] .auto-mockup.unframed .mockup-art img,
.product-page[data-framing-style="no-mat"] .auto-mockup.framed .mockup-art img,
.product-page[data-framing-style="no-mat"] .auto-mockup.unframed .mockup-art img{display:block;width:100%;height:auto;object-fit:contain}

/* Homepage, collection, featured and recommended artwork cards. */
.product-card[data-framing-style="mat"] .product-card-original,
.product-card[data-framing-style="no-mat"] .product-card-original{
  box-sizing:border-box;
  max-width:100%;
  max-height:100%;
}
.product-card[data-framing-style="mat"] .product-card-original{background:#fff;padding:clamp(8px,2vw,18px);object-fit:contain}
.product-card[data-framing-style="no-mat"] .product-card-original{padding:0}
.product-card[data-framing-style="mat"] .product-card-hover .mockup-art{padding:clamp(12px,2.2vw,24px);background:#fff}
.product-card[data-framing-style="no-mat"] .product-card-hover .mockup-art{padding:0}

/* Art Finder recommendation cards: keep the shared card heights stable while
   the saved framing style changes only the inner presentation. */
.af-result[data-framing-style="mat"] .af-art-image,
.af-result[data-framing-style="no-mat"] .af-art-image{
  box-sizing:border-box;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}
.af-result[data-framing-style="mat"] .af-art-image{background:#fff;padding:18px}
.af-result[data-framing-style="mat"] .af-art-image img,
.af-result[data-framing-style="no-mat"] .af-art-image img{
  width:auto;
  height:auto;
  max-width:100%;
  max-height:100%;
  object-fit:contain;
  display:block;
}
.af-result[data-framing-style="no-mat"] .af-art-image{background:var(--soft);padding:0}

/* The secondary row has its own fixed presentation height at every breakpoint. */
.af-secondary-grid .af-result[data-framing-style="mat"] .af-art-image,
.af-secondary-grid .af-result[data-framing-style="no-mat"] .af-art-image{height:220px}
@media(max-width:600px){
  .af-results .af-secondary-grid .af-result[data-framing-style="mat"] .af-art-image,
  .af-results .af-secondary-grid .af-result[data-framing-style="no-mat"] .af-art-image{height:200px}
}
