/* ECOA-9570 — flag AG_MOB_LISTING_COMPACT: výpis kategorie na mobilu (≤ 768 px) kompaktní hlavička, produkty nad ohyb.
   Vše scopované na section#main.ag-mlc (třída jen při zapnutém flagu / náhledu). Desktop beze změny.
   Chipy typů ag_model_chips (nav.ag-mchips, ECOA-9571) se NEskrývají ani nesbalují. */
.ag-mlc-more{display:none}
@media (max-width:768px){
#wrapper:has(.ag-mlc){padding-top:8px!important}
.ag-mlc .ag-cat-header{margin-top:0!important;margin-bottom:8px!important}
.ag-mlc .ag-cat-header__inner{padding-top:8px!important;padding-bottom:8px!important}
.ag-mlc .ag-mh__types{margin-top:6px!important}
/* breadcrumb na 1 řádek: dřívější položky se zkrátí s „…“, aktuální zůstane co nejdelší */
.ag-mlc .ag-breadcrumb{display:flex!important;flex-wrap:nowrap!important;align-items:baseline;gap:0 4px;white-space:nowrap;overflow:hidden;margin-bottom:6px!important;line-height:1.4!important}
.ag-mlc .ag-breadcrumb>a{flex:0 1 auto;min-width:1.6em;overflow:hidden;text-overflow:ellipsis}
.ag-mlc .ag-breadcrumb__sep{flex:none}
.ag-mlc .ag-breadcrumb__active{flex:0 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis}
.ag-mlc .ag-cat-header__title{margin-bottom:6px!important}
.ag-mlc .ag-cat-header:not(.ag-mh) .ag-cat-header__title{font-size:22px!important;line-height:1.25!important}
/* úvodní text: 2 řádky + „Více“ (obsah zůstává v HTML) */
.ag-mlc .ag-cat-header__desc{position:relative;max-height:3.2em;overflow:hidden;margin-bottom:0!important}
.ag-mlc .ag-cat-header__desc>:first-child{margin-top:0}
/* sbalený stav: nadpisy/odstavce/seznamy plynou v jednom textu, ať 2 řádky = 2 řádky textu (H2 na začátku popisu) */
.ag-mlc .ag-cat-header__desc:not(.is-open):not(.is-nomore) :is(h2,h3,h4,p,ul,ol,li,div){display:inline;margin:0;padding:0;font-size:inherit;line-height:inherit;font-weight:inherit}
.ag-mlc .ag-cat-header__desc:not(.is-open):not(.is-nomore) :is(h2,h3,h4,p,li)::after{content:" "}
.ag-mlc .ag-cat-header__desc.is-open{max-height:none;overflow:visible}
.ag-mlc .ag-mlc-more{display:block;position:absolute;right:0;bottom:0;margin:0;padding:0 0 0 28px;border:0;font:600 15px/1.6 var(--ag-font-body,sans-serif);color:var(--ag-green-deep,#2E8C32);background:linear-gradient(90deg,rgba(243,244,247,0),var(--ag-mlc-bg,#F3F4F7) 26px);cursor:pointer}
.ag-mlc .ag-cat-header__desc.is-open .ag-mlc-more{position:static;padding:0;background:none;margin-top:4px}
.ag-mlc .ag-cat-header__desc.is-nomore .ag-mlc-more{display:none}
.ag-mlc .ag-cat-header__desc.is-nomore{max-height:none}
/* hlavička modelu: „Jiný model? Změnit“ na řádek s počtem produktů */
.ag-mlc .ag-mh__row{position:relative}
.ag-mlc .ag-mh__change{position:absolute!important;right:0;bottom:0;min-height:0!important;height:26px;padding:0 10px!important;font-size:13px!important;line-height:24px!important}
/* lišta Filtry/Řadit + chipy těsněji; počet je v hlavičce modelu / liště, toolbar bez řazení skrýt */
body.ag-ux-catalog-f10 .ag-mlc .ag-f10-bar{padding:6px 12px!important;margin-bottom:6px!important}
body.ag-ux-catalog-f10 .ag-mlc .ag-f10-chips,body.ag-ux-catalog-f10 .ag-mlc .ag-f10-bar .ag-qf{margin-top:6px!important}
body.ag-ux-catalog-f10 .ag-mlc .ag-toolbar{display:none!important}
/* podkategorie: 1 vodorovně posuvný řádek místo dlaždic 2×N */
.ag-mlc .ag-subcat-grid{display:flex!important;flex-wrap:nowrap!important;gap:8px!important;overflow-x:auto;scrollbar-width:none;margin:0 -12px 6px!important;padding:0 12px 2px!important;grid-template-columns:none!important}
.ag-mlc .ag-subcat-grid::-webkit-scrollbar{display:none}
.ag-mlc .ag-subcat-tile{flex:0 0 auto!important;display:flex!important;flex-direction:row!important;align-items:center;gap:8px;width:auto!important;min-height:40px;padding:3px 12px 3px 3px!important;aspect-ratio:auto!important}
.ag-mlc .ag-subcat-tile__img-wrap{flex:0 0 32px!important;width:32px!important;height:32px!important;margin:0!important;padding:0!important;aspect-ratio:auto!important}
.ag-mlc .ag-subcat-tile__img{width:32px!important;height:32px!important;object-fit:contain}
.ag-mlc .ag-subcat-tile__name{font-size:14px!important;line-height:1.2!important;white-space:nowrap;margin:0!important;text-align:left!important}
}
