.template-catalog-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.template-theme-card{min-width:0;overflow:hidden;display:flex;flex-direction:column;border:1px solid var(--line);border-radius:12px;background:var(--surface,#fff)}
.template-theme-preview{display:block;position:relative;aspect-ratio:8/5;overflow:hidden;background:#f1f4f3;border-bottom:1px solid var(--line);color:var(--heading)}
.template-theme-preview iframe{position:absolute;inset:0;width:400%;height:400%;max-width:none;border:0;transform:scale(.25);transform-origin:top left;pointer-events:none}
.template-theme-preview>span{position:absolute;right:12px;bottom:12px;border:1px solid var(--line);border-radius:30px;padding:6px 12px;background:#fff;color:#173c4b;font-size:12px;font-weight:600;box-shadow:0 2px 10px #173c4b12}
.template-theme-copy{padding:24px;display:flex;flex-direction:column;gap:12px;flex:1}
.template-theme-copy .eyebrow,.template-theme-copy h3,.template-theme-copy p{margin:0}
.template-theme-copy h3{font-size:1.55rem;line-height:1.2}.template-theme-copy h3 a{color:inherit;text-decoration:none}
.template-theme-copy>p:not(.eyebrow){font-size:15px;line-height:1.65;color:var(--body)}
.template-theme-copy .button{margin-top:auto;align-self:flex-start}
.template-theme-card:focus-within{border-color:var(--blue)}
.template-theme-card a:focus-visible{outline:3px solid var(--blue);outline-offset:-3px}
.template-theme-copy h3 a:hover{text-decoration:underline;text-underline-offset:4px}
@media(max-width:1100px){.template-catalog-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.template-catalog-grid{grid-template-columns:minmax(0,1fr)}.template-theme-copy{padding:20px}}

.template-catalog-layout{display:grid;grid-template-columns:230px minmax(0,1fr);gap:36px;align-items:start;scroll-margin-top:110px}
.template-catalog-sidebar{position:sticky;top:110px;max-height:calc(100dvh - 135px);overflow:auto;padding:20px;border:1px solid var(--line);border-radius:12px;background:var(--surface,#fff)}
.template-catalog-sidebar>.eyebrow{margin:0 0 14px}.template-catalog-sidebar nav{display:grid;gap:6px}
.template-catalog-sidebar a{display:flex;gap:10px;align-items:center;justify-content:space-between;padding:12px;border-radius:7px;color:var(--heading);text-decoration:none;font-size:14px;line-height:1.4}
.template-catalog-sidebar a span{font-size:12px;opacity:.75}.template-catalog-sidebar a:hover{background:var(--surface-soft,#f1f5f8)}
.template-catalog-sidebar a[aria-current=true]{background:var(--blue,#245bb0);color:#fff;font-weight:650}
.template-catalog-sidebar a:focus-visible{outline:3px solid var(--blue,#245bb0);outline-offset:2px}
.template-catalog-results{min-width:0}.template-catalog-category{padding:0 0 48px;margin:0;scroll-margin-top:110px}.template-catalog-category[hidden]{display:none!important}
.template-catalog-status{font-size:14px;color:var(--body);margin:0 0 16px}.template-catalog-status:empty{display:none}
.template-catalog-layout .template-catalog-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
@media(min-width:1600px){.template-catalog-layout .template-catalog-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:900px){.template-catalog-layout{grid-template-columns:minmax(0,1fr);gap:24px}.template-catalog-sidebar{position:static;max-height:none;padding:16px}.template-catalog-sidebar nav{display:flex;overflow-x:auto;padding:3px;gap:8px}.template-catalog-sidebar a{flex:0 0 auto;white-space:nowrap}.template-catalog-sidebar>.eyebrow{margin-bottom:8px}}
@media(max-width:620px){.template-catalog-layout .template-catalog-grid{grid-template-columns:minmax(0,1fr)}}

.template-theme-meta{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.template-theme-meta>.eyebrow{flex:1;min-width:100px}
.template-palette-picker{display:flex;align-items:center;gap:2px;margin-left:auto}
.template-palette-picker .template-palette-dot{display:grid;place-items:center;width:30px;height:34px;min-height:34px;padding:4px;background:transparent;border:0;border-radius:50%;cursor:pointer;flex-shrink:0}
.template-palette-dot>span{display:block;width:18px;height:18px;border-radius:50%;background:var(--swatch);box-shadow:0 0 0 1px #00000015}
.template-palette-dot[aria-pressed=true]>span{outline:2px solid var(--swatch);outline-offset:3px}
.template-palette-picker .template-palette-dot:focus-visible{outline:2px solid var(--blue,#245bb0);outline-offset:1px}
@media(pointer:coarse){.template-palette-picker .template-palette-dot{width:34px;height:44px}}
