/* Sm_Fitment "Select Your Vehicle" selector — slim boxed bar, rounded, circled arrows. */
.smf-wrap {
    max-width: 1290px;   /* navbar / content max width */
    margin: 0 auto;
    padding: 15px 15px;  /* vertical breathing room + 15px horizontal gutter */
}
/* Hide the leftover empty banner from the old AttributesSearch section (below the hero). */
.art-search {
    display: none;
}
/* ===== Shop by Categories: demo-5 card style, 5 per row ===== */
.home-page-1 .categories-container {
    background: transparent;
    padding-top: 0;                 /* drop the theme's 78px top padding */
}

.home-page-1 .cat-heading h2:before,
.home-page-1 .cat-heading h2:after {
    display: none !important;       /* remove the title side-dots */
}
/* 5-per-row grid */
.home-page-1 .categories-container .categories-item {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -8px;
}
.home-page-1 .categories-container .categories-item .item {
    width: 20%;
    float: none;
    padding: 0 8px;
    margin-bottom: 16px;
    box-sizing: border-box;
}
/* card (demo-5): white, image on top with divider; border added so it shows on the light bg */
.home-page-1 .categories-container .content-box {
    height: 100%;
    padding: 0;               /* image + bottom section flush to the card edges */
    background: #fff;
    border: 1px solid #e5e5e5;
    box-sizing: border-box;
}
.home-page-1 .categories-container .content-box:hover {
    box-shadow: none !important;
}
.home-page-1 .categories-container .content-box .parent-cat {
    width: auto;
    float: none;
}
.home-page-1 .categories-container .content-box .image-cat {
    border-bottom: 1px solid #ddd;
    height: 178px;                 /* fixed image section height */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.home-page-1 .categories-container .content-box .image-cat a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}
.home-page-1 .categories-container .content-box .image-cat img {
    max-width: 225px;              /* image capped at 225 x 178, kept in ratio */
    max-height: 178px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: inline-block;
}
.home-page-1 .categories-container .content-box .group-cat {
    margin-left: 0;
    padding: 17px 25px 30px;
}
.home-page-1 .categories-container .cat-title {
    font-size: 123%;
    font-weight: 500;
    text-transform: uppercase;
    margin-bottom: 7px;
}
.home-page-1 .categories-container .sub-cats {
    font-size: 107.69%;
    margin-bottom: 15px;
    padding-left: 0;
}
.home-page-1 .categories-container .sub-cats li.child-title {
    list-style: none;
    padding: 2px 0;
}
.home-page-1 .categories-container .sub-cats a {
    color: #888;
}
/* demo-5 inline dot bullet before each sub-category link */
.home-page-1 .categories-container .sub-cats a:before {
    content: "";
    display: inline-block;
    vertical-align: middle;
    width: 3px;
    height: 3px;
    margin-right: 6px;
    position: relative;
    top: -1px;
    border-radius: 50%;
    background-color: #888;
}
/* button (demo-5 shape) — blue instead of black */
.home-page-1 .categories-container .btn-more-cat a {
    display: table;
    padding: 3px 15px;
    font-size: 107.69%;
    color: #fff;
    border-radius: 4px;
    background-color: #007bff !important;   /* blue (was demo-5 black #282828) */
    transition: background-color .2s ease;
}
.home-page-1 .categories-container .btn-more-cat a:hover {
    background-color: #0069d9 !important;   /* darker blue on hover */
    color: #fff !important;
}
/* our red link hover (dot bullet also turns red) */
.home-page-1 .categories-container .cat-title a:hover,
.home-page-1 .categories-container .sub-cats a:hover {
    color: #ff2d37 !important;
}
.home-page-1 .categories-container .sub-cats a:hover:before {
    background-color: #ff2d37;
}
/* responsive columns */
@media (max-width: 991px) {
    .home-page-1 .categories-container .categories-item .item { width: 33.333%; }
}
@media (max-width: 767px) {
    .home-page-1 .categories-container .categories-item .item { width: 50%; }
}
@media (max-width: 480px) {
    .home-page-1 .categories-container .categories-item .item { width: 100%; }
}
/* Align the homepage hero slider with the selector: same max-width + side padding. */
.home-page-1 .slidershow {
    max-width: 1290px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}
.home-page-1 .slidershow .owl-carousel {
    border-radius: 4px;   /* very small rounding on the hero */
    overflow: hidden;
}
.home-page-1 .slidershow .owl-carousel .item,
.home-page-1 .slidershow .owl-carousel .item img {
    height: 555px;
}
.home-page-1 .slidershow .owl-carousel .item img {
    width: 100%;
    object-fit: cover;
    border-radius: 4px;
}
.smf-container {
    position: relative;
    padding: 15px 18px;
    border-radius: 0;
    background: linear-gradient(rgba(18, 20, 26, 0.72), rgba(18, 20, 26, 0.72)),
                url('../images/background_search.jpg') center center / cover no-repeat #1a1c22;
}
.smf-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}
.smf-fields {
    display: flex;
    flex: 1 1 auto;
    flex-wrap: wrap;
    gap: 12px;
}
.smf-select {
    flex: 1 1 0;
    min-width: 165px;
    height: 50px;
    padding: 0 50px 0 22px;
    border: none;
    border-radius: 3px;
    background-color: #fff;
    color: #333;
    font-size: 14px;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 24px 24px;
    /* enabled: red circle around caret */
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%3E%3Ccircle%20cx='12'%20cy='12'%20r='10.5'%20fill='none'%20stroke='%23ff2d37'%20stroke-width='1.4'/%3E%3Cpath%20fill='%23ff2d37'%20d='M8%2010.5l4%204%204-4z'/%3E%3C/svg%3E");
}
.smf-select:disabled {
    color: #9a9a9a;
    cursor: not-allowed;
    /* disabled: grey circle around caret */
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%3E%3Ccircle%20cx='12'%20cy='12'%20r='10.5'%20fill='none'%20stroke='%23cfcfcf'%20stroke-width='1.4'/%3E%3Cpath%20fill='%23b5b5b5'%20d='M8%2010.5l4%204%204-4z'/%3E%3C/svg%3E");
}
/* open state: red circle with UP caret */
.smf-select.is-open:not(:disabled) {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%3E%3Ccircle%20cx='12'%20cy='12'%20r='10.5'%20fill='none'%20stroke='%23ff2d37'%20stroke-width='1.4'/%3E%3Cpath%20fill='%23ff2d37'%20d='M8%2013.5l4-4%204%204z'/%3E%3C/svg%3E");
}
.smf-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    height: 50px;
    padding: 0 32px;
    border: none;
    border-radius: 3px;
    background-color: #ff2d37;
    color: #fff;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.2s ease;
}
.smf-btn:hover {
    background-color: #e02029;
}
.smf-btn[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
}
.smf-btn-icon {
    flex: none;
}

/* ---- Shop by Brands grid: compact 6 x 3 paged layout ---- */
.home-page-1 .title-group.brand-heading h2:before,
.home-page-1 .title-group.brand-heading h2:after {
    display: none !important;   /* remove the side dots on the heading (beats theme rule) */
}
.brand-block {
    padding-top: 60px;        /* more breathing room above the Shop by Brands heading */
}
.home-page-1 .brand-slider {
    border: none;             /* drop the boxed grid border */
    margin-bottom: 50px;
}
.home-page-1 .brand-slider .brand-content .item {
    border-right: none;       /* drop the grid divider lines */
}
.home-page-1 .brand-slider .brand-content .sm-fitment-brand-page {
    display: grid;
    grid-template-rows: repeat(3, minmax(0, 1fr));
    grid-auto-flow: column;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
    padding: 4px 0;
}
.home-page-1 .brand-slider .brand-content .item a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 124px;
    padding: 10px 6px;
    margin-bottom: 0;
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 3px;
    overflow: hidden;
    transition: border-color 0.2s ease;
}
.home-page-1 .brand-slider .brand-content .item a:hover {
    border-color: #ff2d37;    /* primary color on hover (matches the < > arrows) */
}
.home-page-1 .brand-slider .brand-content .item a img {
    max-width: 100%;
    max-height: 100px;
    width: auto;
    height: auto;
}
@media (max-width: 1199px) {
    .home-page-1 .brand-slider .brand-content .sm-fitment-brand-page {
        grid-template-rows: repeat(3, minmax(0, 1fr));
        grid-auto-flow: column;
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}
@media (max-width: 991px) {
    .home-page-1 .brand-slider .brand-content .sm-fitment-brand-page {
        grid-template-rows: repeat(3, minmax(0, 1fr));
        grid-auto-flow: column;
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .home-page-1 .brand-slider .brand-content .item a {
        min-height: 108px;
        padding: 8px 6px;
    }

    .home-page-1 .brand-slider .brand-content .item a img {
        max-height: 84px;
    }

    .smf-select { min-width: 140px; }
}
@media (max-width: 767px) {
    .home-page-1 .brand-slider .brand-content .sm-fitment-brand-page {
        grid-template-rows: none;
        grid-auto-flow: row;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .home-page-1 .brand-slider .brand-content .item a {
        min-height: 94px;
        padding: 8px 6px;
    }

    .home-page-1 .brand-slider .brand-content .item a img {
        max-height: 70px;
    }

    .smf-container { padding: 16px; }
    .smf-fields { flex: 1 1 100%; }
    .smf-select { flex: 1 1 100%; }
    .smf-btn { width: 100%; justify-content: center; }
}
