/* The catalog keeps the approved home identity and the two-column mobile browse. */
.home-ux{--surface:#FFFFFF}
.home-ux .catalog .section-heading{align-items:flex-start;gap:24px}
.home-ux .catalog .section-heading>div:first-child{max-width:650px}
.home-ux .catalog-offer{flex:none;text-align:right}
.home-ux .catalog-offer p{display:flex;flex-direction:column;align-items:flex-end;gap:2px;margin:0;font-size:14px;line-height:1.5;color:var(--muted)}
.home-ux .catalog-offer strong{font-size:20px;color:var(--ink);font-weight:800}
.home-ux .catalog-offer a{display:inline-flex;align-items:center;min-height:44px;font-size:14px;font-weight:700;color:var(--primary);text-decoration:underline;text-underline-offset:4px}
.home-ux .catalog-toolbar{display:flex;align-items:center;gap:20px;margin-bottom:0}
.home-ux .search{width:300px;flex:0 0 300px;min-height:48px;gap:8px;margin:0;padding-inline:12px;border-radius:12px;order:0}
.home-ux .search input{flex:1;min-width:0;width:0;font-size:16px;min-height:46px;padding-block:10px}
.home-ux .search input::-webkit-search-cancel-button{-webkit-appearance:none}
.home-ux .search-clear{display:flex;align-items:center;justify-content:center;flex:none;width:44px;height:44px;padding:0;margin-right:-10px;background:none;border:0;border-radius:8px;color:var(--muted)}
.home-ux .search-clear:hover{background:var(--canvas);color:var(--primary)}
.home-ux .search-clear .icon{width:18px;height:18px}
.home-ux .filter-list{display:flex;justify-content:flex-end;flex:1;flex-wrap:wrap;gap:6px;overflow:visible;padding:0;margin:0;width:auto}
.home-ux .filter-list button{min-height:44px;padding:8px 12px;font-size:14px;border-radius:12px}
.home-ux .catalog-results{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px;margin:10px 0 18px;font-size:14px;line-height:1.6;color:var(--muted)}
.home-ux #search-status{min-width:0;overflow-wrap:anywhere}
.home-ux #reset-filters{display:inline-flex;align-items:center;justify-content:center;gap:8px;flex:none;min-height:44px;padding:8px 0 8px 10px;background:none;border:0;border-radius:8px;font-size:14px;font-weight:700;color:var(--primary)}
.home-ux #reset-filters .icon{width:16px;height:16px}
.home-ux #reset-filters:hover{text-decoration:underline;text-underline-offset:4px}
.home-ux .theme-grid{row-gap:32px}
.home-ux .theme-card{display:flex;flex-direction:column}
.home-ux .theme-art{display:block;padding:0;aspect-ratio:auto;background:var(--theme-bg);border:1px solid var(--line);border-radius:16px;overflow:hidden}
.home-ux .theme-illustration{display:block;position:relative;width:100%;aspect-ratio:1.1;padding:12px}
.home-ux .theme-illustration img{position:absolute;inset:12px;width:calc(100% - 24px);height:calc(100% - 24px);object-fit:contain}
.home-ux .theme-preview-caption{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:44px;padding:9px 12px;background:var(--surface);font-size:14px;font-weight:700;line-height:1.5;color:var(--ink);border-top:1px solid var(--line)}
.home-ux .theme-preview-caption .icon{width:17px;height:17px;color:var(--primary)}
.home-ux .theme-art:hover .theme-preview-caption{background:var(--canvas);color:var(--primary)}
.home-ux .theme-body{display:flex;flex-direction:column;flex:1;padding:12px 1px 0}
.home-ux .theme-tag{font-size:14px;line-height:1.5;min-height:21px;margin-bottom:5px}
.home-ux .theme-body h3{font-size:18px;line-height:1.4;min-height:0}
.home-ux .theme-buy{margin-top:auto;padding-top:12px;gap:12px;flex-wrap:wrap}
.home-ux .theme-buy p{font-size:16px;line-height:1.5}
.home-ux .theme-buy p span{font-size:13px;margin-left:2px}
.home-ux .theme-buy .theme-choose{display:flex;align-items:center;justify-content:space-between;gap:6px;min-height:44px;width:auto;padding:9px 12px;border:1px solid var(--primary);border-radius:12px;background:var(--primary);color:var(--surface);font-size:14px;font-weight:700;line-height:1.5}
.home-ux .theme-buy .theme-choose:hover{background:var(--deep);border-color:var(--deep)}
.home-ux .theme-buy .theme-choose .icon{width:16px;height:16px}
.home-ux .theme-art:focus-visible{outline-offset:4px}
.home-ux .catalog-footer>span{font-size:14px}
.home-ux .empty-state p{font-size:16px;overflow-wrap:anywhere}
@media(max-width:1050px){
  .home-ux .catalog-toolbar{flex-direction:column;align-items:stretch;gap:14px}
  .home-ux .search{width:100%;flex:auto}
  .home-ux .filter-list{justify-content:flex-start}
  .home-ux .theme-buy .theme-choose{width:100%}
}
@media(max-width:600px){
  .home-ux .catalog .section-heading{margin-bottom:20px}
  .home-ux .catalog-offer{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:14px;text-align:left}
  .home-ux .catalog-offer p{align-items:flex-start;font-size:13px}
  .home-ux .catalog-offer strong{font-size:18px}
  .home-ux .catalog-offer a{flex:none;font-size:13px}
  .home-ux .catalog-toolbar{gap:12px}
  .home-ux .filter-list{width:100%;gap:6px;overflow:visible}
  .home-ux .filter-list button{font-size:13px;padding-inline:10px}
  .home-ux .catalog-results{margin:8px 0 16px;font-size:14px;gap:8px}
  .home-ux #reset-filters{font-size:13px;gap:5px;padding-left:6px}
  .home-ux .theme-grid{gap:28px 12px}
  .home-ux .theme-art{border-radius:12px}
  .home-ux .theme-illustration{aspect-ratio:1.03;padding:8px}
  .home-ux .theme-illustration img{inset:8px;width:calc(100% - 16px);height:calc(100% - 16px)}
  .home-ux .theme-preview-caption{padding:9px 10px;font-size:13px;gap:5px}
  .home-ux .theme-preview-caption .icon{width:16px;height:16px}
  .home-ux .theme-tag{display:none}
  .home-ux .theme-body h3{font-size:16px;min-height:45px;line-height:1.4}
  .home-ux .theme-buy{display:flex;flex-direction:column;align-items:stretch;gap:8px;margin-top:5px;padding-top:0}
  .home-ux .theme-buy p{font-size:16px}
  .home-ux .theme-buy .theme-choose{width:100%;font-size:13px;padding-inline:10px}
}
