.elementor-218 .elementor-element.elementor-element-5cbee53{--display:flex;--flex-direction:row;--container-widget-width:initial;--container-widget-height:100%;--container-widget-flex-grow:1;--container-widget-align-self:stretch;--flex-wrap-mobile:wrap;--gap:0px 0px;--row-gap:0px;--column-gap:0px;}.elementor-218 .elementor-element.elementor-element-5cbee53:not(.elementor-motion-effects-element-type-background), .elementor-218 .elementor-element.elementor-element-5cbee53 > .elementor-motion-effects-container > .elementor-motion-effects-layer{background-color:#FFFDFB;}.elementor-218 .elementor-element.elementor-element-5cbee53.e-con{--flex-grow:0;--flex-shrink:0;}.elementor-218 .elementor-element.elementor-element-7f19882{--display:flex;--flex-direction:column;--container-widget-width:100%;--container-widget-height:initial;--container-widget-flex-grow:0;--container-widget-align-self:initial;--flex-wrap-mobile:wrap;}.elementor-218 .elementor-element.elementor-element-8b107dd{--display:flex;--flex-direction:row;--container-widget-width:initial;--container-widget-height:100%;--container-widget-flex-grow:1;--container-widget-align-self:stretch;--flex-wrap-mobile:wrap;}.elementor-widget-woocommerce-product-title .elementor-heading-title{font-family:var( --e-global-typography-primary-font-family ), Sans-serif;font-weight:var( --e-global-typography-primary-font-weight );color:var( --e-global-color-primary );}.elementor-218 .elementor-element.elementor-element-868f953 .elementor-heading-title{font-family:"Vazirmatn", Sans-serif;font-weight:600;color:#49413F;}.woocommerce .elementor-218 .elementor-element.elementor-element-ee04e98 .woocommerce-product-details__short-description{color:#827775;font-family:"Vazirmatn", Sans-serif;font-size:14px;}.woocommerce .elementor-widget-woocommerce-product-price .price{color:var( --e-global-color-primary );font-family:var( --e-global-typography-primary-font-family ), Sans-serif;font-weight:var( --e-global-typography-primary-font-weight );}.elementor-218 .elementor-element.elementor-element-0628dc7{text-align:start;}.woocommerce .elementor-218 .elementor-element.elementor-element-0628dc7 .price{color:#B77B83;font-family:"Vazirmatn", Sans-serif;font-size:24px;font-weight:700;}.elementor-widget-woocommerce-product-add-to-cart .added_to_cart{font-family:var( --e-global-typography-accent-font-family ), Sans-serif;font-weight:var( --e-global-typography-accent-font-weight );}.elementor-218 .elementor-element.elementor-element-502043c .cart button, .elementor-218 .elementor-element.elementor-element-502043c .cart .button{transition:all 0.2s;}.elementor-218 .elementor-element.elementor-element-502043c .quantity .qty{transition:all 0.2s;}.elementor-218 .elementor-element.elementor-element-3081e0d{--display:flex;--flex-direction:row;--container-widget-width:initial;--container-widget-height:100%;--container-widget-flex-grow:1;--container-widget-align-self:stretch;--flex-wrap-mobile:wrap;--gap:0px 0px;--row-gap:0px;--column-gap:0px;--border-radius:20px 20px 20px 20px;}.elementor-218 .elementor-element.elementor-element-3081e0d:not(.elementor-motion-effects-element-type-background), .elementor-218 .elementor-element.elementor-element-3081e0d > .elementor-motion-effects-container > .elementor-motion-effects-layer{background-color:#FFFDFB;}.elementor-218 .elementor-element.elementor-element-3081e0d.e-con{--flex-grow:0;--flex-shrink:0;}.elementor-218 .elementor-element.elementor-element-df2d6fe{--display:flex;--flex-direction:column;--container-widget-width:100%;--container-widget-height:initial;--container-widget-flex-grow:0;--container-widget-align-self:initial;--flex-wrap-mobile:wrap;}.elementor-218 .elementor-element.elementor-element-daa458f .elementor-heading-title{font-family:"Vazirmatn", Sans-serif;font-weight:600;color:#49413F;}.woocommerce .elementor-218 .elementor-element.elementor-element-15c7471 .woocommerce-product-details__short-description{color:#827775;font-family:"Vazirmatn", Sans-serif;font-size:14px;}.elementor-218 .elementor-element.elementor-element-3218cc4{text-align:start;}.woocommerce .elementor-218 .elementor-element.elementor-element-3218cc4 .price{color:#B77B83;font-family:"Vazirmatn", Sans-serif;font-size:24px;font-weight:700;}.elementor-218 .elementor-element.elementor-element-2922169 .cart button, .elementor-218 .elementor-element.elementor-element-2922169 .cart .button{transition:all 0.2s;}.elementor-218 .elementor-element.elementor-element-2922169 .quantity .qty{transition:all 0.2s;}.elementor-218 .elementor-element.elementor-element-4116f1f{--display:flex;--flex-direction:row;--container-widget-width:initial;--container-widget-height:100%;--container-widget-flex-grow:1;--container-widget-align-self:stretch;--flex-wrap-mobile:wrap;}.elementor-218 .elementor-element.elementor-element-f7ee21f{border-radius:10px 10px 10px 10px;}.woocommerce .elementor-218 .elementor-element.elementor-element-f7ee21f .woocommerce-product-gallery__trigger + .woocommerce-product-gallery__wrapper,
					.woocommerce .elementor-218 .elementor-element.elementor-element-f7ee21f .flex-viewport{border-radius:20px 20px 20px 20px;}.woocommerce .elementor-218 .elementor-element.elementor-element-f7ee21f .flex-viewport:not(:last-child){margin-bottom:0px;}.woocommerce .elementor-218 .elementor-element.elementor-element-f7ee21f .flex-control-thumbs img{border-radius:20px 20px 20px 20px;}body.elementor-page-218:not(.elementor-motion-effects-element-type-background), body.elementor-page-218 > .elementor-motion-effects-container > .elementor-motion-effects-layer{background-color:#FAF8F5;}@media(max-width:767px){.elementor-218 .elementor-element.elementor-element-5cbee53{--border-radius:20px 20px 20px 20px;}}@media(min-width:768px){.elementor-218 .elementor-element.elementor-element-5cbee53{--width:97.565%;}.elementor-218 .elementor-element.elementor-element-7f19882{--width:50%;}.elementor-218 .elementor-element.elementor-element-8b107dd{--width:50%;}.elementor-218 .elementor-element.elementor-element-3081e0d{--width:100%;}.elementor-218 .elementor-element.elementor-element-df2d6fe{--width:50%;}.elementor-218 .elementor-element.elementor-element-4116f1f{--width:50%;}}/* Start custom CSS for woocommerce-product-images, class: .elementor-element-356daa9 */.single-product .woocommerce-product-gallery {
    direction: ltr !important;
}/* End custom CSS */
/* Start custom CSS for container, class: .elementor-element-5cbee53 *//* =========================================================
   صفحه محصول بهارتن - دسکتاپ، تبلت و موبایل (نسخه اصلاح‌شده)
   گوشه‌های کارت/گالری/عکس‌ها از خود المنتور تنظیم می‌شود
   ========================================================= */

/* ========== متغیرها ========== */
:root {
  --b-primary: #b9707c;
  --b-primary-dark: #a45d69;
  --b-primary-light: #fbeff0;
  --b-text: #2b2220;
  --b-muted: #8a7b78;
  --b-border: #ece3e1;
  --b-border-strong: #e6dcda;
  --b-bg: #fbf8f6;
}

/* ========== کارت کلی محصول ========== */
.single-product div.product.type-product,
.elementor-location-single .e-con.product-wrap {
  background: var(--b-bg);
  padding: 32px;
  box-sizing: border-box;
}

/* ========== گالری (اصلاح باگ عرض صفر) ========== */

/* ویجت المنتور و ستون گالری نباید جمع بشن */
.elementor-widget-woocommerce-product-images,
.elementor-widget-woocommerce-product-images .elementor-widget-container {
  width: 100%;
  min-width: 0;
}

/* خود گالری: همیشه عرض کامل و دیده‌شده */
.woocommerce-product-gallery,
.elementor-widget-woocommerce-product-images .woocommerce-product-gallery {
  width: 100% !important;
  min-width: 0;
  opacity: 1 !important;
  box-sizing: border-box;
}

/* ویوپورت اسلایدر (Flexslider) */
.woocommerce-product-gallery .flex-viewport {
  width: 100% !important;
  max-width: 100%;
}

/* نکته: عرض wrapper و اسلایدها عمداً دست نخورده؛
   Flexslider خودش inline تنظیمشون می‌کنه */

/* عکس اصلی */
.woocommerce-product-gallery__image img {
  width: 100% !important;
  height: auto !important;
  max-width: 100%;
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(185, 112, 124, .12);
}

/* اگر قالب از Swiper استفاده کند */
.woocommerce-product-gallery .swiper,
.woocommerce-product-gallery .swiper-container {
  width: 100% !important;
}
.woocommerce-product-gallery .swiper-slide img {
  width: 100% !important;
  height: auto !important;
}

/* تامنیل‌ها */
.flex-control-thumbs li img,
.woocommerce-product-gallery .thumbnails img {
  border: 2px solid transparent !important;
  opacity: .85;
  transition: all .25s ease;
  cursor: pointer;
  box-shadow: none;
}
.flex-control-thumbs li img.flex-active,
.flex-control-thumbs li img:hover {
  border-color: var(--b-primary) !important;
  opacity: 1;
}
.woocommerce-product-gallery__trigger {
  background: #fff !important;
  border-radius: 50% !important;
  width: 44px;
  height: 44px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .1);
}

/* ========== عنوان ========== */
.product_title,
.elementor-widget-woocommerce-product-title .elementor-heading-title {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: var(--b-text);
  line-height: 1.4;
  margin-bottom: 6px !important;
}

/* ========== توضیح کوتاه ========== */
.woocommerce-product-details__short-description,
.elementor-widget-woocommerce-product-short-description {
  color: var(--b-muted);
  font-size: 15px;
  line-height: 2;
  margin: 0 0 8px !important;
}

/* ========== ستاره‌ها ========== */
.single-product .summary .star-rating span::before,
.single-product .summary .star-rating::before {
  color: var(--b-primary);
}

/* ========== قیمت (فقط بخش اصلی محصول) ========== */
.single-product .summary .price,
.elementor-widget-woocommerce-product-price .price {
  display: block;
  color: var(--b-primary) !important;
  font-size: 30px !important;
  font-weight: 800 !important;
  padding-bottom: 16px !important;
  margin-bottom: 22px !important;
  border-bottom: 1px solid var(--b-border);
}
.single-product .summary .price del,
.elementor-widget-woocommerce-product-price .price del {
  color: var(--b-muted);
  opacity: .8;
  font-weight: 500;
}
.single-product .summary .price ins,
.elementor-widget-woocommerce-product-price .price ins {
  text-decoration: none;
  background: none;
}

/* ========== رنگ و سایز ========== */
table.variations {
  display: block;
  width: 100%;
  border: 0;
  margin: 0 0 22px;
}
table.variations tbody {
  display: block;
  width: 100%;
}
table.variations tr {
  display: flex !important;
  flex-direction: row;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
}
table.variations th,
table.variations td {
  border: 0 !important;
  background: transparent;
  padding: 0 !important;
  vertical-align: middle;
}
table.variations th.label {
  flex: 0 0 56px;
  width: 56px;
}
table.variations label {
  font-weight: 700;
  color: var(--b-text);
  font-size: 16px;
}
table.variations td.value {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
table.variations ul,
.variable-items-wrapper {
  display: flex !important;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none;
}
.variable-items-wrapper .variable-item,
table.variations ul li {
  float: none !important;
  margin: 0 !important;
}
.reset_variations {
  color: var(--b-primary);
  font-size: 13px;
}

/* --- دکمه‌های سایز --- */
.variable-item.button-variable-item,
.cfvsw-swatches-option,
.tawcvs-swatches .swatch-label {
  min-width: 56px !important;
  height: 52px !important;
  border-radius: 16px !important;
  border: 1.5px solid var(--b-border-strong) !important;
  background: #fff !important;
  color: var(--b-text);
  font-size: 16px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 !important;
  box-shadow: none !important;
  transition: all .2s ease;
}
.variable-item.button-variable-item:hover,
.variable-item.button-variable-item.selected,
.cfvsw-swatches-option.cfvsw-selected-swatch,
.tawcvs-swatches .swatch.selected .swatch-label {
  background: var(--b-primary-light) !important;
  border-color: var(--b-primary) !important;
  color: var(--b-primary) !important;
}
.variable-item.button-variable-item.selected,
.cfvsw-swatches-option.cfvsw-selected-swatch {
  box-shadow: 0 0 0 3px rgba(185, 112, 124, .15) !important;
}

/* --- دایره‌های رنگ --- */
.variable-item.color-variable-item,
.cfvsw-swatches-option.cfvsw-color-swatch {
  width: 46px !important;
  height: 46px !important;
  border-radius: 50% !important;
  border: 2px solid transparent !important;
  padding: 4px !important;
  margin: 0 !important;
  background-clip: content-box !important;
  box-shadow: 0 0 0 1px var(--b-border-strong) !important;
  transition: all .2s ease;
}
.variable-item.color-variable-item:hover {
  transform: scale(1.08);
}
.variable-item.color-variable-item.selected,
.cfvsw-swatches-option.cfvsw-selected-swatch.cfvsw-color-swatch {
  box-shadow: 0 0 0 2px var(--b-primary) !important;
}

/* ========== ردیف تعداد + دکمه سبد ========== */
form.cart {
  display: block !important;
  width: 100%;
}
.woocommerce-variation-add-to-cart,
form.cart:not(.variations_form) {
  display: flex !important;
  flex-direction: row;          /* در RTL یعنی تعداد سمت راست */
  flex-wrap: wrap !important;   /* اگر جا نبود، دکمه می‌رود خط بعد */
  align-items: center;
  gap: 14px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin-top: 10px;
}

/* --- تعداد --- */
.quantity {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  height: 58px;
  min-width: 120px;
  margin: 0 !important;
  background: #fff;
  border: 1.5px solid var(--b-border);
  border-radius: 40px !important;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .04);
}
.quantity input.qty {
  width: 44px;
  height: 100%;
  border: 0 !important;
  background: transparent !important;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  color: var(--b-text);
  -moz-appearance: textfield;
  box-shadow: none;
}
.quantity input.qty::-webkit-outer-spin-button,
.quantity input.qty::-webkit-inner-spin-button {
  -webkit-appearance: none;
}
.quantity .minus,
.quantity .plus {
  width: 38px;
  height: 100%;
  background: transparent !important;
  border: 0 !important;
  color: var(--b-muted);
  font-size: 20px;
  cursor: pointer;
}
.quantity .minus:hover,
.quantity .plus:hover {
  color: var(--b-primary);
}

/* --- دکمه افزودن به سبد --- */
.single_add_to_cart_button {
  flex: 1 1 190px !important;   /* اگر ۱۹۰px جا نبود، می‌رود خط بعد */
  min-width: 0 !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  width: auto !important;
  margin: 0 !important;
  height: 58px !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 14px !important;
  white-space: nowrap;
  overflow: hidden;
  background: var(--b-primary) !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 40px !important;
  font-size: 16px !important;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(185, 112, 124, .3);
  transition: all .25s ease;
}
.single_add_to_cart_button:hover {
  background: var(--b-primary-dark) !important;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(185, 112, 124, .4);
}
.single_add_to_cart_button::after {
  content: "";
  display: inline-block;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 2 3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4z'/%3E%3Cpath d='M3 6h18'/%3E%3Cpath d='M16 10a4 4 0 0 1-8 0'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* ========== متای محصول ========== */
.product_meta {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--b-border);
  color: var(--b-muted);
  font-size: 13px;
}
.product_meta a { color: var(--b-muted); }
.product_meta a:hover { color: var(--b-primary); }

/* ========== نوار ویژگی‌ها ========== */
.b-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #fff;
  border: 1px solid var(--b-border);
  border-radius: 26px;
  padding: 22px 10px;
  margin-top: 30px;
}
.b-features > * {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 14px;
  border-left: 1px solid var(--b-border);
}
.b-features > *:last-child { border-left: 0; }
.b-features svg,
.b-features i {
  color: var(--b-primary);
  font-size: 32px;
  width: 32px;
}

/* =========================================================
   تبلت
   ========================================================= */
@media (min-width: 768px) and (max-width: 1024px) {
  .single-product div.product.type-product,
  .elementor-location-single .e-con.product-wrap {
    padding: 24px;
  }
  .product_title,
  .elementor-widget-woocommerce-product-title .elementor-heading-title {
    font-size: 28px;
  }
  .b-features {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 18px;
  }
  .b-features > *:nth-child(2) { border-left: 0; }
}

/* =========================================================
   موبایل
   ========================================================= */
@media (max-width: 767px) {
  .single-product div.product.type-product,
  .elementor-location-single .e-con.product-wrap {
    padding: 14px;
  }

  .woocommerce-product-gallery__trigger {
    width: 38px;
    height: 38px;
  }

  /* عنوان و توضیح */
  .product_title,
  .elementor-widget-woocommerce-product-title .elementor-heading-title {
    font-size: 22px;
    line-height: 1.5;
    letter-spacing: 0;
    margin-bottom: 2px !important;
  }
  .woocommerce-product-details__short-description,
  .elementor-widget-woocommerce-product-short-description {
    font-size: 13px;
    line-height: 1.9;
    margin: 0 !important;
  }

  /* قیمت */
  .single-product .summary .price,
  .elementor-widget-woocommerce-product-price .price {
    font-size: 22px !important;
    padding-bottom: 12px !important;
    margin-bottom: 14px !important;
  }
  .single-product .summary .price .woocommerce-Price-currencySymbol,
  .elementor-widget-woocommerce-product-price .price .woocommerce-Price-currencySymbol {
    font-size: .55em;
    font-weight: 600;
    margin-inline-start: 4px;
  }

  /* رنگ و سایز */
  table.variations {
    margin-bottom: 14px;
  }
  table.variations tr {
    gap: 10px;
    margin-bottom: 12px;
  }
  table.variations th.label {
    flex: 0 0 44px;
    width: 44px;
  }
  table.variations label {
    font-size: 14px;
  }
  table.variations td.value,
  table.variations ul,
  .variable-items-wrapper {
    gap: 8px;
  }
  .reset_variations {
    font-size: 12px;
  }
  .variable-item.button-variable-item,
  .cfvsw-swatches-option,
  .tawcvs-swatches .swatch-label {
    min-width: 44px !important;
    height: 42px !important;
    border-radius: 12px !important;
    font-size: 14px;
  }
  .variable-item.color-variable-item,
  .cfvsw-swatches-option.cfvsw-color-swatch {
    width: 36px !important;
    height: 36px !important;
    padding: 3px !important;
  }

  /* تعداد + دکمه سبد */
  .woocommerce-variation-add-to-cart,
  form.cart:not(.variations_form) {
    gap: 10px;
    margin-top: 6px;
  }
  .quantity {
    height: 48px;
    min-width: 104px;
  }
  .quantity input.qty {
    width: 34px;
    font-size: 14px;
  }
  .quantity .minus,
  .quantity .plus {
    width: 34px;
    font-size: 18px;
  }
  .single_add_to_cart_button {
    flex: 1 1 170px !important;   /* جا نبود، تمام‌عرض می‌رود خط بعد */
    height: 48px !important;
    padding: 0 12px !important;
    gap: 8px;
    font-size: 14px !important;
  }
  .single_add_to_cart_button::after {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
  }

  /* متا */
  .product_meta {
    gap: 6px 16px;
    margin-top: 16px;
    padding-top: 14px;
    font-size: 12px;
  }

  /* نوار ویژگی‌ها */
  .b-features {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 14px;
    padding: 16px 6px;
    margin-top: 20px;
    border-radius: 20px;
    font-size: 12px;
  }
  .b-features > * {
    gap: 8px;
    padding: 0 8px;
  }
  .b-features > *:nth-child(2) { border-left: 0; }
  .b-features svg,
  .b-features i {
    font-size: 24px;
    width: 24px;
  }
}/* End custom CSS */
/* Start custom CSS for woocommerce-product-images, class: .elementor-element-f7ee21f */.single-product .woocommerce-product-gallery {
    direction: ltr !important;
}/* End custom CSS */
/* Start custom CSS for container, class: .elementor-element-3081e0d *//* =========================================================
   صفحه محصول بهارتن - دسکتاپ / تبلت / موبایل
   اندازه‌ها (فونت، ارتفاع، فاصله) فقط داخل media query هستند،
   پس نسخه دسکتاپ هیچ‌وقت روی نسخه موبایل اثر نمی‌گذارد.
   گوشه‌های کارت/گالری/عکس‌ها از خود المنتور تنظیم می‌شود
   ========================================================= */

/* ========== متغیرها ========== */
:root {
  --b-primary: #b9707c;
  --b-primary-dark: #a45d69;
  --b-primary-light: #fbeff0;
  --b-text: #2b2220;
  --b-muted: #8a7b78;
  --b-border: #ece3e1;
  --b-border-strong: #e6dcda;
  --b-bg: #fbf8f6;
}

/* =========================================================
   بخش مشترک (رنگ و ساختار، بدون هیچ اندازه‌ای)
   ========================================================= */

/* ----- کارت کلی ----- */
.single-product div.product,
.elementor-location-single .e-con.product-wrap {
  background: var(--b-bg);
  direction: rtl;
}

/* ----- گالری ----- */
.woocommerce-product-gallery__image img,
.elementor-widget-woocommerce-product-images img {
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(185, 112, 124, .12);
}
.flex-control-thumbs li img,
.woocommerce-product-gallery .thumbnails img {
  border: 2px solid transparent !important;
  opacity: .85;
  transition: all .25s ease;
  cursor: pointer;
}
.flex-control-thumbs li img.flex-active,
.flex-control-thumbs li img:hover {
  border-color: var(--b-primary) !important;
  opacity: 1;
}
.woocommerce-product-gallery__trigger {
  background: #fff !important;
  border-radius: 50% !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .1);
}

/* ----- عنوان ----- */
.product_title,
.elementor-widget-woocommerce-product-title .elementor-heading-title {
  font-weight: 800;
  color: var(--b-text);
}

/* ----- توضیح کوتاه ----- */
.woocommerce-product-details__short-description,
.elementor-widget-woocommerce-product-short-description {
  color: var(--b-muted);
}

/* ----- ستاره‌ها ----- */
.woocommerce-product-rating .star-rating span::before,
.star-rating::before {
  color: var(--b-primary);
}

/* ----- قیمت ----- */
.price,
.elementor-widget-woocommerce-product-price .price {
  display: block;
  color: var(--b-primary) !important;
  font-weight: 800 !important;
  border-bottom: 1px solid var(--b-border);
}
.price del {
  color: var(--b-muted);
  opacity: .8;
  font-weight: 500;
}
.price ins {
  text-decoration: none;
  background: none;
}

/* ----- رنگ و سایز: ساختار ----- */
table.variations {
  display: block;
  width: 100%;
  border: 0;
}
table.variations tbody {
  display: block;
  width: 100%;
}
table.variations tr {
  display: flex !important;
  flex-direction: row;
  align-items: center;
}
table.variations th,
table.variations td {
  border: 0 !important;
  background: transparent;
  padding: 0 !important;
  vertical-align: middle;
}
table.variations label {
  font-weight: 700;
  color: var(--b-text);
}
table.variations td.value {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}
table.variations ul,
.variable-items-wrapper {
  display: flex !important;
  flex-wrap: wrap;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none;
}
.variable-items-wrapper .variable-item,
table.variations ul li {
  float: none !important;
  margin: 0 !important;
}
.reset_variations {
  color: var(--b-primary);
}

/* ----- دکمه‌های سایز: ظاهر ----- */
.variable-item.button-variable-item,
.cfvsw-swatches-option,
.tawcvs-swatches .swatch-label {
  border: 1.5px solid var(--b-border-strong) !important;
  background: #fff !important;
  color: var(--b-text);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 !important;
  box-shadow: none !important;
  transition: all .2s ease;
}
.variable-item.button-variable-item:hover,
.variable-item.button-variable-item.selected,
.cfvsw-swatches-option.cfvsw-selected-swatch,
.tawcvs-swatches .swatch.selected .swatch-label {
  background: var(--b-primary-light) !important;
  border-color: var(--b-primary) !important;
  color: var(--b-primary) !important;
}
.variable-item.button-variable-item.selected,
.cfvsw-swatches-option.cfvsw-selected-swatch {
  box-shadow: 0 0 0 3px rgba(185, 112, 124, .15) !important;
}

/* ----- دایره‌های رنگ: ظاهر ----- */
.variable-item.color-variable-item,
.cfvsw-swatches-option.cfvsw-color-swatch {
  border-radius: 50% !important;
  border: 2px solid transparent !important;
  margin: 0 !important;
  background-clip: content-box !important;
  box-shadow: 0 0 0 1px var(--b-border-strong) !important;
  transition: all .2s ease;
}
.variable-item.color-variable-item:hover {
  transform: scale(1.08);
}
.variable-item.color-variable-item.selected,
.cfvsw-swatches-option.cfvsw-selected-swatch.cfvsw-color-swatch {
  box-shadow: 0 0 0 2px var(--b-primary) !important;
}

/* ----- ردیف تعداد + دکمه سبد: ساختار ----- */
form.cart {
  display: block !important;
  width: 100%;
}
.woocommerce-variation-add-to-cart,
form.cart:not(.variations_form) {
  display: flex !important;
  flex-direction: row;          /* در RTL یعنی تعداد سمت راست */
  flex-wrap: wrap !important;   /* اگر جا نبود، دکمه می‌رود خط بعد */
  align-items: center;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* ----- تعداد: ظاهر ----- */
.quantity {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  margin: 0 !important;
  background: #fff;
  border: 1.5px solid var(--b-border);
  border-radius: 40px !important;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .04);
}
.quantity input.qty {
  height: 100%;
  border: 0 !important;
  background: transparent !important;
  text-align: center;
  font-weight: 600;
  color: var(--b-text);
  -moz-appearance: textfield;
  box-shadow: none;
}
.quantity input.qty::-webkit-outer-spin-button,
.quantity input.qty::-webkit-inner-spin-button {
  -webkit-appearance: none;
}
.quantity .minus,
.quantity .plus {
  height: 100%;
  background: transparent !important;
  border: 0 !important;
  color: var(--b-muted);
  cursor: pointer;
}
.quantity .minus:hover,
.quantity .plus:hover {
  color: var(--b-primary);
}

/* ----- دکمه افزودن به سبد: ظاهر ----- */
.single_add_to_cart_button {
  min-width: 0 !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  width: auto !important;
  margin: 0 !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  overflow: hidden;
  background: var(--b-primary) !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 40px !important;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(185, 112, 124, .3);
  transition: all .25s ease;
}
.single_add_to_cart_button:hover {
  background: var(--b-primary-dark) !important;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(185, 112, 124, .4);
}
.single_add_to_cart_button::after {
  content: "";
  display: inline-block;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 2 3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4z'/%3E%3Cpath d='M3 6h18'/%3E%3Cpath d='M16 10a4 4 0 0 1-8 0'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* ----- متای محصول: ساختار ----- */
.product_meta {
  display: flex;
  flex-wrap: wrap;
  border-top: 1px solid var(--b-border);
  color: var(--b-muted);
}
.product_meta a { color: var(--b-muted); }
.product_meta a:hover { color: var(--b-primary); }

/* ----- نوار ویژگی‌ها: ساختار ----- */
.b-features {
  display: grid;
  background: #fff;
  border: 1px solid var(--b-border);
}
.b-features > * {
  display: flex;
  align-items: center;
  justify-content: center;
  border-left: 1px solid var(--b-border);
}
.b-features > *:last-child { border-left: 0; }
.b-features svg,
.b-features i {
  color: var(--b-primary);
}

/* =========================================================
   دسکتاپ و تبلت (از ۷۶۸px به بالا)
   ========================================================= */
@media (min-width: 768px) {
  .single-product div.product,
  .elementor-location-single .e-con.product-wrap {
    padding: 32px;
  }

  .woocommerce-product-gallery__trigger {
    width: 44px;
    height: 44px;
  }

  .product_title,
  .elementor-widget-woocommerce-product-title .elementor-heading-title {
    font-size: 34px;
    letter-spacing: -0.3px;
    line-height: 1.4;
    margin-bottom: 6px !important;
  }

  .woocommerce-product-details__short-description,
  .elementor-widget-woocommerce-product-short-description {
    font-size: 15px;
    line-height: 2;
    margin: 0 0 8px !important;
  }

  .price,
  .elementor-widget-woocommerce-product-price .price {
    font-size: 30px !important;
    padding-bottom: 16px !important;
    margin-bottom: 22px !important;
  }

  table.variations { margin: 0 0 22px; }
  table.variations tr { gap: 18px; margin-bottom: 18px; }
  table.variations th.label { flex: 0 0 56px; width: 56px; }
  table.variations label { font-size: 16px; }
  table.variations td.value { gap: 10px; }
  table.variations ul,
  .variable-items-wrapper { gap: 10px; }
  .reset_variations { font-size: 13px; }

  .variable-item.button-variable-item,
  .cfvsw-swatches-option,
  .tawcvs-swatches .swatch-label {
    min-width: 56px !important;
    height: 52px !important;
    border-radius: 16px !important;
    font-size: 16px;
  }
  .variable-item.color-variable-item,
  .cfvsw-swatches-option.cfvsw-color-swatch {
    width: 46px !important;
    height: 46px !important;
    padding: 4px !important;
  }

  .woocommerce-variation-add-to-cart,
  form.cart:not(.variations_form) {
    gap: 14px;
    margin-top: 10px;
  }
  .quantity {
    height: 58px;
    min-width: 120px;
  }
  .quantity input.qty { width: 44px; font-size: 16px; }
  .quantity .minus,
  .quantity .plus { width: 38px; font-size: 20px; }

  .single_add_to_cart_button {
    flex: 1 1 190px !important;
    height: 58px !important;
    gap: 10px;
    padding: 0 14px !important;
    font-size: 16px !important;
  }
  .single_add_to_cart_button::after {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
  }

  .product_meta {
    gap: 24px;
    margin-top: 24px;
    padding-top: 18px;
    font-size: 13px;
  }

  .b-features {
    grid-template-columns: repeat(4, 1fr);
    border-radius: 26px;
    padding: 22px 10px;
    margin-top: 30px;
  }
  .b-features > * { gap: 12px; padding: 0 14px; }
  .b-features svg,
  .b-features i { font-size: 32px; width: 32px; }
}

/* =========================================================
   تبلت (۷۶۸ تا ۱۰۲۴px)
   ========================================================= */
@media (min-width: 768px) and (max-width: 1024px) {
  .single-product div.product,
  .elementor-location-single .e-con.product-wrap {
    padding: 24px;
  }
  .product_title,
  .elementor-widget-woocommerce-product-title .elementor-heading-title {
    font-size: 28px;
  }
  .b-features {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 18px;
  }
  .b-features > *:nth-child(2) { border-left: 0; }
}

/* =========================================================
   موبایل (تا ۷۶۷px)
   ========================================================= */
@media (max-width: 767px) {
  .single-product div.product,
  .elementor-location-single .e-con.product-wrap {
    padding: 14px;
  }

  .woocommerce-product-gallery__trigger {
    width: 38px;
    height: 38px;
  }

  /* عنوان و توضیح */
  .product_title,
  .elementor-widget-woocommerce-product-title .elementor-heading-title {
    font-size: 22px;
    line-height: 1.5;
    letter-spacing: 0;
    margin-bottom: 2px !important;
  }
  .woocommerce-product-details__short-description,
  .elementor-widget-woocommerce-product-short-description {
    font-size: 13px;
    line-height: 1.9;
    margin: 0 !important;
  }

  /* قیمت */
  .price,
  .elementor-widget-woocommerce-product-price .price {
    font-size: 22px !important;
    padding-bottom: 12px !important;
    margin-bottom: 14px !important;
  }
  .price .woocommerce-Price-currencySymbol {
    font-size: .55em;
    font-weight: 600;
    margin-inline-start: 4px;
  }

  /* رنگ و سایز */
  table.variations { margin: 0 0 14px; }
  table.variations tr { gap: 10px; margin-bottom: 12px; }
  table.variations th.label { flex: 0 0 44px; width: 44px; }
  table.variations label { font-size: 14px; }
  table.variations td.value { gap: 8px; }
  table.variations ul,
  .variable-items-wrapper { gap: 8px; }
  .reset_variations { font-size: 12px; }

  .variable-item.button-variable-item,
  .cfvsw-swatches-option,
  .tawcvs-swatches .swatch-label {
    min-width: 44px !important;
    height: 42px !important;
    border-radius: 12px !important;
    font-size: 14px;
  }
  .variable-item.color-variable-item,
  .cfvsw-swatches-option.cfvsw-color-swatch {
    width: 36px !important;
    height: 36px !important;
    padding: 3px !important;
  }

  /* تعداد + دکمه سبد */
  .woocommerce-variation-add-to-cart,
  form.cart:not(.variations_form) {
    gap: 10px;
    margin-top: 6px;
  }
  .quantity {
    height: 48px;
    min-width: 104px;
  }
  .quantity input.qty { width: 34px; font-size: 14px; }
  .quantity .minus,
  .quantity .plus { width: 34px; font-size: 18px; }

  .single_add_to_cart_button {
    flex: 1 1 170px !important;   /* جا نبود، تمام‌عرض می‌رود خط بعد */
    height: 48px !important;
    gap: 8px;
    padding: 0 12px !important;
    font-size: 14px !important;
  }
  .single_add_to_cart_button::after {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
  }

  /* متا */
  .product_meta {
    gap: 6px 16px;
    margin-top: 16px;
    padding-top: 14px;
    font-size: 12px;
  }

  /* نوار ویژگی‌ها */
  .b-features {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 14px;
    padding: 16px 6px;
    margin-top: 20px;
    border-radius: 20px;
    font-size: 12px;
  }
  .b-features > * { gap: 8px; padding: 0 8px; }
  .b-features > *:nth-child(2) { border-left: 0; }
  .b-features svg,
  .b-features i { font-size: 24px; width: 24px; }
}/* End custom CSS */