/* ============================= =================================
                          CSS VARIABLES
============================= ================================= */
:root {
  --accent: #ffca28;
  --accent-ligth: #EAF2D3;
  --dark: rgb(37, 37, 37);
  --grey: #e9e9e9;
  --white: #fff;
  --bold: 700;
  --regular: 400;
}

/* ============================= =================================
                          Fonts import
============================= ================================= */
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,400;0,700;1,400&display=swap');


/* ============================= =================================
                         Global Styles
============================= ================================= */
html,
body {
  margin: 0;
  padding: 0;
  font-size: 10px;
  font-family: 'Poppins', sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
}

a {
  color: var(--accent);
}

a:hover {
  color: inherit;
}

img {
  width: 100%;
}


/* ============================= =================================
Main Styles
============================= ================================= */
.navbar .navbar-brand {
  display: flex;
  align-content: center;
  align-items: center;
  font-size: 2rem;
  font-weight: var(--bold);
}

.nav-btns,
.navbar-brand i {
  font-size: 4rem;
}

.nav-btns a,
.navbar-brand i {
  margin-right: .4em;
}

.nav-btns {
  order: 2;
}

.nav-search {
  order: 1;
}

.nav-search {
  width: 30%;
}

.nav-search input {
  padding: .5em 2em;
  font-size: 1.4rem;
}

.price {
  font-size: 2.5rem;
}

.flex {
  width: 75%;
  display: flex;
  flex-wrap: wrap;
  gap: 1em;
  margin-top: 4em;
}

.card {
  max-width: 32%;
  max-height: 640px;
  transition: all .3s ease;
}

.card:hover {
  cursor: pointer;
  box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15);
}

.card-body {
  padding: 2em;
}

.card-title {
  font-size: 2rem;
  margin-bottom: 1em;
}

.card-text {
  font-size: 1.2rem;
  max-height: 7em;
  margin-bottom: 1em;
  overflow: hidden;
  word-wrap: break-word;
}

.card-info {
  display: flex;
  gap: 2em;
  margin-bottom: 1em;
  justify-content: flex-start;
}

.card-footer {
  border-top: 0;
  padding: 2em;
  padding-top: 0;
}

.btn-dark {
  transition: background-color .2s ease-in !important;
}

.btn-dark:hover {
  background-color: rgb(42, 42, 42) !important;
}

.sort-inputs {
  display: flex;
  justify-content: end;
  margin-top: 4em;
}

.form-floating {
  width: 20%;
  margin-right: 5.5em;
  font-size: 1.2rem;
}

.form-floating label {
  font-size: 1rem;
}

.main-content {
  display: flex;
  gap: 2em;
}

.sidebar {
  width: 20%;
  margin-top: 4em;
}

.form-check-input {
  width: 15px;
  height: 15px;
  margin-right: 1em;
}

.form-check-input:hover,
.form-check label {
  cursor: pointer;
}

.form-check-input:checked {
  background-color: rgb(0, 0, 0) !important;
}

.form-check-input:checked:focus {
  box-shadow: 0 0 0 1px #fff, 0 0 0 0.2rem rgba(0, 0, 0, 0.25)
}

.form-check-input:focus {
  box-shadow: 0 0 0 1px #fff, 0 0 0 0.2rem rgba(0, 0, 0, 0.25)
}

.form-check-input:active {
  background-color: #1b1b1b;
}

.accordion-header button {
  background-color: transparent !important;
  color: black !important;
}

.accordion-header button:after {
  color: black !important;
}

@media screen and (max-width: 1000px) {
  .flex {
    width: 70%;
    gap: 1em;
  }

  .sidebar {
    width: 30%;
  }

  .card {
    max-width: 48%;
  }

  .form-floating {
    margin-right: 1em;
    width: 50%;
  }
}

@media screen and (max-width: 765px) {
  .main-content {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
  }

  .flex {
    width: 100%;
  }

  .form-floating {
    margin-right: 0;
  }

  .card-text {
    max-height: 5em;
  }

}

@media screen and (max-width: 515px) {
  .flex {
    width: 100%;
  }

  .nav-search {
    width: 50%;
  }

  .form-floating {
    width: 100%;
  }
}

/* ============================= =================================
                          Modal window
============================= ================================= */
.modal-outer {
  display: grid;
  background: hsla(0, 0%, 18%, 0.5);
  position: fixed;
  height: 100vh;
  width: 100vw;
  top: 0;
  left: 0;
  justify-content: center;
  align-items: center;
  /* Hide this modal until we need it */
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.modal-outer img {
  width: 100%;
}

.modal-outer.open {
  opacity: 1;
  pointer-events: all;
}

.modal-inner {
  max-width: 800px;
  min-width: 400px;
  padding: 3rem;
  border-radius: 5px;
  background: white;
  transform: translateY(-200%);
  transition: transform .3s;
}

.modal-outer.open .modal-inner {
  transform: translateY(0);
}

.detailes_wrapper {
  display: flex;
  gap: 3em;
}

.detailes_content {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 50%;
  font-size: 1.4rem;
}

.detailes_content button {
  padding: 1em 0;
  font-size: 1.4rem;
}

.details_content--brand {
  font-size: 1.8rem;
  font-weight: var(--bold);
  margin-bottom: 1em;
}

.details_content--price {
  margin: 1em 0 !important;
}

.detailes_img {
  width: 50%;
}

.btn-close {
  position: absolute;
  top: -1rem;
  right: 0;
}

@media screen and (max-width: 765px) {
  .detailes_wrapper {
    flex-direction: column;
  }

  .detailes_content,
  .detailes_img {
    width: 100%;
  }

  .modal-inner {
    max-width: 450px;
    min-width: 200px;
  }

  .btn-close {
    top: -49rem;
    right: -1rem;
  }
}

.history_btn {
  transition: color .2s ease;
}

/* ============================= =================================
                          Cart
============================= ================================= */
.cart_icon {
  margin-left: 8px;
  transition: color .2s ease;
}

.history_btn:hover,
.cart_icon:hover {
  color: var(--accent);
}

.make_order {
  font-size: 1.2rem;
}

.make_order:hover,
.modal-inner .btn-cart:hover,
.card .card-footer .btn-cart:hover {
  background-color: var(--accent) !important;
  border: 1px solid var(--accent) !important;
  color: var(--dark);
}

.cart_counter {
  position: relative;
  left: 4em;
  top: 1em;
  border-radius: 50%;
  background-color: var(--accent);
  color: var(--dark);
  display: inline-block;
  width: 25px;
  height: 25px;
  font-size: 1.4rem;
  line-height: 1;
}

.form-select:focus,
.counter:focus {
  outline-offset: 0;
  outline: 0;
  box-shadow: none;
}

.form-select:focus {
  border: 1px solid #ced4da;
}

.counter {
  width: 60px;
}

.modal-top {
  justify-content: center !important;
  text-transform: uppercase;
  color: var(--dark);
  display: flex;
  padding: 1rem 1rem;
}

.cartModal .modal-inner {
  max-width: 900px;
  min-width: 600px;
}

.red {
  border: 1px solid red;
  /*background-image: linear-gradient(to right, pink, lightgreen);*/
}

/*input:valid:required {*/
/*  border: 1px solid black;*/
/*  !*background-image: linear-gradient(to right, pink, lightgreen);*!*/
/*}*/

.cartModal .modal-body {
  font-size: 1.2rem;
}

.order_btn,
.close-cart {
  font-size: 1.2rem;
}

.total-price {
  font-size: 1.4rem;
}

@media screen and (max-width: 515px) {
  .modal-iner {
    max-width: 320px;
  }

  .btn-close {
    top: -44rem;
  }

  .cartModal .modal-inner {
    max-width: auto;
    min-width: 200px;
  }
}