/* A single storefront gallery, using the same art and purchase controls as each collection. */
.shop-modal .shop-featured-library{margin:28px 0 8px;padding:26px;border:1px solid var(--border);border-radius:26px;background:radial-gradient(ellipse at 0 0,color-mix(in srgb,#c9b8e7 17%,transparent),transparent 65%),var(--surface-solid);scroll-margin-top:16px;isolation:isolate}
.shop-library-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px}
.shop-modal .shop-library-heading h2{font-size:30px;font-weight:700;letter-spacing:-.045em;margin:5px 0 6px;line-height:1.1}
.shop-library-controls{display:flex;gap:7px;flex-shrink:0}
.shop-library-controls button{display:grid;place-items:center;width:38px;height:38px;padding:0;border:1px solid var(--border);border-radius:12px;background:var(--surface-solid);color:var(--text);box-shadow:0 2px 3px #17203306;cursor:pointer;transition:transform .18s,background .18s}
.shop-library-controls button svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.shop-library-controls button:hover:not(:disabled){transform:translateY(-2px);background:var(--surface-soft)}
.shop-library-controls button:disabled{opacity:.35;cursor:default}
.shop-library-filters{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 20px}
.shop-library-filters button{font:550 12px/1.3 var(--site-font-family,Inter,sans-serif);border:1px solid transparent;border-radius:10px;padding:8px 13px;background:transparent;color:var(--muted);cursor:pointer;transition:background .18s,color .18s}
.shop-library-filters button:hover{background:var(--surface-soft);color:var(--text)}
.shop-library-filters button[aria-pressed=true]{background:color-mix(in srgb,#baa1e0 19%,var(--surface-solid));border-color:color-mix(in srgb,#baa1e0 35%,var(--border));color:var(--text)}

.shop-library-layout{display:grid;grid-template-columns:minmax(270px,1.65fr) minmax(0,4fr);gap:18px;align-items:stretch}
.shop-library-showcase{min-width:0;display:flex}
.shop-library-shelves{display:flex;flex-direction:column;gap:14px;min-width:0}
.shop-library-medium{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.shop-library-medium:empty,.shop-library-stage:empty{display:none}
.shop-library-stage{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;align-items:stretch}
.shop-modal .shop-library-card{position:relative;display:flex;flex-direction:column;min-width:0;border:1px solid color-mix(in srgb,var(--library-accent) 25%,var(--border));border-radius:16px;background:var(--surface-solid);box-shadow:0 4px 14px #18253b06;cursor:pointer;animation:shop-library-arrive .4s cubic-bezier(.2,.7,.3,1) backwards;animation-delay:calc(var(--library-order)*18ms);transition:transform .23s,box-shadow .23s}
.shop-modal .shop-library-card:hover{transform:translateY(-4px);box-shadow:0 12px 24px color-mix(in srgb,var(--library-accent) 18%,transparent)}
.shop-modal .shop-library-card .shop-product__preview{height:115px;min-height:115px;flex:none;border-bottom:1px solid color-mix(in srgb,var(--library-accent) 23%,var(--border))}
.shop-modal .shop-library-card .shop-product__body{padding:12px;gap:10px;flex:1;display:flex;flex-wrap:wrap;align-content:space-between;align-items:flex-end;background:linear-gradient(155deg,color-mix(in srgb,var(--library-accent) 7%,var(--surface-solid)),var(--surface-solid))}
.shop-library-card .shop-product__body>div{width:100%;min-width:0}
.shop-modal .shop-library-card h3{font-size:16px;line-height:1.2;margin:4px 0 0;letter-spacing:-.025em}
.shop-modal .shop-library-card .shop-product__type{font-size:8px;letter-spacing:.06em}
.shop-modal .shop-library-card .shop-product__body p{display:none}
.shop-modal .shop-library-card .shop-buy{margin:0;min-width:0;height:30px;min-height:30px;padding:0 9px 0 5px;font-size:11px;border-radius:9px;box-shadow:0 2px 4px #8860160a}
.shop-modal .shop-library-card .shop-coin-icon--small{width:22px;height:22px}
.shop-library-card .shop-product__body::after{content:'View →';font-size:10px;font-weight:600;color:var(--muted);margin-left:auto;align-self:center}
.shop-modal .shop-library-card .shop-product__preview--planner,.shop-modal .shop-library-card .shop-product__preview--frame{display:flex;align-items:center;justify-content:center}
.shop-modal .shop-library-card .planner-skin-preview{flex:none;margin:0;scale:.55;transform:none}
.shop-modal .shop-library-card:hover .planner-skin-preview{transform:translateY(-4px) rotate(-2deg)}
.shop-modal .shop-library-card .profile-frame-preview{flex:none;scale:.78}
.shop-modal .shop-library-card .shop-product__preview--tile-art>.tile-skin-art{scale:.82}
.shop-library-card .shop-product__preview--pastel i{scale:.65}
.shop-library-card .shop-product__preview--emoji span{scale:.78}
.shop-library-card .shop-product__preview--programmer{padding:20px 14px}
.shop-library-card .shop-product__preview--programmer code{font-size:32px}
.shop-library-card .shop-product__preview--programmer span{font-size:9px}
.shop-library-card .shop-product__preview--cursors img{max-width:29%;object-fit:contain}
.shop-featured-library>footer{display:flex;justify-content:flex-end;gap:15px;margin-top:18px;font-size:11px;line-height:1.5;color:var(--muted)}
.shop-library-count{white-space:nowrap;font-variant-numeric:tabular-nums}
.shop-library-empty{padding:24px;text-align:center;font-size:13px;color:var(--muted)}
.shop-modal .is-global-searching .shop-featured-library{display:none}
.shop-featured-library button:focus-visible,.shop-library-card:focus-visible{outline:2px solid #9480bf;outline-offset:3px}
@keyframes shop-library-arrive{from{opacity:0;transform:translateY(13px) scale(.985)}to{opacity:1;transform:none}}

/* The showcase retains a full description and large art; the adjacent grid stays compact. */
.shop-modal .shop-library-showcase .shop-library-card{width:100%;border-radius:20px;animation-delay:0s}
.shop-modal .shop-library-card--showcase .shop-product__preview{height:390px;min-height:390px}
.shop-modal .shop-library-card--showcase .shop-product__body{padding:24px;gap:20px;align-content:center}
.shop-modal .shop-library-card--showcase h3{font-size:28px;line-height:1.15;margin:8px 0 12px}
.shop-modal .shop-library-card--showcase .shop-product__type{font-size:10px}
.shop-modal .shop-library-card--showcase .shop-product__body p{display:block;font-size:14px;line-height:1.65;margin:0}
.shop-modal .shop-library-card--showcase .shop-buy{height:42px;min-height:42px;padding:0 14px 0 9px;font-size:14px;border-radius:12px}
.shop-modal .shop-library-card--showcase .shop-coin-icon--small{width:28px;height:28px}
.shop-library-card--showcase .shop-product__body::after{font-size:12px}
.shop-modal .shop-library-card--showcase .planner-skin-preview{scale:1.65}
.shop-modal .shop-library-card--showcase .profile-frame-preview{scale:1.15}
.shop-modal .shop-library-card--showcase .shop-product__preview--tile-art>.tile-skin-art{scale:1.65}
.shop-library-card--showcase .shop-product__preview--pastel i{scale:1}
.shop-library-card--showcase .shop-product__preview--emoji span{scale:1.3}
.shop-library-card--showcase .shop-product__preview--programmer{padding:40px 24px}
.shop-library-card--showcase .shop-product__preview--programmer code{font-size:48px}
.shop-library-card--showcase .shop-product__preview--programmer span{font-size:12px}
.shop-featured-library.is-single-product .shop-library-layout{grid-template-columns:minmax(0,1fr)}
.shop-featured-library.is-single-product .shop-library-shelves{display:none}
.shop-modal .shop-library-card--medium .shop-product__preview{height:170px;min-height:170px}
.shop-modal .shop-library-card--medium .shop-product__body{padding:14px;gap:12px}
.shop-modal .shop-library-card--medium h3{font-size:19px}
.shop-modal .shop-library-card--medium .shop-product__type{font-size:9px}
.shop-modal .shop-library-card--medium .planner-skin-preview{scale:.8}
.shop-modal .shop-library-card--medium .profile-frame-preview{scale:.95}
.shop-modal .shop-library-card--medium .shop-product__preview--tile-art>.tile-skin-art{scale:1}
.shop-library-card--medium .shop-product__preview--pastel i,.shop-library-card--medium .shop-product__preview--emoji span{scale:.9}
@media(max-width:1200px){.shop-library-layout{grid-template-columns:minmax(240px,1.2fr) minmax(0,3fr)}.shop-library-stage{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.shop-modal .shop-library-card--showcase .shop-product__body{padding:18px}}
@media(max-width:950px){.shop-library-layout{grid-template-columns:minmax(0,1fr)}.shop-modal .shop-library-showcase .shop-library-card{display:grid;grid-template-columns:1fr 1fr}.shop-modal .shop-library-card--showcase .shop-product__preview{height:300px;min-height:300px;border-bottom:0}.shop-modal .shop-library-card--showcase .planner-skin-preview{scale:1.35}.shop-modal .shop-library-card--showcase h3{font-size:24px}.shop-modal .shop-library-card--showcase .shop-product__body p{font-size:12px}.shop-modal .shop-library-card h3{font-size:15px}.shop-modal .shop-library-card--showcase h3{font-size:24px}}
@media(max-width:650px){.shop-library-medium{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.shop-library-medium>.shop-library-card:last-child:nth-child(3){grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;align-items:stretch}.shop-library-stage{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.shop-modal .shop-featured-library{padding:12px;border-radius:20px;margin-top:20px}.shop-modal .shop-library-heading h2{font-size:25px}.shop-library-heading{align-items:center;gap:10px}.shop-library-controls{gap:4px}.shop-library-controls button{width:30px;height:32px;border-radius:9px}.shop-library-filters{gap:4px;margin-bottom:14px}.shop-library-filters button{padding:7px 10px;font-size:11px}.shop-modal .shop-library-card .shop-product__preview{height:125px;min-height:125px}.shop-modal .shop-library-card .shop-product__body{padding:9px;gap:9px}.shop-modal .shop-library-card h3{font-size:14px}.shop-modal .shop-library-card .shop-product__type{font-size:7px}.shop-library-card .shop-product__body::after{display:none}.shop-modal .shop-library-card .planner-skin-preview{scale:.55}.shop-modal .shop-library-card .profile-frame-preview{scale:.6}.shop-library-card .shop-product__preview--emoji span{scale:.6}.shop-library-card .shop-product__preview--pastel i{scale:.5}.shop-modal .shop-library-showcase .shop-library-card{display:flex}.shop-modal .shop-library-card--showcase .shop-product__preview{height:250px;min-height:250px}.shop-modal .shop-library-card--showcase .shop-product__body{padding:18px;gap:16px}.shop-modal .shop-library-card--showcase h3{font-size:24px}.shop-modal .shop-library-card--showcase .shop-product__type{font-size:9px}.shop-modal .shop-library-card--showcase .planner-skin-preview{scale:1.15}.shop-modal .shop-library-card--showcase .profile-frame-preview{scale:1}.shop-library-card--showcase .shop-product__preview--emoji span,.shop-library-card--showcase .shop-product__preview--pastel i{scale:1}}
@media(prefers-reduced-motion:reduce){.shop-modal .shop-library-card{animation:none!important;transition:none!important}.shop-library-controls button{transition:none}}
