.nutbig-squarenine{
  height: 357px;
  width: 100%;
  flex-shrink: 0;
 
  overflow: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: 12px;
  box-sizing: border-box;
  perspective: 1000;

  .nine-ninegrid__item {
    position: relative;
    width: 103px;
    height: 103px;
    transition: all 0.3s ease;
    &:nth-child(5){
      z-index: 11;
    }

    .front,
    .back {
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      border-radius: 8px;
      padding: 9px 8px 0 8px;
      overflow: hidden;
      backface-visibility: hidden;
      background-image: linear-gradient(#ffefd1, #ffc8a4);
      transition: 1s;
      transform-style: preserve-3d;
      display: flex;
      flex-direction: column;
      align-items: center;
      > p {
        width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-family: PingFangSC-Medium;
        text-align: center;
        font-size: 13px;
        height: 15px;
        margin-bottom: 3px;
        color: rgba(46, 45, 45, 1);
        flex-shrink: 0;
      }
      .nut-price {
        height: 40px;
        > span {
          font-family: PingFangSC-Medium;
          font-size: 10px !important;
          color: rgba(249, 18, 50, 1) !important;

          &.price-big {
            font-size: 16px !important;
          }
        }
      }

      > img {
        width: 71px;
        height: 71px;
        flex-shrink: 0;
      }
    }

    .front {
      z-index: 2;
      padding: 0;
      justify-content: center;
      transform: rotateY(0deg);
    }

    .back {
      transform: rotateY(-180deg);
    }

    &.active {
      .front {
        transform: rotateY(180deg);
      }

      .back {
        transform: rotateY(0deg);
      }
    }

    .nine-ninegrid__item__center {
      border-radius: 8px;
      overflow: hidden;
      background-image: linear-gradient(#ff733e, #ff4e57);
      border: 1px solid #ffa07c;
      width: 100%;
      height: 100%;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      box-sizing: border-box;

      > img {
        width: 15px;
        height: 16px;

        &.rotate {
          animation-name: box-rotate;
          animation-duration: 1s;
        }
      }

     > span {
        font-family: PingFangSC-Medium;
        font-size: 16px;
        color: rgba(255, 212, 167, 1);
      }

      > p {
        font-family: PingFangSC-Medium;
        font-size: 12px;
        color: rgba(255, 212, 167, 1);
      }
    }
  }
}


@keyframes box-rotate {
  0% {
    transform: translate(0px, 0px) rotate(0deg);
  }
  100% {
    transform: translate(0px, 0px) rotate(360deg);
  }
}
