/* -------------------------------------------
	@Component - WooCommerce
---------------------------------------------- */

@import '../config';
@import '../mixins';
@import '../direction';

/* -------------------------------------------
    Woocommerce Blocks
        1. Editor Style
           1-1  Base Style
           1-2  Woo Page Header
           1-3  Login Form
           1-4  Woocommerce Info
           1-5  Sub Pages
           1-6  Overlay
           1-7  Rating Form
           1-8  WCML
           1-9  Yith Compare
        2. Sidebar Widget
           2-1  Base Style
           2-2  Product List
           2-3  Cart
           2-4  Product Tag Cloud
           2-5  WC Reviews
        3. Single Product Summary Styles
        4. Compatibility
---------------------------------------------- */

// 1. Editor Style

// 1-1. Base Style
.form-row .select2-container .select2-selection {
  display: flex;
  align-items: center;
  position: relative;
  padding: var(--alpha-form-field-padding);

  .select2-selection__rendered {
    padding-left: 0;
    padding-right: 0;
    color: inherit;
    line-height: inherit;
  }

  .select2-selection__arrow {
    height: auto;
    position: absolute;
    top: 50%;
    #{$right}: 0;
    width: 20px;
    transform: translateY(-50%);
  }
}

.select2-results__option,
.select2-search--dropdown {
  padding: 0.85rem 2rem;
}

.select2-selection__arrow {

  b {
    display: none;
  }

  &:before {
    content: '\e910';
    position: relative;
    #{$right}: 4px;
    font-family: $framework-font;
    font-size: 11px;
    font-weight: 400;
    line-height: 41px;
  }
}

.woocommerce-form {
  .form-row {
    margin-bottom: 1.8rem;
  }

  label {
    margin-bottom: 8px;
  }
}

.woocommerce-form__label-for-checkbox:hover {
  cursor: pointer;
}

.woocommerce .button,
.woocommerce .btn,
.product-quickview .button,
.product-quickview .btn {
  border-radius: var(--alpha-border-radius);
}

.empty-icon {
  font-size: 100px;
  color: #d3d3d4;
}

// 1-2. Woo Page Header
.woo-page-header {
  padding-top: 3rem;

  .elementor-widget & {
    padding-top: 0;
  }

  .breadcrumb {
    justify-content: center;
    padding: 2rem 1rem;
    font-family: var(--alpha-body-font-family);
    font-size: 2rem;
    font-weight: 600;
    line-height: 1.8;
    color: var(--alpha-change-color-dark-1);
    border-bottom: 0;

    a {
      opacity: 1;

      &:hover,
      &:focus {
        color: var(--alpha-primary-color);
      }
    }
  }

  .current {
    a {
      color: var(--alpha-primary-color);
    }

    &+li {
      color: var(--alpha-body-color);
    }

    .delimiter {
      color: var(--alpha-change-color-dark-1);
    }
  }

  .disable {
    color: var(--alpha-body-color);
    pointer-events: none;
  }

  .delimiter {
    margin: side-values(0 0.6rem 0 1rem);
    opacity: 1;
    font-family: $framework-font;
    font-size: 1em;
    color: var(--alpha-grey-color);

    &::before {
      content: if-ltr("\e913", "\e912");
    }
  }

  li {
    display: flex;
    align-items: center;
  }
}

@include mq(xs, max) {
  .woo-page-header .breadcrumb {
    font-size: 1.8rem;
  }
}

// 1-3. Login Form
.form-footer label {
  margin-bottom: 0;
}

.lost_password {
  margin-bottom: 0;

  a {
    color: $danger-color;

    &:hover,
    &:focus {
      color: lighten($danger-color, 10%);
    }
  }
}

.woocommerce-privacy-policy-link {
  color: var(--alpha-primary-color);

  &:hover {
    text-decoration: underline;
  }
}

form {

  // for form login
  .submit-status {
    margin: 2rem 0 0;
    color: var(--alpha-danger-color);
  }
}

form.lost_reset_password {
  width: 450px;
  max-width: 100%;
  margin: 0 auto;
  border: 1px solid var(--alpha-change-border-color-light);
  padding: 5rem;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  background-color: var(--alpha-change-color-light-1);
}

.woocommerce>.login-popup {
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  background: var(--alpha-change-color-light-1);
}

.woocommerce-form .button,
.woocommerce-form-row .button {
  display: block;
  width: 100%;
}

.woocommerce-form-login {
  p {
    font-size: inherit;
    line-height: 1.84;

    &:empty:before {
      content: none;
    }
  }

  .form-row {
    margin-bottom: 1.5rem;

    label {
      display: inline-block;
      margin-bottom: 8px;
      line-height: 1.2;
    }

    span {
      vertical-align: middle;
    }

    .form-control {
      height: 3.7rem;
    }

    .input-text {
      background: var(--alpha-change-color-light-1);
    }

    input {
      margin-#{$right}: .5rem;

      &[type="radio"] {
        vertical-align: sub;
      }
    }
  }

  .login-popup & .form-row:nth-child(2) {
    margin-bottom: 2rem;
  }

  .user-role {
    margin: 2.7rem 0 2.5rem;

    .radio:first-child {
      margin-bottom: 1.2rem;
    }
  }

  .custom-checkbox {
    display: flex;
    align-items: center;

    input[type="checkbox"] {
      margin-#{$right}: 1rem;
    }

    label {
      margin-bottom: 0;
    }
  }

  .form-footer {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 1.3rem;

    p {
      margin-bottom: 6px;
      line-height: inherit;
    }
  }

  .button {
    padding: 1rem;
  }

  .lost-link {
    text-align: $right;
    color: $danger-color;

    &:hover {
      text-decoration: underline;
    }
  }

  .social-login {
    margin-bottom: 2.5rem;
    color: var(--alpha-grey-color);

    p {
      margin-bottom: 8px;
      font-size: 1.2rem;
    }
  }

  .social-icon {
    color: var(--alpha-body-color);

    &.framed {
      border-color: var(--alpha-change-color-light-3);
    }
  }

  .custom-checkbox {
    margin-bottom: 2.5rem;
    line-height: initial;
  }

  .woocommerce-password-strength {
    margin: 10px 0;
    padding: 8px;
    color: var(--alpha-change-color-light-1);
    text-align: center;
    background: var(--alpha-primary-color);

    &.short {
      background: $alert-color;
    }

    &.bad {
      background: $danger-color;
    }

    &.good {
      background: $success-color;
    }
  }

  .woocommerce-password-hint {
    font-size: 1.2rem;
    line-height: 1.86;
  }

  .title {
    font-size: 1.3rem;
    font-weight: normal;
    color: var(--alpha-body-color);
    margin-bottom: 1.5rem;
  }
}


// 1-4. Woocommerce Info
.main-content>.woocommerce-info {
  padding-top: 1.8rem;
}

ul.shop_table,
.woocommerce-error {
  padding: 0;
  margin: 0;
  list-style: none;
}

@include mq(lg) {
  .left-sidebar.closed~.main-content>.woocommerce-info {
    padding-#{$left}: 10rem;
  }
}

// 1-5. Sub Pages
.woocommerce .alert {
  display: block;
  margin-bottom: 2rem;
  padding-#{$right}: 4rem;
  background: transparent;
  border: 1px solid;

  i {
    margin-#{$right}: 5px;
  }

  .btn:first-child {
    margin-#{$right}: 1rem;
  }

  .btn-link {
    margin-#{$left}: .5rem;
    margin-#{$right}: 0;

    &:after {
      border-bottom-width: 2px;
    }
  }

  .button {
    width: auto;
  }

  .btn.btn-close {
    top: 50%;
    transform: translateY(-50%);
  }

  .close-icon {
    width: 14px;
    height: 14px;
  }

  .close-icon:before,
  .close-icon:after {
    color: inherit;
  }

  +.alert {
    margin-top: -1rem;
  }
}

.woocommerce {

  .alert-success a:not(.btn),
  .alert-success i {
    color: var(--alpha-success-color);
  }

  .alert-success a:not(.btn) {
    border-bottom: 1px solid;
  }

  .alert-danger a:not(.btn),
  .alert-danger i {
    color: var(--alpha-danger-color);
  }

  .alert-danger a:not(.btn) {
    border-bottom: 1px solid;
  }

  .alert-danger>.button {
    display: none;
  }

  .alert-info a:not(.btn),
  .alert-info i {
    color: var(--alpha-info-color);
  }

  .showcoupon+.btn-close,
  .showlogin+.btn-close {
    display: none;
  }
}

.compare-page .alpha-compare-table.empty {
  margin-top: 7rem;
}

.store-empty {

  p.woocommerce-info,
  td.woocommerce-info {
    margin: 0;
    padding: 1.8rem 1rem 2.8rem !important;
    font-size: 1.1428em;
    color: var(--alpha-body-color);
    background: transparent;
    text-align: center;

    &:before {
      content: none;
    }
  }

  table & tr td {
    text-align: center;
  }
}

// 1-6. Overlay
.blockOverlay {
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(100% + 10px) !important;

  background: var(--alpha-change-color-light-1) !important;
  opacity: 0.6 !important;
}

.woocommerce-cart .blockMsg,
.woocommerce-checkout .blockMsg {
  opacity: 0;
}

.woocommerce .add_to_wishlist .blockOverlay {
  background: transparent !important;
}

.woocommerce .blockUI.blockOverlay::before {
  background: none;
}

// 1-7. Rating Form
.comment-form-rating {
  color: var(--alpha-change-color-dark-1);
  margin-bottom: 2.2rem;
}

.stars {
  display: inline-block;
  margin: side-values(0 0 0 1rem);
  line-height: 1;

  .comment-respond & {
    margin-bottom: 0;
    vertical-align: 1px;
  }

  span {
    display: flex;
    position: relative;
    height: 1.2rem;
    font-size: 1.2rem;
  }

  a {
    color: var(--alpha-change-color-light-3);
    text-indent: if-ltr(-9999px, 9999px);
    width: 1.4rem;
  }

  a:before {
    content: '';
    position: absolute;
    #{$left}: 0;
    height: 14px;
    line-height: 1;
    font-family: $framework-font;
    text-indent: 0;
    overflow: hidden;
    white-space: nowrap;
    letter-spacing: 0.2em;
  }

  a.active:before,
  a:hover:before {
    content: "\e986" "\e986" "\e986" "\e986" "\e986";
    color: #ffda6b;
  }

  .star-1 {
    z-index: 10;
  }

  .star-2 {
    z-index: 9;
  }

  .star-3 {
    z-index: 8;
  }

  .star-4 {
    z-index: 7;
  }

  .start-5 {
    z-index: 6;
  }

  .star-1:before {
    width: 20%;
  }

  .star-2:before {
    width: 40%;
  }

  .star-3:before {
    width: 60%;
  }

  .star-4:before {
    width: 80%;
  }

  .star-5:before {
    content: "\e986" "\e986" "\e986" "\e986" "\e986";
  }
}

// 1-8. WCML
.wcml-spinner {
  display: none;
}

.entry-summary .product_meta .wcml_currency_switcher {
  display: none;
}

// 1-9. Yith Compare
.yith_woocompare_colorbox #cboxTopCenter,
.yith_woocompare_colorbox #cboxTopLeft,
.yith_woocompare_colorbox #cboxTopRight,
.yith_woocompare_colorbox #cboxMiddleLeft,
.yith_woocompare_colorbox #cboxMiddleRight,
.yith_woocompare_colorbox #cboxBottomLeft,
.yith_woocompare_colorbox #cboxBottomCenter,
.yith_woocompare_colorbox #cboxBottomRight {
  background: transparent;
  width: 0;
  height: 0;
}

@include mq('320px', 'max') {
  .page-content .woocommerce-form-login .lost_password {
    margin-#{$left}: 0;
  }
}

.woocommerce-store-notice.demo_store {
  display: block;
  text-align: center;
  width: 100%;
  position: absolute;
  top: 0;
  right: 0;
  bottom: auto;
  left: 0;
  padding: 1em 0;
  margin: 0;
  color: #fff;
  border: none;
  border-radius: 0;
  background-color: var(--alpha-primary-color);
  box-shadow: 0 1px 1em rgb(0 0 0 / 20%);
  font-size: 1em;
  z-index: 99998;

  .woocommerce-store-notice__dismiss-link {
    color: var(--alpha-white-color);
    border-bottom: 1px solid var(--alpha-white-color);
    transition: border-bottom-color .3s;

    &:hover {
      border-bottom-color: transparent;
    }
  }

  .admin-bar & {
    top: 32px;
  }
}


// 2. Sidebar Widgets

// 2-1. Base Style
.woocommerce-message {
  .button {
    width: auto;
  }
}

.woocommerce-product-gallery .woocommerce-product-gallery__trigger {
  display: none;
}

// 2-2. Product List
.product-list-sm {
  display: flex;
  align-items: center;

  .product-media {
    line-height: 1.6;
    flex: 0 0 10rem;
    max-width: 10rem;
    margin-#{$right}: 1rem;
  }

  .product-details {
    padding: 0;
    flex: 1;
    max-width: calc(100% - 11rem);
  }

  .woocommerce-loop-product__title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin-bottom: 0.6rem;
    font-size: 1.3rem;
    white-space: normal;
  }

  .woocommerce-product-rating {
    margin-bottom: 0.6rem;
  }

  .price {
    font-size: 1.6rem;
  }
}

// 2-3. Cart
.sidebar {
  .cart-header {
    display: none;
  }

  .cart_list {
    >li {
      position: relative;
      display: flex;
      align-items: center;
    }

    .cart-item-meta {
      order: 1;
      margin-#{$left}: 2rem;
    }

    img {
      width: 9.8rem;
    }

    .quantity {
      border: 0;
    }

    .remove {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 20px;
      height: 20px;
      position: absolute;
      top: 10px;
      left: 87px;
      z-index: 3;
      background: var(--alpha-change-color-light-1);
      color: var(--alpha-change-color-dark-1);
      font-size: 1.2rem;
      line-height: 12px;
      text-align: center;
      border-radius: 50%;
      box-shadow: 0 2px 6px 0 rgb(0 0 0 / 40%);
    }
  }

  .widget_shopping_cart a.button {
    color: var(--alpha-change-color-light-1);
    margin-#{$right}: 1rem;
  }
}

// 2-4. Product Tag Cloud
.sidebar .tagcloud {
  margin: .5rem 0;
}

// 2-5 WC Reviews
.wc-block-review-sort-select {
  display: flex;
  align-items: center;
}

.wc-block-review-list li {
  margin-bottom: 1rem;
}

.wc-block-all-reviews .wp-block-button__link {
  border: 0;
}

// 3. Single Product Summary Styles

.woocommerce-product-gallery {
  position: relative;
}

.woocommerce-product-gallery__image a,
.woocommerce-product-gallery__image img {
  width: 100%;
  display: block;
}

.product-thumbs-wrap {
  flex-basis: 100%;
  max-width: 100%;
}

.product-single .col-md-6 .woocommerce-product-gallery {
  position: sticky;
  top: 0;
}

.product-single-carousel-wrap {
  width: 100%;
}

.product-single-carousel~.slider-button-prev {
  #{$left}: 1.3em;
}

.product-single-carousel~.slider-button-next {
  #{$right}: 1.3em;
}

.product-gallery {
  position: relative;
  display: flex;
  flex-wrap: wrap;

  >div {
    position: relative;
    width: 100%;
  }
}

// Product Thumbs
.product-thumbs-wrap {
  position: relative;
  margin-top: calc(2 * var(--alpha-gap));
  overflow: hidden;
  flex-basis: 100%;
  max-width: 100%;

  img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .slider-button {
    background: var(--alpha-white-color);
    opacity: 0.9;
    border-radius: 0;
    height: 101%;
    width: 2.4rem;
    transition: opacity 0.3s;
  }

  >.disabled {
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s, visibility 0.3s;
  }

  .slider-button-prev {
    #{$left}: 1.2rem;
  }

  .slider-button-next {
    #{$right}: 1.2rem;
  }

  >button:not(.disabled):hover {
    opacity: 1;
  }
}

.product-thumb {
  position: relative;
  cursor: pointer;
  backface-visibility: hidden;

  .product-thumbs.active & {
    margin-#{$left}: 0;
  }

  .product-quickview &,
  .product-quickview & img {
    padding-bottom: 1px;
  }

  .product-thumb-inner {
    transition: border-color 0.3s;
    border: 1px solid transparent;
  }

  &.active .product-thumb-inner {
    border-color: var(--alpha-primary-color);
  }
}

.slider-container-initialized div.product-thumb {
  margin: 0;
}

// Product Detail
.product-single {
  position: relative;

  .summary>hr {
    margin-bottom: 1.5rem;
  }

  .variations {
    margin-bottom: 2.6rem;
  }

  .select-type {
    display: flex;
    align-items: center;
  }

  .product-soac-wrapper {
    align-items: center;

    .btn-product-icon {
      margin: side-values(0 2rem 1rem 0);

      span {
        display: none;
      }

      &.compare {
        color: var(--alpha-body-color);
      }
    }
  }
}

.woocommerce-product-details__short-description {
  line-height: 1.72;

  ul,
  p {
    margin-bottom: 1.8rem;
  }
}

.woocommerce-product-gallery .product-label-group {
  z-index: 2;
  #{$left}: 2rem;
}

.variations_form .quantity label,
.variations_form label {
  display: inline-block;
  min-width: 5rem;
}

.summary {
  padding: 0 0 3rem;

  // on product fullwidth page
  .container-fluid & {
    padding-top: 4px;
  }

  .woocommerce-review-link {
    color: var(--alpha-grey-color);
    font-size: 1.2rem;
  }

  .star-rating {
    letter-spacing: 0.1em;

    span::after {
      color: #ffda6b;
    }

    +a {
      line-height: 1.2;
    }
  }

  // variation - list box type
  .product-variations {

    >.active,
    >*:hover {
      border: 1px solid;
      box-shadow: inset 0 0 0 2px var(--alpha-change-color-light-1);
    }

    >.color {
      border-radius: 50%;

      &::before {
        content: "";
        position: relative;
        display: inline-block;
        font-family: "Font Awesome 5 Free";
        font-size: 1rem;
        font-weight: 600;
        letter-spacing: -0.025em;
        color: var(--alpha-change-color-light-1);
      }

      &:hover,
      &.active {
        border: none;
        box-shadow: none;
      }

      &.active {
        &::before {
          content: "\f00c";
        }
      }
    }
  }

  .yith-wcwl-add-to-wishlist {
    a {
      color: var(--alpha-body-color);

      &:hover {
        color: var(--alpha-primary-color);
      }
    }
  }

  .add-to-compare {
    display: inline-block;
    vertical-align: middle;
    margin-#{$right}: 3rem;
  }

  .social-icon {
    margin: side-values(0 0.6rem 0 0);

    &:last-child {
      margin: 0;
    }
  }

  .social-icons {
    display: flex;
    padding-top: 2rem;
    margin: 2rem 0 0;
    border-top: 1px solid var(--alpha-change-border-color);
  }

  .yith-wcwl-add-to-wishlist+.social-icons,
  .add-to-compare+.social-icons,
  .guide-link+.social-icons {
    margin-top: .8rem;
  }
}

.product-countdown-container {
  position: relative;
  margin: -0.6rem 0 1rem;
  font-weight: 600;
  color: var(--alpha-change-color-dark-1);

  .product-list-sm & {
    position: absolute;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    margin-bottom: 0;
    font-size: 9px;
    justify-content: center;

    .countdown-amount {
      margin-left: 0;
    }
  }

  &::before {
    content: "";
    position: absolute;
    height: 2.4rem;
    #{$left}: -1.7rem;
    top: 50%;
    transform: translateY(-50%);
    border-#{$right}: 1px solid var(--alpha-change-color-light-1);
    opacity: 0.2;
  }

  label {
    margin-#{$right}: 0.5rem;
    text-transform: none;
    font-weight: 400;
    color: var(--alpha-change-color-light-1);
  }

  .countdown-amount {
    color: inherit;
    font-size: inherit;
  }
}

.countdown-variations {
  display: none;
}

.product-countdown {
  display: inline;
  margin-#{$left}: 0.5rem;
  color: var(--alpha-primary-color);
  font-weight: 700;
}

.product-gallery+.product-countdown-container {
  position: absolute;
  bottom: 20px;
  margin: 0 -50% 0 50%;
  transform: translateX(-50%);
}

.product-variations>.disabled {
  cursor: not-allowed;
  opacity: 0.3;
}

.product_title {
  font-size: 2.8rem;
  font-weight: 600;

  a {
    color: inherit;

    &:hover {
      color: var(--alpha-primary-color);
    }
  }
}

.product-title-wrap {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 2px;

  .product_title {
    margin: side-values(0 1rem 0 0);
    padding: 0.85rem 0;

    @include mq(xs, max) {
      padding: 1rem 0;
    }
  }
}

.summary p.price {
  margin: 1.7rem 0 1.4rem;
}

p.price {
  font-size: 3.4rem;
  line-height: 1.2;
  letter-spacing: -0.025em;

  >* {
    display: inline-block;
    vertical-align: middle;
  }
}

p.price,
.woocommerce-variation-price .price {
  color: var(--alpha-primary-color);

  del {
    font-size: .65em;
    vertical-align: middle;
    margin-#{$left}: 1.3rem;
  }
}

// Variations Form
.woocommerce-variation-add-to-cart,
form.cart {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 1.1rem
}

form.cart {
  margin-top: 2.2rem;

  .quantity {
    margin-#{$right}: 1rem;
    height: 5.4rem;
  }

  label {
    font-weight: 600;
    line-height: 3.2rem;
    color: var(--alpha-change-color-dark-1);
    margin-#{$right}: 0.5rem;
  }

  &:not(.variations_form) .quantity-wrapper label {
    margin-#{$right}: 1rem;
  }
}

.quantity.hidden {
  display: none;
}

form.variations_form {
  display: block;
  margin-top: 1rem;
}

.variations {
  >* {
    display: flex;
    align-items: flex-start;
  }

  >*:not(:last-child) {
    margin-#{$right}: 4rem;
    margin-bottom: 1.4rem;
  }

  .select-box::before {
    #{$right}: 1.4rem;
    font-size: 1.2rem;
    color: var(--alpha-change-color-dark-1);
  }

  select {
    max-width: none;
    padding: side-values(0.8rem 3rem 0.8rem 1.4rem);
    color: var(--alpha-change-color-dark-1);
    border-color: var(--alpha-change-color-light-3);
    font-size: 1.3rem;
  }

  .reset-variation-cont {
    display: block;
  }

  .reset_variations {
    display: inline-block;
    color: var(--alpha-change-color-dark-1);
    padding: 0.3em 1em 0.2em;
    background: var(--alpha-change-color-light-2);
    font-size: 1.2rem;
    transition: color .3s, background .3s;

    &:hover {
      color: var(--alpha-white-color);
      background: var(--alpha-primary-color);
    }
  }

  .product-variations+select,
  .reset-variation-tr {
    display: none;
  }
}

hr.product-divider {
  margin-top: 0;
  margin-bottom: 2rem;
  width: 100%;
}

p.alpha-pre-order-date,
.woocommerce-variation p {
  display: inline-block;
  padding: 4px 2rem;
  margin-bottom: 1rem;
  margin-top: 1rem;
  border-radius: var(--alpha-corner-sm);
  color: var(--alpha-change-color-light-1);
  background: #d26e4b;
}

p.stock {
  padding: 0;
  background: transparent;
  color: var(--alpha-change-color-dark-1);
  line-height: 1.2;
}

.woocommerce-variation p.stock {
  margin-top: 0;
}

p.in-stock {
  &:before {
    content: '\e969';
    display: inline-block;
    font-size: 1.3em;
    font-family: $framework-font;
    color: var(--alpha-primary-color);
    vertical-align: middle;
    margin-#{$right}: 3px;
  }
}

p.out-of-stock {
  color: var(--alpha-danger-color);
  margin-bottom: 1.5rem;
}

.progress-wrapper.stock-progress {
  height: 7px;
}

.progress-bar {
  background-color: var(--alpha-success-color);

  .medium-progress & {
    background-color: var(--alpha-alert-color);
  }

  .low-progress & {
    background-color: var(--alpha-danger-color);
  }
}

.woocommerce-variation {
  display: none;


  .price {
    margin-bottom: 0;
  }
}

.woocommerce-variation>* {
  transform: translateY(-10px);
}

.action-group {
  display: flex;
  align-items: center;
  flex: 1;
  margin-bottom: 2rem;

  span {
    display: none;
  }

  .btn-product-icon {
    display: inline-block;
    text-align: center;
    vertical-align: middle;
    font-size: 1.6rem;
    color: var(--alpha-body-color);
    width: 4.5rem;
    height: 4.5rem;
    min-width: 4.5rem;
    margin: 0 0 0 1rem;
    border: 1px solid var(--alpha-change-color-light-3);
    border-radius: var(--alpha-corner-sm);

    &:hover {
      background-color: var(--alpha-primary-color);
      border-color: var(--alpha-primary-color);
      color: var(--alpha-change-color-light-1);
    }

    &::before {
      line-height: 4.5rem;
      margin: 0;
      padding: 0;
    }
  }
}

.single_add_to_cart_button {
  display: block;
  border: none;
  padding: 0 5rem;
  line-height: 5.4rem;
  text-transform: none;

  form.cart & {
    border: none;
  }

  &:not(:last-child) {
    flex: 1;
    margin-#{$right}: 1rem;
    padding: 0 1rem;
  }

  @include mq(md, max) {
    padding: 0 3rem;
  }

  @include mq(sm, max) {
    form.cart .product-sticky-content.fixed & {
      padding: 0;
    }
  }
}

.single_buy_now_button {
  flex: 1;
}

.product-meta-inner {

  // margin-bottom: 2.5rem;
  >span {
    display: flex;
    margin-bottom: 0.5rem;

    &:last-child {
      margin: 0;
    }
  }

  a:hover,
  a:focus {
    color: var(--alpha-primary-color);
  }

  .product-brands+& {
    margin: 0.5rem 0;

    span {
      margin: 0;
    }
  }
}

.product_meta {
  margin-bottom: 1rem;

  img {
    border-radius: inherit;
  }

  &:not(.no-brand-image) {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
  }

  .brand {
    border: 1px solid var(--alpha-change-border-color);
    border-radius: var(--alpha-border-radius);
    margin: side-values(0.5rem 1.7rem 0.5rem 0);

    img {
      width: auto;
      height: 4.8rem;
    }
  }
}

.no-brand-image .product-brands {
  margin-bottom: 0.5rem;
}

.product_meta label,
.product-tags label {
  margin-#{$right}: 0.5rem;
  color: var(--alpha-change-color-dark-1);
  font-weight: 600;
}


.product_meta label {
  margin-#{$right}: .8rem;
}

.product-single-gallery .woocommerce-product-details__short-description,
.product-single-gallery .product_meta {
  border-bottom: 0;
  margin-bottom: 0;
}

.product-single-gallery .variations {
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--alpha-change-border-color);
  margin-bottom: 2.5rem;
}

// Product Variations Form
.size-guide {
  line-height: 30px;
  font-weight: 300;

  i {
    margin-#{$right}: 0.5rem;
    font-size: 1.5rem;
  }
}

.woocommerce-variation-price {
  .price {
    font-size: 2.4rem;
  }
}

.product-widget {
  .variations {
    margin-bottom: 1.7rem;
  }

  form.cart:not(.variations_form),
  .woocommerce-variation-add-to-cart {
    border-top: 1px solid var(--alpha-change-border-color);
    padding-top: 2rem;
  }

  &.product-single div.summary {
    padding: 2.5rem 0 3rem;
  }

  div.woocommerce-product-gallery {
    margin-bottom: 0.4rem;
  }

  .quantity-wrapper label {
    display: none;
  }

  .summary {
    -webkit-mask-image: linear-gradient(to top, transparent 5px, #000 25px);
    mask-image: linear-gradient(to top, transparent 5px, #000 25px);
    -webkit-overflow-scrolling: touch;

    &::-webkit-scrollbar {
      width: 0;
    }
  }

  .yith-wcwl-add-to-wishlist a {
    padding: 0.3rem 0.8rem;
  }

  .product_title:hover a {
    color: var(--alpha-primary-color);
  }
}

@include mq(md) {

  // Single product widgets carousel
  .row>.product-single.row {
    margin-left: 0;
    margin-right: 0;
  }

  .row>.product-single.row> :first-child {
    padding-#{$left}: 0;
  }

  .row>.product-single.row> :last-child {
    padding-#{$right}: 0;
  }

  .product-widget .summary {
    height: 100%;
  }
}

@include mq(md, max) {
  .product-single.product-widget.row div.summary {
    padding-bottom: 1rem;
    max-height: none;
    overflow-y: visible;
  }
}

@include mq(xs, max) {
  .summary .social-icons:after {
    display: none;
  }
}

// Responsive, vertical thumbs
@include mq(lg) {
  .product-label-group.pg-vertical-label {
    #{$left}: 120px;
  }

  .pg-vertical {
    .product-single-carousel-wrap {
      max-width: calc(100% - 95px - 2 * var(--alpha-gap));
    }

    .product-thumbs-wrap {
      order: -1;
      max-width: 95px;
      margin: side-values(0 calc(2 * var(--alpha-gap)) 0 0);

      >button {
        border-radius: 0;
        width: 101%;
        height: 2.5rem;
        transform: none;

        &:before {
          margin: 0;
          font-size: 2rem;
          vertical-align: 4px;
        }
      }

      >.slider-button:before {
        font-family: $framework-font;
      }

      >.slider-button-prev {
        top: 0;
        left: 0;

        &::before {
          content: "\e911";
        }
      }

      >.slider-button.slider-button-next {
        top: auto;
        bottom: 0;
        right: 0;

        &::before {
          content: "\e910";
        }
      }
    }

    .product-thumbs {
      display: block;
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      margin: 0;
      width: 100%;
    }

    .product-thumb {
      height: auto;
      padding: 0;
      margin: 0 0 calc(2 * var(--alpha-gap));
    }

    .row>.product-thumb {
      flex: 0;
      max-width: none;
    }
  }

  .variations select {
    width: 20rem;
  }

  .product-widget {
    .pg-vertical .product-thumbs-wrap {
      max-width: 60px;
    }

    .pg-vertical .product-single-carousel-wrap {
      max-width: calc(100% - 70px);
    }

    .pg-vertical-label {
      #{$left}: 95px;
    }
  }
}

.product-single.product-widget .quantity {
  width: 15.2rem;
  margin-#{$right}: 1rem;
}

.products .product-single .quantity {
  width: 13.2rem;
}

// Grouped Product List

.woocommerce-grouped-product-list {
  margin-bottom: 3rem;
}

.woocommerce-grouped-product-list-item {
  padding: 1.5rem 0;

  .product-thumbnail {
    width: 9rem;
    padding: 1.5rem 0;

    img {
      padding-#{$right}: 1rem;
    }
  }

  .product-quantity {
    width: 10.7rem;

    .quantity-wrapper {
      margin: 0;

      label {
        display: none;
      }
    }

    .quantity {
      margin: 0;
    }

    .qty {
      line-height: 3.7rem;
    }
  }

  .button {
    padding: .9rem 2rem;
    font-size: 0.85em;
    text-transform: capitalize;
    background: transparent;
    border-color: var(--alpha-change-border-color);
    color: var(--alpha-change-color-dark-1);

    &:hover {
      color: var(--alpha-change-color-light-1);
      background-color: var(--alpha-primary-color);
      border-color: var(--alpha-primary-color);
    }
  }

  td {
    vertical-align: middle;
    border-top: 1px solid var(--alpha-change-border-color);

    &:last-child {
      padding-left: 0;
      padding-right: 0;
    }
  }

  .product-name {
    label {
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
      line-height: 1.4;
      color: var(--alpha-body-color);
    }

    a {
      font-weight: 400;
      color: inherit;

      &:hover {
        color: var(--alpha-primary-color);
      }
    }
  }

  .price-column {
    text-align: $right;

    .price {
      font-size: 1.4rem;
      margin: 0;
    }

    .stock {
      margin: 0 !important;
    }
  }

  @include mq(xs, max) {
    td {
      padding: 10px 5px;
    }

    .product-quantity {
      width: 9.7rem;
    }
  }
}

@media (max-width: 991px) and (min-width: 768px),
(max-width: 575px) {
  .product-type-grouped .summary {
    .social-icons {
      display: flex;
      float: none;
      margin-top: 1rem;
    }
  }
}

// Elementor widgets
.elementor-widget .product-attributes {
  list-style: none;
  padding: 0 0 2rem;
  border-bottom: 1px solid var(--alpha-change-border-color);

  li {
    display: flex;
    align-items: flex-start;
  }

  i {
    margin-#{$right}: 5px;
    line-height: var(--alpha-body-line-height);
    color: var(--alpha-change-color-dark-1);
  }

  p {
    margin: side-values(0 0 0 8px);
  }
}

.elementor-widget .variations_form {
  margin-top: 0;
}

// 4. Compatibility
// Product 360 Degree
div.product-gallery-degree .nav_bar a:before {
  font-family: $framework-font
}

.product-gallery-btn.open-product-degree-viewer {
  font-family: $theme-font !important;

  &:before {
    content: '\e9be';
  }
}

// Product Video Popup
.product-gallery-btn.open-product-video-viewer {
  font-family: $theme-font !important;

  &:before {
    content: '\e9bd';
  }
}