/**
 * Single Product Page Styles
 * Styles for WooCommerce single product pages
 */

/* ========================================
   Rating Section
======================================== */

.ast-container{
    padding-left: 40px;
    padding-right: 40px;
}

.single-product .mu-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 12px;
}

.single-product .mu-stars {
    display: flex;
    align-items: center;
    gap: 2px;
    font-size: 16px;
    letter-spacing: 0;
}

.single-product .mu-star {
    display: inline-block;
    font-size: 22px;
    line-height: 1;
}

.single-product .mu-star-filled {
    color: #08AC0A;
}

.single-product .mu-star-empty {
    color: #ddd;
}

.single-product .mu-rating-count {
    font-size: 14px;
    color: #777;
    font-weight: 500;
    text-decoration: none;
}

.single-product .elementor-widget-woocommerce-product-rating .mu-stars .mu-star.mu-star-filled svg,
.single-product .elementor-widget-woocommerce-product-rating .mu-stars .mu-star.mu-star-empty svg {
    width: 18px !important;
    height: 20px;
}

.mu-rating-count{
    font-size: 17px !important;
    height: 33px;
}

.single-product .mu-rating-count:hover {
    color: #000;
    cursor: pointer;
    text-decoration: underline;
}

.single-product .elementor-widget-woocommerce-product-rating .mu-no-review-text {
    color: #999;
    font-size: 0.9em;
    font-style: italic;
}

/* ========================================
   Hide Default WooCommerce Rating Elements
======================================== */
.single-product .woocommerce-product-rating .star-rating {
    display: none !important;
}

.single-product .woocommerce-product-rating .woocommerce-review-link span,
.single-product .woocommerce-product-rating .woocommerce-review-link strong {
    display: none;
}

.single-product .elementor-widget-woocommerce-product-rating .woocommerce-product-rating.mu-rating{
   line-height: 30px;
}

.single-product .elementor-widget-woocommerce-product-rating .mu-no-review-text{
    line-height: 12px;
}

.elementor-element.elementor-element-915e4b5.elementor-widget__width-initial.elementor-widget.elementor-widget-woocommerce-product-rating
{
    width: max-content;
}

.woocommerce-product-rating.mu-rating::before{
    content: none !important;
}

.woocommerce-product-rating.mu-rating::before{
    content: none !important;
}

.single-product .related.products .mu-no-review-text{
    height: 15px;
}

.single-product .related.products .mu-rating-count-for-products{
    height: 18px;
}

/*.related.products h2{*/
/*    font-size: 22px !important;*/
/*    margin-bottom: 10px !important;*/
/*}*/

.ahfb-svg-iconset
{
    display: none !important;
}

.woocommerce-notices-wrapper .woocommerce-message{
    margin-top: 20px !important;
    border: 1px solid #cccccc !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    border-radius: 10px;
}

.woocommerce-notices-wrapper .woocommerce-message::before{
    top: unset !important;
}
.woocommerce-notices-wrapper .woocommerce-message::after{
    content: none;
}

/*Sale*/
.related.products .ast-on-card-button.ast-onsale-card {
    background: #E01B1B;
    border-radius: 4px;
    font-size: 14px;
    font-family: 'Inter';
    right: 0.8em !important;
    top: 0.8em !important;
    color: white;
    text-transform: uppercase;
    left: unset !important;
    padding: 2px 4px;
    box-shadow: unset !important;
    font-weight: 500 !important;
    opacity: 0 !important;
    display: none !important;
}

.custom-save-badge{
    background: #E01B1B;
    border-radius: 4px;
    font-size: 14px;
    font-family: 'Inter';
    right: 0.8em !important;
    top: 0.8em !important;
    color: white;
    text-transform: uppercase;
    left: unset !important;
    padding: 2px 4px;
    box-shadow: unset !important;
    font-weight: 500 !important;
    width: max-content !important;
    position: absolute !important;
    line-height: 1.3em;
}


.custom-factory-badge{
    background: #D4DDDA;
    border-radius: 4px;
    font-size: 16px;
    font-family: 'Inter';
    color: #737373;
    text-transform: uppercase;
    padding: 4px 4px;
    box-shadow: unset !important;
    font-weight: 500 !important;
    width: max-content !important;
    line-height: 1.3em
}

.related.products ul.products li.mu-product-item a img{
    box-shadow: none !important;
}

@media (max-width: 1424px) and (min-width: 1024px){
    .woocommerce .related.products ul.products{
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media(max-width:1024px){
    
    .woocommerce .related.products ul.products{
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    /*.related.products h2{*/
    /*    font-size: 20px !important;*/
    /*    margin-bottom: 10px !important;*/
    /*}*/
    /*.astra-shop-thumbnail-wrap{*/
    /*    width:100% !important;*/
    /*}*/
    
    /*.mu-thumb-wrap{*/
    /*    width: 100%;*/
    /*    display: grid;*/
    /*    justify-content: center;*/
    /*    align-items: center;*/
    /*}*/
    
    /*.woocommerce-LoopProduct-link.woocommerce-loop-product__link,*/
    /*.products.elementor-grid.columns-3,*/
    /*.mu-product-card,*/
    /*.related.products .products.elementor-grid.columns-3 li*/
    /*{*/
    /*    width: 100% !important;*/
    /*}*/
    
    .woocommerce-js h2{
        margin-bottom: 0 !important;
    }
    
    .woocommerce-product-rating::before{
        content: '' !important;
    }
}

@media(max-width: 768px){
    
    .woocommerce .related.products ul.products{
        grid-template-columns: repeat(1, 1fr) !important;
    }
    
    .ast-container{
        padding-left: 0px;
        padding-right: 0px;
    }
    
    .woocommerce-product-rating.mu-rating{
        display: flex;
        align-items: center;
    }
    
    .woocommerce-product-gallery__wrapper .woocommerce-product-gallery__image{
        width: auto;
    }
    
    .elementor-element.elementor-element-915e4b5.elementor-widget__width-initial.elementor-widget.elementor-widget-woocommerce-product-rating{
        width: 100%;
    }
    .woocommerce-product-attributes.shop_attributes{
        margin-bottom: 0 !important;
    }
    /*.related.products h2{*/
    /*    font-size: 18px !important;*/
    /*    margin-bottom: 10px !important;*/
    /*}*/
    
    .woocommerce-notices-wrapper{
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .single-product .woocommerce-variation-add-to-cart.variations_button{
        flex-direction: column !important;
    }
}



@media(max-width: 487px){
    .woocommerce-notices-wrapper .woocommerce-message::before{
        top: 1em !important;
    }
}

.single-product .woocommerce-variation-add-to-cart.variations_button {
    display: flex !important;
    gap: 20px !important;
}

.single-product .custom-checkout-btn {
    display: none !important;
}

.single-product .woocommerce-variation-add-to-cart.variations_button.woocommerce-variation-add-to-cart-disabled .custom-checkout-btn  {
    opacity: 0.5;
    pointer-events: none !important;
    cursor: not-allowed;
}


/* Show only when variation enabled */
.single-product 
.woocommerce-variation-add-to-cart.variations_button
.custom-checkout-btn, .single-product 
.elementor-widget-woocommerce-product-add-to-cart
.custom-checkout-btn  {
    display: block !important;
}


.single-product .astra-shop-summary-wrap {
    display: none;
}