/* Heartcar header v1. Namespaced to avoid legacy menu and scroll locks. */
.hc-header-accent{height:3px;background:#ed294b}
.hc-header{--hh-paper:#fff;--hh-ink:#202923;--hh-muted:#69716b;--hh-soft:#f2f5ef;--hh-rule:#e4e9e1;--hh-nav:#182a24;position:relative;z-index:1100;width:100%;max-width:2120px;margin:0 auto;padding:0 20px 10px;color:var(--hh-ink);background:var(--hh-paper);font-family:inherit;box-sizing:border-box}
.hc-header *,.hc-header *::before,.hc-header *::after{box-sizing:border-box}
.hc-header a{color:inherit;text-decoration:none}
.hc-header button,.hc-header input{font-family:inherit}
.hc-header button{cursor:pointer;touch-action:manipulation}
.hc-header svg{display:block;width:20px;height:20px;flex:none;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.hc-header__top{display:grid;grid-template-columns:minmax(188px,1fr) minmax(220px,640px) minmax(252px,1fr);align-items:center;gap:24px;min-height:94px;padding:14px 0}
.hc-header__brand{display:block;width:210px;max-width:100%}
.hc-header__brand img{display:block;width:210px;height:54px;max-width:100%;object-fit:contain}
.hc-header__search{display:flex;align-items:center;position:relative;min-width:0;gap:12px;height:48px;padding:0 5px 0 16px;margin:0;background:var(--hh-soft);color:var(--hh-muted);border-radius:14px}
.hc-header__search:focus-within{box-shadow:0 0 0 2px #d4dfd0}
.hc-header .hc-header__search input{display:block;min-width:0;flex:1;width:100%;height:44px;border:0;background:transparent;color:var(--hh-ink);font-size:15px;line-height:1.3;padding:0}
.hc-header__search input::placeholder{color:var(--hh-muted);opacity:1}
.hc-header .hc-header__search button{display:flex;align-items:center;justify-content:center;flex:none;width:40px;height:40px;border:0;border-radius:10px;background:var(--hh-paper);color:var(--hh-ink);padding:0}
.hc-header__shortcuts{display:flex;align-items:center;gap:8px;justify-content:flex-end;min-width:0}
.hc-header__shortcuts a{display:flex;align-items:center;justify-content:center;gap:9px;min-height:44px;padding:0 12px;font-size:14px;line-height:1.3;font-weight:700;white-space:nowrap;border-radius:12px}
.hc-header__shortcuts .hc-header__compare{background:var(--hh-soft)}
.hc-header__shortcuts a:hover,.hc-header__shortcuts a[aria-current]{background:var(--hh-rule)}
.hc-header__primary{display:flex;align-items:center;justify-content:space-between;gap:5px;min-height:60px;padding:7px;background:var(--hh-nav);color:#f9fbf5;border-radius:17px}
.hc-header__primary>a,.hc-header__primary>button{display:flex;align-items:center;justify-content:center;gap:7px;flex:1 1 auto;min-height:44px;padding:12px 15px;border:0;border-radius:11px;background:transparent;color:#f9fbf5;font-size:15px;font-weight:700;line-height:1.3;text-align:center;white-space:nowrap}
.hc-header__primary>a:hover,.hc-header__primary>button:hover{background:#ffffff14}
.hc-header__primary>a[aria-current="page"]{background:#f4f7ed;color:#1a2b20}
.hc-header__dot{display:block;width:6px;height:6px;flex:none;border-radius:50%;background:#ed294b}
.hc-header__more svg{width:15px;height:15px;transition:transform .18s}
.hc-header__more[aria-expanded="true"] svg{transform:rotate(180deg)}
.hc-header__mobile-actions,.hc-header__mobile-word{display:none}
.hc-header__menu{position:absolute;z-index:15;top:100%;left:20px;right:20px;padding:23px 26px;background:var(--hh-paper);color:var(--hh-ink);border:1px solid var(--hh-rule);border-radius:20px;box-shadow:0 18px 50px #13221c26}
.hc-header__menu[hidden]{display:none}
.hc-header__menu-head{display:flex;align-items:center;justify-content:space-between;gap:15px;padding-bottom:15px;font-size:18px;font-weight:700;line-height:1.3}
.hc-header__menu-head button{display:flex;align-items:center;justify-content:center;flex:none;width:44px;height:44px;padding:0;border:0;border-radius:50%;background:var(--hh-soft);color:var(--hh-ink)}
.hc-header__menu-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:26px}
.hc-header__menu-caption{margin:0 0 12px;font-size:11px;line-height:1.5;font-weight:700;letter-spacing:.8px;text-transform:uppercase;color:var(--hh-muted)}
.hc-header__menu-grid a{display:block;min-height:44px;padding:11px 0;font-size:15px;line-height:1.4;font-weight:500;overflow-wrap:anywhere}
.hc-header__menu-grid a:hover,.hc-header__menu-grid a[aria-current]{color:#d51b40}
.hc-header__gear{align-self:start;padding:20px;background:var(--hh-soft);border-radius:15px}
.hc-header__gear p{margin:14px 0 0;font-size:14px;line-height:1.5;color:var(--hh-muted)}
.hc-header a:focus-visible,.hc-header button:focus-visible{outline:3px solid #d92245;outline-offset:3px}
.hc-header__primary>a:focus-visible,.hc-header__primary>button:focus-visible{outline-color:#ffba70}
.hc-header input:focus-visible{outline:2px solid #75856d;outline-offset:2px;border-radius:4px}
.hc-header .hc-header__search .search-suggestions{position:absolute;z-index:25;top:calc(100% + 8px);left:0;right:0;background:#fff;border:1px solid var(--hh-rule);border-radius:14px;box-shadow:0 14px 32px #13221c20;overflow:hidden}
.hc-header .search-suggestion{padding:14px 16px;border-color:var(--hh-rule)}
.hc-header .search-suggestion strong{font-size:14px;line-height:1.4;font-weight:600}
.hc-header .search-suggestion small{font-size:11px;line-height:1.4;color:var(--hh-muted)}
.hc-header .search-suggestion:hover,.hc-header .search-suggestion.is-active{background:var(--hh-soft)}
/* Existing sort controls stay; the duplicate tiny search moves to the header. */
.hc-header~.subbar{width:100%;max-width:2120px;margin:0 auto;padding-left:20px;padding-right:20px}
.hc-header~.subbar .sub-actions.search-autocomplete-wrap{display:none}
@media(max-width:1199px){
 .hc-header__top{grid-template-columns:180px minmax(180px,1fr) auto;gap:16px}
 .hc-header__brand,.hc-header__brand img{width:180px;height:48px}
 .hc-header__shortcuts a{font-size:13px;padding:0 9px;gap:7px}
 .hc-header__primary>a,.hc-header__primary>button{font-size:13px;padding:12px 10px}
}
@media(max-width:900px){
 .hc-header__top{grid-template-columns:170px minmax(150px,1fr) auto;gap:12px}
 .hc-header__brand,.hc-header__brand img{width:170px;height:44px}
 .hc-header__shortcuts a{font-size:12px;padding:0 7px;gap:6px}
 .hc-header__primary .hc-header__tertiary{display:none}
 .hc-header__menu-grid{gap:18px}
}
@media(max-width:760px){
 .hc-header{padding:0 15px 8px}
 .hc-header__top{grid-template-columns:minmax(0,1fr) auto;gap:10px;min-height:82px;padding:12px 0}
 .hc-header__brand,.hc-header__brand img{width:172px;height:44px}
 .hc-header .hc-header__shortcuts{display:none}
 .hc-header__mobile-actions{display:flex;align-items:center;gap:7px;grid-column:2;grid-row:1}
 .hc-header__mobile-actions button{display:flex;align-items:center;justify-content:center;width:44px;height:44px;border:0;border-radius:13px;background:var(--hh-soft);color:var(--hh-ink);padding:0}
 .hc-header__mobile-actions button[aria-expanded="true"]{background:var(--hh-nav);color:#f9fbf5}
 .hc-header .hc-header__search{display:none;grid-column:1/-1;grid-row:2;min-width:0;margin-top:3px}
 .hc-header.is-search-open .hc-header__search{display:flex}
 .hc-header .hc-header__search input{font-size:16px}
 .hc-header .hc-header__search button{height:44px;width:44px}
 .hc-header__primary{gap:0;padding:5px;min-height:54px;border-radius:15px}
 .hc-header__primary>a,.hc-header__primary>button{font-size:13px;min-height:44px;padding:10px 8px;gap:5px;border-radius:10px}
 .hc-header__primary .hc-header__secondary,.hc-header__desktop-word{display:none}
 .hc-header__mobile-word{display:inline}
 .hc-header__menu{position:relative;top:auto;left:auto;right:auto;margin-top:10px;padding:18px 15px;border-radius:16px;box-shadow:none}
 .hc-header__menu-head{font-size:16px;padding-bottom:13px}
 .hc-header__menu-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 16px}
 .hc-header__menu-grid a{font-size:14px;min-height:44px}
 .hc-header__menu-caption{font-size:11px;letter-spacing:.4px;min-height:32px}
 .hc-header__gear{grid-column:1/-1;padding:15px;display:grid;grid-template-columns:1fr 1fr;gap:0 16px}
 .hc-header__gear .hc-header__menu-caption{grid-column:1/-1;min-height:0;margin-bottom:3px}
 .hc-header__gear p{display:none}
 .hc-header~.subbar{padding-right:15px;padding-left:15px}
}
@media(max-width:360px){
 .hc-header{padding-left:11px;padding-right:11px}
 .hc-header__top{gap:6px}
 .hc-header__brand,.hc-header__brand img{width:157px}
 .hc-header__mobile-actions{gap:5px}
 .hc-header__primary>a,.hc-header__primary>button{font-size:12px;padding-left:5px;padding-right:5px}
 .hc-header__menu{padding:14px 11px}
 .hc-header__menu-grid{gap:13px 10px}
 .hc-header__menu-grid a{font-size:13px}
}
@media(prefers-reduced-motion:reduce){.hc-header__more svg{transition:none}}
