@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");
@import url("https://fonts.googleapis.com/css2?family=Barlow+Semi+Condensed:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&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;
  --fBarlow: "Barlow Semi Condensed", sans-serif;

  --cMain: #298598;
  --cBlue: #0a192f;
  --cSilver: #a8b2d1;
  --cPink: #ff3366;
  --cWhite: #f5f5f5;
}

/* =========================MAIN========================= */

#cartHaveItems {
  position: fixed;
  z-index: 9998;
  bottom: 10%;
  right: 5%;
  display: flex;
  align-items: center;
  justify-content: center;
}
#cartHaveItems button {
  padding: 10px;
  font-size: 1.1rem;
  background-color: var(--cMain);
  color: var(--cWhite);
  border: none;
  border-radius: 45%;
  cursor: pointer;
  transition: all 0.3s ease;
}
#cartHaveItems button:hover {
  border-radius: 37%;
  transform: scale(1.03);
  background-color: var(--cPink);
}

main {
  display: flex;
  gap: 100px;
  width: 80%;
  margin: 0 auto;
  margin-top: 5%;
}

#imageViewer {
  display: flex;
  gap: 10px;
  width: 60%;
  margin: 0 auto;
  align-items: flex-start;
  user-select: none;
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  -webkit-user-drag: none;
}

main aside {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

main #imageViewer > img {
  height: 400px;
  object-fit: contain;
  cursor: zoom-in;
}

main aside img {
  height: 80px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border 0.3s;
}

main aside img:hover {
  border-color: #298598;
}

#productInfo {
  display: flex;
  flex-direction: column;
  gap: 35px;
}
#productInfo h1 {
  font-family: var(--fSquare);
  font-size: 4rem;
  color: var(--cBlue);
}
#productInfo span {
  font-family: var(--fOffside);
  font-size: 2rem;
  color: var(--cBlue);
}
#productInfo p {
  font-family: var(--fSlim);
  font-size: 1.25rem;
  color: var(--cBlue);
}

.quantityInput {
  padding: 0.3em;
  width: 40px;
  height: 35px;
  font-family: var(--fSquare);
  font-size: 1.5rem;
  border-radius: 16px;
  border: none;
}

#productInfo button {
  background-color: var(--cMain);
  width: fit-content;
  font-family: var(--fOffside);
  font-size: 1.2rem;
  padding: 1em 3em;
  color: var(--cBlue);
  text-decoration: none;
  border-radius: 16px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}
#productInfo button.added {
  background-color: #a8b2d1;
  transform: scale(1.05);
}

#productInfo button i {
  color: var(--cPink);
}
#productInfo button:hover {
  background-color: #3297ac;
}
#productInfo button:disabled {
  opacity: 0.8;
  cursor: not-allowed;
  background-color: #a8b2d1 !important;
  color: var(--cBlue);
}

#productInfo h6 {
  font-family: var(--fSlim);
  font-size: 1.25rem;
  color: var(--cBlue);
}
#productInfo .description {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.optionGroup input[type="radio"] {
  display: none;
}

.optionGroup label {
  display: inline-block;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  margin-right: 10px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border 0.2s ease;
}

.optionGroup.sizeOptions label {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  font-weight: bold;
  background-color: var(--cSilver);
  font-family: var(--fSlim);
  color: var(--cBlue);
}
.optionGroup {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.optionGroup input[type="radio"]:checked + label {
  border: 2.5px solid#298598;
}

@keyframes shake {
  0% {
    transform: translateX(0);
  }
  20% {
    transform: translateX(-5px);
  }
  40% {
    transform: translateX(5px);
  }
  60% {
    transform: translateX(-5px);
  }
  80% {
    transform: translateX(5px);
  }
  100% {
    transform: translateX(0);
  }
}

.shake {
  animation: shake 0.4s ease;
  border-radius: 8px;
}

/* =========================PICKS========================= */
#picks {
  width: calc(100% - 120px);
  margin: 0 auto;
  margin-top: 5%;
  margin-bottom: 10%;
}
#picks h1 {
  font-family: var(--fSquare);
  font-size: 4rem;
  color: var(--cBlue);
}

#sellCards {
  margin-top: 2%;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  position: relative;
}
#sellCards article {
  background-color: var(--cBlue);
  display: flex;
  flex-direction: column;
  flex: 1 1 100px;
  min-width: 400px;
  height: 350px;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  text-indent: 10px;
}

#sellCards article h3 {
  font-family: var(--fSquare);
  font-size: 2.25rem;
  color: var(--cWhite);
  margin-top: 10px;
  transition: all 0.2s ease;
}
#sellCards article p {
  font-family: var(--fSlim);
  font-size: 1.1rem;
  color: var(--cSilver);
}
#sellCards article img {
  width: calc(100% - 20px);
  height: 230px;
  object-fit: cover;
  position: absolute;
  top: calc(100% - 10px);
  left: 50%;
  transform: translate(-50%, -100%);
  border-radius: 6px;
  transition: all 0.4s ease;
}

#sellCards article:hover img {
  height: calc(100% - 20px);
}
#sellCards article:hover h3 {
  text-indent: 11px;
}
#sellCards article:hover a:last-of-type {
  opacity: 1;
}

#sellCards a:last-of-type {
  background-color: var(--cSilver);
  color: var(--cWhite);
  font-size: 2.5rem;
  padding: 10px;
  border-radius: 16px;
  text-indent: 0;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: all 0.4s ease;
}
