:root {
  --header-height: 70px;
  --dark-overlay: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3));
}

html {
  font-family: "Inter", sans-serif;
}

@supports (font-variation-settings: normal) {
  html {
    font-family: "Inter var", sans-serif;
  }
}

.header__org__title {
  font-size: 1.25rem;
  font-weight: 900;
}

.header__container {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr auto;
  max-width: 1400px;
  width: 100%;
  height: var(--header-height);
  margin-left: auto;
  margin-right: auto;
}

.header__nav {
  padding-top: 4px;
  padding-bottom: 4px;
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  list-style-type: none;
  gap: 4rem;
}

.header__nav a {
  opacity: 0.7;
  text-decoration: none;
  color: black;

  transition-property: all;
  transition-duration: 100ms;
  transition-timing-function: cubic-bezier(0.19, 1, 0.22, 1);
}

.header__nav a:hover {
  opacity: 1;
  transform: scale(1.05);
}

main {
  min-height: calc(100vh - var(--header-height));
  display: flex;
  flex-direction: column;
}

main #container {
  flex: 1;
  max-width: 1200px;
  width: 100%;
  min-height: 100%;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
}

.main__img_cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto;
  gap: 4rem;
}

.main__img__card {
  position: relative;
  cursor: pointer;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2rem;
  font-weight: 700;
  color: white;
  border-radius: 16px;
  /* background-image: var(--dark-overlay); */
  text-decoration: none;
}

.main__img__card h3 {
  filter: drop-shadow(0px 0px 15px black);

  transition-property: all;
  transition-duration: 300ms;
  transition-timing-function: cubic-bezier(0.19, 1, 0.22, 1);
}

.card__main__img__holder {
  border-radius: 16px;
  z-index: -1;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;

  transition-property: all;
  transition-duration: 500ms;
  transition-timing-function: cubic-bezier(0.19, 1, 0.22, 1);
}

.card__males {
  background: url("/img/main_cards/male/1.jpg") center no-repeat;
  background-size: contain;
}

.card__females {
  background: url("/img/main_cards/female/2.jpg") center no-repeat;
  background-size: contain;
}

.main__img__card:hover h3 {
  transform: scale(1.1);
}

.main__img__card:hover .card__main__img__holder {
  transform: scale(0.9);
}

.main__brands {
  flex: 1;
  display: flex;
  flex-direction: row;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: space-evenly;
  align-items: center;
}

.brand__container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

.main__brands img {
  max-height: 60px;
  filter: grayscale();
}

.main__brands .brand__name {
  opacity: 0.6;
  font-size: 10px;
  text-transform: uppercase;
  font-weight: 600;
  text-align: center;
}

.product__cards__container {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  grid-auto-flow: dense;
  grid-auto-rows: min-content;
  gap: 1rem;
}

.product__card {
  display: grid;
  grid-template-columns: 1fr;
  grid-auto-flow: row;
  grid-auto-rows: min-content;
  padding: 1rem;
  border-radius: 8px;
  border-width: 1px;
  border-style: solid;
  border-color: rgb(200, 200, 200);
}

.product__card > .product__img {
  transform: scale(0.9);

  transition-property: all;
  transition-duration: 300ms;
  transition-timing-function: cubic-bezier(0.19, 1, 0.22, 1);
}

.product__card:hover > .product__img {
  aspect-ratio: 1 / 1;
  width: 100%;
  transform: scale(1);
}

.product__card > .product__name {
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
}

.product__card > .product__price {
  margin-top: 0.5rem;
  margin-left: 0;
  margin-right: 0;
  margin-bottom: 1rem;
  text-align: center;
  font-weight: 400;
  font-size: 0.85rem;
}

.product__card > .product__add_to_cart_button {
  cursor: pointer;
  display: flex;
  border-radius: 8px;
  border-width: 1px;
  border-style: solid;
  border-color: black;
  background-color: black;
  font-size: 0.75rem;
  font-weight: 600;
  color: white;
  padding-left: 2rem;
  padding-right: 2rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  justify-content: center;
  align-items: center;
  width: fit-content;
  place-self: center;
}

.product__card > .already__in__cart {
  background-color: white;
  color: black;
}

.cart__container {
  display: flex;
  flex-direction: column;
}

.cart__item {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  grid-template-rows: 120px;
  place-items: center start;
  gap: 1rem;
  padding-left: 1rem;
  padding-right: 1rem;
}

.cart__item:nth-child(even) {
  background-color: rgb(247, 247, 247);
}

.cart__item .cart__item__image  {
  width: auto;
  height: 100%;
}

.cart__item .cart__item__remove__button {
  cursor: pointer;
  background-color: #e93232;
  color: white;
  font-weight: 600;
  padding: 0.5rem 0.75rem;
  font-size: 1rem;
  line-height: 1rem;
  border-radius: 8px;
  border-width: 0;
}

.cart__item .cart__item__remove__button:hover {
  background-color: rgb(197, 48, 48);
}

#place-order {
  cursor: pointer;
  background-color: black;
  color: white;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  border-style: solid;
  border-color: black;
  border-width: 1px;
  border-radius: 8px;
  padding: 0.5rem 2rem;
}

#place-order:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}