/* Keep unrelated storefronts visually unchanged. */
html:not(.bb-barracuda-storefront) .bb-sitewide-layout { display: contents !important; }
html:not(.bb-barracuda-storefront) .bb-sitewide-sidebar { display: none !important; }
/* Override the ID-specific horizontal header styling on Barracuda desktop. */
@media (min-width:1025px) {
  html.bb-barracuda-storefront body #bb-custom-main-header #menu.navPages-container,
  html.bb-barracuda-storefront body .header #menu.navPages-container,
  html.bb-barracuda-storefront body .navPages-container { display:none !important; }
}
/* The new lightbox follows selected-color overlays. Legacy arrows and
   base-image-only zoom are deliberately hidden on Barracuda. */
html.bb-barracuda-storefront body .productView-images .jj-gallery-arrow { display:none !important; }
html.bb-barracuda-storefront body .productView-images .bb3-photo-zoom { display:none !important; }

/* Barracuda sitewide left navigation + product photo viewer.
   All selectors are Barracuda-scoped; Coda uses the original layout. */
@media (min-width: 1025px) {
  html.bb-barracuda-storefront .navPages-container { display:none !important; }
  html.bb-barracuda-storefront .bb-sitewide-layout {
    display:grid; grid-template-columns: minmax(205px,232px) minmax(0,1fr);
    gap:clamp(12px,1.7vw,26px); align-items:start;
    max-width:1650px; margin:0 auto; padding:20px 17px 44px;
    box-sizing:border-box;
  }
  html.bb-barracuda-storefront .bb-sitewide-main { min-width:0; }
  html.bb-barracuda-storefront .bb-sitewide-main > .body { min-width:0; max-width:100%; margin:0; }
  html.bb-barracuda-storefront .bb-sitewide-main .container { max-width:100%; min-width:0; }
  html.bb-barracuda-storefront .bb-sitewide-sidebar {
    display:block; position:sticky; top:18px; align-self:start;
    max-height:calc(100vh - 36px); overflow:auto; overscroll-behavior:contain;
    border:1px solid #24262a; border-top:4px solid #d71920;
    background:#080808; color:#fff; border-radius:4px;
    scrollbar-width:thin; scrollbar-color:#555 #111;
  }
}
@media (max-width:1024px) {
  html.bb-barracuda-storefront .bb-sitewide-sidebar { display:none !important; }
  html.bb-barracuda-storefront .bb-sitewide-layout,
  html.bb-barracuda-storefront .bb-sitewide-main { display:block; width:100%; min-width:0; }
}
html.bb-barracuda-storefront .bb-side-nav { padding:14px 0 20px; line-height:1.4; }
html.bb-barracuda-storefront .bb-side-nav__top { padding:8px 16px 11px; }
html.bb-barracuda-storefront .bb-side-nav__eyebrow { font-size:10px; letter-spacing:.13em; font-weight:800; color:#b7bdc6; padding:0 16px; }
html.bb-barracuda-storefront .bb-side-nav__top .bb-side-nav__eyebrow { padding:0; }
html.bb-barracuda-storefront .bb-side-nav h2 { color:#fff !important; font-size:19px !important; line-height:1.2 !important; font-weight:900; margin:7px 0 0; }
html.bb-barracuda-storefront .bb-side-nav ul { list-style:none; margin:0; padding:0; }
html.bb-barracuda-storefront .bb-side-nav__category-head { display:flex; min-width:0; align-items:stretch; }
html.bb-barracuda-storefront .bb-side-nav a { text-decoration:none; color:#f5f6f7; }
html.bb-barracuda-storefront .bb-side-nav__category-link { display:block; flex:1; min-width:0; padding:11px 5px 11px 16px; font-size:13px; line-height:1.3; font-weight:750; }
html.bb-barracuda-storefront .bb-side-nav__category-link:hover,
html.bb-barracuda-storefront .bb-side-nav__category-link.is-active,
html.bb-barracuda-storefront .bb-side-nav__category-link:focus-visible { background:#2b0e11; color:#fff; border-left:3px solid #d71920; padding-left:13px; }
html.bb-barracuda-storefront .bb-side-nav__expand { flex:none; width:37px; border:0; border-left:1px solid #232323; background:#080808; color:#c8cbd0; font-size:20px; cursor:pointer; }
html.bb-barracuda-storefront .bb-side-nav__expand[aria-expanded="true"] { color:#fff; background:#d71920; }
html.bb-barracuda-storefront .bb-side-nav__children { background:#17191c; }
html.bb-barracuda-storefront .bb-side-nav__children[hidden] { display:none !important; }
html.bb-barracuda-storefront .bb-side-nav__children a { display:block; padding:9px 12px 9px 28px; font-size:12px; color:#e1e3e6; }
html.bb-barracuda-storefront .bb-side-nav__children a:hover { background:#292e32; }
html.bb-barracuda-storefront .bb-side-nav__separator { height:1px; background:#333; margin:14px 16px 16px; }
html.bb-barracuda-storefront .bb-side-nav__extras { margin-top:8px; }
html.bb-barracuda-storefront .bb-side-nav__extras a { display:block; font-size:12px; font-weight:700; padding:10px 16px; }
html.bb-barracuda-storefront .bb-side-nav__extras a:hover { background:#2b0e11; }
/* The original left/right buttons are color navigation, not photo pagination. */
html.bb-barracuda-storefront .productView-images .jj-gallery-arrow { display:none !important; }
/* Supersede the in-place zoom controls with a larger usable modal photo viewer. */
html.bb-barracuda-storefront .productView-images .bb3-photo-zoom { display:none !important; }
html.bb-barracuda-storefront .productView-images .jj-gallery-stage { position:relative !important; }
html.bb-barracuda-storefront .bb-photo-open {
  position:absolute; bottom:13px; right:13px; z-index:21;
  padding:9px 12px; border:1px solid #333; border-radius:5px;
  background:#080808; color:#fff; font-size:11px; font-weight:800;
  cursor:pointer; box-shadow:0 2px 9px #0003;
}
html.bb-barracuda-storefront .bb-photo-open:focus-visible { outline:3px solid #d71920; outline-offset:2px; }
html.bb-barracuda-storefront .bb-photo-lightbox[hidden] { display:none !important; }
html.bb-barracuda-storefront .bb-photo-lightbox {
  position:fixed; inset:0; z-index:2147483600; padding:15px; box-sizing:border-box;
  background:rgba(0,0,0,.9); display:flex; flex-direction:column;
  align-items:center; justify-content:center; color:#fff;
}
html.bb-barracuda-storefront .bb-photo-lightbox__panel {
  display:flex; flex-direction:column; min-height:0; max-height:calc(100vh - 30px);
  width:min(1200px,100%); background:#131313; border:1px solid #3d3d3d;
  border-radius:8px; overflow:hidden;
}
html.bb-barracuda-storefront .bb-photo-lightbox__top,
html.bb-barracuda-storefront .bb-photo-lightbox__bottom {
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  padding:12px 16px; background:#171717; flex-wrap:wrap;
}
html.bb-barracuda-storefront .bb-photo-lightbox__top strong { font-size:14px; }
html.bb-barracuda-storefront .bb-photo-lightbox__close,
html.bb-barracuda-storefront .bb-photo-lightbox__control {
  color:#fff; background:#292929; border:1px solid #666; border-radius:5px;
  min-width:40px; min-height:39px; padding:7px 11px; cursor:pointer;
}
html.bb-barracuda-storefront .bb-photo-lightbox__close { margin-left:auto; font-size:22px; line-height:1; }
html.bb-barracuda-storefront .bb-photo-lightbox__viewer {
  background:#fff; flex:1; min-height:200px; overflow:auto; text-align:center;
  display:flex; align-items:center; justify-content:center; padding:18px;
}
html.bb-barracuda-storefront .bb-photo-lightbox__viewer img {
  display:block; width:auto; max-width:100%; height:auto; max-height:70vh;
  margin:auto; transform-origin:center; object-fit:contain;
}
html.bb-barracuda-storefront .bb-photo-lightbox__caption { font-size:12px; color:#e7e7e7; flex:1; }
html.bb-barracuda-storefront .bb-photo-lightbox__controls { display:flex; align-items:center; gap:9px; }
html.bb-barracuda-storefront .bb-photo-lightbox__controls output { min-width:52px; text-align:center; font-weight:800; }
@media(max-width:550px) {
  html.bb-barracuda-storefront .bb-photo-lightbox { padding:5px; }
  html.bb-barracuda-storefront .bb-photo-lightbox__panel { max-height:calc(100dvh - 10px); }
  html.bb-barracuda-storefront .bb-photo-lightbox__top, html.bb-barracuda-storefront .bb-photo-lightbox__bottom { padding:9px; }
  html.bb-barracuda-storefront .bb-photo-lightbox__viewer { padding:8px; }
  html.bb-barracuda-storefront .bb-photo-open { right:7px; bottom:7px; }
}
/* Cart confirmation: usable compact desktop dialog instead of excessive blank space. */
@media(min-width:768px) {
 html.bb-barracuda-storefront .modal:has(.fastCart) { max-width:min(900px,95vw) !important; width:min(900px,95vw) !important; }
 html.bb-barracuda-storefront .modal:has(.fastCart) .modal-content { max-height:85vh; overflow:auto; }
 html.bb-barracuda-storefront .fastCart .previewCart { display:flex !important; flex-direction:column !important; padding:0 16px 16px !important; }
 html.bb-barracuda-storefront .fastCart .previewCartCheckout { display:flex !important; flex-direction:row !important; gap:15px; flex-wrap:wrap; justify-content:space-between; align-items:start; width:100% !important; padding:18px 30px 18px 12px !important; }
 html.bb-barracuda-storefront .fastCart .bb-fastcart-cart-summary, html.bb-barracuda-storefront .fastCart .bb-fastcart-checkout-actions { max-width:48%; min-width:240px; flex:1; }
 html.bb-barracuda-storefront .fastCart .previewCart > .productView { width:100% !important; display:grid !important; grid-template-columns:160px minmax(0,1fr); grid-template-areas:"message message" "image details"; gap:9px 19px; padding:14px !important; min-height:0 !important; box-sizing:border-box; }
 html.bb-barracuda-storefront .fastCart .whatNext { grid-area:message; margin:0 0 10px !important; }
 html.bb-barracuda-storefront .fastCart .previewCart > .productView > .productView-image { grid-area:image; width:160px !important; max-width:160px !important; min-height:0 !important; margin:0 !important; }
 html.bb-barracuda-storefront .fastCart .previewCart > .productView > .productView-details { grid-area:details; margin:0 !important; padding:0 !important; width:100% !important; max-width:100% !important; }
 html.bb-barracuda-storefront .fastCart .productView-img-container { max-height:180px !important; }
 html.bb-barracuda-storefront .fastCart .productView-image--cart { max-height:180px !important; max-width:160px !important; width:auto !important; object-fit:contain; }
}

/* Respect the remaining main-content width on the homepage. */
@media(min-width:1025px) {
  html.bb-barracuda-storefront .bb-sitewide-main #bb-home-feature-region-wrap { max-width:100% !important; width:100% !important; }
  html.bb-barracuda-storefront .bb-sitewide-main .page { min-width:0; max-width:100%; }
  html.bb-barracuda-storefront .bb-side-nav__category[hidden] { display:none !important; }
}


/* Barracuda desktop menu: FLUSH-LEFT viewport column, not a centered card.
   Keep standard mobile navigation; leave Coda Lures completely untouched. */
@media (min-width: 1025px) {
  html.bb-barracuda-storefront body .bb-sitewide-layout {
    display:grid !important;
    grid-template-columns: 232px minmax(0, 1fr) !important;
    align-items:start !important;
    column-gap:0 !important;
    row-gap:0 !important;
    width:100% !important;
    max-width:none !important;
    min-width:0 !important;
    margin:0 !important;
    padding:0 !important;
    box-sizing:border-box !important;
    overflow:visible !important;
  }
  html.bb-barracuda-storefront body .bb-sitewide-sidebar {
    position:sticky !important;
    left:0 !important;
    top:0 !important;
    align-self:start !important;
    width:232px !important;
    min-width:232px !important;
    max-width:232px !important;
    max-height:100vh !important;
    min-height:min(500px,100vh) !important;
    margin:0 !important;
    border-left:0 !important;
    border-radius:0 !important;
    z-index:40 !important;
  }
  html.bb-barracuda-storefront body .bb-sitewide-main {
    display:block !important;
    width:100% !important;
    min-width:0 !important;
    max-width:100% !important;
    box-sizing:border-box !important;
    padding:16px clamp(14px,2vw,32px) 44px !important;
    margin:0 !important;
  }
  html.bb-barracuda-storefront body #bb-custom-main-header .navPages-container,
  html.bb-barracuda-storefront body .header .navPages-container,
  html.bb-barracuda-storefront body .navPages-container {
    display:none !important;
  }
  html.bb-barracuda-storefront body .bb-sitewide-main .container,
  html.bb-barracuda-storefront body .bb-sitewide-main .page {
    max-width:100% !important;
    min-width:0 !important;
    box-sizing:border-box !important;
  }
}
@media(min-width:1025px) and (max-width:1200px) {
  html.bb-barracuda-storefront body .bb-sitewide-layout {
    grid-template-columns:210px minmax(0, 1fr) !important;
  }
  html.bb-barracuda-storefront body .bb-sitewide-sidebar {
    width:210px !important;
    min-width:210px !important;
    max-width:210px !important;
  }
}
html.bb-barracuda-storefront .bb-side-nav__category[data-bb-category-group="separate"] .bb-side-nav__category-head {
  border-top:1px solid #303030;
}
html.bb-barracuda-storefront .bb-side-nav__category[data-bb-category-name="Baits by Rig"] .bb-side-nav__category-link {
  font-weight:900;
}


/* TACKLE-STYLE WHITE CATEGORY NAVIGATION — BARRACUDA ONLY, NOT CODA.
   White edge-to-edge column, charcoal labels and minimal red active accent. */
@media (min-width:1025px) {
  html.bb-barracuda-storefront body .bb-sitewide-sidebar {
    background:#fff !important;
    color:#151515 !important;
    border:0 !important;
    border-right:1px solid #e2e2e2 !important;
    border-radius:0 !important;
    box-shadow:none !important;
    scrollbar-color:#c4c4c4 #fff !important;
  }
  html.bb-barracuda-storefront body .bb-side-nav {
    background:#fff !important;
    color:#151515 !important;
    padding:18px 0 28px !important;
  }
}
html.bb-barracuda-storefront body .bb-side-nav__top {display:none !important;}
html.bb-barracuda-storefront body .bb-side-nav__category-head {background:#fff !important;}
html.bb-barracuda-storefront body .bb-side-nav__category-link,
html.bb-barracuda-storefront body .bb-side-nav__extras a {
    color:#151515 !important;
    background:#fff !important;
    font-size:14px !important;
    line-height:1.35 !important;
    font-weight:600 !important;
    padding:10px 12px 10px 22px !important;
    border-left:3px solid transparent !important;
    text-decoration:none !important;
}
html.bb-barracuda-storefront body .bb-side-nav__category-link:hover,
html.bb-barracuda-storefront body .bb-side-nav__category-link:focus-visible,
html.bb-barracuda-storefront body .bb-side-nav__extras a:hover,
html.bb-barracuda-storefront body .bb-side-nav__category-link.is-active,
html.bb-barracuda-storefront body .bb-side-nav__category-link[aria-current="page"] {
    color:#111 !important;
    background:#f4f4f4 !important;
    border-left:3px solid #d71920 !important;
}
html.bb-barracuda-storefront body .bb-side-nav__category[data-bb-category-name="Baits by Rig"] > .bb-side-nav__category-head > .bb-side-nav__category-link {font-weight:800 !important;}
html.bb-barracuda-storefront body .bb-side-nav__expand {
    background:#fff !important;
    color:#333 !important;
    border:0 !important;
    border-left:1px solid #ededed !important;
    width:36px !important;
}
html.bb-barracuda-storefront body .bb-side-nav__expand[aria-expanded="true"] {background:#f4f4f4 !important;color:#d71920 !important;}
html.bb-barracuda-storefront body .bb-side-nav__children {background:#fff !important;}
html.bb-barracuda-storefront body .bb-side-nav__children a {
    color:#555 !important;
    background:#fff !important;
    font-size:13px !important;
    font-weight:400 !important;
    padding:8px 12px 8px 34px !important;
}
html.bb-barracuda-storefront body .bb-side-nav__children a:hover {background:#f4f4f4 !important;color:#111 !important;}
html.bb-barracuda-storefront body .bb-side-nav__eyebrow {color:#777 !important;font-size:10px !important;font-weight:700 !important;}
html.bb-barracuda-storefront body .bb-side-nav__separator {background:#e0e0e0 !important;margin:16px 18px !important;}
html.bb-barracuda-storefront body .bb-side-nav__category[data-bb-category-group="separate"] .bb-side-nav__category-head {border-top:0 !important;}
html.bb-barracuda-storefront body .bb-side-nav__category[data-bb-category-name="Jigs"] {border-top:1px solid #dedede !important;padding-top:8px !important;margin-top:8px !important;}
html.bb-barracuda-storefront body .bb-side-nav__category[hidden] {display:none !important;}
/* Barracuda pilot product gallery: fill the image column, not a short 300px stage.
   Does not change Coda jigs, nonpilot product pages, or native cart behavior. */
@media (min-width:1025px) {
  html.bb-barracuda-storefront body .productView:has(input[name="product_id"]:is([value="139"],[value="199"],[value="151"])) .productView-images .jj-gallery-stage {
    position:relative !important; display:flex !important;
    align-items:center !important; justify-content:center !important;
    box-sizing:border-box !important; width:100% !important; max-width:100% !important;
    height:clamp(500px,38vw,600px) !important; min-height:500px !important;
    max-height:600px !important; margin:0 !important; padding:12px !important;
    overflow:hidden !important; background:#fff !important;
    border:1px solid #e2e2e2 !important; border-radius:6px !important;
  }
  html.bb-barracuda-storefront body .productView:has(input[name="product_id"]:is([value="139"],[value="199"],[value="151"])) .productView-images .productView-image,
  html.bb-barracuda-storefront body .productView:has(input[name="product_id"]:is([value="139"],[value="199"],[value="151"])) .productView-images .productView-img-container,
  html.bb-barracuda-storefront body .productView:has(input[name="product_id"]:is([value="139"],[value="199"],[value="151"])) .productView-images .productView-img-container > a {
    position:relative !important; display:flex !important;
    align-items:center !important; justify-content:center !important;
    box-sizing:border-box !important; width:100% !important; height:100% !important;
    max-width:100% !important; max-height:100% !important; min-height:0 !important;
    margin:0 !important; padding:0 !important; overflow:hidden !important;
  }
  html.bb-barracuda-storefront body .productView:has(input[name="product_id"]:is([value="139"],[value="199"],[value="151"])) .productView-images img[data-main-image],
  html.bb-barracuda-storefront body .productView:has(input[name="product_id"]:is([value="139"],[value="199"],[value="151"])) .productView-images img.productView-image--default {
    position:static !important; display:block !important; width:100% !important;
    height:100% !important; max-width:100% !important; max-height:100% !important;
    object-fit:contain !important; object-position:center !important;
    margin:0 auto !important; padding:0 !important; transform:none !important;
  }
  html.bb-barracuda-storefront body .productView:has(input[name="product_id"]:is([value="139"],[value="199"],[value="151"])) .productView-images .bbm-photo-layer {
    inset:0 !important; align-items:center !important; justify-content:center !important;
    background:#fff !important;
  }
  html.bb-barracuda-storefront body .productView:has(input[name="product_id"]:is([value="139"],[value="199"],[value="151"])) .productView-images .bbm-photo-layer.bbm-photo-placeholder { background:rgba(255,255,255,.92) !important; }
  html.bb-barracuda-storefront body .productView:has(input[name="product_id"]:is([value="139"],[value="199"],[value="151"])) .productView-images .bbm-photo-layer[hidden] {display:none !important;}
  html.bb-barracuda-storefront body .productView:has(input[name="product_id"]:is([value="139"],[value="199"],[value="151"])) .productView-images .bbm-photo-layer .bbm-exact-photo {
    width:100% !important; height:100% !important; max-width:100% !important;
    max-height:100% !important; object-fit:contain !important;
    object-position:center !important;
  }
  /* The single tiny native thumbnail duplicates the large bait photo. */
  html.bb-barracuda-storefront body .productView:has(input[name="product_id"]:is([value="139"],[value="199"],[value="151"])) .productView-images .productView-thumbnails:has(> li:only-child) {
    display:none !important;
  }
  /* Multiple genuine photos retain a small, usable strip at the stage bottom. */
  html.bb-barracuda-storefront body .productView:has(input[name="product_id"]:is([value="139"],[value="199"],[value="151"])) .productView-images .productView-thumbnails:not(:has(> li:only-child)) {
    position:absolute !important; bottom:9px !important; left:12px !important;
    z-index:16 !important; width:auto !important; max-width:calc(100% - 145px) !important;
    height:auto !important; display:flex !important; gap:6px !important;
    margin:0 !important; padding:0 !important; background:rgba(255,255,255,.94) !important;
  }
}
@media(max-width:1024px) {
  html.bb-barracuda-storefront body .productView:has(input[name="product_id"]:is([value="139"],[value="199"],[value="151"])) .productView-images .jj-gallery-stage {
    min-height:0 !important; max-height:none !important;
  }
}

/* Remove BigCommerce Stencil lazy-image aspect-ratio spacer in resized stage. */
@media (min-width:1025px) {
 html.bb-barracuda-storefront body .productView:has(input[name="product_id"]:is([value="139"],[value="199"],[value="151"])) .jj-gallery-stage .productView-img-container::after {content:none !important;display:none !important;padding:0 !important;}
}
