/* DNLPRO Store 1.3.0 – same fixed shell on all WordPress/WooCommerce screens.
   No dependency on the theme's own header/footer selectors for rendering. */
:root{--dnl-fixed-header-height:126px;--dnl-shell-green:#079f32;--dnl-shell-dark:#067a29;--dnl-shell-ink:#10251a}
body.dnl-global-shell{
  padding-top:var(--dnl-fixed-header-height)!important;
  padding-bottom:calc(88px + env(safe-area-inset-bottom))!important;
  overflow-x:clip;
}
/* Hide headers and footers supplied by the currently active WordPress theme. */
body.dnl-global-shell :is(.wp-site-blocks > header, #masthead, .site-header, .main-header, header.wp-block-template-part, .wp-site-blocks > footer, #colophon, .site-footer, footer.wp-block-template-part){display:none!important}
/* The old plugin shell should never appear a second time inside shortcode content. */
body.dnl-global-shell :is(.dnl-header, .dnl-mobile-nav, .dnl-footer, .dnl-topline):not(#dnl-global-header):not(#dnl-global-bottom):not(#dnl-global-footer){display:none!important}
/* Native page title is redundant with the actual home page storefront. */
body.dnl-global-shell:is(.home,.front-page) :is(.wp-block-post-title,.entry-header,.page-header,.page-title,.entry-title){display:none!important}
body.dnl-global-shell:is(.home,.front-page) .wp-block-post-content > .dnl-home{max-width:none!important}
body.dnl-global-shell:is(.home,.front-page) .entry-content:has(> .dnl-home){max-width:none!important;margin:0!important;padding:0!important}
body.dnl-global-shell .dnl-global-header,body.dnl-global-shell .dnl-global-header *{box-sizing:border-box}
body.dnl-global-shell .dnl-global-header{
  position:fixed!important;inset:auto 0 auto 0;top:0;left:0;right:0;
  background:#fff!important;border-top:3px solid var(--dnl-shell-green);
  border-bottom:2px solid var(--dnl-shell-green);box-shadow:0 4px 13px #10251a17;
  z-index:2147482000!important;margin:0!important;padding:0!important;
  width:100%;max-width:100%;transform:none!important;
}
body.admin-bar.dnl-global-shell .dnl-global-header{top:32px}
.dnl-global-header-inner{
  width:min(100% - 28px,1240px);margin:0 auto;padding:10px 0;
  display:grid;grid-template-columns:minmax(0,1fr) 46px 50px;
  grid-template-areas:'logo menu cart' 'search search search';align-items:center;gap:7px 12px;
}
.dnl-global-brand{grid-area:logo;display:flex;align-items:center;justify-content:flex-start;min-width:0;max-width:100%;text-decoration:none!important}
.dnl-global-brand img,.dnl-global-brand .dnl-logo-image{
  display:block!important;width:clamp(160px,51vw,246px)!important;
  height:auto!important;max-height:57px!important;max-width:100%!important;object-fit:contain!important;object-position:left center!important;
}
.dnl-global-search{
  grid-area:search;min-width:0;width:100%;height:51px;display:flex;align-items:center;
  overflow:hidden;border:2px solid var(--dnl-shell-green)!important;border-radius:15px!important;
  background:#fff!important;margin:0!important;padding:0!important;box-shadow:none!important;
}
.dnl-global-search-icon{padding-left:12px;display:flex;align-items:center;flex:none;color:var(--dnl-shell-ink)}
.dnl-global-search-icon .dnl-icon{width:23px;height:23px}
.dnl-global-search input[type=search]{
  flex:1;min-width:0;width:100%;height:46px;min-height:46px!important;
  background:#fff!important;border:0!important;border-radius:0!important;outline:0!important;
  color:#17271c!important;box-shadow:none!important;margin:0!important;
  padding:8px 10px!important;font-size:16px!important;
}
.dnl-global-search input[type=search]:focus-visible{outline:2px solid var(--dnl-shell-green)!important;outline-offset:-3px!important}
.dnl-global-search input::placeholder{color:#78837a;opacity:1}
.dnl-global-search button{
  align-self:stretch;flex:none;border:0!important;margin:0!important;
  min-width:85px;padding:0 16px!important;border-radius:0!important;
  background:var(--dnl-shell-green)!important;color:#fff!important;
  font-size:14px!important;font-weight:800!important;line-height:1.3!important;
  cursor:pointer;box-shadow:none!important;
}
.dnl-global-search button:hover{background:var(--dnl-shell-dark)!important}
/* Hamburger menu: available on every WooCommerce/WordPress screen. */
.dnl-global-menu-trigger{
  grid-area:menu;min-width:44px;min-height:46px;width:46px;height:46px;
  display:flex;align-items:center;justify-content:center;
  border:1px solid #dce9df!important;border-radius:11px!important;background:#fff!important;
  color:var(--dnl-shell-ink)!important;box-shadow:none!important;cursor:pointer;
  padding:7px!important;margin:0!important;
}
.dnl-global-menu-trigger .dnl-icon{width:27px;height:27px;stroke-width:2.1}
.dnl-global-menu-caption{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
.dnl-global-menu-trigger[aria-expanded="true"]{border-color:var(--dnl-shell-green)!important;background:#e8f8ec!important;color:var(--dnl-shell-dark)!important}
.dnl-global-menu-trigger:focus-visible{outline:3px solid var(--dnl-shell-green);outline-offset:2px}
.dnl-global-menu[hidden],.dnl-global-menu-backdrop[hidden]{display:none!important}
.dnl-global-menu{
  position:absolute;right:max(14px,calc((100vw - 1240px)/2));top:100%;
  width:min(380px,calc(100vw - 28px));max-height:calc(100dvh - var(--dnl-fixed-header-height) - 14px);
  overflow-y:auto;overscroll-behavior:contain;
  display:flex;flex-direction:column;gap:2px;padding:12px;
  background:white;border:1px solid #dce9df;border-radius:0 0 18px 18px;
  box-shadow:0 18px 45px #10251a24;
  z-index:10;
}
.dnl-global-menu-title{padding:8px 12px 12px;color:var(--dnl-shell-dark);font-weight:900;letter-spacing:.8px;font-size:12px}
.dnl-global-menu>a{
  display:flex;align-items:center;gap:14px;padding:12px 14px;
  border-radius:11px;min-height:46px;font-size:15px;font-weight:700;
  text-decoration:none!important;color:var(--dnl-shell-ink)!important;
}
.dnl-global-menu>a .dnl-icon{width:22px;height:22px;flex:none;color:var(--dnl-shell-dark)}
.dnl-global-menu>a:hover,.dnl-global-menu>a:focus-visible{background:#e8f8ec!important;outline:0}
.dnl-global-menu-contact-icon{font-size:21px;width:22px;color:var(--dnl-shell-dark);text-align:center}
.dnl-global-menu-backdrop{
  position:fixed;inset:0;z-index:2147481998;
  background:rgba(16,37,26,.30)!important;
  margin:0!important;border:0!important;padding:0!important;
  border-radius:0!important;width:100vw;height:100dvh;
  cursor:default;
}
.dnl-global-cart{
  grid-area:cart;min-width:50px;min-height:48px;
  display:inline-flex;align-items:center;justify-content:center;
  color:var(--dnl-shell-ink)!important;text-decoration:none!important;
  position:relative;border-radius:11px;
}
.dnl-global-cart .dnl-icon{width:29px;height:29px;stroke-width:1.9}
.dnl-global-cart .dnl-cart-count{
  position:absolute;right:0;top:1px;min-width:21px;height:21px;padding:3px;
  display:grid;place-items:center;border-radius:20px;
  background:var(--dnl-shell-green);color:#fff;font-size:11px;font-weight:900;line-height:1;
}
.dnl-global-cart:focus-visible,.dnl-global-brand:focus-visible,.dnl-global-bottom a:focus-visible{outline:3px solid var(--dnl-shell-green);outline-offset:2px}
.dnl-global-skip{position:fixed;top:-120px;left:14px;z-index:2147482001;padding:10px;background:#fff;color:#10251a;text-decoration:none}
.dnl-global-skip:focus{top:var(--dnl-fixed-header-height)}
/* Consistent 4-tab mobile navigation, including shop, products, cart and account. */
.dnl-global-bottom{
  position:fixed!important;bottom:0!important;left:0!important;right:0!important;
  z-index:2147481999!important;width:100%;max-width:100%;margin:0!important;
  background:#fff!important;border-top:2px solid var(--dnl-shell-green);
  box-shadow:0 -4px 17px #10251a12;border-radius:18px 18px 0 0;
  display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;
  padding:7px max(8px,env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left));
}
.dnl-global-bottom>a{
  display:flex!important;flex-direction:column;justify-content:center;align-items:center;
  gap:4px;min-height:60px;min-width:0;padding:6px 2px;
  color:#34443a!important;text-decoration:none!important;background:transparent;
  border-radius:12px;border:1.5px solid transparent;font-size:11px;font-weight:750;
  line-height:1.25;white-space:nowrap;
}
.dnl-global-bottom>a.is-active{color:var(--dnl-shell-dark)!important;background:#e8f8ec!important;border-color:var(--dnl-shell-green)!important}
.dnl-global-bottom .dnl-icon{width:24px;height:24px}
.dnl-global-bottom .dnl-cart-count{display:inline-grid;vertical-align:middle;min-width:16px;height:16px;font-size:10px;place-items:center;border-radius:50%;background:var(--dnl-shell-green);color:white;padding:1px}
/* Footer does not repeat the tagline or the merchant's name; legal docs are untouched. */
.dnl-global-footer{
  background:#f5f8f5;color:#10251a;border-top:1px solid #e0e8e1;
  padding:26px 0 10px;margin:0;max-width:none;
}
.dnl-global-footer-inner{width:min(100% - 30px,1240px);margin:0 auto;display:flex;gap:25px;justify-content:space-between;align-items:center;flex-wrap:wrap}
.dnl-global-footer-brand img{display:block;width:min(230px,65vw);height:auto;object-fit:contain}
.dnl-global-footer nav{display:flex;flex-wrap:wrap;gap:8px 20px;align-items:center}
.dnl-global-footer nav a{font-size:12px;font-weight:650;color:#304638;text-decoration:none;min-height:28px;display:inline-flex;align-items:center}
.dnl-global-copyright{width:min(100% - 30px,1240px);margin:20px auto 0;padding:15px 0;border-top:1px solid #dce7df;font-size:11px;color:#738076}
/* Compact content, no category carousel when the offer is small. */
body.dnl-global-shell .dnl-category-list{display:none!important}
body.dnl-global-shell .dnl-catalog{scroll-margin-top:calc(var(--dnl-fixed-header-height) + 12px)}
body.dnl-global-shell #produkty{scroll-margin-top:calc(var(--dnl-fixed-header-height) + 12px)}
/* Prevent the checkout from being hidden behind the nav. */
body.dnl-global-shell .woocommerce-checkout,body.dnl-global-shell .wc-block-checkout{padding-bottom:20px}
@media(min-width:850px){
  :root{--dnl-fixed-header-height:86px}
  .dnl-global-header-inner{
    grid-template-columns:minmax(185px,245px) minmax(250px,1fr) 46px 54px;
    grid-template-areas:'logo search menu cart';gap:21px;min-height:80px;padding:10px 0;
  }
  .dnl-global-brand img,.dnl-global-brand .dnl-logo-image{width:245px!important;max-height:60px!important}
  .dnl-global-search{height:53px}
  .dnl-global-bottom{display:none!important}
  body.dnl-global-shell{padding-bottom:0!important}
}
@media(max-width:390px){
  .dnl-global-header-inner{width:calc(100% - 22px)}
  .dnl-global-brand img,.dnl-global-brand .dnl-logo-image{width:clamp(150px,50vw,200px)!important}
  .dnl-global-search button{min-width:74px;padding:0 9px!important;font-size:12px!important}
  .dnl-global-search-icon{padding-left:9px}
  .dnl-global-search input[type=search]{padding:6px!important}
  .dnl-global-bottom{gap:2px;padding-inline:5px}
  .dnl-global-bottom>a{font-size:10px}
}
@media(max-width:782px){body.admin-bar.dnl-global-shell .dnl-global-header{top:46px}}
/* Don't let the bottom nav cover the keyboard or checkout fields while typing. */
@media(max-width:849px){body.dnl-global-shell:has(input:focus,textarea:focus,select:focus) .dnl-global-bottom{display:none!important}}
