@font-face {
  font-family: "Arial-MT";
  src: url("../fonts/ari.ttf") format("truetype");
}

/* General Styles */

html {
  font-size: 16px;
}

body {
  font-family: "Arial-MT", sans-serif;
  color: hsla(0, 0%, 29%, 1);
  width: 100%;
}

a {
  text-decoration: none;
}

input,
textarea,
select {
  border-radius: 3px;
  background-color: hsla(0, 0%, 89%, 1);
  padding: 1rem;
}

/* Image Container */

.image-container {
  overflow: hidden;
  border-bottom: 10px solid white;
  transition: ease-in-out 0.3s;
}
.image-container:hover {
  border-bottom: 10px solid #b7d2e2;
}

.image-container img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 2px;
}
.shopping-button,
.button {
  color: white;
  font-family: "Roboto Condensed", sans-serif;
  font-size: 20px;
  text-align: center;
  background-color: #307397;
  padding: 10px 30px 10px 30px;
  border-radius: 5px;
  transition: ease-in-out 0.3s;
}
.shopping-button:hover,
.button:hover {
  background-color: #3d90bd;
  color: white;
  cursor: pointer;
}

.product-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 3.75rem;
}

.product-category {
  background-color: hsla(0, 0%, 100%, 1);
  margin: 0 12px 0 12px;
}

.product-category .description-category {
  padding: 1.5rem;
  text-align: left;
}

.product-category h3 {
  margin-bottom: 0.75rem;
  color: hsla(0, 0%, 29%, 1);
}

.product-item {
  border-radius: 2px;
  background-color: hsla(0, 0%, 100%, 1);
  margin: 12px 12px 0 12px;
  text-align: center;
}

.product-item:hover > .image-container {
  border-bottom: 10px solid #b7d2e2;
}

.product-item h3 {
  color: hsla(0, 0%, 29%, 1);
  position: relative;
  display: block;
  font-size: 24px;
}

.product-item .price {
  color: hsla(0, 0%, 29%, 1);
  font-size: 18px;
  text-align: center;
}

/* Reusable Component - Form Field With Label */
.field {
  display: flex;
  flex-direction: column;
}

.field label {
  padding-bottom: 0.15rem;
}

/* Reusable Component - Navigation Breadcrumbs */
ul.breadcrumb {
  padding: 15px 0;
  list-style: none;
  align-items: left;
}
ul.breadcrumb li {
  display: inline;
  font-size: inherit;
  align-items: left;
}
ul.breadcrumb li + li:before {
  padding: 2rem;
  color: hsla(0, 0%, 29%, 1);
  content: "/\00a0";
}
ul.breadcrumb li a {
  color: #3d90bd;
  text-decoration: none;
}

@media only screen and (max-width: 1100px) {
  .product-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media only screen and (max-width: 680px) {
  .product-list {
    grid-template-columns: 1fr;
  }
}

/* Site-Wide Grid */

.container {
  display: grid;
  grid-template-areas:
    "header"
    "footer";
}

/* Header */

header {
  padding: 20px 50px;

  grid-area: header;
  display: grid;
  grid-template-columns: 22rem 1fr 22rem;
  align-items: center;
  font-size: inherit;
  background-color: hsla(0, 0%, 93%, 1);
}

.search-bar {
  display: flex;
  border-radius: 33px 53px 33px 53px;
  width: 100%;
}

.search-bar input {
  flex-grow: 1;
  border-top-right-radius: 0;
  border-top-left-radius: 30px;
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 30px;
}

.search-bar .icon {
  background-color: hsla(0, 0%, 89%, 1);
  border-radius: 0 53px 53px 0;
  padding: 1rem;
}

.search-bar .icon img {
  vertical-align: middle;
}

.cart {
  justify-self: end;
  display: flex;
  align-items: center;
  padding: 0.875rem 1rem;
  border-radius: 54px;
  background-color: black;
  color: white;
}

.cart img {
  padding-left: 0.625rem;
}

nav {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  background-color: hsla(0, 0%, 93%, 1);
  border-top: 1px solid hsla(0, 0%, 85%, 1);
  padding: 20px 0 20px 0;
}
nav li {
  padding: 20px;
  list-style: none;
  display: inline;
  color: black;
}
nav li:hover {
  color: #28475c;
  font-weight: bold;
}
nav a:visted {
  color: hsla(0, 0%, 29%, 1);
}

@media only screen and (max-width: 1100px) {
  header {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .cart {
    justify-self: auto;
  }
}

/* Footer */

footer {
  grid-area: footer;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 1.5rem;
  background-color: hsla(0, 100%, 100%, 1);
}

footer img {
  align-self: center;
  justify-self: center;
}

footer .links {
  display: grid;
}

footer {
  text-align: left;
  background-color: #ededed;
}

.footer-link {
  color: #3d90bd;
  font-family: "Roboto Condensed", sans-serif;
  font-size: 18px;
}

.footer-link:hover {
  color: #63a6ca;
}

.footer-logo {
  width: 50%;
}

@media only screen and (max-width: 810px) {
  footer {
    grid-template-columns: repeat(3, 1fr);
  }

  footer img {
    grid-column: 1 / span 3;
  }
}

@media only screen and (max-width: 490px) {
  footer {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  footer img {
    grid-column: auto;
  }
}
