/* Store header and catalog refinements, isolated from the editorial website. */
body.nb-shop-header :is(#site-header, .header-sticky-template) .elementor-element-ea5b8d0 {
 display: none !important;
}
body.nb-shop-header :is(#site-header, .header-sticky-template, #site-header .header-wrapper, #site-header .header-background) {
 background: #fff !important;
}
body.nb-shop-header :is(#site-header, .header-sticky-template) .elementor-element-a13e74b,
body.nb-shop-header :is(#site-header, .header-sticky-template) .megamenu-template-container,
body.nb-shop-header :is(#site-header, .header-sticky-template) nav:is(#menu-0ba7e47, #menu-5b688ad) .megamenu-template {
 background: #fff !important;
 background-image: none !important;
}
body.nb-shop-header :is(#site-header, .header-sticky-template) .megamenu-template :is(.elementor, .nb-mega-shell, .nb-mega-shell > .e-con-inner, .nb-mega-links, .nb-mega-feature) {
 background-color: transparent !important;
}
body.nb-shop-header :is(#site-header, .header-sticky-template) .elementor-element-a13e74b {
 display: grid !important;
 grid-template-columns: minmax(0, 1fr) clamp(180px, 18vw, 252px) minmax(0, 1fr) !important;
 align-items: center !important;
 gap: clamp(16px, 2vw, 32px) !important;
 padding: 16px clamp(20px, 3vw, 48px) !important;
 border-bottom: 1px solid #e8e5e2;
}
body.nb-shop-header :is(#site-header, .header-sticky-template) .elementor-element-a13e74b > .elementor-widget,
body.nb-shop-header .nb-shop-header-right > .elementor-element-5b688ad {
 width: 100% !important;
 min-width: 0 !important;
 margin: 0 !important;
 padding: 0 !important;
}
body.nb-shop-header :is(#site-header, .header-sticky-template) .elementor-element-aa6a2ed img {
 display: block;
 width: 100% !important;
 height: auto !important;
}
body.nb-shop-header .nb-shop-header-right {
 display: flex;
 align-items: center;
 justify-content: flex-end;
 min-width: 0;
 gap: clamp(12px, 1.5vw, 24px);
}
body.nb-shop-header .nb-shop-header-right > .elementor-element-5b688ad { width: auto !important; }
body.nb-shop-header .nb-shop-header-tools {
 display: flex;
 flex: 0 0 88px;
 align-items: center;
 gap: 0;
 margin: 0;
 padding: 0;
}
body.nb-shop-header .nb-shop-header-tool {
 position: relative;
 display: inline-flex;
 align-items: center;
 justify-content: center;
 flex: 0 0 44px;
 width: 44px;
 min-height: 44px;
 color: #24201e !important;
 text-decoration: none;
}
body.nb-shop-header .nb-shop-header-tool:hover { color: #785447 !important; }
body.nb-shop-header .nb-shop-header-tool:focus-visible { outline: 2px solid #50362b; outline-offset: -3px; }
body.nb-shop-header .nb-shop-header-tool svg {
 width: 21px;
 height: 21px;
 fill: none;
 stroke: currentColor;
 stroke-width: 1.4;
}
body.nb-shop-header .nb-shop-header-tool .nb-shop-cart-count {
 position: absolute;
 top: 0;
 right: 0;
 min-width: 16px;
 padding: 0 2px;
 font: 400 10px/16px "Now Font", "Now", sans-serif;
 background: #fff;
 border-radius: 50%;
 text-align: center;
}
@media (min-width: 1025px) {
 body.nb-shop-header :is(#site-header, .header-sticky-template) nav:is(#menu-0ba7e47, #menu-5b688ad) > ul.nav-menu {
  width: auto !important;
  gap: clamp(18px, 2vw, 32px) !important;
 }
 body.nb-shop-header :is(#site-header, .header-sticky-template) nav:is(#menu-0ba7e47, #menu-5b688ad) > ul.nav-menu > li > a {
  white-space: nowrap;
  font-size: clamp(10px, .85vw, 13px) !important;
 }
}
@media (max-width: 1024px) {
 body.nb-shop-header :is(#site-header, .header-sticky-template) .elementor-element-a13e74b {
  grid-template-columns: minmax(44px, 1fr) minmax(0, 180px) minmax(88px, 1fr) !important;
  gap: 8px !important;
  min-height: 76px;
  padding: 14px 20px !important;
 }
 body.nb-shop-header :is(#site-header, .header-sticky-template) .elementor-element-0ba7e47 { justify-self: start; }
 body.nb-shop-header .nb-shop-header-right { gap: 0; }
 body.nb-shop-header .nb-shop-header-right > .elementor-element-5b688ad { display: none !important; }
 body.nb-shop-header :is(#site-header, .header-sticky-template) .elementor-element-aa6a2ed { justify-self: center; }
}
@media (max-width: 430px) {
 body.nb-shop-header :is(#site-header, .header-sticky-template) .elementor-element-a13e74b {
  grid-template-columns: 44px minmax(0, 1fr) 88px !important;
  padding-inline: 16px !important;
 }
 body.nb-shop-header :is(#site-header, .header-sticky-template) .elementor-element-a13e74b > .elementor-element-aa6a2ed { max-width: 170px !important; }
}

/* The existing GET form and native sorting controls retain their handlers. */
body.nb-shop-catalog #main .portfolio-top-panel-row.nb-shop-search-toolbar {
 display: grid !important;
 grid-template-columns: minmax(0, 1fr) auto;
 align-items: center;
 gap: 12px 24px;
}
body.nb-shop-catalog #main .nb-shop-search-toolbar > .portfolio-top-panel-left {
 display: flex !important;
 align-items: center;
 min-width: 0;
 width: auto !important;
 height: auto !important;
 margin: 0 !important;
 padding: 0 !important;
}
body.nb-shop-catalog #main .nb-shop-search-toolbar > .portfolio-top-panel-right {
 align-items: center;
 height: auto !important;
 margin: 0 !important;
}
body.nb-shop-catalog #main .nb-shop-search-toolbar .nb-shop-search {
 flex: 0 1 300px;
 width: min(100%, 300px);
 min-height: 44px;
 margin: 0;
 border-bottom: 1px solid #c9c3be;
}
body.nb-shop-catalog #main .nb-shop-search-toolbar .nb-shop-search input {
 min-height: 44px;
 box-sizing: border-box;
 font-family: "Now Font", "Now", sans-serif !important;
 letter-spacing: .02em !important;
}
body.nb-shop-catalog #main .nb-shop-search-toolbar .nb-shop-search button {
 display: inline-flex;
 align-items: center;
 justify-content: center;
 flex: 0 0 44px;
 min-height: 44px;
}
body.nb-shop-catalog #main .nb-shop-search-toolbar .nb-shop-search svg {
 width: 19px;
 height: 19px;
 fill: none;
 stroke: currentColor;
 stroke-width: 1.5;
}
body.nb-shop-catalog #main .nb-shop-search-toolbar .portfolio-sorting-select > .portfolio-sorting-select-current {
 display: flex;
 align-items: center;
 min-height: 44px;
 box-sizing: border-box;
}
body.nb-shop-catalog #main .nb-shop-search-toolbar > .nb-shop-filter-toggle { display: none; }
@media (max-width: 767px) {
 body.nb-shop-catalog #main .portfolio-top-panel-row.nb-shop-search-toolbar {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px 16px;
 }
 body.nb-shop-catalog #main .nb-shop-search-toolbar > .nb-shop-filter-toggle {
  display: inline-flex;
  grid-column: 1 / -1;
  justify-self: start;
  order: 0;
 }
 body.nb-shop-catalog #main .nb-shop-search-toolbar > .portfolio-top-panel-left { order: 1; }
 body.nb-shop-catalog #main .nb-shop-search-toolbar > .portfolio-top-panel-right { order: 2; width: 100%; }
 body.nb-shop-catalog #main .nb-shop-search-toolbar .nb-shop-search { width: 100%; }
 body.nb-shop-catalog #main .nb-shop-search-toolbar .nb-shop-search input { font-size: 12px !important; }
 body.nb-shop-catalog #main .nb-shop-search-toolbar .portfolio-sorting-select { width: 100%; min-width: 0; }
 body.nb-shop-catalog #main .nb-shop-search-toolbar .portfolio-sorting-select > .portfolio-sorting-select-current {
  font-size: 11px !important;
  letter-spacing: .01em !important;
  white-space: nowrap;
  padding-right: 18px !important;
 }
}
/* Keep the primary picture visible on hover and keyboard focus; preserve product links. */
body.nb-shop-catalog #main .portfolio-item.product .image .image-inner img.image-hover {
 display: none !important;
 opacity: 0 !important;
 visibility: hidden !important;
}
body.nb-shop-catalog #main .portfolio-item.product .image .image-inner img:not(.image-hover) {
 opacity: 1 !important;
 visibility: visible !important;
 transform: none !important;
}
