/*
Theme Name:   xstore-child
Theme URI:    https://xstore.8theme.com
Description:  XStore is a multi-purpose theme that offers the ultimate WordPress and WooCommerce synergy, providing a comprehensive, all-in-one solution.
Author:       8theme
Author URI:   https://www.8theme.com
Template:     xstore
Version:      1.0
Text Domain:  xstore-child
Tags: e-commerce, two-columns, left-sidebar, right-sidebar, custom-background, custom-colors, custom-header, custom-menu, custom-logo, featured-images, full-width-template, threaded-comments, accessibility-ready, rtl-language-support, footer-widgets, sticky-post, theme-options, translation-ready, ecommerce, woocommerce, shop, elementor, business, corporate, blog, news, light, dark
*/

.pi-fields{
    margin-top: 20px;
}

.pi-fields .woocommerce-multicheckbox-wrapper label:first-child {
margin-right: 20px;
}
.pi-fields .woocommerce-multicheckbox-wrapper{
    display: flex;
}
.pi-fields .woocommerce-multicheckbox-wrapper label{
    display: flex;
    align-items: center;
}
.pi-fields .woocommerce-multicheckbox-wrapper label input{
    margin: 0;
    margin-right: 8px;
}

.coupon-line{    border-top: 1px solid #000;}
.coupon-line td{width: 100%;}
.have-coupon{width: 100%; text-align: left;}
.have-coupon a{text-decoration: underline;}
.show-coupon{display: none;}

.etheme-elementor-cart-page-totals .cart_totals .wc-proceed-to-checkout button  {
    padding: 0.75rem 2.2rem;
    border:none;
}
.etheme-elementor-cart-page-totals .cart_totals .wc-proceed-to-checkout button img {
    height: 16px;
    line-height: 16px;
    margin-right: 8px;
}
button.discount-popup{
    border: 0;
    font-weight: 600;
    padding: 0;
    text-decoration: underline;
}
button.discount-popup:hover, button.discount-popup:focus, button.discount-popup:focus-within{
    color: #000;
}


/* custom listing */
.cust-products{
    --cols: 3;
    --cols-gap: 10px;
    --rows-gap: 10px;
    display: grid;
    grid-template-columns: repeat(var(--cols,4),minmax(100px,1fr));
    grid-gap: var(--rows-gap,20px) var(--cols-gap,30px);
    list-style-type: none;
    margin-left: 0px!important;
}
.cust-products .product-image{
    margin-bottom: 30px!important;
}
.cust-products .product-image a{
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}
.cust-products .product-image{
    position: relative;
    width: 100%;
    display: inline-block;
}
.cust-products .product-image .prod-img-slider{
    position: absolute;
    inset: 0px;
    display: flex;
}
.cust-products .product-image .hover-slider-images-toggler{
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    display: flex;
}
.cust-products .product-image .hover-slider-images-toggler .hover-slider-toggle-pane{
    flex-grow: 1;
}
.cust-products .product-image .hover-slider-indicator-dot.active{
    background-color: #000;
}
.cust-products .product-content .metal-swatches-lists{
    margin: 10px 0 12px;
    list-style: none;
    padding: 0;
}
.cust-products .product-content .metal-swatches-lists li{
    width: 19px;
    height: 19px;
    border: 1px solid #e1e1e1;
    border-radius: 50%;
    position: relative;
    display: inline-block;
    margin: 0px 4px;
    cursor: pointer;
    transition: all .3s ease-in-out;
}
.cust-products .product-content .metal-swatches-lists li.active-swatch, .cust-products .product-content .metal-swatches-lists li:hover{
    border-color: #888;
}
.cust-products .metal-swatches-lists li .prod-custom-attribute {
    position: absolute;
    top: 1px;
    right: 0px;
    bottom: 1px;
    left: 0px;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    margin: 0px auto;
    overflow: hidden;
}

.cust-products .product-content .woocommerce-Price-amount{
    margin-bottom: 7px;
}
.cust-products .prod-custom-attribute img{
    width: 15px;
    height: 15px;
}
.cust-products .product-content .woocommerce-loop-product__title{
    font-family: "DM Sans", Sans-serif;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 5px;
    text-transform: capitalize;
    color: #222222;
}
.cust-products .product-content .woocommerce-loop-product__title a{
    color: #222222;
}
.cust-products .product-content .custom-prod-desc{
    font-family: "DM Sans", Sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.3em;
    margin-bottom: 5px;
    color: #161616;
}
.cust-products .product-content .woocs_price_code{
    font-family: "DM Sans", Sans-serif;
    font-size: 12px;
    font-weight: 400;
    margin-bottom: 7px;
    color: #000;
}
.cust-products .product-content{
    position: unset;
    justify-content: space-between;
    grid-template-columns: repeat(1, 1fr);
}
.cust-products .product-content .list-button-wrap{
    width: 100%;
}
.cust-products .product-content .add_to_cart_button, .cust-products .product-content .product_type_simple{
    font-family: "DM Sans";
    font-size: 14px;
    font-weight: 400;
    line-height: 1.45em;
    border-style: solid;
    border-width: 1px 1px 1px 1px;
    border-color: #161616;
    border-radius: 0px 0px 0px 0px;
    padding: 13.5px 12px 13.5px 12px;
    background-color: transparent;
    border: 1px solid #161616;
    color: #161616;
    width: 100%;
    position: relative;
    height: auto;
}
.cust-products .product-content .add_to_cart_button.loading:before, .cust-products .product-content .product_type_simple.loading:before{
    content: '';
    width: 1em;
    height: 1em;
    position: absolute;
    top: calc(50% - .5em);
    left: calc(50% - .5em);
    border: 1px solid #e1e1e1;
    border-left-color: #8888;
    z-index: 1;
    -webkit-animation: rotate .5s linear infinite;
    animation: rotate .5s linear infinite;
    border-radius: 50%;
}
.cust-products li:hover .add_to_cart_button, .cust-products li:hover .product_type_simple, .cust-products .product-content .add_to_cart_button:hover, .cust-products .product-content .add_to_cart_button:focus, .cust-products .product-content .product_type_simple:hover, .cust-products .product-content .product_type_simple:focus{
    background-color: #161616;
    color: #fff;
}
.product-content .cart-button-text-wrap, #fkcart-view-bag span{
    width: max-content;
    display: block;
    margin: 0px auto;
}
.product-content .add_to_cart_button:not(.loading):hover .cart-button-text-wrap:after, .product-content .product_type_simple:hover .cart-button-text-wrap:after,
#fkcart-view-bag:hover span:after, #fkcart-checkout-button:hover .fkcart-checkout--text:after{
    width: 100%;
}
.product-content .add_to_cart_button:not(.loading) .cart-button-text-wrap:after, .product-content .product_type_simple .cart-button-text-wrap:after,
#fkcart-view-bag span:after, #fkcart-checkout-button .fkcart-checkout--text:after{
    content: '';
    display: block;
    width: 0;
    height: 1px;
    background: #D4AF37;
    transition: width .3s;
    margin-top: 2px;
}
.cust-products .product-content .woocommerce-Price-amount{
    margin-bottom: 7px;
}
.cust-products .product_cat-high-jewelry .list-button-wrap a.button.product_type_simple, .cust-products .list-button-wrap a.button.product_type_simple{
    margin-top: 0px;
}
.cust-products .product-image a img{
    max-width: 85%;
    width: 100%;
}
.single-image-slider .vertical-thumbnails{
    width: 125px;
}

.single-product-gallery-slider {
    display: flex;
    flex-direction: row-reverse;
    align-items: flex-start;
    width: 100%;
    margin: 0 auto;
}

.single-product-main-slider{
    width: 100%;
    overflow: hidden;
}

.single-product-thumbSlider .swiper-slide{
    width: 100%;
    height: 80px!important;
    cursor: pointer;
}

.single-product-main-slider .swiper-slide img,
.single-product-thumbSlider .swiper-slide img {
    max-width: 100%;
    height: auto;
    display: block;
}

.single-product-thumbSlider {
    padding: 20px 0px;
    max-width: 80px;
    overflow: hidden;
    position: relative;
}

.single-product-thumbSlider .swiper-slide {
    flex: 0 0 auto;
    height: auto;
    text-align: center;
    position: relative;
}
.single-product-thumbSlider .swiper-slide.swiper-slide-thumb-active {
    border: 1px solid #000;
}
.single-product-thumbSlider .swiper-slide img {
    display: block;
    width: 100%;
    height: auto;
    transition: opacity 0.3s ease;
}
.single-product-thumbSlider .swiper-slide:hover::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2); /* Semi-transparent overlay */
    mix-blend-mode: luminosity; /* Achieves grayscale effect */
    z-index: 1;
    pointer-events: none;
}
.single-product-thumbSlider .swiper-button-next, .single-product-thumbSlider .swiper-button-prev{
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    position: absolute;
    cursor: pointer;
    transition: all .3s ease;
    outline: 0;
    margin: 0;
    width: 100%;
    height: 20px;
    opacity: 1;
    visibility: visible;
    text-align: center;
    background-image: unset;
}
.single-product-thumbSlider .swiper-button-next {
    top: auto;
    bottom: 10px;
    right: 0;
}
.single-product-thumbSlider .swiper-button-prev{
    top: 0;
    left: 0;
}
.single-product-thumbSlider .swiper-button-next:before {
    content: "\e905";
    font-size: 16px;
    font-family: xstore-icons;
}
.single-product-thumbSlider .swiper-button-next:after{
    content: '';
    position: absolute;
    top: -100%;
    bottom: -100%;
    left: -10px;
    right: 0;
}

.single-product-thumbSlider .swiper-button-prev:before {
    content: "\e903";
    font-size: 16px !important;
    font-family: xstore-icons;
}
.single-product-thumbSlider .swiper-button-prev:after{
    content: '' !important;
    position: absolute;
    top: -100%;
    bottom: -100%;
    right: -10px;
    left: 0;
}
.single-product-main-slider .swiper-pagination{
    width: 100%!important;
}
.single-product-main-slider .swiper-pagination span.swiper-pagination-bullet{
    min-width: 80px;
}
.single-product-main-slider .swiper-pagination .swiper-pagination-bullet{
    width: auto;
}
body #wfacp-e-form .wfacp-form .checkout .wfacp-coupon-page .wfacp_coupon_field_box .form-row-first label.wfacp-form-control-label {
    top: 0 !important;
}
.hp-high-jewl-slider .etheme-product-grid-title{
    font-size: 15.5px !important;
}
.footer .selectron23-container{
    overflow: hidden !important;
}

/* checkout phone field */
.woocommerce-checkout #wfacp-e-form .wfacp-form:not(.wfacp-top).wfacp-modern-label p.wfacp-form-control-wrapper input[type=tel]{
    padding-left: 108px!important;
}

@media (hover: none) {
    /* Disable hover effect on touch devices */
    .single-product-main-slider .swiper-pagination .swiper-pagination-bullet:not(.swiper-pagination-bullet-active):hover {
        opacity: .4;
    }
}

@media screen and (min-width: 1025px) {
    
    .cust-products .product:hover{
        border: 1px solid #c4c4c4 !important;
        /* padding: 15px !important; */
        transform: scale(1.03);
        transition: ease-in-out 0.5s;
    }
    .cust-products .product:hover .product-content{
        padding: 15px;
    }
    .cust-products .product:hover .add_to_cart_button, .cust-products .product:hover .product_type_simple{
        display: block;
        transition: ease 0.5s;
    }
    .cust-products .product-content .add_to_cart_button, .cust-products .product-content .product_type_simple{
        display: none;
    }

}

@media screen and (min-width: 768px){
    .single-product-gallery-slider .swiper-pagination{
        display: none;
    }
}

@media screen and (max-width: 767px) {
    .cust-products{
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cust-products .product-content .add_to_cart_button, .cust-products .product-content .product_type_simple{
        padding: 9px 15px 9px 15px;
        line-height: 1.05em;
    }

    .single-product-thumbSlider{
        display: none;
    }

    .woocommerce-product-gallery .woocommerce-product-gallery__image:hover {
        pointer-events: none;
    }
}

@media screen and (max-width: 767px){
    .archive .etheme-product-grid-content{
        min-height: 150px;
    }
}
/* @media screen and (max-width: 480px) {
    .archive .etheme-product-grid-content, .archive .cust-products li .product-image{
        min-height: 180px;
    }
} */
@media screen and (max-width: 479px){
    .cust-products .type-product .product-image p {
        margin-bottom: 0 !important
    }
    /* .cust-products .product-content .custom-prod-desc {
        min-height: 32px;
    }
    .cust-products-lists .cust-products .product a.product-img-link{
        height: 0px;
    } */
    .cust-products-lists .cust-products .product a img{
        height: 185px;
        object-fit: contain;
    }
}