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

body{
    font-family:Arial, sans-serif;
    background:#f4f4f4;
}

/* HEADER */

header{
    background:black;
    color:white;
    padding:20px 40px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    flex-wrap:wrap;
}

.logo{
    font-size:35px;
    font-weight:bold;
}

nav{
    display:flex;
    gap:25px;
}

nav a{
    color:white;
    text-decoration:none;
    font-size:18px;
}

nav a:hover{
    color:gold;
}

.search-box{
    display:flex;
    gap:10px;
}

.search-box input{
    padding:10px;
    width:250px;
    border:none;
    border-radius:5px;
}

.search-box button{
    padding:10px 20px;
    background:gold;
    border:none;
    border-radius:5px;
    cursor:pointer;
    font-weight:bold;
}


/* HERO */

.hero{
    height:400px;
    background:url('https://images.unsplash.com/photo-1592945403244-b3fbafd7f539?q=80&w=1400&auto=format&fit=crop');
    background-size:cover;
    background-position:center;
    display:flex;
    align-items:center;
    justify-content:center;
    text-align:center;
    color:white;
}

.hero-text h1{
    font-size:60px;
}

.hero-text p{
    margin-top:10px;
    font-size:22px;
}

.hero-text button{
    margin-top:20px;
    padding:15px 35px;
    background:gold;
    border:none;
    cursor:pointer;
    font-size:18px;
    border-radius:8px;
}


/* PRODUCTS */

.products{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:25px;
    padding:50px;
}

.card{
    background:white;
    border-radius:12px;
    overflow:hidden;
    box-shadow:0 5px 15px rgba(0,0,0,0.2);
    transition:0.3s;
}

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

.card img{
    width:100%;
    height:250px;
    object-fit:cover;
}

.card h2{
    padding:15px;
    font-size:24px;
}

.card p{
    padding-left:15px;
    font-size:20px;
    color:green;
}

.card button{
    margin:15px;
    width:calc(100% - 30px);
    padding:12px;
    border:none;
    background:black;
    color:white;
    cursor:pointer;
    border-radius:8px;
    font-size:16px;
}

.card button:hover{
    background:gold;
    color:black;
}


/* FOOTER */

footer{
    background:black;
    color:white;
    text-align:center;
    padding:20px;
    margin-top:40px;
}


/* MOBILE */

@media(max-width:900px){

    header{
        flex-direction:column;
        gap:20px;
    }

    nav{
        flex-wrap:wrap;
        justify-content:center;
    }

    .hero-text h1{
        font-size:38px;
    }

}