.fajor-fair-header-wrapper .mb-avg-rating-show{
    display: none;
}
.woocommerce-product-gallery .wd-carousel-inner figure.woocommerce-product-gallery__wrapper{
    overflow: visible !important;
}
.add-to-cart-button-wrapper .add-to-cart-price {
  display: none;
}
.single-product .woocommerce-product-gallery .wd-carousel-inner figure img{
  height: 100% !important;
  width: 368px;
}

.woocommerce-product-gallery {
  height: var(--sp-image-height) !important;
}

.woocommerce-product-gallery .wd-carousel-inner {
  height: var(--sp-image-height) !important;
}

.woocommerce-product-gallery .wd-carousel-inner figure {
  height: var(--sp-image-height) !important;
}

.single-product .product-image-summary-wrap .product-image-summary-inner form div.add-to-cart-button-wrapper {
  flex: 0;
}

.single-product .product-image-summary-wrap .product-image-summary-inner form.cart div.quantity {
    order: unset;
}
.woocommerce-product-details__short-description p:first-of-type {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 5px !important;
}
.woocommerce-product-details__short-description p:not(:first-of-type) {
  display: none;
}

.wd-product.wd-hover-base.has-stars:is(.purchasable,.product-type-external) .product-rating-price {
  height: unset !important;
}

@media (max-width: 767px) {
    .product-image-summary-inner.wd-grid-g {
        flex-direction: column;
    }

    .woocommerce-product-gallery .wd-carousel-inner {
      display: block;
      width: calc(100% - 63px);
    }

    .single-product .woocommerce-product-gallery,
    .single-product .woocommerce-product-gallery .wd-carousel-inner,
    .single-product .woocommerce-product-gallery .wd-carousel-inner figure {
      height: calc(100vw + 18px) !important;
      max-height: none !important;
    }

    .woocommerce-product-gallery .wd-carousel-inner img {
      object-fit: cover;
    }
    .fajrfair-preview-text-wrapper{
      position: absolute;
      right: -35px;
      bottom: 150px;
    }
    .product-image-summary-inner .fajrfair-price-wrapper{
      margin-bottom: 5px;
    }

    .product-image-summary-inner p.stock{
      margin-bottom: 30px;
    }

    .single-product .campaign-banner {
      display: none !important;
    }

    .product-image-summary-wrap .add-wish-and-share{
      margin-left: 27px;
    }

    .product-image-summary-wrap .add-wish-and-share .fajor-fair-add-wishlist a span{
      font-size: 13px;
    }

    .product-image-summary-wrap .add-wish-and-share .fajor-fair-custom-social-share a span{
      font-size: 13px;
    }
    .product-image-summary-inner .summary-inner div.quantity input[type="number"] {
      font-weight: bold;
    }

    .fajrfair-preview-link{
        position: absolute;
        top: 68%;
        transform: translateY(-50%) rotate(90deg);
        transform-origin: center;
        display: inline-flex;
        flex-direction: row-reverse;
        align-items: center;
        gap: 8px;
        padding: 6px 10px;
        text-decoration: none;
        border-radius: 6px;
        white-space: nowrap;
        font-weight: 600;
        -webkit-transform: translateY(-50%) rotate(90deg);
        -moz-transform: translateY(-50%) rotate(90deg);
        -ms-transform: translateY(-50%) rotate(90deg);
        -o-transform: translateY(-50%) rotate(90deg);
        -webkit-border-radius: 6px;
        -moz-border-radius: 6px;
        -ms-border-radius: 6px;
        -o-border-radius: 6px;
    }

    .fajrfair-preview-link .preview-icon{
        display: inline-flex;
        align-items: center;
        justify-content: center;
        transform: rotate(180deg);
        -webkit-transform: rotate(180deg);
        -moz-transform: rotate(180deg);
        -ms-transform: rotate(180deg);
        -o-transform: rotate(180deg);
    }

    .fajrfair-preview-link .preview-text {
        display: inline-block;
        transform: rotate(-180deg);
        -webkit-transform: rotate(-180deg);
        -moz-transform: rotate(-180deg);
        -ms-transform: rotate(-180deg);
        -o-transform: rotate(-180deg);
    }

    .product-image-summary-inner .fajor-fair-header-wrapper{
        flex-direction: column;
    }

    .fajor-fair-header-title h1{
        margin-bottom: 0px;
    }
    .mb-avg-rating-show{
        display: block !important;
    }
    .fajor-fair-header-wrapper .fojor-fair-rating{
        display: flex;
    }
    .single-product-rating-count{
        font-size: 14px;
        font-weight: bold;
    }

    .add-to-cart-button-wrapper{
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: var(--white);
        padding: 12px 16px;
        box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.08);
        z-index: 9998;
        height: 81px;
    }

    .single_add_to_cart_button,
    .single_add_to_cart_button:active,
    .single_add_to_cart_button.loading,
    .single_add_to_cart_button.added {
        position: fixed;
        bottom: 18px;
        left: 16px;
        right: 16px;
        width: calc(100% - 32px) !important;
        color: var(--white);
        font-weight: 600;
        font-size: 15px;
        border: none;
        text-align: center;
        z-index: 9999;
        box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    }

    .wd-toolbar-label-show{
        display: none;
    }

    .fajrfair-whatsapp-button{
        width: 100% !important;
    }

    .product-image-summary-inner .summary-inner #wd-add-to-cart{
      width: calc(100% - 186px);
    }
    .product-image-summary-inner.wd-grid-g {
      gap: 30px;
    }

    .product-image-summary-inner .summary .summary-inner h1 {
      font-size: 33px;
    }

    .fajor-fair-share-icons::before {
      left: 50%;
      top: -18px;
      transform: translateX(-50%);
      border-color: transparent transparent #000 transparent;
      border-style: solid;
      border-width: 9px;
      z-index: 9998;
    }

    .fajor-fair-share-icons::after {
      content: '';
      position: absolute;
      left: 50%;
      top: -16px;
      transform: translateX(-50%);
      border-style: solid;
      border-width: 8px;
      border-color: transparent transparent #fff transparent;
      z-index: 9999;
      -webkit-transform: translateX(-50%);
      -moz-transform: translateX(-50%);
      -ms-transform: translateX(-50%);
      -o-transform: translateX(-50%);
    }

    .fajor-fair-share-icons{
      top: 30px;
      left: -50px;
    }

    .add-to-cart-button-wrapper .add-to-cart-price {
      display: inline-block;
      margin-left: 6px;
      font-weight: 600;
    }

    .add-to-cart-button-wrapper .add-to-cart-price span.amount{
      color: var(--white);
    }

    .single-product .wd-builder-off {
      padding-block: 20px !important;
    }

    .single-product .woocommerce-breadcrumb {
      font-size: 14px !important;
      line-height: 100% !important;
    }

    .single-product .single-breadcrumbs-wrapper {
      margin-bottom: 30px !important;
    }

    .related-and-upsells .related-products [class*="wd-grid"] {
        --wd-col-sm: 1 !important;
    }

    .related-and-upsells h2.slider-title {
        font-size: 21px;
        font-weight: 700;
        color: var(--black);
        margin-bottom: 26px;
    }

    .related-products .wd-nav-arrows.wd-pos-sep {
        right: 18px !important;
        top: -19px !important;
    }

    .related-products .wd-nav-arrows.wd-pos-sep .wd-prev {
        width: 31px !important;
        height: 31px !important;
        margin-right: 8px !important;
    }
    .related-products .wd-nav-arrows.wd-pos-sep .wd-next {
        width: 31px !important;
        height: 31px !important;
    }

    .single-product-page .related-and-upsells .product-element-bottom h2.woocommerce-loop-product__title {
        font-size: 18px !important;
        font-weight: 700 !important;
        color: var(--black) !important;
        text-overflow: ellipsis;
        overflow: hidden !important;
        width: 16ch;
        white-space: nowrap;
    }

    .related-products .wd-product :is(.wd-product-cats,.wd-product-brands-links) a {
        font-size: 14px !important;
        font-weight: 500 !important;
        text-overflow: ellipsis;
        overflow: hidden !important;
        width: 20ch;
        white-space: nowrap;
    }

    .related-products .product-wrapper .price {
        font-size: 21px !important;
        font-weight: 700 !important;
    }

    .product-related-and-upsells .related-products .wd-product :where(.product-wrapper,.product-element-bottom) {
        gap: 6px !important;
    }

    .product-related-and-upsells .product-element-bottom.product-information {
        align-self: center;
        margin-left: 20px;
    }

    .related-products .product-wrapper .product-rating-price {
        padding-top: 0 !important;

    }

    .wd-carousel-container.related-products .product-labels.labels-rounded .product-label {
        font-size: 10px !important;
        min-width: 35px;
        min-height: 35px;
        padding: 0 !important;
    }

    .single-product .woocommerce-tabs.tabs-layout-accordion.wd-accordion{
      display: none;
    }

    .single-product .woocommerce-breadcrumb .wd-last-link ~ span{
      display: block !important;
    }
}

.single-product-page .product-image-summary-wrap {
  min-height: 540px !important;
}

