@font-face {
	font-weight: normal;
	font-style: normal;
	font-family: "woodmart-font";
	src: url("//odta.ir/wp-content/themes/woodmart/fonts/woodmart-font-1-400.woff2?v=8.0.6") format("woff2");
}

@font-face {
	font-family: "star";
	font-weight: 400;
	font-style: normal;
	src: url("//odta.ir/wp-content/plugins/woocommerce/assets/fonts/star.eot?#iefix") format("embedded-opentype"), url("//odta.ir/wp-content/plugins/woocommerce/assets/fonts/star.woff") format("woff"), url("//odta.ir/wp-content/plugins/woocommerce/assets/fonts/star.ttf") format("truetype"), url("//odta.ir/wp-content/plugins/woocommerce/assets/fonts/star.svg#star") format("svg");
}

@font-face {
	font-family: "WooCommerce";
	font-weight: 400;
	font-style: normal;
	src: url("//odta.ir/wp-content/plugins/woocommerce/assets/fonts/WooCommerce.eot?#iefix") format("embedded-opentype"), url("//odta.ir/wp-content/plugins/woocommerce/assets/fonts/WooCommerce.woff") format("woff"), url("//odta.ir/wp-content/plugins/woocommerce/assets/fonts/WooCommerce.ttf") format("truetype"), url("//odta.ir/wp-content/plugins/woocommerce/assets/fonts/WooCommerce.svg#WooCommerce") format("svg");
}

:root {
	--wd-header-banner-h: 40px;
	--wd-text-font: "bakh", Arial, Helvetica, sans-serif;
	--wd-text-font-weight: 400;
	--wd-text-color: #777777;
	--wd-text-font-size: 14px;
	--wd-title-font: "bakh", Arial, Helvetica, sans-serif;
	--wd-title-font-weight: 900;
	--wd-title-color: #242424;
	--wd-entities-title-font: "bakh", Arial, Helvetica, sans-serif;
	--wd-entities-title-font-weight: 600;
	--wd-entities-title-color: #333333;
	--wd-entities-title-color-hover: rgb(51 51 51 / 65%);
	--wd-alternative-font: "bakh", Arial, Helvetica, sans-serif;
	--wd-widget-title-font: "bakh", Arial, Helvetica, sans-serif;
	--wd-widget-title-font-weight: 600;
	--wd-widget-title-transform: uppercase;
	--wd-widget-title-color: #333;
	--wd-widget-title-font-size: 16px;
	--wd-header-el-font: "bakh", Arial, Helvetica, sans-serif;
	--wd-header-el-font-weight: 500;
	--wd-header-el-transform: uppercase;
	--wd-header-el-font-size: 15px;
	--wd-primary-color: rgb(9,9,72);
	--wd-alternative-color: #fbbc34;
	--wd-link-color: #333333;
	--wd-link-color-hover: #242424;
	--btn-default-bgcolor: #f7f7f7;
	--btn-default-bgcolor-hover: #efefef;
	--btn-accented-bgcolor: #AAD0EB;
	--btn-accented-bgcolor-hover: #9BBED6;
	--wd-form-brd-width: 1px;
	--notices-success-bg: #459647;
	--notices-success-color: #fff;
	--notices-warning-bg: #E0B252;
	--notices-warning-color: #fff;
}
.wd-popup.wd-age-verify {
	--wd-popup-width: 500px;
}
.wd-popup.wd-promo-popup {
	background-color: #111111;
	background-image: none;
	background-repeat: no-repeat;
	background-size: contain;
	background-position: left center;
	--wd-popup-width: 800px;
}
.woodmart-woocommerce-layered-nav .wd-scroll-content {
	max-height: 280px;
}
.wd-page-title {
	background-image: none;
	background-size: cover;
	background-position: center center;
}
.wd-footer {
	background-color: #ffffff;
	background-image: none;
}
.wd-popup.popup-quick-view {
	--wd-popup-width: 920px;
}

@media (max-width: 1024px) {
	:root {
		--wd-header-banner-h: 40px;
	}

}
:root{
--wd-container-w: 1222px;
--wd-form-brd-radius: 0px;
--btn-default-color: #333;
--btn-default-color-hover: #333;
--btn-accented-color: #fff;
--btn-accented-color-hover: #fff;
--btn-default-brd-radius: 0px;
--btn-default-box-shadow: none;
--btn-default-box-shadow-hover: none;
--btn-default-box-shadow-active: none;
--btn-default-bottom: 0px;
--btn-accented-brd-radius: 0px;
--btn-accented-box-shadow: none;
--btn-accented-box-shadow-hover: none;
--btn-accented-box-shadow-active: none;
--btn-accented-bottom: 0px;
--wd-brd-radius: 12px;
}

@media (min-width: 1239px) {
.platform-Windows .wd-section-stretch > .elementor-container {
margin-left: auto;
margin-right: auto;
}
}

@media (min-width: 1222px) {
html:not(.platform-Windows) .wd-section-stretch > .elementor-container {
margin-left: auto;
margin-right: auto;
}
}

rs-slides :is([data-type=text],[data-type=button]) {
font-family: bakh !important;
}
rs-slides :is(h1,h2,h3,h4,h5,h6)[data-type=text] {
font-family: bakh !important;
}

@font-face {
	font-family: "bakh";
	src: url("//odta.ir/wp-content/uploads/2025/02/YekanBakhFaNum-Regular.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
}

@font-face {
	font-family: "bakh";
	src: url("//odta.ir/wp-content/uploads/2025/02/YekanBakhFaNum-SemiBold.woff2") format("woff");
	font-weight: 900;
	font-style: normal;
}

@font-face {
	font-family: "bakh";
	src: url("//odta.ir/wp-content/uploads/2025/02/YekanBakhFaNum-ExtraBold.woff2") format("woff2");
	font-weight: 900;
	font-style: normal;
}

:is(.wd-custom-icon,picture.wd-custom-icon img) {
    max-width: 20px;
}
/* -------------------------------------------------------
   Hide only the description tab + panel INSIDE the tabs
   (keeps any moved/other description elements outside tabs)
   ------------------------------------------------------- */
.woocommerce-tabs .tabs li.description_tab,
.woocommerce-tabs .tabs a[href="#tab-description"],
.woocommerce-tabs .tabs a[data-tab="#tab-description"],
.woocommerce-tabs #tab-description,
.woocommerce-tabs .woocommerce-Tabs-panel--description,
.woocommerce-tabs .panel#tab-description {
  display: none !important;
}
/* ---- 1) قاب ثابت برای تصاویر محصولات ---- */
.woocommerce ul.products li.product,
ul.products li.product {
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  min-height: 420px; /* ارتفاع کارت — در صورت نیاز تغییر بده */
}

/* حاوی تصویر را مخفی‌سازی overflow کن تا کراپ درست انجام شود */
.woocommerce ul.products li.product .woocommerce-LoopProduct-link,
ul.products li.product a {
  display: block;
  overflow: hidden;
}

/* تنظیم مستقیم روی خود <img> — اندازه ثابت و کراپ */
.woocommerce ul.products li.product img,
ul.products li.product img,
.product .wp-post-image,
.woocommerce ul.products li.product .attachment-woocommerce_thumbnail {
  width: 100% !important;
  height: 240px !important;       /* ← اندازه‌ی ثابت تصویر در کارت (تغییر بده) */
  object-fit: cover !important;   /* تصویر را بدون اعوجاج کراپ می‌کند */
  display: block !important;
  max-width: 100% !important;
}

/* اگر عنوان/توضیحات و قیمت را می‌خواهی در پایین کارت بچسبد */
.woocommerce ul.products li.product .price,
.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product .product-title,
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  margin-top: auto;
}

/* موبایل: ارتفاع تصویر کمتر کن */
@media (max-width: 768px) {
  .woocommerce ul.products li.product {
    min-height: auto;
  }
  .woocommerce ul.products li.product img {
    height: 160px !important;
  }
}
/* یکنواخت کردن پیش‌نمایش تصاویر محصولات — قاب ثابت (به صورت مربع) */
.woocommerce ul.products li.product,
ul.products li.product {
  display: flex !important;
  flex-direction: column !important;
  box-sizing: border-box !important;
  min-height: 360px !important; /* ارتفاع کلی کارت؛ در صورت نیاز تغییر بده */
}

/* قاب تصویر یکنواخت */
.products .product .thumb-wrapper,
.woocommerce ul.products li.product .thumb-wrapper,
ul.products li.product .thumb-wrapper {
  width: 100% !important;
  aspect-ratio: 1 / 1 !important;        /* ← مربع؛ برای مستطیل: e.g. 4 / 3 */
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  display: block !important;
  overflow: hidden !important;
}

/* مخفی‌سازی تصویر <img> اصلی (فقط در لیست محصولات) */
.woocommerce ul.products li.product img,
ul.products li.product img {
  display: none !important;
  visibility: hidden !important;
  width: 0 !important;
  height: 0 !important;
  max-width: none !important;
}

/* فشار دادن متن/قیمت به پایین کارت */
.woocommerce ul.products li.product .price,
.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  margin-top: auto !important;
}

/* موبایل: اندازه قاب را کمتر کن */
@media (max-width: 768px) {
  .products .product .thumb-wrapper,
  .woocommerce ul.products li.product .thumb-wrapper {
    aspect-ratio: 1 / 1 !important;
  }
  .woocommerce ul.products li.product {
    min-height: auto !important;
  }
}
/* ====== Scoped fix: ONLY single product main gallery ====== */

/* 1) wrapper — فقط صفحه محصول */
.single-product .woocommerce-product-gallery,
.single-product .woocommerce-product-gallery__wrapper,
.single-product .woocommerce-product-gallery__image,
.single-product .product .images {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: visible !important;    /* جلوگیری از کراپ شدن */
  min-height: 320px !important;    /* ارتفاع اصلی کانتینر - در صورت نیاز تغییر دهید */
}

/* 2) تصویر اصلی داخل گالری — فقط برای صفحه محصول */
.single-product .woocommerce-product-gallery__image img,
.single-product .woocommerce-product-gallery__image > a > img,
.single-product .product .images img {
  width: auto !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: 320px !important;    /* ارتفاع تصویر در حالت عادی قبل از کلیک */
  object-fit: contain !important;  /* مهم — تصویر بدون کراپ داخل کادر نمایش داده شود */
  object-position: center center !important;
  display: block !important;
}

/* 3) تصاویر زوم / لایت‌باکس — محدود به پنجره نمایش، کشیده نشوند */
.single-product .woocommerce-product-gallery .zoomImg,
.single-product .woocommerce-product-gallery__image img.zoom,
.single-product .woocommerce-product-gallery__image a img {
  object-fit: contain !important;
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: 90vh !important;    /* زوم داخل پنجرهٔ دید قرار گیرد */
  transform: none !important;     /* اگر transform یا scale اعمال شده، لغو می‌شود */
}

/* همچنین برای لایت‌باکس‌های معمول (MagnificPopup / PhotoSwipe / fancybox) */
.mfp-content img,
.pswp__img,
.fancybox-container img,
.single-product .mfp-content img {
  object-fit: contain !important;
  max-height: 90vh !important;
  max-width: 100% !important;
  width: auto !important;
  height: auto !important;
}

/* 4) مطمئن می‌شویم تصاویر در سایر بخش‌ها (related, upsells, product loops) تغییری نکنند */
.products .product img,
.related.products img,
.upsells.products img,
.widget_products img,
.archive .product img,
.home .product img {
  /* بازگردانی به حالت پیش‌فرض / جلوگیری از تأثیر */
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: none !important;
  object-fit: cover !important;    /* حفظ ظاهر تامبنیل‌ها */
}

/* 5) در صورتی که قالب از background-image برای تصویر اصلی استفاده می‌کند */
.single-product .woocommerce-product-gallery__image,
.single-product .woocommerce-product-gallery__image a {
  background-size: contain !important;
  background-repeat: no-repeat !important;
  background-position: center center !important;
  min-height: 320px !important;
}
