Помогите прикрепить футер к низу
Уже все способы перепробовал, но он не клеится к низу. Помогите пожалуйста
<!DOCTYPE html>
<html lang="en">
<head>
<script src="js/jquery-3.5.0.min.js"></script>
<meta charset="UTF-8">
<title> WayStore </title>
<link rel="stylesheet" href="css/style.css">
<link href="https://fonts.googleapis.com/css2?family=Titillium+Web&display=swap" rel="stylesheet">
</head>
<body>
<header>
<div class="logo">
<a href="index.html"><img class="graficlogo" src="img/logo.png"></a>
</div>
</header>
<input type="search" name="search" class="search" placeholder="Поиск по сайту">
<main>
<div class="tovari_block"> <!-- Товар блоки -->
<div class="tovari_items">
<div class="tovar_img"><img src="img\tovari_leaderpage/telefon.png">
<div class="tovar_list">
<h3> Huawei P30 Lite </h3>
<div id="price">
<h5> 9999 грн. </h5>
</div>
<div id="quantity_true">
<h5> Есть в наличии. </h5>
</div>
<div class="button">
<button class="buy" > Купить </button>
</div>
</div>
</div>
</div>
<div class="tovari_items">
<div class="tovar_img"><img src="img\tovari_leaderpage/tovar_iphone11proMAX.png">
<div class="tovar_list">
<h3> Iphone 11 Pro Max </h3>
<div id="price">
<h5> 9999 грн. </h5>
</div>
<div id="quantity_false">
<h5> Нет в наличии. </h5>
</div>
<div class="button">
<button class="buy" > Купить </button>
</div>
</div>
</div>
</div>
<div class="tovari_items">
<div class="tovar_img"><img src="img\tovari_leaderpage/telefon.png">
<div class="tovar_list">
<h3> Huawei P30 Lite </h3>
<div id="price">
<h5> 9999 грн. </h5>
</div>
<div id="quantity_true">
<h5> Есть в наличии. </h5>
</div>
<div class="button">
<button class="buy" > Купить </button>
</div>
</div>
</div>
</div>
<div class="tovari_items">
<div class="tovar_img"><img src="img\tovari_leaderpage/tovar_iphone11proMAX.png">
<div class="tovar_list">
<h3> Iphone 11 Pro Max </h3>
<div id="price">
<h5> 9999 грн. </h5>
</div>
<div id="quantity_false">
<h5> Нет в наличии. </h5>
</div>
<div class="button">
<button class="buy" > Купить </button>
</div>
</div>
</div>
</div>
</div> <!-- Товар блоки -->
</main>
<footer>
<div class="social">
<p> Мы в социальных сетях! </p>
<div class="footer_social_img">
<a href="#"><img src="img/social_footer/footer_icon_instagram.png"></a>
<a href="#"><img src="img/social_footer/footer_icon_facebook.png"></a>
<a href="#"><img src="img/social_footer/footer_icon_twitter.png"></a>
</div>
</div>
</footer>
</body>
</html>
body {
margin: 0px;
padding: 0px;
height: 100%;
font-family: 'Titillium Web', sans-serif;
}
html {
height: 100%;
}
a {
text-decoration: none;
}
.graficlogo {
padding: 5px;
max-width: 100%;
box-sizing: border-box;
}
header {
width: 100%;
display: flex;
justify-content: center;
background: #F6C010;
margin: 0;
}
.search {
display: flex;
margin: auto;
padding: 10px;
margin-top: 20px;
border: 2px solid #F6C010;
width: 30%;
height: 30px;
}
main {
display: flex;
justify-content: center;
padding: 5px;
flex-wrap: wrap;
position: relative;
}
ul {
margin: 0px;
padding: 0px;
}
ul li {
list-style: none;
margin: 0;
}
ul li a {
background: #1C1E1F;
color: white;
display: block;
border-bottom: 1px solid black;
width: 180px;
padding: 10px;
text-decoration: none;
margin: 0;
}
ul li a:hover {
background: #F6C010;
transition: 0.25s;
color: white;
}
footer {
box-sizing: border-box;
display: block;
bottom: 0;
background: #F6C010;
height: 20%;
width: 100%;
display: flex;
justify-content: center;
}
.social p {
color: white;
font-size: 25px;
}
.footer_social_img {
display: flex;
justify-content: space-around;
}
.tovari_items {
position: relative;
display: flex;
margin-top: 40px;
margin-bottom: 40px;
box-sizing: border-box;
margin-left: 50px;
margin-right: 50px;
padding: 25px;
box-shadow: 0 0 5px;
cursor: pointer;
}
.tovari_block {
margin-top: -20px;
display: flex;
flex-wrap: wrap;
}
.tovari_items:hover {
box-shadow: 0 0 7px;
transition: 0.25s;
}
.tovar_list h3 {
display: flex;
justify-content: center;
}
#price h5 {
border-bottom: 2px solid #F6C010;
font-size: 16px;
padding-bottom: 5px;
display: flex;
justify-content: center;
}
#quantity_true h5 {
margin-top: -17px;
display: flex;
color: #54C418;
justify-content: center;
font-size: 14px;
}
#quantity_false h5 {
margin-top: -17px;
display: flex;
color: #FF0800;
justify-content: center;
font-size: 14px;
}
.buy {
cursor: pointer;
outline: none;
display: flex;
width: 100%;
background: #68D81E;
padding: 5px;
justify-content: center;
color: white;
border: none;
font-weight: 800;
}
.buy:hover {
background: #82F238;
transition: 0.25s;
}
@media screen and (max-width: 768px) {
.search {
width: 80%;
}
.tovari_block {
width: 100%;
}
footer {
box-sizing: border-box;
}
}
@media screen and (max-width: 1310px) {
.tovari_block {
display: flex;
flex-wrap: wrap;
width: 30%;
box-sizing: border-box;
}
footer {
box-sizing: border-box;
}
}
@media screen and (max-width: 955px) {
.tovari_block {
display: flex;
flex-wrap: wrap;
width: 100%;
box-sizing: border-box;
}
.search {
width: 50%;
}
footer {
box-sizing: border-box;
}
}
@media screen and (max-width: 590px) {
.tovari_block {
display: flex;
flex-wrap: wrap;
width: 100%;
box-sizing: border-box;
}
footer {
box-sizing: border-box;
}
}
@media screen and (max-width: 475px) {
.tovari_block {
display: flex;
flex-wrap: wrap;
width: 100%;
box-sizing: border-box;
}
.search {
width: 70%;
}
footer {
box-sizing: border-box;
}
}
