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

:root {
	--wd-text-font: "iranyekanwebregularfanum", Arial, Helvetica, sans-serif;
	--wd-text-font-weight: 400;
	--wd-text-color: rgb(51,51,51);
	--wd-text-font-size: 14px;
	--wd-title-font: "iranyekanwebboldfanum", Arial, Helvetica, sans-serif;
	--wd-title-font-weight: 600;
	--wd-title-color: rgb(4,23,53);
	--wd-entities-title-font: "iranyekanwebregularfanum", Arial, Helvetica, sans-serif;
	--wd-entities-title-font-weight: 500;
	--wd-entities-title-color: #333333;
	--wd-entities-title-color-hover: rgb(51 51 51 / 65%);
	--wd-alternative-font: "Lato", Arial, Helvetica, sans-serif;
	--wd-widget-title-font: "iranyekanwebregularfanum", Arial, Helvetica, sans-serif;
	--wd-widget-title-font-weight: 500;
	--wd-widget-title-transform: uppercase;
	--wd-widget-title-color: #333;
	--wd-widget-title-font-size: 16px;
	--wd-header-el-font: "iranyekanwebregularfanum", Arial, Helvetica, sans-serif;
	--wd-header-el-font-weight: 400;
	--wd-header-el-transform: uppercase;
	--wd-header-el-font-size: 14px;
	--wd-brd-radius: 18px;
	--wd-primary-color: rgb(211,16,33);
	--wd-alternative-color: rgb(0,9,63);
	--wd-link-color: #333333;
	--wd-link-color-hover: #242424;
	--btn-default-font-family: "iranyekanwebregularfanum", Arial, Helvetica, sans-serif;
	--btn-default-bgcolor: #f7f7f7;
	--btn-default-bgcolor-hover: #efefef;
	--btn-accented-font-family: "iranyekanwebregularfanum", Arial, Helvetica, sans-serif;
	--btn-accented-font-weight: 400;
	--btn-accented-bgcolor: rgb(193,54,75);
	--btn-accented-bgcolor-hover: rgb(193,34,58);
	--wd-form-brd-width: 2px;
	--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;
}
:is(.woodmart-archive-shop .wd-builder-off,.wd-wishlist-content,.related-and-upsells,.cart-collaterals,.wd-shop-product,.wd-fbt) .wd-products-with-bg, :is(.woodmart-archive-shop .wd-builder-off,.wd-wishlist-content,.related-and-upsells,.cart-collaterals,.wd-shop-product,.wd-fbt) .wd-products-with-bg :is(.wd-product,.wd-cat) {
	--wd-prod-bg:rgb(255,255,255);
	--wd-bordered-bg:rgb(255,255,255);
}
:is(.woodmart-woocommerce-layered-nav, .wd-product-category-filter) .wd-scroll-content {
	max-height: 223px;
}
.wd-page-title {
	background-color: #0a0a0a;
	background-image: none;
	background-size: cover;
	background-position: center center;
}
.wd-footer {
	background-color: #ffffff;
	background-image: none;
}
.page .wd-page-content {
	background-color: #FCFEFF;
	background-image: none;
}
.woodmart-archive-shop:not(.single-product) .wd-page-content {
	background-color: #FCFEFF;
	background-image: none;
}
.single-product .wd-page-content {
	background-color: #FCFEFF;
	background-image: none;
}
.woodmart-archive-blog .wd-page-content {
	background-color: rgb(252,254,255);
	background-image: none;
}
.single-post .wd-page-content {
	background-color: rgb(252,254,255);
	background-image: none;
}
.woodmart-archive-portfolio .wd-page-content {
	background-color: rgb(252,254,255);
	background-image: none;
}
.single-portfolio .wd-page-content {
	background-color: rgb(252,254,255);
	background-image: none;
}
 {
	font-family: "iranyekanwebregularfanum", Arial, Helvetica, sans-serif;
}
.wd-nav-scroll {
	--wd-nscroll-drag-bg: rgb(193,54,75);
	--wd-nscroll-drag-bg-hover: rgb(193,31,55);
}
.product-labels .product-label.onsale {
	background-color: rgb(193,54,75);
	color: rgb(255,255,255);
}
.product-labels .product-label.new {
	background-color: rgb(64,209,151);
	color: rgb(255,255,255);
}
.product-labels .product-label.featured {
	background-color: rgb(221,153,51);
	color: rgb(255,255,255);
}
.product-labels .product-label.out-of-stock {
	background-color: rgb(193,54,75);
	color: rgb(255,255,255);
}
.product-labels .product-label.attribute-label:not(.label-with-img) {
	color: rgb(255,255,255);
}
.wd-popup.popup-quick-view {
	--wd-popup-width: 920px;
}
.woocommerce-product-gallery {
	--wd-gallery-gap: 15px;
}
:root{
--wd-container-w: 1600px;
--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: 5px;
--btn-default-box-shadow: none;
--btn-default-box-shadow-hover: none;
--btn-accented-brd-radius: 5px;
--btn-accented-box-shadow: none;
--btn-accented-box-shadow-hover: none;
}

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


@font-face {
	font-family: "iranyekanwebregularfanum";
	src: url("//diacooptic.ir/wp-content/uploads/2025/10/iranyekanwebregularfanum.woff") format("woff");
	font-weight: 400;
	font-display:swap;
	font-style: normal;
}

@font-face {
	font-family: "iranyekanwebboldfanum";
	src: url("//diacooptic.ir/wp-content/uploads/2025/10/iranyekanwebboldfanum.woff") format("woff");
	font-weight: 600;
	font-display:swap;
	font-style: normal;
}

@font-face {
	font-family: "iranyekanweblightfanum";
	src: url("//diacooptic.ir/wp-content/uploads/2025/10/iranyekanweblightfanum.woff") format("woff");
	font-weight: 300;
	font-display:swap;
	font-style: normal;
}

/*      ویژگی های محصول - زمینه خاکستری      */

/*	.cell-att-pro .shop_attributes{
		border-radius: 4px !important;
    background-color: #F0F0F1 !important;
    padding: 10px !important;
}
.cell-att-pro tbody{
	padding: 10px;
} */
.cell-att-pro .shop_attributes tr{
    background-color: #F0F0F1 !important;
    border-radius: 8px !important;
    padding: 10px;
    margin-bottom: 10px !important;
} 
.cell-att-pro .shop_attributes .woocommerce-product-attributes-item__value {
	  display: -webkit-box !important;
   -webkit-line-clamp: 1;
   -webkit-box-orient: vertical;
   overflow: hidden;
}


/* المان قیمت محصول */
/*selector del{*/
/*    display: block;*/
/*}*/


.price-pro-single-page .woocommerce-Price-currencySymbol{
    font-size: 0.86em !important;
    font-weight: 400;
}

		/**      نمایش دسته اول برای دسته بندی       **/

		.box-description p.elementor-icon-box-description a:not(:first-child) {
    display: none !important;
}



.wd-arrow .wd-arrow-inner{
    border-radius: 12px !important;
		padding: 15px 8px !important;
}


/*		منو ناوبری سبد خرید	*/
.elementor-menu-cart__product.woocommerce-cart-form__cart-item.cart_item {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-content: center;
    justify-content: center;
    align-items: center;
    padding: 5px;
    border: 1px solid #ecf0f2;
    border-radius: 12px;
    margin-right: 10px;
    margin-left: 10px;
    margin-bottom: 10px;
    margin-top: 10px;
}
.elementor-menu-cart__product-image.product-thumbnail {
    width: 20%;
}

.elementor-menu-cart__product-name.product-name {
    width: 70%;
    flex-grow: 1;
    line-height: 2em;
    margin-right: 10px;
}

.widget_shopping_cart_content {
    height: 100% !important;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-content: center;
    justify-content: flex-start;
    align-items: center;
    flex: 1 1 auto;
}

.elementor-menu-cart__footer-buttons {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: stretch;
    width: 90%;
    gap: 10px;
}

a.elementor-button.elementor-button--view-cart.elementor-size-md {
		display: none !important;
}

a.elementor-button.elementor-button--checkout.elementor-size-md {
    background: #D31021;
}

.elementor-menu-cart__subtotal {
    font-size: 14px;
    margin-bottom: 15px;
    margin-top: 15px;
}

.widget_shopping_cart_content {
  display: flex;
  flex-direction: column;
  height: 100%; /* یا مقدار ثابت مثل 400px یا auto در صورت نیاز */
}

.elementor-menu-cart__products {
  flex-grow: 1;
  overflow-y: auto; /* در صورت زیاد بودن آیتم‌ها */
}

.elementor-menu-cart__footer-buttons {
  margin-top: auto; /* این خط باعث می‌شه بره پایین */
  margin-bottom: 10px
}

/*				حذف نوار فروشگاه و علاقه مندی روی کار ت محصول				*/
.wd-buttons.wd-pos-r-t {
    display: none !important;
}

/* استایل های جدول توضیحات محصول */

.product-specs {
  width: 100%;
  border-collapse: collapse;
  direction: rtl;
  background: #ffffff;
  border: 1px solid #eee6d6;
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 18px 35px rgba(10, 10, 12, 0.22),
    0 6px 14px rgba(10, 10, 12, 0.12);
  font-family: "Vazirmatn", "IRANSans", "Tahoma", sans-serif;
}

.product-specs tr {
  border-bottom: 1px solid #f1eadb;
}

.product-specs td {
  padding: 10px 16px;
  font-size: 14.5px;
  line-height: 1.6;
  position: relative;
}

/* ستون ویژگی های جدول */
.product-specs td:first-child {
  width: 34%;
  color: #ffffff; /* متن ترم‌ها مشکی */
  font-weight: 800;
  letter-spacing: 0.4px;
  background: linear-gradient(135deg, #0a0a0c 0%, #4b0f15 45%, #b31225 100%);
  clip-path: polygon(0 50%, 16px 0, 100% 0, 100% 100%, 16px 100%);
}
/* ستون ترم های جدول */
.product-specs td:last-child {
  color: #000;
  font-weight: 400;
  text-align: center;
  clip-path: none;
}

/* حذف هر خط عمودی احتمالی */
.product-specs td:first-child::after {
  content: none;
}
/* ستون سطر تاکید اخر جدول */
.product-specs .highlight {
  text-align: center;
  color: #000;
  background: #faf3e5;
  font-weight: 800;
  letter-spacing: 0.8px;
  padding: 10px 16px;
}

/* متفاوت‌سازی سطر آخر */
.product-specs tr:last-child td {
  background: #faf3e5;
  box-shadow: inset 0 0 0 1px #f1eadb;
}

/* بهینه‌سازی موبایل برای ترم‌های طولانی */
@media (max-width: 640px) {
  .product-specs td {
    padding: 9px 12px;
    font-size: 14px;
    line-height: 1.45;
  }

  .product-specs td:first-child {
    width: 38%;
    font-size: 12.5px;
    white-space: nowrap; /* ترم‌ها تک‌خطی */
    letter-spacing: 0.2px;
  }

  .product-specs td:last-child {
    word-break: break-word;
  }
}
/* پایان جدول */

/* استایل ویجت ارسال رایگان تصویر محصول */
.diaco-free-shipping-badge {
    position: absolute;
    bottom: 3px;
    right: 3px;
    background: linear-gradient(135deg, #00c853, #2e7d32);
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 15px;
    z-index: 10;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    pointer-events: none;
    white-space: nowrap;
}

.product-element-top {
    position: relative;
}

/* استایل لایه خاکستری ناموجود */
/* کارت‌های فروشگاه – ظرف تصویر در قالب شما */
.wd-products .wd-product.outofstock .product-element-top {
  position: relative !important;
  display: block !important;
  overflow: hidden !important;
  border-radius: inherit !important;
}

/* لینک و تصویر */
.wd-products .wd-product.outofstock .product-element-top > a,
.wd-products .wd-product.outofstock .product-element-top img {
  display: block !important;
  position: relative !important;
  z-index: 1 !important;
}

/* لایه خاکستری (کارت‌ها) */
.wd-products .wd-product.outofstock .product-element-top::before,
.wd-products .wd-product.outofstock .product-element-top > a::before {
  content: "" !important;
  position: absolute;
  inset: 0;
  background: rgba(120, 120, 120, 0.45);
  z-index: 2 !important;
  pointer-events: none;
}

/* واترمارک ناموجود (کارت‌ها) */
.wd-products .wd-product.outofstock .product-element-top::after,
.wd-products .wd-product.outofstock .product-element-top > a::after {
  content: "ناموجود" !important;
  position: absolute;
  inset: 0;
  display: flex !important;
  align-items: center;
  justify-content: center;
	color: #dc143c !important;
  font-size: clamp(2.4rem, 2.5vw, 2.6rem) !important;
  font-weight: 800 !important;
  letter-spacing: 0.45em !important;
  transform: rotate(-12deg) scaleX(1.05);
  z-index: 3 !important;
  pointer-events: none;
  white-space: nowrap;
  opacity: 1 !important;
}

/* صفحه محصول – فقط روی تصویر اصلی */
.single-product .product.outofstock .woocommerce-product-gallery__image:first-child,
.single-product .product.outofstock .woocommerce-product-gallery .flex-viewport {
  position: relative !important;
  overflow: hidden !important;
  border-radius: inherit !important;
}

/* لایه خاکستری (صفحه محصول) */
.single-product .product.outofstock .woocommerce-product-gallery__image:first-child::before,
.single-product .product.outofstock .woocommerce-product-gallery .flex-viewport::before {
  content: "" !important;
  position: absolute;
  inset: 0;
  background: rgba(120, 120, 120, 0.45);
  z-index: 2 !important;
  pointer-events: none;
}

/* واترمارک ناموجود (صفحه محصول) */
.single-product .product.outofstock .woocommerce-product-gallery__image:first-child::after,
.single-product .product.outofstock .woocommerce-product-gallery .flex-viewport::after {
  content: "ناموجود" !important;
  position: absolute;
  inset: 0;
  display: flex !important;
  align-items: center;
  justify-content: center;
	color: #dc143c !important;
  font-size: clamp(3.6rem, 2.8vw, 3.2rem) !important;
  font-weight: 800 !important;
  letter-spacing: 0.45em !important;
  transform: rotate(-12deg) scaleX(1.05);
  z-index: 3 !important;
  pointer-events: none;
  white-space: nowrap;
  opacity: 0.6 !important;
}

/* استایل کد رهگیری داخل حساب کاربری مشتری */
.diaco-tracking-box{
    margin: 18px 0;
    padding: 16px 18px;
    border-radius: 14px;
    background: linear-gradient(135deg, #f0f7ff, #eefcf6);
    border: 1px solid #d7e9ff;
    box-shadow: 0 8px 24px rgba(13, 110, 253, 0.12);
}

.diaco-tracking-title{
    font-weight: 800;
    font-size: 16px;
    margin-bottom: 8px;
    color: #0b2e59;
}

.diaco-tracking-code{
    display: inline-block;
    background: #fff;
    border: 1px dashed #a9c9ff;
    padding: 6px 12px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 15px;
    color: #0b2e59;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.diaco-tracking-link{
    display: inline-block;
    margin-top: 6px;
    padding: 8px 14px;
    border-radius: 10px;
    background: #0d6efd;
    color: #fff !important;
    font-weight: 700;
    text-decoration: none;
    transition: all .2s ease;
}

.diaco-tracking-link:hover{
    background: #084298;
    transform: translateY(-1px);
}@media (max-width: 576px) {
	@media (max-width: 767px) {

/* نوار استیکی */
  .diaco-mobile-sticky-cart {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999999;

    background: #fff;
    box-shadow: 0 -10px 30px rgba(0,0,0,.18);

    /* فاصله safe-area موبایل */
    padding: 0 0 calc(env(safe-area-inset-bottom, 0px) + 10px);

    transform: translateY(100%);
    opacity: 0;
    visibility: hidden;
    transition: all .25s ease;
  }

  .diaco-mobile-sticky-cart.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

/* کانتینر داخلی */
  .diaco-sticky-inner {
    display: flex;
    flex-direction: column;
  }

/* ویجت اسنپ پی */
  .diaco-snapp-box {
    width: 100%;
    margin: 0;
    padding: 0 0 8px 0;
  }

  .diaco-snapp-box > * {
    width: 100%;
    max-width: 100%;
  }

/* ردیف اصلی */
  .diaco-sticky-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0 12px;
  }

/* استایل قیمت ها */
  .diaco-price-box {
    display: grid;
    grid-template-columns: auto auto;
    grid-template-rows: auto auto;
    gap: 4px 8px;

    min-width: 110px;
    direction: ltr;
    text-align: left;
  }

  .diaco-discount-badge {
    background: #dc2626;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 0 8px;
    height: 20px;
    border-radius: 999px;

    display: flex;
    align-items: center;
    justify-content: center;
  }

  .diaco-price-old {
    font-size: 12px;
    color: #9ca3af;
    text-decoration: line-through;
  }

  .diaco-price-new,
  .diaco-price-new span,
  .diaco-price-old,
  .diaco-price-old span {
    color: #000;
  }

  .diaco-discount-badge,
  .diaco-discount-badge *,
  .diaco-discount-badge span {
    color: #fff !important;
  }

  .diaco-price-new {
    grid-column: 1 / -1;
    font-size: 17px;
    font-weight: 800;
    color: #000;
  }

/* استایل دکمه */
  .diaco-action-box {
    min-width: 45%;
    display: flex;
    justify-content: flex-end;
  }

  .diaco-action-box button,
  .diaco-action-box a {
    width: 100%;
    height: 46px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px;
    font-weight: 700;

    background: var(--wd-primary-color, #e11d48);
    color: #fff;
    border: none;
  }
}
/* استایل باکس متغیر ها */

/* بک‌دراپ تیره کل صفحه */
#diaco-variation-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.7);
  z-index: 999998;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease;
  pointer-events: none;
}

/* فعال شدن مود */
body.diaco-variation-open {
  overflow: hidden;
}

/* نمایش بک‌دراپ */
body.diaco-variation-open #diaco-variation-overlay {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* ✅ باکس متغیر کاملاً فعال و بالاتر از overlay */
body.diaco-variation-open .variations_form {
  position: relative;
  z-index: 999999;
  background: #fff;
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 25px 60px rgba(0,0,0,.35);
}
}

