:root {
	--wd-text-font: YekanBakhFaNum;
	--wd-text-font-weight: 400;
	--wd-text-color: #777777;
	--wd-text-font-size: 15px;
	--wd-title-font: YekanBakhFaNum;
	--wd-title-font-weight: 500;
	--wd-title-color: #242424;
	--wd-entities-title-font: YekanBakhFaNum;
	--wd-entities-title-font-weight: 500;
	--wd-entities-title-color: #333333;
	--wd-entities-title-color-hover: rgb(51 51 51 / 65%);
	--wd-alternative-font: YekanBakhFaNum;
	--wd-widget-title-font: YekanBakhFaNum;
	--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: YekanBakhFaNum;
	--wd-header-el-font-weight: 600;
	--wd-header-el-transform: capitalize;
	--wd-header-el-font-size: 13px;
	--wd-brd-radius: 10px;
	--wd-otl-style: dotted;
	--wd-otl-width: 2px;
	--wd-primary-color: rgb(28,97,231);
	--wd-alternative-color: rgba(28,97,231,0.2);
	--btn-default-bgcolor: rgb(225,235,255);
	--btn-default-bgcolor-hover: rgb(219,227,249);
	--btn-default-color: rgb(28,97,231);
	--btn-default-color-hover: rgb(28,97,231);
	--btn-accented-bgcolor: rgb(28,97,231);
	--btn-accented-bgcolor-hover: rgb(28,97,231);
	--btn-transform: capitalize;
	--wd-form-brd-width: 1px;
	--notices-success-bg: #459647;
	--notices-success-color: #fff;
	--notices-warning-bg: #E0B252;
	--notices-warning-color: #fff;
	--wd-link-color: #333333;
	--wd-link-color-hover: #242424;
}
.wd-age-verify-wrap {
	--wd-popup-width: 500px;
}
.wd-popup.wd-promo-popup {
	background-color: rgba(255,255,255,0);
	background-image: none;
	background-repeat: no-repeat;
	background-size: contain;
	background-position: left center;
}
.wd-promo-popup-wrap {
	--wd-popup-width: 1000px;
}
: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: #ffffff;
	background-image: none;
}
html .wd-nav-mobile > li > a {
	text-transform: capitalize;
}
html .post.wd-post:not(.blog-design-small) .wd-entities-title {
	font-size: 18px;
}
:is(.page, .search-no-results, .error404) :is(.wd-page-content, .whb-header) {
	background-color: rgb(246,246,246);
	background-image: none;
}
.woodmart-archive-shop:not(.single-product) :is(.wd-page-content, .whb-header) {
	background-color: rgb(246,246,246);
	background-image: none;
}
.woodmart-archive-blog :is(.wd-page-content, .whb-header) {
	background-color: rgb(246,246,246);
	background-image: none;
}
html .btn.wd-buy-now-btn {
	background: rgb(107,163,49);
}
html .btn.wd-buy-now-btn:hover {
	background: rgb(95,158,44);
}
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-bg: rgb(255,255,255);
}
.mfp-wrap.wd-popup-quick-view-wrap {
	--wd-popup-width: 920px;
}
:root{
--wd-container-w: 1400px;
--wd-form-brd-radius: 5px;
--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: 1400px) {
section.elementor-section.wd-section-stretch > .elementor-container {
margin-left: auto;
margin-right: auto;
}
}


.wd-page-title {
background-color: rgb(28,97,231);
}

.shop_attributes tr
{
	justify-content: right;
}

/* ============================================================
   التیوا | بازطراحی بخش «نقد و بررسی کاربران» — نسخه ۴ «دیجی‌کالا»
   ------------------------------------------------------------
   - عدد امتیاز بزرگ + نوارهای رنگی + کارت دیدگاه تمیز
   - کاملاً تخت (Flat) و تمام‌عرض، بدون فضای خالی اضافه
   - فونت: پیش‌فرض قالب وردپرس (هیچ فونتی تنظیم نشده)
   ------------------------------------------------------------
   طرز استفاده: وودمارت ← تنظیمات قالب ← CSS سفارشی ← پیست ← ذخیره
   سپس کش LiteSpeed را پاک کنید.
   ============================================================ */
#comments .wd-reviews-filters { display: none !important; }

/* ---------- ۱) چیدمان: تمام‌عرض، تک‌ستونه ---------- */
.woocommerce-Reviews {
    width: 100%;
    max-width: none;
    display: flex !important;
    flex-direction: column !important;
}
.woocommerce-Reviews > * { width: 100% !important; }
#review_form_wrapper { order: 10; }                 /* فرم بعد از دیدگاه‌ها */

/* ---------- ۲) عنوان «نقد و بررسی کاربران» ---------- */
.elementor-element-2e1f55e .woodmart-title-container.title {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e0e0e0;
}

/* ---------- ۳) خلاصه امتیاز — عدد بزرگ + نوارهای رنگی ---------- */
#reviews .wd-rating-summary {
    display: flex;
    align-items: center;
    gap: 36px;
    padding: 18px 0;
    margin: 0 0 16px;
    border-bottom: 1px solid #e0e0e0;
    background: none;
    border-radius: 0;
    box-shadow: none;
}

/* عدد امتیاز بزرگ (از strong.rating داخل aria-label) */
#reviews .wd-rating-summary-heading {
    flex: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin: 0;
    min-width: 120px;
}
#reviews .wd-rating-summary-heading .star-rating {
    position: relative;
    display: block;
    width: auto !important;
    height: auto !important;
    font-size: 0;                 /* متن اطراف عدد نامرئی می‌شود */
    line-height: 1;
    overflow: visible;
    text-indent: 0 !important;
    letter-spacing: 0 !important;
}
#reviews .wd-rating-summary-heading .star-rating::before { display: none !important; }
#reviews .wd-rating-summary-heading .star-rating span {
    position: static !important;
    float: none !important;
    width: 100% !important;
    overflow: visible !important;
    padding-top: 0 !important;
    text-indent: 0 !important;
}
#reviews .wd-rating-summary-heading .star-rating span::before { display: none !important; }
#reviews .wd-rating-summary-heading .star-rating strong.rating {
    display: block;
    font-size: 44px;
    font-weight: 800;
    color: #00c4a7;               /* سبز دیجی‌کالا */
    line-height: 1;
}
#reviews .wd-rating-summary-total {
    font-size: 12.5px;
    color: #767676;
    background: none;
    border: none;
    padding: 0;
    border-radius: 0;
    white-space: nowrap;
}

/* نوارهای توزیع امتیاز */
#reviews .wd-rating-summary-cont {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0;
    min-width: 0;
}
#reviews .wd-rating-summary-item {
    display: grid;
    grid-template-columns: 34px 1fr 36px;
    align-items: center;
    gap: 10px;
    margin: 0;
}
#reviews .wd-rating-summary-item .wd-rating-label .star-rating { display: none; }
#reviews .wd-rating-summary-item .wd-rating-label::after {
    content: attr(data-rating) "★";
    font-size: 11.5px;
    color: #999;
}
#reviews .wd-rating-progress-bar .progress-area {
    width: 100%;
    height: 7px;
    border-radius: 99px;
    background: #f0f0f0;
    overflow: hidden;
}
#reviews .wd-rating-progress-bar .progress-bar {
    height: 100%;
    border-radius: 99px;
    background: #00c4a7;          /* سبز دیجی‌کالا */
}
#reviews .wd-rating-count {
    font-size: 12px;
    font-weight: 600;
    color: #333;
    text-align: left;
}

/* ---------- ۴) سربرگ فهرست دیدگاه‌ها ---------- */
#comments .wd-reviews-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 14px;
    padding: 0;
    border-bottom: none;
}
#comments .woocommerce-Reviews-title {
    font-size: 15px;
    font-weight: 700;
    color: #333;
    margin: 0;
}
#comments .wd-reviews-sorting-select {
    appearance: none;
    -webkit-appearance: none;
    border: 1px solid #d0d0d0;
    border-radius: 8px;
    padding: 6px 12px 6px 28px;
    font-size: 12.5px;
    color: #555;
    background-color: #fff;
    cursor: pointer;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23888' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 10px center;
    transition: border-color .15s;
}
#comments .wd-reviews-sorting-select:focus {
    outline: none;
    border-color: #00c4a7;
    box-shadow: 0 0 0 3px rgba(0, 196, 167, .12);
}

/* ---------- ۵) کارت دیدگاه‌ها — تخت و تمیز ---------- */
#reviews .commentlist {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
#reviews .commentlist > li {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 16px 18px;
    transition: border-color .15s;
}
#reviews .commentlist > li:hover { border-color: #bdbdbd; }
#reviews .comment_container { display: flex; gap: 12px; }
#reviews .comment_container .avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    flex: none;
    object-fit: cover;
    background: #f0f2f5;
}
#reviews .comment_container .avatar:not(img) {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f2f5;
    color: #666;
    font-weight: 700;
    font-size: 16px;
}
#reviews .comment-text { flex: 1; min-width: 0; }
#reviews .comment-text .star-rating {
    float: none;
    display: inline-block;
    margin: 0 0 4px;
    font-size: 13px;
}
#reviews .comment-text .star-rating::before { color: #e0e0e0; }
#reviews .comment-text .star-rating span::before { color: #f9a825; }   /* نارنجی */
#reviews .comment-text .meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin: 0 0 6px;
}
#reviews .comment-text .meta .woocommerce-review__author {
    font-weight: 700;
    color: #333;
    font-size: 13.5px;
}
#reviews .comment-text .meta time {
    font-size: 11.5px;
    color: #999;
    margin-right: auto;           /* تاریخ به انتهای ردیف می‌رود */
}

/* نشان «خریدار تأیید شده» — متن سبز ساده */
.woocommerce-review__verified {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    color: #00a68f;
    font-size: 12px;
    font-weight: 600;
    background: none;
    border: none;
    padding: 0;
    border-radius: 0;
}
.woocommerce-review__verified::before { content: "✓ "; }

#reviews .comment-text .description { font-size: 13px; line-height: 2.1; color: #444; }
#reviews .comment-text .description p { margin: 0 0 6px; }

/* حالت بدون دیدگاه */
#reviews .woocommerce-noreviews {
    text-align: center;
    padding: 26px 16px;
    background: #fafafa;
    border: 1px dashed #d0d0d0;
    border-radius: 10px;
    color: #999;
    font-size: 13.5px;
}

/* ---------- ۶) فرم ثبت دیدگاه — تخت ---------- */
#review_form_wrapper { margin-top: 18px; }
#review_form_wrapper #respond {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 18px 20px;
    box-shadow: none;
}
#respond .comment-reply-title {
    font-size: 15px;
    font-weight: 700;
    color: #333;
    display: block;
    margin-bottom: 16px;
}
#review_form .comment-form > p { margin: 0 0 12px; }
#review_form label {
    display: block;
    font-size: 12.5px;
    font-weight: 700;
    color: #555;
    margin-bottom: 6px;
}
#review_form textarea,
#review_form input[type="text"] {
    width: 100%;
    border: 1px solid #d0d0d0;
    border-radius: 8px;
    padding: 9px 12px;
    font-size: 13px;
    color: #333;
    background: #fff;
    transition: border-color .15s, box-shadow .15s;
}
#review_form textarea { min-height: 96px; line-height: 1.9; }
#review_form textarea:focus,
#review_form input[type="text"]:focus {
    outline: none;
    border-color: #00c4a7;
    box-shadow: 0 0 0 3px rgba(0, 196, 167, .12);
}

/* ستاره‌های انتخاب امتیاز
   نکته مهم: font-size را روی a نگذارید — متن برچسب («۱ از ۵ ستاره»)
   داخل a با font-size:0 قالب مخفی می‌شود؛ اندازه ستاره فقط روی گلیف است */
#review_form .comment-form-rating { margin-bottom: 14px; }
#review_form .stars { margin: 0; }
#review_form .stars span { gap: 2px; }
#review_form .stars a {
    width: 25px;
    text-decoration: none;
    transition: transform .15s;
}
#review_form .stars a:before {
    font-size: 24px;
    line-height: 1;
}
#review_form .stars a:hover,
#review_form .stars a.active { transform: scale(1.1); }

/* مزایا و معایب کنار هم */
#review_form .comment-form-pros,
#review_form .comment-form-cons {
    display: inline-block;
    width: calc(50% - 6px);
    vertical-align: top;
}
#review_form .comment-form-cons { margin-right: 12px; }

/* دکمه ثبت — قرمز دیجی‌کالا */
#review_form .form-submit { margin-top: 14px; }
#review_form .form-submit input[type="submit"] {
    background: #ef4056;          /* قرمز دیجی‌کالا */
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 34px;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s;
}
#review_form .form-submit input[type="submit"]:hover { background: #e0314a; }

/* ---------- ۷) موبایل ---------- */
@media (max-width: 768px) {
    #reviews .wd-rating-summary { flex-direction: column; align-items: center; gap: 16px; }
    #reviews .wd-rating-summary-cont { width: 100%; }
    #reviews .comment_container { flex-direction: column; gap: 10px; }
    #reviews .comment_container .avatar { width: 36px; height: 36px; }
    #review_form .comment-form-pros,
    #review_form .comment-form-cons { width: 100%; display: block; }
    #review_form .comment-form-cons { margin: 0 0 12px; }
    #comments .wd-reviews-heading { flex-direction: column; align-items: flex-start; gap: 6px; }
}
.woocommerce-message:contains("منطقه منطبق با مشتری") {
    display: none !important;
}
