.elenpriv-menu .sub-menu .elenpriv-menu-heading{
  display:flex;align-items:center;justify-content:space-between;width:100%;gap:12px;
  padding:9px 16px;margin:0;border:0;border-radius:0;background:transparent;color:inherit;
  font-family:Arial,Helvetica,sans-serif;font-size:13px;line-height:inherit;text-align:left;cursor:pointer;
}
.elenpriv-menu .sub-menu .elenpriv-menu-heading::after{
  content:'';width:6px;height:6px;flex:0 0 auto;
  border-right:1.5px solid #777;border-bottom:1.5px solid #777;transform:rotate(-45deg);
}
.elenpriv-menu .elenpriv-menu-heading:hover{background:#f2f2f2}
.elenpriv-menu .elenpriv-menu-heading:focus-visible{outline:2px solid #d86f49;outline-offset:-3px}
.elenpriv-menu li.ep-menu-collapsed>.sub-menu{display:none!important}

.elenpriv-mobile-dashboard{display:flex;align-items:center;gap:12px;min-height:48px;margin-top:12px;padding:10px 12px;border-top:1px solid #ddd;color:#555;font-weight:600}
.elenpriv-mobile-dashboard svg{flex:0 0 23px}
.elenpriv-mobile-dashboard:focus-visible{outline:2px solid #d86f49;outline-offset:2px}

/* Keep the close action inside the scrolling panel, independent of viewport offsets. */
.elenpriv-mobile-menu .elenpriv-mobile-menu-head{height:44px!important;min-height:44px!important;margin:0 0 8px!important;padding:0!important;background:#f7f7f7!important;overflow:visible!important}
.elenpriv-mobile-menu .elenpriv-mobile-menu-head strong{display:block!important;padding:10px 52px 10px 8px;font-size:18px;line-height:24px;color:#555}
.elenpriv-mobile-menu .elenpriv-mobile-menu-close{position:absolute!important;left:auto!important;right:0!important;top:0!important;width:44px!important;height:44px!important;border-radius:50%!important;background:#fff!important;color:#555!important;font-size:32px!important;line-height:44px!important}
.elenpriv-mobile-menu .elenpriv-mobile-menu-close:focus-visible{outline:2px solid var(--ep-terracotta);outline-offset:-3px}

/* Desktop store navigation sits below the main header on every page. */
.elenpriv-navigation-panel{display:none}
@media(min-width:850px){
 body.elenpriv-store .elenpriv-topbar{display:none!important}
 .elenpriv-navigation-panel{display:block;position:relative;z-index:65;background:#f5f1eb;border-bottom:1px solid #e3dbd1;padding:12px 0}
 body.elenpriv-store .elenpriv-navigation-panel .elenpriv-nav{height:auto!important}
 body.elenpriv-store .elenpriv-navigation-panel .elenpriv-menu{height:auto!important;flex-wrap:wrap;justify-content:center;gap:6px 10px}
 body.elenpriv-store .elenpriv-navigation-panel .elenpriv-menu>li{height:auto!important}
 body.elenpriv-store .elenpriv-navigation-panel .elenpriv-menu>li>a{height:44px!important;padding:0 17px!important;border:0!important;border-radius:5px;color:#37312d;font-family:inherit;font-size:14px!important;font-weight:600!important;text-transform:none;transition:background .15s,color .15s}
 body.elenpriv-store .elenpriv-navigation-panel .elenpriv-menu>li>a:hover{background:#f0dfd2;color:#703d2a}
 body.elenpriv-store .elenpriv-navigation-panel .elenpriv-menu>li:is(.current-menu-item,.current-menu-ancestor,.current_page_parent)>a{background:var(--ep-terracotta);color:#fff}
 .elenpriv-navigation-panel .elenpriv-menu>li>a::after{color:currentColor}
 .elenpriv-navigation-panel .ep-wishlist-menu-item>a::before{content:'\2661';font-size:23px;line-height:1;margin-right:7px;font-weight:400}
 .elenpriv-navigation-panel a:focus-visible{outline:2px solid #8b3d23;outline-offset:3px}
}
body.elenpriv-store:is(.woocommerce-shop,.post-type-archive-product,.tax-product_cat,.tax-product_tag) .woocommerce-ordering{float:none!important;display:flex!important;justify-content:flex-end!important;width:100%!important;margin:0 0 24px!important;min-height:40px!important}
body.elenpriv-store:is(.woocommerce-shop,.post-type-archive-product,.tax-product_cat,.tax-product_tag) .elenpriv-woo-main{padding-top:20px!important}

/* Catalogue controls share one row; the native ordering form stays functional. */
@media(min-width:850px){
 .elenpriv-navigation-panel>.elenpriv-shell{display:flex;align-items:center;justify-content:space-between;gap:16px}
 body.elenpriv-store .elenpriv-navigation-panel .elenpriv-nav{min-width:0;flex:1}
 body.elenpriv-store .elenpriv-navigation-panel .elenpriv-menu{flex-wrap:nowrap;justify-content:flex-start;gap:4px}
 body.elenpriv-store .elenpriv-navigation-panel .elenpriv-menu>li>a{padding:0 10px!important;font-size:13px!important}
 .elenpriv-navigation-sort{flex:0 0 190px}
 body.elenpriv-store .elenpriv-navigation-sort .woocommerce-ordering{margin:0!important;width:190px!important;min-height:40px!important}
 body.elenpriv-store .elenpriv-navigation-sort .woocommerce-ordering select{width:190px!important;min-width:0!important;height:40px!important;border:1px solid #d8d1c8;border-radius:5px;background:#fff;color:#333;padding:0 10px;font-size:13px}
}
@media(min-width:850px) and (max-width:1099px){
 .elenpriv-navigation-panel>.elenpriv-shell{gap:10px}
 body.elenpriv-store .elenpriv-navigation-panel .elenpriv-menu{gap:2px}
 body.elenpriv-store .elenpriv-navigation-panel .elenpriv-menu>li>a{padding:0 6px!important;font-size:11px!important}
 .elenpriv-navigation-panel .ep-wishlist-menu-item>a::before{font-size:19px;margin-right:4px}
 .elenpriv-navigation-sort{flex-basis:170px}
 body.elenpriv-store .elenpriv-navigation-sort .woocommerce-ordering,body.elenpriv-store .elenpriv-navigation-sort .woocommerce-ordering select{width:170px!important}
}
@media(max-width:849px){
 .elenpriv-navigation-panel:has(.elenpriv-navigation-sort){display:block;background:#fff;padding:12px 0 0}
 .elenpriv-navigation-panel .elenpriv-nav{display:none}
 body.elenpriv-store .elenpriv-navigation-sort .woocommerce-ordering{margin:0!important}
}

/* Match the gallery spacing between the mobile sorter and the product grid. */
@media (max-width: 700px) {
    body.elenpriv-store:is(.woocommerce-shop,.post-type-archive-product,.tax-product_cat,.tax-product_tag) .elenpriv-woo-main {
        padding-top: 0 !important;
    }

    body.elenpriv-store:is(.woocommerce-shop,.post-type-archive-product,.tax-product_cat,.tax-product_tag) .elenpriv-navigation-sort .woocommerce-ordering select {
        height: 40px !important;
    }
}

/* Keep navigation anchored left, including the old intermediate breakpoint. */
@media(min-width:850px){
 html body.elenpriv-store .elenpriv-navigation-panel .elenpriv-menu{justify-content:flex-start!important;margin-left:0!important;padding-left:0!important}
 .elenpriv-navigation-panel>.elenpriv-shell{width:min(calc(100vw - 34px),1840px)!important}
 body.elenpriv-store .elenpriv-navigation-panel .elenpriv-menu>li>a{border-radius:0;background:transparent;border-bottom:2px solid transparent!important}
 body.elenpriv-store .elenpriv-navigation-panel .elenpriv-menu>li:is(.current-menu-item,.current-menu-ancestor,.current_page_parent)>a{background:transparent!important;color:var(--ep-terracotta)!important;border-bottom-color:var(--ep-terracotta)!important}
 body.elenpriv-store .elenpriv-navigation-panel .elenpriv-menu>li>a:hover{background:transparent;color:var(--ep-terracotta);border-bottom-color:var(--ep-terracotta)!important}
 html body.elenpriv-store .elenpriv-navigation-panel .elenpriv-menu>li>a::after{color:currentColor!important}
}

@media(min-width:850px){
 body.elenpriv-store .elenpriv-navigation-panel .elenpriv-menu>li:is(.current-menu-item,.current-menu-ancestor,.current_page_parent)>a{border-bottom-color:transparent!important;color:var(--ep-terracotta)!important}
 body.elenpriv-store .elenpriv-navigation-panel .elenpriv-menu>li>a:hover{border-bottom-color:var(--ep-terracotta)!important;color:var(--ep-terracotta)!important}
}

/* Fifteen catalogue products form three complete rows on tablets/desktops. */
@media(min-width:768px){
 html body.elenpriv-store:is(.woocommerce-shop,.post-type-archive-product,.tax-product_cat,.tax-product_tag) ul.products{grid-template-columns:repeat(5,minmax(0,1fr))!important}
}

/* Readable navigation and ordering controls. */
body.elenpriv-store .elenpriv-navigation-sort .woocommerce-ordering select{font-size:16px!important}
@media(min-width:850px){
 body.elenpriv-store .elenpriv-navigation-panel .elenpriv-menu>li>a{font-size:16px!important}
 body.elenpriv-store .elenpriv-navigation-panel .elenpriv-menu .sub-menu a,body.elenpriv-store .elenpriv-navigation-panel .elenpriv-menu .sub-menu button{font-size:15px!important;line-height:1.4}
}
@media(min-width:850px) and (max-width:1099px){
 body.elenpriv-store .elenpriv-navigation-panel .elenpriv-menu>li>a{font-size:14px!important}
 .elenpriv-navigation-sort{flex-basis:150px}
 body.elenpriv-store .elenpriv-navigation-sort .woocommerce-ordering,body.elenpriv-store .elenpriv-navigation-sort .woocommerce-ordering select{width:150px!important}
}

/* Mobile menu readability: +2px for links and nested categories. */
@media(max-width:849px){
 body.elenpriv-store .elenpriv-mobile-menu .elenpriv-mobile-menu-list .ep-mobile-root-card>a{font-size:17px!important}
 body.elenpriv-store .elenpriv-mobile-menu .elenpriv-mobile-menu-list .ep-mobile-category-card>a,
 body.elenpriv-store .elenpriv-mobile-menu .elenpriv-mobile-menu-list .ep-mobile-category-card>.sub-menu>li>a,
 body.elenpriv-store .elenpriv-mobile-menu .elenpriv-mobile-menu-list .ep-mobile-flat-link>a{font-size:16px!important}
 body.elenpriv-store .elenpriv-mobile-menu .elenpriv-mobile-dashboard{font-size:16px!important}
}
