#app {
  width: 96%;
  max-width: 1024px;
  padding: 1.6rem;
  margin: 3.2rem auto;
  border-radius: 8px;
  background-color: var(--white);
  box-shadow: 0 0 10px 1px rgba(0, 0, 0, 0.09);
  animation: slideUpFade 400ms ease-in backwards;

  & .modal-screen-images {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    flex-direction: column;
    gap: 2.4rem;
    padding: .8rem;

    & .close-modal-button {
      padding: 1rem;
      background-color: var(--red);
      border-radius: 8px;
      border: none;
      font-size: 1.6rem;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: .8rem;

      & i {
        font-size: 2rem;
      }

      &:hover {
        cursor: pointer;
      }
    }

    & .modal-screen-images-scroll {
      display: flex;
      gap: 3.2rem;
      flex-direction: column;
      align-items: center;
      height: 100%;
      overflow: auto;

      & img {
        background-color: white;
        width: 100%;
        max-width: 60rem;
      }
    }
  }

  & .container-details {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 2.4rem;

    & .section-information {
      display: flex;
      flex-direction: column;
      gap: 2.8rem;

      & .details-title-product {
        font-size: 2rem;
        text-transform: uppercase;
        padding-bottom: 1.4rem;
        border-bottom: 1px solid var(--black-l-90);
      }

      & .list-info-tec {
        list-style-type: none;
        display: flex;
        flex-direction: column;
        gap: 2.4rem;

        & li {
          color: var(--ct-black-600);
        }
      }

      & p {
        font-size: 1.55rem;
        font-weight: 600;
        text-align: justify;
        line-height: 2.8rem;
        color: var(--ct-black-700);
        white-space: pre-line;
      }
    }

    & h1 {
      font-size: 1.8rem;
      text-transform: capitalize;
    }
  }

  & .gallery-main-image {
    min-height: 32rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 1.6rem;
  }

  & .main-img {
    width: 100%;
    cursor: zoom-in;
  }

  & .container-gallery-mini-images {
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
    margin-top: 2.4rem;
    flex-wrap: wrap;

    & img {
      opacity: 0.6;
      transition: 0.3s;
      cursor: pointer;
      border: 1px solid transparent;
    }

    & img[active] {
      opacity: 1;
      border-color: var(--orange);
    }

    & .gallery-mini-image {
      width: 10rem;
      cursor: pointer;
    }
  }
}

.wrapper-price {
  display: flex;
  flex-direction: column;

  & .sell-value {
    font-size: 4rem;
    color: var(--orange-d-30);
    font-weight: 600;
  }

  & .add-to-budget {
    font-size: 2.4rem;
    font-weight: 600;
    color: var(--orange-d-30);
  }
}

.back-button {
  border-radius: 8px;
  padding: 0.4rem 1.2rem;
  font-size: small;
  display: flex;
  align-items: center;
  border: 2px solid var(--black-l-80);
  color: var(--black);

  &:hover {
    cursor: pointer;
  }

  & i {
    font-size: large;
  }
}

.header-product {
  display: flex;
  align-items: start;
}

.share-button {
  padding: .8rem;
  border-radius: 50%;
  border: 1px solid var(--black-l-80);
  display: flex;
  justify-content: center;
  gap: 1rem;
  cursor: pointer;

  & .ph {
    font-size: 2.2rem;
  }
}

.container-div-cart {
  display: flex;
  gap: 0.4rem;

  & .container-div-quantity {
    display: flex;
    border-radius: 4px;
    box-shadow: 0 0 1px 1px var(--black-l-80);

    & button {
      width: 3.8rem;
      font-size: 2rem;
      border: none;
      cursor: pointer;
      background-color: var(--black-l-90);
      color: var(--black);
    }
  }

  & .input-quantity {
    font-size: 1.55rem;
    border-radius: 4px;
    border: none;
    max-width: 4.8rem;
    font-weight: 600;
    text-align: center;
  }

  & .btn-cart {
    width: 100%;
    padding: 1rem;
    font-size: 1.5rem;
    background: linear-gradient(
      140deg,
      rgba(255, 102, 0, 1) 40%,
      rgba(255, 117, 26, 1) 100%
    );
    box-shadow: 0 3px 0 var(--orange-d-30);
    color: var(--white);
    border: none;
    display: flex;
    flex-direction: row-reverse;
    gap: 0.8rem;
    justify-content: center;
    align-items: center;
    border-radius: 4px;

    & .ph {
      font-size: 2.8rem;
    }

    &:hover {
      cursor: pointer;
    }

    &:active {
      transform: translateY(3px);
      box-shadow: none;
    }
  }
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* 2. Para Firefox */
input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}

.stickbar {
  max-width: 32rem;
  position: fixed;
  bottom: 2.4rem;
  right: 0;
  z-index: 100;
  background-color: var(--black-l-90);
  padding: 1rem;
  box-shadow: 1rem 1rem 2rem var(--black);

  & img {
    max-width: 12rem;
  }
}

.title-details {
  font-size: medium;
  color: var(--black-l-20);
  padding-bottom: 1rem;

  &::after {
    content: "";
    width: 10rem;
    height: 3px;
    background-color: var(--orange);
    display: block;
    border-radius: 8px;
  }
}

.buy-on-whats {
  background-color: transparent;
  font-weight: 500;
  font-size: 1.4rem;
  display: flex;
  gap: 0.8rem;
  align-items: center;
  justify-content: center;
  color: var(--black-l-20);
  border: none;
  padding: 0.6rem;
  border-radius: 4px;

  &:hover {
    cursor: pointer;
    background-color: var(--black-l-90);
  }

  & .bi-whatsapp {
    width: 3.2rem;
    fill: var(--light-green);
  }
}

.details-banner {
  & img {
    width: 100%;
    max-width: 50rem;
  }
}

.container-recomended-products {
  display: flex;
  flex-direction: column;
  gap: 2.4rem;
  padding: 3.2rem 0;
}

.products-recomended {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;

  & .card-product {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 2.4rem;
    background-color: var(--white);
    align-items: center;
    padding: 1rem;
    border-radius: 8px;

    & img {
      width: 100%;
      max-width: 32rem;
    }
    
    & button {
      width: 100%;
      padding: 1rem;
      font-size: 1.5rem;
      background: linear-gradient(
        140deg,
        rgba(255, 102, 0, 1) 40%,
        rgba(255, 117, 26, 1) 100%
      );
      box-shadow: 0 3px 0 var(--orange-d-30);
      color: var(--white);
      border: none;
      display: flex;
      flex-direction: row-reverse;
      gap: 0.8rem;
      justify-content: center;
      align-items: center;
      border-radius: 4px;
    }
  }
}

@media (min-width: 768px) {
  #app {
    & .container-details {
      display: grid;
      grid-template-columns: 1fr 1fr;
    }
  }

  .products-recomended {
    grid-template-columns: repeat(3, 1fr);
  }

  .gallery {
    height: fit-content;
    position: sticky;
    top: 16rem;
  }
}
