#template-collections { padding:clamp(40px,6vw,76px) 0; background:var(--background); }
#template-collections .pws-collection + .pws-collection { margin-top:54px; padding-top:42px; border-top:1px solid var(--border); }
#template-collections .pws-collection-heading { display:flex; align-items:center; gap:16px; margin-bottom:24px; }
#template-collections .pws-collection-icon { display:grid; place-items:center; width:52px; height:52px; flex-shrink:0; border-radius:16px; color:var(--primary); background:rgba(109,40,217,.07); }
#template-collections svg { width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; flex-shrink:0; }
#template-collections .pws-collection-icon svg { width:26px; height:26px; }
#template-collections h2 { margin:0 0 7px; font-size:clamp(23px,2.5vw,29px); color:var(--text-main); line-height:1.3; letter-spacing:-.025em; }
#template-collections .pws-collection-heading p { margin:0; color:var(--text-secondary); font-size:14px; line-height:1.65; }
#template-collections .pws-collection-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:22px; }
#template-collections .pws-collection-card { min-width:0; background:var(--card-background); border:1px solid var(--border); border-radius:22px; overflow:hidden; box-shadow:0 3px 10px rgba(35,15,70,.025); transition:transform .25s,border-color .25s,box-shadow .25s; }
#template-collections .pws-collection-card:hover { transform:translateY(-4px); border-color:var(--primary); box-shadow:0 12px 28px rgba(109,40,217,.1); }
#template-collections .pws-collection-card a { display:flex; flex-direction:column; height:100%; color:var(--text-main); }
#template-collections .pws-collection-preview { position:relative; aspect-ratio:1200/630; background:var(--background-2); flex-shrink:0; border-bottom:1px solid var(--border); }
#template-collections .pws-collection-preview img { width:100%; height:100%; object-fit:contain; object-position:center; }
#template-collections .pws-collection-placeholder { display:grid; place-items:center; height:100%; color:var(--text-secondary); font-size:14px; }
#template-collections .pws-collection-score { display:flex; align-items:center; gap:6px; position:absolute; left:12px; bottom:12px; max-width:calc(100% - 24px); padding:7px 10px; background:var(--card-background); color:var(--text-main); border:1px solid var(--border); border-radius:9px; box-shadow:0 3px 12px rgba(0,0,0,.1); font-size:11px; }
#template-collections .pws-collection-score svg { width:15px; height:15px; color:var(--primary); }
#template-collections .pws-collection-score strong { color:var(--primary); font-size:14px; }
#template-collections .pws-collection-score small { font-size:10px; font-weight:400; margin-left:2px; }
#template-collections .pws-collection-body { display:flex; flex-direction:column; flex:1; padding:22px; }
#template-collections .pws-collection-category { color:var(--primary); font-size:12px; font-weight:750; line-height:1.5; margin-bottom:10px; }
#template-collections h3 { margin:0 0 8px; font-size:19px; line-height:1.45; font-weight:750; letter-spacing:-.015em; overflow-wrap:anywhere; }
#template-collections .pws-collection-author { margin:0 0 20px; color:var(--text-secondary); font-size:14px; line-height:1.5; }
#template-collections .pws-collection-updated { margin:0 0 18px; font-size:12px; color:var(--text-secondary); }
#template-collections .pws-collection-commerce { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px; margin-top:auto; padding-top:16px; border-top:1px solid var(--border); }
#template-collections .pws-collection-commerce > strong { font-size:22px; color:var(--primary); line-height:1.4; }
#template-collections .pws-collection-commerce > span { display:flex; align-items:center; gap:6px; color:var(--text-secondary); font-size:12px; }
#template-collections .pws-collection-commerce svg { width:16px; height:16px; color:var(--primary); }
#template-collections .pws-collection-details { display:flex; align-items:center; justify-content:space-between; gap:10px; min-height:44px; padding:11px 14px; margin-top:18px; color:var(--primary); background:var(--background-2); border:1px solid var(--border); border-radius:10px; font-size:13px; font-weight:700; }
#template-collections a:focus-visible { outline:3px solid var(--primary); outline-offset:-3px; border-radius:20px; }
#template-collections .pws-collection-empty { color:var(--text-secondary); background:var(--background-2); border:1px solid var(--border); border-radius:16px; padding:24px; font-size:14px; }
@media (max-width:760px) { #template-collections .pws-collection-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; } #template-collections .pws-collection-heading { align-items:flex-start; gap:12px; } #template-collections .pws-collection-body { padding:18px; } }
@media (max-width:480px) { #template-collections .pws-collection-grid { grid-template-columns:minmax(0,1fr); gap:22px; } #template-collections .pws-collection-icon { width:40px; height:40px; border-radius:12px; } #template-collections h2 { font-size:22px; } #template-collections .pws-collection-heading p { font-size:13px; } #template-collections .pws-collection-body { padding:20px; } }
@media (prefers-reduced-motion:reduce) { #template-collections .pws-collection-card { transition:none; } #template-collections .pws-collection-card:hover { transform:none; } }
