/* Collection-only responsive layout. Product prices, media and ordering are unchanged. */
main:has(> #products) { max-width: 1440px; padding-inline: clamp(16px, 3vw, 40px); }
#products.product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; align-items: stretch; width: 100%; }
#products .coloring-pair { display: contents; }
#products .coloring-pair[hidden] { display: none !important; }
#products .category { min-width: 0; max-width: 100%; padding: 22px; overflow: hidden; display: flex; flex-direction: column; align-items: stretch; }
#products .category > * { min-width: 0; max-width: 100%; }
#products .category > h2 { overflow-wrap: anywhere; }
#products .category > p { overflow-wrap: anywhere; }
#products .category > .product-actions { margin-top: auto; padding-top: 12px; }
#products .category > .combined-option { width: 100%; }
#products .category select { min-width: 0; max-width: 100%; }
#products .category > img, #products .category > .feather-product { display: block; width: 100%; height: 260px; object-fit: contain; margin: 0 auto 16px; }
#products .category > .coming-soon { height: 260px; margin-bottom: 16px; }
#products .category > .keychain-motion { width: 100%; height: 260px; margin: 0 auto 16px; }
#products .keychain-motion .keychain-float { max-width: 100%; max-height: 238px; }
#products .category > .floating-product-display { width: 100%; height: 260px; display: grid; place-items: center; margin: 0 auto 16px; }
#products .category .floating-product-display img { width: 100%; height: 100%; max-height: 246px; object-fit: contain; }
#products .category .floating-product-display::after { mask-size: contain; -webkit-mask-size: contain; }
#products .category > .scratch-demo { width: 100%; height: 276px; display: flex; flex-direction: column; justify-content: center; margin: 0 auto; }
#products .scratch-demo-stage { width: 100%; height: 246px; min-width: 0; padding: 8px 10px; }
#products .scratch-demo-float { width: min(148px, 100%); max-width: 100%; height: auto; aspect-ratio: 2 / 3; scale: 1; }
#products .scratch-demo-hint { margin: 3px auto 4px; }
#products .scratch-demo-spark-one { right: -8px; }
#products .scratch-demo-spark-two { left: -8px; }
#products .category > .passport-display-glow, #products .category > .coloring-showcase { height: 260px; margin: 0 auto 16px; }
#products .category > .led-fan-preview { width: 100%; }
#products .led-fan-frame { width: min(100%, 136px); }
#products .category > .gold-card-display, #products .category > .newspaper-display, #products .category > .signs-display { max-width: 100%; }
@media (max-width: 1199px) { #products.product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
@media (max-width: 899px) { #products.product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } #products .category { padding: 18px; } }
@media (max-width: 540px) { #products.product-grid { grid-template-columns: minmax(0, 1fr); } #products .category { padding: 20px; } }
