@charset "UTF-8";
/*
 * Product card + grid for the accessory listings (templates/element/products/card.php used by
 * Products/bike_accessories.php and Products/products_by_model.php). Matches the home page cards.
 * The theme sets html { font-size: 62.5% }, so px is used here to keep sizes predictable.
 */
.bbpc-grid {
    --bbpc-red: #ED1D24;
    --bbpc-red-dark: #c4141a;
    --bbpc-green: #059669;
    --bbpc-ink: #1b1d21;
    --bbpc-muted: #6b7078;
    --bbpc-line: #ececef;

    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}
.bbpc {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--bbpc-line);
    border-radius: 16px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 1px 3px rgba(16, 24, 40, .06);
    transition: transform .2s ease, box-shadow .2s ease;
}
.bbpc:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(16, 24, 40, .12);
}
.bbpc a {
    text-decoration: none;
}
.bbpc__media {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #fff;
    border-bottom: 1px solid var(--bbpc-line);
}
.bbpc__media img {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 12px;
    object-fit: contain;
    transition: transform .3s ease;
}
.bbpc:hover .bbpc__media img {
    transform: scale(1.04);
}
.bbpc__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(--bbpc-red);
    border-radius: 6px;
}
.bbpc__badge--free {
    top: auto;
    bottom: 10px;
    background: var(--bbpc-green);
}
.bbpc__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 8px;
    padding: 14px;
}
.bbpc__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);
}
.bbpc__title a {
    color: var(--bbpc-ink);
}
.bbpc__title a:hover {
    color: var(--bbpc-red);
}
.bbpc__price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px;
    margin-top: auto;
}
.bbpc__now {
    font-size: 18px;
    font-weight: 700;
    color: var(--bbpc-red);
}
.bbpc__old {
    font-size: 13px;
    color: var(--bbpc-muted);
}
.bbpc__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(--bbpc-red);
    border-radius: 10px;
    transition: background .2s;
}
.bbpc__btn:hover,
.bbpc__btn:focus-visible {
    background: var(--bbpc-red-dark);
}

/* brand filter next to the listing title */
.bbpc-filter select {
    height: 46px;
    min-width: 200px;
    padding: 0 14px;
    font-size: 15px;
    color: #1b1d21;
    background-color: #f6f7f9;
    border: 1px solid #e6e7eb;
    border-radius: 12px;
}

@media (max-width: 1199.98px) {
    .bbpc-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 16px;
    }
}
@media (max-width: 767.98px) {
    .bbpc-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
    .bbpc__body {
        gap: 6px;
        padding: 10px;
    }
    .bbpc__title {
        font-size: 13px;
    }
    .bbpc__now {
        font-size: 15px;
    }
    .bbpc__old {
        font-size: 12px;
    }
    .bbpc__btn {
        min-height: 38px;
        font-size: 13px;
    }
    .bbpc__badge--free {
        font-size: 11px;
    }
    .bbpc:hover {
        transform: none;
    }
    .bbpc-filter,
    .bbpc-filter select {
        width: 100%;
    }
}

/* ---------- Customer review photos (element/products/customer_reviews.php) ---------- */
.bbrv {
    margin-top: 28px;
    padding: 28px;
    background: #fff;
    border: 1px solid #ececef;
    border-radius: 16px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 1px 3px rgba(16, 24, 40, .06);
}
.bbrv__title {
    position: relative;
    margin: 0 0 18px;
    padding-left: 14px;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.35;
    color: #1b1d21;
}
.bbrv__title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 3px;
    bottom: 3px;
    width: 4px;
    border-radius: 4px;
    background: #ED1D24;
}
.bbrv__sub {
    margin: -8px 0 16px;
    font-size: 14px;
    color: #6b7078;
}
.bbrv__track {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 6px;
    scroll-snap-type: x mandatory;
}
.bbrv__item {
    flex: 0 0 auto;
    width: 180px;
    height: 240px;
    overflow: hidden;
    background: #f6f7f9;
    border: 1px solid #ececef;
    border-radius: 12px;
    scroll-snap-align: start;
}
.bbrv__item img {
    width: 100%;
    height: 100%;
    margin: 0;
    object-fit: cover;
    transition: transform .3s;
}
.bbrv__item:hover img {
    transform: scale(1.04);
}
@media (max-width: 767.98px) {
    .bbrv {
        margin-top: 20px;
        padding: 20px 16px;
        border-radius: 14px;
    }
    .bbrv__title {
        font-size: 18px;
    }
    .bbrv__item {
        width: 140px;
        height: 190px;
    }
}
