.main-container { display: flex; width: 100%; height: 100vh; } #aside { display: flex; flex-direction: column; background-color: #eb0000; padding: 10px; width: 15%; position: fixed; } #aside a { text-decoration: none; color: white; margin: 10px 0; transition: all 0.5s; } #main { display: flex; flex-direction: column; width: 85%; margin-left: 20%; } #main h2 { margin-left: 20px; } .cards { display: flex; flex-wrap: wrap; justify-content: flex-start; width: 100%; padding: 20px; text-align: center; } .cards a { text-decoration: none; color: #000; margin: 15px; border-radius: 10px; width: 25%; transition: all 0.5s; box-shadow: 0 0 2px rgb(8, 8, 8); } .cards a:hover { transform: scale(1.05); } .card img { max-width: 80%; margin: 10px 0; } .card { display: flex; flex-direction: column; align-items: center; justify-content: space-between; height: 100%; padding: 15px; } button { box-sizing: border-box; background-color: transparent; border: 2px solid #e74c3c; border-radius: 0.6em; color: #e74c3c; cursor: pointer; line-height: 1; margin: 10px; padding: 0.5em; text-decoration: none; text-align: center; text-transform: uppercase; transition: box-shadow 0.3s ease-in-out, color 0.3s ease-in-out; } button:hover { color: #fff; outline: 0; box-shadow: 0 0 40px 40px #e74c3c inset; } input { width: 40px; height: 35px; text-align: center; border: 2px solid #e74c3c; border-radius: 0.6em; } #cart { position: absolute; top: 10px; right: 10%; } #cart span { position: absolute; top: 0; right: -5px; border: 1px solid #000; background-color: #fff; border-radius: 10px; padding: 0 4px; font-size: 12px; text-align: center; } .cart-item { display: flex; align-items: center; font-size: 18px; border-bottom: 1px solid #8d8d8d; } .btn-plus, .btn-minus, .btn-del { position: relative; width: 25px; height: 25px; border-radius: 55%; border: none; } .btn-plus::before, .btn-plus::after, .btn-minus::before, .btn-del::before, .btn-del::after { content: ""; display: block; position: absolute; width: 2px; height: 12px; background-color: #e74c3c; top: 50%; left: 50%; margin-right: -50%; transition: background-color 0.3s; } .btn-plus::before, .btn-minus::before { transform: translate(-50%, -50%) rotate(90deg); } .btn-plus::after { transform: translate(-50%, -50%); } .btn-del::before { transform: translate(-50%, -50%) rotate(45deg); } .btn-del::after { transform: translate(-50%, -50%) rotate(-45deg); } .btn-plus:hover::after, .btn-plus:hover::before, .btn-minus:hover::before, .btn-del:hover::after, .btn-del:hover::before { background-color: #fff; } .btn-plus:active, .btn-minus:active, .btn-del:active { transform: scale(0.95); } .btn-minus:disabled { border-color: grey; cursor: default; box-shadow: none; } .btn-minus:disabled::before { background-color: grey; } .cart-item-count { color: #e74c3c; width: 30px; height: 30px; } .btn-clear { color: #706e6e; border-color: #706e6e; } .btn-clear:hover { box-shadow: 0 0 40px 40px #706e6e inset; }