/* ==========================
   PRODUCTS HERO
========================== */

.products-hero{
    height:400px;
    background:linear-gradient(rgba(11,61,109,.75),rgba(11,61,109,.75)),
    url("../assets/images/hero.jpg");
    background-size:cover;
    background-position:center;
    display:flex;
    justify-content:center;
    align-items:center;
    text-align:center;
    color:white;
    padding:0 7%;
}

.products-hero h1{
    font-size:60px;
    margin-bottom:20px;
}

.products-hero p{
    max-width:800px;
    font-size:22px;
    line-height:1.8;
}
/* ==========================
   PRODUCTS LAYOUT
========================== */

.products-section{
    display:grid;
    grid-template-columns:280px 1fr;
    gap:40px;
    padding:80px 7%;
}

.sidebar{
    background:#ffffff;
    border-radius:15px;
    padding:30px;
    box-shadow:0 10px 25px rgba(0,0,0,.08);

    position:sticky;
    top:100px;
    align-self:start;

    height:fit-content;
}
.sidebar h2{
    color:#0B3D6D;
    margin-bottom:20px;
    font-size:28px;
}

.sidebar ul{
    list-style:none;
}

.sidebar li{
    padding:15px 10px;
    border-bottom:1px solid #EAEAEA;
    cursor:pointer;
    transition:.3s;
    font-weight:600;
}

.sidebar li:hover{
    background:#0B3D6D;
    color:#FFFFFF;
    padding-left:18px;
    border-radius:8px;
}

.products-content{
    background:#ffffff;
    border-radius:15px;
    padding:40px;
    box-shadow:0 10px 25px rgba(0,0,0,.08);
}

.products-content h2{
    color:#0B3D6D;
}
/* ==========================
   SEARCH BOX
========================== */

.search-box{

    display:flex;

    gap:15px;

    margin-bottom:40px;

}

.search-box input{

    flex:1;

    padding:15px 18px;

    border:1px solid #ddd;

    border-radius:10px;

    font-size:16px;

    outline:none;

    transition:.3s;

}

.search-box input:focus{

    border-color:#0B3D6D;

    box-shadow:0 0 8px rgba(11,61,109,.15);

}

.search-box button{

    padding:15px 28px;

    background:#0B3D6D;

    color:#fff;

    border:none;

    border-radius:10px;

    cursor:pointer;

    font-weight:600;

    transition:.3s;

}

.search-box button:hover{

    background:#C7A33B;

}
/* ==========================
   PRODUCT CARDS
========================== */

.product-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:30px;
    margin-top:30px;
}

.product-card{

    background:#fff;

    border-radius:18px;

    overflow:hidden;

    border:1px solid #ECECEC;

    box-shadow:0 10px 25px rgba(0,0,0,.08);

    transition:.35s;

    text-align:center;

}

.product-card:hover{

    transform:translateY(-8px);

    box-shadow:0 18px 35px rgba(0,0,0,.15);

}

.product-card img{

    width:100%;

    height:230px;

    object-fit:contain;

    padding:20px;

    background:#fff;

    transition:.35s;

}

.product-card:hover img{

    transform:scale(1.05);

}

.product-card h3{

    margin:18px 20px 10px;

    color:#0B3D6D;

    font-size:24px;

    font-weight:700;

}

.product-card p{

    color:#666;

    line-height:1.7;

    margin:0 20px 12px;

}

.product-card .btn{

    display:block;

    margin:20px;

    padding:14px;

    background:#25D366;

    color:#fff;

    text-decoration:none;

    border-radius:10px;

    font-weight:600;

    transition:.3s;

}

.product-card .btn:hover{

    background:#1DA851;

}
/* ==========================
   PRODUCT BRAND BADGE
========================== */

.brand-name{

    display:inline-block;

    margin-top:10px;

    padding:6px 16px;

    background:#0B3D6D;

    color:#fff;

    border-radius:25px;

    font-size:13px;

    font-weight:600;

    letter-spacing:.5px;

}

.product-info{

    margin:18px 20px;

    padding:15px;

    background:#F8F9FB;

    border-radius:12px;

    text-align:left;

}
.part-number{

    font-weight:700;

    color:#0B3D6D;

    margin-bottom:8px;

    font-size:15px;

}

.vehicle{

    color:#666;

    font-size:14px;

}
.product-type{
    color:#28A745;
    font-size:15px;
    font-weight:700;
    margin:8px 0 18px;
}

/* Hidden on Desktop */

.mobile-category{

    display:none;

}

.product-type.genuine{

    display:inline-block;

    margin:12px auto;

    padding:8px 18px;

    background:#E8F7EC;

    color:#1F8A45;

    border-radius:30px;

    font-size:14px;

    font-weight:600;

}

.product-type.aftermarket{

    display:inline-block;

    margin:12px auto;

    padding:8px 18px;

    background:#FFF3E6;

    color:#E67E22;

    border-radius:30px;

    font-size:14px;

    font-weight:600;

}


/* ==========================
   CATEGORY ACTIVE STATE
========================== */

.sidebar li{

    transition:.3s;

    cursor:pointer;

}

.sidebar li.active{

    background:#0B3D6D;

    color:#fff;

    border-radius:8px;

    padding:12px 16px;

    font-weight:600;

}

.sidebar li:hover{

    background:#C7A33B;

    color:#fff;

    border-radius:8px;

}