/* Home page redesign — matches Home.jpg design reference. Homepage-only (loaded via cms_index_index.xml). */

.cbp-home { max-width: 1170px; margin: 0 auto; box-sizing: border-box; }
.cbp-home * { box-sizing: border-box; }
.cbp-home-full { width: 100%; }

/* ---------- Hero ----------
   Plain image slideshow — the banner artwork (headline, badges, CTA, etc.) is
   baked into the slide images themselves, not built with HTML/CSS overlays. */
.cbp-hero {
    position: relative;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}
.cbp-hero-slider .item img {
    display: block;
    width: 100%;
    height: auto;
}
.cbp-hero-slider .owl-dots {
    position: absolute;
    bottom: 16px;
    left: 0;
    right: 0;
    text-align: center;
}

/* ---------- Vehicle selector card ----------
   Real markup comes from Magelab_PartsFinder::search.phtml (.lc_search / .lc_search__*),
   NOT Sm_AttributesSearch (which renders empty here — no attributes configured). */
.cbp-vehicle-select {
    max-width: 1140px;
    margin: -46px auto 0;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,.15);
    padding: 30px 34px 34px;
    border-radius: 10px;
    position: relative;
    z-index: 5;
}
.cbp-vehicle-select .lc_search { padding: 0 !important; margin: 0 !important; border-radius: 0 !important; width: auto !important; }
.cbp-vehicle-select .lc_search_inner { position: static !important; }
.cbp-vehicle-select .lc_search__heading { margin: 0 0 18px !important; }
.cbp-vehicle-select .search-title {
    display: block;
    font-size: 15px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #222 !important;
    padding: 0 !important;
    margin: 0 !important;
    text-align: left !important;
}
.cbp-vehicle-select .lc_search__form {
    display: flex !important;
    gap: 18px;
    align-items: flex-end;
    flex-wrap: wrap;
}
.cbp-vehicle-select .lc_search__group {
    flex: 1 1 180px;
    min-width: 160px;
    margin: 0 !important;
}
.cbp-vehicle-select .lc_search__group:has(#bnt-search-vehicle) { flex: 0 0 auto; }
.cbp-vehicle-select .lc_search__group::before {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #777;
    margin-bottom: 6px;
}
.cbp-vehicle-select #select_vehicle_year::before { content: 'Select Year'; }
.cbp-vehicle-select #select_vehicle_make::before { content: 'Select Make'; }
.cbp-vehicle-select #select_vehicle_model::before { content: 'Select Model'; }
.cbp-vehicle-select select {
    width: 100% !important;
    height: 48px !important;
    border: 1px solid #e2e2e2 !important;
    border-radius: 6px !important;
    padding: 0 12px !important;
    font-size: 14px !important;
    background: #f5f5f5 !important;
    margin: 0 !important;
}
.cbp-vehicle-select select.warning { border-color: #e31e24 !important; }
.cbp-vehicle-select .go_search { margin: 0 !important; }
.cbp-vehicle-select #bnt-search-vehicle {
    height: 48px !important;
    background: #e31e24 !important;
    border: none !important;
    border-radius: 6px !important;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: .5px;
    padding: 0 26px !important;
    cursor: pointer;
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
}
.cbp-vehicle-select #bnt-search-vehicle:before {
    content: '';
    width: 14px;
    height: 14px;
    display: inline-block;
    background: #fff;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376c-34.4 25.2-76.8 40-122.7 40C93.1 416 0 322.9 0 208S93.1 0 208 0S416 93.1 416 208zM208 352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z'/%3E%3C/svg%3E") no-repeat center / contain;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376c-34.4 25.2-76.8 40-122.7 40C93.1 416 0 322.9 0 208S93.1 0 208 0S416 93.1 416 208zM208 352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* ---------- Section heading (shared) ---------- */
.cbp-section { max-width: 1170px; margin: 0 auto; padding: 80px 15px 20px; }
.cbp-section__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 10px;
}
.cbp-section__title {
    font-size: 30px;
    font-weight: 800;
    text-transform: uppercase;
    margin: 0 0 6px;
    position: relative;
    padding-bottom: 12px;
}
.cbp-section__title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background: #e31e24;
}
.cbp-section__subtitle { font-size: 14px; color: #777; margin: 0; }
.cbp-section__link {
    color: #e31e24;
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
}
.cbp-section__nav { display: flex; gap: 10px; }
.cbp-section__nav button {
    width: 40px; height: 40px; border-radius: 50%;
    border: 1px solid #ddd !important; background: #fff !important; cursor: pointer;
    display: flex; align-items: center; justify-content: center; font-size: 16px;
    color: #333 !important;
}
.cbp-section__nav button.is-next { background: #e31e24 !important; border-color: #e31e24 !important; color: #fff !important; }

/* ---------- Continuous light-grey backdrop behind category/banner/arrivals/features ---------- */
.cbp-mid-band { background: #f6f6f7; padding-bottom: 30px; }

/* ---------- Shop by category ---------- */
/* Overrides the vendor Sm_Categories carousel markup (circular avatar style elsewhere on
   the site) so it renders as square product cards inside our redesign wrapper only. */
.cbp-shop-category .categories-item .item { margin: 0 10px; }
.cbp-shop-category .categories-item .content-box {
    background: #fff !important;
    border: none !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 10px rgba(0,0,0,.06) !important;
    text-align: center !important;
    padding: 30px 16px 24px !important;
    display: block !important;
    float: none !important;
}
.cbp-shop-category .categories-item .parent-cat { float: none !important; width: auto !important; }
.cbp-shop-category .categories-item .image-cat {
    width: auto !important;
    height: auto !important;
    border-radius: 0 !important;
    margin: 0 0 20px !important;
    overflow: visible !important;
    background: #f6f6f7;
    padding: 20px;
}
.cbp-shop-category .categories-item .image-cat img {
    border-radius: 0 !important;
    width: auto !important;
    max-width: 100% !important;
    height: 100px !important;
    object-fit: contain !important;
}
.cbp-shop-category .categories-item .group-cat { float: none !important; width: auto !important; }
.cbp-shop-category .categories-item .cat-title {
    font-size: 15px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    color: #222 !important;
}
.cbp-shop-category .owl-dots { text-align: center; margin-top: 24px; }

/* ---------- Full banner ---------- */
.cbp-full-banner { max-width: 1170px; margin: 70px auto 0; padding: 0 15px; }
.cbp-full-banner img { width: 100%; display: block; border-radius: 4px; }

/* ---------- Product cards (New Arrivals) ---------- */
.cbp-product-card {
    background: #fff;
    border: 1px solid #eee;
    padding: 0 0 16px;
    margin: 0 8px;
    text-align: left;
    position: relative;
}
.cbp-product-card__badge {
    position: absolute;
    top: 10px; left: 10px;
    background: #17a35a;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 2px;
    z-index: 2;
}
.cbp-product-card__img { padding: 20px; text-align: center; }
.cbp-product-card__img img { max-width: 100%; height: 150px; object-fit: contain; }
.cbp-product-card__body { padding: 0 16px; }
.cbp-product-card__name {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    margin: 0 0 4px;
    line-height: 1.3;
}
.cbp-product-card__sku { font-size: 11px; color: #999; margin: 0 0 8px; }
.cbp-product-card__price { margin: 0 0 12px; }
.cbp-product-card__price .cbp-price-now { color: #e31e24; font-weight: 800; font-size: 16px; margin-right: 6px; }
.cbp-product-card__price .cbp-price-old { color: #aaa; text-decoration: line-through; font-size: 13px; }
.cbp-product-card__btn {
    display: block;
    width: calc(100% - 32px);
    margin: 0 16px;
    background: #e31e24;
    color: #fff;
    border: none;
    text-align: center;
    padding: 11px 0;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    cursor: pointer;
}

/* ---------- New Arrivals (overrides Sm_FilterProducts block-list-slider markup) ---------- */
.cbp-new-arrivals .block-product > .block-title { display: none; }
.cbp-new-arrivals .block-content { padding: 0; }
.cbp-new-arrivals .item-row { display: flex; gap: 0; }
.cbp-new-arrivals .product-item { margin: 0 8px; flex: 1 1 0; }
.cbp-new-arrivals .product-item-info {
    background: #fff !important;
    border: none !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 10px rgba(0,0,0,.06) !important;
    padding: 0 0 20px !important;
    position: relative !important;
    overflow: hidden;
}
.cbp-new-arrivals .cbp-product-card__badge {
    position: absolute; top: 10px; left: 10px;
    background: #17a35a; color: #fff; font-size: 10px; font-weight: 700;
    text-transform: uppercase; padding: 3px 8px; border-radius: 2px; z-index: 2;
}
.cbp-new-arrivals .product-list-image { padding: 30px !important; text-align: center !important; }
.cbp-new-arrivals .product-list-image img { max-width: 100% !important; height: 190px !important; object-fit: contain !important; }
.cbp-new-arrivals .product-item-details { padding: 0 16px !important; }
.cbp-new-arrivals .product-item-name {
    font-size: 13px !important; font-weight: 700 !important; text-transform: uppercase !important;
    display: block; margin: 0 0 4px !important;
}
.cbp-new-arrivals .product-item-name a { color: #222 !important; }
.cbp-new-arrivals .cbp-product-card__sku { font-size: 11px; color: #999; margin: 0 0 8px; }
.cbp-new-arrivals .price-box .price { color: #e31e24 !important; font-weight: 800 !important; font-size: 16px !important; }
.cbp-new-arrivals .price-box .old-price .price { color: #aaa !important; font-weight: 400 !important; font-size: 13px !important; text-decoration: line-through; }
.cbp-new-arrivals .cbp-product-card__btn {
    display: block; width: calc(100% - 32px); margin: 12px 16px 0;
    background: #e31e24; color: #fff; border: none; text-align: center;
    padding: 11px 0; font-size: 12px; font-weight: 700; text-transform: uppercase;
    letter-spacing: .5px; cursor: pointer;
}
.cbp-new-arrivals .cbp-product-card__btn:hover { background: #c81b20; }
.cbp-new-arrivals .quickview-handler { display: none !important; }

/* ---------- Features strip (2 items) ---------- */
.cbp-features-strip {
    background: transparent;
    padding: 40px 15px 10px;
    margin-top: 70px;
}
.cbp-features-strip__inner {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
}
.cbp-feature {
    display: flex;
    align-items: center;
    gap: 14px;
}
.cbp-feature img { width: 34px; height: 34px; }
.cbp-feature strong { display: block; font-size: 14px; text-transform: uppercase; }
.cbp-feature span { display: block; font-size: 12px; color: #888; }
.cbp-features-strip__divider { width: 1px; height: 40px; background: #ddd; }

/* ---------- Reviews subtitle/centering override ---------- */
.home-customer-reviews.cbp-reviews--centered { text-align: center; }
.home-customer-reviews.cbp-reviews--centered .cbp-reviews__title { text-transform: uppercase; }
.cbp-reviews__subtitle { font-size: 14px; color: #777; margin: -18px 0 30px; }
.home-customer-reviews.cbp-reviews--centered .cbp-reviews__grid { text-align: left; }

/* ---------- Brand circle badges ---------- */
.cbp-brand-circle {
    width: 150px; height: 150px;
    border-radius: 50%;
    background: #111;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto;
    border: 3px solid #2a2a2a;
}
.cbp-brand-circle img { max-width: 70%; max-height: 70%; }

/* ---------- Newsletter ---------- */
.cbp-newsletter {
    background: #111;
    padding: 80px 15px;
}
.cbp-newsletter__card {
    max-width: 820px;
    margin: 0 auto;
    background: #fff;
    padding: 50px;
    text-align: center;
}
.cbp-newsletter__card h2 { font-size: 30px; font-weight: 800; margin: 0 0 10px; }
.cbp-newsletter__card p { font-size: 15px; color: #777; margin: 0 0 28px; }
.cbp-newsletter__form { display: flex; gap: 14px; flex-wrap: wrap; }
.cbp-newsletter__form input {
    flex: 1 1 200px;
    height: 52px;
    border: 1px solid #ddd;
    padding: 0 16px;
    font-size: 14px;
}
.cbp-newsletter__form button {
    flex: 0 0 auto;
    height: 52px;
    background: #e31e24;
    color: #fff;
    border: none;
    padding: 0 34px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
    cursor: pointer;
}

/* ---------- Responsive ---------- */
@media (max-width: 767px) {
    .cbp-hero { padding: 30px 20px 50px; text-align: left; }
    .cbp-hero__badges { position: static; flex-direction: row; flex-wrap: wrap; margin-top: 20px; max-width: none; }
    .cbp-hero__headline { font-size: 30px; }
    .cbp-vehicle-select { margin-top: -30px; padding: 20px; }
    .cbp-vehicle-select__row { flex-direction: column; align-items: stretch; }
    .cbp-features-strip__inner { flex-direction: column; gap: 16px; }
    .cbp-features-strip__divider { display: none; }
    .cbp-newsletter__card { padding: 24px; }
}
