/* Faz 40.15J-C1 — içe aktarılan temaların müşteri vitrini (ana sayfa "Öne çıkan temalar" + /temalar/ kataloğu).
   Faz 40.15J-E — "İncele" penceresi kaldırıldı (ürün detay sayfası: theme-detail.css); kapak görselleri srcset ile keskin sunulur.
   Mevcut ana sayfa tema kartlarının (.theme-item) ve /temalar/ filtrelerinin (.catalog-filter) görsel dilini izler. */
.tsf-featured{margin:6px 0 46px}
.tsf-featured[hidden]{display:none}
.tsf-featured-head{display:flex;align-items:baseline;justify-content:space-between;gap:16px;margin-bottom:18px;flex-wrap:wrap}
.tsf-featured-head .kicker{margin:0}
.tsf-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.tsf-card{background:#fff;border:1px solid #dbe1de;border-radius:14px;overflow:hidden;display:flex;flex-direction:column;min-width:0;transition:transform .3s,box-shadow .3s}
.tsf-card:hover{transform:translateY(-6px);box-shadow:0 20px 45px rgba(19,37,31,.11)}
.tsf-cover-link{display:block;background:#eef2f0}
.tsf-cover-frame{position:relative;aspect-ratio:3/2;background:#eef2f0;overflow:hidden;display:flex;align-items:center;justify-content:center}
.tsf-cover-frame img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .45s}
.tsf-card:hover .tsf-cover-frame img{transform:scale(1.025)}
.tsf-img-fallback{font-size:12px;color:#7c8984}
/* Faz 40.15J-E — yükleme durumu: görsel gelene kadar sakin bir zemin parıltısı (düzen kaymaz: çerçeve oranı sabittir). */
.tsf-cover-frame[data-image-state="loading"]{background:linear-gradient(100deg,#eef2f0 40%,#f7f9f8 50%,#eef2f0 60%);background-size:200% 100%;animation:tsf-shimmer 1.4s linear infinite}
.tsf-cover-frame[data-image-state="loading"] img{opacity:0}
.tsf-cover-frame img{opacity:1;transition:transform .45s,opacity .25s}
@keyframes tsf-shimmer{from{background-position:120% 0}to{background-position:-80% 0}}
.tsf-body{padding:18px 20px 20px;display:flex;flex-direction:column;gap:8px;flex:1;min-width:0}
.tsf-meta{display:flex;align-items:center;justify-content:space-between;gap:10px}
.tsf-category{font-size:10px;font-weight:800;letter-spacing:1.4px;text-transform:uppercase;color:#7c8984;overflow-wrap:anywhere}
.tsf-badge{font-size:10px;font-weight:700;color:#3f5b36;background:#eef8d2;border:1px solid #d6ec9a;border-radius:999px;padding:2px 9px;white-space:nowrap}
.tsf-name{font:700 18px var(--display);margin:0;overflow-wrap:anywhere}
.tsf-desc{font-size:13px;color:var(--muted);margin:0;overflow-wrap:anywhere}
.tsf-actions{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:auto;padding-top:10px;flex-wrap:wrap}
.tsf-inspect{display:inline-flex;align-items:center;gap:8px;border:1px solid var(--ink);background:var(--ink);color:#fff;border-radius:7px;padding:9px 16px;font-size:12px;font-weight:700}
.tsf-inspect:hover{background:#243a33}
.tsf-inspect:focus-visible,.tsf-filter:focus-visible,.tsf-page-btn:focus-visible{outline:3px solid #99b93b;outline-offset:2px}
.tsf-soon{font-size:11px;color:#7c8984}
/* Faz 40.15J-C4 — yalnızca SuperAdmin tarafından AÇIKÇA satışa açılmış tema */
.tsf-badge-buy{color:#fff;background:#2f6b3f;border-color:#2f6b3f}
.tsf-buy{padding:9px 14px;font-size:12px;border-radius:7px;white-space:nowrap}
.tsf-buy:focus-visible{outline:3px solid #99b93b;outline-offset:2px}
/* /temalar/ katalog */
.tsf-catalog-head{margin-bottom:22px}
.tsf-toolbar{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;flex-wrap:wrap;margin-bottom:10px}
.tsf-toolbar .catalog-filters{margin-bottom:0;flex:1 1 320px;min-width:0}
.tsf-search-form{flex:0 1 300px;min-width:0;width:100%}
.tsf-search{width:100%;min-height:42px;border:1px solid #d2dad6;border-radius:9px;background:#fff;padding:0 14px;font:500 14px var(--sans);color:var(--ink)}
.tsf-search:focus{outline:3px solid #99b93b;outline-offset:1px;border-color:#99b93b}
.tsf-status{min-height:26px;margin:0 0 14px}
.tsf-count,.tsf-loading{font-size:12px;color:#66736f;margin:0}
.tsf-message{border:1px dashed #cdd6d1;border-radius:14px;background:#fff;padding:26px 22px;display:flex;flex-direction:column;align-items:flex-start;gap:12px}
.tsf-message p{margin:0;color:#44534e}
.tsf-message.is-error{border-style:solid;border-color:#e6c2b4;background:#fff8f5}
.tsf-message .button{min-height:42px}
.tsf-pagination{display:flex;align-items:center;justify-content:center;gap:12px;margin-top:28px;flex-wrap:wrap}
.tsf-pagination[hidden]{display:none}
.tsf-page-btn{border:1px solid #d2dad6;background:#fff;border-radius:7px;padding:9px 16px;font-size:12px;font-weight:700;color:var(--ink);cursor:pointer}
.tsf-page-btn[disabled]{opacity:.45;cursor:not-allowed}
.tsf-page-info{font-size:12px;color:#66736f}
.tsf-soon-head{margin-bottom:22px}
.tsf-soon-head h2{margin:0 0 6px}
.tsf-soon-head p{margin:0;color:var(--muted);max-width:640px}
@media(max-width:1050px){.tsf-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){
  .tsf-grid{grid-template-columns:minmax(0,1fr);gap:16px}
  .tsf-search-form{flex:1 1 100%}
}
@media(prefers-reduced-motion:reduce){.tsf-card,.tsf-cover-frame img{transition:none}.tsf-card:hover{transform:none}.tsf-cover-frame[data-image-state="loading"]{animation:none}}
/* Faz 40.15J-C2 — canlı demo bağlantısı (kart) */
.tsf-action-links{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.tsf-demo-link{display:inline-flex;align-items:center;border:1px solid #cfd8d4;background:#fff;color:var(--ink);border-radius:7px;padding:8px 14px;font-size:12px;font-weight:700}
.tsf-demo-link:hover{border-color:var(--ink)}
.tsf-demo-link:focus-visible{outline:3px solid #99b93b;outline-offset:2px}
/* Faz 40.15J-D (A4) — ana sayfa TEK tema galerisi: öne çıkan yüklenen temalar ayrı/kopuk bir blok değil; yerleşik tema kartlarıyla
   AYNI ızgarada (önce, sunucu sırasıyla). Sarmalayıcılar `display:contents` ile ızgaraya şeffaftır; kartlar eşit yükseklikte hizalanır. */
.theme-gallery-toolbar{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:26px}
.theme-gallery-toolbar .filter-row{margin-bottom:0;padding-bottom:0;flex:1 1 auto;min-width:0}
.theme-gallery-toolbar .text-link{flex:none;margin-top:0;white-space:nowrap}
.theme-gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.theme-gallery>.tsf-featured,.theme-gallery .tsf-featured-grid,.theme-gallery>#theme-grid{display:contents}
.theme-gallery>.tsf-featured[hidden],.theme-gallery .tsf-card[hidden]{display:none}
.theme-gallery .theme-item{display:flex;flex-direction:column;min-width:0}
.theme-gallery .theme-info{flex:1;display:flex;flex-direction:column}
.theme-gallery .theme-actions{margin-top:auto;padding-top:17px}
.theme-gallery .tsf-cover-link{position:relative}
.theme-gallery .tsf-cover-frame{aspect-ratio:auto;height:262px}
.theme-gallery .tsf-body{padding:19px 20px}
.theme-gallery .tsf-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding-top:17px}
.theme-gallery .tsf-action-links{display:contents}
.theme-gallery .tsf-inspect,.theme-gallery .tsf-demo-link{justify-content:center;border-radius:6px;padding:8px;font-size:11px}
.theme-gallery .tsf-buy,.theme-gallery .tsf-soon{grid-column:1/-1;justify-content:center;text-align:center;margin:0}
.theme-gallery .tsf-buy{min-height:40px;width:100%}
.theme-gallery .tsf-soon{display:block;padding:9px;border:1px dashed #cfd8d4;border-radius:6px;font-weight:700}
.tsf-featured-flag{position:absolute;left:12px;top:12px;z-index:1;padding:4px 10px;border-radius:999px;background:var(--lime);color:#18271f;font-size:10px;font-weight:800;letter-spacing:.8px;text-transform:uppercase;box-shadow:0 6px 16px rgba(17,38,31,.18)}
@media(max-width:1050px){.theme-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:780px){
  .theme-gallery{grid-template-columns:minmax(0,1fr)}
  .theme-gallery .tsf-cover-frame{height:275px}
  .theme-gallery-toolbar{flex-direction:column;align-items:stretch;gap:10px}
  .theme-gallery-toolbar .text-link{align-self:flex-start}
}
