/* AutoPilot V26.48 — persistent generation favorites and layout repair */
.footer-favorites-v2646{color:#aab2bb;text-decoration:none;font-size:14px}.footer-favorites-v2646:hover{color:#dfff2f}
.nav-favorites-v2648{white-space:nowrap}.nav-favorites-v2648.active{color:#dfff2f!important;background:#151b1f}
.nav-profile-v2659{white-space:nowrap}.nav-profile-v2659.active{color:#dfff2f!important;background:#151b1f}.footer-profile-v2659{color:#aab2bb;text-decoration:none;font-size:14px}.footer-profile-v2659:hover{color:#dfff2f}
.favorite-toggle-v2646{position:absolute;z-index:6;top:10px;right:10px;display:grid;place-items:center;width:42px;height:42px;min-width:42px;padding:0;border:1px solid rgba(255,255,255,.32);border-radius:11px;background:rgba(9,14,17,.86);color:#fff;box-shadow:0 7px 20px rgba(0,0,0,.25);font:800 24px/1 Arial,sans-serif;cursor:pointer;backdrop-filter:blur(8px)}
.favorite-toggle-v2646:hover,.favorite-toggle-v2646:focus-visible{border-color:#dfff2f;color:#dfff2f;outline:none}.favorite-toggle-v2646.is-favorite{border-color:#dfff2f;background:#dfff2f;color:#090b0e}
.detail-main{position:relative!important}.detail-main .favorite-toggle-detail-v2646{position:absolute!important;top:14px!important;right:14px!important;display:grid!important;align-self:auto!important;width:42px!important;min-width:42px!important;max-width:42px!important;height:42px!important;min-height:42px!important;margin:0!important;padding:0!important;border-radius:10px!important;font-size:22px!important;box-shadow:none!important}.detail-main .detail-car-title{padding-right:52px!important}
.favorites-page-v2646{padding-top:34px!important}.favorites-head-v2646{display:flex;align-items:end;justify-content:space-between;gap:24px;margin-bottom:24px}.favorites-head-v2646 h1{margin:5px 0 8px;font:800 clamp(34px,5vw,56px)/1.05 Manrope,Inter,sans-serif;letter-spacing:-1.5px}.favorites-head-v2646 p{margin:0;color:#8d99a1}.favorites-head-actions-v2646{display:flex;align-items:center;gap:12px;flex-wrap:wrap;justify-content:flex-end}.favorites-count-v2646{color:#dfff2f;font-size:12px;font-weight:800}.favorites-clear-v2646{min-height:40px;padding:0 13px;border:1px solid #39434a;border-radius:9px;background:#10161a;color:#d8dfe3;font-weight:800;cursor:pointer}.favorites-clear-v2646:hover{border-color:#dfff2f;color:#dfff2f}
.favorites-grid-v2646{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;padding-bottom:70px}.favorite-card-v2646{min-width:0;overflow:hidden;border:1px solid #263139;border-radius:14px;background:#101619}.favorite-image-v2646{position:relative;aspect-ratio:16/10;background:#0b1013}.favorite-image-v2646>a{display:block;width:100%;height:100%}.favorite-image-v2646 img{width:100%;height:100%;object-fit:cover}.favorite-info-v2646{display:grid;gap:7px;padding:16px}.favorite-info-v2646 small{color:#dfff2f;font-size:10px;font-weight:800}.favorite-info-v2646 h2{margin:0;font:800 19px/1.2 Manrope,Inter,sans-serif;letter-spacing:-.3px}.favorite-info-v2646 p{margin:0;color:#829099;font-size:11px}.favorite-info-v2646 strong{font-size:13px}.favorite-open-v2646{display:flex;align-items:center;justify-content:center;min-height:42px;margin-top:6px;border:1px solid #dfff2f;border-radius:9px;color:#dfff2f;text-decoration:none;font-size:12px;font-weight:850}.favorite-open-v2646:hover{background:#dfff2f;color:#090b0e}
.favorites-empty-v2646{grid-column:1/-1;display:grid;justify-items:center;text-align:center;padding:70px 20px;border:1px dashed #344047;border-radius:16px;background:#0d1215}.favorites-empty-v2646>span{color:#dfff2f;font-size:58px;line-height:1}.favorites-empty-v2646 h2{margin:12px 0 7px;font-size:24px}.favorites-empty-v2646 p{max-width:500px;margin:0 0 22px;color:#849099}.favorites-toast-v2646{position:fixed;z-index:10050;left:50%;bottom:max(24px,env(safe-area-inset-bottom));transform:translate(-50%,20px);padding:11px 16px;border:1px solid #dfff2f;border-radius:10px;background:#10171a;color:#f3f6f7;font-size:12px;font-weight:800;opacity:0;pointer-events:none;transition:.2s}.favorites-toast-v2646.show{transform:translate(-50%,0);opacity:1}
@media(max-width:1120px){.favorites-grid-v2646{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.favorites-page-v2646{padding-top:22px!important}.favorites-head-v2646{align-items:flex-start;flex-direction:column;gap:14px}.favorites-head-actions-v2646{width:100%;justify-content:space-between}.favorites-grid-v2646{grid-template-columns:1fr;gap:14px;padding-bottom:48px}.favorite-toggle-v2646{width:44px;height:44px;min-width:44px}.detail-main .favorite-toggle-detail-v2646{width:42px!important;min-width:42px!important;height:42px!important;min-height:42px!important}.favorites-toast-v2646{width:max-content;max-width:calc(100vw - 24px);text-align:center}}
@media(prefers-reduced-motion:reduce){.favorites-toast-v2646{transition:none}}

/* Desktop header: text-only Favorites without disturbing search or languages. */
@media(min-width:821px){
 body .header.header-v153 .header-layout-v2251{column-gap:24px!important}
 body .header.header-v153 .header-nav-v2251{gap:2px!important}
 body .header.header-v153 .header-nav-v2251 a{padding-left:7px!important;padding-right:7px!important;font-size:12px!important}
 body .header.header-v153 .header-right-v2251{grid-template-columns:210px auto!important}
 body .header.header-v153 .header-search-v2251,
 body .header.header-v153 .header-search-v2251:focus-within{width:210px!important;min-width:210px!important;max-width:210px!important}
}
@media(min-width:821px) and (max-width:1180px){
 body .header.header-v153 .header-layout-v2251{column-gap:14px!important}
 body .header.header-v153 .header-nav-v2251 a{padding-left:5px!important;padding-right:5px!important;font-size:11px!important}
 body .header.header-v153 .header-right-v2251{grid-template-columns:140px auto!important}
 body .header.header-v153 .header-search-v2251,
 body .header.header-v153 .header-search-v2251:focus-within{width:140px!important;min-width:140px!important;max-width:140px!important}
}

/* Catalog categories stay on one line and scroll only when truly needed. */
.catalog-toolbar-v2576 .category-row{flex-wrap:nowrap!important;overflow-x:auto!important;overflow-y:hidden!important;scrollbar-width:thin;scrollbar-color:#39444a transparent;padding-bottom:3px!important}
.catalog-toolbar-v2576 .category{flex:0 0 auto!important;white-space:nowrap!important}

/* V26.49: keep the Sort label in normal flow so it cannot overlap categories. */
.catalog-searchline-v2576{align-items:end!important}
.catalog-searchline-v2576 .search-box{align-self:end!important}
.sort-control-v2576{display:grid!important;grid-template-rows:auto 46px!important;gap:6px!important;align-self:end!important;margin:0!important;position:static!important}
.sort-control-v2576>span{position:static!important;inset:auto!important;display:block!important;min-height:12px!important;margin:0!important;line-height:12px!important;white-space:nowrap!important}
.sort-control-v2576 select{grid-row:2!important;margin:0!important}

/* Remove the legacy fixed-height cap that clipped the detail CTA. */
@media(min-width:901px){
 .detail-photo,.detail-main{height:auto!important;min-height:410px!important;max-height:none!important}
 .detail-main{overflow:hidden!important}
 .detail-photo img{height:100%!important;min-height:410px!important;max-height:none!important}
}
