@import url("https://fonts.googleapis.com/css2?family=Bowlby+One&family=Quicksand:wght@300;400;500;600;700&family=Roboto+Condensed:wght@300;400;700&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Roboto Condensed", sans-serif;
}

:root {
  --third: #ffffff;
  --bg: #f8f8f8;
  --secundary: #e6e6e6;
  --shadow: 0 4px 10px #000000;
  --color-price: #333333;
  --primary: #910303;
  --color-letters: #000000;
  --socials: #486966;
}

/* ----DARKMODE---- */

body {
  transition: background-color 0.5s, color 0.5s;
}

body.dark__mode {
  --bg: #050224;
  --primary: #00aeff;
  --secundary: #0b0b16;
  --third: #020111;
  --color-price: #e1e1e9;
  --color-letters: #ffffff;
  --socials: #c43302;
}

html {
  scroll-behavior: smooth;
}

body::-webkit-scrollbar {
  -webkit-appearance: none;
  width: 10px;
}

body::-webkit-scrollbar-track {
  background-color: var(--bg);
}

body::-webkit-scrollbar-thumb {
  background-color: var(--primary);
  border-radius: 2rem;
}

.main__container {
  background-color: var(--bg);
  max-width: 100vw;
  width: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.hidden {
  overflow: hidden;
}

.container__blur {
  filter: blur(5px);
}

.container {
  display: flex;
  flex-direction: column;
  /* justify-content: center; */
  align-items: center;
  padding: 1rem;
  position: relative;
  transition: filter 0.5s;
}

.header__container {
  height: 50px;
  /* position: relative; */
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  width: 100%;
  z-index: 1000;
  transition: background-color 0.2s, box-shadow 0.2s;
}

.show__header__container {
  background-color: var(--bg);
  box-shadow: var(--shadow);
}

.nav__container {
  max-width: 1024px;
  height: 50px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
}

.logo {
  display: flex;
  gap: 0.3rem;
  color: var(--color-letters);
}

.bx {
  color: var(--primary);
}

.bxs-chevron-up-circle {
  background-color: var(--bg);
  border-radius: 50%;
}

.logo > .bx {
  transform: rotate(0deg);
  font-size: 2rem;
  transform: scaleX(-1);
}

.implements {
  display: flex;
  gap: 1rem;
  z-index: 5000;
}

.implements > .bx,
.moon__sun > .bx {
  font-size: 2rem;
  position: relative;
  cursor: pointer;
}

.cart__unit {
  background-color: var(--color-price);
  height: 15px;
  width: 15px;
  position: absolute;
  font-size: 0.8rem;
  color: var(--third);
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  top: 1.2rem;
  right: 0;
}

.bx-menu-alt-right {
  visibility: hidden;
  order: -1;
}

.menu__responsive {
  display: none;
}

/*----CARD-EXPANDS----*/

.img__expand img {
  display: block;
  height: 300px;
}

.expand {
  width: 100%;
  max-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  padding: 1rem;
  padding-top: 5rem;
}

.expand h2 {
  color: var(--primary);
  font-size: 3rem;
  font-weight: lighter;
  text-align: center;
}

.imgs__expand {
  max-width: 1024px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.img__expand {
  flex-basis: 25%;
  background-color: var(--primary);
  box-shadow: var(--shadow);
  overflow: hidden;
  border-radius: 10rem;
  transition: flex-basis 0.5s;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  cursor: pointer;
  position: relative;
}

.info__expand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  justify-content: center;
  align-items: center;
  text-align: justify;
  opacity: 0;
  position: absolute;
  transition: opacity 1s;
  padding: 2rem;
}

.info__expand:hover {
  opacity: 1;
}

.info__expand p {
  background-color: #33333379;
  padding: 1rem;
  border-radius: 1rem;
  color: #ffffff;
}

.info__expand a {
  text-decoration: none;
  background-color: var(--color-price);
  color: var(--secundary);
  font-weight: bold;
  padding: 0.5rem;
  border-radius: 1rem;
}

.img__expand:hover {
  flex-basis: 80%;
}

/*----BUTTONS-FILTER----*/

.btns__filter {
  max-width: 1024px;
  flex-wrap: wrap;

  margin: 0 auto;
  display: flex;
  justify-content: center;
  padding: 5rem 1rem 1rem 1rem;
  gap: 1rem;
}

.btn__filter,
.btn__buy {
  padding: 0.5rem;
  width: 100px;
  border: transparent solid 2px;
  background-color: var(--primary);
  color: var(--third);
  border-radius: 2rem;
  cursor: pointer;
  font-weight: bold;
  transition: border 0.2s, background-color 0.2s, color 0.2s;
}

.btn__filter:hover,
.btn__buy:hover {
  border: var(--primary) solid 2px;
  background-color: var(--secundary);
  color: var(--primary);
}

.btn__filter--active {
  border: var(--primary) solid 2px;
  background-color: var(--secundary);
  color: var(--primary);
}

/*----PRODUCTS----*/

.products img {
  width: 80%;
  display: block;
  transition: transform 0.2s;
  cursor: zoom-in;
  margin: 1rem auto;
}

.products img:hover {
  transform: scale(0.95);
}

.products {
  max-width: 1024px;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  padding: 3rem;
}

.product {
  position: relative;
  background-color: var(--secundary);
  border-radius: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  box-shadow: var(--shadow);
  justify-content: center;
  align-items: center;
}

.product > .bx {
  background-color: var(--third);
  position: absolute;
  font-size: 1.5rem;
  border-radius: 50%;
  right: 0.8rem;
  bottom: 4.8rem;
  height: 2rem;
  width: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 0.2s, color 0.2s;
}

.product > .bx:hover {
  transform: scale(1.1);
  color: var(--color-letters);
}

.info__product {
  background-color: var(--third);
  border-bottom-left-radius: 1rem;
  border-bottom-right-radius: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1rem;
  height: 90px;
  width: 100%;
  color: var(--color-letters);
}

.info__price {
  display: flex;
  gap: 1rem;
  color: var(--color-letters);
}

/*----CART----*/

section {
  position: relative;
}

.cart {
  height: calc(100vh - 50px);
  background-color: var(--bg);
  width: 50%;
  position: fixed;
  top: 0;
  right: -70%;
  transition: right 0.2s;
  z-index: 1000;
  margin-top: 50px;
  transition: filter 0.5s, right 0.5;
}

.show__cart {
  right: 0;
}

.cart img {
  width: 80%;
  display: block;
}

.cart__products {
  height: 85%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem;
  padding-top: 60px;
  overflow-y: scroll;
}

.cart__products::-webkit-scrollbar {
  -webkit-appearance: none;
  width: 10px;
}

.cart__products::-webkit-scrollbar-track {
  background-color: var(--bg);
}

.cart__products::-webkit-scrollbar-thumb {
  background-color: var(--primary);
  border-radius: 2rem;
}

.cart__product__img {
  width: 30%;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 1rem;
  padding: 1rem;
  background-color: var(--secundary);
  border: solid 1px var(--primary);
}

.cart__product__info {
  padding: 1rem;
  width: 70%;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  color: var(--color-letters);
}

.cart__product__info > small {
  color: var(--color-price);
  font-weight: bold;
}

.cart__product__info > p:nth-child(3) {
  color: var(--primary);
  font-weight: bold;
}

.cart__product__info__selectors {
  display: flex;
  gap: 0.3rem;
  color: var(--primary);
}

.cart__product__info__selectors p {
  color: var(--color-price);
}

.cart__product__info__selectors > i {
  cursor: pointer;
}

.cart__product {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
}

.cart__total {
  height: 15%;
  background-color: var(--secundary);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
}

.cart__total__info {
  display: flex;
  justify-content: space-between;
  width: 100%;
  font-weight: bold;
  color: var(--color-letters);
}

/* ----MODALS---- */

.modals {
  position: fixed;
  z-index: 2000;
  align-self: center;
  margin-top: 60px;
  border-radius: 1rem;
  padding: 1rem;
  max-width: 30%;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s, visibility 0.5s;
}

.modals__hidden {
  opacity: 1;
  visibility: visible;
}

.close {
  background-color: var(--primary);
  color: var(--third);
  font-size: 1rem;
  font-weight: bold;
  width: 1.5rem;
  height: 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  align-self: flex-end;
  cursor: pointer;
  transition: transform 0.2s, color 0.2s;
  position: absolute;
}

.close:hover {
  transform: scale(0.9);
  color: var(--color-letters);
}

.modal img {
  width: 80%;
  margin: 0 auto;
}

.modal {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background-color: var(--secundary);
  border-radius: 1rem;
  padding: 1rem;
  color: var(--color-letters);
}

.modal small {
  color: var(--color-price);
  font-weight: bold;
}

.price__modal {
  display: flex;
  justify-content: space-between;
  position: relative;
}

.price__modal > small {
  order: 1;
}

.sold__out__modal {
  background-color: var(--primary);
  position: absolute;
  border-radius: 2rem;
  padding: 0.5rem;
  width: 100%;
  text-align: center;
  font-weight: bold;
  font-size: 2rem;
  color: var(--third);
  transform: rotatez(45deg);
  bottom: 900%;
  transition: all 0.2s;
}

.price__modal > p {
  font-size: 1.5rem;
}

.price__modal > .bx {
  position: absolute;
  left: 5rem;
  bottom: 0;
  background-color: var(--third);
  font-size: 1.5rem;
  border-radius: 50%;
  height: 2rem;
  width: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 0.2s, color 0.2s;
}

.price__modal > .bx:hover {
  transform: scale(1.1);
  color: var(--color-letters);
}

/* ----LOADER---- */

.loader__red {
  background-color: var(--primary);
  width: 100%;
  min-height: 100vh;
  z-index: 4000;
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  transition: border-radius 0.5s, transform 0.5s, opacity 0.5s, visibility 0.5s;
}

.loader__hiden {
  border-radius: 50%;
  transform: scale(0);
  opacity: 0;
  visibility: hidden;
}

.loader__red > i {
  color: var(--third);
  font-size: 6rem;
  animation: rotate__logo 1s infinite;
}

@keyframes rotate__logo {
  0% {
    transform: rotatez(0deg);
  }
  50% {
    transform: rotatez(180deg);
  }
  100% {
    transform: rotatez(360deg);
  }
}

/* ----FOOTER---- */

.footer {
  background-color: var(--primary);
  display: flex;
  flex-direction: column;
  padding: 3rem;
  gap: 2rem;
  transition: filter 0.5s;
}

.info__footer {
  width: 100%;
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
  color: var(--third);
}

.info__footer i {
  color: var(--third);
}

.our__information > a,
.about__us > li > a,
.products__footer > li > a,
.social > li > a {
  text-decoration: none;
  color: var(--third);
}
.about__us,
.products__footer,
.social {
  list-style: none;
  text-align: center;
}

.our__information > h3,
.about__us h3,
.products__footer h3,
.social h3 {
  padding-bottom: 0.5rem;
}

.social li {
  list-style: none;
  font-size: 2.5rem;
}

.bxl-instagram-alt:hover,
.bxl-github:hover,
.bxl-linkedin:hover {
  color: var(--socials);
  transform: scale(1.2);
}

.data__student a {
  font-size: 1.5rem;
}

.data__student a:hover {
  color: var(--socials);
}

.social ul {
  display: flex;
  gap: 0.5rem;
}

.data__student {
  display: flex;
  background-color: var(--secundary);
  border-radius: 2rem;
  padding: 1rem;
  justify-content: space-around;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.data__student a,
.data__student p {
  text-decoration: none;
  color: var(--primary);
  font-weight: bold;
  font-size: 1.2rem;
}



/* ----SOLD-OUT---- */

.sold__out {
  background-color: var(--primary);
  position: absolute;
  border-radius: 2rem;
  padding: 0.5rem;
  width: 100%;
  text-align: center;
  font-weight: bold;
  font-size: 2rem;
  color: var(--third);
  transform: rotatez(45deg);
  bottom: 55%;
  transition: all 0.2s;
}

/* ----ALERTS---- */

.alerts {
  width: 100%;
  height: 100vh;
  position: fixed;
  padding: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s, visibility 0.5s;
  user-select: none;
  z-index: 2000;
}

.alerts__show {
  opacity: 1;
  visibility: visible;
}

.alert {
  background-color: var(--secundary);
  border-radius: 1rem;
  box-shadow: var(--shadow);
  width: 50%;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  height: 300px;
  color: var(--color-letters);
  text-align: center;
  transition: opacity 0.5s, visibility 0.5s;
  position: relative;
}

.alert i {
  font-size: 5rem;
}

.close__alert, .close__not__buy {
  position: absolute;
  top: 1rem;
  right: 1rem;
}

.confirm__out,
.delete,
.btn__confirm__buy, .btn__confirm__not__buy {
  background-color: var(--primary);
  padding: 0.8rem;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.2rem;
  font-weight: bold;
  border-radius: 10px;
  color: var(--bg);
  cursor: pointer;
  transition: opacity 0.5s, visibility 0.5s;
}

.confirm__out:hover,
.delete:hover,
.btn__confirm__buy:hover, .btn__confirm__not__buy:hover {
  transform: scale(1.1);
  background-color: var(--color-price);
}

.alert__out__stock,
.alert__delete,
.alert__buy, .alert__not__buy {
  visibility: hidden;
  opacity: 0;
  display: none;
  transition: opacity 0.5s, visibility 0.5s;
}

.alert__out__stock__show,
.alert__delete__show,
.alert__buy__show, .alert__not__buy__show {
  visibility: visible;
  opacity: 1;
  display: flex;
}

/* ----BTN-UP---- */

.btn__up {
  font-size: 2rem;
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  opacity: 0;
  visibility: hidden;
  z-index: 500;
  cursor: pointer;
  transition: opacity 0.5s, visibility 0.5s;
}

.btn__up:hover {
  color: var(--color-price);
}

.btn__up__on {
  opacity: 1;
  visibility: visible;
}

/* ----RESPONSIVE---- */

@media (max-width: 1000px) {
  .modals {
    max-width: 50%;
  }
}

@media (max-width: 800px) {
  .bx-menu-alt-right {
    visibility: visible;
    order: 1;
  }

  .hidden__menu {
    transform: translateX(110%);
  }

  .menu__responsive {
    background-color: var(--primary);
    position: fixed;
    top: 50px;
    right: 0;
    width: 100%;
    height: 100%;
    z-index: 4000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    transition: transform 0.5s;
  }

  .menu__responsive a {
    color: var(--third);
    text-decoration: none;
    font-weight: bold;
    font-size: 1.5rem;
  }

  .cart {
    width: 70%;
    right: -110%;
    transition: right 0.5;
  }

  .show__cart {
    right: 0%;
  }
}

@media (max-width: 600px) {
  .info__footer {
    flex-direction: column;
    gap: 1rem;
  }

  .our__information,
  .about__us,
  .products__footer,
  .social {
    text-align: left;
  }

  .data__student {
    flex-direction: column;
  }

  .modals {
    max-width: 70%;
  }

  .cart {
    width: 100%;
    right: -110%;
    transition: right 0.5;
  }

  .show__cart {
    right: 0%;
  }

  .alert {
    width: 70%;
  }

  .info__expand p {
    opacity: 0;
    visibility: hidden;
  }
}
