@charset "UTF-8";
/*
 * Home page only (loaded from templates/Items/home.php).
 * The theme sets html { font-size: 62.5% }, so px is used here to keep sizes predictable.
 */
:root {
    --bbh-red: #ED1D24;
    --bbh-red-dark: #c4141a;
    --bbh-ink: #1b1d21;
    --bbh-muted: #6b7078;
    --bbh-line: #ececef;
    --bbh-soft: #f6f7f9;
    --bbh-radius: 14px;
    --bbh-shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 1px 3px rgba(16, 24, 40, .06);
    --bbh-shadow-hover: 0 10px 24px rgba(16, 24, 40, .10);
}

/* ---------- Hero slider: home-only overrides (base styles in sliding-banner.css) ---------- */
.bbh-hero {
    --bbh-hero-overlap: 36px; /* how far the search panel overlaps the bottom of the slider */
}

/* ---------- Search panel (markup from new-theme/banner-search) ---------- */
.search__filter--section.search__filter--style5 {
    margin-top: 0;
    padding: 0;
}
.search__filter--section .search__filter--inner.style5 {
    display: block; /* theme makes this a flex row; stack heading, form and shortcuts instead */
    position: relative;
    z-index: 2;
    overflow: hidden;
    margin: -36px auto 0;
    padding: 26px 28px 22px;
    color: #fff;
    background:
        radial-gradient(120% 140% at 100% 0%, rgba(237, 29, 36, .35) 0%, rgba(237, 29, 36, 0) 55%),
        linear-gradient(135deg, #16181c 0%, #24272d 100%);
    border: 0;
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(16, 24, 40, .22);
}
.bbh-search__head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}
.bbh-search__icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    font-size: 22px;
    color: #fff;
    background: var(--bbh-red);
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(237, 29, 36, .45);
}
.bbh-search__eyebrow {
    display: block;
    margin-bottom: 2px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    color: #ff7a7f;
}
.bbh-search__title {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    color: #fff;
}
.bbh-search__sub {
    margin: 2px 0 0;
    font-size: 14px;
    line-height: 1.5;
    color: rgba(255, 255, 255, .65);
}
.search__filter--section #formFiltering {
    display: grid !important; /* the form carries Bootstrap's .d-flex, which is !important */
    grid-template-columns: repeat(3, minmax(0, 1fr)) repeat(2, minmax(0, .8fr)) minmax(0, 1fr);
    gap: 10px;
    align-items: center;
}
.search__filter--section #formFiltering .search__filter--width {
    position: relative;
    width: auto;
    margin: 0;
    padding: 0;
}
/* leading icon in each field (Font Awesome 4 glyphs) */
.search__filter--section #formFiltering .search__filter--width::after {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-family: FontAwesome;
    font-size: 15px;
    color: var(--bbh-red);
    pointer-events: none;
}
.search__filter--section #formFiltering .search__filter--width:nth-child(1)::after { content: "\f21c"; }
.search__filter--section #formFiltering .search__filter--width:nth-child(2)::after { content: "\f02b"; }
.search__filter--section #formFiltering .search__filter--width:nth-child(3)::after { content: "\f041"; }
.search__filter--section #formFiltering .search__filter--width:nth-child(4)::after,
.search__filter--section #formFiltering .search__filter--width:nth-child(5)::after { content: "\f0d6"; }
.search__filter--section #formFiltering .search__filter--width:nth-child(6)::after { content: none; }

.search__filter--section #formFiltering select,
.search__filter--section #formFiltering .search-input {
    width: 100%;
    height: 50px;
    margin: 0;
    padding: 0 34px 0 40px;
    font-size: 14px;
    color: var(--bbh-ink);
    background-color: #fff;
    border: 2px solid transparent;
    border-radius: 12px;
    box-shadow: none;
    -webkit-appearance: none;
    appearance: none;
}
.search__filter--section #formFiltering .search-input {
    padding-right: 12px;
    -moz-appearance: textfield;
}
.search__filter--section #formFiltering .search-input::-webkit-outer-spin-button,
.search__filter--section #formFiltering .search-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.search__filter--section #formFiltering select:focus,
.search__filter--section #formFiltering .search-input:focus {
    outline: none;
    border-color: var(--bbh-red);
    box-shadow: 0 0 0 4px rgba(237, 29, 36, .25);
}
.search__filter--section #formFiltering .search__filter--btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 50px;
    padding: 0 16px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    color: #fff;
    background: var(--bbh-red);
    border: 0;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(237, 29, 36, .40);
    transition: background .2s, transform .2s;
}
.search__filter--section #formFiltering .search__filter--btn::before {
    content: "\f002";
    font-family: FontAwesome;
    font-weight: normal;
}
.search__filter--section #formFiltering .search__filter--btn:hover {
    background: var(--bbh-red-dark);
    transform: translateY(-1px);
}
.bbh-search__quick {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
}
.bbh-search__quick-label {
    margin-right: 4px;
    font-size: 13px;
    color: rgba(255, 255, 255, .6);
}
.bbh-search__quick-link {
    padding: 6px 14px;
    font-size: 13px;
    line-height: 1.3;
    white-space: nowrap;
    color: #fff;
    text-decoration: none;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 999px;
    transition: background .2s, border-color .2s;
}
.bbh-search__quick-link:hover,
.bbh-search__quick-link:focus-visible {
    color: #fff;
    background: var(--bbh-red);
    border-color: var(--bbh-red);
}

/* ---------- Page wrapper ---------- */
.bbh {
    padding: 28px 0 48px;
    color: var(--bbh-ink);
}
.bbh a {
    text-decoration: none;
}

/* ---------- Category quick nav ---------- */
.bbh-catnav {
    margin-bottom: 8px;
}
.bbh-catnav__track {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}
.bbh-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
    white-space: nowrap;
    color: var(--bbh-ink);
    background: #fff;
    border: 1px solid var(--bbh-line);
    border-radius: 999px;
    box-shadow: var(--bbh-shadow);
    transition: color .2s, background .2s, border-color .2s;
}
.bbh-chip:hover,
.bbh-chip:focus-visible {
    color: #fff;
    background: var(--bbh-red);
    border-color: var(--bbh-red);
}
.bbh-chip--outline {
    color: var(--bbh-red);
    border-color: rgba(237, 29, 36, .35);
    box-shadow: none;
}

/* ---------- Sections ---------- */
.bbh-section {
    margin-top: 40px;
    scroll-margin-top: 90px;
}
.bbh-section__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}
.bbh-section__title {
    position: relative;
    margin: 0;
    padding-left: 14px;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--bbh-ink);
}
.bbh-section__title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 3px;
    bottom: 3px;
    width: 4px;
    border-radius: 4px;
    background: var(--bbh-red);
}
.bbh-section__more {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--bbh-red);
}
.bbh-section__more:hover {
    color: var(--bbh-red-dark);
}

/* ---------- Product grid + cards ---------- */
.bbh-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}
.bbh-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--bbh-line);
    border-radius: var(--bbh-radius);
    box-shadow: var(--bbh-shadow);
    transition: transform .2s ease, box-shadow .2s ease;
}
.bbh-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--bbh-shadow-hover);
}
.bbh-card__media {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    background: #fff;
    border-bottom: 1px solid var(--bbh-line);
    overflow: hidden;
}
.bbh-card__media img {
    width: 100%;
    height: 100%;
    margin: 0;
    object-fit: contain;
    padding: 12px;
    transition: transform .3s ease;
}
.bbh-card:hover .bbh-card__media img {
    transform: scale(1.04);
}
.bbh-card--ad .bbh-card__media {
    aspect-ratio: 4 / 3;
}
.bbh-card--ad .bbh-card__media img {
    object-fit: cover;
    padding: 0;
}
.bbh-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 1;
    padding: 3px 8px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
    color: #fff;
    background: var(--bbh-red);
    border-radius: 6px;
}
.bbh-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 8px;
    padding: 14px;
}
.bbh-card__title {
    margin: 0;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.45;
    /* two lines max so every card lines up */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: calc(1.45em * 2);
}
.bbh-card__title a {
    color: var(--bbh-ink);
}
.bbh-card__title a:hover {
    color: var(--bbh-red);
}
.bbh-card__price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px;
    margin-top: auto;
}
.bbh-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--bbh-red);
}
.bbh-price--old {
    font-size: 13px;
    color: var(--bbh-muted);
}
.bbh-card__meta {
    font-size: 13px;
    color: var(--bbh-muted);
}
.bbh-card__meta .fa {
    margin-right: 4px;
}

/* ---------- Buttons ---------- */
.bbh-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 42px;
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    color: #fff !important;
    background: var(--bbh-red);
    border: 0;
    border-radius: 10px;
    transition: background .2s, border-color .2s;
}
.bbh-btn:hover,
.bbh-btn:focus-visible {
    background: var(--bbh-red-dark);
}
.bbh-btn--light {
    width: auto;
    min-height: 48px;
    padding: 12px 24px;
    font-size: 15px;
    color: var(--bbh-red) !important;
    background: #fff;
}
.bbh-btn--light:hover,
.bbh-btn--light:focus-visible {
    background: #fff1f1;
}
.bbh-btn--ghost {
    width: auto;
    min-height: 48px;
    padding: 12px 22px;
    font-size: 15px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, .55);
}
.bbh-btn--ghost:hover,
.bbh-btn--ghost:focus-visible {
    background: rgba(255, 255, 255, .12);
    border-color: #fff;
}

/* ---------- Sell-your-bike banner ---------- */
.bbh-cta {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    align-items: center;
    gap: 36px;
    overflow: hidden;
    margin-top: 36px;
    padding: 40px 44px;
    color: #fff;
    background:
        radial-gradient(90% 120% at 0% 0%, rgba(255, 255, 255, .14) 0%, rgba(255, 255, 255, 0) 50%),
        linear-gradient(120deg, #ED1D24 0%, #b3121a 60%, #7d0c12 100%);
    border-radius: 20px;
    box-shadow: 0 18px 40px rgba(237, 29, 36, .25);
}
.bbh-cta .bbh-cta__art { /* extra class beats Font Awesome's later-loaded .fa { font-size: inherit } */
    position: absolute;
    right: -30px;
    bottom: -60px;
    font-size: 260px;
    line-height: 1;
    color: rgba(255, 255, 255, .07);
    transform: rotate(-8deg);
    pointer-events: none;
}
.bbh-cta__main,
.bbh-cta__steps {
    position: relative;
}
.bbh-cta__eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    color: #fff;
    background: rgba(0, 0, 0, .18);
    border-radius: 999px;
}
.bbh-cta__title {
    margin: 0 0 8px;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.3;
    color: #fff;
}
.bbh-cta__sub {
    margin: 0 0 22px;
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255, 255, 255, .88);
}
.bbh-cta__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.bbh-cta__steps {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.bbh-cta__steps li {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 14px;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}
.bbh-cta__num {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    font-size: 17px;
    color: var(--bbh-red);
    background: #fff;
    border-radius: 50%;
}
.bbh-cta__steps strong {
    display: block;
    font-size: 15px;
    line-height: 1.4;
    color: #fff;
}
.bbh-cta__steps small {
    display: block;
    font-size: 13px;
    line-height: 1.4;
    color: rgba(255, 255, 255, .78);
}

/* ---------- Responsive ---------- */
@media (max-width: 1199.98px) {
    .search__filter--section #formFiltering {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .bbh-hero {
        --bbh-hero-overlap: 24px;
    }
    .search__filter--section .search__filter--inner.style5 {
        margin-top: -24px;
    }
    .bbh-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 16px;
    }
    /* 3 columns: hide the 4th card so rows stay full */
    .bbh-grid > .bbh-card:nth-child(4) {
        display: none;
    }
    .bbh-cta {
        grid-template-columns: 1fr;
        gap: 26px;
        padding: 32px;
    }
}

@media (max-width: 767.98px) {
    .bbh-hero {
        --bbh-hero-overlap: 0px; /* search panel no longer overlaps on phones */
    }
    .search__filter--section .search__filter--inner.style5 {
        margin: 14px 0 0;
        padding: 18px 16px;
        border-radius: 16px;
    }
    .bbh-search__head {
        margin-bottom: 14px;
    }
    .bbh-search__icon {
        width: 42px;
        height: 42px;
        font-size: 19px;
    }
    .bbh-search__title {
        font-size: 18px;
    }
    .bbh-search__sub {
        font-size: 13px;
    }
    .search__filter--section #formFiltering {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }
    .search__filter--section #formFiltering .search__filter--width:nth-child(-n+3),
    .search__filter--section #formFiltering .search__filter--width:last-child {
        grid-column: 1 / -1;
    }
    .search__filter--section #formFiltering select,
    .search__filter--section #formFiltering .search-input,
    .search__filter--section #formFiltering .search__filter--btn {
        height: 48px;
    }
    /* budget shortcuts scroll sideways instead of wrapping */
    .bbh-search__quick {
        flex-wrap: nowrap;
        overflow-x: auto;
        margin: 14px -16px 0;
        padding: 0 16px 2px;
        scrollbar-width: none;
    }
    .bbh-search__quick::-webkit-scrollbar {
        display: none;
    }
    .bbh-search__quick-label {
        flex-shrink: 0;
    }

    .bbh {
        padding: 20px 0 90px; /* room for the fixed mobile bottom bar */
    }
    /* chips scroll sideways on phones instead of wrapping into many rows */
    .bbh-catnav__track {
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        margin: 0 -12px;
        padding: 2px 12px 8px;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }
    .bbh-catnav__track::-webkit-scrollbar {
        display: none;
    }
    .bbh-section {
        margin-top: 30px;
    }
    .bbh-section__title {
        font-size: 18px;
    }
    .bbh-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
    .bbh-grid > .bbh-card:nth-child(4) {
        display: flex;
    }
    .bbh-card__body {
        gap: 6px;
        padding: 10px;
    }
    .bbh-card__title {
        font-size: 13px;
    }
    .bbh-price {
        font-size: 15px;
    }
    .bbh-price--old {
        font-size: 12px;
    }
    .bbh-btn {
        min-height: 38px;
        font-size: 13px;
    }
    .bbh-card:hover {
        transform: none;
    }
    .bbh-cta {
        padding: 26px 20px;
        border-radius: 16px;
    }
    .bbh-cta__art {
        font-size: 180px;
        bottom: -40px;
    }
    .bbh-cta__title {
        font-size: 22px;
    }
    .bbh-cta__sub {
        font-size: 14px;
    }
    .bbh-cta__actions .bbh-btn {
        flex: 1 1 100%;
        min-height: 46px;
    }
    .bbh-cta__steps li {
        padding: 12px;
    }
}
