* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  font-size: 15px;
  line-height: 160%;
  margin: 0;
  padding: 0;
  background-color: #eef7fa;
}

a {
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

.page_title {
  margin: 0;
  padding: 20px 0;
  text-transform: uppercase;
  display: inline-block;
  padding-right: 120px;
  font-size: 32px;
  color: #272343;
  font-weight: 900;
}
.page_title span {
  font-size: 70px;
  padding-left: 5px;
  color: #e63946;
}

.wrapper {
  margin: 0 auto;
  max-width: 1280px;
}

.header_container {
  flex-wrap: wrap;
  padding: 0 20px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 100px;
}

.main_page_container {
  display: none;
  grid-template-columns: repeat(3, auto);
  max-width: 1280px;
  margin: 0 auto;
}

.cart_page_container {
  display: none;
  grid-template-columns: repeat(3, auto);
  max-width: 1280px;
  margin: 0 auto;
}

.form_container {
  display: none;
  max-width: 1280px;
  margin: 0 auto;
}

.submit_message {
  display: none;
  max-width: 1280px;
  margin: 0 auto;
}

.empty_cart {
  display: none;
  justify-content: center;
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
}

.container-show-grid {
  display: grid;
}

.container-show-flex {
  display: flex;
}

.book_card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin: 30px 25px;
  padding: 15px;
  text-align: center;
  font-weight: 400;
  max-width: 300px;
  box-shadow: 7px 7px 1px 1px #b2b2b2;
  border-radius: 10px;
  background-color: white;
}
.book_card img {
  width: 100%;
  display: block;
  padding-bottom: 20px;
  filter: grayscale(1);
}
.book_card .author {
  text-transform: uppercase;
  padding: 5px;
  margin: 0;
}
.book_card .title {
  padding-top: 10px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 5px;
  margin: 0;
  color: #1d3557;
}
.book_card .price {
  font-weight: 700;
  text-transform: uppercase;
  padding: 5px;
  margin: 0;
  font-size: 24px;
  color: #e63946;
}
.book_card:hover {
  box-shadow: 7px 7px 1px 1px #457b9d;
}
.book_card:hover img {
  filter: grayscale(0);
}

.header_buttons {
  display: flex;
  flex-wrap: wrap;
  padding: 10px 10px;
  gap: 15px;
  justify-content: center;
  transition: 0.5s ease;
}
.header_buttons .navigation__button {
  min-height: 44px;
  background-color: rgba(0, 0, 0, 0);
  border: 2px solid #272343;
  color: #272343;
  font-size: 16px;
  letter-spacing: 0.06em;
  padding: 10px 7px 10px 7px;
  border-radius: 8px;
  display: inline-block;
  cursor: pointer;
}
.header_buttons .navigation__button:hover {
  border: 2px solid #457b9d;
  color: #1d3557;
  background-color: #a8dadc;
}

.card_buttons {
  display: flex;
  padding: 10px 10px;
  gap: 15px;
  justify-content: center;
  transition: 0.5s ease;
}
.card_buttons .item__button {
  min-height: 44px;
  background-color: rgba(0, 0, 0, 0);
  border: 2px solid #545454;
  color: #292929;
  font-size: 12px;
  letter-spacing: 0.06em;
  padding: 10px 7px 10px 7px;
  border-radius: 8px;
  display: inline-block;
  cursor: pointer;
}
.card_buttons .add_cart,
.card_buttons .delete_book {
  font-weight: 700;
  background-color: #cdcdcd;
  display: flex;
  align-items: center;
}
.card_buttons .add_cart:hover,
.card_buttons .delete_book:hover {
  background-color: #a8dadc;
  border: 2px solid #457b9d;
}
.card_buttons .add_cart:hover i,
.card_buttons .delete_book:hover i {
  color: #e63946;
}
.card_buttons .added_cart {
  border: 2px solid #b2b2b2;
  color: #b2b2b2;
}
.card_buttons .learn:hover {
  font-weight: 700;
  border: 2px solid #e63946;
}
.card_buttons i {
  font-size: 20px;
  align-items: center;
  padding-left: 6px;
}
.card_buttons .added_cart {
  cursor: auto;
}

.modal_container {
  transition: 0.5s ease;
  position: fixed;
  display: none;
  width: 100%;
  height: 100%;
  background: rgba(29, 53, 87, 0.9);
  z-index: 999;
}

.popup_card {
  z-index: 1;
  position: fixed;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 900px;
  min-height: 450px;
  background-color: #ffffff;
  padding: 30px;
  box-shadow: 7px 7px 1px 1px #b2b2b2;
  border-radius: 10px;
  font-size: 18px;
}
.popup_card:hover {
  box-shadow: 7px 7px 1px 1px #457b9d;
}
.popup_card .author {
  text-transform: uppercase;
  padding: 20px 5px;
  margin: 0;
}
.popup_card .title {
  font-weight: 700;
  text-transform: uppercase;
  padding: 20px 5px;
  margin: 0;
  color: #1d3557;
}
.popup_card .close {
  background-color: rgba(0, 0, 0, 0);
  border: 2px solid #545454;
  color: #292929;
  font-size: 15px;
  letter-spacing: 0.06em;
  padding: 10px 7px 10px 7px;
  border-radius: 10px;
  display: inline-block;
  cursor: pointer;
  font-size: 16px;
}
.popup_card .close:hover {
  background-color: #a8dadc;
  border: 2px solid #e63946;
}

.footer_container {
  display: flex;
  gap: 15px;
  align-items: center;
  justify-content: center;
  min-height: 100px;
  font-size: 16px;
  color: #1d3557;
}
.footer_container a {
  color: #1d3557;
}

.total_price {
  margin-right: 120px;
  font-weight: 700;
}

.cart_items {
  z-index: 100;
  display: flex;
  align-items: center;
  padding: 10px 10px;
  gap: 15px;
  justify-content: flex-end;
  font-size: 22px;
  font-weight: 700;
}
.cart_items .total_price,
.cart_items .main_cart {
  border: none;
  background-color: rgba(0, 0, 0, 0);
  color: #272343;
}
.cart_items .total_price_count {
  color: #457b9d;
}

.main_cart {
  font-weight: 700;
  position: fixed;
  font-size: 22px;
  display: flex;
  align-items: center;
  cursor: pointer;
}
.main_cart .bx {
  font-size: 54px;
  color: #272343;
}
.main_cart .bx:hover {
  color: #e63946;
}

.books_for_order {
  color: #457b9d;
}

.empty {
  font-size: 24px;
  font-weight: 700;
  padding: 100px;
  border-radius: 10px;
  color: #e63946;
  margin-bottom: 50px;
}

/* width */
::-webkit-scrollbar {
  width: 5px;
}

/* Track */
::-webkit-scrollbar-track {
  background: #eef7fa;
}

/* Handle */
::-webkit-scrollbar-thumb {
  background: #e63946;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: #1d3557;
}

[draggable=true] {
  cursor: move;
}

.ordered_cart {
  background-color: #fffffe;
  padding: 30px 50px;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  font-size: 16px;
}

.confirm_form {
  background-color: #fffffe;
  padding: 30px 50px;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
}
.confirm_form h2 {
  margin: 0;
  padding: 0;
  padding-bottom: 10px;
  font-weight: 700;
  text-align: center;
  font-size: 22px;
  color: #1d3557;
}

.form-fieldset {
  padding: 0 20px;
  border: 2px solid #e63946;
  border-radius: 10px;
  margin-bottom: 20px;
  font-size: 16px;
  padding-bottom: 10px;
}
.form-fieldset .legend-title {
  font-weight: 700;
  margin: 0 auto;
  font-size: 22px;
  padding: 10px;
  color: #1d3557;
}
.form-fieldset .form-field {
  display: flex;
  justify-content: space-between;
  flex-direction: column;
  padding: 5px 0;
}
.form-fieldset .form-field input {
  margin: 5px 0;
  padding: 5px 10px;
  border-radius: 5px;
  border: none;
  outline: 2px solid #457b9d;
}
.form-fieldset .form-field input:focus {
  outline: 2px solid #457b9d;
  background-color: #eef7fa;
}
.form-fieldset .form-field input:invalid {
  outline: 2px solid #e63946;
  background-color: #f6f6f6;
}
.form-fieldset .form-field span {
  font-size: 14px;
}
.form-fieldset .form-invalid {
  color: #e63946;
  margin: 0;
  text-align: left;
}
.form-fieldset .form-item {
  padding: 5px 0;
}

.radio-field {
  padding: 10px 20px;
}
.radio-field label {
  padding-left: 15px;
}

.gifts-field {
  padding: 10px 20px;
}
.gifts-field label {
  padding-left: 15px;
}

.submit_button {
  min-height: 44px;
  background-color: rgba(0, 0, 0, 0);
  border: 2px solid #457b9d;
  color: #1d3557;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 10px 7px 10px 7px;
  border-radius: 8px;
  display: inline-block;
  cursor: pointer;
  margin-top: 10px;
  align-self: center;
  justify-content: center;
}
.submit_button:hover {
  background-color: #a8dadc;
}
.submit_button:disabled {
  border: 2px solid #b2b2b2;
  background-color: #fafafa;
  color: #b2b2b2;
  cursor: auto;
}

.form-item label {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

.filter-input-radio + label::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 2px;
  width: 16px;
  height: 16px;
  border: 2px solid #1d3557;
  border-radius: 50%;
}

.filter-input-radio:checked + label::after {
  content: "";
  position: absolute;
  top: 7px;
  left: -5px;
  width: 10px;
  height: 10px;
  background-color: #457b9d;
  border-radius: 50%;
}

.filter-input-checkbox + label:before {
  content: "";
  position: absolute;
  left: -10px;
  top: 2px;
  width: 16px;
  height: 16px;
  border: 2px solid #1d3557;
  border-radius: 4px;
}
.filter-input-checkbox + label:before.checkbox-hide {
  border: 2px solid #e63946;
}

.filter-input-checkbox:checked + label:after {
  content: "";
  position: absolute;
  top: 7px;
  left: -5px;
  width: 10px;
  height: 10px;
  background-color: #457b9d;
  border-radius: 1px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  border: 0;
  padding: 0;
  white-space: nowrap;
  -webkit-clip-path: inset(100%);
  clip-path: inset(100%);
  clip: rect(0 0 0 0);
  overflow: hidden;
}

.book_overlay {
  background: rgba(255, 255, 255, 0.9);
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  transform: translateY(-500px);
  opacity: 0;
  display: flex;
  flex-flow: column wrap;
  justify-content: center;
  align-items: center;
}
.book_overlay h2 {
  color: rgba(43, 45, 66, 0.7);
  font-size: 1.2em;
  margin: 1em 0;
}

@media only screen and (max-width: 1000px) {
  .main_page_container,
.cart_page_container {
    max-width: 1000px;
    grid-template-columns: repeat(2, auto);
  }
}
@media only screen and (max-width: 650px) {
  .main_page_container,
.cart_page_container {
    max-width: 650px;
    grid-template-columns: repeat(1, auto);
  }
  .confirm_form {
    padding: 20px 10px;
    margin: 10px;
  }
  .cart_items {
    flex-grow: 1;
  }
  .popup_card {
    padding: 10px;
    min-width: 300px;
  }
  .popup_card .author,
.popup_card .title {
    padding: 5px;
    text-align: center;
  }
  .popup_card .description {
    font-size: 14px;
  }
}/*# sourceMappingURL=style.css.map */