/**************************************** HERO ****************************************/

.auto_parts_hero_section {
    position: relative;
    background-image: url(/images/visitor/auto_parts/auto_parts_hero_background.jpg);
    background-size: cover;
    background-position: center top 35%;
    height: 400px;
    display: flex;
    align-items: center;
}

.starcar_pro_banner{
    position: absolute;
    top: 0;
    width: 100%;
    padding: 10px 0px;
    background: var(--starcar-gold);
    transition: all 0.3s ease;
}

.starcar_pro_banner.hide{
    opacity: 0;
}

.starcar_pro_banner_content{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
}

.starcar_pro_banner_cta{
    padding: 10px;
    background: var(--starcar-dark);
    color: white;
    border-radius: 7px;
    text-align: center;
}

.starcar_pro_banner_close{
    background: transparent;
    border: none;
    cursor: pointer;
}

.auto_parts_hero_container {
    padding: 0px 32px;
}

.auto_parts_hero_top {
    backdrop-filter: blur(1px);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    max-width: 600px;
    backdrop-filter: blur(2px);
}

.auto_parts_hero_title {
    max-width: 600px;
    position: relative;
    margin-bottom: 25px;
}

.auto_parts_hero_title::after {
    content: "";
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 25%;
    height: 6px;
    background-color: var(--starcar-gold);
}

.auto_parts_hero_subtitle {
    font-weight: 500;
    font-size: 1.5rem;
}

.auto_parts_searchbar_section{
    padding: 50px 0px;
    display: flex;
    align-items: center;
}

.auto_parts_hero_bottom {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    margin-bottom: 50px;
}

.auto_parts_hero_search_top {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 20px;
    margin-bottom: 35px;
    width: 100%;
}

.auto_parts_hero_search_title {
    font-size: 1.8rem;
    font-weight: 700;
    position: relative;
}

.auto_parts_hero_search_title::after {
    content: "";
    position: absolute;
    width: 90%;
    height: 6px;
    background-color: var(--starcar-gold);
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
}

.auto_parts_search_form {
    width: 100%;
    border: 2px solid #d1d1d1;
    border-radius: 10px;
}

.auto_parts_search_form button {
    background: transparent;
    border: 0px;
}

.auto_parts_search_form button span {
    font-size: 2rem;
}

.auto_parts_hero_searchbar {
    display: flex;
    justify-content: start;
    align-items: center;
    background-color: white;
    font-size: 1rem;
    font-family: "exo 2", sans-serif;
    border-radius: 10px;
    padding: 7px 10px;
    width: 100%;
    border: none;
    outline: none;
}

.auto_parts_hero_searchbar_placeholder {
    opacity: 0.5;
}

.autocomplete-suggestions {
    position: absolute;
    border: 1px solid #ccc;
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 400px;
    overflow-y: auto;
    background: #fff;
    width: 100%;
    z-index: 9999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: none;
    top: 123px;
    left: 0;
}

.autocomplete-suggestions li {
    padding: 10px 15px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: background-color 0.2s;
}

.autocomplete-suggestions li:last-child {
    border-bottom: none;
}

.autocomplete-suggestions li:hover {
    background-color: #f5f5f5;
}

.suggestion-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
    border: 1px solid #e0e0e0;
}

.suggestion-content {
    flex: 1;
}

.suggestion-title {
    font-weight: 500;
    color: #333;
    margin-bottom: 4px;
    font-size: 14px;
}

.suggestion-details {
    font-size: 12px;
    color: #666;
}

/**************************************** SEARCH MOBILE ****************************************/

.search_mobile {
    display: none;
}

.search_mobile .auto_parts_hero_searchbar {
}

/**************************************** FEATURES ****************************************/

.auto_parts_features_section {
    background: radial-gradient(circle at bottom right,
            rgba(66, 126, 143, 0.22),
            transparent 50%),
        #ffffff;
    padding: 30px 0px;
}

.auto_parts_features_container {
    margin: 0px auto;
    padding: 0px 32px;
    max-width: 1500px;
}

.auto_parts_features_list {
    display: flex;
    align-items: center;
    justify-content: space-between;
    list-style: none;
    overflow: scroll;
}

.auto_parts_features_list::-webkit-scrollbar {
    display: none;
}

.auto_parts_feature {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    min-width: 350px;
    max-width: 350px;
}

/**************************************** SEARCH ****************************************/

.search_section {
    background: radial-gradient(circle at bottom right,
            rgba(66, 126, 143, 0.22),
            transparent 50%),
        #ffffff;
    padding: 70px 0px;
    position: relative;
}

.search_container {
    /* display: flex;
    justify-content: center; */
    padding: 0px 32px;
    max-width: 1300px;
    margin: 0 auto;
}

.search {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.search_bar {
    display: flex;
    justify-content: center;
    flex-direction: row;
    align-items: center;
    margin-bottom: 45px;
}

.search_bar span {
    font-size: 2.5rem;
    margin-right: 5px;
}

.search_title {
    font-size: 2rem;
    text-align: start;
    position: relative;
}

.search_title::after {
    content: "";
    position: absolute;
    width: 80%;
    height: 6px;
    left: 0;
    bottom: -20px;
    background-color: var(--starcar-gold);
}

.search_subtitle {
    font-size: 1.25rem;
    text-align: center;
    margin-bottom: 30px;
    max-width: 800px;
}

.select_buttons {
    display: flex;
    flex-direction: column;
}

.select_form {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 6px 0px;
}

.select_form select {
    background: transparent;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    outline: none;
    border: 2px solid var(--starcar-gold);
    padding: 5px 10px;
    border-radius: 10px;
    font-weight: 500;
    width: 265px;
}

.select_button {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 10px 0px;
}

.select_button span {
    margin-top: 1px;
}

#brand_search {
    display: flex;
    justify-content: center;
    margin-bottom: 50px;
}

#brand_search p {
    display: flex;
    font-size: 1.25rem;
    align-items: center;
    border: 1px solid var(--starcar-gold);
    background-color: var(--starcar-gold);
    padding: 10px;
    border-radius: 15px;
    font-weight: 500;
}

#all_brands {
    display: flex;
    justify-content: center;
}

#all_brands p {
    display: flex;
    align-items: center;
    border: 1px solid var(--starcar-dark);
    background-color: var(--starcar-dark);
    color: white;
    margin-bottom: 20px;
    padding: 10px 50px;
    border-radius: 15px;
    font-weight: 500;
}

/**************************************** CATALOG ****************************************/

.catalog_section {
    background: radial-gradient(circle at bottom right,
            rgba(66, 126, 143, 0.22),
            transparent 70%),
        #ffffff;
    padding-bottom: 30px;
    position: relative;
}

#catalog_title_top {
    display: flex;
    justify-content: center;
}

.catalog_title {
    position: relative;
    text-align: center;
    font-size: 2rem;
    margin-bottom: 100px;
}

.catalog_title::after {
    content: "";
    position: absolute;
    height: 6px;
    background-color: var(--starcar-gold);
    transform: translateX(-50%);
    width: 50%;
    left: 50%;
    bottom: -20px;
}

.catalog_container {
    overflow: hidden;
    margin-left: 9%;
    padding: 0px 32px;
}

.catalog_top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1500px;
}

.carousel_buttons {
    display: flex;
    align-items: center;
    gap: 20px;
}

.carousel_prev,
.carousel_next {
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--starcar-gold);
    background-color: var(--starcar-dark);
    font-size: 50px;
    padding: 5px;
    cursor: pointer;
    border-radius: 50%;
    user-select: none;
    transition: all 0.3s ease;
}

.carousel_prev:active,
.carousel_next:active {
    transform: scale(1.1);
}


.catalog_subtitle {
    position: relative;
    text-align: start;
    margin-bottom: 100px;
    font-weight: 700;
}

.catalog_subtitle::after {
    content: "";
    position: absolute;
    height: 6px;
    background-color: var(--starcar-gold);
    transform: translateX(-50%);
    width: 50%;
    left: 25%;
    bottom: -20px;
}

.catalog_carousel {
    display: flex;
    justify-content: start;
    align-items: start;
    gap: 30px;
    margin-bottom: 50px;
    padding-top: 5px;
    transition: all 0.3s;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    height: 326px;
}

.catalog_carousel::-webkit-scrollbar {
    display: none;
}

.catalog_carousel_item {
    background-position: center;
    background-size: cover;
    min-width: 300px;
    height: 300px;
    border-radius: 12px;
    position: relative;
    border: 3px solid transparent;
    cursor: pointer;
    transition: all 0.3s;
}

.catalog_carousel_item:nth-child(1) {
    background-image: url(/images/visitor/auto_parts/carrosserie/carrosserie.png);
}

.catalog_carousel_item:nth-child(2) {
    background-image: url(/images/visitor/auto_parts/eclairages/eclairages.png);
}

.catalog_carousel_item:nth-child(3) {
    background-image: url(/images/visitor/auto_parts/retroviseurs/retroviseurs.png);
}

.catalog_carousel_item:nth-child(4) {
    background-image: url(/images/visitor/auto_parts//vitrages/vitrages.png);
}

.catalog_carousel_item:nth-child(5) {
    background-image: url(/images/visitor/auto_parts/mecanique/mecanique.png);
}

.catalog_carousel_item:nth-child(6) {
    background-image: url(/images/visitor/auto_parts/leve_vitres/leve_vitres.png);
}

.catalog_carousel_item:nth-child(7) {
    background-image: url(/images/visitor/auto_parts/accessoires/accessoires.png);
}

.catalog_carousel_item:nth-child(8) {
    background-image: url(/images/visitor/auto_parts/camion/camion.png);
}

.catalog_carousel_item.active {
    border: 3px solid var(--starcar-gold);
    margin: 0px 20px;
}

.carousel_item_header {
    display: flex;
    justify-content: center;
    width: 100%;
    align-items: center;
    position: absolute;
    bottom: 7%;
    left: 50%;
    transform: translateX(-50%);
}

.carousel_item_title {
    font-family: "exo 2", sans-serif;
}

.catalog_categories {
    display: flex;
    flex-wrap: wrap;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 30px;
    padding-bottom: 10px;
    max-width: 100%;
    scroll-behavior: smooth;
}

.catalog_categories::-webkit-scrollbar {
    display: none;
}

.catalog_category {
    flex: 0 0 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 12px;
    cursor: pointer;
    padding: 11px 0px 0px 10px;
    transition: all 0.3s;
}

.catalog_category:hover {
    transform: scale(1.1);
}

.catalog_category img {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 20px;
}

.catalog_category_name {
    text-decoration: none;
    color: black;
    font-weight: 300;
    text-align: center;
    transition: all 0.3s;
}

.catalog_category_icon {
    transition: all 0.3s;
    font-size: 2rem;
}

.catalog_category_icon.rotate {
    transform: rotate(180deg);
}

/**************************************** SERVICE ****************************************/

.service_section {
    background: radial-gradient(circle at bottom right,
            rgba(66, 126, 143, 0.22),
            transparent 55%),
        #ffffff;
    padding: 0px 0px 50px 9%;
}

.service_container {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.service_title {
    position: relative;
    font-size: 2rem;
    margin-bottom: 30px;
}

.service_title::after {
    content: "";
    position: absolute;
    background-color: var(--starcar-gold);
    width: 15%;
    height: 10px;
    left: 0%;
    bottom: -20px;
}

.service_description {
    font-size: 1.25rem;
    font-weight: 500;
    max-width: 500px;
    margin-bottom: 30px;
}

.service_list {
    margin-bottom: 50px;
    margin-left: 1.5rem;
}

.service_list li {
    font-size: 1.25rem;
    font-weight: 400;
    list-style-position: outside;
}

.left_service {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.right_service {
    overflow: hidden;
}

.right_service img {
    width: 100%;
    height: 504px;
    transform: scale(1.4);
    object-fit: cover;
}

.service_cta {
    display: flex;
    justify-content: start;
    width: fit-content;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.service_cta:hover{
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    
}

.service_cta a {
    display: flex;
    color: black;
    background-color: var(--starcar-gold);
    text-decoration: none;
    font-weight: 700;
    padding: 10px;
    border-radius: 12px;
}

/**************************************** SECTION FAQ ****************************************/

.product_faq_section {
    padding: 50px 0;
    background-color: #1c1b1f;
}

.product_faq_container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 32px;
}

/* TITRE */
.product_faq_title {
    text-align: center;
    color: white;
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 50px;
    position: relative;
}

.product_faq_title::after {
    content: "";
    display: block;
    width: 80px;
    height: 5px;
    background-color: var(--starcar-gold);
    margin: 15px auto 0;
}

/* ACCORDION */
.product_faq_accordion {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* ITEM */
.product_faq_item {
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: border 0.3s ease;
}

.product_faq_item.active {
    border: 1px solid var(--starcar-gold);
}

/* QUESTION */
.product_faq_question {
    width: 100%;
    background: none;
    border: none;
    outline: none;
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 18px 20px;

    font-family: "Exo 2", sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: white;
    text-align: left;

    transition: color 0.3s ease, background-color 0.3s ease;
}

.product_faq_question:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--starcar-gold);
}

/* ICONE (+ / -) – gérée via JS */
.product_faq_question::after {
    content: "+";
    font-size: 1.5rem;
    color: var(--starcar-gold);
    transition: transform 0.3s ease;
}

.product_faq_item.active .product_faq_question::after {
    content: "–";
}

/* RÉPONSE */
.product_faq_answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.4s ease, padding 0.3s ease;
}

.product_faq_answer p {
    color: #d1d1d1;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ÉTAT OUVERT – déclenché par JS */
.product_faq_item.active .product_faq_answer {
    max-height: 500px; /* suffisant pour toutes tes réponses */
    padding: 0 20px 20px;
}

/**************************************** RESPONSIVE ****************************************/

@media (max-width: 999px) {
    .auto_parts_hero_section {
        height: 450px;
        display: flex;
        align-items: flex-end;
        background-size: auto;
        background-position: center top 47%;
    }

    .auto_parts_hero_top {
        margin-bottom: 30px;
    }

    .auto_parts_hero_title {
        margin-top: 0;
    }

    .auto_parts_searchbar_section{
        display: none;
    }

    .auto_parts_hero_bottom {
        display: none;
    }

    .auto_parts_hero_searchbar {
        display: none;
    }

    .search_mobile,
    .search_mobile * {
        display: flex;
    }

    .search_mobile #searchInput {
        border: none;
    }

    .search_mobile .auto_parts_hero_bottom {
        display: flex;
        flex-direction: column;
        padding-top: 50px;
    }

    #searchSuggestionsMobile{
        display: none;
        top: 206px;
    }

    .search_mobile .suggestion_content{
        display: flex;
        flex-direction: column;
    }

    .catalog_container {
        margin-left: 0;
        padding: 0px 20px;
    }

    .carousel_buttons {
        display: none;
    }

    .catalog_carousel {
        overflow-y: auto;
        overflow-x: scroll;
    }
}

@media (max-width: 768px) {

    .auto_parts_hero_container {
        padding: 0px 12px;
    }

    .auto_parts_hero_title {
        font-size: 1.5rem;
    }

    .auto_parts_hero_search_top {
        margin-bottom: 5px;
    }

    .auto_parts_hero_search_title {
        width: 100%;
        justify-content: center;
        font-size: 1.5rem;
    }

    .search_mobile .auto_parts_hero_searchbar {
        padding: 15px 10px;
    }

    .auto_parts_features_section {
        background: rgba(250, 250, 252, 1);
    }

    .catalog_categories {
        flex-wrap: nowrap;
    }

    .search_mobile .auto_parts_hero_bottom {
        width: 100%;
        padding: 50px 12px;
    }

    .search_container {
        padding: 0px 12px;
    }

    .search_title {
        font-size: 1.5rem;
    }

    #catalog_title_top {
        padding: 0px 12px;
    }

    .catalog_container {
        padding: 0px 12px;
    }

    .catalog_title {
        font-size: 1.5rem;
    }

    .service_section {
        padding: 0px 0px 50px 0%;
    }

    .service_container {
        grid-template-columns: 1fr;
    }

    .right_service {
        order: 1;
    }

    .left_service {
        order: 2;
        padding: 30px 12px 0px 12px;
    }

    .service_title {
        font-size: 1.5rem;
        margin-bottom: 40px;
    }
}