123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348 |
- *,
- *::before,
- *::after {
- box-sizing: border-box;
- }
- html {
- font-family: 'Roboto', sans-serif;
- color: black;
- font-size: 16px;
- line-height: 1.3;
- font-weight: 400;
- }
- body {
- margin: 0;
- }
- #mainContainer {
- display: flex;
- position: relative;
- width: 100%;
- padding: 20px;
- }
- #aside {
- min-width: 260px;
- max-width: 260px;
- margin-right: 30px;
- }
- #aside > a {
- display: block;
- text-decoration: none;
- color: black;
- border-bottom: 1px solid gray;
- padding: 10px 20px;
- margin-bottom: 8px;
- }
- #aside > a:hover {
- color: gray;
- transition: color 0.3s;
- }
- #main {
- max-width: 1000px;
- width: 100%;
- }
- header {
- min-height: 100px;
- height: 100%;
- background-color: black;
- color: #fff;
- display: flex;
- justify-content: space-between;
- align-items: center;
- padding: 0 20px;
- }
- header .button {
- border: none;
- background-color: white;
- border-radius: 10px;
- padding: 6px 12px;
- cursor: pointer;
- color: black;
- font-size: 16px;
- transition: color 0.3s;
- }
- header .button:hover,
- header a:hover {
- color: rgb(165, 189, 251);
- }
- header a {
- color: #fff;
- text-decoration: none;
- transition: color 0.3s;
- }
- header a img {
- display: flex;
- width: 200px;
- }
- .header-info {
- display: flex;
- align-items: center;
- }
- .header-info > * {
- margin: 0 14px;
- }
- .cart-section {
- position: relative;
- }
- .cart-icon {
- width: 34px;
- cursor: pointer;
- }
- #cartIconEl {
- border-radius: 50%;
- background-color: white;
- color: black;
- padding: 1px 6px;
- font-size: 14px;
- position: absolute;
- transform: translate(-12px, 19px);
- }
- .login-block button:first-child {
- margin-right: 8px;
- }
- .good-cart .image-container {
- cursor: pointer;
- }
- .image-container {
- width: 200px;
- height: 200px;
- }
- .icon-container {
- width: 20px;
- text-align: center;
- height: 20px;
- padding: 0;
- border: none;
- background: none;
- cursor: pointer;
- }
- .count-container {
- display: flex;
- justify-content: flex-end;
- }
- .count-container > * {
- margin: 8px;
- }
- .count-container input,
- .good-cart input,
- .good-section input {
- max-width: 50px;
- width: 100%;
- text-align: center;
- padding: 4px 0;
- }
- input[type='number']::-webkit-outer-spin-button,
- input[type='number']::-webkit-inner-spin-button {
- -webkit-appearance: none;
- }
- .error {
- position: absolute;
- top: 10px;
- right: 10px;
- background-color: #ecb3b3;
- border: 1px solid #eb5858;
- padding: 10px 15px;
- }
- .icon-container img {
- width: 100%;
- height: 100%;
- }
- .banner-image {
- width: 80%;
- }
- .good-image {
- width: 100%;
- height: 100%;
- object-fit: contain;
- }
- .info-about-category > * {
- margin: 0 8px;
- font-weight: 300;
- }
- .link-style {
- color: rgb(18, 139, 199);
- }
- .link-style:hover {
- color: rgb(255, 42, 42);
- transition: color 0.3s;
- }
- .goods-container {
- display: flex;
- flex-wrap: wrap;
- justify-content: center;
- gap: 24px 12px;
- margin-top: 20px;
- }
- .good-cart {
- flex-basis: 270px;
- border-radius: 16px;
- padding: 16px;
- position: relative;
- box-shadow: 0px 0px 13px -8px rgba(66, 68, 90, 1);
- display: flex;
- flex-direction: column;
- align-items: center;
- }
- .good-cart > * {
- margin: 6px;
- }
- .good-cart > a {
- text-decoration: none;
- text-align: center;
- color: rgba(66, 68, 90, 1);
- font-weight: 300;
- line-height: 20px;
- height: 40px;
- }
- .price {
- font-size: 18px;
- font-weight: 500;
- color: rgb(15, 29, 67);
- }
- .button {
- border: none;
- color: #fff;
- background-color: rgb(22, 29, 168);
- padding: 8px 10px;
- border-radius: 6px;
- max-width: 140px;
- width: 100%;
- font-size: 16px;
- }
- .button:hover {
- color: rgb(233, 233, 73);
- }
- .title {
- font-size: 32px;
- text-align: center;
- font-weight: 300;
- margin: 20px 0;
- }
- .goods-out-stock,
- .cart-is-empty {
- font-size: 24px;
- text-align: center;
- font-weight: 300;
- margin: 20px 0;
- }
- .good-section {
- display: flex;
- margin: 20px 0;
- }
- .good-section > * {
- width: 50%;
- }
- .good-section .image-container {
- width: 100%;
- max-height: 400px;
- height: 100%;
- }
- .good-info {
- padding: 20px;
- display: flex;
- flex-direction: column;
- align-items: center;
- }
- .good-info input {
- margin: 20px 0;
- }
- .good-info .buttons-container {
- text-align: center;
- }
- .good-info .buttons-container :first-child {
- margin-bottom: 20px;
- }
- .description {
- font-weight: 300;
- margin-bottom: 20px;
- }
- .order-container {
- border-radius: 10px;
- box-shadow: 0px 0px 23px -8px rgb(155, 157, 176);
- padding: 20px;
- margin: 20px 0;
- font-weight: 300;
- }
- .order-container > * {
- margin: 3px 0;
- }
- .total-amount {
- text-align: end;
- }
- .order-button {
- margin-top: 20px;
- float: right;
- }
- .form {
- border: 1px solid gray;
- display: flex;
- flex-direction: column;
- align-items: center;
- border-radius: 10px;
- max-width: 300px;
- width: 100%;
- margin: 100px auto 0;
- padding: 20px;
- }
- .form > * {
- margin: 4px;
- }
- .warning-message {
- margin-top: 70px;
- display: none;
- font-style: italic;
- }
|