body{
    position: relative;
    min-height: 100%;
    background-color: #FBFCF8;
 background-image: radial-gradient(circle, #ccc 2px, transparent 2px); /* darker dots */
  background-size: 35px 35px; /* space between dots */
  }
/* .auto-parts-container{
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    overflow: hidden;
    position: relative; For proper alignment
    width: 100%; Match the viewport width    white-space: nowrap; Prevent wrapping of child elements

} */

.card-container{
    /*display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 0.3em;*/
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    padding: 20px;
}

.prod-card{
    /*width: 25%;
    height: 10%;
    min-width: 300px;*/    
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
    text-align: center;
    padding: 15px;
    border: 1px solid var(--secondary-grey);     /* height: 300px; */
}
.prod-card:hover{
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
    border-color: var(--primary-color); /* highlight border */
}

.system-cards{
    width: 20%;
    margin: 0.3em;
    border-radius: 10px;
    box-shadow: 0px 10px 15px -3px rgba(0,0,0,0.1);
}

.auto-part-container, .s-auto-part-container{
    /* max-width: 500px; */
    display: flex;
    /*border: 1px solid black;*/
    border-radius: 5px;
    height: 300px;
    padding: 0.3em;
    margin: 5px;
    /* box-shadow: 0px 3px 10px -3px var(--secondary-grey); */
    justify-items: center;
    /* flex: 0 0 auto; Prevent shrinking or growing */
    width: 100%; /* Match the container width */
    box-sizing: border-box; /* Include padding and border in width */
    /* transform: translateX(20%); */
    /*background-color: rgba(229, 228, 226, 0.25);*/
}

.auto-part{
    /*object-fit: contain;
    width: 70%;
    height: 10%;
    min-width: 200px;
    min-height: 200px;
    border-radius: 0.5em;
    background-color: rgb(248, 247, 247);
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    transition: .5s;*/
    max-height: 160px;
    max-width: 100%;
    object-fit: contain;

}

.auto-part:hover{
    transform: scale(1.1);
    transition: .5s;
}

.autopart-image-container{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.auto-part-vehicle{
   /* text-align: center;
    width: 100%;*/
    font-size: 1rem;
    font-weight: 600;
    color: var(--secondary-blue); 
    margin: 5px 0;
    text-wrap: wrap;
}

.auto-part-price{
    /* background-color: var(--secondary-blue); */
    /* border-bottom: 1px solid var(--secondary-blue); */
    font-size: 0.9rem;
    color: var(--primary-color); /* orange highlight */
    margin: 2px 0;
    font-weight: 500;
    /*color: var(--secondary-color);
    font-weight: 600;
    font-size: 1em;*/
    /* border-radius: 45%; */
    width: fit-content;
    /* padding: 0.6rem; */
}
.auto-part-name{
    font-size: 1.1rem;
    color: var(--secondary-grey); /* muted grey */
    margin-bottom: 10px;
}
.autopart-info{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 100%;
    margin: 0.7rem;
}

.category-links{   
    display: block;
    text-decoration: none;
    width: fit-content;
    height: fit-content;
    color: white;
    font-weight: 500;
    font-style: italic;
}

.category-title {
    width: 350px;
    min-width: 300px;
    height: fit-content; /* Example height */
    padding: 10px;
    /* display: flex;
    align-items: center;
    justify-content: center; */
    /* position: relative; */
    border: 1px solid white;
    clip-path: polygon(0 0, 90% 0, 100% 100%, 0 100%);
}

.categories{
    position: relative;
    width: 90%;
}

.slide-left, .slide-right{
    position: absolute;
    top: 40%;
    z-index: 200;
    height: 10%;
    width: 5%;
    border: none;
    background-color: rgba(0, 0, 0, 0.4);
    color: white;
    font-size: 1.3em;
    border-radius: 0.7rem;
    min-width: 50px;
}

.slide-left{
    left: 0%;
}
.slide-right{
    right: 0%;
}

.slide-right:hover, .slide-left:hover{
    background-color: rgba(0, 0, 0, 0.7);

}

.s-auto-part-container{
    width: fit-content;
}

.cat-title{
    /* background-color: var(--secondary-blue); */
  background-color: #FBFCF8;
  /* border: 1px solid var(--secondary-blue); */
    width: 100%;
    text-align: center;
    padding: 0.12em;
    border-radius: 0.2em;
    color: rgb(12, 12, 12);
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    -webkit-box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    -moz-box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

.sidebanner-image{    
    width: 80%;
    /* height: 600px; */
    object-fit: contain;
    transition: 0.5s;
}

.sidebanner{
    position: absolute;
    top: 25%;
    right: 0;
    width: 21%;
    height: fit-content;
}


.slide-show{
    width: 80%;
    filter: brightness(75%);
}
@media (max-width: 500px) {
    .auto-part-container{
        /* max-width: 500px; */
        display: flex;
        /*border: 1px solid black;*/
        border-radius: 5px;
        height: 300px;
        padding: 0.3em;
        margin: 5px;
        /* box-shadow: 0px 3px 10px -3px var(--secondary-grey); */
        justify-items: center;
        /* flex: 0 0 auto; Prevent shrinking or growing */
        width: 100%; /* Match the container width */
        box-sizing: border-box; /* Include padding and border in width */
        /* transform: translateX(20%); */
        /*background-color: rgba(229, 228, 226, 0.25);*/
    }

    .sidebanner{
        display: none;
    }

    .search-bar-container > form{
        width: 95%;
    }
    

    .spare-systems-container{
        display: none !important;
    }
}

@media (max-width: 1300px) {
    
    .slide-show{
        width: 100%;
        height: 90%;
    }

    .sidebanner{
        position: absolute;
        bottom: 0%;
        right: 50%;
        /* width: 300px;
        height: 300px; */

    }
    .sidebanner-image{    
        width: 80%;
        height: 300px;
        transition: 0.5s;
    }
}
