*{
    margin: 0px;
    padding: 0px;
    box-sizing: border-box;
}

body{
    background-color: rgb(243, 250, 250);
}

header{
    background-color: #28242b;
    color: white;
    padding: 16px;
    text-align: center;
    font-family:'Times New Roman', Times, serif;
}

nav{
    display: flex;
    justify-content: center;
    background-color: #776f6f;
    padding: 0px;
}

nav a{
    color: #ffff00;
    margin-right: 16px;
    text-decoration: none;
}

nav a:hover{
    color: red;
}

ul{
    list-style-type: none;
}

.menu li{
    display: inline-block;
    width: 150px;
    position: relative;
}

.submenu{
    display: none;
    position: absolute;
    background-image: linear-gradient(to right, black, white);
}

.menu li:hover .submenu{
    display: block;
}

.submenu li{
    border: 1px dotted rgb(93, 95, 93);
}

.products{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    padding: 30px;
}

.product{
    background-color: white;
    border-radius: 10px;
    padding: 16px;
    box-shadow: 0 0 10px #aaaaaa;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.product img{
    width:150px;
    height: 100px;
}
.product button{
    background-color: rgb(19, 161, 43);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
}
.product h3{
    white-space:nowrap;
}
@media screen and(max-width:900px){
.products{
grid-template-columns: 1fr;
}
nav{
flex-direction:column;
}
.menu li{
display : block;
width: 100%;
}
}