/* Style the tab */
.tab {
  overflow: hidden;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;

  &.ui-state-active {
    margin-bottom: 0;
  }

  li {
    //width: 33%;
    font-size: 2.4rem;
    padding: 2px 10px;
    line-height: 10px;
    background-color: black;
    border: solid thin var(--font-color);
    margin: 0 10px 10px 0;
    -webkit-transform: perspective(1px) translateZ(0);
    transform: perspective(1px) translateZ(0);
    box-shadow: 0 0 1px rgb(0, 0, 0);
    position: relative;
    -webkit-transition-property: color;
    transition-property: color;
    -webkit-transition-duration: 0.3s;
    transition-duration: 0.3s;
    transition: all .5s ease-in-out 0s;

    //&:before {
    //  content: "";
    //  position: absolute;
    //  z-index: -1;
    //  top: 0;
    //  left: 0;
    //  right: 0;
    //  bottom: 0;
    //  background: white;
    //  -webkit-transform: scaleX(0);
    //  transform: scaleX(0);
    //  -webkit-transform-origin: 0 50%;
    //  transform-origin: 0 50%;
    //  -webkit-transition-property: transform;
    //  transition-property: transform;
    //  -webkit-transition-duration: 0.3s;
    //  transition-duration: 0.3s;
    //  -webkit-transition-timing-function: ease-out;
    //  transition-timing-function: ease-out;
    //}
    //
    //&:hover:before {
    //  -webkit-transform: scaleX(1);
    //  transform: scaleX(1)
    //}

    a {
      //padding: 8px 20px;
      text-transform: uppercase;
      //font-family: var(--secondary-fontfamily);
      font-weight: var(--font-weight-medium);
      color: var(--font-color);
    }
  }
}

/* Style the buttons that are used to open the tab content */
.tab a.tablinks {
  //font: normal normal bold 16px/18px Gotham;
  //letter-spacing: 1.28px;
  //color: #828597;
  border: none;
  outline: none;
  cursor: pointer;
  transition: 0.3s;
  //padding: 0 0 8px;
  display: block;
  //text-align: left;
  //text-transform: uppercase;
}

/* Change background color of buttons on hover */
.tab a.tablinks:hover {

}

/* Create an active/current tablink class */
.tab .ui-tabs-active, .tab li:hover {
  border: solid 1px var(--font-color);
  background-color: var(--font-color);

  a {
    color: black;
  }
}

/* Style the tab content */
.tabcontent {
  display: none;
  animation: fadeEffect 1s; /* Fading effect takes 1 second */
  //height: 0px;
  //min-height: 0px;
  //overflow: hidden;
  transition: ease .25s;
  padding: 10px 30px;

  ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    flex-direction: column;
    align-content: center;
    margin: 40px 0;

    @include respond-above(sm) {
      justify-content: flex-start;
    }

    li {
      font-size: 2rem;
      font-weight: bold;
      text-transform: uppercase;
      text-align: center;
      padding: 0 10px;
      margin-bottom: 20px;
      display: flex;
      justify-content: center;

      @include respond-above(sm) {
        //width: 33%;
      }

      .producto {
        margin: 0 0 10px 0;
      }

      .desc-producto {
        text-transform: none;
        font-size: 1.5rem;
        font-weight: var(--font-weight-normal);
      }

      .precio {
        font-weight: var(--font-weight-normal);
      }
    }
  }

  &.selected {
    //min-height: 1000px;
    height: 100%;

    @include respond-above(sm) {
      position: relative;
    }
  }

  > div {
    padding: 0px 40px;
    display: flex;
    flex-wrap: wrap;
  }
}

/* Go from zero to full opacity */
@keyframes fadeEffect {
  from {opacity: 0;}
  to {opacity: 1;}
}