/* Catalogue and product presentation shared by E-BIKE and MTB. */
.nsmtb-directory-grid {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-top:30px;}
.nsmtb-directory-card {display:flex;flex-direction:column;min-width:0;height:132px;box-sizing:border-box;padding:14px 18px;background:#202220;border:1px solid #363936;color:#f2f1eb;text-decoration:none;transition:border-color .15s,background .15s;}
.nsmtb-directory-card:hover,.nsmtb-directory-card:focus-visible {border-color:#bd292e;background:#272927;}
.nsmtb-directory-card:focus-visible {outline:2px solid #f2f1eb;outline-offset:3px;}
.nsmtb-directory-art {display:flex;flex:1;min-height:0;align-items:center;justify-content:center;}
.nsmtb-directory-art strong {font-size:27px;font-weight:600;letter-spacing:-.04em;text-align:center;}
.nsmtb-directory-art .nsmtb-brand-mark {width:130px;height:62px;max-width:100%;justify-content:center;background:transparent;isolation:auto;}
.nsmtb-directory-art .nsmtb-brand-mark[data-brand="velduro"] img {width:120px;flex-basis:120px;}
.nsmtb-directory-brand-image {max-width:130px;max-height:62px;width:auto;height:auto;object-fit:contain;}
.nsmtb-directory-caption {display:flex;align-items:center;justify-content:space-between;gap:8px;padding-top:8px;color:#b5b5ae;font-size:11px;letter-spacing:.08em;text-transform:uppercase;}
.nsmtb-directory-caption b {color:#f2f1eb;font-size:15px;}
@media(max-width:900px){.nsmtb-directory-grid{grid-template-columns:repeat(3,minmax(0,1fr));}}
@media(max-width:600px){.nsmtb-directory-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}.nsmtb-directory-card{height:116px;padding:10px 12px;}.nsmtb-directory-art strong{font-size:22px;}.nsmtb-directory-art .nsmtb-brand-mark{width:108px;height:50px;}}
.nsmtb-catalog-page > h1 {
  font-size: clamp(44px, 6.8vw, 70px);
  line-height: 1;
  font-weight: 500;
  letter-spacing: -.055em;
}
.nsmtb-brand-mark {
  background: #151715;
  isolation: isolate;
  display: inline-flex;
  width: 240px;
  max-width: 100%;
  height: 70px;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
  vertical-align: middle;
}
.nsmtb-brand-mark img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: invert(1);
  mix-blend-mode: screen;
}
.nsmtb-brand-mark[data-brand="velduro"] img {
  filter: none;
  flex: 0 0 160px;
  width: 160px;
  max-height: none;
}
.nsmtb-brand-mark[data-brand="teewing"] img { filter: none; }
.nsmtb-brand-mark:is(
  [data-brand="branchy"],
  [data-brand="deity"],
  [data-brand="dt-swiss"],
  [data-brand="enve"],
  [data-brand="fox"],
  [data-brand="hope"],
  [data-brand="poc"]
) img {
  filter: none;
  mix-blend-mode: normal;
}
.nsmtb-product-card { overflow: hidden; }
.nsmtb-catalog-page .nsmtb-brand-card { height: 178px; min-height: 178px; }
.nsmtb-catalog-page .nsmtb-brand-logo { min-height: 0; height: 132px; }
.nsmtb-catalog-page .nsmtb-brand-logo img { max-height: 105px; }
/* Match the dark brand tiles on the home page, including the logo treatment. */
.nsmtb-catalog-page .nsmtb-brand-card {
  background:#202222;
  color:#f2f1eb;
  border:1px solid #383a39;
  border-radius:2px;
  isolation:isolate;
}
.nsmtb-catalog-page .nsmtb-brand-logo {
  background:#fff;
  filter:invert(1);
  mix-blend-mode:screen;
}
.nsmtb-catalog-page .nsmtb-brand-card[data-brand="velduro"] .nsmtb-brand-logo {padding:0;}
.nsmtb-catalog-page .nsmtb-brand-card[data-brand="velduro"] img {
  width:220px;
  height:220px;
  max-height:none;
  flex-shrink:0;
}
.nsmtb-catalog-page .nsmtb-brand-caption {color:#b5b5ae;font-size:11px;font-weight:400;letter-spacing:1px;}
.nsmtb-catalog-page .nsmtb-brand-caption b {color:#f2f1eb;}
.nsmtb-catalog-page .nsmtb-brand-card:hover,
.nsmtb-catalog-page .nsmtb-brand-card:focus-visible {border-color:#da6150;}
@media(max-width:600px) {
  .nsmtb-catalog-page .nsmtb-brand-card[data-brand="velduro"] img {width:165px;height:165px;}
}
/* WordPress may add prose paragraphs around shortcode links. */
.nsmtb-product-card > p:empty { display: none; }
.nsmtb-product-card > p:has(.nsmtb-product-link) { margin: auto 0 0; }
.nsmtb-product-card > .nsmtb-product-photo {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  width: 100%;
  overflow: hidden;
  background: #f4f3ee;
}
.nsmtb-product-card .nsmtb-product-photo img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  aspect-ratio: auto;
  object-fit: contain;
  padding: 12px;
  box-sizing: border-box;
}
.nsmtb-product-card h2 { font-size: clamp(20px, 1.8vw, 26px); line-height: 1.2; margin-top: 22px; }
.nsmtb-product-card .price { margin: 4px 0 22px; font-size: 22px; }
.nsmtb-product-card .nsmtb-product-link { padding-top: 12px; }
.nsmtb-card-availability { margin: -12px 0 18px; color: #a9aaa4; font-size: 13px; line-height: 1.45; }
.nsmtb-catalog-filters { display: grid; grid-template-columns: minmax(210px,1.3fr) minmax(150px,.8fr) minmax(190px,1fr) auto auto; gap: 12px; align-items: end; margin: 0 0 24px; padding: 16px; border: 1px solid var(--ns-theme-line); background: #171918; }
.nsmtb-catalog-filters label { display: grid; gap: 7px; min-width: 0; }
.nsmtb-catalog-filters label > span { color: #b9bbb5; font-size: 11px; letter-spacing: .05em; }
.nsmtb-catalog-filters input,.nsmtb-catalog-filters select { width: 100%; min-height: 44px; box-sizing: border-box; border: 1px solid #454744; border-radius: 0; background: #111312; color: #f3f2ec; padding: 9px 11px; font: inherit; }
.nsmtb-catalog-filters input:focus,.nsmtb-catalog-filters select:focus { border-color: var(--ns-theme-red); outline: 2px solid transparent; }
.nsmtb-catalog-filters button,.nsmtb-catalog-filters > a { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; padding: 10px 16px; border: 1px solid var(--ns-theme-red); background: var(--ns-theme-red); color: #fff; font-size: 13px; font-weight: 700; text-decoration: none; cursor: pointer; }
.nsmtb-catalog-filters > a { border-color: #4a4c48; background: transparent; }
.nsmtb-catalog-filters > p { grid-column: 1 / -1; margin: 0; color: #a9aaa4; font-size: 12px; }
body:is(.nsmtb-consult-product,.nsmtb-bike-product) .nsmtb-product-heading { margin-top: 0; }
body.single-product main#wp--skip-link--target > .wp-block-columns {
  display: grid !important;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
}
body.single-product main#wp--skip-link--target > .wp-block-columns > .wp-block-column {
  width: auto !important;
}
.nsmtb-product-heading .nsmtb-brand-mark { height: 52px; width: 180px; margin-bottom: 24px; }
body:is(.nsmtb-consult-product,.nsmtb-bike-product) .nsmtb-model-title {
  margin: 0;
  font-size: clamp(22px, 2.4vw, 34px);
  line-height: 1.15;
  font-weight: 500;
  letter-spacing: -.04em;
  text-wrap: initial;
  word-break: normal;
  overflow-wrap: normal;
}
body:is(.nsmtb-consult-product,.nsmtb-bike-product) .wp-block-woocommerce-product-price { margin-top: 16px; }
body:is(.nsmtb-consult-product,.nsmtb-bike-product) .wc-block-components-product-price {
  font-size: 28px;
  font-weight: 500;
  color: #f1f0ea;
}
.nsmtb-product-description { margin-top: 28px; color: #b9bab4; font-size: 16px; line-height: 1.7; }
.nsmtb-product-description p { margin: 0 0 14px; }
.nsmtb-consult-action { margin-top: 24px; }
body.single-product .nsmtb-consult-button.button {
  display: inline-flex;
  min-width: 190px;
  min-height: 46px;
  box-sizing: border-box;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 24px;
  padding: 13px 22px;
  border: 1px solid #bd292e;
  border-radius: 0;
  background: #bd292e;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}
body.single-product .nsmtb-consult-button:hover { background: #a72227; }
body.single-product .nsmtb-consult-button:focus-visible { outline: 2px solid #f1f0ea; outline-offset: 4px; }
body.single-product .woocommerce-product-gallery { width: 100% !important; max-width: 100%; overflow: hidden; }
body.single-product .woocommerce-product-gallery .flex-viewport { background: #f4f3ee; }
body.single-product .woocommerce-product-gallery__image > a { display: block; aspect-ratio: 4 / 3; background: #f4f3ee; }
body.single-product .woocommerce-product-gallery__image > a > img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 100%;
  object-fit: contain;
}
body.single-product .woocommerce-product-gallery .flex-control-thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 12px 0 8px;
  margin: 0;
  list-style: none;
  scrollbar-width: thin;
  scrollbar-color: #bd292e #303230;
}
body.single-product .woocommerce-product-gallery .flex-control-thumbs li {
  float: none;
  clear: none;
  flex: 0 0 72px;
  width: 72px;
  margin: 0;
}
body.single-product .woocommerce-product-gallery .flex-control-thumbs img {
  display: block;
  width: 72px;
  height: 62px;
  object-fit: contain;
  background: #f4f3ee;
  box-sizing: border-box;
  border: 2px solid transparent;
  opacity: .65;
}
body.single-product .woocommerce-product-gallery .flex-control-thumbs img.flex-active { opacity: 1; border-color: #bd292e; }
body.single-product .woocommerce-product-gallery .flex-control-thumbs img:focus-visible { outline: 2px solid #bd292e; outline-offset: -2px; }
body.single-product.woocommerce .woocommerce-product-gallery__image > a > img { width: 100%; height: 100%; object-fit: contain; }
body.single-product.woocommerce .woocommerce-product-gallery .flex-control-thumbs li img { width: 72px; height: 62px; object-fit: contain; }
.nsmtb-product-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 30px 0 0;
  padding: 0;
  border-top: 1px solid #3a403a;
}
.nsmtb-product-facts > div {
  display: grid;
  grid-template-columns: minmax(72px, .7fr) minmax(0, 1.3fr);
  align-items: baseline;
  gap: 12px;
  min-width: 0;
  padding: 14px 18px 14px 0;
  border-bottom: 1px solid #3a403a;
}
.nsmtb-product-facts > div:nth-child(even) { padding-left: 18px; border-left: 1px solid #3a403a; }
.nsmtb-product-facts dt { color: #8f958e; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.nsmtb-product-facts dd { min-width: 0; margin: 0; color: #f1f0ea; font-size: 13px; overflow-wrap: anywhere; }
.nsmtb-product-facts a { color: inherit; text-decoration-color: #6d746d; text-underline-offset: 3px; }
@media (max-width: 600px) {
  .nsmtb-catalog-page > h1 { font-size: 44px; }
  .nsmtb-catalog-page > h1 .nsmtb-brand-mark { height: 44px; width: 180px; }
  .nsmtb-product-heading .nsmtb-brand-mark { margin-bottom: 18px; }
  body:is(.nsmtb-consult-product,.nsmtb-bike-product) .nsmtb-model-title { font-size: 26px; }
  .nsmtb-catalog-page .nsmtb-brand-card { height: 145px; min-height: 145px; }
  .nsmtb-catalog-page .nsmtb-brand-logo { height: 106px; }
  .nsmtb-catalog-page .nsmtb-brand-logo img { max-height: 78px; }
  .nsmtb-product-facts { grid-template-columns: minmax(0, 1fr); }
  .nsmtb-product-facts > div:nth-child(even) { padding-left: 0; border-left: 0; }
}
@media (max-width: 999px) {
  body.single-product main#wp--skip-link--target > .wp-block-columns {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px !important;
  }
  body.single-product main#wp--skip-link--target > .wp-block-columns > .wp-block-column:last-child { position: static; }
}

/* Pagination for complete manufacturer catalogues, including draft previews. */
/* SHOP uses the same restrained type scale, with readable native purchase controls. */
body.nsmtb-shop-product .wp-block-post-title {
  margin-top:0; font-size:clamp(24px,2.4vw,34px); line-height:1.2; letter-spacing:-.035em;
}
body.nsmtb-shop-product .wp-block-post-excerpt,
body.nsmtb-shop-product .woocommerce-product-details__short-description {
  font-size:16px; line-height:1.7; color:#b9bab4;
}
body.nsmtb-shop-product .wp-block-woocommerce-product-price {font-size:28px; margin-top:16px;}
body.nsmtb-shop-product form.variations_form {font-size:16px;}
body.nsmtb-shop-product.woocommerce div.product form.cart .variations select {
  min-width:180px; min-height:46px; padding:10px 40px 10px 14px; background-color:#f4f3ee; color:#151715; border:1px solid #aeb5ad; border-radius:0;
}
body.nsmtb-shop-product form.variations_form .label {font-size:14px; padding-right:20px;}
body.nsmtb-shop-product form.variations_form .reset_variations {font-size:12px; color:#b9bab4;}
body.nsmtb-shop-product .single_add_to_cart_button.button {
  min-height:46px; padding:13px 24px; background:#bd292e; color:#fff; font-size:14px; line-height:1.2; border-radius:0;
}
body.nsmtb-shop-product .single_add_to_cart_button.button.disabled {opacity:.45;}
body.nsmtb-shop-product .single_add_to_cart_button.button:hover {background:#a72227;}
body.nsmtb-shop-product .quantity input.qty {min-height:46px; box-sizing:border-box; font-size:14px;}
body.nsmtb-shop-product .stock.in-stock {color:#b9bab4; font-size:14px;}
body.nsmtb-shop-product .woocommerce-product-gallery__image > a {aspect-ratio:1 / 1;}
body.nsmtb-shop-product .wp-block-woocommerce-product-meta {font-size:13px; line-height:1.7;}
body.nsmtb-shop-product select:focus-visible,
body.nsmtb-shop-product .single_add_to_cart_button:focus-visible {outline:2px solid #f4f3ee; outline-offset:4px;}

/* SHOP is an index: the two main families remain prominent and their direct
   subcategories provide useful shortcuts without another intermediate page. */
.nsmtb-shop-index{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;align-items:start}
.nsmtb-shop-index-group{min-width:0;background:#191c1a;border:1px solid var(--ns-theme-line)}
.nsmtb-shop-index .nsmtb-shop-main-card{min-height:210px;border:0;border-bottom:1px solid var(--ns-theme-line)}
.nsmtb-shop-subcategories{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));padding:8px}
.nsmtb-shop-subcategories a{display:flex;align-items:center;justify-content:space-between;gap:14px;min-width:0;min-height:50px;padding:10px 13px;box-sizing:border-box;border-bottom:1px solid #333934;color:#d4d6d0;font-size:12px;line-height:1.35;text-decoration:none;transition:background .18s ease,color .18s ease,border-color .18s ease}
.nsmtb-shop-subcategories a:nth-child(odd){border-right:1px solid #333934}
.nsmtb-shop-subcategories a:is(:hover,:focus-visible){background:#252a27;color:#fff;border-color:#4b534d;outline:none}
.nsmtb-shop-subcategories a span{min-width:0}
.nsmtb-shop-subcategories a b{flex:0 0 auto;color:#e8756e;font-size:15px;font-weight:400;transition:transform .18s ease}
.nsmtb-shop-subcategories a:is(:hover,:focus-visible) b{transform:translate(2px,-2px)}
@media(max-width:800px){.nsmtb-shop-index{grid-template-columns:1fr;gap:22px}.nsmtb-shop-index .nsmtb-shop-main-card{min-height:175px}}
@media(max-width:480px){.nsmtb-shop-subcategories{grid-template-columns:1fr}.nsmtb-shop-subcategories a:nth-child(odd){border-right:0}.nsmtb-shop-subcategories a{min-height:48px}}

.nsmtb-catalog-pagination { margin-top: 40px; }
.nsmtb-catalog-pagination ul.page-numbers { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; list-style: none; padding: 0; }
.nsmtb-catalog-pagination .page-numbers a, .nsmtb-catalog-pagination .page-numbers span { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 8px 14px; box-sizing: border-box; border: 1px solid var(--ns-theme-line); text-decoration: none; }
.nsmtb-catalog-pagination .page-numbers .current { background: var(--ns-theme-red); border-color: var(--ns-theme-red); color: #fff; }
.nsmtb-catalog-pagination a:hover, .nsmtb-catalog-pagination a:focus-visible { border-color: var(--ns-theme-red); }
@media (max-width: 980px) {
  .nsmtb-catalog-filters { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .nsmtb-catalog-filters button,.nsmtb-catalog-filters > a { width:100%; }
}
@media (max-width: 600px) {
  .nsmtb-catalog-filters { grid-template-columns: minmax(0,1fr); gap:10px; padding:14px; }
  .nsmtb-catalog-filters > p { grid-column:1; }
}
