@import url("https://fonts.googleapis.com/css2?family=Amatic+SC:wght@700&family=Roboto:ital@0;1&display=swap");
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

html {
  background-color: #9baee8;
  width: 100%;
  height: 100%;
  display: flex;
  padding: 50px;
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  color: #393a3e;
}

body {
  margin: auto;
}

.box {
  padding: 15px;
  border-radius: 4px;
  background-color: white;
}

#header {
  display: flex;
  align-items: baseline;
  margin-bottom: 15px;
}
#header h1 {
  margin-right: auto;
  font-size: 3em;
  font-family: "Amatic SC", cursive;
  color: white;
}
#header #basketPreview, #header #actions > span {
  margin-left: 15px;
  transition: all 0.2s ease-in-out;
  background-color: rgba(255, 255, 255, 0.5);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 1.1em;
  font-weight: 600;
}
#header #basketPreview:hover, #header #basketPreview:focus, #header #actions > span:hover, #header #actions > span:focus {
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.7);
}
#header #basketPreview {
  display: flex;
  align-items: center;
}
#header #basketPreview span {
  margin-left: 4px;
}
#header #actions > span {
  margin-left: 10px;
}
#header #actions > span:last-child {
  color: #ca3030;
}

#productView #infoSheet {
  flex: 1;
  margin-bottom: 15px;
  display: flex;
}
#productView #infoSheet img {
  max-width: 200px;
  margin: 15px 0;
}
#productView #infoSheet #info {
  padding: 15px;
  text-align: center;
}
#productView #infoSheet #info h2, #productView #infoSheet #info h3 {
  font-weight: normal;
}
#productView #infoSheet #info h3 {
  font-style: italic;
  opacity: 0.5;
}
#productView #infoSheet #info p {
  max-width: 300px;
  margin: 15px 0;
}
#productView #infoSheet #info button {
  border: 0;
  padding: 2px 10px;
  border-radius: 4px;
  transition: all 0.1s ease-in-out;
}
#productView #infoSheet #info button:not(:disabled):hover, #productView #infoSheet #info button:not(:disabled):focus {
  cursor: pointer;
  background-color: rgba(155, 174, 232, 0.6);
}
#productView #infoSheet #info button, #productView #infoSheet #info button:active {
  background-color: rgba(155, 174, 232, 0.4);
}
#productView #infoSheet #info button:active {
  transition: none;
}
#productView #infoSheet #info button:disabled {
  opacity: 0.5;
}
#productView #infoSheet #info span {
  font-weight: 600;
  margin: 0 5px;
}
#productView #plantList {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-gap: 15px;
  align-items: flex-start;
}
#productView #plantList .box {
  padding: 15px;
  text-align: center;
  border: 2px solid transparent;
  transition: all 0.2s ease-in-out;
}
#productView #plantList .box img {
  max-width: 50px;
}
#productView #plantList .box.selected, #productView #plantList .box:hover, #productView #plantList .box:focus {
  cursor: pointer;
  border-color: rgba(72, 107, 213, 0.3);
}

#basketView {
  min-width: 500px;
}
#basketView .box {
  list-style: none;
}
#basketView .box li {
  display: flex;
  align-items: center;
  padding: 10px 0;
}
#basketView .box li img {
  max-width: 30px;
  margin-right: 7px;
}
#basketView .box li .quantity {
  margin-left: auto;
  font-weight: 600;
}
#basketView .box li:first-child {
  padding-top: 0;
}
#basketView .box li:last-child {
  padding-bottom: 0;
}
#basketView .box li:not(:last-child) {
  border-bottom: 1px solid rgba(155, 174, 232, 0.5);
}
#basketView .box li.emptyBasket {
  justify-content: center;
}

@media screen and (max-width: 640px) {
  #productView #plantList {
    grid-template-columns: repeat(4, 1fr);
  }

  #basketView {
    min-width: 400px;
  }
}
@media screen and (max-width: 540px) {
  #productView #infoSheet {
    flex-direction: column;
    align-items: center;
  }
  #productView #plantList {
    grid-template-columns: repeat(3, 1fr);
  }

  #basketView {
    min-width: auto;
  }
}
@media screen and (max-width: 430px) {
  #productView #plantList {
    grid-template-columns: repeat(2, 1fr);
  }
}