.summary.entry-summary
{
    display: flex;
    flex-direction: column;
        justify-content: space-between;
}

.product_meta{
    margin-top: auto;
    border-top: 1px solid #ccc;
    padding-top: 10px;
    height: 84px;
    padding-right: 15px;

}

.product-main-swiper {
    width: 100%;
    height: auto;
    margin-bottom: 20px;
}
.product-main-swiper img {
    width: 100%;
    border-radius: 8px;
    cursor: pointer;
    object-fit: contain;
    height: 400px;
}

.product-thumb-swiper {
    width: 100%;
}
.product-thumb-swiper .swiper-slide {

    height: 130px;
    opacity: 0.6;
    cursor: pointer;
    box-shadow: 0px 10px 40px rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    margin: 15px
}
.product-thumb-swiper .swiper-slide-thumb-active {
    opacity: 1;
}
.thumb-image {
    width: 100%;
    height: 100%;
    object-fit:contain;
    border-radius: 12px;
    -webkit-border-radius: 12px;
    -moz-border-radius: 12px;
    -ms-border-radius: 12px;
    -o-border-radius: 12px;
}




  .custom-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
  }
  .lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
  }
  .lightbox-content img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
  }
  .lightbox-close,
  .lightbox-prev,
  .lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 40px;
        color: #6c757d;
    cursor: pointer;
    padding: 10px;
    user-select: none;
  }
  .lightbox-close {
    top: 0px;
    right:0px;
    color: #000;
    transform: none;
  }
  .lightbox-prev {
    left: 15px;
  }
  .lightbox-next {
    right: 15px;
  }
  .product-thumb-swiper-container{
    position: relative;
  }
  .swiper-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 5px;
   
  }
  
  .thumb-prev, .thumb-next {
    cursor: pointer;
    font-size: 24px;
    padding: 6px 12px;
    background-color: #bbbbbb;
    border-radius: 4px;
    user-select: none;
    position: absolute;
  }


  .thumb-next {
  
  
    left: -10px;
    top: 0;
    bottom: 0;
    margin: auto;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
  }

  .thumb-prev{
   
    right: -10px;
    top: 0;
    bottom: 0;
    margin: auto;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
  }


.swiper{
    position: relative;
}  

.related-header {
    width: 100%;
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.8;
    color: var(--primary);
    margin-bottom: 16px;
    display: block;
}



.summary.entry-summary .single_add_to_cart_button {
    padding: .618em 1em;
    font-weight: 700;
  
    right: auto;
    background-color: #F48A70 !important;
    border: 0;
    margin-right: 15px;
    padding-right: 43px !important;
    position: relative;
    border-radius: 999px;

    height: 41px;
}

.summary.entry-summary .single_add_to_cart_button:before {
    content: "";
    position: absolute;
    background: url(../image/cart.svg);
    width: 24px;
    height: 29px;
    right: 15px;
    top: 0;
    bottom: 0;
    margin: auto;
}


.quantity {
  display: inline-flex;
  align-items: center;
  border: 1px solid #ccc;
  border-radius: 999px;
  overflow: hidden;
}

.quantity .qty {
  width: 40px;
  text-align: center;
  border: none;
  font-size: 16px;
  outline: none;
}

.quantity button.plus,
.quantity button.minus {
  background: none;
  border: none;
  padding: 0 10px;
  font-size: 20px;
  cursor: pointer;
  user-select: none;
  color: #333;
}

.quantity button:hover {
  color: #000;
}


/* Chrome, Safari, Edge, Opera */
.quantity input.qty::-webkit-outer-spin-button,
.quantity input.qty::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
.quantity input.qty[type="number"] {
  -moz-appearance: textfield;
}

/* Optional: Reset appearance for a cleaner look */
.quantity input.qty {
  appearance: none;
}


.woocommerce .quantity .qty {
  width: 30px!important;
}
.woocommerce-tabs.wc-tabs-wrapper
{
  margin: 30px 0 50px 0;
}
.woocommerce-tabs ul.tabs {
  display: flex;
  margin-bottom: 1em;
  border-bottom: 2px solid #eee;
  padding: 0;
}

.woocommerce-tabs ul.tabs li {
  list-style: none;
  text-align: center;
  margin-left: 5px;
  padding: 10px;
  cursor: pointer;
  transition: 0.3s;
}

.woocommerce-tabs ul.tabs li a{
color: #5C5C5C;
}

.woocommerce-tabs ul.tabs li.active {
  border-bottom: 1px solid #F48A70;
}
.woocommerce-tabs ul.tabs li.active a {
  color: #000;
}
.woocommerce-tabs .woocommerce-Tabs-panel {

  padding: 30px;
  background: white;
 box-shadow: 0px 10px 40px rgba(0, 0, 0, 0.08);
border-radius: 24px;
}



.variations_form.cart tr{
  line-height: 0;
}
.variations_form.cart th
{
  padding-left: 15px;
}

.variations_form.cart .variations{
  margin-bottom: 50px;
}
.woocommerce-variation-add-to-cart
{
  margin-top: 20px;
}


@media only screen and (max-width: 767px) {
 
  .product_title.entry-title{
      font-size: 1rem;
      padding-top: 8px;
  }
  .woocommerce-tabs ul.tabs li {
   
    padding: 8px;

  }

  .related-header {
    font-size: 1rem;
  }
  .woocommerce-tabs.wc-tabs-wrapper {
    margin: 30px 0;
}
.product_meta {
 
  margin-top: 15px;
}
  }

  .color-swatches {
    display: flex;
    gap: 10px;
    margin: 15px 0;
    flex-wrap: wrap;
  }
  
  .color-swatch {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid #ddd;
    transition: all 0.3s ease;
    position: relative;
  }
  
  .color-swatch:hover {
    transform: scale(1.1);
  }
  
  .color-swatch.active {
    border-color: #333;
    transform: scale(1.1);
    box-shadow: 0 0 5px rgba(0,0,0,0.2);
  }



/*------table------*/


.table-wrapper {
  overflow-x: auto;
  max-width: 100%;
  margin-bottom: 1em;
}

.table-wrapper table {
  width: max-content;
  min-width: 600px;
  table-layout: fixed;
}
.woocommerce-Tabs-panel--description td{
  border: 1px solid #ccc!important;
  padding: 8px;
  font-size: .8rem;
  width: 150px !important;
}

.woocommerce-Tabs-panel--description table tr:nth-child(even) {
  background-color: #e8e8e8;
}

.reset_variations{
  float: left
  ;

}

/*------share icon--------------*/
	.share{
	position:relative	
	}

.copy-btn {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  position: relative;
}

.copy-popup {
  position: absolute;
  top: -40px;
  right: 0;
  background: #222;
  color: #fff;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 14px;
  display: none;
  white-space: nowrap;
  z-index: 1000;
  transition: opacity 0.3s ease;
}

/*----------------*/

.wishlist-btn
{
 
  border: 0;
  background: transparent;
  outline: 0;
}


.loader-img
{
  bottom: 0;
    margin: auto;
    width: 50px!important;
    height: 50px!important;
    left: 0;
    right: 0;
    position: absolute;
    top: 0;
    display: none;
}



.related-products {
    display: flex !important;
    align-items: center;
    border: 1px solid #5C9E9D;
    border-radius: 0 25px 25px 0;
    -webkit-border-radius: 0 25px 25px 0;
    -moz-border-radius: 0 25px 25px 0;
    -ms-border-radius: 0 25px 25px 0;
    -o-border-radius: 0 25px 25px 0;
    position: relative;
        background: #fff;
            margin-bottom: 50px;
}
.upsells-products{
   display: flex !important;
    align-items: center;
    border: 1px solid #F48A70;
    border-radius: 0 25px 25px 0;
    -webkit-border-radius: 0 25px 25px 0;
    -moz-border-radius: 0 25px 25px 0;
    -ms-border-radius: 0 25px 25px 0;
    -o-border-radius: 0 25px 25px 0;
    position: relative;
        background: #fff
}

.swiper-rtl .swiper-button-prev svg {
    transform: rotate(0deg);
    -webkit-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -ms-transform: rotate(0deg);
    -o-transform: rotate(0deg);
}

.swiper {
  flex: 1;
}

.product_title.entry-title {
    font-size: 1.5rem;
}

.entry-summary-row
{
  padding: 30px;
    background: white;
    box-shadow: 0px 10px 40px rgba(0, 0, 0, 0.08);
    border-radius: 24px;
}

.entry-summary .price {
    display: flex !important
;
    flex-direction: column !important;
    border-top: 1px solid #ccc;
    padding: 30px 0 0 0;
}

.entry-summary del {
    margin-right: 45px;
    opacity: .5;
}


.woocommerce-product-details__short-description
{
  border-top: 1px solid #ccc;
    padding: 30px 0 0 0;
    margin-top: 30px;
}


.extra-info{

    display: flex;
    align-items: center;
    margin-top: 15px;
    flex-wrap: wrap;

}



@media only screen and (max-width: 767px) {
    .product_title.entry-title {
        font-size: 1rem;
        
    }
}

@media only screen and (max-width: 991px) {
    .summary.entry-summary .single_add_to_cart_button {
        border-radius: 5px;
        font-size: 13px;
           padding: .618em .3em;
    }

    .quantity {
       border-radius: 5px; 
    }

    .quantity .qty {
        font-size: 13px;
    }


    .product-main-swiper img {
        object-fit: contain;
        height: 200px;
    }


    .entry-summary-row,.woocommerce-tabs .woocommerce-Tabs-panel {
        padding: 15px;
    }


}


.woocommerce #reviews #comments h2 {
    clear: none;
    font-size: 1rem;
}



/*-------------------*/
.custom-cart-popup {
position: fixed;
    top: 0;
    right: 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    padding: 30px 15px;
    z-index: 9999;
    width: 500px;
    animation: fadeIn 0.3s ease;
    bottom: 0;
    margin: auto;
    left: 0;
    height: fit-content;
    display: flex;
}
.custom-cart-popup .popup-content {
    position: relative;
	display: flex;
    flex-direction: column;
	width: 500px;
 
}
.custom-cart-popup .close-popup {
      position: relative;
    background: transparent;
    border: none;
    font-size: 27px;
    cursor: pointer;
}

.custom-cart-popup .popup-product {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}
@keyframes fadeIn {
    from {opacity: 0; transform: translateY(-10px);}
    to {opacity: 1; transform: translateY(0);}
}
.popup-product img{
	
	width:80px
	
}

.close-popup-holder
{
	display: flex;
    flex-direction: row-reverse;
    align-items: center;
    border-bottom: 1px solid #ccc;
    justify-content: space-between;
}

.button.wc-forward
{
	    background: #b11f29!important;
    color: #fff!important;
    text-align: center!important;
    outline: 0!important;
    border: 0!important;
}


.close-popup-holder p{
	
    font-size: 13px;
    margin-bottom: 0;	
	
}



/* استایل پاپ‌آپ حالت موبایل */
@media (max-width: 768px) {
  .custom-cart-popup {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: #fff;
        box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.2);
        border-radius: 16px 16px 0 0;
        transition: bottom 0.4s ease-in-out;
        z-index: 9999;
        padding: 15px;
        height: fit-content;
        top: unset;
        justify-content: center;
    }
}