/* Catalogue-only refinement. The locked hero and subsequent sections retain their layout. */
.studio-home.browse-home .catalogue-section { background: #f8fbf8; padding: 44px 0 56px; }
.studio-home.browse-home .catalogue-section > .container { max-width: 1240px; }
.studio-home.browse-home .catalogue-section-header { margin-bottom: 24px; }
.catalogue-intro { margin: 8px 0 0; max-width: 46ch; color: #607568; font: 400 15px/1.6 "Inter Tight",sans-serif; }
.studio-home.browse-home .controls-card { padding: 0; gap: 15px; background: transparent; box-shadow: none; border: 0; }
.studio-home.browse-home .search-box-wrapper { width: 100%; max-width: none; }
.studio-home.browse-home .search-input { border: 1px solid #cbd9ce; border-radius: 10px; background: #fff; box-shadow: none; min-height: 52px; }
.studio-home.browse-home .filter-tags-row { display: flex; gap: 8px; overflow-x: auto; padding: 0 0 7px; scrollbar-width: thin; scrollbar-color: #bfd0c2 transparent; }
.studio-home.browse-home .filter-tag { flex: 0 0 auto; min-height: 40px; padding: 9px 15px; border: 1px solid #d3dfd5; border-radius: 7px !important; color: #496353; background: #fff; font: 500 12px/1.2 "Inter Tight",sans-serif; }
.studio-home.browse-home .filter-tag.active { background: #315e4d; color: #fff; border-color: #315e4d; }
.catalogue-results-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin: 18px 0 22px; padding-top: 16px; border-top: 1px solid #dce5dc; }
.studio-home.browse-home .catalogue-results-bar .sales-discovery-status { margin: 0; font-size: 12px; line-height: 1.5; color: #5f7567; }
.catalogue-results-bar button { border: 0; background: none; padding: 8px 0; color: #315e4d; font: 600 12px "Inter Tight",sans-serif; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; min-height: 40px; }
.catalogue-results-bar button[hidden] { display: none; }
.studio-home.browse-home #templates-grid { align-items: stretch !important; }
.studio-home.browse-home #templates-grid .template-card { display: flex !important; flex-direction: column !important; height: 100% !important; background: transparent; border: 0; box-shadow: none; }
.studio-home.browse-home #templates-grid .template-card-media { position: relative; aspect-ratio: 9 / 16; border-radius: 10px; background: #e8eee7; overflow: hidden; }
/* Keep intrinsic image dimensions out of card sizing; every design fills the same frame. */
.studio-home.browse-home #templates-grid .template-card-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.studio-home.browse-home #templates-grid .template-card:hover { transform: none; }
.studio-home.browse-home #templates-grid .template-preview-hint { inset: auto 8px 8px; padding: 9px 10px; border: 1px solid #ffffffa8; border-radius: 5px; background: #fffffff0; font: 500 11px/1.3 "Inter Tight",sans-serif; color: #315e4d; }
.studio-home.browse-home #templates-grid .template-card-content { display: flex !important; flex-direction: column !important; flex: 1 1 auto !important; padding-top: 14px !important; }
.studio-home.browse-home #templates-grid .template-card-info-side { flex: 1 1 auto !important; display: flex !important; flex-direction: column !important; }
.studio-home.browse-home #templates-grid .template-card-title { font: 500 21px/1.15 Newsreader,Georgia,serif !important; color: #203e34; min-height: 50px !important; margin: 0 0 5px; }
.studio-home.browse-home #templates-grid .template-card-style { font: 400 12px/1.5 "Inter Tight",sans-serif; color: #667d70; min-height: 36px !important; margin: 0 0 10px; }
.studio-home.browse-home #templates-grid .template-card-action-side { margin-top: auto !important; width: 100% !important; }
.studio-home.browse-home #templates-grid .template-card-price-wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; }
.studio-home.browse-home #templates-grid .template-card-price { color: #203e34; font: 600 15px "Inter Tight",sans-serif !important; }
.studio-home.browse-home #templates-grid .template-card-tier-label { border-radius: 4px; font-size: 10px; min-height: 22px; }
.studio-home.browse-home #templates-grid .template-btn-pay { width: 100%; min-height: 44px; margin-top: 12px; border: 1px solid #b5c9bb; border-radius: 6px; background: #fff; color: #315e4d; box-shadow: none; font: 500 12px "Inter Tight",sans-serif; }
.studio-home.browse-home #templates-grid .template-btn-pay:hover { background: #eaf2ec; border-color: #315e4d; }
.studio-home.browse-home #templates-grid .sales-save-design { width: 36px; min-width: 36px; height: 36px; top: 8px; right: 8px; }
.studio-home.browse-home #catalogue-discovery-footer { margin-top: 28px; }
@media(max-width:760px) {
  .studio-home.browse-home .catalogue-section > .container { padding-inline: 20px; }
  .catalogue-intro { font-size: 14px; }
  .studio-home.browse-home #templates-grid { gap: 28px 14px !important; }
  .studio-home.browse-home #templates-grid .template-card-title { font-size: 19px !important; min-height: 44px; }
  .studio-home.browse-home #templates-grid .template-card-style { font-size: 11px; min-height: 33px; }
  .studio-home.browse-home #templates-grid .template-card-price-wrap { justify-content: flex-start; gap: 7px; }
}
