@import '../variables';

.pizza-block {
  width: 280px;
  text-align: center;
  margin-bottom: 65px;
  perspective: 500px; 

  &-wrapper {
    display: flex;
    justify-content: center;
  }

  &__image {
    width: 260px;
    transition: transform 0.3s ease;

    &:hover {
      transform: rotate(5deg) scale(1.05);
      transition: transform 0.3s ease;
  }

  }

  &__title {
    font-size: 20px;
    font-weight: 900;
    letter-spacing: 1%;
    margin-bottom: 20px;
    color: var(--black);
  }

  &__selector {
    display: flex;
    background-color: var(--bg-selector);
    border-radius: 10px;
    flex-direction: column;
    padding: 6px;
    transition: background 0.3s;

    ul {
      display: flex;
      flex: 1;

      &:first-of-type {
        margin-bottom: 6px;
      }

      li {
        padding: 8px;
        flex: 1;
        cursor: pointer;
        font-weight: 600;
        font-size: 14px;
        color: var(--black);
        @include noselect();

        &.active {
          background: var(--act-background);
          box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.04);
          border-radius: 5px;
          cursor: auto;
        }
      }
    }
  }

  &__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
  }

  &__price {
    font-weight: bold;
    font-size: 22px;
    line-height: 27px;
    letter-spacing: 0.015em;
    color: var(--black);
  }
}
