body > header {
  text-transform: uppercase;
  width: 300px;
  margin: 20px 0;
  color: var(--primary-text-color);
  text-align: center;
  font-size: 20px;
  font-weight: bold;
  position: fixed;
  top: 0;
}

body > header::after {
  content: "";
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  height: 64px;
  z-index: -1;
  background-color: var(--background-color);
}

body > main {
  margin-top: 64px;
  margin-bottom: 90px;
  padding: 0 25px;
  width: 100%;
  max-width: 550px;
  box-sizing: border-box;
}

main > a {
  color: var(--secondary-text-color);
}

main > .empty-cart.show + a {
  display: none;
}

main > .empty-cart {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 10px;
  right: 10px;
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
  display: none;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 28px;
  color: var(--primary-text-color);
}

main > .empty-cart.show {
  display: flex;
}

article {
  width: 100%;
  margin: 20px 0;
  display: grid;
  grid-template-columns: auto 100px;
  gap: 10px;
}

article header {
  color: var(--primary-text-color);
  font-size: 25px;
  min-height: 30px;
  margin-bottom: 15px;
}

article p.description {
  color: var(--secondary-text-color);
  font-size: 16px;
  margin: 0;
  margin-bottom: 8px;
}

article .row {
  display: flex;
  flex-direction: column;
}

article button {
  width: -webkit-fit-content;
  width: -moz-fit-content;
  width: fit-content;
  height: 30px;
  border: 0;
  padding: 0; 
  line-height: 30px;
  background-color: transparent;
  color: var(--red-color);
  font-size: 16px;
  box-sizing: border-box;
  outline: none;
  cursor: pointer;
}

article button:hover {
  text-decoration: underline;
}

article span {
  font-size: 16px;
  color: var(--primary-text-color);
  display: block;
  height: -webkit-fit-content;
  height: -moz-fit-content;
  height: fit-content;
}

article .image-container + span {
  white-space: nowrap;
  height: 30px;
  border: 3px solid var(--red-color);
  border-radius: 15px;
  box-sizing: border-box;
  padding: 0 6px;
  line-height: 24px;
  font-size: 16px;
  color: var(--primary-text-color);
  display: block;
  height: -webkit-fit-content;
  height: -moz-fit-content;
  height: fit-content;
}

article > .column:nth-of-type(1) {
  display: block;
}

article > .column:nth-of-type(2) {
  display: flex;
  flex-flow: column;
  align-items: center;
}

article .image-container {
  margin-top: 15px;
  margin-bottom: 15px;
  height: 85px;
  width: 85px;
  border-radius: 10px;
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
}

article a {
  display: block;
  width: 100%;
  text-align: right;
  color: var(--secondary-text-color);
  text-decoration: none;
  font-weight: bold;
  font-size: 25px;
  margin-top: -8px;
}

article a small {
  font-size: 13px;
  color: var(--secondary-text-color);
}

article:last-of-type {
  margin-bottom: 65px;
}

#quantityDialogTags {
  display: none;
}

#quantityDialog {
  display: none;
  border: none;
  padding: 0;
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  min-height: 100vh;
  background-color: transparent;
  width: unset;
  height: unset;
  z-index: 1;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#quantityDialog.show {
  display: flex;
}

#quantityDialog .wrapper {
  width: -webkit-fit-content;
  width: -moz-fit-content;
  width: fit-content;
  height: -webkit-fit-content;
  height: -moz-fit-content;
  height: fit-content;
  box-sizing: border-box;
  background-color: var(--background-color);
  box-shadow: 0px 0px 40px 40px var(--modal-background);
  -webkit-animation: fadeIn 200ms ease-in-out 0ms normal;
          animation: fadeIn 200ms ease-in-out 0ms normal;
  position: relative;
  border-radius: 16px;
  padding: 16px 32px;
  padding-top: 64px;
}

#quantityDialog .close {
  width: 32px;
  height: 32px;
  display: block;
  border: 0;
  background: 0;
  background-image: url(/img/exit.svg);
  position: absolute;
  top: 8px;
  right: 8px;
}

#quantityDialog p {
  margin: 0;
  text-align: center;
}

#quantityDialog p.number-text {
  color: var(--primary-text-color);
  margin: 8px 0 0;
}

#quantityDialog p.remove {
  color: var(--red-color);
  font-size: 15px;
  font-weight: bold;
  position: absolute;
  top: 8px;
  left: 16px;
  line-height: 32px;
  cursor: pointer;
}

#quantityDialog p.remove:hover {
  text-decoration: underline;
}

#quantityDialog .input-group {
  display: grid;
  grid-template-columns: 22px auto 27px;
  border-radius: 15px;
  border: 3px solid var(--red-color);
  position: relative;
  height: 30px;
  box-sizing: border-box;
  min-width: -webkit-fit-content;
  min-width: -moz-fit-content;
  min-width: fit-content;
  width: 150px;
}

#quantityDialog .input-group input {
  width: 100%;
  text-align: center;
  background: transparent;
  border: none;
  color: var(--primary-text-color);
  font-size: 18px;
  outline: none;
}

#quantityDialog .input-group button {
  position: absolute;
  top: -3px;
  width: 30px;
  height: 30px;
  border-radius: 15px;
  box-sizing: border-box;
  border: 3px solid var(--red-color);
  background-color: var(--red-color-alpha);
  font-size: 24px;
  color: var(--red-color);
  font-weight: bold;
  line-height: 0px;
  text-indent: -1px;
  outline: none;
  transition: all 200ms ease-in-out;
}

#quantityDialog .input-group button:hover {
  background-color: var(--red-color);
  color: var(--background-color);
}

#quantityDialog .input-group div:nth-of-type(1) button {
  left: -3px;
}

#quantityDialog .input-group div:nth-of-type(2) button {
  right: -3px;
}

body > footer {
  position: fixed;
  bottom: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  height: 150px;
  background: linear-gradient(
    180deg,
    var(--background-color-alpha) 0%,
    var(--background-color) 25%
  );
}

body > footer p.cart-total {
  color: var(--primary-text-color);
  font-size: 18px;
  font-weight: bold;
  display: none;
}

body > footer p.cart-total.show {
  display: block;
}

footer > a {
  width: calc(100% - 50px)!important;
}
