/* ===========================
   SEARCH PAGE IMPROVEMENTS
=========================== */

.search-box{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:15px;
    flex-wrap:wrap;
    width:100%;
    max-width:700px;
    margin:30px auto 0;
}

.search-box input{
    flex:1;
    padding:16px 20px;
    border:1px solid #ddd;
    border-radius:50px;
    font-size:16px;
}

.search-box button{
    padding:16px 30px;
    border-radius:50px;
}

.products{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(300px,1fr));
    gap:25px;
    max-width:1300px;
    margin:0 auto;
}

.product-card{
    background:#fff;
    border-radius:15px;
    overflow:hidden;
    box-shadow:0 4px 12px rgba(0,0,0,.08);
    transition:.3s;
    text-align:center;

    display:flex;
    flex-direction:column;
    justify-content:space-between;
}

.product-card:hover{
    transform:translateY(-6px);
    box-shadow:0 10px 20px rgba(0,0,0,.15);
}

.product-card img{
    width:100%;
    height:220px;
    object-fit:cover;
    display:block;
    transition:.35s;
}

.product-card:hover img{
    transform:scale(1.05);
}

.product-card h3{
    font-size:22px;
    margin:15px 10px 8px;
}

.price{
    color:#ff6b00;
    font-size:24px;
    font-weight:bold;
    margin-bottom:10px;
}

.product-card p{
    color:#666;
    margin-bottom:10px;
}

.product-card button{
    margin:15px;
    margin-top:auto;
    width:calc(100% - 30px);
}

.loading{
    grid-column:1/-1;
    text-align:center;
    padding:40px;
    font-size:18px;
    color:#666;
}

@media(max-width:768px){

.search-box{
    flex-direction:column;
}

.search-box input,
.search-box button{
    width:100%;
    max-width:100%;
}

.hero{
    margin-top:80px;
}

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

.product-card img{
    height:200px;
}

}


.hero{
    width:100%;
    max-width:1200px;
    margin:30px auto 40px;
    padding:20px;
    text-align:center;
}

.hero h2{
    font-size:36px;
    font-weight:700;
    color:#222;
    margin-bottom:25px;
}

.latest-ads{
    width:100%;
    max-width:1300px;
    margin:20px auto 60px;
    padding:0 20px;
}

.latest-ads h2{
    text-align:center;
    font-size:34px;
    font-weight:700;
    margin-bottom:30px;
    color:#222;
}


.empty-search{
    grid-column:1 / -1;
    width:100%;
    text-align:center;
    padding:80px 20px;

    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
}

.empty-icon{
    font-size:70px;
    margin-bottom:20px;
}

.empty-search h2{
    font-size:32px;
    margin-bottom:12px;
    color:#333;
}

.empty-search p{
    font-size:18px;
    color:#777;
}

.empty-search h2,
.empty-search p,
.empty-search .empty-icon{
    text-align:center;
}