/* Shared native shell from the existing P11/P09 rules. */
body:is(#index,#category.category-id-19,#product) #p11-category-header,body:is(#index,#category.category-id-19,#product) #p11-category-header > .cb4-inner,body:is(#index,#category.category-id-19,#product) #p11-category-header .cb4-top{ display:contents; }
body:is(#index,#category.category-id-19,#product) #p11-category-menu,body:is(#index,#category.category-id-19,#product) #p11-category-header .cb4-logo,body:is(#index,#category.category-id-19,#product) #p11-category-header .cb4-address,body:is(#index,#category.category-id-19,#product) #p11-category-header #p11-hours,body:is(#index,#category.category-id-19,#product) #p11-category-header .cb4-benefits{ display:none; }
@media (min-width:992px){body:is(#index,#category.category-id-19,#product) #p11-category-header{
        display:block;
        background:#06152b;
        color:#fff;
        font:15px/1.4 Arial,sans-serif;
      }
#p11-category-header *,#p11-category-menu *{
        box-sizing:border-box;
      }
#p11-category-header .cb4-inner{
        width:calc(100% - 32px);
        max-width:1510px;
        margin:auto;
      }
#p11-category-header a{
        color:inherit;
        text-decoration:none;
      }
#p11-category-header .cb4-top{
        display:grid;
        grid-template-columns:max-content minmax(0,1fr) 260px;
        gap:26px;
        align-items:center;
        padding:18px 0;
        border-bottom:2px solid #ff690c;
      }
#p11-category-header .cb4-logo{
        font-size:31px;
        letter-spacing:-1.5px;
        white-space:nowrap;
      }
#p11-category-header .cb4-logo span,#p11-category-header .cb4-address strong span,#p11-category-header .cb4-phones span{
        color:#ff690c;
      }
#p11-category-header .cb4-address{ min-width:0; }
#p11-category-header .cb4-address strong{
        display:block;
        font-size:24px;
        line-height:1.2;
      }
#p11-category-header .cb4-phones{
        display:flex;
        flex-wrap:wrap;
        gap:5px 18px;
        margin-top:7px;
        font-size:21px;
        font-weight:800;
      }
#p11-category-header .cb4-phones a{ white-space:nowrap; }
#p11-category-header #search_widget{
        display:flex;
        align-items:center;
        min-width:0;
        margin:0;
        padding:4px;
        background:#fff;
        border-radius:7px;
      }
#p11-category-header #search_widget input{
        width:100%;
        min-width:0;
        padding:10px 7px;
        border:0;
        background:#fff;
        color:#102039;
        font:13px Arial,sans-serif;
      }
#p11-category-header #search_widget button{
        flex-shrink:0;
        padding:11px 13px;
        border:0;
        border-radius:6px;
        background:#ff690c;
        color:#fff;
        font-weight:700;
        cursor:pointer;
      }
#p11-category-header .cb4-benefits{
        display:grid;
        grid-template-columns:205px repeat(4,minmax(0,1fr))
                              minmax(190px,1.2fr);
        align-items:center;
        padding:14px 0;
      }
#p11-category-header .cb4-map{
        margin-right:14px;
        padding:13px 9px;
        border-radius:9px;
        background:#ff690c;
        text-align:center;
        font-size:16px;
        font-weight:800;
      }
#p11-category-header .cb4-benefits > div{
        display:flex;
        align-items:center;
        gap:8px;
        min-width:0;
        padding:5px 10px;
        border-left:1px solid #315273;
      }
#p11-category-header .cb4-benefits b{
        color:#ff690c;
        font-size:27px;
        flex-shrink:0;
      }
#p11-category-header .cb4-benefits strong{
        display:block;
        color:#fff;
        font-size:15px;
        line-height:1.2;
      }
#p11-category-header .cb4-benefits small{
        display:block;
        margin-top:4px;
        color:#bfd0e0;
        font-size:11px;
        line-height:1.3;
      }
body:is(#index,#category.category-id-19,#product) #p11-category-menu{
        display:flex;
        flex-direction:column;
        gap:7px;
        margin-bottom:16px;
      }
#p11-category-menu a{
        display:block;
        overflow:hidden;
        border:1px solid #23415c;
        border-radius:9px;
        background:#fff;
        text-decoration:none;
      }
#p11-category-menu a:hover,#p11-category-menu a[aria-current="page"]{
        border-color:#ff690c;
        box-shadow:0 0 0 1px #ff690c;
      }
#p11-category-menu img{
        display:block;
        width:100%;
        height:auto;
        aspect-ratio:1200 / 650;
        object-fit:cover;
      }
#p11-category-menu .cb4-fallback{
        display:block;
        padding:15px;
        color:#102039;
        font-weight:700;
      }
#p11-category-header a:focus-visible,#p11-category-menu a:focus-visible{
        outline:2px solid #ff690c;
        outline-offset:3px;
      }}
@media (min-width:992px) and (max-width:1250px){#p11-category-header .cb4-top{
        grid-template-columns:max-content minmax(0,1fr);
        gap:14px 24px;
      }
#p11-category-header #search_widget{ grid-column:1 / -1; }
#p11-category-header .cb4-benefits{
        grid-template-columns:repeat(3,minmax(0,1fr));
        row-gap:10px;
      }}
@media (min-width: 992px){#p11-category-header .cb4-top{display:grid;grid-template-columns:max-content minmax(0,1fr) auto;column-gap:36px;align-items:center;padding:18px 0;border-bottom:2px solid #ff690c}
#p11-category-header .cb4-logo{font-size:31px;letter-spacing:-1.5px;white-space:nowrap}
#p11-category-header .cb4-logo span,#p11-category-header .orange{color:#ff690c}
#p11-category-header .cb4-address{justify-self:start;min-width:0}
#p11-category-header .cb4-address strong{font-size:25px;line-height:1.12;display:block;white-space:nowrap}
#p11-category-header .cb4-phones{display:flex;gap:20px;flex-wrap:wrap;font-weight:800;font-size:23px;line-height:1.2;margin-top:7px}
#p11-category-header .cb4-phones a{white-space:nowrap}
#p11-category-header .cb4-phones a .cb4-phone-icon{color:#ff690c;margin-right:5px}
#p11-category-header #search_widget{display:flex;max-width:300px;background:#fff;border-radius:7px;padding:4px;align-items:center}
#p11-category-header input{border:0;outline:0;min-width:0;flex:1;padding:10px;color:#102039;background:#fff;font-size:13px}
#p11-category-header #search_widget button,#p11-category-header .cb4-cta{background:#ff690c;border:0;border-radius:6px;padding:11px 15px;color:white;font-weight:700}
#p11-category-header .cb4-benefits{display:grid;grid-template-columns:230px repeat(4,minmax(0,1fr)) minmax(190px,1.2fr);align-items:center;gap:0;padding:12px 0 0;margin:0;min-width:0}
#p11-category-header .cb4-directions{display:flex;align-items:center;justify-content:center;gap:8px;margin-right:14px;background:#ff690c;border-radius:9px;color:#fff!important;font-weight:800;font-size:16px;white-space:nowrap;padding:13px 9px}
#p11-category-header .cb4-pin{font-size:23px;line-height:1;color:#fff}
#p11-category-header .cb4-benefit{min-width:0;display:flex;align-items:center;gap:9px;padding:5px 10px;border-left:1px solid #315273}
#p11-category-header .cb4-benefit-icon{font-size:28px;color:#ff690c;font-weight:900;line-height:1;flex-shrink:0}
#p11-category-header .cb4-benefit strong{display:block;font-size:16px;line-height:1.2;color:#fff;font-weight:800}
#p11-category-header .cb4-benefit small{display:block;font-size:11px;line-height:1.3;color:#bfd0e0;margin-top:4px}
#p11-category-header .cb4-heart{position:relative;color:#ff690c;font-size:36px;line-height:1;flex-shrink:0}
#p11-category-header .cb4-heart span{position:absolute;color:#06152b;font-size:18px;left:12px;top:8px;font-weight:900}}
#p11-category-header #p11-hours{ display: none; }
@media (min-width: 992px){body:is(#index,#category.category-id-19,#product) #p11-category-header .cb4-top.p11-hours-active{
        display: grid !important;
        grid-template-columns: max-content minmax(max-content, 1fr) max-content minmax(160px, 240px) !important;
        grid-template-rows: auto !important;
        column-gap: 20px !important;
        align-items: center;
        overflow-x: auto;
      }
body:is(#index,#category.category-id-19,#product) #p11-category-header .cb4-top.p11-hours-active > .cb4-logo{
        grid-column: 1 !important;
        grid-row: 1 !important;
      }
body:is(#index,#category.category-id-19,#product) #p11-category-header .cb4-top.p11-hours-active > .cb4-address{
        grid-column: 2 !important;
        grid-row: 1 !important;
      }
body:is(#index,#category.category-id-19,#product) #p11-category-header .cb4-top.p11-hours-active > #p11-hours{
        grid-column: 3 !important;
        grid-row: 1 !important;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 0 16px;
        border-left: 1px solid #315273;
        border-right: 1px solid #315273;
        color: #fff;
        font: 14px/1.5 Arial, sans-serif;
        white-space: nowrap;
      }
body:is(#index,#category.category-id-19,#product) #p11-category-header #p11-hours > strong{
        color: #ff690c;
        font-size: 14px;
        margin-bottom: 3px;
      }
body:is(#index,#category.category-id-19,#product) #p11-category-header .cb4-top.p11-hours-active  #search_widget{
        grid-column: 4 !important;
        grid-row: 1 !important;
        width: 100%;
        min-width: 0;
        max-width: 240px !important;
        justify-self: end;
      }}
@media (min-width:992px){body:is(#index,#category.category-id-19,#product) #p11-category-header{display:block;}
body:is(#index,#category.category-id-19,#product) #p11-category-header > .cb4-inner{display:block;}
body:is(#index,#category.category-id-19,#product) #p11-category-header .cb4-top{display:grid;}
body:is(#index,#category.category-id-19,#product) #p11-category-header .cb4-logo,body:is(#index,#category.category-id-19,#product) #p11-category-header .cb4-address{display:block;}
body:is(#index,#category.category-id-19,#product) #p11-category-header .cb4-benefits{display:grid;}
body:is(#index,#category.category-id-19,#product) #p11-category-header .header-top,body:is(#index,#category.category-id-19,#product) #p11-category-header .header-top > .container,body:is(#index,#category.category-id-19,#product) #p11-category-header .header-top > .container > .row,body:is(#index,#category.category-id-19,#product) #p11-category-header .header-top .position-static{display:contents;}
body:is(#index,#category.category-id-19,#product) #p11-category-header #_desktop_logo,body:is(#index,#category.category-id-19,#product) #p11-category-header #_desktop_top_menu,body:is(#index,#category.category-id-19,#product) #p11-category-header .header-top .clearfix{display:none;}
body:is(#index,#category.category-id-19,#product) #p11-category-header #search_widget{grid-column:4;grid-row:1;float:none;margin:0;width:100%;}
body:is(#index,#category.category-id-19,#product) #p11-category-menu{grid-column:1;grid-row:2 / 6;align-self:start;}}
@media(min-width:992px){
 body#index .p11-home-grid>#p11-category-menu{grid-column:1;grid-row:1;}
 body#index .p11-home-grid>.p11-home-main{grid-column:2;grid-row:1;}
 body#product .p11-product-grid>#p11-category-menu{grid-column:1;grid-row:1;}
 body#product .p11-product-grid>#content-wrapper{grid-column:2;grid-row:1;}
}

/* The native displayTop hook is rendered once; only its wrapper is flattened. */
@media(min-width:992px){
 body:is(#index,#category.category-id-19,#product) #p11-category-header .p11-header-hook{display:contents;}
 body:is(#index,#category.category-id-19,#product) #p11-category-header #search_widget button[type="submit"]{display:block!important;}
}

/* Native Classic container/row behavior below the desktop layout threshold. */
body:is(#index,#category.category-id-19,#product) #p11-category-header.header-top{display:block;}
@media(max-width:991px){
 body:is(#index,#category.category-id-19,#product) #p11-category-header>.cb4-inner.container{display:block;}
 body:is(#index,#category.category-id-19,#product) #p11-category-header .cb4-top.row{display:block;}
}
@media(min-width:992px){
 body:is(#index,#category.category-id-19,#product) #p11-category-header>.cb4-inner.container{padding-left:0;padding-right:0;}
 body:is(#index,#category.category-id-19,#product) #p11-category-header .cb4-top.row{margin-left:0;margin-right:0;}
 body:is(#index,#category.category-id-19,#product) #p11-category-header .cb4-top.row::before,
 body:is(#index,#category.category-id-19,#product) #p11-category-header .cb4-top.row::after{display:none;content:none;}
}

/* Preserve the parent's mobile/tablet header exactly once. No viewport tests in PHP. */
.p11-header-responsive,.p11-header-native{display:contents;}
@media(max-width:991px){
 #header .p11-header-responsive #p11-category-header.p11-header-desktop{display:none!important;}
}
@media(min-width:992px){
 body#index #header,body#product #header,body#category.category-id-19 #header{background:#06152b;color:#fff;}
 #header .p11-header-responsive{display:grid;grid-template-columns:max-content minmax(max-content,1fr) max-content minmax(160px,240px);column-gap:20px;align-items:center;width:calc(100% - 32px);max-width:1510px;margin:auto;padding:18px 0 0;background:#06152b;color:#fff;}
 #header .p11-header-responsive .p11-header-native,
 #header .p11-header-responsive .p11-header-native>.header-top,
 #header .p11-header-responsive .p11-header-native>.header-top>.container,
 #header .p11-header-responsive .p11-header-native>.header-top>.container>.row,
 #header .p11-header-responsive .p11-header-native .header-top .position-static,
 #header .p11-header-responsive #p11-category-header.p11-header-desktop,
 #header .p11-header-responsive #p11-category-header>.cb4-inner,
 #header .p11-header-responsive #p11-category-header .cb4-top{display:contents!important;}
 #header .p11-header-responsive .p11-header-native #_desktop_logo,
 #header .p11-header-responsive .p11-header-native #_desktop_top_menu,
 #header .p11-header-responsive .p11-header-native #mobile_top_menu_wrapper,
 #header .p11-header-responsive .p11-header-native .header-top .clearfix{display:none!important;}
 #header .p11-header-responsive .p11-header-native>.header-top>.container>.row::before,
 #header .p11-header-responsive .p11-header-native>.header-top>.container>.row::after{display:none;content:none;}
 #header .p11-header-responsive #p11-category-header .cb4-logo{grid-column:1;grid-row:1;}
 #header .p11-header-responsive #p11-category-header .cb4-address{grid-column:2;grid-row:1;}
 #header .p11-header-responsive #p11-category-header #p11-hours{grid-column:3;grid-row:1;}
 #header .p11-header-responsive .p11-header-native #search_widget{display:flex;grid-column:4;grid-row:1;float:none;justify-self:end;width:100%;max-width:240px;min-width:0;margin:0;padding:4px;background:#fff;border-radius:7px;}
 #header .p11-header-responsive .p11-header-native #search_widget form{display:flex;align-items:center;width:100%;margin:0;}
 #header .p11-header-responsive .p11-header-native #search_widget input{width:100%;min-width:0;flex:1;padding:10px 7px;border:0;background:#fff;color:#102039;font:13px Arial,sans-serif;}
 #header .p11-header-responsive .p11-header-native #search_widget button[type="submit"]{display:block!important;position:static;flex-shrink:0;padding:11px 13px;border:0;border-radius:6px;background:#ff690c;color:#fff;font-weight:700;cursor:pointer;}
 #header .p11-header-responsive #p11-category-header .cb4-benefits{grid-column:1 / -1;grid-row:2;margin-top:18px;padding:12px 0;border-top:2px solid #ff690c;}
}
