// -----------------------------------------------------------------------------
// This file contains styles that are specific to the cart-wishlist pages.
// -----------------------------------------------------------------------------
/*--------------------------------------------------------------
#{$k}
--------------------------------------------------------------*/



.table-responsive {
  overflow-x: auto;
}


.table-p {
  width: 100%;
  border: 1px solid #eee;
  border-collapse: collapse;


  tr {
    position: relative;
    border-top: 1px solid #eee;
  }

  td {
    padding: 20px;
  }


  &__box {
    display: flex;
    flex-wrap: nowrap;// Single-line
    align-items: center;
  }

  &__img-wrap {
    display: inline-block;
    vertical-align: middle;
    background-color: $g-card-bg-color;
    width: 120px;
    height: 120px;
    img {
      display: block;
      min-width: 120px;
    }
  }



  &__info {
    margin-left: 18px;
  }

  &__name {
    display: block;
    > a {
      color: $g-brand-secondary-color;
      font-size: 14px;
      font-weight: 600;
      transition: color 0.5s;
      &:hover {
        color: $g-brand-color;
      }
    }
  }

  &__category {
    display: block;
    > a {
      color: #a0a0a0;
      transition: color 0.5s;
      font-size: 12px;
      &:hover {
        color: $g-brand-color;
      }
    }
  }


  &__variant-list {
    margin: 0;
    padding: 0;
    list-style: none;

    > li {
      > span {
        color: #a0a0a0;
        font-size: 12px;
      }
    }
  }



  &__price {
    text-align: center;
    display: block;
    color: $g-brand-secondary-color;
    font-size: 14px;
    font-weight: 600;
  }


  &__input-counter-wrap {
    text-align: center;
  }

  &__del-wrap {
    text-align: center;
  }

  &__delete-link {
    padding: 10px;
    font-size: 16px;
    display: inline-block;
    color: $g-brand-secondary-color;
    transition: color 0.5s;
    &:hover {
      color: $g-brand-color;
    }
  }
}





.w-r {
  background-color: $g-white;
  border: 1px solid #eee;
  box-shadow: 1px 1px 6px 0 rgba(0, 0, 0, 0.07);


  &__container {
    display: flex;
    padding: 20px;
    flex-wrap: nowrap;// single-line by default value
    align-items: center;
    justify-content: space-between;
  }

  &__wrap-1,&__wrap-2 {
    -ms-flex: 0 1 auto;// IE10+ overflow fix
  }

  &__wrap-1 {
    display: flex;
    flex-wrap: nowrap;// single-line by default value
    align-items: center;
    justify-content: flex-start;
  }

  &__img-wrap {
    display: inline-block;
    vertical-align: middle;
    background-color: $g-card-bg-color;
    width: 120px;
    height: 120px;
    img {
      display: block;
      min-width: 120px;
    }
  }

  &__info {
    margin-left: 18px;
  }

  &__name {
    display: block;
    > a {
      color: $g-brand-secondary-color;
      font-size: 14px;
      font-weight: 600;
      transition: color 0.5s;
      &:hover {
        color: $g-brand-color;
      }
    }
  }

  &__category {
    display: block;
    margin-bottom: 2px;
    > a {
      color: #a0a0a0;
      transition: color 0.5s;
      font-size: 12px;
      &:hover {
        color: $g-brand-color;
      }
    }
  }

    &__price {
      display: block;
      color: $g-brand-color;
      font-size: 14px;
      font-weight: 600;
    }

    &__discount {
      font-weight: 600;
      margin-left: 12px;
      color: $g-brand-secondary-color;
      font-size: 14px;
      text-decoration: line-through;
    }


  &__link {
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
    border-radius: 5px;
    margin: 0 0 10px 10px;
    padding: 12px 30px;
  }



}







// Link with icon
.route-box {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  background-color: #f1f1f1;
  justify-content: space-between;

  &__g {
    -ms-flex: 0 1 auto;// IE10+
  }



  &__link {
    color: $g-brand-secondary-color;
    font-size: 13px;
    text-align: center;
    padding: 17px;
    font-weight: 600;
    display: inline-block;
    transition: color 0.5s;
    &:hover {
      color: $g-brand-color;
    }
  }
  i {
    margin-right: 2px;
  }
}


// Cart Form

.f-cart {

  &__pad-box {
    border: 1px solid #eee;
    padding: 32px 22px 35px;
  }


  &__table {
    width: 100%;
    border-collapse: collapse;
    td {
      color: $g-brand-secondary-color;
      vertical-align: middle;
      font-size: 14px;
      font-weight: 600;
      padding: 8px 0;
    }
    td:first-child {
      text-align: left;
    }
    td {
      text-align: right;
    }
    tr:last-child {
      td {
        font-size: 16px;
        font-weight: 700;
        color: $g-brand-color;
      }
    }
  }

  &__ship-link {
    font-size: 13px;
    text-align: center;
    padding: 17px;
    font-weight: 600;
    border-radius: 6px;
    display: block;
  }

  .input-text,.select-box,.text-area,.btn {
    border-radius: 6px;
    width: 100%;
  }

  .text-area {
    height: 350px;
  }

  .btn {
    padding: 16px;
    font-weight: 600;
    font-size: 13px;
  }
}









@media (max-width: 991px) {

  .w-r__wrap-2 {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: flex-end;
  }
}

@media (max-width: 767px) {

  // 1
  .table-p {
    td {
      min-width: 200px;
    }
  }





  // 2
  .w-r__container {
    flex-direction: column;
  }

  .w-r__wrap-1 {
    flex-direction: column;
  }

  .w-r__info {
    text-align: center;
    margin: 15px 0 15px;
  }

  .w-r__wrap-2 {
    align-items: center;
  }
}


