.menu-categories {
  width: 100%;
  display: flex;
  justify-content: center;
}

.container-categories {
  height: 100%;
  background-color: var(--black-l-10);
  position: fixed;
  top: 0;
  z-index: 10;
  padding: 1.6rem;
  display: flex;
  gap: .8rem;
  flex-direction: column;
  animation: toRight 400ms ease-out backwards;

  & .header-categories {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;

    & span {
      font-size: 1.8rem;
      font-weight: 500;
      color: var(--white);
    }

    & .button-close {
      padding: .8rem 1.6rem;
      border-radius: 4px;
      color: var(--red);
      font-size: 3.2rem;
      background-color: transparent;
      border: none;
      display: flex;
      align-items: center;
      justify-content: center;

      &:hover {
        cursor: pointer;
      }
    }

  }

  & .body-categories {
    display: grid;
    grid-template-columns: auto auto;
    padding: .2rem;
    gap: 1.2rem;
    overflow: auto;
    scrollbar-width: none;
  }

  & .card-categorie {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    background-color: var(--white);
    border-radius: 4px;
    transition: all 300ms ease-out;

    &:hover {
      transform: scale(.98);
    }

    & img {
      width: 100%;
      max-width: 40rem;
    }

    & .card-body {
      padding: .8rem;
      display: flex;
      justify-content: center;
      align-items: center;
      width: 100%;
      gap: .8rem;
      color: var(--ct-black-700);
      font-weight: 600;

      & span {
        font-size: 1.35rem;
        text-transform: capitalize;
      }

      & .ph {
        color: var(--orange);
      }

    }

    & button {
      padding: .8rem;
      border-radius: 4px;
      background-color: transparent;
      font-size: 2rem;
      display: flex;
      align-items: center;
      justify-content: center;
      border: none;
    }
  }
}

.body-categories::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.body-categories::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.12);
  border-radius: 10px;
}

.body-categories::-webkit-scrollbar-track {
  background: transparent;
}

.animation-close {
  animation: close 500ms ease-out !important;
}

@keyframes toBotton {
  0% {
    opacity: .1;
    transform: translateY(-15rem);
  }
}

@keyframes toRight {
  0% {
    transform: translateX(-30rem);
  }
}

@keyframes close {
  0% {
    opacity: 1;
    transform: translateX(0);
  }

  100% {
    opacity: .5;
    transform: translateX(-100%);
  }
}

@media (min-width: 768px) {
  .container-categories {
    left: 0;
    border-right: 1px solid var(--black-l-20);
    max-width: 48rem;
  }
}