:root { box-sizing: border-box; font-size: 16px; line-height: 20px; font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif; } body { background-color: #fff; } .container { max-width: 1200px; padding: 0 15px; margin: 0 auto; } #user { display: flex; justify-content: flex-end; align-items: center; } header { display: flex; align-items: center; justify-content: space-between; } header a { color: #000; text-decoration: none; } #userBox { width: 50%; height: 50%; padding: 20px 15px; border-radius: 15px; z-index: 5; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background-color: #fff; display: flex; flex-wrap: wrap; align-content: flex-start; justify-content: center; } #userBox input { width: 100%; margin-bottom: 10px; padding: 10px 5px; font-size: 1.5em; line-height: 1em; } button { cursor: pointer; padding: 10px 5px; } #overlay { background-color: rgba(0, 0, 0, 0.3); position: absolute; left: 0; right: 0; top: 0; bottom: 0; display: none; } #userBox .close { position: absolute; top: 10px; right: 10px; background-color: #ececec; text-decoration: none; text-align: center; border: none; border-radius: 50%; padding: 0; margin: 0; width: 25px; height: 25px; } ul { list-style: none; padding: 0; margin: 0; } .menuBtn { background-color: transparent; border: none; font-weight: 700; margin: 0; padding: 0; border-bottom: 1px solid #000; margin-bottom: 10px; transition: all 0.3s; } .menuBtn:hover { color: red; } .products { display: flex; justify-content: space-between; } .itemBox { display: flex; justify-content: space-between; width: 75%; } #aside { background-color: rgb(95, 137, 243); } .catalog__link { background-color: rgb(14, 0, 63); } #aside a, .catalog__link { color: #fff; font-size: 1.4em; text-decoration: none; display: block; padding: 15px 5px; transition: all 0.3s; border-bottom: 1px solid transparent; } #aside a:hover, .catalog__link:hover { background-color: rgb(252, 0, 0); border-bottom: 1px solid #000; } .user__link { text-decoration: none; font-size: 1.2em; display: inline-block; color: #000; padding: 2px 5px; margin: 0 10px; } .user__box { display: flex; justify-content: flex-end; padding: 10px 0; } .user__box h3 { font-size: 1.4em; margin: 0; padding: 10px 20px; } #logOut button { background-color: #ececec; border: none; display: flex; align-items: center; justify-content: center; transition: all 0.3s; border-radius: 5px; } #logOut button:hover { box-shadow: 0px 0px 5px rgb(230, 105, 105) inset; } #main h1 { font-size: 2em; line-height: 1em; margin: 0; padding: 10px 0; } .sub-catigories { display: flex; justify-content: space-around; align-items: center; background-color: rgb(92, 110, 131); } .sub-catigories a { text-decoration: none; padding: 5px; color: #fff; font-size: 1em; transition: all 0.3s; } .sub-catigories a:hover { background-color: rgb(61, 31, 92); } .product { padding: 10px 5px; } .product button, .productBtn { width: 85px; height: 45px; background-color: #ececec; border: none; display: flex; align-items: center; justify-content: center; transition: all 0.3s; border-radius: 5px; } .product button:hover, .productBtn:hover { box-shadow: 0px 0px 5px rgb(230, 105, 105) inset; } .product-title__link, .product-one_title, .product-one__inner a { display: inline-block; text-decoration: none; font-size: 1.6em; line-height: 1.2em; margin: 0; padding: 5px; color: rgb(20, 80, 0); transition: all 0.3s; border-bottom: 1px solid transparent; margin-bottom: 5px; } .product-title__link:hover, .product-one__inner a:hover { color: rgb(128, 0, 0); border-bottom: 1px solid rgb(128, 0, 0); } .product__inner { display: flex; align-items: flex-start; margin-bottom: 10px; margin-right: 25px; } .product__inner img { width: 25vw; margin-right: 15px; } .order { position: relative; margin-right: 25px; display: block; margin-left: 25px; } .order-count { display: flex; align-items: center; justify-content: center; position: absolute; top: 0; right: 0; border-radius: 50%; background-color: #ececce; font-size: 0.9em; width: 25px; height: 25px; } .order-box { display: flex; width: 150px; justify-content: flex-end; } .product-one__img { padding: 25px 0 10px; width: 100%; } .product-one__img img { margin: 0 auto; display: block; max-height: 350px; } .product-one__price { margin: 0; padding: 0; } .clean-order { display: block; margin-left: auto; margin-top: 15px; margin-bottom: 10px; background-color: transparent; border: none; font-size: 1.3em; border-bottom: 1px solid transparent; padding: 5px 10px; transition: all 0.3s; } .clean-order:hover { border-bottom: 1px solid #000; } .product-order__inner { display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; } .product-order__inner img { max-width: 75px; width: 10vw; margin-right: 2vw; } .product-order__inner a { font-size: 1em; margin-right: 2vw; margin-bottom: 0; max-width: 250px; width: 20vw; } .product-order__inner input { font-size: 1.2em; padding: 2px 5px; max-width: 50px; text-align: center; margin-right: 2vw; } .product-order__inner span { margin-right: 2vw; } .product-order__inner button { width: 25px; height: 25px; padding: 0; margin: 0; border: none; display: flex; align-items: center; justify-content: center; font-weight: 500; font-size: 1.2em; background-color: #ff0000; border-radius: 3px; } .order-sent__btn { padding: 10px 35px; display: block; margin-left: auto; border: none; border-radius: 5px; background-color: #c4e438; transition: all 0.3s; } .order-sent__btn:hover { background-color: rgb(255, 129, 33); } #preLoader { position: fixed; top: 50%; transform: translateY(-50%); left: 0; opacity: 0.8; }