body {
  margin: 0;
  background-color: #f7f7f7;
  font-family: 'Roboto', sans-serif, 'Arial';
}
.content {
  display: grid;
  margin: 0px;
  height: 100vh;
  grid-template-columns: 1.2fr 1fr 1fr 1fr 1fr;
  grid-template-rows: 0.9fr 2fr 5fr 1.2fr;
  grid-template-areas:
    "nav nav nav nav nav"
    "sideBar searchBar searchBar searchBar searchBar"
    "sideBar results results results results"
    "footer footer footer footer footer";
}
.sideBar {
  background-color: rgb(226, 231, 236);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
  border-radius: 0.3rem;
  padding: 1rem 2rem;
  grid-area: sideBar;
  margin: 15px;
}

.searchBar {
  background-color: #e9ecef;
  grid-area: searchBar;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
  border-radius: 0.3rem;
  padding: 1rem 2rem;
  margin: 15px;
}
.results {
  margin: 15px;
  grid-area: results;
  display: flex;
  flex-wrap: wrap;
  background-color: #f7f7f7;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
  border-radius: 0.3rem;
  padding: 1.5rem 2rem;
}

.footer {
  text-align: center;
  grid-area: footer;
  border-radius: 0.3rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
  background-color: rgb(235, 226, 226);
  margin: 15px;
}

/* ---------------------------------- */
/* carrito.html layout */

.shoppingInfo {
  background-color: #e9ecef;
  grid-area: shoppingInfo;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
  border-radius: 0.3rem;
  padding: 1rem 2rem;
  margin: 15px;
}

.cart {
  margin: 15px;
  grid-area: results;
  background-color: #f7f7f7;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
  border-radius: 0.3rem;
  padding: 1.5rem 2rem;
}

.cartContent {
  display: grid;
  margin: 0px;
  height: 100vh;
  grid-template-columns: 1.2fr 1fr 1fr 1fr 1fr;
  grid-template-rows: 0.9fr 2fr 5fr 1.2fr;
  grid-template-areas:
    "nav nav nav nav nav"
    "shoppingInfo shoppingInfo shoppingInfo shoppingInfo shoppingInfo"
    "results results results results results"
    "footer footer footer footer footer";
}

/* ---------------------------------- */

/* Adds a black background color to the top navigation */
.menu {
  background-color: #333;
  grid-area: nav;
  padding: 10px 20px 10px 30px;
}

/* Style the links inside the navigation bar */
.menu a {
  float: left;
  display: block;
  color: #f0ad4e;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
  font-size: 20px;
}
.menu .logo {
  float: left;
  font-size: x-large;
  font-weight: bold;
}
.menu .logo:hover {
  background-color: transparent;
  color: #bcc90e;
  text-decoration: none;
}
.menu .item {
  float: right;
}
/* Change the color of links on hover */
.menu a:hover {
  color: #cf0f0f;
  text-decoration: underline;
}

/* Add an active class to highlight the current page */
.menu a.active {
  text-decoration: underline;
}

/* Hide the link that should open and close the menu on small screens */
.menu .toggler {
  display: none;
}

/* Badge for cart item count */
#cartLength {
  background-color: #f7f7f7;
  text-decoration: underline #f7f7f7;
  color: black;
  padding: 1px 7px;
  margin-left: 3px;
  border-radius: 50%;
}
#cartLength:hover {
  text-decoration: underline #f7f7f7;
  background-color: #f7f7f7;
  color: black;
  padding: 1px 7px;
  margin-left: 3px;
  border-radius: 50%;
}
/* Scroller design */
body *::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}
body *::-webkit-scrollbar-thumb {
  background: #bd8f06;
  border-radius: 15px;
}
body *::-webkit-scrollbar-thumb:hover {
  background: #d9534f;
}
body *::-webkit-scrollbar-track {
  background: #ffffff;
  border-radius: 15px;
  box-shadow: inset 7px 10px 12px #f0f0f0;
}
.muted {
  color: gray;
  font-size: small;
}

/* Shopping Cart Table design */
table{
  width:100%;
}
table,
th,
td {
  border: 1px solid black;
  border-collapse: collapse;

  font-size: 20px;
}
tbody {
  text-align: center;
}
td,
th {
  padding: 0.5rem 1rem;
}

.add {
  color: #fff;
  background-color: #5cb85c;
  border-color: #4cae4c;
}

.quit {
  color: #fff;
  background-color: #d9534f;
  border-color: #d43f3a;
}

/* Cards style */
.card {
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
  background-color: rgb(230, 229, 199);
  max-width: 300px;
  margin: auto;
  text-align: center;
  font-family: arial;
  margin: 15px;
  border-radius: 0.3rem;
}

.price {
  color: grey;
  font-size: 22px;
}

.card button {
  border: none;
  padding: 12px;
  color: white;
  background-color: rgb(226, 139, 7);
  text-align: center;
  cursor: pointer;
  width: 100%;
  font-size: 18px;
}

.card img {
  border-top-left-radius: 0.3rem;
  border-top-right-radius: 0.3rem;
}
.card button:hover {
  opacity: 0.7;
}

.cartButton {
  margin-top: 1rem;
}

@media only screen and (max-width: 550px) {
  .content {
    grid-template-columns: 1fr;
    grid-template-rows: 0.7fr 2fr 1.5fr 4fr 0.8fr;
    grid-template-areas:
      "nav"
      "sideBar"
      "searchBar"
      "results"
      "footer";
  }

  .results {
    grid-template-columns: 1fr;
    grid-template-rows: 1.5fr 1.5fr 1.5fr 1.5fr 1.5fr 1.5fr 1.5fr1.5fr 1.5fr 1.5fr 1.5fr 1.5fr 1.5fr;
  }
  .menu a:not(:first-child) {
    display: none;
  }
  .menu a.toggler {
    float: right;
    display: block;
  }
  .menu.responsive {
    position: relative;
  }
  .menu.responsive a.toggler {
    position: absolute;
    right: 0;
    top: 0;
  }
  .menu.responsive a {
    float: none;
    display: block;
    text-align: left;
  }
  td,
th {
  padding: 10px;
}
}
