/* Shared product swatch dimensions. Original shade photos and crop profiles stay intact. */
:root{--catalog-swatch-size:140px;--catalog-preview-size:240px}
.match-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,176px),1fr))}
.match-product .match-swatch,
.glitter-card .glitter-swatch-disk,
.shade-card .shade-visual .powder-round-swatch{
 box-sizing:border-box;width:var(--catalog-swatch-size)!important;height:var(--catalog-swatch-size)!important;
 min-width:var(--catalog-swatch-size);max-width:none;min-height:var(--catalog-swatch-size);max-height:none;
 aspect-ratio:1;flex:none;border-radius:50%;
}
/* Leave enough room for both the shade and jar without squeezing the shade on tablets. */
[data-powder-collection="dip"] .shade-grid{
 grid-template-columns:repeat(auto-fit,minmax(min(100%,310px),1fr));
}
[data-powder-collection="dip"] .shade-visual{
 grid-template-columns:calc(var(--catalog-swatch-size) + 12px) minmax(0,1fr);
}
.match-preview-disk,.glitter-preview-disk,#dialog-swatch .powder-round-swatch{
 box-sizing:border-box;width:var(--catalog-preview-size);height:var(--catalog-preview-size);
 flex:none;aspect-ratio:1;border-radius:50%;
}
@media(max-width:480px){
 :root{--catalog-swatch-size:112px;--catalog-preview-size:220px}
 .match-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,140px),1fr))}
}
/* Compact previews still fit when a phone is held sideways. */
@media(max-height:540px){
 :root{--catalog-preview-size:145px}
}
