@import url("https://fonts.googleapis.com/css2?family=Nova+Square&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Nova+Slim&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Nova+Flat&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Nova+Round&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Nova+Round&family=Offside&display=swap");

* {
  padding: 0;
  margin: 0;
  scroll-behavior: smooth;
}

:root {
  --fSquare: "Nova Square", sans-serif;
  --fSlim: "Nova Slim", system-ui;
  --fFlat: "Nova Flat", system-ui;
  --fRound: "Nova Round", system-ui;
  --fOffside: "Offside", sans-serif;

  --cMain: #298598;
  --cBlue: #0a192f;
  --cSilver: #a8b2d1;
  --cPink: #ff3366;
  --cWhite: #f5f5f5;
}

/* =========================MAIN========================= */

main {
  width: 80%;
  margin: 0 auto;
  margin-top: 6%;
  min-height: 70vh;
}

main .proggressBtns {
  display: flex;
  justify-content: space-between;
  width: 60%;
  margin: 0 auto;
  margin-top: 5%;
  margin-bottom: 5%;
}

main .proggressBtns div {
  display: flex;
  flex-direction: column;
  width: fit-content;
  gap: 10px;
}
main .proggressBtns button {
  border: none;
  font-size: 1.7rem;
  cursor: pointer;
  width: fit-content;
  margin: 0 auto;
}
main .proggressBtns a {
  font-family: var(--fSlim);
  font-size: 1.5rem;
  color: var(--cBlue);
  text-decoration: none;
}

main .proggressBtns .cartBtn button {
  color: var(--cMain);
}
main .proggressBtns .checkoutBtn button,
main .proggressBtns .confirmationBtn button {
  color: var(--cSilver);
}

main .proggressBtns .progressLine1,
main .proggressBtns .progressLine2 {
  flex-grow: 1;
  height: 2px;
  background-color: var(--cSilver);
  margin-top: 1.5%;
}

main header {
  display: flex;
  justify-content: space-between;
  align-content: center;
}
main header h1 {
  font-family: var(--fSquare);
  font-size: 3rem;
  color: var(--cBlue);
  margin-bottom: 5%;
}
main header a {
  font-family: var(--fOffside);
  color: var(--cBlue);
  text-decoration: none;
  height: fit-content;
  position: relative;
}
main header a:after {
  position: absolute;
  content: "";
  height: 1px;
  width: 87%;
  background-color: var(--cBlue);
  left: 13%;
  bottom: -2px;
  opacity: 0;
}
main header a:hover:after {
  opacity: 1;
}
main header a i {
  color: var(--cPink);
}
.emptyCart {
  margin-top: 5%;
  font-family: var(--fRound);
  color: var(--cSilver);
  display: flex;
  justify-content: center;
}
.emptyCart h1 {
  width: fit-content;
}
.textAnimated {
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  animation: typing 2s steps(1000);
  user-select: none;
}
.emptyCart i {
  animation: cartMoving 3s forwards ease;
  color: var(--cPink);
  font-size: 1.7rem;
  margin-top: 5px;
  background-color: transparent;
}
.hiddenStartingMessage {
  display: none;
}

@keyframes cartMoving {
  0% {
    transform: translateX(-20px);
  }
  100% {
    transform: translateX(-1px);
  }
}
@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 15%;
  }
}

.cartItem {
  display: flex;
  justify-content: space-between;
  margin-bottom: 3%;
}
.product {
  display: flex;
  align-items: center;
  gap: 10px;
}
.productImage {
  cursor: pointer;
}
.image {
  height: 130px;
  width: 130px;
  background-color: red;
}
.productTitle {
  font-family: var(--fRound);
  font-size: 1.8rem;
  color: var(--cBlue);
}
.colorAndSize {
  display: flex;
  gap: 20px;
  font-family: var(--fRound);
  color: var(--cBlue);
}

.price {
  font-family: var(--fRound);
  font-size: 1.5rem;
  color: var(--cBlue);
}
.quantity {
  display: flex;
  gap: 10px;
  align-items: center;
}
article {
  display: flex;
  /* gap: 20px; */
  align-items: center;
}
.cartProductTotal .total {
  font-family: var(--fRound);
  font-size: 1.5rem;
}
.removeItemFromCart .removeItem {
  font-size: 1.45rem;
  color: var(--cSilver);
  cursor: pointer;
}

.quantity input {
  font-family: var(--fOffside);
  font-size: 1.2rem;
  padding: 5px;
  width: 25px;
  outline: none;
  border: 2px solid var(--cSilver);
  border-radius: 6px;
}
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
/* input[type="number"] {
  -moz-appearance: textfield;
} */
input[type="number"] {
  appearance: textfield;
}

.quantity .decreseQty,
.quantity .increseQty {
  width: 30px;
  height: 30px;
  background-color: var(--cSilver);
  position: relative;
  border-radius: 6px;
  cursor: pointer;
}
.quantity .decreseQty .line,
.quantity .increseQty .cross1,
.quantity .increseQty .cross2 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50%;
  height: 2px;
  background-color: var(--cBlue);
}
.quantity .increseQty .cross2 {
  height: 50%;
  width: 1px;
}

.widthRestricted {
  display: flex;
  width: 40%;
  justify-content: space-between;
}
.cartProductPrice,
.cartProductTotal,
.cartProductQuantity,
.removeItemFromCart {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.cartProductPrice span,
.cartProductTotal span,
.cartProductQuantity span,
.removeItemFromCart span {
  font-family: var(--fFlat);
}

.cartHaveItemsButton {
  width: 100%;
  display: flex;
  justify-content: end;
}
.cartHaveItemsButton button {
  background-color: var(--cPink);
  color: var(--cWhite);
  font-size: 1.4rem;
  font-family: var(--fOffside);
  border: none;
  border-radius: 0.5em;
  padding: 0.2em 1em;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 5%;
  letter-spacing: -1px;
}
.cartHaveItemsButton button:hover {
  color: var(--cMain);
}

.hiddenCheckoutBlock {
  display: none;
}

/* --------------------RESPONSIVE-------------------- */
@media (max-width: 1400px) {
  main {
    width: 95%;
  }
  main .proggressBtns {
    width: 80%;
  }
}

@media (max-width: 1124px) {
  .cartItem {
    flex-direction: column;
    gap: 30px;
    margin-bottom: 15%;
    padding: 10px;
    background-color: rgb(233, 233, 233);
    border-radius: 16px;
  }
  .image {
    border-top-left-radius: 6px;
  }
  article {
    gap: 10px;
  }
  .widthRestricted {
    display: flex;
    width: 100%;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: space-between;
  }
}

@media (max-width: 1024px) {
  main .proggressBtns {
    width: 95%;
    margin-bottom: 10%;
    margin-top: 10%;
  }
}

@media (max-width: 768px) {
  main .proggressBtns a {
    display: none;
  }
  main .proggressBtns button {
    margin: 0 30px;
  }
}

@media (max-width: 500px) {
  main header {
    flex-direction: column;
    align-items: center;
    margin-bottom: 10%;
  }
  .product {
    flex-direction: column;
  }
  main .proggressBtns button {
    margin: 0 20px;
  }
  main .proggressBtns .progressLine1,
  main .proggressBtns .progressLine2 {
    margin-top: 3%;
  }
}

@media (max-width: 400px) {
  .colorAndSize {
    flex-direction: column;
  }
  main .proggressBtns .progressLine1,
  main .proggressBtns .progressLine2 {
    margin-top: 3.5%;
  }
}
