//Mixins and variables (all except accent colors)
@import 'variables_template';

/*
** Shop
*/
.woocommerce {
  &:before,
  &:after {
    display: block;
    content: '';
    clear: both;
  }
}

//not showing shop title and shop breadcrumbs - we have our own in page_title section
.woocommerce-breadcrumb,
.woocommerce-products-header {
  display: none;
}

//messages
.woocommerce-error,
.woocommerce-info,
.woocommerce-message {
  margin: 0 0 1.5em;
  padding: 1.5em 1.5em 1.5em 1.5em;
  border-left: 5px solid $colorMain;
  background-color: $universalBackgroundColor;
}

.woocommerce-info {
  border-color: $colorInfo;
}

.woocommerce-error {
  list-style-position: inside;
}

//default filter styles
.woocommerce-result-count {
  margin-bottom: 0;
}
ul.products {
  list-style: none;
  padding: 0;
  margin: 0 -15px -20px !important;
  display: flex;
  flex-wrap: wrap;
  clear: both;
  .product {
    position: relative;
    padding: 0 15px;
    margin-bottom: 30px;
    text-align: center;
    .product-inner {
      position: relative;
      display: block;
      overflow: hidden;
    }
    //product thumbnail
    & > a > img {
      width: 100%;
      border-radius: 5px 5px 0 0;
    }

    //title
    h2 {
      font-weight: 500;
      line-height: 1;
      font-size: 16px;
      letter-spacing: 0;
    }
    .price {
      font-weight: 500;
      margin: 25px 0 0;
      display: block;
      color: $colorMain;

      del {
        font-weight: 300;
        color: $fontColor;
        padding-right: 1em;
      }
    }
    .onsale {
      left: 0;
      min-width: 60px;
      line-height: 1;
      font-weight: 500;
      border-radius: 0;
      position: absolute;
      padding: 5px 8px;
      color: $lightColor;
      background-color: $colorMain;
      z-index: 2;
    }
    .star-rating {
      margin: 27px auto 0;
    }
  }
  &.columns-1 {
    .product {
      width: 100%;
      margin-right: 0;
    }
  }
  &.columns-2 {
    .product {
      width: 50%;
    }
  }
  &.columns-3  {
    .product {
      width: 33.33%;
      @media (max-width: 1199px) {
        width: 49.9%;
      }
    }
  }
  &.columns-4  {
    .product {
      width: 25%;
    }
  }
  @media (max-width: 1199px) {
    &.columns-4 {
      .product {
        width: 50%;
      }
    }
  }
}

@media (max-width: 575px) {
  ul.products .product {
    width: 100% !important;
  }
}

.woocommerce-Message .button,
.woocommerce-message .button,
.button.view {
  float: right;
  margin: 3px 0;
  padding: 1px 10px;
  min-width: 120px;
}

.add_to_cart_button {
  &.loading {
    &:before {
      animation: spin 2s infinite linear;
      content: "\f021";

    }
  }
  &.product_type_variable {
    &:before {
      content: "\f1de";

    }
  }
}

//view cart
.wc-forward {
  padding: 1em;
  @include small-text();
  &:after {
    font-family: 'FontAwesome';
    content: "\f178";
    padding-left: 0.5em;
  }
}

/*shop pagination*/
.woocommerce-pagination {
  text-align: center;
  margin-top: 37px;
  @media (max-width: 991px) {
    margin-top: 7px;
  }
  ul.page-numbers {
    padding: 0;
    list-style: none;

    li {
      display: inline-block;
    }

    span,
    a {
      border: 1px solid rgba($borderColor, 0.2);
      border-radius: 0 !important;
      color: $fontColor;
      display: inline-block;
      margin-right: 5px;
      margin-left: 0;
      padding: 7px;
      min-width: 40px;
      text-align: center;
      line-height: inherit;
      font-weight: 400;
      &:hover {
        background-color: $colorMain;
        color: $lightColor;
      }
      &.dots {
        position: relative;
        top: -3px;
        left: 2px;
        letter-spacing: 2px;
        border-color: transparent;
        font-size: 24px;
        &:hover {
          color: inherit;
          background-color: transparent;
        }
      }
    }
    span {
      background-color: $colorMain;
      color: $lightColor;
      cursor: not-allowed;
    }

  }
}

/*single product*/
.product {
  .images {
    //for flexslider
    .flex-direction-nav {
      display: none;
    }
    position: relative;
    margin-bottom: 2em;
    figure {
      max-width: none;
    }

    @media(min-width: 576px) {
      width: 47%;
      float: left;
    }
  }
  .summary {
    position: relative;
    margin-bottom: 45px;
    &:after {
      content: '';
      display: block;
      clear: both;
    }
    @media(min-width: 576px) {
      width: 47%;
      float: right;
    }
    .entry-title {
      line-height: 1;
    }
    .woocommerce-product-rating {
      margin-top: 7px;
      margin-bottom: 20px;
      line-height: 1;
      position: relative;
      display: inline-flex;
    }
    .woocommerce-review-link {
      display: none;
      margin-left: 21px;
    }

    .variations {
      margin: 1.5em 0 0;

      tr {
        display: block;
        margin-bottom: 1em;
      }
      td {
        display: block;
        padding: 0;
      }
      label {
        font-size: 16px;
        font-weight: 700;
        text-transform: none;
        letter-spacing: 0;
        color: #4c4c4c;
        margin-bottom: 5px;
        &:after {
          content: ':';
        }
      }
      .reset_variations {
        font-size: 0;
        &:before {
          font-size: 16px;
          padding: 0.5em;
          display: inline-block;
          font-family: 'FontAwesome';
          content: "\f05e";
        }
      }
      select {
        text-transform: uppercase;
        letter-spacing: 0.2em;
        @media (max-width: 1199px) {
          padding-left: 10px;
          font-size: 14px;
          text-transform: none;
          letter-spacing: 0;
        }
      }
    }
    //categories etc
    .product_meta {
      margin-top: 40px;
      & > span {
        display: block;
      }
      table th {
        padding: 19px 0;
        font-weight: 700;
      }
      td a {
        color: $colorMain2;
        &:hover {
          color: $colorMain;
        }
      }
    }

  }
}

.single_variation_wrap {
  margin-top: 0;
  @media (max-width: 767px) {
    .d-flex {
      justify-content: center;
    }
    margin-top: 20px;
  }
}
/*shop tabs*/
.woocommerce-tabs {
  clear: both;
  margin: 91px 0;
  @media (max-width: 991px) {
    margin-top: 60px;
    margin-bottom: 60px;
  }
  ul.tabs {
    list-style: none;
    padding: 0;
    margin-bottom: 0;

    li + li {
      border-top: none;
    }
    li {
      display: block;
      position: relative;

      &.active {
        &:after {
          opacity: 1;
          right: 0.4em;
        }
        a {
          background-color: $colorMain;
          color: #fff !important;
        }
      }
      a {
        text-align: center;
        background-color: #f7f6fb;
        color: $darkColor;
        display: block;
        margin-right: 5px;
        margin-bottom: 2px;
        padding: 17px 44px;
        @media(max-width: 991px) {
          margin-right: 1px;
          padding: 8px;
          font-size: 13px;
        }
        @media(min-width: 992px) and (max-width: 1199px) {
          padding: 16px;
        }
        &:hover {
          color: $colorMain;
        }
      }
    }
  }

  .panel {
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 44px 40px 42px;
    @media(max-width: 767px) {
      padding: 30px
    }
    h2 {
      @include widget-title();
    }
  }

  ul.tabs {
    display: flex;
    li {
      a {
        margin-bottom: 0;
      }
    }
  }
  .shop_attributes {
    //no borders on this table - top padding and margin not needed
    margin-top: 0;
    tr {
      td, th {
        padding-top: 0;
        padding-bottom: 10px;
      }
    }
    th {
      padding-left: 0;
      &:after {
        content: ':';
      }
    }
  }
}

/*reviews*/
.commentlist {
  padding: 0;
  list-style: none;
}

.comment.odd .comment_container {
  padding: 0 30px 20px 70px;
  @media(max-width: 767px) {
    padding: 0 0 20px 70px;
  }
  & > img {
    left: -16px;
  }
}

.comment_container {
  position: relative;
  padding: 0 30px 20px;
  margin-bottom: 25px;
  //avatar width
  margin-left: 50px;
  //avatar
  @media(max-width: 767px) {
    padding: 0 0 20px 30px;
    margin-bottom: 30px;
  }
  & > img {
    position: absolute;
    border: 5px solid #fff;
    border-radius: 50%;
    max-width: 80px;
    //1 - border width
    top: -15px;
    left: -60px;
  }
  .meta {
    @include small-text();
    line-height: 1.3;
    //rating width;
    margin-right: 90px;
    margin-bottom: 0.5em;
    color: $darkgreyColor;
    @media(max-width: 767px) {
      margin-right: 0px;
    }
    strong {
      font-weight: inherit;
    }
  }
  .star-rating {
    float: right;
    @media(max-width: 767px) {
      display: none;
    }
  }
}

//reply
#tab-reviews {
  .comment-respond {
    border: none;
    padding: 0;
  }
}

.comment-reply-title {
  display: block;
  @include widget-title();
  margin-bottom: 0.5em;
  text-transform: uppercase;
  color: $darkgreyColor;
}

.related,
.upsells,
.cross-sells {
  & > h2 {
    letter-spacing: 0;
    text-align: center;
    font-weight: 700;
    font-size: 40px;
    margin-bottom: 63px;
    line-height: 1;
  }
  ul.products {
    margin: 0;
    .product {
      width: 99.3%;
      padding: 0;
      margin: 0;
    }
  }
}

.related {
  margin-top: 64px;
  margin-bottom: 10px;
  @media (max-width: 991px) {
    margin-bottom: 0;
  }
  h5 {
    margin-bottom: 30px;
  }
  .top-right-nav .owl-nav {
    top: -58px;
  }
  ul.products {
    margin-bottom: 0 !important;
    @media (max-width: 991px) {
      margin: 0 !important;
    }
  }
}

/*shop widgets*/
.widget .woocommerce-Price-amount {
  color: $colorMain;
  font-weight: 500;
}

.widget_shopping_cart,
.widget_products,
.widget_recently_viewed_products,
.widget_recent_reviews,
.widget_top_rated_products {
  ul {
    list-style: none;
    padding: 0;
    margin: 0;
    li {
      position: relative;
      padding-left: 113px;
      //image width
      min-height: 70px;
      margin-bottom: 40px;
      border-bottom: 1px solid rgba($fontColor, 0.2);
      padding-bottom: 40px;
      &:last-child {
        margin-bottom: 0;
      }
      a {
        & > img {
          position: absolute;
          left: 0;
          max-width: 90px;
        }
      }
    }
    a.remove {
      margin-top: -4px;
      margin-right: 9px;
    }
    .rating-product {
      margin-bottom: 7px;
    }
  }
  .product-title {
    display: block;
    font-size: 16px;
    margin-bottom: 3px;
  }
  del {
    .woocommerce-Price-amount {
      color: $fontColor;
      font-weight: 300;
    }
  }
  del {
    padding-right: 1em;
  }
}
//same as .product-title in other widgets
.widget_recent_reviews a {
  font-size: 18px;
  font-weight: 400;
}


//price slider
.widget_price_filter {
  .price_slider {
    margin-bottom: 1em;
  }

  .price_slider_amount {
    margin-top: 3.4em;
    text-align: right;
    @media (max-width: 1199px) {
      margin-top: 1em;
    }
    .button {
      float: left;
    }
  }

  .ui-slider {
    position: relative;
    text-align: left;
    .to,
    .from {
      color: $fontColor;
      font-size: 16px;
      left: 71%;
      letter-spacing: 1px;
      position: absolute;
      top: 15px;
    }
    .from {
      left: 5%;
    }
  }

  .ui-slider .ui-slider-handle {
    position: absolute;
    z-index: 2;
    width: 10px;
    height: 10px;
    cursor: ew-resize;
    outline: none;
    background: $colorMain;
    box-sizing: border-box;
    margin-top: -3px;
    opacity: 1;
    border-radius: 50%;

    &:last-child {
      margin-left: -0.7em;
    }

    &:hover,
    &.ui-state-active {
      box-shadow: 0 0 0 .236em rgba(#000, 0.1);
    }
  }

  .ui-slider .ui-slider-range {
    position: absolute;
    z-index: 1;
    font-size: .7em;
    display: block;
    border: 0;
    background: $colorMain;
  }

  .price_slider_wrapper .ui-widget-content {
    background: rgba(0, 0, 0, 0.1);
  }

  .ui-slider-horizontal {
    height: 4px;
  }

  .ui-slider-horizontal .ui-slider-range {
    top: 0;
    height: 100%;
  }

  .ui-slider-horizontal .ui-slider-range-min {
    left: -1px;
  }

  .ui-slider-horizontal .ui-slider-range-max {
    right: -1px;
  }
}


//same as tags
.widget_product_tag_cloud {
  a {
    padding: 5px 6px;
    margin: 0 3px 9px;
    text-align: center;
    display: inline-block;
    font-size: 16px !important;
    line-height: 1;
    transform: skew(-22deg);
    color: $lightColor;
    background: linear-gradient(to top, $colorMain3 0%,$colorMain4 69%, $colorMain 100%);
    font-weight: 400;
    background-size: 200% auto;
    border-image-slice: 1;
    span {
      font-style: italic;
      display: inline-block;
      transform: skew(22deg);
    }
    &:hover {
      opacity: 1 !important;
      background: linear-gradient(to bottom, $colorMain3 0%,$colorMain4 69%, $colorMain 100%);
    }
  }
}

//same as _nav_cat_arch_meta_pages
.woocommerce-MyAccount-navigation,
.widget_layered_nav,
.widget_layered_nav_filters,
.widget_product_categories {
  ul {
    padding: 0;
    list-style: none;
    width: 100%;
    ul {
      li {
        padding-left: 20px;
        &:last-child {
          padding-bottom: 0;
          border-bottom: none;
        }
      }
    }
  }
  li {
    border-top: 1px solid rgba($borderColor, 0.2);
    border-bottom: 1px solid rgba($borderColor, 0.2);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    & > a {
      flex-grow: 10;
      display: inline-block;
      padding-top: 14px;
      padding-bottom: 14px;
      &.active {
        color: $darkColor;
        font-weight: 500;
      }
    }
    &:before {
      @include widget-a-before();
    }
    &.is-active {
      font-weight: 700;
    }
  }
  li + li {
    border-top: none;
  }
}

/*shopping cart*/
.shop_table {
  .product-remove {
    text-align: center;
  }
  margin-top: 0;
  .amount {
    font-weight: 600;
    color: #4c4c4c;
  }
  th {
    @include small-text();
    border-bottom: 1px solid rgba($borderColor, 0.2);
    vertical-align: bottom;
  }
  .remove {
    font-size: 2em;
  }
  .product-thumbnail {
    img {
      max-width: 70px;
    }
  }
  .actions {
    padding-top: 2em;
    text-align: right;
    padding-bottom: 28px;
    @media(max-width: 767px) {
      text-align: left;
    }
  }
  .coupon {
    float: left;
    @media(max-width: 767px) {
      margin-bottom: 15px;
    }
    label {
      display: none;
    }
    [type="text"] {
      width: auto;
      height: 41px;
      @media(max-width: 767px) {
        width: 200px;
        margin-right: 15px;
      }
    }
    [type="submit"] {
      position: relative;
      margin-top: 10px;
      @media(min-width: 768px) {
        margin-top: 0;
      }
    }
    @media(max-width: 991px) {
      .button {
        padding: 7px 20px;
      }
    }
  }
  @media(max-width: 991px) {
    display: block;
    width: 100%;
    overflow-x: auto;
    -ms-overflow-style: -ms-autohiding-scrollbar; // See https://github.com/twbs/bootstrap/pull/10057
  }
}

.cart-collaterals {
  clear: both;
  margin-top: 3em;
  display: flex;
  flex-direction: column;

  h2 {
    @include widget-title();
  }
  .cart_totals {
    order: -1;
  }
  .shop_table.shop_table_responsive {
    display: inline-table;
    @media (min-width: 768px) {
      max-width: 75%;
    }
  }
  .wc-proceed-to-checkout {
    margin: 3em 0 10px;
    @media (max-width: 991px) {
      margin-bottom: -5px;
    }
  }
}

/*shop checkout*/
//col2-set is used on cart and account addresses edit page

.checkout {
  &:before,
  &:after {
    display: block;
    content: '';
    clear: both;
  }
}

.woocommerce-NoticeGroup {
  margin-bottom: 30px;
}

.col2-set {
  margin: 0 -15px;
  .col-1,
  .col-2 {
    max-width: none;
  }
  @media(min-width: 992px) {
    & {
      &#customer_details {
        flex-direction: column;
        width: 65%;
        float: left;
      }
    }

    & ~ #order_review_heading,
    & ~ #order_review {
      float: right;
      width: 32%;
      margin-top: 0;
    }
  }
}

td.product-name {
  width: 700px;
}

#payment {
  ul {
    margin: 1em 0;
    list-style: none;
    padding-left: 0;
  }
  [type="radio"] {
    opacity: 0;
    margin-left: -10px;
  }
  label {
    margin-bottom: 0;
  }
}

.wc_payment_method .payment_box {
  margin-top: 0.8em;
  padding: 0.8em 1em;
  background-color: $universalBackgroundColor;
}

//div.form-row is used in bootstrap 4 forms - overriding with P tag
.place-order.form-row {
  display: block;
  margin: 2em 0 0;
}

p.form-row {
  display: block;
  margin-left: 0;
  margin-right: 0;
  margin-bottom: 20px;
  label {
    display: none;
    margin-bottom: 0;
  }
  @media(min-width: 992px) {
    &.form-row-first {
      width: 50%;
      float: left;
      padding-right: 10px;
    }
    &.form-row-last {
      width: 50%;
      float: left;
      padding-left: 10px;
    }
  }
  &.notes,
  &.form-row-wide {
    width: 100%;
    clear: both;
  }
}

//js hide and show forms
.woocommerce-info {
  & + .checkout_coupon,
  & + .login {
    display: none;
    //this not need in WP?
    width: 100% !important;
  }
}

.lost_reset_password {
  p.form-row.form-row-first {
    margin-right: 0;
    width: 100%;
  }
}

.lost_reset_password,
form.login {
  text-align: center;
  @media(min-width: 992px) {
    width: 50%;
    margin: auto;
  }
  .button {
    margin-top: 15px;
    margin-bottom: 15px;
  }
}

/*shop account subpages*/
@media(max-width: 767px) {
  .woocommerce-MyAccount-navigation {
    margin-bottom: 50px;
  }
}
@media(min-width: 768px) {
  .woocommerce-MyAccount-navigation {
    padding-left: 60px;
    float: right;
    width: 30%

  }
  .woocommerce-MyAccount-content {
    float: left;
    width: 65%
  }
}

@media(min-width: 768px) and (max-width: 991px) {
  .woocommerce-MyAccount-navigation {
    padding: 30px !important;
  }
}

/*
order details
*/

.woocommerce-order-details {
  margin-top: 2.5em;
}

.woocommerce-customer-details {
  margin-top: 3.5em;

  h3 {
    margin-top: 1em;
  }
}

ul.wc-item-downloads {
  margin: 0.5em 0;
}

.order-again {
  margin-top: 2em;
}

a.woocommerce-LoopProduct-link {
  display: block;
  overflow: hidden;
  img {
    transition: all 1s ease-in-out;
  }
}
a.woocommerce-LoopProduct-link:hover img {
  transform: scale(1.2, 1.2);
}

.count {
  color: $fontColor;
}

.product-categories a,
.wc-layered-nav-term a {
  color: $fontColor;
  &:hover {
    color: $colorMain;
  }
}

.dropdown_layered_nav_color {
  letter-spacing: 0.2em;
}

.product,
.widget_shopping_cart,
.widget_top_rated_products,
.widget_products,
.widget_recently_viewed_products,
.widget_recent_reviews {
  ol.flex-control-nav.flex-control-thumbs li img,
  .flex-viewport,
  ul li a > img {
  }
}

.up-sells.upsells.products {
  h5 {
    margin-bottom: 30px;
  }
}



.related.products .product img,
.up-sells.upsells.products img {
  border: 0;
}

table td.with-button {
  padding: 13px 24px;
}

.woocommerce-orders-table__cell.woocommerce-orders-table__cell-order-number a,
.download-product a {
  font-weight: 500;
  color: $darkColor;
  &:hover {
    color: $colorMain;
  }
}

.single_add_to_cart_button {
  margin-top: 29px;
}

.widget_product_tag_cloud {
  margin-bottom: -10px;
}





table.shop_table td, table.shop_table th {
  vertical-align: inherit;
}

.woocommerce-EditAccountForm.edit-account {
  legend {
    padding: 20px 0 10px;
    font-size: 30px;
    line-height: inherit;
    color: $darkColor;
    white-space: normal;
  }
}

.address-field.update_totals_on_change.validate-required {
  select {
    padding-left: 20px;
    border-top: 0;
    border-left: 0;
    border-right: 0;
    border-bottom: 1px solid rgba($fontColor, 0.2);
  }
}

.shop-card-dropdown {
  .dropdown-menu {
    padding: 60px 70px 69px;
    .widget_shopping_cart {
      h4 {
        margin-bottom: 52px;
      }
      .woocommerce-Price-amount {
        font-weight: 300;
        margin-right: 23px;
      }
    }
  }
  .widget_shopping_cart {
    ul li {
      padding-bottom: 25px;
      padding-left: 119px;
      a > img {
        max-width: 100px;
      }
    }
    .quantity.single {
      [type='number'] {
        height: 28px;
      }
      input {
        top: 7px;
        border: 0 !important;
        color: $colorMain;
        font-weight: 300;
      }
      [type="button"] + i {
        top: 7px;
      }
    }
    .product-title {
      margin-bottom: 0;
    }
    .shop-item p {
      margin-bottom: 0;
    }
    .woocommerce-mini-cart__total.total {
      margin-top: 36px;
      .woocommerce-Price-amount.amount {
        font-weight: 500;
      }
    }
  }
  a.button {
    color: $darkColor !important;
    &:first-child {
      margin-right: 5px;
    }
  }
  .woocommerce-mini-cart__buttons {
    margin-top: 31px;
  }
}
.cart-dropdown {
  .widget.woocommerce.widget_shopping_cart {
    .widgettitle {
      display: none;
    }
  }
  a.remove {
    position: absolute;
    right: 0;
    top: 65px;
    font-size: 0;
    z-index: 1;
    margin: 0 !important;
    &:before {
      color: $colorMain;
      font-size: 16px;
      font-family: 'icomoon';
      content: "\e916";
    }
    &:hover:before {
      color: $darkColor;
    }
  }
  .quantity {
    margin-top: 10px;
    display: block !important;
  }
  .minicart-product-meta {
    margin-top: 10px;
  }
}


ul.products.list-view  {
  li.product {
    width: 100%;
    @media (min-width: 1200px) {
      width: 50%;
    }
    .vertical-item.padding-small.content-padding .item-content {
      padding: 0 24px 0 0;
      .star-rating {
        margin: 15px auto 0;
      }
      .price {
        margin: 15px 0 0;
      }
    }
  }
  .product-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    img {
      max-width: 200px;
    }
  }
  &:hover .add_to_cart_button {
    bottom: 40%;
  }
}

#toggle_shop_view {
  margin-left: 14px;
  &:before,
  &:after {
    font-family: 'icomoon';
    display: inline-block;
    font-size: 14px;
    transition: all 0.2s ease-in-out 0s;
  }
  &:after {
    content: "\e91c";
    color: $darkColor;
  }
  &:before {
    margin-right: 16px;
    content: "\e91b";
    color: $fontColor;
  }
}

.grid-view {
  &:before {
    color: $darkColor !important;
  }
  &:after {
    color: $fontColor  !important;
  }
}

#sort_view {
  color: #333333;
  display: inline-block;
  padding: 12px 16px 13px;
  font-size: 14px;
}

.shop-form {
  justify-content: space-between;
  padding: 5px 40px;
  @media (max-width: 575px) {
    padding: 17px 17px 5px;
  }
  .woocommerce-ordering {
    select {
      border: 0;
      max-width: 180px;
    }
  }
}

.woocommerce.widget_recently_viewed_products .widget-title {
  margin-bottom: 37px;
}

.button {
  white-space: inherit !important;
}

ul li.product {
  a.button {
    left: 50%;
    position: absolute;
    z-index: 10;
    bottom: 50%;
    transition: all 0.2s ease-in-out 0s;
    opacity: 0;
    transform: translateY(100px) translateX(-50%);
    padding: 7px 11px;
    overflow: hidden;
    min-width: 180px;

    &:hover {
      background-color: $colorMain2;
    }

    span {
      display: inline-block;
      width: 100%;
      height: 100%;
      transition: all 0.3s;
    }

    &:active {
      position: absolute;
      top: auto !important;
    }
  }
  a.add_to_cart_button {
    &:before {
      font-family: 'FontAwesome';
      content: "\f07a";
      position: absolute;
      height: 100%;
      width: 100%;
      color: $darkColor;
      line-height: 38px;
      font-size: 20px;
      transition: all 0.3s;
    }

    &:hover span {
      transform: translateY(200%);
    }

    &:before {
      left: 0;
      top: -50px;
    }

    &:hover:before {
      top: 0;
    }
  }
}

ul li.product:hover a.button {
  transform: translateY(0) translateX(-50%);
  opacity: 1;
}

#review_form form.comment-form {
  textarea {
    background-image: linear-gradient(transparent, transparent 30px, rgba($fontColor, 0.2) 30px, rgba($fontColor, 0.2) 31px, transparent 31px) !important;
    background-size: 100% 40px;
    line-height: 40px !important;
    padding: 0;
    height: 111px;
  }
  .comment-form-rating {
    .select-wrap {
      display: none;
    }
  }
}

.woocommerce-page.post-type-archive-product, .woocommerce-page.single-product, .woocommerce-page.tax-product_cat {
  @media(min-width: 1200px){
    .col-lg-7.col-xl-8.column-main{
      flex: 0 0 75%;
      max-width: 75%;
    }
    .column-sidebar{
      flex: 0 0 25%;
      max-width: 25%;
    }
    .c-gutter-70 [class*="col-"], .row.c-gutter-70 > [class*="col-"] {
      padding-right: 15px;
      padding-left: 15px;
    }
  }
}

.woocommerce {
  .comment-form input[type="submit"] {
    width: auto;
  }

  .related.products h2 {
    display: none;
    &.woocommerce-loop-product__title {
      display: block;
    }
  }

  .sub-title {
    margin-top: 0;
    font-weight: 300;
  }

  .woocommerce-ordering {
    .select_container:before {
      display: none;
    }
  }
  .select2-container .select2-selection--single {
    height: 50px;
    border-radius: 0;
    border-color: rgba($fontColor, 0.2);
    .select2-selection__rendered {
      line-height: 50px;
      padding-left: 20px;
    }
    .select2-selection__arrow {
      height: 50px;
      right: 17px;
      b {
        border-color: $colorMain transparent transparent transparent;
      }
    }
    .select2-selection__placeholder {
      color: $fontColor;
      font-weight: 400;
    }
    .select2-selection__clear {
      display: none;
    }
  }
  .product_title {
    font-size: 20px;
    font-weight: 500;
  }
  .woocommerce-product-details__short-description {
    margin-top: 21px;
    margin-bottom: 15px;
  }

  .quantity {
    display: inline-block;
    position: relative;
  }
  .quantity [type="button"] {
    cursor: pointer;
    position: absolute;
    right: 13px;
    top: 50%;
    transform: translateY(-50%);
    line-height: 1;
    color: transparent;
    border: none;
    width: 20px;
    height: 10px;
    background-color: transparent;
    z-index: 1;
  }
  .quantity [type="button"].minus {
    left: 13px;

  }
  .quantity [type="button"].minus + i {
    left: 13px;
  }
  .quantity i {
    position: absolute;
    right: 13px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    width: 20px;
    text-align: center;
    line-height: 10px;
    color: $fontColor;
    display: inline-block;
  }
  .quantity [type='number'] {
    padding-right: 20px;
    padding-left: 20px;
    height: 60px;
    line-height: 60px;
    text-align: center;
    max-width: 5em;
    color: $darkColor;
    background-color: $greyColor;
    border: none;
  }
  .quantity [type='number']::-webkit-inner-spin-button, .quantity [type='number']::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
  }

  .quantity + button {
    display: table;
  }

}

.woocommerce-terms-and-conditions-wrapper {
  margin-bottom: 20px;
}

.checkout.woocommerce-checkout {
  .select2-selection.select2-selection--single {
    border-top: 0;
    border-left: 0;
    border-right: 0;
  }
  h3 {
    font-size: 30px;
  }
}

.woocommerce-additional-fields {
  margin-top: 40px;
}

.price-product .price {
  margin-bottom: 20px;
  .woocommerce-Price-amount.amount {
    margin-top: 16px;
    font-weight: 500;
    color: $colorMain;
  }
  del span.woocommerce-Price-amount {
    color: $fontColor !important;
    margin-right: 10px;
  }
}

form.woocommerce-cart-form .shop_table.cart.woocommerce-cart-form__contents {
  margin-top: -10px;
  @media (max-width: 991px) {
    margin-top: -20px;
  }
}

.woocommerce  .form-row.form-row-wide.address-field.update_totals_on_change.validate-required {
  .select2-container .select2-selection--single .select2-selection__rendered {
    padding-left: 0;
  }
}

.comment-form-rating {
  .select_container {
    display: none;
  }
}

.woocommerce-account.woocommerce-page h2  {
  text-align: center;
  margin-top: -15px;
  margin-bottom: 30px !important;
}

.about_paypal {
  display: block;
}

.woocommerce-billing-fields,
.woocommerce-additional-fields {
  margin-left: -20px;
  margin-right: -20px;
}


@media (min-width: 991px) {
  .woocommerce-cart-form {
    top: -10px;
    position: relative;
  }
}

.wc_payment_method.payment_method_paypal {
  padding-left: 7px;
  padding-top: 4px;
  input#payment_method_paypal {
    display: none;
  }
  @media (max-width: 991px) {
    img {
      display: block;
    }
  }
}

.woocommerce-EditAccountForm.edit-account fieldset {
  margin-bottom: 30px;
}

.woocommerce-grouped-product-list.group_table {
  margin-bottom: 18px;
  td, th {
    vertical-align: middle;
  }
  .woocommerce-grouped-product-list-item {
    .woocommerce-grouped-product-list-item__label label {
      display: block !important;
    }
  }
  del {
    margin-right: 10px;
  }
}

.cart.grouped_form {
  .single_add_to_cart_button {
    margin-top: 3px;
  }
}

.woocommerce-Reviews {
  .woocommerce-noreviews {
    margin: 0 0 10px;
  }
  .woocommerce-Reviews-title {
    margin-bottom: 12px !important;
  }
  .commentlist {
    margin-top: 30px;
  }
}

.products.columns-4 {
  a.button {
    min-width: 140px;
  }
}

.checkout.woocommerce-checkout {
  .woocommerce-shipping-fields {
    margin: 30px -20px 0;
    + .woocommerce-additional-fields {
        margin-top: 0;
    }
  }
}

.woocommerce-Addresses.col2-set.addresses {
  margin: 0 -35px;
}

.woocommerce-address-fields {
  button {
    margin-top: 25px;
  }
  span.select2-selection.select2-selection--single {
    border-top: 0;
    border-left: 0;
    border-right: 0;
  }
}

.shop_table .quantity [type='number']::-webkit-inner-spin-button, .shop_table .quantity [type='number']::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}


.woocommerce-shipping-totals.shipping .woocommerce-shipping-methods {
  display: none;
}



@media (min-width: 575px) and (max-width: 1199px) {
  .woocommerce-grouped-product-list.group_table td.woocommerce-grouped-product-list-item__quantity {
    width: 50%;
  }
}
@media (min-width: 768px) and (max-width: 992px) {
  .woocommerce-grouped-product-list.group_table td.woocommerce-grouped-product-list-item__quantity {
    display: none;
  }
}

ul.products .product h2 {
  line-height: 1.3;
  margin-bottom: -5px;
}
