/* Header only: keep the catalogue and checkout layouts independent. */
.header .nm-header-cart{display:inline-flex;align-items:center;justify-content:center;gap:7px;position:relative;flex-shrink:0;min-height:44px;color:var(--ink);white-space:nowrap}
.header .nm-cart-count{display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;padding:0 4px;border-radius:20px;background:var(--blue);color:#fff;font-size:11px;font-weight:700;line-height:1}
.header .nm-header-cart svg{flex-shrink:0}
@media(min-width:701px) and (max-width:1000px){
    .header .nm-header-cart{order:2}
    .header form.search{order:3;flex-basis:100%}
}
@media(max-width:700px){
    .topbar .wrap{justify-content:center;padding-block:8px}
    .topbar .wrap>span{display:none}
    .topbar .nm-header-phones{width:100%;justify-content:center;flex-wrap:nowrap;gap:20px;font-size:12px;line-height:20px}
    .topbar .nm-header-phones a{white-space:nowrap}
    .header .header-main{display:grid;grid-template-columns:minmax(0,1fr) 48px;gap:16px 10px;padding-block:18px 14px;position:relative}
    .header .brand-mark{grid-column:1;grid-row:1;justify-self:start;flex-direction:row;gap:9px;min-height:44px;max-width:none}
    .header .brand-mark .brand-emblem{width:44px;height:44px;flex:0 0 44px}
    .header .brand-mark .brand-caption{white-space:nowrap;width:auto;font-size:11px;line-height:1.45;letter-spacing:.3px}
    .header .header-actions{grid-column:1 / -1;grid-row:1;justify-self:end;width:auto;margin:0;gap:7px;flex-wrap:nowrap;align-items:center}
    .header .header-actions .nml-languages{display:flex;gap:1px;padding:3px;margin:0;border-radius:10px}
    .header .header-actions .nml-languages a{display:flex;align-items:center;justify-content:center;min-width:27px;height:32px;padding:0 4px;font-size:11px;line-height:1;border-radius:7px}
    .header .nm-theme-toggle{display:flex;align-items:center;justify-content:center;width:36px;min-width:36px;height:40px;padding:0;border-radius:10px}
    .header .nm-theme-toggle[hidden]{display:none}
    .header .nm-theme-icon{font-size:20px;line-height:1}
    .header .nm-theme-label{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
    .header form.search{grid-column:1;grid-row:2;order:initial;min-width:0;width:100%;height:48px;margin:0;border-radius:12px}
    .header form.search input{min-width:0;font-size:14px;padding:11px 12px}
    .header form.search button{padding:10px 14px;font-size:13px;flex-shrink:0}
    .header .nm-header-cart{grid-column:2;grid-row:2;width:48px;height:48px;border:1px solid var(--line);border-radius:12px;background:var(--surface);gap:0}
    .header .nm-cart-label{display:none}
    .header .nm-cart-count{position:absolute;top:-6px;right:-3px;min-width:19px;height:19px;font-size:10px;border:2px solid var(--surface)}
    .header .nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding-block:0 16px;border-top:0}
    .header .nav a{display:flex;align-items:center;justify-content:center;min-height:44px;padding:10px 6px;border:1px solid var(--line);border-radius:10px;background:var(--surface);font-size:12px;line-height:1.4;text-align:center}
    .header .nav a:first-child{background:var(--blue);border-color:var(--blue);color:#fff}
    .header .nav a:last-child:nth-child(odd){grid-column:1 / -1}
}
@media(max-width:360px){
    .header .brand-mark{gap:6px}
    .header .brand-mark .brand-emblem{width:34px;height:34px;flex-basis:34px}
    .header .brand-mark .brand-caption{font-size:9.5px;letter-spacing:.1px}
    .header .header-actions{gap:4px}
    .header .header-actions .nml-languages a{min-width:25px;padding-inline:3px}
}
