/* Shared navigation and UI consistency layer — intentionally loaded last. */
:root{--ui-green:#087a52;--ui-green-dark:#07583d;--ui-ink:#173326;--ui-border:#dfe9e2;--ui-surface:#fff}

/* Every page uses the same navigation typography and vertical rhythm. */
.site-header .main-nav,
.blog-header .blog-top-nav{align-items:center;justify-content:center;gap:clamp(8px,.9vw,16px);min-width:0}
.site-header .main-nav>a,
.blog-header .blog-top-nav>a{display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:7px 9px;border-radius:9px;color:#34483c!important;font-size:12.5px!important;font-weight:750!important;line-height:1.2!important;letter-spacing:0!important;text-decoration:none;white-space:nowrap}
.site-header .main-nav>a:hover,
.blog-header .blog-top-nav>a:hover{background:#f0f7f2;color:var(--ui-green)!important}
.site-header .main-nav>a[aria-current="page"],
.blog-header .blog-top-nav>a[aria-current="page"]{background:#edf6f0;color:var(--ui-green)!important}
.site-header .main-nav>a.nav-shop-link,
.blog-header .blog-top-nav>a.nav-shop-link{display:inline-flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;min-height:38px;line-height:1.05!important}
.site-header .nav-shop-label,
.blog-header .nav-shop-label{display:block;font-size:12.5px!important;font-weight:750!important;line-height:1.15!important;color:inherit;letter-spacing:0!important}
.site-header .nav-shop-demo,
.blog-header .nav-shop-demo{display:block;margin:0;font-size:9px!important;font-weight:650!important;line-height:1.1!important;letter-spacing:.015em;color:#7e9185}
.site-header .main-nav>a.nav-catalog-link{background:#edf6f0;color:var(--ui-green)!important}
.site-header .nav-wrap{position:relative;gap:clamp(10px,1.3vw,22px)}
.site-header .main-nav{flex:1 1 auto;overflow:visible}
.site-header .nav-actions{flex:0 0 auto}
.site-header .menu-toggle,.global-menu-toggle{width:42px;height:42px;min-width:42px;min-height:42px;align-items:center;justify-content:center;gap:4px;border:1px solid #dbe6dd;border-radius:11px;background:#fff;cursor:pointer}
.site-header .menu-toggle span,.global-menu-toggle span{display:block;width:18px;height:2px;margin:0 auto;border-radius:2px;background:#173b2a}
.global-menu-toggle{display:none;flex-direction:column;padding:8px}

/* Blog, policy and 404 headers get the same responsive menu behavior. */
.blog-header .blog-header-inner{position:relative;max-width:1240px;width:calc(100% - 48px);gap:clamp(10px,1.3vw,22px)}
.blog-header .blog-top-nav{flex:1 1 auto;margin-left:auto}
.blog-header .blog-header-cta{flex:0 0 auto;white-space:nowrap}

/* One shared footer link scale and spacing across all sections. */
.unified-footer-col>a{display:block;font-size:12px!important;line-height:1.5!important;font-weight:600!important;letter-spacing:0!important}
.shop-footer-nav{display:flex;flex-direction:column;align-items:flex-start;gap:9px}
.shop-footer-nav>a{font-size:12px!important;line-height:1.5!important;font-weight:600!important;color:#d5e5d9;text-decoration:none}
.shop-footer-nav>a:hover{color:#fff;text-decoration:underline;text-underline-offset:3px}

@media(max-width:1100px){
  .site-header .nav-wrap{position:relative;min-height:68px}
  .site-header .menu-toggle{display:flex}
  .site-header .main-nav{display:none!important;position:absolute;top:calc(100% + 1px);left:0;right:0;z-index:600;max-height:calc(100dvh - 90px);overflow-y:auto;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:2px;padding:10px 13px 14px;border:1px solid #e1e9e2;border-top:0;border-radius:0 0 15px 15px;background:#fff;box-shadow:0 16px 35px rgba(17,48,29,.14)}
  .site-header .main-nav.is-open{display:flex!important}
  .site-header .main-nav>a{display:flex;align-items:center;justify-content:flex-start;width:100%;min-height:44px;padding:11px 12px;border-bottom:1px solid #eef2ee;border-radius:8px;font-size:14px!important;line-height:1.25!important}
  .site-header .main-nav>a.nav-shop-link{align-items:flex-start;min-height:46px;gap:2px}
  .site-header .nav-shop-label{font-size:14px!important}
  .site-header .nav-shop-demo{font-size:9px!important}
  .global-menu-toggle{display:flex}
  .blog-header .blog-header-inner{width:calc(100% - 32px);min-height:68px;padding:8px 0;gap:10px}
  .blog-header .blog-brand{flex:0 1 190px!important;width:190px!important}
  .blog-header .blog-brand img{width:190px!important}
  .blog-header .global-menu-toggle{flex:0 0 42px;order:2}
  .blog-header .blog-header-cta{order:3;margin-left:auto;padding:10px 12px;font-size:11px}
  .blog-header .blog-top-nav{display:none!important;position:absolute;top:calc(100% + 8px);left:0;right:0;z-index:650;max-height:calc(100dvh - 100px);overflow-y:auto;flex-direction:column;align-items:stretch;gap:2px;margin:0;padding:10px 13px 14px;border:1px solid #e1e9e2;border-radius:0 0 15px 15px;background:#fff;box-shadow:0 16px 35px rgba(17,48,29,.14)}
  .blog-header .blog-top-nav.is-open{display:flex!important}
  .blog-header .blog-top-nav>a{display:flex;width:100%;min-height:44px;align-items:center;justify-content:flex-start;padding:11px 12px;border-bottom:1px solid #eef2ee;border-radius:8px;font-size:14px!important}
  .blog-header .blog-top-nav>a.nav-shop-link{align-items:flex-start;gap:2px}
  .blog-header .nav-shop-label{font-size:14px!important}
  .blog-header .nav-shop-demo{font-size:9px!important}
}
@media(max-width:520px){
  .site-header .nav-wrap{gap:8px}
  .site-header .brand,.site-header .nav-wrap>.brand{flex:0 1 152px!important;width:152px!important}
  .site-header .brand img,.site-header .nav-wrap>.brand img{width:152px!important}
  .site-header .nav-actions{gap:7px}
  .site-header .main-nav{left:-2px;right:-2px}
  .blog-header .blog-header-inner{width:calc(100% - 24px);gap:8px}
  .blog-header .blog-brand{flex:0 1 154px!important;width:154px!important}
  .blog-header .blog-brand img{width:154px!important}
  .blog-header .blog-header-cta{padding:9px 10px;font-size:10px}
  .unified-footer-col>a{font-size:12px!important}
}

/* Shop catalog toolbar: compact controls; no inherited flex-basis-as-height bug. */
.shop-page .shop-catalog-head-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;min-width:0}
.shop-page .shop-filter-toggle{min-height:42px;height:42px;flex:0 0 auto;white-space:nowrap}
.shop-page .shop-sort-label{display:flex;flex-direction:row;align-items:center;justify-content:flex-end;gap:8px;min-width:0;min-height:42px;height:42px;white-space:nowrap}
.shop-page .shop-sort-label select{display:block;flex:0 1 210px;width:210px;max-width:210px;min-width:0;height:42px;min-height:42px;max-height:42px;line-height:1.2;padding:0 30px 0 12px}

/* Search is sticky by itself. Result count stays in normal flow and cannot cover headings. */
.shop-page .shop-search-sticky{position:sticky;top:70px;z-index:320;width:100%;padding:8px 0;background:rgba(248,250,247,.95);border-bottom:1px solid rgba(221,232,223,.8);backdrop-filter:blur(14px)}
.shop-page .shop-search-sticky-inner{display:block}
.shop-page .shop-search-sticky .shop-search-box{width:100%;max-width:none}
.shop-page .shop-result-meta{position:static;display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:10px;width:min(1480px,calc(100% - 64px));max-width:1480px;min-width:0;margin:9px auto 14px;padding:0;background:none}
.shop-page .shop-result-meta b{font-size:12px;line-height:1.4}
.shop-page .shop-result-meta span{font-size:10px;line-height:1.4}

@media(max-width:980px){
  .shop-page .shop-search-sticky{top:62px;padding:6px 0}
  .shop-page .shop-result-meta{width:calc(100% - 32px);margin:7px auto 12px}
}
@media(max-width:620px){
  .shop-page .shop-catalog-head-actions{display:flex!important;flex-direction:row!important;flex-wrap:nowrap;align-items:center!important;justify-content:space-between;gap:9px;width:100%;min-height:42px;height:42px}
  .shop-page .shop-filter-toggle{display:inline-flex!important;flex:0 0 auto;width:auto;min-width:104px;max-width:46%;height:42px;min-height:42px;align-items:center;justify-content:center;padding:0 12px;font-size:12px;line-height:1;white-space:nowrap}
  .shop-page .shop-sort-label{display:flex!important;flex:1 1 auto;flex-direction:row!important;align-items:center!important;justify-content:flex-end;gap:6px;min-width:0;min-height:42px;height:42px;font-size:10px;line-height:1.1;white-space:nowrap}
  .shop-page .shop-sort-label select{display:block;flex:1 1 0!important;width:auto!important;max-width:175px!important;min-width:0!important;height:42px!important;min-height:42px!important;max-height:42px!important;margin:0;padding:0 24px 0 8px;font-size:10px!important;line-height:1.1}
  .shop-page .shop-search-sticky{top:58px;padding:5px 0}
  .shop-page .shop-search-sticky-inner{width:calc(100% - 28px);max-width:100%}
  .shop-page .shop-search-sticky .shop-search-box{display:flex;min-height:46px;height:46px;max-height:46px;width:100%;padding:0 7px 0 11px}
  .shop-page .shop-search-sticky .shop-search-box input{height:42px;min-height:42px;font-size:12px}
  .shop-page .shop-search-sticky .shop-search-submit{min-height:34px;height:34px;padding:0 12px;font-size:10px}
  .shop-page .shop-result-meta{display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:8px;width:calc(100% - 28px);margin:7px auto 12px;padding:0}
  .shop-page .shop-result-meta b{font-size:10px;line-height:1.3}
  .shop-page .shop-result-meta span{font-size:9px;line-height:1.3;text-align:right}
  /* Thumb-friendly horizontal category cards; preserve icon size and readable labels. */
  .shop-page .shop-category-tiles{display:flex!important;flex-wrap:nowrap;gap:8px;width:100%;max-width:100%;overflow-x:auto!important;overflow-y:hidden;padding:2px 1px 10px;scroll-snap-type:x mandatory;scroll-padding-inline:1px;overscroll-behavior-x:contain;scrollbar-width:none;-webkit-overflow-scrolling:touch}
  .shop-page .shop-category-tiles::-webkit-scrollbar{display:none}
  .shop-page .shop-category-tile{display:flex;flex:0 0 128px;min-width:128px;min-height:82px;max-height:82px;flex-direction:row;align-items:center;justify-content:flex-start;gap:9px;padding:10px;border-radius:13px;scroll-snap-align:start}
  .shop-page .shop-cat-icon{display:grid;flex:0 0 36px;width:36px;height:36px;place-items:center;border-radius:11px}
  .shop-page .shop-cat-svg{width:20px;height:20px}
  .shop-page .shop-category-tile b{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;text-align:left;font-size:10px;line-height:1.2}
  .shop-page .shop-category-tile small{display:none}
  /* Bottom sheet should use a sensible part of the viewport, not almost the whole screen. */
  .shop-page .shop-filter-panel{position:fixed!important;inset:auto 0 0!important;top:auto!important;width:100%!important;max-width:100%!important;height:auto!important;max-height:min(74dvh,640px)!important;overflow-x:hidden!important;overflow-y:auto!important;overscroll-behavior:contain;padding:12px 16px max(12px,env(safe-area-inset-bottom))!important;border-radius:20px 20px 0 0!important}
  .shop-page .shop-filter-top{position:sticky;top:-12px;z-index:4;padding:7px 0 10px;background:#fff}
  .shop-page .shop-filter-group{padding:10px 0}
  .shop-page .shop-filter-group h3{margin-bottom:8px;font-size:12px;line-height:1.3}
  .shop-page .shop-filter-options{gap:6px}
  .shop-page .shop-check{min-height:36px;padding:7px 8px;font-size:11px;line-height:1.25}
  .shop-page .shop-filter-actions{position:sticky;bottom:-12px;z-index:5;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;margin:10px -16px -12px;padding:10px 16px max(11px,env(safe-area-inset-bottom));background:rgba(255,255,255,.98);backdrop-filter:blur(12px)}
  .shop-page .shop-filter-apply{min-height:44px;height:44px;font-size:12px}
  .shop-page .shop-filter-reset-mobile{min-height:44px;height:44px;padding-inline:12px;font-size:11px}
}
@media(max-width:370px){
  .shop-page .shop-filter-toggle{min-width:96px;padding-inline:9px;font-size:11px}
  .shop-page .shop-sort-label{gap:4px;font-size:9px}
  .shop-page .shop-sort-label select{max-width:145px!important;font-size:9px!important}
  .shop-page .shop-category-tile{flex-basis:116px;min-width:116px;padding:8px;gap:7px}
}
@media(prefers-reduced-motion:reduce){.shop-page .shop-search-sticky,.shop-page .shop-filter-panel{scroll-behavior:auto;transition:none!important}}
