:root {
	--wd-hb-opt-h: 40px;
	--wd-text-font: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;
	--wd-text-font-weight: 400;
	--wd-text-color: rgb(43,43,43);
	--wd-text-font-size: 16px;
	--wd-title-font: var(--wd-text-font);
	--wd-title-font-weight: 500;
	--wd-title-color: #242424;
	--wd-entities-title-font: var(--wd-title-font);
	--wd-entities-title-font-weight: 500;
	--wd-entities-title-transform: capitalize;
	--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: "Lexend Deca", Arial, Helvetica, sans-serif;
	--wd-widget-title-font-weight: 500;
	--wd-widget-title-transform: capitalize;
	--wd-widget-title-color: #333;
	--wd-widget-title-font-size: 16px;
	--wd-header-el-font: "Lexend Deca", Arial, Helvetica, sans-serif;
	--wd-header-el-font-weight: 500;
	--wd-header-el-transform: none;
	--wd-header-el-font-size: 14px;
	--wd-brd-radius: 10px;
	--wd-otl-style: dotted;
	--wd-otl-width: 2px;
	--wd-primary-color: rgb(122,157,191);
	--wd-alternative-color: rgb(84,84,84);
	--btn-default-bgcolor: rgb(108,127,144);
	--btn-default-bgcolor-hover: rgb(46,61,72);
	--btn-accented-bgcolor: rgb(108,127,144);
	--btn-accented-bgcolor-hover: #2e3d48;
	--btn-transform: capitalize;
	--btn-color: rgb(108,127,144);
	--btn-color-hover: rgb(46,61,72);
	--wd-form-brd-width: 1px;
	--notices-success-bg: rgb(65,128,191);
	--notices-success-color: #fff;
	--notices-warning-bg: rgb(221,157,62);
	--notices-warning-color: #fff;
	--wd-link-color: rgb(65,128,191);
	--wd-link-color-hover: rgb(96,96,96);
}
.wd-age-verify-wrap {
	--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-promo-popup-wrap {
	--wd-popup-width: 800px;
}
.wd-hb {
	background-color: rgb(0,0,0);
	background-image: none;
}
: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 .wd-page-title-bg img {
	object-fit: cover;
	object-position: center center;
}
.wd-footer {
	background-color: rgb(97,122,142);
	background-image: none;
}
html .page-title > .container > .title, html .page-title .wd-title-wrapp > .title {
	font-weight: 600;
	color: rgb(65,109,147);
}
html .page-title > .container > .title:hover, html .page-title .wd-title-wrapp > .title:hover {
	color: rgb(95,145,191);
}
html .wd-checkout-steps {
	text-transform: capitalize;
}
html .wd-dropdown-menu.wd-design-sized .wd-sub-menu > li > a, body .wd-dropdown-menu.wd-design-full-width .wd-sub-menu > li > a, body .wd-dropdown-menu.wd-design-aside .wd-wp-menu > .sub-sub-menu > li > a, body .wd-dropdown-menu.wd-design-aside .wd-sub-menu .wd-sub-menu > li > a, html .wd-dropdown-my-account .wd-sub-menu li a, html .wd-nav-mobile > li > a, html .wd-nav-mobile .wd-sub-menu li a {
	text-transform: capitalize;
}
:is(.page, .search-no-results, .error404) :is(.wd-page-content, .whb-header) {
	background-color: rgb(245,241,235);
	background-image: none;
}
.woodmart-archive-shop:not(.single-product) :is(.wd-page-content, .whb-header) {
	background-color: rgb(245,241,235);
	background-image: none;
}
.single-product :is(.wd-page-content, .whb-header) {
	background-color: rgb(245,241,235);
	background-image: none;
}
.woodmart-archive-blog :is(.wd-page-content, .whb-header) {
	background-color: rgb(245,241,235);
	background-image: none;
}
.single-post :is(.wd-page-content, .whb-header) {
	background-color: rgb(245,241,235);
	background-image: none;
}
body, [class*=color-scheme-light], [class*=color-scheme-dark], .wd-search-form[class*="wd-header-search-form"] form.searchform, .wd-el-search .searchform {
	--wd-form-color: rgb(51,51,51);
	--wd-form-placeholder-color: rgb(119,119,119);
	--wd-form-bg: rgb(255,255,255);
}
.wd-nav-arrows.wd-pos-sep:not(:where(.wd-custom-style)) {
	--wd-arrow-size: 50px;
	--wd-arrow-icon-size: 16px;
	--wd-arrow-offset-h: 15px;
	--wd-arrow-bg: rgb(255,255,255);
	--wd-arrow-bg-hover: rgba(255,255,255,0.5);
	--wd-arrow-radius: 25px;
}
.wd-nav-arrows.wd-pos-together:not(:where(.wd-custom-style)) {
	--wd-arrow-gap: 15px;
	--wd-arrow-size: 50px;
	--wd-arrow-icon-size: 16px;
	--wd-arrow-offset-h: 0px;
	--wd-arrow-offset-v: 15px;
	--wd-arrow-bg: rgb(255,255,255);
	--wd-arrow-bg-hover: rgba(255,255,255,0.5);
	--wd-arrow-radius: 25px;
}
.wd-nav-scroll {
	--wd-nscroll-width: 45%;
}
.wd .product-label.onsale {
	background-color: rgb(89,133,200);
}
.wd .product-label.new {
	background-color: rgb(89,133,200);
}
.wd .product-label.featured {
	background-color: rgb(89,133,200);
}
.wd .product-label.out-of-stock {
	background-color: rgb(0,0,0);
	color: rgb(255,255,255);
}
.wd .product-label.attribute-label:not(.label-with-img) {
	background-color: rgb(89,133,200);
}
.mfp-wrap.wd-popup-quick-view-wrap {
	--wd-popup-width: 920px;
}
.woocommerce-product-gallery {
	--wd-gallery-gap: 20px;
}

@media (max-width: 1024px) {
	:root {
		--wd-hb-opt-h: 40px;
	}
	.wd-nav-arrows.wd-pos-sep:not(:where(.wd-custom-style)) {
		--wd-arrow-size: 42px;
	--wd-arrow-icon-size: 14px;
	--wd-arrow-offset-h: -35px;
	}
	.wd-nav-arrows.wd-pos-together:not(:where(.wd-custom-style)) {
		--wd-arrow-size: 42px;
	--wd-arrow-offset-v: 5px;
	}

}

@media (max-width: 768.98px) {
	.wd-nav-arrows.wd-pos-together:not(:where(.wd-custom-style)) {
		--wd-arrow-gap: 10px;
	--wd-arrow-icon-size: 14px;
	}

}
:root{
--wd-container-w: 1222px;
--wd-form-brd-radius: 30px;
--btn-default-color: #fff;
--btn-default-color-hover: #fff;
--btn-accented-color: #fff;
--btn-accented-color-hover: #fff;
--btn-default-brd-radius: 35px;
--btn-default-box-shadow: none;
--btn-default-box-shadow-hover: none;
--btn-accented-brd-radius: 35px;
--btn-accented-box-shadow: none;
--btn-accented-box-shadow-hover: none;
}



.wd-page-title {
background-color: rgb(220,224,237);
}

/* ================================ */
/* 0. تنظیمات پایه برای body و html */
/* ================================ */
html, body {
  margin: 0;
  padding: 0;
  height: 100%; /* جلوگیری از overflow اضافی */
}

/* اسلایدر نرم و سبک (Mobile-safe) */
.custom-slider {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  height: 400px; /* ارتفاع اولیه اسلایدر، میتونی متغیر باشه */
}

.custom-slider .slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%; /* مهم: پر کردن ارتفاع اسلایدر */
  opacity: 0;
  transform: translateX(20px);
  transition:
    opacity 0.8s ease-in-out,
    transform 0.8s ease-in-out;
  will-change: opacity, transform;
  pointer-events: none;
}

.custom-slider .slide.active {
  opacity: 1;
  transform: translateX(0);
  z-index: 2;
  pointer-events: auto;
}

.custom-slider img {
  width: 100%;
  height: 100%; /* ارتفاع تصویر با ارتفاع اسلایدر هماهنگ */
  object-fit: cover;
  display: block;
}

/* فلش‌ها */
.custom-slider .nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background-color: rgba(0,0,0,0.4);
  color: white;
  border: none;
  padding: 10px 15px;
  font-size: 24px;
  border-radius: 5px;
  cursor: pointer;
}

.custom-slider .prev { left: 10px; }
.custom-slider .next { right: 10px; }

/* ================================ */
/* 2. دکمه‌های دسته‌بندی */
.category-buttons {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 10px;
  margin-top: 2px;  /* فاصله کم از اسلایدر */
  margin-bottom: 20px; /* فاصله پایین اسلایدر */
}
.cat-btn {
  display: inline-block;
  padding: 8px 15px;
  background-color: #6e7c91;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  transition: all 0.3s;
  text-align: center;
}

.cat-btn:hover {
  background-color: #f0e68c;  /* هاور کرم خاکی */
}
/* ================================ */
/* 3. بخش محصولات */
.product-section {
  margin: 10px auto; /* فاصله کم بین بخش‌ها */
  padding: 0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px; /* فاصله کم */
}

.section-header h2 {
  font-size: 20px;
}

.view-all-btn {
  padding: 5px 10px;
  background-color: #c2b280;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-size: 14px;
}
/* ================================ */
/* 4. رسپانسیو تبلت و موبایل */
@media (max-width: 1024px) { /* تبلت */
  .custom-slider img { 
    height: 400px !important; 
    margin: 0 !important; /* فاصله صفر از اطراف */
  }

  .category-buttons { 
    flex-wrap: nowrap !important;       /* دکمه ها در یک ردیف */
    justify-content: center !important; /* وسط چین */
    margin-top: 5px !important;         /* فاصله از اسلایدر */
  }

  .cat-btn {
    display: inline-block !important;   
    padding: 8px 15px !important;
    background-color: #6e7c91 !important;
    color: white !important;
    text-decoration: none !important;
    border-radius: 5px !important;
    text-align: center !important;
  }

  .cat-btn:hover {
    background-color: #f0e68c !important;  /* هاور کرم خاکی */
  }
}

@media (max-width: 768px) { /* موبایل */
  .custom-slider img { 
    height: 350px !important; 
    margin: 0 !important; /* فاصله صفر از اطراف */
  }

  .category-buttons { 
    flex-wrap: nowrap !important;       /* دکمه ها در یک ردیف */
    justify-content: center !important; /* وسط چین */
    margin-top: 2px !important;         /* فاصله از اسلایدر */
    padding-left: 5px !important;
    padding-right: 5px !important;
  }

  .cat-btn {
    display: inline-block !important;   
    padding: 8px 15px !important;
    background-color: #6e7c91 !important;
    color: white !important;
    text-decoration: none !important;
    border-radius: 5px !important;
    text-align: center !important;
  }

  .cat-btn:hover {
    background-color: #f0e68c !important;  /* هاور کرم خاکی */
  }

  .custom-slider .nav { 
    font-size: 20px !important; 
    padding: 8px 12px !important; 
  }
}
/* ظرف کلی متن فوتر */
.footer-intro-wrapper {
  text-align: center !important;    /* وسط چین مطمئن */
  margin-bottom: 20px;              /* فاصله با ستون های زیر */
  border-bottom: 1px solid #ddd;    /* خط جداکننده ظریف */
  padding-bottom: 15px;
}

/* متن فوتر */
.footer-intro {
  margin: 0 auto !important;        /* وسط متن داخل خودش */
  display: inline-block;            /* برای اعمال margin auto */
  font-size: 18px;
  font-weight: 700;                 /* بولد */
  line-height: 1.5;
  white-space: nowrap;              /* متن در یک خط */
  overflow: hidden;
  text-overflow: ellipsis;          /* اگر طولانی شد، سه نقطه */
}
/* قلب سفید */
.footer-intro .heart-white {
  margin-left: 5px;
  color: #ffffff;                    /* سفید */
}

/* ریسپانسیو موبایل */
@media (max-width: 768px) {
  .footer-intro {
    font-size: 16px;                 /* متن کمی کوچکتر */
    white-space: normal;             /* امکان رفتن به خط دوم */
  }
  .footer-intro-wrapper {
    padding-bottom: 10px;
    margin-bottom: 15px;
  }
}
/* اضافه کردن فونت وزیر */
.footer-links {
  display: flex;             
  justify-content: center;   
  gap: 15px;                 
  flex-wrap: nowrap;          
  padding: 10px 0;           
  overflow-x: auto;          
}

.footer-links a {
  text-decoration: none;     
  color: #ffffff;             /* رنگ سفید */
  font-weight: 500;          
  white-space: nowrap;       
  transition: color 0.3s;    
}

.footer-links a:hover {
  color: #ffd700;            /* رنگ هاور دلخواه (طلایی) */
}

/* متن لینک‌ها در موبایل کوچکتر بشه */
@media (max-width: 768px) {
  .footer-links a {
    font-size: 13px;
  }
}

/* مخفی کردن آیکون های چسبیده به سمت چپ فقط در دسکتاپ */
@media (min-width: 1025px) {
    body .wd-social-icon,
    body .wd-icon {
        display: none !important;
    }
}

/* ============================= */
/* تنظیمات رنگ و فاصله ها برای محصولات */
/* ============================= */
.woocommerce div.product {
    color: #222;
    line-height: 1.6;
}

/* ============================= */
/* عنوان محصول (Product Title) */
/* ============================= */
.woocommerce div.product .product_title {
    font-size: 26px;      /* قبلی 24 */
    font-weight: 700;
    line-height: 1.3;
    color: #111;
    text-align: center;
    margin-bottom: 20px;
}

/* ============================= */
/* توضیح کوتاه محصول */
.woocommerce div.product .woocommerce-product-details__short-description {
    font-size: 18px;      /* قبلی 16 */
    font-weight: 400;
    line-height: 1.6;
    margin-bottom: 30px;
    text-align: right;
    color: #333;
}

/* ============================= */
/* توضیح طولانی محصول */
.woocommerce div.product .woocommerce-Tabs-panel--description {
    font-size: 18px;      /* قبلی 16 */
    font-weight: 400;
    line-height: 1.8;
    text-align: right;
    color: #333;
}

/* تیترهای فرعی داخل توضیح طولانی */
.woocommerce div.product .woocommerce-Tabs-panel--description h2,
.woocommerce div.product .woocommerce-Tabs-panel--description h3 {
    font-size: 20px;  /* قبلی 18 */
    font-weight: 600;
    line-height: 1.4;
    margin: 25px 0 10px;
    color: #111;
}

/* فاصله‌ها */
.woocommerce div.product .product_title + .woocommerce-product-details__short-description {
    margin-top: 20px;
}
.woocommerce div.product .woocommerce-product-details__short-description + .woocommerce-Tabs-panel--description {
    margin-top: 30px;
}

/* ============================= */
/* ریسپانسیو تبلت */
@media (max-width: 1024px) {
    .woocommerce div.product .product_title {
        font-size: 25px;   /* قبلی 23 */
        margin-bottom: 18px;
    }
    .woocommerce div.product .woocommerce-product-details__short-description {
        font-size: 16px;   /* قبلی 15 */
        margin-bottom: 25px;
    }
    .woocommerce div.product .woocommerce-Tabs-panel--description {
        font-size: 16px;   /* قبلی 15 */
        line-height: 1.7;
    }
    .woocommerce div.product .woocommerce-Tabs-panel--description h2,
    .woocommerce div.product .woocommerce-Tabs-panel--description h3 {
        font-size: 18px;   /* قبلی 17 */
    }
}

/* ============================= */
/* ریسپانسیو موبایل */
@media (max-width: 768px) {
    .woocommerce div.product .product_title {
        font-size: 22px;   /* قبلی 21 */
        margin-bottom: 15px;
    }
    .woocommerce div.product .woocommerce-product-details__short-description {
        font-size: 15px;   /* قبلی 14 */
        margin-bottom: 20px;
    }
    .woocommerce div.product .woocommerce-Tabs-panel--description {
        font-size: 15px;   /* قبلی 14 */
        line-height: 1.7;
    }
    .woocommerce div.product .woocommerce-Tabs-panel--description h2,
    .woocommerce div.product .woocommerce-Tabs-panel--description h3 {
        font-size: 17px;   /* قبلی 16 */
    }
}

/* ============================= */
/* اطلاعات محصول و breadcrumb */
/* ============================= */
.woocommerce div.product .product_meta,
.woocommerce div.product .product_meta span,
.woocommerce div.product .product_meta a,
.woocommerce div.product .stock,
.woocommerce div.product .sku,
.woocommerce div.product .posted_in,
.woocommerce div.product .tagged_as {
    font-size: 14px;  /* قبلی 13 */
    font-weight: 400;
    line-height: 1.5;
    color: #555;
}

.woocommerce .woocommerce-breadcrumb {
    font-size: 15px;  /* قبلی 14 */
    font-weight: 400;
    line-height: 1.4;
    color: #777;
    margin-bottom: 10px;
}

@media (max-width: 1024px) {
    .woocommerce div.product .product_meta {
        font-size: 13px;
    }
    .woocommerce .woocommerce-breadcrumb {
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .woocommerce div.product .product_meta {
        font-size: 12px;
    }
    .woocommerce .woocommerce-breadcrumb {
        font-size: 13px;
    }
}

/* حذف نوار مشکی بالای هدر */
.header-banner {
    display: none !important;
}

/* افزایش فاصله دکمه‌های دسته‌بندی از اولین بخش محصولات در صفحه اصلی */
#post-35337 > .category-buttons + .product-section {
    margin-top: 50px !important; /* فاصله واقعی زیر دکمه‌ها */
}

#post-35337 .best-sellers {
    padding-top: 50px !important; /* دسکتاپ */
}

@media (max-width: 1024px) {
  #post-35337 .best-sellers {
    padding-top: 40px !important; /* تبلت */
  }
}

@media (max-width: 768px) {
  #post-35337 .best-sellers {
    padding-top: 30px !important; /* موبایل */
  }
}
/* مخفی کردن دسته‌بندی محصولات فقط در صفحه اصلی */
#post-35337 .wd-product-cats {
    display: none !important;
}


/* بهبود نمایش مرتب‌سازی ووکامرس در موبایل */
@media (max-width: 768px) {

    /* کانتینر مرتب‌سازی */
    #main-content .shop-loop-head > div:nth-child(2) {
        width: 100%;
        padding: 8px 12px;
        text-align: right;
    }

    /* لیبل بالا */
    #main-content .shop-loop-head > div:nth-child(2)::before {
        content: "نمایش محصولات بر اساس";
        display: block;
        margin-bottom: 6px;
        font-size: 14px;
        font-weight: 600;
        color: #555;
    }

    /* خود select */
    #main-content .shop-loop-head > div:nth-child(2) select {
        width: 100%;
        height: auto; /* بازگشت به ارتفاع طبیعی */
        padding: 8px 12px; /* padding ساده مشابه حالت پیش‌فرض */
        font-size: 15px;
        border-radius: 4px; /* مرزهای گرد طبیعی */
        border: 1px solid #ccc;
        background: #fff;
        color: #333;

        appearance: menulist; /* استفاده از ظاهر پیش‌فرض */
        -webkit-appearance: menulist;
        -moz-appearance: menulist;
    }

    /* فلش‌ها */
    #main-content .shop-loop-head > div:nth-child(2) select::-ms-expand {
        display: none; /* مخفی کردن فلش‌های پیش‌فرض IE */
    }

    /* گزینه‌های داخل dropdown */
    #main-content .shop-loop-head > div:nth-child(2) select option {
        background: #fff;
        color: #333;
    }

    /* فوکوس */
    #main-content .shop-loop-head > div:nth-child(2) select:focus {
        outline: none;
        border-color: #999;
    }
}
/* فعال کردن لمس برای انتخاب رنگ / سایز روی موبایل */
.variations_form .wd-swatch,
.variations_form .wd-swatch span,
.variations_form .variations td,
.variations_form .swatches-select {
    pointer-events: auto !important;
}

/* اگر لایه‌ای روی بخش نشسته باشد */
.single-product .summary,
.single-product .summary-inner,
.single-product .product-summary {
    z-index: 9 !important;
    position: relative;
}

.wd-sticky-btn {
    z-index: 5 !important;
}
