.bis-pt { margin: 1.2em 0; font-size: 15px; }
.bis-pt.is-loading .bis-pt-wrap { opacity: .55; transition: opacity .15s; }
.bis-pt-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 14px; background: #f1f4f8; border: 1px solid #d9dfe6; border-radius: 6px; }
.bis-pt-field { flex: 1 1 150px; min-width: 0; }
.bis-pt-field.bis-pt-q { flex: 2 1 240px; }
.bis-pt-field.bis-pt-dim { flex: 0 1 110px; }
.bis-pt-bar input, .bis-pt-bar select { width: 100%; box-sizing: border-box; padding: 9px 10px; border: 1px solid #b9c2cc; border-radius: 4px; background: #fff; font-size: 15px; height: auto; margin: 0; }
.bis-pt-clear { padding: 9px 14px; border: 1px solid #005a9c; background: #fff; color: #005a9c; border-radius: 4px; cursor: pointer; font-size: 15px; width: 100%; }
.bis-pt-clear:hover { background: #005a9c; color: #fff; }
.bis-pt-info { margin: 12px 2px 8px; color: #454f5c; font-weight: 600; }
.bis-pt-wrap { overflow-x: auto; border: 1px solid #d9dfe6; border-radius: 6px; }
.bis-pt-table { width: 100%; border-collapse: collapse; background: #fff; margin: 0; }
.bis-pt-table th, .bis-pt-table td { padding: 8px 12px; text-align: left; border-bottom: 1px solid #e6eaef; vertical-align: middle; }
.bis-pt-table thead th { background: #eef1f4; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: #454f5c; white-space: nowrap; }
.bis-pt-table tbody tr:hover { background: #f6f9fc; }
.bis-pt-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bis-pt-table td.bis-pt-img { width: 84px; padding: 4px 8px; }
.bis-pt-table td.bis-pt-img img { display: block; width: 68px; height: 44px; object-fit: contain; border: 0; background: #fff; }
.bis-pt-sku a { font-weight: 700; color: #005a9c; text-decoration: none; white-space: nowrap; }
.bis-pt-sku a:hover { text-decoration: underline; }
.bis-pt-sort { all: unset; cursor: pointer; font: inherit; text-transform: inherit; letter-spacing: inherit; color: inherit; }
.bis-pt-sort:hover { color: #005a9c; }
.bis-pt-sort.is-asc::after { content: " \25B2"; font-size: 10px; }
.bis-pt-sort.is-desc::after { content: " \25BC"; font-size: 10px; }
.bis-pt-pager { display: flex; flex-wrap: wrap; gap: 6px;  align-items: center; justify-content: center; margin: 14px 0; }
.bis-pt-pager button { min-width: 38px; padding: 8px 10px; border: 1px solid #005a9c; background: #fff; color: #005a9c; border-radius: 4px; cursor: pointer; font-size: 15px; }
.bis-pt-pager button:disabled { opacity: .4; cursor: default; }
@media (max-width: 640px) { .bis-pt-field.bis-pt-dim { flex: 1 1 28%; } .bis-pt-table th, .bis-pt-table td { padding: 7px 8px; } }

/* Category tiles (Products landing page and category pages) */
.bis-tiles { list-style: none; margin: 18px 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.bis-tiles li { margin: 0; padding: 0; list-style: none; }
.bis-tiles a { display: flex; flex-direction: column; align-items: center; text-align: center; height: 100%; padding: 12px 10px 14px; background: #fff; border: 1px solid #d9dfe6; border-radius: 6px; text-decoration: none; color: #18202b; box-shadow: 0 1px 2px rgba(24,32,43,.06); transition: box-shadow .15s, transform .15s; }
.bis-tiles a:hover { box-shadow: 0 6px 16px rgba(24,32,43,.12); transform: translateY(-2px); }
.bis-tile-img { display: flex; align-items: center; justify-content: center; width: 100%; height: 120px; margin-bottom: 8px; border-bottom: 1px solid #e6eaef; }
.bis-tile-img img { max-width: 100%; max-height: 112px; object-fit: contain; }
.bis-tile-img i { display: block; width: 64px; height: 64px; border-radius: 50%; background: #eef1f4; }
.bis-tile-name { font-weight: 600; font-size: 15px; line-height: 1.25; }
.bis-tile-n { margin-top: 4px; font-size: 12px; color: #6c7683; }
.bis-tiles .is-empty a { cursor: default; box-shadow: none; transform: none; }
.bis-tiles .is-empty .bis-tile-n { font-style: italic; }
.bis-landing-search { display: flex; max-width: 560px; margin: 0 auto 8px; }
.bis-landing-search input { flex: 1; padding: 12px 14px; border: 1px solid #b9c2cc; border-radius: 4px 0 0 4px; font-size: 16px; height: auto; margin: 0; }
.bis-landing-search button { padding: 12px 22px; border: 0; background: #005a9c; color: #fff; border-radius: 0 4px 4px 0; font-size: 16px; cursor: pointer; }

/* Category pages: use the full content width (the theme only does this for real pages) */
body.tax-product_cat #main.site-main.full-width, body.single-product #main.site-main.full-width { width: 100%; float: none; }
body.tax-product_cat .hentry .post-entry, body.single-product .hentry .post-entry { width: 100%; }

/* Breadcrumbs and "you are here" */
.bis-bc { margin: 0 0 14px; padding: 8px 12px; background: #f1f4f8; border: 1px solid #e0e6ec; border-radius: 4px; font-size: 14px; color: #454f5c; }
.bis-bc a { color: #005a9c; text-decoration: none; }
.bis-bc a:hover { text-decoration: underline; }
.bis-bc-sep { margin: 0 6px; color: #9aa5b1; }
.bis-back { display: table; margin: 0 0 12px; padding: 6px 12px; border: 1px solid #005a9c; border-radius: 4px; color: #005a9c; text-decoration: none; font-size: 14px; background: #fff; }
.bis-back:hover { background: #005a9c; color: #fff; }
/* the current section in the menu */
#main-navigation .menu > li.current-menu-item > a, #main-navigation .menu > li.current-menu-ancestor > a, #main-navigation .menu > li.current-page-ancestor > a, #main-navigation .menu > li.current_page_item > a { background: transparent; color: #fff; font-weight: 700; box-shadow: inset 0 -3px 0 #d6322c; }

/* inside the catalogue we draw our own trail, so hide the theme's */
body.bis-catalogue .breadcrumb-list { display: none; }

/* Click a tile with types, and the types open underneath */
.bis-tiles li.has-sub > a { cursor: pointer; }
.bis-tiles li.is-open > a { border-color: #005a9c; box-shadow: 0 0 0 2px #005a9c inset; }
.bis-tile-caret { font-size: 11px; margin-left: 2px; }
.bis-tiles li.is-open .bis-tile-caret { transform: rotate(180deg); display: inline-block; }
.bis-subpanels { margin: -4px 0 18px; }
.bis-sub { background: #f1f4f8; border: 1px solid #c9d2dc; border-top: 3px solid #005a9c; border-radius: 0 0 6px 6px; padding: 12px 16px 16px; animation: bis-open .18s ease-out; }
.bis-sub[hidden] { display: none; }
@keyframes bis-open { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.bis-sub-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 8px; font-size: 16px; }
.bis-sub-all { font-size: 14px; color: #005a9c; text-decoration: none; }
.bis-sub-all:hover { text-decoration: underline; }
.bis-sub-close { margin-left: auto; border: 0; background: none; font-size: 24px; line-height: 1; cursor: pointer; color: #6c7683; }
.bis-tiles-sm { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; margin: 6px 0 0; }
.bis-tiles-sm a { padding: 8px 6px 10px; }
.bis-tiles-sm .bis-tile-img { height: 78px; margin-bottom: 6px; }
.bis-tiles-sm .bis-tile-img img { max-height: 72px; }
.bis-tiles-sm .bis-tile-name { font-size: 13px; }
.bis-tiles-sm .bis-tile-n { font-size: 11px; }
@media (prefers-reduced-motion: reduce) { .bis-sub { animation: none; } }

/* Table / Thumbnails switch and the thumbnail grid */
.bis-pt-info { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.bis-pt-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.bis-pt-sortsel { display: none; max-width: 210px; width: auto; padding: 7px 10px; border: 1px solid #b9c2cc; border-radius: 4px; font-size: 14px; background: #fff; height: auto; margin: 0; font-weight: 400; }
.bis-pt.view-grid .bis-pt-sortsel { display: inline-block; }
.bis-pt-views { display: inline-flex; }
.bis-pt-views button { padding: 7px 14px; border: 1px solid #005a9c; background: #fff; color: #005a9c; font-size: 14px; cursor: pointer; font-weight: 600; }
.bis-pt-views button:first-child { border-radius: 4px 0 0 4px; }
.bis-pt-views button:last-child { border-radius: 0 4px 4px 0; margin-left: -1px; }
.bis-pt-views button[aria-pressed="true"] { background: #005a9c; color: #fff; }
.bis-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.bis-grid li { margin: 0; padding: 0; list-style: none; }
.bis-card { display: flex; flex-direction: column; height: 100%; padding: 10px 10px 14px; background: #fff; border: 1px solid #d9dfe6; border-radius: 6px; text-decoration: none; color: #18202b; box-shadow: 0 1px 2px rgba(24,32,43,.06); transition: box-shadow .15s, transform .15s; }
.bis-card:hover { box-shadow: 0 6px 16px rgba(24,32,43,.12); transform: translateY(-2px); }
.bis-card-img { display: flex; align-items: center; justify-content: center; height: 170px; margin-bottom: 8px; border-bottom: 1px solid #e6eaef; }
.bis-card-img img { max-width: 100%; max-height: 160px; object-fit: contain; }
.bis-card-name { font-weight: 700; font-size: 15px; line-height: 1.25; color: #005a9c; }
.bis-card-sku { font-size: 13px; color: #454f5c; margin-top: 2px; }
.bis-card-type { font-size: 12px; color: #6c7683; margin-top: 4px; }
.bis-card-spec { font-size: 12px; color: #454f5c; margin-top: 4px; font-variant-numeric: tabular-nums; }
@media (max-width: 640px) { .bis-grid { grid-template-columns: repeat(2, 1fr); } .bis-card-img { height: 130px; } }

/* Product page */
/* grid areas: title and facts beside the picture, intro, then specs beside the quote box */
.bis-product-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; column-gap: 44px; row-gap: 0; align-items: start;
  grid-template-areas: "title photo" "facts photo" "intro ." "specs quote"; margin-top: 50px; position: relative; }
.bis-area-title { grid-area: title; } .bis-area-facts { grid-area: facts; } .bis-area-photo { grid-area: photo; }
.bis-area-intro { grid-area: intro; } .bis-area-specs { grid-area: specs; } .bis-area-quote { grid-area: quote; margin-top: 22px; }
.bis-facts { width: 100%; border-collapse: collapse; margin: 0 0 22px; }
.bis-facts th, .bis-facts td { padding: 8px 4px; border: 0; border-bottom: 1px solid #e0e4e9; font-size: 17px; background: none; }
.bis-facts th { text-align: left; font-weight: 700; width: 48%; color: #18202b; }
.bis-facts td { text-align: right; color: #454f5c; }
.bis-facts a { color: #454f5c; text-decoration: none; } .bis-facts a:hover { text-decoration: underline; }
.bis-product-intro p { font-size: 15px; line-height: 1.6; margin: 0 0 16px; }
.bis-specs-title { font-size: 16px; letter-spacing: .06em; text-transform: uppercase; margin: 22px 0 8px; }
.bis-specs { margin: 0 0 20px 18px; padding: 0; } .bis-specs li { font-size: 14px; line-height: 1.55; margin: 0; }
.bis-quote { background: #eef0f2; border-radius: 6px; padding: 16px 18px; text-align: center; }
.bis-quote p { margin: 6px 0 12px; font-size: 14px; }
.bis-quote-btn { display: inline-block; padding: 10px 22px; background: #d6322c; color: #fff; border-radius: 4px; text-decoration: none; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; font-size: 14px; }
.bis-quote-btn:hover { background: #b32620; color: #fff; }
.bis-product-photo { border: 1px solid #d9dfe6; border-radius: 6px; padding: 14px; background: #fff; text-align: center; }
.bis-product-photo img { max-width: 100%; height: auto; }
@media (max-width: 800px) { .bis-product-grid { grid-template-columns: 1fr; grid-template-areas: "title" "photo" "facts" "quote" "intro" "specs"; } .bis-area-photo { margin: 6px 0 14px; } .bis-area-quote { margin: 4px 0 18px; } }

/* Brand logo beside the product title */
.bis-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.bis-title-row .entry-title { margin: -0.121em 0 0; line-height: 1; color: #005a9c; }   /* pulls the top of the capitals up level with the top of the logo */
.bis-brand-logo { flex: none; display: block; line-height: 0; border-radius: 4px; transition: opacity .15s; }
.bis-brand-logo:hover { opacity: .85; }
.bis-title-row .bis-brand-logo img { display: block; height: 84px !important; width: auto !important; max-width: 240px !important; object-fit: contain; border-radius: 4px; }
@media (max-width: 640px) { .bis-title-row .bis-brand-logo img { height: 56px !important; } }

/* Additional specs: two lists with a divider line, the same space either side of the line */
.bis-specs-cols { display: grid; grid-template-columns: fit-content(58%) 1px minmax(0, 1fr); column-gap: 58px; margin: 0 0 20px; }
.bis-specs-cols .bis-specs { margin: 0; padding: 0 0 0 16px; }
.bis-specs-rule { background: #d3dae2; align-self: stretch; }
@media (max-width: 560px) { .bis-specs-cols { grid-template-columns: 1fr; row-gap: 0; } .bis-specs-rule { display: none; } }
/* The quote box glides down the page as you scroll (like the new site) */
.bis-area-quote { will-change: transform; }
.bis-area-quote.is-glide { transition: transform .45s cubic-bezier(.22,.8,.3,1), box-shadow .3s; animation: bis-in .6s ease-out both; }
.bis-area-quote.is-moved { box-shadow: 0 8px 22px rgba(24,32,43,.16); }
@keyframes bis-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .bis-area-quote.is-glide { transition: none; animation: none; } }

/* breadcrumb: the first crumb sits 8px in from the edge of the bar (the theme resets padding, so this has to be firm) */
nav.woocommerce-breadcrumb.bis-bc { padding-left: 8px !important; padding-right: 8px !important; }

/* Back button when a deeper level has swapped into the panel */
.bis-sub-back { border: 1px solid #005a9c; background: #fff; color: #005a9c; border-radius: 4px; padding: 4px 12px; font-size: 14px; cursor: pointer; font-weight: 600; }
.bis-sub-back:hover { background: #005a9c; color: #fff; }
.bis-sub .bis-tiles li.has-sub .bis-tile-caret { display: inline-block; transform: rotate(-90deg); }
.bis-pt-pager button.bis-pt-step { padding: 8px 14px; margin: 0 6px; }
.bis-pt-pager button.is-current { background: #005a9c; color: #fff; cursor: default; }
.bis-pt-pager button.bis-pt-gap { border-color: transparent; background: transparent; padding: 8px 4px; min-width: 0; }
.bis-pt-pager button.bis-pt-gap:hover { text-decoration: underline; }
.bis-pt-pager { align-items: center; }
.bis-pt-pager button { height: 38px; box-sizing: border-box; line-height: 1; padding-top: 0; padding-bottom: 0; }
.bis-pt-pager .bis-pt-jump { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 0 14px; padding: 0; height: 38px; font: inherit; font-size: 15px; font-weight: 400; line-height: 1; color: #005a9c; }
.bis-pt-pager .bis-pt-jump input { box-sizing: border-box; width: 64px; height: 38px; margin: 0; padding: 0 6px; border: 1px solid #005a9c; border-radius: 4px; background: #fff; color: #005a9c; font: inherit; font-size: 15px; text-align: center; }
.bis-pt-pager .bis-pt-of { display: inline-flex; align-items: center; height: 38px; font-size: 15px; line-height: 1; color: #005a9c; }
.bis-pt-field.bis-pt-dim { flex: 0 1 150px; }
