/* 0.2.84 — shared header / catalogue navigation. No product or checkout rules. */
body .ps-header{--ps-nav-ink:#242831;--ps-nav-muted:#717579;--ps-nav-accent:#b8450c;background:#fff;border-bottom:1px solid #e8e6e2!important;box-shadow:0 4px 18px #24283106!important}
body .ps-header-container{position:relative}
.ps-header-top{display:flex;align-items:center;gap:36px;min-height:92px;padding:12px 0}
body .ps-header .bp-logo{display:block;flex:0 0 182px}
body .ps-header .bp-logo img{width:182px;max-width:100%;height:auto;max-height:62px;object-fit:contain}
.ps-header-search{display:flex;align-items:center;gap:13px;flex:1;min-width:0;min-height:48px;padding:8px 8px 8px 18px;background:#f6f6f4;border:1px solid #e6e5df;border-radius:12px;color:#72736e;font:inherit;font-size:14px;text-align:left;cursor:pointer}
.ps-header-search>svg{width:22px;height:22px;flex-shrink:0;fill:none;stroke:#5f625e;stroke-width:1.6;stroke-linecap:round}
.ps-header-search>span:first-of-type{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;flex:1}
.ps-header-search .ps-search-label{padding:7px 14px;border-radius:7px;background:#fff;color:#363933;font-size:12px;font-weight:650;border:1px solid #e4e3de}
.ps-header-search:hover{background:#fffaf5;border-color:#d5a880}
.ps-header-actions{display:flex;align-items:center;gap:12px}
body .ps-header .ps-header-action{display:flex;flex-direction:column;gap:5px;width:auto;min-width:62px;height:58px;padding:5px 8px;color:#343832;border-radius:9px}
.ps-header-action .ps-action-label{font-size:11px;font-weight:550;white-space:nowrap;line-height:1.4}
body .ps-header .bp-badge{top:0;right:7px;background:#f26b21;min-width:16px;height:16px;font-size:10px}
.ps-menu-toggle{display:none}
.ps-main-nav{border-top:1px solid #eeeae5}
.ps-main-menu{display:flex;align-items:stretch;justify-content:space-between;gap:6px;list-style:none;margin:0;padding:7px 0}
.ps-main-menu-item{min-width:0}
.ps-main-menu summary,.ps-main-menu-link,.ps-all-products>a{min-height:44px;display:flex;align-items:center;gap:8px;padding:10px 12px;color:#333831;font-size:14px;font-weight:650;line-height:1.3;border:0;border-radius:8px;cursor:pointer;list-style:none;text-decoration:none}
.ps-main-menu summary::-webkit-details-marker,.ps-category-nav summary::-webkit-details-marker{display:none}
.ps-main-menu summary::marker,.ps-category-nav summary::marker{content:''}
.ps-main-menu .ps-nav-icon{display:none}
.ps-all-products>a{gap:10px;background:#262b28;color:#fff!important;padding:10px 18px}
.ps-all-products>a:hover{background:#b8450c}
.ps-main-menu summary:hover,.ps-main-menu-link:hover,.ps-main-menu-item.is-active>details>summary,.ps-main-menu details[open]>summary{background:#fff1e6;color:#9c3b0b}
.ps-nav-chevron{flex:0 0 18px;transition:transform .15s ease}
.ps-mega[open]>summary>.ps-nav-chevron,.ps-category-branch>details[open]>summary>.ps-nav-chevron{transform:rotate(180deg)}
.ps-mega-panel{position:absolute;z-index:4;left:0;right:0;top:100%;display:grid;grid-template-columns:230px minmax(0,1fr);gap:32px;padding:28px;background:#fff;border:1px solid #e8dfd5;border-top:3px solid #f0782d;border-radius:0 0 16px 16px;box-shadow:0 24px 40px #20242624;max-height:min(650px,calc(100dvh - 170px));overflow:auto;overscroll-behavior:contain}
.ps-mega-intro{padding:24px;background:linear-gradient(140deg,#fff3e6,#f9f8f4);border-radius:12px;align-self:start}
.ps-mega-illustration{display:flex;align-items:center;justify-content:center;width:70px;height:70px;margin-bottom:22px;background:#fff;border-radius:18px}
.ps-mega-illustration svg{width:56px;height:56px}
.ps-nav-eyebrow{display:block;font-size:10px;line-height:1.5;font-weight:750;letter-spacing:.12em;color:#9c3b0b}
.ps-mega-intro p{margin:8px 0 22px;font-size:24px;line-height:1.2;letter-spacing:-.02em;font-weight:750;color:#252b26}
.ps-mega-all{display:flex;gap:12px;justify-content:space-between;align-items:center;color:#9c3b0b;font-size:13px;font-weight:650;line-height:1.5}
.ps-mega-all:hover{text-decoration:underline;text-underline-offset:4px}
.ps-mega-grid{list-style:none;display:block;column-count:3;column-gap:24px;margin:0;padding:0}
.ps-mega-group{min-width:0;padding:0 0 8px;margin:0 0 12px;break-inside:avoid;border-bottom:1px solid #eeeae5}
.ps-mega-title{display:block;min-height:44px;padding:12px 8px;font-size:14px;font-weight:750;line-height:1.4;color:#292e2a;border-radius:7px}
.ps-mega-title:hover{background:#fff2e7;color:#9c3b0b}
.ps-nav-descendants{list-style:none;margin:0;padding:0 0 5px 8px}
.ps-nav-descendants a{display:block;padding:8px 4px;font-size:13px;font-weight:450;line-height:1.45;color:#626861;border-radius:5px}
.ps-nav-descendants a:hover{color:#9c3b0b;background:#fff6ef}
.ps-nav-descendants .ps-nav-descendants{margin-left:8px;border-left:1px solid #e7e5dd}
.ps-header a[aria-current="page"]{color:#9c3b0b;background:#fff1e6}
.ps-header .ps-all-products>a[aria-current="page"]{background:#262b28;color:#fff!important}
.ps-header .ps-all-products>a[aria-current="page"]:hover{background:#b8450c}
.ps-header :is(a,button,summary):focus-visible,.ps-category-nav :is(a,button,summary):focus-visible{outline:3px solid #b8450c;outline-offset:2px}
/* Custom WordPress primary menus remain supported. */
.ps-custom-nav{list-style:none;display:flex;flex-wrap:wrap;gap:8px;margin:0;padding:8px 0}
.ps-custom-nav li{position:relative;list-style:none}
.ps-custom-nav a{display:block;padding:12px;color:#292e2a;font-weight:650}
.ps-custom-nav .sub-menu{display:none;position:absolute;top:100%;left:0;min-width:220px;margin:0;padding:12px;background:#fff;border:1px solid #e5e3dc;box-shadow:0 12px 25px #20242620}
.ps-custom-nav li:hover>.sub-menu,.ps-custom-nav li:focus-within>.sub-menu{display:block}
/* One sidebar surface, enough room for names and reachable nested categories. */
body .bp-shop-shell:not(.bp-shop-shell--no-sidebar){grid-template-columns:294px minmax(0,1fr)!important;gap:28px!important}
body .bp-shop-sidebar{padding:0!important;background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;position:sticky!important;top:168px!important;min-width:0;max-height:none!important}
body.admin-bar .bp-shop-sidebar{top:200px!important}
.ps-category-nav{background:#fff;border:1px solid #e8e5dd;border-radius:14px;padding:18px 12px 12px;box-shadow:0 5px 20px #24283104}
.ps-category-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:0 6px 18px;margin-bottom:6px;border-bottom:1px solid #efede7}
.ps-category-heading h2{margin:3px 0 0;font-size:20px;font-weight:750;letter-spacing:-.02em;line-height:1.3;color:#262d28}
.ps-category-heading>a{font-size:11px;font-weight:600;color:#7a7167;white-space:nowrap}
.ps-category-heading>a:hover{color:#a23c0a}
.ps-category-list,.ps-category-list li{list-style:none;margin:0;padding:0}
.ps-category-list>.ps-category-branch+.ps-category-branch{margin-top:3px}
.ps-category-nav summary,.ps-category-leaf{display:flex;align-items:center;gap:9px;list-style:none;cursor:pointer;min-height:54px;padding:10px 8px;border-radius:9px;color:#30362f;font-size:14px;font-weight:650;line-height:1.4;text-decoration:none;background:transparent;border:0}
.ps-category-nav .ps-nav-icon{display:flex;justify-content:center;align-items:center;width:34px;height:38px;flex:0 0 34px;border-radius:9px;background:#fff2e6}
.ps-category-nav .ps-nav-icon svg{width:31px;height:31px}
.ps-category-name{min-width:0;flex:1;overflow-wrap:break-word}
.ps-category-count{flex-shrink:0;color:#7a7d75;font-size:11px;font-weight:500;font-variant-numeric:tabular-nums}
.ps-category-nav .ps-nav-chevron{width:16px;height:16px;flex-basis:16px;color:#7c8278}
.ps-category-nav summary:hover,.ps-category-leaf:hover{background:#f6f7f2;color:#9c3b0b}
.ps-category-branch>details[open]>summary{background:#fff0e3;color:#963c0f}
.ps-category-branch>details[open]>summary .ps-nav-icon{background:#fff9f4}
.ps-category-subtree{margin:5px 4px 12px 15px;padding:4px 0 2px 14px;border-left:1px solid #e7ddd1}
.ps-category-all{display:flex;align-items:center;gap:12px;min-height:38px;padding:8px 9px;font-size:12px;font-weight:600;line-height:1.4;color:#a34412;border-radius:7px}
.ps-category-all:hover{background:#fff3e7}
.ps-category-list--nested summary,.ps-category-list--nested .ps-category-leaf{padding:10px 9px;min-height:44px;font-size:13px;font-weight:500;line-height:1.45}
.ps-category-list--nested .ps-category-subtree{margin-left:8px;padding-left:10px}
.ps-category-nav a[aria-current="page"]{background:#fff0e3;color:#963c0f;font-weight:700}
.ps-category-mobile-toggle{display:none}
@media(min-width:1100px) and (max-width:1220px){.ps-main-menu summary,.ps-main-menu-link{font-size:13px;padding:10px 8px}.ps-header-top{gap:24px}.ps-header-actions{gap:4px}}
@media(min-width:980px) and (max-width:1199px){body .bp-shop-shell:not(.bp-shop-shell--no-sidebar){grid-template-columns:270px minmax(0,1fr)!important;gap:22px!important}body .bp-shop-content ul.products{grid-template-columns:repeat(3,minmax(0,1fr))!important}.ps-mega-panel{grid-template-columns:190px minmax(0,1fr);gap:20px;padding:20px}.ps-mega-grid{gap:10px}}
@media(max-width:1099px){
  body .ps-header .ps-header-container{width:min(calc(100% - 32px),var(--bp-container))}
  .ps-header-top{min-height:0;display:grid;grid-template-columns:70px 1fr auto;gap:12px;padding:12px 0}
  body .ps-header .bp-logo{justify-self:center;max-width:180px}
  body .ps-header .bp-logo img{width:156px;max-height:49px}
  .ps-header.ps-nav-ready .ps-menu-toggle{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:2px;width:52px;min-height:48px;padding:4px;border:0;border-radius:8px;background:#f4f4ef;color:#32372f;cursor:pointer;font:inherit;font-size:10px}
  .ps-menu-toggle svg{width:24px;height:24px}.ps-menu-cross{display:none}.ps-menu-toggle[aria-expanded="true"] .ps-menu-cross{display:block}.ps-menu-toggle[aria-expanded="true"] .ps-menu-bars{display:none}
  .ps-header-actions{gap:6px}body .ps-header .ps-header-action{min-width:36px;width:36px;height:44px;padding:8px 5px}
  .ps-header-action .ps-action-label{display:none}body .ps-header .bp-badge{right:-3px;top:0}
  .ps-header-search{grid-column:1/-1;grid-row:2;width:100%;min-height:42px;padding:6px 8px 6px 14px;font-size:13px;border-radius:9px}
  .ps-search-label{display:none}
  .ps-header.ps-nav-ready .ps-main-nav{display:none}.ps-header.ps-nav-ready .ps-main-nav.is-open{display:block}
  .ps-main-nav{max-height:calc(100dvh - 145px);overflow-y:auto;overscroll-behavior:contain;padding-bottom:12px}
  body.admin-bar .ps-main-nav{max-height:calc(100dvh - 191px)}
  .ps-main-menu{display:block;padding:12px 0;margin:0}.ps-main-menu-item{border-bottom:1px solid #edece5}.ps-all-products{margin-bottom:10px}
  .ps-all-products>a{justify-content:center;min-height:46px}
  .ps-main-menu summary{display:flex;gap:12px;padding:12px 10px;min-height:60px;font-size:15px}.ps-main-menu summary>span:nth-child(2){flex:1}
  .ps-main-menu .ps-nav-icon{display:flex;align-items:center;justify-content:center;background:#fff3e6;border-radius:10px;width:38px;height:38px;flex-shrink:0}.ps-main-menu .ps-nav-icon svg{width:34px;height:34px}
  .ps-mega-panel{position:static;display:block;padding:0 10px 16px;border:0;border-radius:0;box-shadow:none;max-height:none;overflow:visible}
  .ps-mega-intro{background:transparent;padding:8px 8px 12px;border-radius:0}
  .ps-mega-illustration,.ps-mega-intro .ps-nav-eyebrow,.ps-mega-intro p{display:none}.ps-mega-all{font-size:13px;justify-content:flex-start}
  .ps-mega-grid{display:grid;column-count:auto;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 16px}.ps-mega-title{font-size:14px;padding:12px 8px}.ps-nav-descendants a{min-height:40px}
  .ps-custom-nav{display:block}.ps-custom-nav .sub-menu{display:block;position:static;box-shadow:none;border:0;padding:0 0 0 15px}
}
@media(max-width:979px){
  body .bp-shop-shell:not(.bp-shop-shell--no-sidebar){grid-template-columns:minmax(0,1fr)!important;gap:18px!important;padding-top:20px!important}
  body .bp-shop-sidebar,body.admin-bar .bp-shop-sidebar{position:static!important;top:auto!important}
  .ps-category-nav{padding:0;border-radius:10px}
  .ps-category-heading{padding:16px;margin:0}
  .ps-category-nav.ps-nav-ready .ps-category-heading{display:none}
  .ps-category-nav.ps-nav-ready .ps-category-mobile-toggle{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:52px;width:100%;padding:13px 16px;border:0;background:#fff;color:#2d332b;border-radius:10px;font:inherit;font-size:14px;font-weight:650;text-align:left;cursor:pointer}
  .ps-category-toggle-action{display:flex;align-items:center;gap:8px;font-size:12px;color:#9c3b0b;white-space:nowrap}
  .ps-category-nav.ps-nav-ready:not(.is-open) #ps-category-tree{display:none}
  #ps-category-tree{padding:8px 12px 12px}
  .ps-category-nav.is-open .ps-category-mobile-toggle{border-radius:10px 10px 0 0;border-bottom:1px solid #eee9e1}
  .ps-category-nav.is-open .ps-category-toggle-action svg{transform:rotate(180deg)}
}
@media(max-width:480px){
  body .ps-header .ps-header-container{width:calc(100% - 24px)}
  .ps-header-top{grid-template-columns:44px minmax(0,1fr) 78px;gap:10px;padding:10px 0}
  .ps-header.ps-nav-ready .ps-menu-toggle{width:44px;min-height:44px}
  body .ps-header .bp-logo img{width:140px;max-height:45px}
  .ps-header-action[aria-label="Mano paskyra"]{display:none!important}.ps-header-actions{gap:6px}
  .ps-mega-grid{grid-template-columns:1fr;gap:4px}.ps-mega-panel{padding-left:8px;padding-right:8px}
  .ps-main-nav{max-height:calc(100dvh - 130px)}body.admin-bar .ps-main-nav{max-height:calc(100dvh - 176px)}
}
@media(prefers-reduced-motion:reduce){.ps-nav-chevron{transition:none}}

.ps-mobile-utilities{display:none}
@media(max-width:1099px){.ps-mobile-utilities{display:flex;gap:12px;padding:14px 0 4px;border-top:1px solid #eeeae5}.ps-mobile-utilities a{display:block;flex:1;padding:12px;text-align:center;background:#f6f6f2;border-radius:8px;color:#555d50;font-size:13px}}

.ps-header .ps-nav-chevron,.ps-category-nav .ps-nav-chevron{display:block;fill:none;stroke:none;min-width:16px;max-width:18px;max-height:18px}

@media(min-width:980px){body .bp-shop-sidebar{max-height:calc(100dvh - 184px)!important;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#d8d4cb transparent}body.admin-bar .bp-shop-sidebar{max-height:calc(100dvh - 216px)!important}}
