*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    font-family:Arial,Helvetica,sans-serif;
    background:#f4f6f9;
    color:#333;
}

.container{
    max-width:1200px;
    margin:auto;
    padding:30px 20px;
}

header{
    margin-bottom:30px;
}

h1{
    font-size:2rem;
    margin-bottom:20px;
}

#search{
    width:100%;
    max-width:500px;
    padding:14px 18px;
    font-size:16px;
    border:1px solid #ddd;
    border-radius:12px;
    outline:none;
}

#search:focus{
    border-color:#1976d2;
}

.cards{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(320px,1fr));
    gap:20px;
}

.card{
    background:#fff;
    border-radius:16px;
    padding:20px;
    box-shadow:0 4px 18px rgba(0,0,0,.08);
    transition:.2s;
}

.card:hover{
    transform:translateY(-3px);
}

.title{
    font-size:20px;
    font-weight:bold;
    margin-bottom:15px;
}

.row{
    display:flex;
    justify-content:space-between;
    margin:10px 0;
    gap:15px;
}

.label{
    color:#777;
    font-weight:bold;
}

.value{
    text-align:right;
}

.price{
    color:#1976d2;
    font-size:24px;
    font-weight:bold;
    margin:15px 0;
}

.button{
    display:inline-block;
    margin-top:15px;
    width:100%;
    text-align:center;
    padding:12px;
    border-radius:10px;
    background:#1976d2;
    color:#fff;
    text-decoration:none;
    font-weight:bold;
}

.button:hover{
    background:#125aa5;
}

@media(max-width:700px){

.container{
    padding:15px;
}

h1{
    font-size:1.7rem;
}

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

.price{
    font-size:22px;
}

.toolbar{
    display:flex;
    gap:12px;
    margin:20px 0;
    align-items:center;
}

#search{
    flex:1;
}

#sort{
    width:230px;
    padding:12px;
    border:1px solid #ddd;
    border-radius:10px;
    font-size:15px;
    background:#fff;
    cursor:pointer;
}

@media (max-width:700px){

    .toolbar{
        flex-direction:column;
        align-items:stretch;
    }

    #search,
    #sort{
        width:100%;
    }

}

}