/* smartia.WEB header 1.3.0: host palette and safe areas, no decorative edge rails. */
html:has(.smartia-web-header){background:var(--web-header-top-color,#203c2d);color-scheme:light}
body:has(.smartia-web-header){background:var(--cream,#f8f5ed)}
.smartia-web-topbar{position:sticky;top:0;z-index:30;padding-top:calc(11px + env(safe-area-inset-top,0px));padding-left:max(5%,env(safe-area-inset-left,0px));padding-right:max(5%,env(safe-area-inset-right,0px))}
.smartia-web-header .header-icon{display:inline-flex;align-items:center;justify-content:center;flex:0 0 44px;width:44px;min-width:44px;height:44px;min-height:44px;padding:0;border:1px solid var(--line,#d7ddcf);border-radius:4px;color:var(--green,#203c2d);-webkit-text-fill-color:currentColor;background:transparent;appearance:none;-webkit-appearance:none;box-shadow:none;text-decoration:none}
.smartia-web-header .header-icon svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
.smartia-web-header .header-icon:hover{background:#e8ecdf}
.smartia-web-header .cart-link{background:var(--green,#203c2d);color:var(--cream,#f8f5ed);border-color:transparent}
.smartia-web-header .cart-link:hover{background:#37573d}
.smartia-web-header .menu-toggle{color:var(--green,#203c2d);-webkit-text-fill-color:var(--green,#203c2d)}
.smartia-web-header .menu-toggle[aria-expanded=true]{background:#e8ecdf}
@media(min-width:901px){.smartia-web-header:not([data-web-menu-owner=host]) .menu-toggle{display:none}}
@media(max-width:620px){.smartia-web-topbar{padding-top:calc(9px + env(safe-area-inset-top,0px))}.smartia-web-header .header-actions{gap:6px}.smartia-web-header .header-icon{width:44px;min-width:44px;flex-basis:44px;height:44px}.smartia-web-header:not([data-web-menu-owner=host]) .brand{font-size:29px}.smartia-web-header:not([data-web-menu-owner=host]) .brand img{width:34px;height:34px}}
@media(max-width:360px){.smartia-web-header{padding-left:12px;padding-right:12px;gap:8px}.smartia-web-header .header-actions{gap:4px}.smartia-web-header:not([data-web-menu-owner=host]) .brand{font-size:25px;gap:6px}.smartia-web-header:not([data-web-menu-owner=host]) .brand img{width:30px;height:30px}.smartia-web-header:not([data-web-menu-owner=host]) .brand small{font-size:5px}}
@media(max-width:620px){.smartia-web-topbar>span:first-child{display:inline}.smartia-web-topbar>span:not(:first-child){display:none}}

/* Host adapters keep their palette, menu owner and available controls. */
.smartia-web-header[data-web-menu-owner=host]{--green:var(--ink,#173a27)}
[data-web-footer-identity] .web-brand-slogan{font:500 12px/1.4 var(--sans,system-ui);letter-spacing:0;text-transform:none;color:inherit;max-width:24ch;margin-top:6px}
.footer-top:has([data-web-footer-identity]){grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
[data-web-footer-identity=stacked]{display:flex;flex-direction:column;align-items:flex-start;gap:8px}
[data-web-footer-identity=stacked] p{margin:0;font:500 14px/1.4 var(--sans,system-ui)}
@media(max-width:1060px){
.smartia-web-header .header-inner:has(>.header-tools){display:flex;gap:12px}
.smartia-web-header .header-inner:has(>.header-tools)>.brand{order:0;margin-left:0;margin-right:auto;min-width:0}
.smartia-web-header .header-inner:has(>.header-tools>[data-language])>.brand span{display:none}
.smartia-web-header .header-inner:has(>.header-tools)>.header-tools{order:1;margin:0;gap:6px}
.smartia-web-header .header-inner:has(>.header-tools)>.menu-toggle{order:2}
}
@media(max-width:760px){.footer-top:has([data-web-footer-identity]){grid-template-columns:1fr}}
@media(max-width:400px){.smartia-web-header .header-inner:has(>.header-tools){gap:8px}}

/* The shared account entry is independent of the host menu controller. */
a.web-account-link{display:inline-flex;align-items:center;justify-content:center;flex:0 0 44px;width:44px;min-width:44px;height:44px;min-height:44px;padding:0;border:1px solid var(--line,var(--line-2,#d7ddcf));border-radius:4px;color:var(--ink,var(--ink-2,#203c2d));background:transparent;text-decoration:none;box-shadow:none}
a.web-account-link svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
a.web-account-link:hover{background:color-mix(in srgb,currentColor 8%,transparent)}
a.web-account-link:focus-visible{outline:2px solid currentColor;outline-offset:3px}
.smartia-web-header .header-inner>.header-tools{display:flex;align-items:center;gap:6px;flex-shrink:0}
/* Alpantek retains its own menu owner and palette. */
.topbar .header-tools>a.web-account-link{width:44px;min-width:44px;height:44px;min-height:44px;border:1px solid var(--line-2,#d7ddcf);color:var(--ink-2,#203c2d)}

.smartia-web-header a.web-account-link{color:inherit;-webkit-text-fill-color:currentColor;border-color:color-mix(in srgb,currentColor 25%,transparent)}
.smartia-web-header[data-web-menu-owner=host] .menu-toggle{color:inherit;-webkit-text-fill-color:currentColor}

@media(max-width:1060px){.smartia-web-header .header-inner:has(>.header-tools)>.menu-toggle{margin:0;min-width:44px;min-height:44px;flex-shrink:0}}
