/* 2.0.58: presentation only. Reference: existing Yeni Cikanlar layout.
   Do not replace native custom listing templates, cards, queries or filter controls. */
html body.km58-listing-standard.km21-archive-ready {
 --km58-width:1180px; --km58-sidebar:270px; --km58-gap:28px; --km58-card-gap:14px;
}
/* Outer layout: same edge for generated title and catalogue; no additional
   horizontal gutter inside an already constrained theme container. */
html body.km58-listing-standard.km21-archive-ready :is(.km21-heading,.km22-term-heading,.km23-term-header,.km21-catalog){
 width:min(var(--km58-width),calc(100% - 24px))!important;max-width:100%!important;box-sizing:border-box!important;margin-inline:auto!important;
}
html body.km58-listing-standard.km21-archive-ready :is(.ct-container,.ct-container-full,.km-container,.entry-content,.content-area,.woocommerce) > :is(.km21-heading,.km22-term-heading,.km23-term-header,.km21-catalog){
 width:100%!important;max-width:var(--km58-width)!important;
}
/* The old category hero sometimes leaves theme vertical spacing above the
   reconstructed heading. Reset only ancestors of that verified heading/grid. */
html body.km58-listing-standard.tax-product_cat.km21-archive-ready :is(main,#main):has(.km21-heading):has(.km21-catalog),
html body.km58-listing-standard.tax-product_cat.km21-archive-ready :is(main,#main) :is(.ct-container,.ct-container-full,.km-container,.content-area,.entry-content,.woocommerce,[data-vertical-spacing],article):has(.km21-heading):has(.km21-catalog){
 --content-vertical-spacing:0px!important;--theme-content-vertical-spacing:0px!important;
 margin-block-start:0!important;padding-block-start:0!important;
}
html body.km58-listing-standard.km21-archive-ready .km21-heading{
 margin-block:0 24px!important;padding-block-start:44px!important;
}
html body.km58-listing-standard.km21-archive-ready :is(.km21-heading-title,.km23-term-title,.km22-term-heading>h1){
 font-size:clamp(28px,3.3vw,42px)!important;line-height:1.16!important;font-weight:700!important;
}
html body.km58-listing-standard.km21-archive-ready :is(.km21-heading,.km23-term-header) + .km21-catalog{margin-block-start:0!important;}
html body.km58-listing-standard.km21-archive-ready .km21-catalog{
 grid-template-columns:minmax(0,var(--km58-sidebar)) minmax(0,1fr)!important;gap:var(--km58-gap)!important;
}
html body.km58-listing-standard.km21-archive-ready .km21-results>.km21-product-grid{gap:var(--km58-card-gap)!important;}
html body.km58-listing-standard.km21-archive-ready .km21-sidebar :is(.km-archive-filter,.filter-panel,.filters-panel,.shop-filters,.filter-sidebar,.ct-sidebar){padding:18px!important;}
html body.km58-listing-standard.km21-archive-ready .km21-toolbar.km38-main-toolbar{margin-bottom:18px!important;gap:10px!important;}
/* Search results use their own layout. Align the outer width and grid gap only;
   keep search-specific filters, card rendering and mobile breakpoints. */
html body.km58-listing-standard :is(main,#main) .km31-search-outlet{width:min(1180px,100%)!important;max-width:1180px!important;}
html body.km58-listing-standard :is(main,#main) .km25-search-results{max-width:1180px!important;}
html body.km58-listing-standard :is(main,#main) .km25-search-results ul.km27-search-products{gap:14px!important;}
@media(max-width:1050px){html body.km58-listing-standard.km21-archive-ready{--km58-sidebar:230px;--km58-gap:20px;}}
@media(max-width:930px){html body.km58-listing-standard.km21-archive-ready{--km58-sidebar:200px;--km58-gap:16px;}}
@media(max-width:767px){
 html body.km58-listing-standard.km21-archive-ready{--km58-gap:14px;--km58-card-gap:10px;}
 html body.km58-listing-standard.km21-archive-ready .km21-catalog{grid-template-columns:minmax(0,1fr)!important;}
 html body.km58-listing-standard.km21-archive-ready .km21-heading{padding-block-start:24px!important;margin-block-end:18px!important;}
 html body.km58-listing-standard.km21-archive-ready :is(.km21-heading-title,.km23-term-title,.km22-term-heading>h1){font-size:clamp(26px,6vw,34px)!important;}
 html body.km58-listing-standard :is(main,#main) .km25-search-results ul.km27-search-products{gap:10px!important;}
}

/* 2.0.60: the theme already supplies the category's top breathing room.
   Do not add a second 44px (24px mobile) on the reconstructed title. */
html body.km58-listing-standard.tax-product_cat.km21-archive-ready .km21-heading{padding-block-start:0!important;margin-block-start:0!important;}
