.product-body{
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

.product-gallery {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.product-gallery a {
  display: block;
  width: 120px;
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
}
.product-gallery img {
  width: 100%;
  height: auto;
  display: block;
}


#myCarousel {
  --f-arrow-pos: 10px;
  --f-arrow-bg: rgba(255,255,255,0.75);
  --f-arrow-hover-bg: rgba(255,255,255,1);
  --f-arrow-color: #333;
  --f-arrow-width: 40px;
  --f-arrow-height: 40px;
  --f-arrow-svg-width: 20px;
  --f-arrow-svg-height: 20px;
  --f-arrow-svg-stroke-width: 2px;
  --f-arrow-border-radius: 50%;

  height: 400px;
}

#myCarousel .f-carousel__slide {
  display: flex;
  align-items: center;
  justify-content: center;
}

#myCarousel img {
  max-width: 100%;
  max-height: 100%;
  height: auto;
}

.summary-box {
}
 .gallery-box{
   /*background-color: #fff;*/
   /*border: 1px solid #dfdfdf;*/
   /*border-radius: var(--main-radius);*/
   /*box-shadow: var(--card-shadow);*/
}
 .main-box{
   background-color: #fff;
   border: 1px solid #dfdfdf;
   border-radius: var(--main-radius);

   box-shadow: var(--card-shadow);
 }
 .tabs-row{
   background-color: #fff;
   border: 1px solid #dfdfdf;
   border-radius: var(--main-radius);
   box-shadow: var(--card-shadow);
 }
.stock.in-stock{
  font-size: 0.9rem;
  font-family: 'vazirfd';
  color: #d32f2f;
  text-align: center;
}

.assistant{
  padding: 0 !important;
  background-color: #fff;
  border-right: 10px solid #f5f5f5;
}

#myCarousel {
  position: relative;
  overflow: hidden; /* برای جلوگیری از فضای اضافی */
}

#myCarousel .f-carousel__slide {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100% !important;
  height: auto; /* اگر بخوای ارتفاع اتوماتیک باشه */
}

#myCarousel img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* تصویر کل اسلاید رو پر کنه */
  display: block;
  border: 1px solid #d9bdca40;
  border-radius: var(--main-radius);
}
.f-thumbs__slide img{
  border: 1px solid rgb(227 221 228);
  border-radius: var(--main-radius)!important;
}
.f-thumbs__slide button{
  border-radius: var(--main-radius)!important;
}
/* دکمه‌ها روی تصویر بیفتن */
#myCarousel .f-button.is-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  border-radius: 50%;
  padding: 0;
  transition: background 0.3s ease;

  background-color: rgb(156 82 115 / 38%);
  border: none;
  color: white;
  cursor: pointer;
  z-index: 10;
  border-radius: var(--main-radius);

}
#myCarousel .f-button.is-arrow svg{
  stroke: #fff!important;
}
#myCarousel .f-button.is-prev {
  left: 10px;
}
#myCarousel .f-button.is-next {
  right: 10px;
}

#myCarousel .f-button.is-arrow:hover {
  background: rgba(156, 82, 115, 0.57);
}

.product_title{
  display: inline-block;
  font-size: 1rem;
  font-weight: 900;
  color: #333;
  padding: 20px 0 0;
  line-height: 24px;
}
.tabs-row *{
  color: #4d4d4d!important;
}
#myCarousel{
  margin-top: 13px;
}
.first-row , .tabs-row{
  /*background-color: #fff;*/
  /*box-shadow: 0 0 4px rgba(0, 0, 0, 0.1);*/
  /*border-radius: var(--main-radius);*/
}
.tabs-row{
  margin-top: 25px;
}
.product_meta .sku_wrapper, .product_meta .posted_in , .tagged_as{
  font-size: 0.8rem;
  color: #333!important;
  margin-left: 20px;
  font-weight: 900!important;
}


 .posted_in a , .tagged_as a{
  font-size: 0.8rem;
  color: #777!important;
  margin-right: 3px;
  font-weight: 100;
}
.produc-card img{
  height: auto;
}
.card-price{
  text-align: center;
}
.woocommerce-breadcrumb{
  margin: 10px auto;
  padding: 10px;
  color: #767676;
  font-size: 0.8rem;
  padding-right: 28px;
}
.woocommerce-breadcrumb a{
  color: #767676!important;
  font-size: 0.8rem;
  }

.property-desc li {
  color: #747474;
  padding-right: 0px;
  margin-left: 5px;
  white-space: normal;
  list-style: none;
  font-size: 0.8rem;
  line-height: 2;
  font-weight: 100;
  margin-right: 10px;}
.property-desc .fa-circle {
  color: #949494;
  font-size: 0.4rem;
  position: relative;
  left: 5px;
  top: -2px;
}
.property-desc p{
  font-size: 0.9rem;
  color: #81858b;
  font-weight: 900;
  margin-bottom: 5px;
}
.property-desc{
  margin-top: 20px;
  padding-top: 18px !important;
  padding: 0;
  border-top: 1px solid #d9bdca40;
}
.single_add_to_cart_button{
  color: #fff;
  font-size: 0.9rem;
  padding: 10px 15px;
  border: unset;
  font-weight: 500;
  width: 100%;
  margin-top: 15px;
  border-radius: 10px;
  background-color: #83b735;
  font-weight: 900;
  box-shadow: var(--card-shadow);
  transition: 0.25s ease;
}
.single_add_to_cart_button:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .15);
  background-color: #74a32f;
}

ul.wc-tabs li {
  font-size: 1rem;
  font-weight: 100;
  padding: 8px 5px !important;
  height: 45px !important;
  border: 2px solid #fff!important;
  margin-left: 5%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  white-space: nowrap;
  display: inline-block;
  width: 150px;
  text-align: center;
  border: none !important;
  cursor: pointer;
position: relative;
  border: none !important;
border-radius: 0 0 var(--main-radius) var(--main-radius)!important;
  background-color: var(--main-color)!important;

}
ul.wc-tabs li a{
  color: #fff!important;
  display: block;
  width: 100%;
}
ul.wc-tabs li.active {
  font-weight: 100;
  border: 2px solid #fff!important;
  width: 150px;
  border-radius: 0 0 var(--main-radius) var(--main-radius)!important;
  background-color: var(--main-color)!important;
  box-shadow: 0 2px 5px var(--main-color);
  border-top: none!important;
}
ul.wc-tabs li::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;                /* شروع از سمت راست */
  height: 3px;
  width: 100%;
  background: var(--main-color);
  transform: scaleX(0);    /* مخفی */
  transform-origin: right; /* انیمیشن از راست به چپ */
  transition: transform 0.3s ease;
}
ul.wc-tabs li.active::before {
  content: none;  /* کلاً از بین میره */
}
ul.wc-tabs li:hover::before {
  transform: scaleX(1);    /* ظاهر شدن خط */
}
.tabs.wc-tabs{
  text-align: center;
}


/*.woocommerce-message{*/
/*  display: none;*/
/*}*/

/* برای Chrome, Safari, Edge و سایر مرورگرهای Webkit */
input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* برای Firefox */
input[type=number] {
  -moz-appearance: textfield;
}

/* استایل کلی برای زیباتر شدن */
input[type=number] {
  appearance: textfield; /* استاندارد جدید */
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 15px;
}


/* مخفی کردن پیشفرض */
.woocommerce-notices-wrapper {
  position: fixed;
  top: 20px;
  right: 20px;
  width: auto;
  max-width: 300px;
  z-index: 9999;
  pointer-events: none; /* نوتیفیکیشن کلیک‌ناپذیر باشه */
}

/* استایل کلی پیام‌ها */
.woocommerce-notices-wrapper .woocommerce-message,
.woocommerce-notices-wrapper .woocommerce-error,
.woocommerce-notices-wrapper .woocommerce-info {
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 12px;
  color: #fff;
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
  opacity: 0;
  transform: translateX(50px);
  animation: toastIn 0.4s forwards;
}

/* رنگ‌بندی */
.woocommerce-notices-wrapper .woocommerce-message {
  background: #2ecc71; /* سبز موفقیت */
}
.woocommerce-notices-wrapper .woocommerce-error {
  background: #e74c3c; /* قرمز خطا */
}
.woocommerce-notices-wrapper .woocommerce-info {
  background: #3498db; /* آبی اطلاع‌رسانی */
}

/* دکمه‌ها */
.woocommerce-notices-wrapper a.button {
  background: rgba(255,255,255,0.2);
  color: #fff !important;
  border-radius: 6px;
  padding: 5px 10px;
  margin-left: 10px;
  font-size: 13px;
  transition: 0.3s;
}
.woocommerce-notices-wrapper a.button:hover {
  background: rgba(255,255,255,0.35);
}

/* انیمیشن ظاهر شدن */
@keyframes toastIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
/* انیمیشن محو شدن */
@keyframes toastOut {
  to {
    opacity: 0;
    transform: translateX(50px);
  }
}



/*نظرات*/

.woocommerce-Reviews #comments {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

/* کارت نظر */
.woocommerce-Reviews .comment {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 15px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 150px;
  transition: all 0.3s ease;
}

.woocommerce-Reviews .comment:hover {
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* بخش تاریخ */
.woocommerce-Reviews .comment .comment-date {
  font-size: 12px;
  color: #999;
  margin-bottom: 8px;
}

/* اسم و ستاره‌ها */
.woocommerce-Reviews .comment .comment-author {
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

/* متن نظر */
.woocommerce-Reviews .comment .comment-content {
  font-size: 14px;
  color: #555;
  margin-bottom: 10px;
}

/* پاسخ فروشنده */
.woocommerce-Reviews .comment .comment-reply {
  background: #f0fdf4;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  color: #065f46;
  display: flex;
  align-items: center;
  gap: 5px;
}

.woocommerce-Reviews .comment .comment-reply svg {
  width: 14px;
  height: 14px;
}

.quantity {
  display: inline-flex;
  align-items: center;

  border-radius: 0;
  overflow: hidden;
}
.quantity input.qty {
  width: 40px;
  text-align: center;
  border-radius: 0;
  font-size: 16px;
  padding: 8px;
  outline: none;
  border: 1px solid #ddd;
}
.quantity button {
  background: #886392;
  color: #fff;
  border: none;
  padding: 6px 11px;
  cursor: pointer;
  font-size: 18px;
  font-weight: bold;
  transition: 0.2s;
  border: 1px solid #ddd;
}
.quantity button:hover {
  background: #aeaebd;
}
.plus{
  font-size: 16px!important;
  padding: 8px 9px!important;
  border-radius: var(--main-radius) 0 0 var(--main-radius);
}
.minus{
  border-radius: 0 var(--main-radius) var(--main-radius) 0;
}
form.cart{
  text-align: center;
  padding-top: 10px;
}


/* کانتینر */
.custom-toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px; /* فاصله بین توست‌ها */
}

/* خود توست */
.custom-toast {
  background: var(--main-color);
  color: #fff;
  padding: 25px 18px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  opacity: 0;
  transition: opacity 0.4s ease;
  font-size: 14px;
  min-width: 200px;
  flex-shrink: 0;
}
.custom-toast.error {
  background: #e74c3c;
}
.custom-toast.show {
  opacity: 1;
}
p.desc{
  font-size: 0.8rem;
  color: #333;
  font-weight: 900;

}
p.desc i{
  color: #856189;
  font-size: 1.2rem;
  margin-left: 5px;
  position: relative;
  top: 4px;
  right: 4px;
}
.msecrow{
  padding-left: 0;
}
#my-keen-slider{
  padding: 17px;
}
#ivpa-content .ivpa_attribute[data-attribute="pa_size"].ivpa_text.ivpa_border .ivpa_term.ivpa_active.ivpa_clicked{
  background-color: var(--main-color)!important;
  color: #fff!important;
  border: unset!important;
}
#ivpa-content .ivpa_custom_option.ivpa_text.ivpa_border .ivpa_term, #ivpa-content .ivpa_attribute.ivpa_text.ivpa_border .ivpa_term {
  padding: 4px 10px!important;
  font-family: "vazirbfd"!important;
}
.price{
  margin-top: 20px;

}
.price bdi , .count{
  font-family: "vazirbfd";
  font-weight: 900;
}
.price-box{
  padding: 15px;
}
.fa-star{
  color: #f5a623;
  font-size: 14px;
}

.woocommerce-product-rating{
  font-size: 14px;
}
.rate-box{
  display: inline-block;
}
.wc-tab h2{
  font-size: 1rem;
  font-weight: 900;
}
.wc-tab table{
  width: 100%;
  margin: 0 auto;
  border-collapse: collapse;

}

.wc-tab table th, table td {
  padding: 4px 12px;
  border-bottom: 1px solid #e5e7eb;
}
.wc-tab table tbody tr:hover {
  background: #e9eef6; /* رنگ هاور */
}
.wc-tab table tbody tr:nth-child(odd)  { background: #f7f7f7; }
.wc-tab table tbody tr:nth-child(even) { background: #efefef; }
 .entry-content {
  counter-reset: footnotes;
  padding: 15px;
  text-align: justify;
  font-size: 0.9rem;}
.entry-content p{

}
.Shopping-box .addTo{
  display: none;
}
.info-box{
  background-color: #fff;
  box-shadow: 0 0 3px hsla(0, 0%, 74.9%, .35);
  padding: 10px;
  text-align: center;
  font-size: 0.9rem;
  margin-top: 25px;
  color: var(--main-color);
}
.info-box .fa-solid{
  position: relative;
  top: 1px;
}

.related.products{
  margin-top: 25px;
  padding: 15px;
  background-color: #fff;
  box-shadow: var(--card-shadow);
  border-radius: var(--main-radius);
  border: 1px solid #dfdfdf;
}
.related.products h2{
  font-size: 1.2rem;
  font-weight: 900;
  margin-bottom: 20px;
  padding-right: 5px;
}
.produc-card{
  padding: 0!important;
}


/* Modern WooCommerce Price Style */
.price {
  text-align: center;
  font-family: "IRANSans", sans-serif;
}

/* قیمت قبلی (خط خورده) */
.price del {
  color: #b0b0b0;
  font-size: 0.9rem;
  position: relative;
  opacity: 0.7;
}

.price del bdi {
  position: relative;
}

/* خط نازک و ترندی روی قیمت */
.price del bdi::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1.5px;
  background: linear-gradient(90deg, #ff3d3d, #ff2727);
  transform: translateY(-50%);
  opacity: 0.8;
}

/* قیمت جدید */
.price ins {
  color: #fff;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.woocommerce-Price-amount bdi ,.woocommerce-Price-currencySymbol {
  color: rgb(133,97,137);
}
.related .woocommerce-Price-currencySymbol{
  color: #5b5b5b!important;
}
/* پنهان‌کردن متن صفحه‌خوان */
.price .screen-reader-text {
  display: none !important;
}
.price del bdi .woocommerce-Price-currencySymbol{
  color: #bbb;
}
.price del bdi{
  color: #bbb;
  font-weight: 100;
}











@media only screen and (max-width: 450px) {
  .summary.entry-summary{
    padding: 15px;
  }
  .single_variation_wrap{
    text-align: center;
  }
  .info-box {
    min-height: 67px;
  }
  .woocommerce-breadcrumb{
    overflow: auto;
    white-space: nowrap;
    padding-bottom: 8px;
    max-width: 95%;
    overflow-x: inherit;
    padding-right: 0;
  }
  .first-row{
    width: 95%!important;
    margin: 0 auto!important;
    border-radius: var(--main-radius);
  }
  .msecrow{
    padding: 0;
    margin-top: 20px;
  }
  .product_meta .sku_wrapper, .product_meta .posted_in, .tagged_as{
    color: #562963!important;
  }
  .tabs-row {
    margin-top: 25px;
    width: 95%;
    margin: 0 auto;
    margin-top: 20px;
    border-radius: var(--main-radius);
    box-shadow: var(--card-shadow);
  }
  .product_title{
    font-size: 0.9rem;
  }
  .property-desc p {
    color: #562963;
  }
  .property-desc li {
    color: rgba(0, 0, 0, 0.5);
  }
  ul.wc-tabs li{
    width: auto!important;
    margin-left: 1%;
    font-size: 0.8rem;
    padding: 8px 15px !important;
  }
  .single_add_to_cart_button{
    text-align: center;
    padding-top: 10px;
    position: fixed;
    bottom: 5px;
    width: 96%;
    z-index: 9999;
    margin: 0 auto;
    display: block;
    left: 2%;
  }
  .tabs.wc-tabs{
    padding-right: 0;
  }
}