.summary.entry-summary
{
    display: flex;
    flex-direction: column;
    
}

.product_meta{
    margin-top: auto;
    border-top: 1px solid #ccc;
    padding-top: 10px;
    height: 84px;
    padding-right: 15px;

}


.product-main-swiper img {
    width: 100%;
    border-radius: 8px;
    cursor: pointer;
    object-fit: contain;
    height: 400px;
}


  .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%;
    width: auto !important;
    max-height: 90vh !important;
    object-fit: contain !important;
  }
  .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: -61px;
    right:0px;
    color: #fff;
    transform: none;
  }
  .lightbox-prev {
    left: 15px;
  }
  .lightbox-next {
    right: 15px;
  }
 


.swiper{
    position: relative;
}  


.product-gallery-wrapper{
  display:flex;
  gap:16px;
  align-items:stretch;
}

/* تامب‌ها در سمت راست (RTL) */
.product-thumb-swiper-container{
  width:90px;            /* عرض ستون تامب */
  flex:0 0 90px;
  position:relative;
}

.product-thumb-swiper{
  height:520px;          /* ارتفاع ستون تامب (با توجه به عکس اصلی تنظیم کن) */
}

.product-thumb-swiper .swiper-slide{
  height:auto !important;
  cursor:pointer;
  opacity:.6;
}

.product-thumb-swiper .swiper-slide-thumb-active{
  opacity:1;
  outline:2px solid #111;
  border-radius:6px;
}

.thumb-image{
  width:100%;
  height:72px;
  object-fit:cover;
  border-radius:6px;
  display:block;
}

/* بخش عکس اصلی */
.product-main-area{
  flex:1;
  min-width:0;
  position:relative;
}

.product-main-swiper{
  width:100%;
  height:520px;          /* مثل thumb */
}

.main-product-image{
  width:100%;
  height:100%;
  object-fit:contain;
  display:block;
}

/* دکمه مشاهده همه عکس‌ها */
.open-gallery-btn{
  position:absolute;
  left:16px; 
  bottom:16px;
  background:#4D4D4D;
  color:#fff;
  border:0;
  padding:10px 14px;
  border-radius:999px;
  cursor:pointer;
  font-size:13px;
  z-index:5;
}

/* دکمه‌های بالا/پایین برای تامب‌ها */
.product-thumb-swiper-container .swiper-nav{
  position:absolute;
  bottom:-8px;
  left:0;
  right:0;
  display:flex;
  justify-content:space-between;
  padding:6px 4px;
}

.thumb-prev, .thumb-next{
  width:38px;
  height:32px;
  display:flex;
  align-items:center;
  justify-content:center;
  border:1px solid #ddd;
  border-radius:8px;
  background:#fff;
  cursor:pointer;
}

.under-gallery-box{
  margin-bottom: 50px;
}

.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;
    width: 100%;
    right: auto;
    background-color: #0058A3 !important;
    border: 0;
    position: relative;
    border-radius: 999px;
    height: 50px;
}

.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 {
   
    align-items: center;
    border: 1px solid #ccc;
    border-radius: 999px;
    overflow: hidden;
    height: 50px;
    margin-left: 15px;
       width: 150px;
    display: flex;
      justify-content: space-around;
}

.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;
}

/*----------------*/




.related-products {
    display: flex !important;
    align-items: center;
    position: relative;
     
            margin-bottom: 50px;
}
.upsells-products{
   display: flex !important;
    align-items: center;
    position: relative;
   
}

.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;
    font-weight: 600;
}


.entry-summary .price {
 display: flex !important;
    flex-direction: column-reverse !important;
        font-weight: 600;
            order: -2;
}

.entry-summary del {
 
    opacity: .5;
}


.woocommerce-product-details__short-description
{
 
    margin-top: 30px;
        border-bottom: 1px solid #DFDFDF;
}


.extra-info{

    display: flex;
    align-items: center;
        position: absolute;
    left: 0;
    top: 0;
    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: 50px;
        font-size: 13px;
           padding: .618em .3em;
    }

    .quantity {
               border-radius: 65px;
        width: 100%;
        margin-left: 0;
    }

    .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: #0057a2 !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;
    }
}


.section-row{
  margin-bottom: 50px;
}


.single-product-header {
   
    font-weight: 600;
    font-size: 1.3rem;
    display: block;
}
.single-product-subheader {
    color: #484848;
    display: block;
    font-size: .8rem;
}

.think-column
{
      border-bottom: 1px solid #DFDFDF;
          padding-bottom: 15px;
}
.single-product-txt{
  text-align: justify;
}


.order-box-title
{
      order: -2;
          position: relative;
}


.shipping-title{
    margin-top: 15px;
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
}
.shipping-holder
{
      border: 1px solid #DFDFDF;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 15px;
    display: flex;
    align-items: baseline;
}


.shipping-icon
{
    flex-shrink: 0;
    position: relative;
    top: 5px;
    margin-left: 20px;
}

.whatsapp-box
{
display: flex;
flex-direction: row;
justify-content: space-between;
align-items: center;
padding: 15px;
height: 93px;
background: #FFFFFF;

box-shadow: 1px 1px 20px rgba(38, 43, 41, 0.25);
border-radius: 5px;
    order: 1;
    margin-top: 15px;
}


.entry-summary-row .entry-summary .cart{
  display: flex;
  align-items: center;
}



.entry-summary .product_card_content_wrapper a {
     display: flex;
     align-items: center;
      
}


.extra-products { margin-top: 16px;  border: 1px solid #DFDFDF;  background: #fff;
    border-radius: 5px; }
.extra-products-title { margin: 0 0 10px; font-weight: 600;border-bottom: 1px solid #DFDFDF ;    padding: 15px;}

.extra-products .extra-product-item{
    display: flex;
    align-items: center;
  
    justify-content: space-between;
   
    padding: 15px;
    
}

.extra-products .extra-product-plus{
  width:36px;
  height:36px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:20px;
  line-height:1;
  text-decoration:none;
}

.extra-products .extra-product-info{
  flex:1;
  text-decoration:none;
  color:inherit;
}

.extra-products .extra-product-title{
  font-weight:700;
  margin-bottom:4px;
}

.extra-products .extra-product-subtitle{
  font-size:12px;
  opacity:.75;
}

.extra-products .extra-product-price{
  white-space:nowrap;
  font-weight:700;
}

.extra-products .extra-product-image{
  display:flex;
  align-items:center;
  justify-content:center;
  width:56px;
  height:56px;
  flex:0 0 56px;
  text-decoration:none;
}

.extra-products .extra-product-thumb{
  width:56px;
  height:56px;
  object-fit:cover;
  border-radius:8px;
}

.extra-product-right-side
{
      display: flex;
    gap: 25px;
}

.extra-products .extra-product-price ins{
  
    text-decoration: none;
}




/*-----------------*/
/* Loader داخل دکمه افزودن به سبد */
.single_add_to_cart_button.is-loading{
  position: relative;
  pointer-events: none;
  opacity: .85;
}

.single_add_to_cart_button .btn-text{
  display: inline-block;
}

.single_add_to_cart_button.is-loading .btn-text{
  visibility: hidden; /* متن مخفی می‌شود ولی جای دکمه حفظ می‌شود */
}

.single_add_to_cart_button .btn-loader{
  display: none;
  position: absolute;
  inset: 0;
  margin: auto;
  width: 48px;
  height: 14px;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.single_add_to_cart_button.is-loading .btn-loader{
  display: flex;
}

.single_add_to_cart_button .btn-loader span{
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: currentColor;
  animation: btnBounce 0.6s infinite ease-in-out;
}

.single_add_to_cart_button .btn-loader span:nth-child(2){ animation-delay: 0.12s; }
.single_add_to_cart_button .btn-loader span:nth-child(3){ animation-delay: 0.24s; }

@keyframes btnBounce{
  0%, 80%, 100% { transform: translateY(0); opacity: .6; }
  40% { transform: translateY(-6px); opacity: 1; }
}

/*--------------------*/
.single_product_image{
  height: 310px!important;
  object-fit: cover;
}


/*--- -------size-----------------*/
.custom-size-buttons {
  margin-top: 10px;
  display: flex;
  gap: 10px;
	    margin-bottom: 15px;
}

.size-button {

    background: transparent;
    border: 0;

    cursor: pointer;
    transition: all 0.2s ease-in-out;
  
    display: flex;
    align-items: center;
    justify-content: center;
}


.value{
	
line-height: 0;	
}



/*-------------------*/
@media (min-width: 992px){
.summary.entry-summary  .under-gallery-mobile{
display: none;
}



}
/* موبایل: نسخه summary نمایش بده */
@media (max-width: 991.98px){
.entry-summary-row .product .under-gallery-box {

display: none;

}
.under-gallery-box {
    margin-bottom: 15px;
}
.whatsapp-box{

    margin-bottom: 50px;
}
.entry-summary-row .entry-summary .cart {
  
    flex-direction: column;
    gap: 10px;
}


.extra-products .extra-product-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    flex-direction: column;
    gap: 8px;
}

 


.product-main-swiper {
    width: 100%;
    height: auto;
}
.product-thumb-swiper-container,.open-gallery-btn {
    display: none;
  }

}




