.studio-catalog { background: #f5f7f5; padding: 38px 0 56px; color: #26382e; letter-spacing: 0; }
.studio-catalog .container { max-width: 1320px; }
.catalog-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; gap: 20px; }
.catalog-eyebrow { color: #718078; font-size: 10px; font-weight: 700; }
.catalog-heading h1 { font-size: 32px; font-weight: 700; letter-spacing: 0; margin: 7px 0 8px; }
.catalog-heading p { color: #687a6d; font-size: 13px; margin: 0; }
.catalog-home { display: flex; align-items: center; gap: 12px; color: var(--primary-color,#d84315); text-decoration: none; font-size: 12px; font-weight: 600; }
.catalog-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-bottom: 16px; border-bottom: 1px solid #dde5dd; }
.catalog-categories { display: flex; align-items: center; gap: 23px; overflow-x: auto; min-width: 0; }
.catalog-categories a { color: #67796b; font-size: 12px; text-decoration: none; display: flex; align-items: center; gap: 7px; white-space: nowrap; min-height: 37px; border-bottom: 2px solid transparent; }
.catalog-categories a.selected { color: #294f38; border-color: #294f38; font-weight: 700; }
.catalog-categories span { font-size: 9px; background: #e7ede7; border-radius: 3px; padding: 2px 5px; }
.catalog-search { position: relative; display: flex; align-items: center; flex-shrink: 0; width: 286px; background: #fff; border: 1px solid #dce4dc; border-radius: 5px; padding: 0 5px 0 13px; gap: 10px; }
.catalog-search > i { color: #8b988f; font-size: 12px; }
.catalog-search input { min-width: 0; width: 100%; height: 40px; background: transparent; border: 0; outline: 0; font-size: 11px; }
.catalog-search button { width: 34px; height: 33px; border: 0; border-radius: 3px; background: #eef3ed; color: #305d40; }
.catalog-subtoolbar { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin: 16px 0 25px; }
.catalog-themes { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.catalog-themes > span { color: #7d8b80; font-size: 10px; padding-right: 4px; }
.catalog-themes a { border: 1px solid #dce5dc; background: transparent; color: #526959; padding: 5px 10px; border-radius: 4px; text-decoration: none; font-size: 10px; }
.catalog-themes a.selected { background: #e4eee4; border-color: #97b59c; color: #22452b; }
.catalog-themes a.catalog-clear { border: 0; display: flex; gap: 8px; align-items: center; }
.catalog-sort { display: flex; align-items: center; gap: 9px; color: #7a897e; font-size: 10px; flex-shrink: 0; }
.catalog-sort select { border: 0; background: transparent; color: #334c3c; font-size: 11px; padding: 7px; max-width: 160px; }
.studio-template-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 18px; }
.studio-template { background: #fff; border: 1px solid #dde4e1; border-radius: 8px; overflow: hidden; min-width: 0; display: flex; flex-direction: column; transition: border-color .15s, box-shadow .15s; }
.studio-template:hover { border-color: #b8c8c2; box-shadow: 0 8px 24px #26382e0d; }
.template-artwork { position: relative; background: #eef1f2; padding: 26px 14px 14px; }
.template-preview { display: flex; align-items: center; justify-content: center; height: 260px; text-decoration: none; }
.template-preview img { width: auto; height: auto; max-height: 100%; max-width: 100%; object-fit: contain; box-shadow: 0 5px 18px #233b261e; }
.template-category { position: absolute; top: 10px; left: 10px; background: #ffffffed; color: #4c6352; font-size: 8px; font-weight: 600; padding: 5px 7px; border-radius: 3px; }
.template-quick-preview { position: absolute; bottom: 10px; right: 10px; width: 31px; height: 31px; background: #fff; color: #355b42; border: 1px solid #d5dfd5; border-radius: 4px; }
.template-meta { padding: 14px; flex: 1; display: flex; flex-direction: column; }
.template-theme { font-size: 9px; font-weight: 600; color: #8a958c; }
.template-meta h2 { font-size: 14px; font-weight: 600; line-height: 1.4; margin: 6px 0 10px; letter-spacing: 0; overflow-wrap: anywhere; }
.template-meta h2 a { text-decoration: none; color: #26392d; }
.template-price { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin: 0 0 10px; }
.template-price > div { display: flex; flex-direction: column; gap: 2px; }
.template-price > div + div { border-left: 1px solid #e4e8e7; padding-left: 10px; }
.template-price strong { color: #26382e; font-size: 19px; font-weight: 700; }
.template-price span { color: #6b7772; font-size: 10px; }
.template-free-offer { display: flex; gap: 7px; align-items: center; color: #226449; background: #edf6f0; padding: 7px 8px; border-radius: 4px; font-size: 10px; line-height: 1.4; margin: 0 0 10px; }
.template-personalize { margin-top: auto; }
.template-personalize { display: flex; align-items: center; justify-content: space-between; min-height: 38px; padding: 9px 12px; background: #fff; color: var(--primary-color,#d84315); border: 1px solid var(--primary-color,#d84315); border-radius: 4px; text-decoration: none; font-size: 11px; font-weight: 600; }
.template-personalize:hover { background: var(--primary-color,#d84315); color: #fff; }
.catalog-empty { text-align: center; padding: 80px 15px; }
.catalog-empty > i { font-size: 24px; color: #86a08a; }
.catalog-empty h2 { font-size: 18px; margin: 22px 0; }
.catalog-empty a { display: inline-flex; gap: 10px; align-items: center; color: var(--primary-color,#d84315); font-size: 12px; }
.catalog-pagination { display: flex; gap: 8px; justify-content: center; padding-top: 30px; }
.catalog-pagination a { display: grid; place-items: center; width: 33px; height: 33px; border: 1px solid #d5dfd4; color: #3a6243; border-radius: 4px; text-decoration: none; font-size: 11px; }
.catalog-pagination a[aria-current] { background: #315e3d; color: #fff; }
.catalog-preview-dialog { border: 0; border-radius: 8px; padding: 16px; width: min(92vw,520px); background: #fff; box-shadow: 0 16px 50px #142d2640; }
.catalog-preview-dialog::backdrop { background: #163e2966; backdrop-filter: blur(3px); }
.catalog-preview-heading { display: flex; gap: 20px; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.catalog-preview-heading h2 { font-size: 13px; line-height: 1.5; margin: 0; }
.catalog-preview-heading button { border: 0; background: transparent; width: 32px; height: 32px; flex-shrink: 0; }
.catalog-preview-dialog > img { display: block; max-height: 65dvh; max-width: 100%; margin: 0 auto 18px; }
@media (min-width:1500px) { .template-preview { height: 285px; } }
@media (max-width:1100px) { .studio-template-grid { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; } .catalog-categories { gap: 17px; } .template-preview { height: 245px; } }
@media (max-width:900px) { .studio-template-grid { grid-template-columns: repeat(3,minmax(0,1fr)); } }
@media (max-width:767px) {
    .studio-catalog { padding: 24px 0 35px; } .catalog-heading { margin-bottom: 22px; } .catalog-heading h1 { font-size: 26px; } .catalog-heading p { font-size: 11px; } .catalog-home { font-size: 10px; gap: 7px; }
    .catalog-toolbar { flex-direction: column; align-items: stretch; gap: 12px; padding-bottom: 12px; } .catalog-categories { gap: 22px; } .catalog-categories a { font-size: 11px; } .catalog-search { width: 100%; }
    .catalog-subtoolbar { flex-wrap: wrap; margin-bottom: 18px; gap: 10px; } .catalog-themes { max-width: 100%; flex-wrap: nowrap; overflow-x: auto; } .catalog-themes a { white-space: nowrap; }
    .catalog-sort { margin-left: auto; } .studio-template-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; } .template-artwork { padding: 26px 10px 12px; } .template-preview { height: 205px; }
    .template-category { font-size: 7px; left: 7px; top: 7px; padding: 4px 5px; } .template-meta { padding: 11px; } .template-theme { font-size: 8px; } .template-meta h2 { font-size: 12px; margin: 6px 0 9px; } .template-price { gap: 5px; margin-bottom: 9px; } .template-price strong { font-size: 18px; } .template-price span { font-size: 9px; } .template-price > div + div { padding-left: 7px; } .template-free-offer { font-size: 9px; padding: 6px; gap: 5px; } .template-personalize { padding: 9px; font-size: 10px; }
}
@media (max-width:390px) { .template-preview { height: 195px; } .catalog-home { font-size: 9px; } .template-meta { padding: 10px; } }
