/**
 * Brandshox 1.4 — modern navigation / related products / single assurance row.
 * This stylesheet is loaded after all 1.3 styles so checkout and reviews stay intact.
 */

/* Correct legacy WooCommerce clearfix pseudo-nodes that can become CSS Grid items. */
.woocommerce ul.products.bs-product-grid::before,
.woocommerce ul.products.bs-product-grid::after,
.woocommerce .bs-shop-content ul.products::before,
.woocommerce .bs-shop-content ul.products::after,
.woocommerce .bs-pdp-related ul.products::before,
.woocommerce .bs-pdp-related ul.products::after,
.bs-related-grid::before,
.bs-related-grid::after {content:none!important;display:none!important}

/* Full-bleed Explore mega menu while retaining Appearance > Menus assignments. */
.bs-site-header {position:relative;z-index:40}
.bs-header-row {gap:clamp(12px,1.65vw,28px)}
.bs-nav-inner {display:flex;align-items:center;gap:clamp(16px,1.7vw,27px);min-width:0}
.bs-desktop-nav .bs-nav-list {gap:clamp(12px,1.5vw,25px)}
.bs-mega-root {position:static;display:flex;align-items:center;min-height:72px}
.bs-mega-trigger {display:inline-flex;align-items:center;gap:7px;height:72px;padding:0;border:none;border-bottom:2px solid transparent;background:transparent;color:#fff;font-size:12px;font-weight:800;letter-spacing:.015em;white-space:nowrap;cursor:pointer;transition:color .2s,border-color .2s}
.bs-mega-trigger svg {transition:transform .2s}
.bs-mega-trigger:hover,.bs-mega-root.is-open .bs-mega-trigger {color:var(--bs-accent);border-bottom-color:var(--bs-accent)}
.bs-mega-root.is-open .bs-mega-trigger svg {transform:rotate(180deg)}
.bs-mega-trigger:focus-visible {outline:2px solid var(--bs-accent);outline-offset:-6px}
.bs-mega-panel[hidden] {display:none!important}
.bs-mega-panel {position:absolute;top:100%;left:0;right:0;z-index:45;background:#fff;color:#161616;border-top:1px solid #e6e6e6;box-shadow:0 24px 42px rgba(0,0,0,.14);animation:bs-mega-appear .17s ease-out both}
@keyframes bs-mega-appear {from {opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translateY(0)}}
.bs-mega-content {display:grid;grid-template-columns:.8fr 1fr .9fr minmax(240px,1.25fr);gap:clamp(25px,3vw,50px);padding-top:31px;padding-bottom:32px;align-items:stretch}
.bs-mega-column {min-width:0}
.bs-mega-column h2 {font-size:11px;text-transform:uppercase;letter-spacing:.16em;color:#8b8b8b;margin:6px 0 18px;font-weight:800}
.bs-mega-column ul {list-style:none;margin:0;padding:0;display:grid;gap:13px}
.bs-mega-column li a {display:inline-block;color:#242424;font-size:13px;line-height:1.3;font-weight:700;transition:color .16s,transform .16s;text-decoration:none}
.bs-mega-column li a:hover,.bs-mega-column li a:focus-visible {color:var(--bs-accent);transform:translateX(2px)}
.bs-mega-editorial {position:relative;display:flex;align-items:flex-end;min-height:260px;border-radius:8px;overflow:hidden;color:#fff;background:#1b1f22;text-decoration:none}
.bs-mega-editorial>img {position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform .3s}
.bs-mega-editorial:after {content:"";position:absolute;inset:0;background:linear-gradient(0deg,rgba(0,0,0,.83),rgba(0,0,0,.06) 75%)}
.bs-mega-editorial:hover img {transform:scale(1.04)}
.bs-mega-editorial-copy {position:relative;z-index:2;display:grid;gap:6px;padding:21px;color:#fff}
.bs-mega-editorial-copy small {font-size:10px;font-weight:800;letter-spacing:.18em;color:#fda87d}
.bs-mega-editorial-copy strong {font-size:25px;line-height:1.05;font-weight:900;letter-spacing:-.035em}
.bs-mega-editorial-copy>span {font-size:12px;font-weight:700}
.bs-mega-editorial-copy>span span {margin-left:5px}
/* Existing WordPress custom menu children receive a matching light dropdown. */
.bs-desktop-nav .bs-nav-list>li>.sub-menu {background:#fff;box-shadow:0 18px 38px rgba(0,0,0,.15);border:1px solid #eee;min-width:220px;padding:11px;border-radius:0 0 8px 8px;z-index:43;top:calc(100% + 14px);left:-14px}
.bs-desktop-nav .bs-nav-list .sub-menu a {color:#191919;display:block;padding:8px 9px;border-radius:4px;font-size:12px;line-height:1.4}
.bs-desktop-nav .bs-nav-list .sub-menu a:hover,.bs-desktop-nav .bs-nav-list .sub-menu a:focus-visible {background:#f4f4f4;color:var(--bs-accent)}
.bs-desktop-nav .bs-nav-list>li.menu-item-has-children>a:after {content:"";display:inline-block;width:6px;height:6px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:translateY(-2px) rotate(45deg);margin-left:9px}
/* Invisible bridge prevents losing hover between link and submenu. */
.bs-desktop-nav .bs-nav-list>li.menu-item-has-children:after {content:"";position:absolute;left:-15px;right:-15px;top:100%;height:15px}
.bs-mobile-explore {border-bottom:1px solid #303030;margin-bottom:8px}
.bs-mobile-explore summary {list-style:none;display:flex;align-items:center;justify-content:space-between;padding:16px 2px;font-weight:850;color:#fff;cursor:pointer}
.bs-mobile-explore summary::-webkit-details-marker {display:none}
.bs-mobile-explore summary span {font-size:21px;font-weight:400;color:var(--bs-accent)}
.bs-mobile-explore[open] summary span {transform:rotate(45deg)}
.bs-mobile-explore-inner {display:grid;grid-template-columns:1fr 1fr;gap:15px;padding:0 8px 16px}
.bs-mobile-explore-column h2 {font-size:11px;color:#999;letter-spacing:.08em;text-transform:uppercase;margin:13px 0 5px}
.bs-mobile-explore-column ul {margin:0;padding:0;list-style:none}
.bs-mobile-explore-column li a {color:#eee;font-weight:550;font-size:13px;display:block;padding:8px 0;border-bottom:1px solid #292929}

/* Product detail: one compact assurance strip, no repeated cards or duplicate banner. */
.bs-pdp-assurance {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;margin-top:23px;padding:17px 0;border-top:1px solid #e9e9e9;border-bottom:1px solid #e9e9e9}
.bs-pdp-assurance-item {display:flex;align-items:flex-start;gap:10px;min-width:0;padding:0 12px}
.bs-pdp-assurance-item:first-child {padding-left:0}
.bs-pdp-assurance-item:last-child {padding-right:0}
.bs-pdp-assurance-item+.bs-pdp-assurance-item {border-left:1px solid #eee}
.bs-pdp-assurance-icon {flex:0 0 auto;color:#292929;display:block;margin-top:2px}
.bs-pdp-assurance-copy {display:flex;flex-direction:column;min-width:0;gap:4px}
.bs-pdp-assurance-copy strong {font-size:12px;line-height:1.25;font-weight:800;color:#161616}
.bs-pdp-assurance-copy small {font-size:11px;line-height:1.3;color:#727272;overflow-wrap:anywhere}
.bs-pdp-summary .bs-share-row {margin:13px 0 0;gap:14px;opacity:.8}
.bs-pdp-summary .bs-share-row a {font-size:12px}
/* Defensive rules for themes migrated from 1.3 product templates. */
.bs-pdp-summary>.bs-pdp-promises,.bs-pdp-summary>.bs-pdp-banner,.bs-pdp-summary>.bs-trust-badges {display:none!important}

/* Four aligned responsive cards regardless of WooCommerce first/last float classes. */
.bs-pdp-related {margin-top:45px;border-top:1px solid #ececec;padding-top:37px;max-width:100%}
.bs-related-products {width:100%;max-width:100%}
.bs-related-heading {display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:23px}
.bs-related-heading h2 {font-weight:850;font-style:normal;font-size:clamp(24px,2.35vw,35px);letter-spacing:-.055em;line-height:1.1;margin:5px 0 0}
.bs-related-eyebrow {font-size:10px;letter-spacing:.19em;color:#999;font-weight:750}
.bs-related-view-all {font-size:12px;font-weight:800;border-bottom:1px solid #111;text-decoration:none;white-space:nowrap;padding-bottom:4px}
.bs-related-view-all:hover {color:var(--bs-accent);border-color:var(--bs-accent)}
.woocommerce .bs-related-grid,.bs-related-grid {display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:clamp(14px,2vw,26px)!important;list-style:none!important;padding:0!important;margin:0!important;align-items:start}
.woocommerce .bs-related-grid>li.product,.bs-related-grid>li.bs-product-card {display:block!important;position:relative!important;float:none!important;clear:none!important;width:100%!important;min-width:0!important;max-width:none!important;margin:0!important;padding:0!important;grid-column:auto!important}
.bs-related-grid .bs-card-photo {aspect-ratio:1/1!important;border-radius:7px;background:#f4f4f3;overflow:hidden}
.bs-related-grid .bs-card-photo img {object-fit:contain;width:100%;height:100%}
.bs-related-grid .bs-save-product {width:33px;height:33px;top:11px;right:11px;background:rgba(255,255,255,.93)}
.bs-related-grid .bs-product-meta {padding:13px 0 0}
.bs-related-grid .bs-product-cat {font-size:10px;margin-bottom:5px;color:#898989}
.bs-related-grid .bs-product-meta h3 {font-size:14px;line-height:1.38;font-weight:780;margin-bottom:6px;min-height:38px}
.bs-related-grid .bs-product-price {font-size:15px;font-weight:850;color:#171717}
.bs-related-grid .bs-product-price del {color:#999;font-size:12px}

@media (max-width:1350px) {
    .bs-mega-content {grid-template-columns:.8fr .95fr .95fr minmax(210px,1.15fr);gap:24px}
    .bs-nav-inner {gap:14px}
    .bs-desktop-nav .bs-nav-list {gap:13px}
    .bs-mega-trigger {font-size:11px}
}
@media (max-width:1100px) {
    .bs-mega-content {grid-template-columns:repeat(3,minmax(0,1fr))}
    .bs-mega-editorial {display:none}
    .bs-related-grid {gap:16px!important}
}
@media (max-width:1024px) {
    .bs-mega-root {display:none}
    .woocommerce .bs-related-grid,.bs-related-grid {grid-template-columns:repeat(3,minmax(0,1fr))!important}
}
@media (max-width:767px) {
    .bs-pdp-assurance {grid-template-columns:1fr;gap:13px}
    .bs-pdp-assurance-item,.bs-pdp-assurance-item:first-child,.bs-pdp-assurance-item:last-child {padding:0}
    .bs-pdp-assurance-item+.bs-pdp-assurance-item {border-left:0}
    .bs-pdp-assurance-copy {gap:2px}
    .bs-pdp-assurance-copy strong {font-size:13px}
    .bs-pdp-assurance-copy small {font-size:12px}
    .woocommerce .bs-related-grid,.bs-related-grid {grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:21px 12px!important}
    .bs-related-heading {align-items:start}
    .bs-related-heading h2 {font-size:25px}
    .bs-related-view-all {font-size:11px;margin-top:5px}
    .bs-related-grid .bs-product-meta h3 {font-size:12px;min-height:34px}
    .bs-related-grid .bs-product-price {font-size:14px}
}
@media(max-width:480px) {
    .bs-mobile-explore-inner {grid-template-columns:1fr 1fr}
    .bs-related-heading {gap:10px}
    .bs-related-heading h2 {font-size:22px}
    .bs-related-view-all {max-width:108px;white-space:normal;line-height:1.4}
}
@media (prefers-reduced-motion:reduce) {
    .bs-mega-panel {animation:none}
    .bs-mega-editorial>img,.bs-mega-trigger svg {transition:none}
}
