/* BKK Shop Product Header Bridge 1.0.0 — single WooCommerce product pages only. */
body.bkk-shop-product-page > .site-header,
body.bkk-shop-product-page > header.site-header,
body.bkk-shop-product-page .hp-site-header,
body.bkk-shop-product-page .header-navbar,
body.bkk-shop-product-page .site-header.header-navbar,
body.bkk-shop-product-page .hp-header,
body.bkk-shop-product-page .header-navbar__container,
body.bkk-shop-product-page .hp-header__container{
    /* The exact theme header is hidden below; the selector block is intentionally
       broad but limited to single product pages. */
}

/* Hide the Directory/HivePress presentation header on single products.
 * The selectors are scoped to body.bkk-shop-product-page and do not affect
 * Directory pages, listings, Shop, cart or checkout. */
body.bkk-shop-product-page .hp-site-header,
body.bkk-shop-product-page .header-navbar,
body.bkk-shop-product-page header.site-header.hp-site-header,
body.bkk-shop-product-page header.site-header.header-navbar{
    display:none!important;
}

/* Common custom-theme header fallback. Only hide it when it contains the
 * Directory navigation labels, so a future unrelated product header is not
 * unnecessarily removed. */
body.bkk-shop-product-page .site-header:has(a[href*="add-listing"]),
body.bkk-shop-product-page .site-header:has(.header-navbar__menu){
    display:none!important;
}

.bkk-product-shop-header{
    position:relative;
    z-index:9998;
    background:#fff;
    border-bottom:1px solid #e5e1d9;
    color:#111;
    font-family:Arial,Helvetica,sans-serif;
}
.bkk-product-shop-header-inner{
    width:min(1240px,calc(100% - 48px));
    min-height:104px;
    margin:0 auto;
    padding:14px 0;
    display:grid;
    grid-template-columns:160px 1fr auto;
    align-items:center;
    gap:26px;
}
.bkk-product-shop-brand{display:flex;align-items:center;min-height:76px;overflow:visible}
.bkk-product-shop-brand a{display:flex;align-items:center;color:#111;text-decoration:none}
.bkk-product-shop-brand img,
.bkk-product-shop-brand .custom-logo{
    display:block!important;
    width:auto!important;
    height:auto!important;
    max-width:150px!important;
    max-height:76px!important;
    object-fit:contain!important;
    margin:0!important;
}
.bkk-product-shop-wordmark{font-size:34px;font-weight:900;letter-spacing:-.04em}
.bkk-product-shop-nav{display:flex;justify-content:center;align-items:center;gap:28px;min-height:76px}
.bkk-product-shop-nav a,
.bkk-product-shop-tools a{
    color:#111!important;
    text-decoration:none!important;
}
.bkk-product-shop-nav a{
    font-size:12px;
    line-height:1;
    font-weight:800;
    letter-spacing:.075em;
    white-space:nowrap;
    padding:29px 0;
}
.bkk-product-shop-nav a:hover{color:#e88912!important}
.bkk-product-shop-tools{display:flex;align-items:center;gap:15px;white-space:nowrap}
.bkk-product-shop-tools a{font-size:11px;font-weight:700}
.bkk-product-shop-tools a:hover{color:#e88912!important}
.bkk-product-cart-count{
    display:inline-flex;
    min-width:17px;
    height:17px;
    padding:0 4px;
    margin-left:3px;
    align-items:center;
    justify-content:center;
    border-radius:50%;
    background:#e88912;
    color:#111;
    font-size:9px;
    font-weight:900;
}

/* Keep the existing product page and AdSense intact. We only add breathing room
   below our replacement header so the product content doesn't feel attached to it. */
body.bkk-shop-product-page .woocommerce.single-product,
body.bkk-shop-product-page .site-main{
    /* no forced widths/heights — theme/WooCommerce retain control */
}

@media(max-width:1180px){
    .bkk-product-shop-header-inner{min-height:96px;grid-template-columns:140px 1fr auto;gap:18px}
    .bkk-product-shop-brand{min-height:70px}
    .bkk-product-shop-brand img,.bkk-product-shop-brand .custom-logo{max-width:135px!important;max-height:70px!important}
    .bkk-product-shop-nav{gap:20px;min-height:70px}
    .bkk-product-shop-nav a{font-size:11px;padding:27px 0}
    .bkk-product-shop-tools{gap:11px}
}
@media(max-width:900px){
    .bkk-product-shop-header-inner{grid-template-columns:120px 1fr;min-height:78px;padding:9px 0}
    .bkk-product-shop-brand{min-height:60px}
    .bkk-product-shop-brand img,.bkk-product-shop-brand .custom-logo{max-width:115px!important;max-height:60px!important}
    .bkk-product-shop-nav{grid-column:2;grid-row:1;gap:15px;overflow:auto;justify-content:flex-end}
    .bkk-product-shop-nav a{font-size:10px;padding:22px 0}
    .bkk-product-shop-tools{display:none}
}
@media(max-width:620px){
    .bkk-product-shop-header-inner{width:calc(100% - 24px);display:block;min-height:0;padding:8px 0}
    .bkk-product-shop-brand{justify-content:center;min-height:54px}
    .bkk-product-shop-brand img,.bkk-product-shop-brand .custom-logo{max-width:105px!important;max-height:54px!important}
    .bkk-product-shop-nav{display:flex;justify-content:flex-start;gap:18px;min-height:42px;overflow-x:auto;border-top:1px solid #eee}
    .bkk-product-shop-nav a{padding:15px 0 11px;font-size:9px}
}
