/* Compact and readable mobile header. Desktop remains unchanged. */
@media(max-width:760px){
 .sp-header-inner.sp-header-v2{display:flex!important;flex-wrap:wrap!important;align-items:center;column-gap:10px;row-gap:11px;min-height:0;padding:10px 0 13px}
 .sp-header-v2 .sp-brand{order:1;flex:1 1 auto;max-width:calc(100% - 153px);min-width:0}
 .sp-header-v2 .sp-brand img{max-width:145px!important;max-height:56px!important;width:auto;height:auto;object-fit:contain}
 .sp-header-v2 .sp-actions{order:2;flex:0 0 auto;display:flex;gap:9px!important;margin-inline-start:auto;align-items:center}
 .sp-header-v2 .sp-actions .sp-account-link{display:flex!important;align-items:center;justify-content:center;width:34px;height:38px}
 .sp-header-v2 .sp-actions .sp-account-link svg{width:23px;height:23px}
 .sp-header-v2 .sp-actions .sp-cart-link{display:flex;align-items:center;justify-content:center;width:36px;height:38px}
 .sp-header-v2 .sp-actions .sp-cart-link svg{width:26px;height:26px}
 .sp-header-v2 .sp-actions .sp-menu-toggle{width:34px;height:38px;display:flex;align-items:center;justify-content:center;font-size:25px;padding:0}
 .sp-header-v2 .sp-header-search{display:grid!important;order:3;flex:0 0 100%;width:100%;max-width:100%;height:auto!important;min-height:0;grid-template-columns:minmax(0,1fr) 85px;grid-template-rows:46px 39px;gap:8px 0;align-items:stretch;position:relative;outline:none!important;margin:0}
 .sp-header-v2 .sp-header-search input[name="s"]{grid-column:1;grid-row:1;width:100%;min-width:0;height:46px;flex:none;padding:0 13px;font-size:15px!important;line-height:1.2;border:1px solid #c9d4cb;border-radius:8px 0 0 8px!important;background:#fff;color:#193c2e;outline:none!important;box-shadow:none!important}
 .sp-header-v2 .sp-header-search input[name="s"]:focus{border-color:#2d7450!important;box-shadow:inset 0 0 0 1px #2d7450!important}
 .sp-header-v2 .sp-header-search button[type="submit"]{grid-column:2;grid-row:1;width:85px;min-width:0;height:46px;border-radius:0 8px 8px 0!important;font-size:14px;padding:0 8px}
 .sp-header-v2 .sp-header-search .sp-search-category-label{display:flex!important;grid-column:1/-1;grid-row:2;width:100%;height:39px;min-height:39px;flex:none;min-width:0;border:1px solid #d9e3d9!important;border-radius:8px!important;background:#f4f8f3;align-items:center}
 .sp-header-v2 .sp-header-search .sp-search-category-label select{width:100%;height:100%;font-size:13px!important;font-weight:650;padding:0 35px 0 13px!important;white-space:nowrap;text-overflow:ellipsis;color:#204532}
 .sp-header-v2 .sp-header-search .sp-search-category-label::before{content:'Category:';position:absolute;inset-inline-start:12px;top:50%;transform:translateY(-50%);display:none}
 .sp-header-v2 .sp-header-search .sp-search-category-label::after{font-size:18px;inset-inline-end:14px}
 .sp-header-v2 .sp-header-search .sp-live-results{top:calc(100% + 5px);inset-inline:0;max-width:100%;max-height:min(380px,55dvh)}
 .sp-header-v2 .sp-header-search:focus-within{outline:none!important;box-shadow:none!important}
 .sp-mobile-whatsapp{inset-inline-end:17px;bottom:calc(78px + env(safe-area-inset-bottom,0px));width:52px;height:52px;z-index:72}
 body:has(input:focus,textarea:focus,select:focus) .sp-mobile-whatsapp{display:none!important}
}
@media(max-width:360px){
 .sp-header-v2 .sp-brand img{max-width:119px!important}
 .sp-header-v2 .sp-actions{gap:4px!important}
 .sp-header-v2 .sp-header-search{grid-template-columns:minmax(0,1fr) 72px}
 .sp-header-v2 .sp-header-search button[type="submit"]{width:72px;font-size:12px}
}
/* v4.7: single-row mobile search; category browsing stays inside the menu. */
@media(max-width:760px){
 html,body,body .sp-page-content,body .sp-woo,body .site-main,body .site-content,body .content-area,body.woocommerce-page .woocommerce,body:not(.home) .sp-page-banner{background:#fff!important;background-color:#fff!important}
 .sp-header{background:#fff!important}
 .sp-header:focus-within{z-index:151}
 .sp-header-v2 .sp-header-search{grid-template-rows:47px!important;grid-template-columns:minmax(0,1fr) 82px!important;gap:0!important;height:47px!important;max-height:47px}
 .sp-header-v2 .sp-header-search input[name="s"]{height:47px!important;grid-row:1;grid-column:1;min-width:0}
 .sp-header-v2 .sp-header-search button[type="submit"]{height:47px!important;grid-row:1;grid-column:2;width:82px!important}
 .sp-header-v2 .sp-header-search .sp-search-category-label{display:none!important}
 .sp-header-v2 .sp-header-search .sp-live-results{top:calc(100% + 5px)!important;z-index:230}
 .sp-header-v2 .sp-actions .sp-account-link{display:flex!important}
 /* Hide the redundant green category header strip; hamburger opens menu. */
 .sp-nav-shell .sp-category-trigger{display:none!important}
 .sp-nav-shell .sp-nav-inner{min-height:0!important;height:0!important}
 .sp-nav-shell{height:0!important;min-height:0!important;border:0!important}
 .sp-nav-shell .sp-nav.is-open{display:block;z-index:155;top:auto;left:0;right:0;box-shadow:0 12px 28px #173f3230}
 .sp-mobile-whatsapp{bottom:calc(20px + env(safe-area-inset-bottom,0px));inset-inline-end:18px;z-index:72}
 body:has(input:focus,textarea:focus,select:focus) .sp-mobile-whatsapp{display:none!important}
}
