.summary.entry-summary
{
    display: flex;
    flex-direction: column;
 
  
}
.custom-row {
   position: relative;
}

.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%;
	cursor: pointer;
    object-fit: contain;
        height: calc(100vh - 300px);
}

.product-thumb-swiper {
    width: 100%;
}
.product-thumb-swiper .swiper-slide {

    height: 90px;
    opacity: 0.6;
    cursor: pointer;
  
}
.product-thumb-swiper .swiper-slide-thumb-active {
    opacity: 1;
}
.thumb-image {
    width: 100%;
    height: 100%;
    object-fit:cover;
	height: 100px !important;
  
}




  .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: 60%;
  
  }
  .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: white;
    cursor: pointer;
    padding: 10px;
    user-select: none;
  }
  .lightbox-close {
   top: 0px;
    right: 0px;
    color: #000;
    transform: none;
    height: 44px;
    display: flex;
    align-items: center;
  }
  .lightbox-prev {
    left: -60px;
  }
  .lightbox-next {
    right: -60px;
  }
  .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: .8em 1em;
    font-weight: 700;
  height: 47.68px;
    right: auto;
    background-color: #000 !important;
    border: 0;
    margin-right: 15px;
    position: relative;
    border-radius: 999px;
     display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;

}

.summary.entry-summary .single_add_to_cart_button:before {
 content: "";
 display: inline-block;
    background: url(../image/cart.svg);
    width: 20px;
    height: 21px;
    background-size: contain;
    background-repeat: no-repeat;
}


.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: .7em 10px;
  font-size: 20px;
  cursor: pointer;
  user-select: none;
  color: #333;
	    font-size: .8rem;
}

.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: 15px 0px;
}

.woocommerce .woocommerce-product-rating {
    padding-bottom: 15px;
}
.cart{
 border-top: 1px solid #D9D9D9; 
 padding: 15px 0; 
	    display: flex;
    flex-wrap: wrap;
}
.variations_form.cart{
  padding: 0; 

}
 .variations_form.cart tr:not(:first-of-type){

  border-top: 1px solid #D9D9D9;
}
.variations_form.cart th
{
     margin-top: 15px;
    color: #686868;

}
.variations_form.cart th label{
		    position: relative;
    padding-right: 10px;
	    opacity: 0;
	
}
.variations_form.cart th label:before{
	
position: absolute;
    content: "";
    width: 5px;
    height: 5px;
    background: #686868;
    right: 0;
    top: 0;
    bottom: 0;
    margin: auto;
    border-radius: 100%;
	
}



.variations tr{
	
	    display: flex;
    flex-direction: column;
	position: relative;
	
}
.variations_form.cart .variations{
      width: 100%;
}
.woocommerce-variation-add-to-cart
{
 border-top: 1px solid #D9D9D9;
 padding: 15px 0;
    display: flex;
    flex-wrap: wrap;
}


.show_guide
{
 border-radius: 999px;
    height: 41px;
    padding: .618em 1em;
    background-color: #fff;
    border: 1px solid #000;
    margin-top: 15px;
    display: flex;
    align-items: center;
    width: 295px;
    font-size: .9rem;
    text-align: center;
    justify-content: center;
    font-weight: 600;
}

.show_guide a{
  color: #000;
}

.show_guide img{
  padding-left: 5px;
}
@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: 30px;
    height: 30px;
    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: 4px solid #fff;
    outline: 1px solid #000;
    transform: scale(1.1);
    
  }



/*------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;
}
.section-head {
    text-align: center;
    display: block;
    font-weight: 600;
    padding-bottom: 20px;
    font-size: 1.5rem;
}

.related-products{

    position: relative;
     margin-bottom: 50px; 
}

.upsells-products{

    position: relative;
     margin-bottom: 100px; 
}

.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 del {

    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;
 
    flex-wrap: wrap;

}


.free_shipping_notice {
           width: 100%;
            display: flex;
            align-items: center;
            gap: 8px;
	    white-space: nowrap;
	    font-weight: 600;
	   padding: 15px 0 0 0 ;
        }
.custom_guide_section
{
	    border-bottom: 1px solid #D9D9D9;
    padding-bottom: 15px;
    margin-bottom: 15px;
	   width: 100%;
	   
}
	


.free_guide
{
      background: #EEEEEE;
   
    width: 131px;
    border-radius: 21px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3px 5px;
    font-size: .9rem;
}
.free_guide a{
 color: #000;
	    font-weight: 600;
}

.free_guide img
{
      padding-left: 5px;
}
.free_shipping_notice img
{
      padding-left: 5px;

}





.custom-product-info
{
      background: #EEEEEE;
    padding: 20px 15px;
    margin:40px 0
}

.custom-product-holder{
     display: flex;
    flex-direction: row-reverse;
    flex-wrap: wrap;
    border-bottom: 1px solid #AFAFAF;
    margin-bottom: 20px;
}
.custom-product-left
{
  flex: 1 1 60%;
    min-width: 250px;
    text-align: justify;
}

.custom-product-right
{
      flex: 1 1 35%;
    text-align: center;
    margin-top:63px
}
.custom-product-links
{
 display: flex;
    justify-content: center;
    gap: 30px;
    text-align: center;
    flex-wrap: wrap;
}

.info-link
{
  padding: 3px 13px !important;
    border-radius: 28px !important;
    color: #000 !important;
    background: #fff;
    font-size: .8rem;
}
.info-link img{
  padding-left: 5px;
}


@media only screen and (max-width: 767px) {
    .product_title.entry-title {
        font-size: 1rem;
        
    }

.free_shipping_notice
{
         font-size: .8rem;
}



}
.product-thumb-swiper .swiper-wrapper{
    justify-content: center;	
	
}
@media only screen and (max-width: 991px) {
    .summary.entry-summary .single_add_to_cart_button {
        
     
               font-size: .8rem;
    }

 

    .quantity .qty {
        font-size: 13px;
    }


    .product-main-swiper img {
       
        height: 500px;
		        object-fit: cover;
    }


  
.section-head {
  
    font-size: 1rem;
}


.related-products {
   
    margin-bottom: 30px;
}
.upsells-products {
   
    margin-bottom: 50px;
}
.show_guide {
  
 width: 100%;
    font-size: .8rem;
}

.custom-product-right {
    flex: 1 1 35%;
    text-align: center;
    margin-top: 15px;
    margin-bottom: 15px;
}
.custom-product-left {
    flex: 1 1 100%;
    min-width: auto;
    text-align: justify;
}

.custom-product-info {
  
    margin: 20px 0;
}

.product-thumb-swiper .swiper-wrapper {
    justify-content: flex-end;
}

}


.woocommerce #reviews #comments h2 {
    clear: none;
    font-size: 1rem;
}




.custom-review-link
{
	    padding-bottom: 15px;
}

.custom-review-link a
{
	
color: #686868;
    text-decoration: none;
    font-size: 16px;
    border-right: 2px solid #D9D9D9;
    padding-right: 10px;	
}


.custom-review-link svg{
	
 padding-left: 10px;	
	
}

.reset_variations
{
    position: absolute;
    bottom: 15px;
    left: 15px;
	color: #a22f2e;
    display: none;
}


/*--------*/
 .modal {
            display: none;
            position: fixed;
            z-index: 9999;
            padding-top: 100px;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            overflow: auto;
            background-color: rgba(0,0,0,0.5);
        }

        .modal-content {
            background-color: #fff;
            margin: auto;
            padding: 20px 0;
            border: 1px solid #ccc;
            width: 90%;
            max-width: 650px;
            border-radius: 10px;
            direction: rtl;
           
        }

        .modal .close {
            color: #555;
            font-size: 26px;
            font-weight: bold;
            float: left;
           top: 5px;
    cursor: pointer;
    z-index: 22;
        }

        .size-guide-table {
           table-layout: fixed;
    width: 100%;
            border-collapse: collapse;
            margin-top: 20px;
            text-align: center;
			    font-size: 12px;
        }
		 

        .size-guide-table th,
        .size-guide-table td {
            border: 1px solid #ccc;
            padding: 5px;
			  /*width: 92px; /* همه ستون‌ها عرض ثابت */
    overflow: hidden;

        }

        .size-guide-table th {
            background-color: #f9f9f9;
            font-weight: bold;
        }

        .free_guide {
          
            display: flex;
            align-items: center;
            gap: 8px;
        }



     .modal-body {
		 
	overflow: auto;
    width: 100%;	 
		 
}
@media only screen and (max-width: 575px) {
	.entry-summary-row .product 
 {
	     padding-left: 0;
    padding-right: 0;
}
	.related  .col-6 ,.up-sells .col-6 {
 
    padding-left: 0;
    padding-right: .25rem;
}
	
.extra-info,.product_title.entry-title,.price
   {
	
	padding-right: 15px!important;
    padding-left:15px!important;
	
	}
	
	
	
	
	
	
}
.woocommerce-Reviews
{
	    background: #F8F8F8;
    padding: 30px 0 100px 0;
}
   .single-product .main-footer {
     margin-top:0 
}
}


.woocommerce div.product p.price del, .woocommerce div.product span.price del {
    opacity: .5;
    display: block!important;
}


/*-----*/
.custom-size-buttons {
  margin-top: 10px;
  display: flex;
  gap: 10px;
	    margin-bottom: 15px;
}

.size-button {
  padding: 10px 16px;
    background: #f5f5f5;
    border: 1px solid  #f5f5f5;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.size-button:hover {
  background-color: #e5e5e5;
}

.size-button.active {
  background-color: #000;
  color: white;
  border-color: #000;
}
.value{
	
line-height: 0;	
}
.size-wrapper {
  display: flex;
  align-items: center;
  gap: 20px;

  flex-wrap: wrap; /* اگر جا نشد در موبایل، بیفته پایین */
}

.selected-size-display {
    font-size: 16px;

    margin-bottom: 8px;
    color: #686868;
    direction: rtl;
    position: absolute;
    top: 32px;
    right: 0;
	    padding-right: 15px;

}

.selected-size-display:before
{
position: absolute;
    content: "";
    width: 5px;
    height: 5px;
    background: #686868;
    right: 0;
    top: 0;
    bottom: 0;
    margin: auto;
    border-radius: 100%;
}




.size-wrapper {
  display: flex;
 
  gap:25px;

}

.custom-size-buttons {
  display: flex;
  gap: 15px;
}

.size-button {
  padding: 8px 14px;
  background: #f5f5f5;
  border: 1px solid #ccc;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.2s ease-in-out;
}

.size-button.active {
  background-color: #000;
  color: white;
  border-color: #000;
}


.size-error-message {
   color: #B11F29;
    font-weight: bold;
    font-size: 14px;
    position: relative;
    padding-right: 27px;
}
.size-error-message:before{
    content:"";
	position:absolute;
	background:url("/wp-content/uploads/2025/08/Icon.svg");
    width: 22px;
    height: 26px;
    top: 0;
    bottom: 0px;
    margin: auto;
    right: 0;
    background-repeat: no-repeat;
	
	
}

.selected-color-label
{
	font-size: 16px;
    color: #686868;
    direction: rtl;
    position: absolute;
    top: 32px;
    right: 0px;
	    padding-right: 15px;

}
.selected-color-label:before
{
position: absolute;
    content: "";
    width: 5px;
    height: 5px;
    background: #686868;
    right: 0;
    top: 0;
    bottom: 0;
    margin: auto;
    border-radius: 100%;
}


@media only screen and (max-width: 767px) {
.size-error-message {

    margin-bottom: 30px;
}

}
@media only screen and (max-width: 575px) {
.cart {
    
    padding-left: 15px!important;
    padding-right: 15px!important;
   
}
.rating-container	,.woocommerce-product-rating,.custom-review-link
	{
		padding-right: 15px;
    padding-left: 15px;
	}
.product-container	
{
	    padding-left: 0;
    padding-right: 0;
	}
	
	.product-thumb-swiper-container {
    position: relative;
    padding-left: 15px;
    padding-right: 15px;
}
	
	
}

@media only screen and (max-width: 991px) {
.entry-summary-row .discount-percentage {
    left: 21px;
    top: 155px;
    z-index: 2;
    font-size: 14px;
}
}
.woocommerce-product-attributes-item__value a{
    pointer-events: none;
    color: #000	
	
}
/*-------------------*/
.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;
    }
	
	
	
	.summary.entry-summary .single_add_to_cart_button {

    width: 70%;

}
.quantity {

    margin-left: auto;
}	

	
  }

@media (max-width: 767px) {

	
	
	
	.summary.entry-summary .single_add_to_cart_button {

    flex: 1 1 0%;

}
.quantity {

    margin-left: auto;
}	

	
  }

.custom-popup {
    position: fixed;
    top: 20px;
    right: -300px; /* مخفی بیرون صفحه */
    background: #ff4757;
    color: #fff;
    padding: 12px 18px;
    border-radius: 8px;
    font-size: 14px;
    z-index: 9999;
    box-shadow: 0 4px 10px rgba(0,0,0,.2);
    transition: right 0.3s ease;
}

.custom-popup.show {
    right: 20px; /* وارد صفحه */
}

.custom-popup.success {
    background: #2ed573;
}

.custom-popup.error {
    background: #ff4757;
}

@media (min-width: 992px) {
.form-submit {

    margin-bottom: 50px !important;
}
}
