/*
 * Fasto V4.8
 * Real layout reset for bike-card pages.
 * One gutter, one grid, one filter bar. No priority overrides.
 */
:root{
  --fasto-v48-gutter:clamp(18px, 3.4vw, 72px);
  --fasto-v48-line:#dfe5ec;
  --fasto-v48-line-soft:#edf1f5;
  --fasto-v48-ink:#151a22;
  --fasto-v48-muted:#667386;
  --fasto-v48-accent:#ff3131;
  --fasto-v48-card-media:300px;
  --fasto-v48-card-copy:150px;
  --fasto-v48-card-footer:108px;
  --fasto-v2-primary:#ff3131;
  --fasto-v2-primary-dark:#ff3131;
  --fasto-v25-red:#ff3131;
}

/* Page canvas: do not let old theme containers recenter nested grids. */
html body .site-grid,
html body .site-grid-inner,
html body main#content{
  width:100%;
  max-width:none;
  margin-left:0;
  margin-right:0;
  padding-left:0;
  padding-right:0;
  box-sizing:border-box;
}

/* One page gutter for every visual block related to bike grids. */
html body .fasto-v25-section-head,
html body .fasto-v25-browse .bike-home-randomize,
html body .fasto-v25-browse .bikes-cats-subcats-list,
html body .fasto-v35-archive-header,
html body .fasto-v35-bike-results,
html body .bikes-filter-container,
html body .bike-advisor-main-wrapper .bike-advisor-holder,
html body .fasto-v48-advisor-results-section,
html body .fasto-v2-advisor-page .bike-advisor-results-wrapper,
html body .fasto-v2-advisor-page .advisor-price-main-wrapper,
html body .related-bikes-big-wrapper,
html body #all-bike-families,
html body .bike-single .related-bikes-big-wrapper,
html body .bike-single #all-bike-families,
html body .bike-gear-calculator .container,
html body .gear-calculator-results,
html body .gearing-results,
html body .bike-compare-holder,
html body main#content > ul.articles.bikes{
  width:auto;
  max-width:none;
  margin-left:var(--fasto-v48-gutter);
  margin-right:var(--fasto-v48-gutter);
  padding-left:0;
  padding-right:0;
  box-sizing:border-box;
}

/* If a bike grid sits inside one of the gutter wrappers, remove all nested offsets. */
html body .fasto-v25-browse .ajax-bikes-holder,
html body .fasto-v25-browse .bikes-cats-subcats-list .ajax-bikes-holder,
html body .fasto-v35-bike-results > ul.articles.bikes,
html body .bikes-filter-container > .bikes-filter-data,
html body .bikes-filter-container .bikes-filter-data,
html body .bikes-filter-container .bikes-filter-data > ul.articles.bikes,
html body .fasto-v48-advisor-results-section .bike-advisor-results,
html body .fasto-v48-advisor-results-section .bike-advisor-results > ul.articles.bikes,
html body .related-bikes-big-wrapper > ul.articles.bikes,
html body #all-bike-families > ul.articles.bikes{
  width:100%;
  max-width:none;
  margin-left:0;
  margin-right:0;
  padding-left:0;
  padding-right:0;
  box-sizing:border-box;
}

/* Archive/taxonomy headings use the same gutter and no hidden secondary offsets. */
html body .fasto-v35-archive-header{
  padding-top:clamp(26px, 4vw, 76px);
  padding-bottom:clamp(24px, 3.2vw, 56px);
}
html body .fasto-v35-archive-header .fasto-v35-archive-kicker,
html body .fasto-v35-archive-header h1,
html body .fasto-v35-archive-header .brand-name.tax,
html body .fasto-v35-archive-header .fasto-v35-breadcrumbs,
html body .fasto-v35-archive-header .fasto-v35-archive-description,
html body .fasto-v35-archive-header .fasto-v35-archive-actions{
  margin-left:0;
  padding-left:0;
  max-width:none;
}

/* Homepage browse heading and category controls align with the first card. */
html body .fasto-v25-browse > .fasto-v25-section-head{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:16px;
  align-items:end;
  margin-bottom:34px;
}
html body .fasto-v25-browse > .fasto-v25-section-head > .fasto-v25-faded{display:none;}
html body .fasto-v25-browse > .fasto-v25-section-head h2{margin:0;}
html body .fasto-v25-browse .bike-home-randomize{
  margin-top:0;
  margin-bottom:18px;
}
html body .fasto-v25-browse .bike-home-randomize .bike-heading{
  margin:0;
  padding:0;
  text-align:left;
  max-width:none;
}
html body .fasto-v25-browse .bike-home-randomize h2{margin:0 0 6px;}
html body .fasto-v25-browse .bike-home-randomize p{margin:0;}
html body .fasto-v25-browse .bikes-cats-subcats-list{
  display:block;
  margin-top:0;
  overflow:visible;
}
html body .fasto-v25-browse .bikes-cats-subcats-list > ul.bikes-categories{
  display:flex;
  flex-wrap:wrap;
  align-items:flex-start;
  gap:10px 34px;
  width:100%;
  margin:0;
  padding:0;
  list-style:none;
}
html body .fasto-v25-browse .bikes-cats-subcats-list > ul.bikes-categories > li{
  flex:0 0 auto;
  width:auto;
  min-width:0;
  margin:0;
  padding:0;
  border:0;
  background:transparent;
}
html body .fasto-v25-browse .bikes-cats-subcats-list h3,
html body .fasto-v25-browse .bikes-cats-subcats-list h4{
  margin:0;
  padding:0;
  line-height:1;
}
html body .fasto-v25-browse .bikes-cats-subcats-list .choose-category,
html body .fasto-v25-browse .bikes-cats-subcats-list .choose-subcategory{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:36px;
  padding:0 16px;
  border:1px solid var(--fasto-v48-line);
  background:#fff;
  color:#06101f;
  text-decoration:none;
  font-weight:700;
  border-radius:0;
}
html body .fasto-v25-browse .bikes-cats-subcats-list > ul.bikes-categories > li.active > h3 .choose-category,
html body .fasto-v25-browse .bikes-cats-subcats-list .bikes-subcategories > li.active .choose-subcategory{
  background:var(--fasto-v48-accent);
  border-color:var(--fasto-v48-accent);
  color:#fff;
}
html body .fasto-v25-browse .bikes-cats-subcats-list .bikes-subcategories{
  display:none;
  flex-wrap:wrap;
  gap:6px;
  width:100%;
  margin:8px 0 0;
  padding:0;
  list-style:none;
}
html body .fasto-v25-browse .bikes-cats-subcats-list > ul.bikes-categories > li.active .bikes-subcategories{display:flex;}
html body .fasto-v25-browse .ajax-bikes-holder{margin-top:24px;}

/* The one true bike card grid. */
html body ul.articles.bikes,
html body .ajax-bikes-holder ul.articles.bikes,
html body .fasto-v25-browse ul.articles.bikes,
html body .fasto-v35-bike-results ul.articles.bikes,
html body .bikes-filter-data ul.articles.bikes,
html body .bike-advisor-results ul.articles.bikes,
html body .bike-advisor-holder ul.articles.bikes,
html body .related-bikes-big-wrapper ul.articles.bikes,
html body #all-bike-families ul.articles.bikes{
  display:grid;
  grid-template-columns:repeat(4, minmax(0,1fr));
  gap:0;
  width:100%;
  max-width:none;
  margin:0;
  padding:0;
  list-style:none;
  align-items:stretch;
  border:0;
  background:transparent;
  box-sizing:border-box;
}
html body ul.articles.bikes > li.bike-model,
html body ul.articles.bikes > li.fasto-v48-bike-model,
html body .ajax-bikes-holder ul.articles.bikes > li.bike-model,
html body .fasto-v35-bike-results ul.articles.bikes > li.bike-model,
html body .bikes-filter-data ul.articles.bikes > li.bike-model,
html body .bike-advisor-results ul.articles.bikes > li.bike-model,
html body .related-bikes-big-wrapper ul.articles.bikes > li.bike-model,
html body #all-bike-families ul.articles.bikes > li.bike-model{
  width:auto;
  max-width:none;
  min-width:0;
  flex:none;
  display:flex;
  margin:0;
  padding:0;
  box-sizing:border-box;
}

/* Card internals. */
html body ul.articles.bikes > li.bike-model > article.fasto-v2-bike-card,
html body .ajax-bikes-holder ul.articles.bikes > li.bike-model > article.fasto-v2-bike-card,
html body .fasto-v35-bike-results ul.articles.bikes > li.bike-model > article.fasto-v2-bike-card,
html body .bikes-filter-data ul.articles.bikes > li.bike-model > article.fasto-v2-bike-card,
html body .bike-advisor-results ul.articles.bikes > li.bike-model > article.fasto-v2-bike-card,
html body .related-bikes-big-wrapper ul.articles.bikes > li.bike-model > article.fasto-v2-bike-card,
html body #all-bike-families ul.articles.bikes > li.bike-model > article.fasto-v2-bike-card{
  position:relative;
  display:flex;
  flex-direction:column;
  width:100%;
  height:calc(var(--fasto-v48-card-media) + var(--fasto-v48-card-copy) + var(--fasto-v48-card-footer));
  min-height:calc(var(--fasto-v48-card-media) + var(--fasto-v48-card-copy) + var(--fasto-v48-card-footer));
  margin:0;
  padding:0;
  overflow:hidden;
  background:#fff;
  border:1px solid var(--fasto-v48-line);
  border-top:1px solid var(--fasto-v48-line);
  border-image:none;
  border-radius:0;
  box-shadow:none;
  box-sizing:border-box;
}
html body .fasto-v2-bike-card::before,
html body .fasto-v2-bike-card::after{
  content:none;
  display:none;
}
html body .fasto-v2-bike-card .bike-year{
  position:absolute;
  top:24px;
  left:28px;
  z-index:3;
  margin:0;
  padding:0;
  background:transparent;
  border:0;
  color:var(--fasto-v48-accent);
  font-size:13px;
  line-height:1;
  font-weight:700;
}
html body .fasto-v2-bike-card .compare-holder-main{
  position:absolute;
  top:18px;
  right:18px;
  z-index:4;
}
html body .fasto-v2-bike-card .compare-holder a{
  width:38px;
  height:38px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:0;
  border:1px solid var(--fasto-v48-line);
  background:#fff;
  color:var(--fasto-v48-ink);
  border-radius:0;
  box-shadow:none;
}
html body .fasto-v2-bike-card .compare-holder a span{display:none;}
html body .fasto-v2-bike-card .fasto-v37-card-media,
html body .fasto-v2-bike-card .fasto-v48-card-media{
  flex:0 0 var(--fasto-v48-card-media);
  height:var(--fasto-v48-card-media);
  min-height:var(--fasto-v48-card-media);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:44px 28px 24px;
  margin:0;
  border:0;
  border-bottom:1px solid var(--fasto-v48-line);
  background:#fff;
  box-sizing:border-box;
}
html body .fasto-v2-bike-card .post-thumb{
  width:100%;
  height:100%;
  min-height:0;
  margin:0;
  padding:0;
  display:flex;
  align-items:center;
  justify-content:center;
  border:0;
  background:#fff;
  overflow:hidden;
}
html body .fasto-v2-bike-card .post-thumb a{
  width:100%;
  height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:0;
}
html body .fasto-v2-bike-card .post-thumb img{
  display:block;
  width:100%;
  height:100%;
  max-width:100%;
  max-height:100%;
  object-fit:contain;
  transform:none;
  filter:none;
  mix-blend-mode:normal;
}
html body .fasto-v2-bike-card .fasto-v37-card-content,
html body .fasto-v2-bike-card .fasto-v48-card-content{
  flex:0 0 var(--fasto-v48-card-copy);
  height:var(--fasto-v48-card-copy);
  min-height:var(--fasto-v48-card-copy);
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:14px;
  margin:0;
  padding:0 28px;
  border-bottom:1px solid var(--fasto-v48-line);
  background:#fff;
  box-sizing:border-box;
}
html body .fasto-v2-bike-card .bike-categories-wrapper{
  min-height:28px;
  display:flex;
  align-items:center;
  margin:0;
  padding:0;
  overflow:hidden;
}
html body .fasto-v2-bike-card .bike-categories-wrapper ul,
html body .fasto-v2-bike-card .bike-categories{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:6px;
  margin:0;
  padding:0;
  list-style:none;
}
html body .fasto-v2-bike-card .bike-categories-wrapper li{
  display:inline-flex;
  align-items:center;
  margin:0;
  padding:0;
  border:0;
  background:transparent;
  line-height:1;
}
html body .fasto-v2-bike-card .bike-categories-wrapper li:not(:last-child)::after{
  content:'/';
  margin-left:6px;
  color:var(--fasto-v48-muted);
}
html body .fasto-v2-bike-card .bike-categories-wrapper a{
  display:inline-flex;
  align-items:center;
  min-height:26px;
  padding:0 10px;
  border:1px solid var(--fasto-v48-line);
  background:#fff;
  color:var(--fasto-v48-muted);
  font-size:12px;
  line-height:1;
  font-weight:700;
  text-decoration:none;
  border-radius:0;
}
html body .fasto-v2-bike-card .post-details{
  min-height:62px;
  display:flex;
  align-items:center;
  margin:0;
  padding:0;
}
html body .fasto-v2-bike-card .post-title{
  display:-webkit-box;
  margin:0;
  padding:0;
  max-height:62px;
  overflow:hidden;
  color:var(--fasto-v48-ink);
  font-size:clamp(20px, 1.22vw, 25px);
  line-height:1.15;
  letter-spacing:-.02em;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
}
html body .fasto-v2-bike-card .post-title a{color:inherit;text-decoration:none;}
html body .fasto-v2-bike-card .fasto-v37-card-footer,
html body .fasto-v2-bike-card .fasto-v48-card-footer{
  flex:0 0 var(--fasto-v48-card-footer);
  height:var(--fasto-v48-card-footer);
  min-height:var(--fasto-v48-card-footer);
  display:flex;
  flex-direction:column;
  justify-content:center;
  margin:0;
  padding:0 28px;
  background:#fff;
  box-sizing:border-box;
}
html body .fasto-v2-bike-card .brand-price{
  min-height:44px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin:0;
  padding:0;
  border:0;
}
html body .fasto-v2-bike-card .price,
html body .fasto-v2-bike-card .bike-price,
html body .fasto-v2-bike-card .brand-price > .price{
  color:var(--fasto-v48-accent);
  font-size:clamp(25px, 1.75vw, 34px);
  line-height:1;
  font-weight:700;
}
html body .fasto-v2-bike-card .brand-price ul{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  margin:0;
  padding:0;
  list-style:none;
}
html body .fasto-v2-bike-card .brand-price li,
html body .fasto-v2-bike-card .brand-price a{
  display:inline-flex;
  align-items:center;
  min-height:28px;
  padding:0 12px;
  border:1px solid var(--fasto-v48-line);
  background:#fff;
  color:var(--fasto-v48-muted);
  font-size:12px;
  line-height:1;
  font-weight:700;
  text-decoration:none;
  border-radius:0;
}
html body .fasto-v2-bike-card .fasto-v2-admin-card-links{
  min-height:18px;
  display:flex;
  align-items:center;
  gap:8px;
  margin:6px 0 0;
  padding:0;
  color:var(--fasto-v48-muted);
  font-size:12px;
}

/* Filter page: force desktop bar to be a horizontal bar and align it with cards. */
@media (min-width:783px){
  html body .bikes-filter-container{
    display:block;
    width:auto;
    max-width:none;
    margin:32px var(--fasto-v48-gutter) 56px;
    padding:0;
    box-sizing:border-box;
  }
  html body .bikes-filter-container .fasto-v2-filter-toggle,
  html body .bikes-filter-container .fasto-v38-filter-drawer-head,
  html body .bikes-filter-container .fasto-v39-filter-drawer-head{
    display:none;
  }
  html body .bikes-filter-container #fasto-bike-filters.filters,
  html body .bikes-filter-container .filters{
    width:100%;
    height:auto;
    min-height:0;
    display:flex;
    flex-direction:row;
    flex-wrap:wrap;
    align-items:center;
    justify-content:flex-start;
    gap:8px;
    margin:0 0 28px;
    padding:16px;
    background:#fff;
    border:1px solid var(--fasto-v48-line);
    border-radius:0;
    box-shadow:none;
    overflow:visible;
    box-sizing:border-box;
  }
  html body .bikes-filter-container .filter-main-holder,
  html body .bikes-filter-container .filter_submit{
    position:relative;
    display:block;
    flex:0 0 auto;
    width:auto;
    margin:0;
    padding:0;
    border:0;
  }
  html body .bikes-filter-container .filter-main-btn,
  html body .bikes-filter-container .apply_filter,
  html body .bikes-filter-container .reset_filter{
    width:auto;
    min-width:0;
    min-height:42px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    margin:0;
    padding:0 18px;
    border:0;
    border-radius:0;
    background:#f7f5f2;
    color:var(--fasto-v48-ink);
    font-weight:700;
    line-height:1;
    white-space:nowrap;
    text-decoration:none;
    box-shadow:none;
  }
  html body .bikes-filter-container .filter-main-holder.selected .filter-main-btn,
  html body .bikes-filter-container .filter-main-btn.opened,
  html body .bikes-filter-container .filter-main-btn.fasto-v39-open{
    background:#fff3f3;
    color:var(--fasto-v48-accent);
    border:1px solid var(--fasto-v48-line);
  }
  html body .bikes-filter-container .apply_filter{
    background:var(--fasto-v48-accent);
    color:#fff;
  }
  html body .bikes-filter-container .reset_filter{
    background:transparent;
    color:var(--fasto-v48-muted);
  }
  html body .bikes-filter-container .filter-holder-holder{
    position:absolute;
    top:calc(100% + 8px);
    left:0;
    right:auto;
    z-index:100;
    width:min(380px, 90vw);
    max-height:70vh;
    overflow:auto;
    padding:18px;
    background:#fff;
    border:1px solid var(--fasto-v48-line);
    border-radius:0;
    box-shadow:none;
    box-sizing:border-box;
  }
  html body .bikes-filter-container .filter-main-holder:not(.pos-static) .filter-holder-holder{display:none;}
  html body .bikes-filter-container .filter-main-holder.pos-static .filter-holder-holder,
  html body .bikes-filter-container .filter-main-holder.selected.pos-static .filter-holder-holder{display:block;}
  html body .bikes-filter-container > .bikes-filter-data{
    width:100%;
    margin:0;
    padding:0;
    overflow:visible;
  }
}

/* Advisor results: no narrow centered column. */
html body .fasto-v48-advisor-results-section{
  display:block;
  padding-top:clamp(28px, 4vw, 72px);
  padding-bottom:clamp(30px, 5vw, 90px);
}
html body .fasto-v48-advisor-results-section .bike-advisor-results-wrapper{
  width:100%;
  max-width:none;
  margin:0;
  padding:0;
}
html body .fasto-v48-advisor-results-section .advisor-price-main-wrapper{
  width:min(420px, 100%);
  max-width:none;
  margin:0 auto 0;
  padding:0;
}

@media (max-width:1180px){
  :root{
    --fasto-v48-card-media:280px;
    --fasto-v48-card-copy:144px;
    --fasto-v48-card-footer:104px;
  }
  html body ul.articles.bikes,
  html body .ajax-bikes-holder ul.articles.bikes,
  html body .fasto-v25-browse ul.articles.bikes,
  html body .fasto-v35-bike-results ul.articles.bikes,
  html body .bikes-filter-data ul.articles.bikes,
  html body .bike-advisor-results ul.articles.bikes,
  html body .related-bikes-big-wrapper ul.articles.bikes,
  html body #all-bike-families ul.articles.bikes{
    grid-template-columns:repeat(3, minmax(0,1fr));
  }
}

@media (max-width:782px){
  :root{
    --fasto-v48-gutter:clamp(14px, 4.2vw, 24px);
    --fasto-v48-card-media:230px;
    --fasto-v48-card-copy:136px;
    --fasto-v48-card-footer:98px;
  }
  html body .fasto-v25-browse > .fasto-v25-section-head{
    grid-template-columns:1fr;
    align-items:start;
  }
  html body ul.articles.bikes,
  html body .ajax-bikes-holder ul.articles.bikes,
  html body .fasto-v25-browse ul.articles.bikes,
  html body .fasto-v35-bike-results ul.articles.bikes,
  html body .bikes-filter-data ul.articles.bikes,
  html body .bike-advisor-results ul.articles.bikes,
  html body .related-bikes-big-wrapper ul.articles.bikes,
  html body #all-bike-families ul.articles.bikes{
    grid-template-columns:1fr;
  }
  html body .fasto-v2-bike-card .fasto-v37-card-media,
  html body .fasto-v2-bike-card .fasto-v48-card-media{
    padding:34px 18px 18px;
  }
  html body .fasto-v2-bike-card .fasto-v37-card-content,
  html body .fasto-v2-bike-card .fasto-v48-card-content,
  html body .fasto-v2-bike-card .fasto-v37-card-footer,
  html body .fasto-v2-bike-card .fasto-v48-card-footer{
    padding-left:18px;
    padding-right:18px;
  }
  html body .fasto-v2-bike-card .bike-year{left:18px;top:18px;}
  html body .fasto-v2-bike-card .compare-holder-main{right:14px;top:14px;}
}
