
/* بجای استفاده در CSS سفارشی در تنظیمات قالب
/* blog */
.wd-post-cat.wd-style-with-bg{margin-left: auto;background-color:#ffffff00!important;padding-inline:0!important;}
.wd-single-post-header .wd-entities-title.wd-post-title.title{margin-left: auto;}
.wd-single-post-header .wd-post-meta{margin-left: auto;margin-top: -15px;font-size: smaller;}
.wd-single-post-header .wd-post-image img {border-radius: 12px;}

.wd-post-inner.article-inner {
	  display: grid;
    grid-template-columns: 0.7fr 1.3fr;
    align-items: center;
    margin: 10px;
    box-shadow: none!important;
    transition: none!important;
    border-bottom: 1px solid #c3c3c3;
    border-radius: 0 !important;
    padding-bottom: 15px;
    min-height: 120px;
}
.wd-content-area.site-content .wd-blog-element .wd-post-inner .wd-post-thumb img {border-radius:0;}
.blog-style-bg .wd-post-content {padding: 0 8px!important;}
.blog-style-bg .wd-post-content .entry-content {display:none;}
.blog-style-bg .wd-post-content .wd-post-cat{display:none!important;}
.blog-style-bg .wd-post-content .wd-post-read-more {display:none;}
.blog-style-bg .wd-post-content .wd-post-title {text-align: right;margin-left: auto;font-weight: 500;}
.blog-style-bg .wd-post-content .wd-post-meta {margin-left: auto;}

/* for use voocomerce product */
.amount{font-size:4vw!important;}

/* search */
.wd-content-area.site-content .wd-blog-element{max-width: 1700px; margin: auto;}
.wd-content-area.site-content .wd-blog-element .wd-post-content.article-body-container{border-radius:12px;margin-top: 10px;}
.wd-content-area.site-content .wd-blog-element .wd-post-inner .wd-post-thumb img {border-radius:12px;}

/* ------------------------------------------------------ جدول------------------------------------------------------ */

/* --- رپ جدول --- */
.procode-table-wrap {
    background: #fff;
    border-radius: 10px;
    padding: 10px;
    border: 1px solid #e6e6e6;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* --- نوار بالا: سرچ + اسکرین‌شات --- */
.procode-toolbar {
    margin-bottom: 12px;
    width: 98.7%;
    display: flex;
    grid-template-columns: 7fr 1.5fr 1.5fr;
    align-items: center;
    gap: 10px;
}

.procode-search {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    width: 220px;
    border-radius: 5px !important;
}

.toolbar-procode-toltip {
    text-wrap-mode: nowrap;
    margin: 0 9px;
}

.procode-screenshot, .procode-pdf {
    background: #fff;
    border: 1px dashed #ff9a9a;
    /* خط‌چین صورتی/قرمز کمرنگ */
    color: #333;
    padding: 6px 10px;
    border-radius: 5px !important;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: 0.2s;
    width: 10vw;
}

.procode-pdf {display:none!important;}
@media (max-width: 768px) {.procode-screenshot {width: 100px;}}

.procode-screenshot:hover, .procode-pdf:hover {
    background: #fff5f5;
    /* هاور روشن */
    border-color: #ff7a7a;
}

.procode-screenshot svg,
.procode-screenshot img {
    width: 18px;
    height: 18px;
}


/* --- جدول --- */
.procode-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    color: #333;
    border-collapse: separate;
    border-spacing: 0;
}

/* --- هدر --- */
.procode-table thead th {
    background: #ed4545;
    /* رنگ قرمز */
    color: #fff;
    font-weight: bold;
    padding: 10px 8px;
    border: none;
    text-align: right;
    position: sticky;
    top: 0;
    z-index: 10;
    font-size: 14px;
    white-space: nowrap;
    border-top: 1px solid #fff;
}

.procode-table thead th:hover {
    cursor: pointer;
    color: #ffdada;
}

.procode-table thead tr:first-child th:first-child {
    border-top-right-radius: 0 !important;
}

.procode-table thead th .sort-icon {
    font-size: 12px;
    margin-right: 4px;
}

.procode-table th[data-column="price"] {
    text-align : center;
}

.procode-table th[data-column="overall-score"] {
    text-align : center;
}

/* --- ردیف‌ها --- */
.procode-table td {
    border-bottom: 1px solid #f0f0f0;
    padding: 12px 8px;
    vertical-align: middle;
}

.procode-table td[data-column="price"] {
    font-weight: bolder;
    font-size: 17px;
    color: #0b6b0b;
    text-align-last: center;
}
.procode-table td[data-column="toman"] {
    font-weight: bolder;
    font-size: 17px;
    color: #455e9c;
    text-align-last: start;
}

.procode-table td[data-column="overall-score"] {text-align-last: center;}

.procode-table td[data-column="overall-score"] .procode-score{padding: 5px 6px 2px 6px;}

.procode-row td {
    padding: 3px 12px;
    font-weight: 600;
}
/* --- رنگ یک درمیان --- */
.procode-table .row-light {
    background: #f7f7f7;
}
.procode-table .row-dark {
    background: #e9e9e9;
}

    /* --- هاور روی ردیف --- */
.procode-table tbody tr:hover td {
    background: #b8b8b8;
}

/* --- تصاویر --- */
.procode-gallery-cell {
    display: flex;
    justify-content: center;
    align-items: center;
}

.procode-gallery-thumb {
    position: relative;
    width: 64px;
    height: 64px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid #e5e5e5;
    background: #fafafa;
}

.procode-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.procode-gallery-count {
    position: absolute;
    bottom: 4px;
    right: 4px;
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 10px;
}

.procode-img-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
}

.procode-img-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
}

.procode-img-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90vw;
    height: auto;
    background: #fff;
    padding: 10px;
    border-radius: 10px;
    display: flex;
    justify-content: center;
}

.procode-img-modal-content img {
    max-width: 100%;
    max-height: 80vh;
    display: block;
}

/* ---  پاپ گالری--- */
.procode-img-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
}

.procode-img-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
}

.procode-img-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90vw;
    max-height: 90vh;
    background: #fff;
    padding: 10px;
    border-radius: 10px;
}

.procode-img-modal-content img {
    max-width: 100%;
    max-height: 80vh;
    display: block;
}

.procode-img-modal-content .procode-img-nav{display:none;}

.procode-img-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
}

.procode-img-nav.prev {
    left: -45px;
}

.procode-img-nav.next {
    right: -45px;
}

.procode-img-nav:hover {
    background: rgba(0, 0, 0, 0.8);
}

/* --- نمایش divider --- */

.procode-divider-row {
    position: relative;
    height: 35px;
    background: #d9d9d9;
    text-align-last: left;
}

/* سلول داخل divider */
.procode-divider-row td {
    padding: 0;
    border: none;
}
.pc-price-sep{margin:0 6px;color:#777;}
/* متن وسطِ واقعی صفحه */
.procode-divider-row td::before {
    content: attr(data-title);
    position: sticky;
    left: 50%;
    transform: translateX(-50%);
    display: inline-block;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
}

/* --- اسکرول داخلی --- */
.procode-scroll-main {
    position: relative;
    overflow: auto;
    max-height: 460px;
    border-radius: 8px;
}

.procode-price-info {
    background: #f3f3f3;
    padding: 10px;
    border-radius: 5px;
    font-size: 12px;
    color: #212121;
    width: fit-content;
    display:none;
}

.procode-price-info .price-item:last-child {
    margin-right: 5px;
}

.procode-price-info img {
    width: 25px;
}

.bottom-table {
    margin-top: 20px;
}

/* --- Load More --- */
.procode-load-more {
    margin: 14px auto 4px auto;
    padding: 10px 16px;
    background: none;
    color: #e53935;
    cursor: pointer;
    transition: 0.2s;
}

.procode-load-more:hover {
    background: none;
}

.load-more img {
    width: 18px;
    height: 18px;
    margin-right: -12px;
    margin-bottom: -7px;
}

/* ****************/
.procode-updated {
    background: #c6f6c6 !important;
    /* سبز ملایم */
    transition: background 0.4s;
}

.procode-loading {
    filter: blur(2px);
    pointer-events: none;
    opacity: 0.6;
    transition: 0.15s;
}


/* full *****/
.procode-full-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 9px;
    margin: 0 0 9px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .04);
    overflow: hidden
}

.procode-full-row1 {
    display: flex;
    gap: 16px;
    align-items: center;
    padding: 9px 14px;
    position: relative;
    gap: 9px;
    justify-content: space-between;
}

.Procode-full-info {
    width: 70%;
    display: flex;
    gap: 20px;
}

.procode-full-col {
    display: flex;
    flex-direction: column;
    justify-content: center
}

.procode-full-col-side {
    width: 200px;
    align-items: center;
    display: flex;
}

.procode-full-col-main {
    flex: 1;
    min-width: 0
}

.procode-full-img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 4px;
    display: block
}

.procode-full-img.ph {
    width: 120px;
    height: 120px;
    background: #f2f2f2
}

.procode-img-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.procode-img-modal-img {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 92vw;
    max-height: 92vh;
    object-fit: contain;
    border-radius: 16px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
    z-index: 2;
    pointer-events: auto;
}

.procode-img-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .35);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    z-index: 1;
}
.procode-img-modal {
    display: none;
}
.procode-img-modal[hidden] {
    display: none !important;
}

.procode-img-modal-close {
    position: fixed!important;
    top: 24px;
    right: 24px;
    z-index: 3;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, .55);
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    line-height: 28px;
    text-align: center;
    align-content: center;
}

body.procode-modal-open {
    overflow: hidden;
}

.procode-full-row2 {
    overflow: hidden;
    transition: grid-template-rows .3s ease, opacity .2s ease;
    display: grid;

}

.procode-score {width: 40px!important;}

/* بسته */
.procode-full-row2.is-collapsed {
    grid-template-rows: 0fr;
    opacity: 0;
    padding: 0;
    border-top: none;
    transition: padding .2s ease, border-color .2s ease;
}

/* باز */
.procode-full-row2.is-open {
    grid-template-rows: 1fr;
    opacity: 1;
    padding: 14px;
}

.procode-full-row2-content {
    overflow: hidden;
}

.procode-full-title {
    font-weight: 800;
    text-decoration: none;
    color: #111;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 15px;
}

.procode-full-title a{color: #111;}

.procode-full-price {
    margin-top: 6px;
    color: #444
}

.procode-full-price-val {
    font-weight: 900
}

.procode-full-score {
    display: flex;
    gap: 8px;
    align-items: center;
    font-size:13px;
}

.procode-full-score-star {
    color: #f5b301;
    font-size: 30px;
    height: 25px;
    margin-top: -23px;
}

.procode-full-toggle {
    margin-top: 10px;
    background-color: #ed4545 !important;
    color: #fff !important;
    border-radius: 5px !important;
    padding: 10px 12px !important;
    cursor: pointer !important;
    width: 100% !important;
}

.procode-full-toggle:hover {
    background-color: #ed4545!important;

}

.procode-full-toggle:hover span {
    color: #fff;
}

.procode-full-row2 {
    padding: 14px;
    border-top: 1px solid #eee
}

.procode-full-feature {
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 10px;
    display: flex;
    gap: 10px;
    flex: 0 0 auto;
    min-width: 150px;
}

.procode-product-link {
    color: #04195b;
}

.procode-full-features-wrap {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    padding-bottom: 8px;
}

.procode-full-features {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    align-items: stretch;
}


.procode-full-feature-more {
    min-width: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.procode-full-feature-ico {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: center
}

.procode-full-feature-label {
    font-size: 12px;
    color: #666
}

.procode-full-feature-value {
    font-size: 13px;
    font-weight: 800;
    margin-top: 3px
}

.procode-full-more-wrap {
    margin-top: 10px;
    text-align: center
}

.procode-full-more {
    background: #e5e7eb;
    border: 0;
    border-radius: 10px;
    padding: 10px 12px;
    cursor: pointer
}

.procode-full-summary {
    margin-top: 12px;
    line-height: 1.9;
    color: #333
}

.procode-full-summary p {
    text-align: justify;
}

.procode-full-summary ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.procode-full-summary ul li {
    margin-bottom: 0 !important;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    background: #f7f7f7;
    box-sizing: border-box;
}

.procode-full-summary .procode-summary-block ul {
    all: inherit;
}

.procode-full-summary .procode-summary-block ul li {
    all: inherit;
}

.procode-full-readmore {
    margin-top: 12px
}

.procode-full-readmore-btn {
    display: block;
    text-align: center;
    background: #ef4444;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    padding: 9px;
    font-weight: 900
}

.procode-full-readmore-btn:hover {
    color: #212121;
}

.procode-appropriate {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin: 8px;
}

.procode-appropriate-desktop {
    position: absolute;
    left: 210px;
    bottom: 16%;
}

.procode-appropriate-mobile {
    border-radius: 5px;
    padding: 5px 2px;
    margin: 0;
    width: 100%;
}

.procode-appropriate-mobile .procode-appropriate-item {
    padding: 17px 10px;
    font-size: 12px;
    flex: 1;
    justify-content: center;
}

.procode-appropriate-item {
    color: #333;
    font-size: 12px;
    padding: 22px 15px;
    line-height: 1.6;
    white-space: nowrap;
    height: 15px;
    display: flex;
    align-items: center;
    background: #f6f6f6;
    border-radius: 5px;
}

.procode-appropriate .procode-appropriate-item:last-child {
    border-left: none;
}

.procode-full-screenshot{
    border-radius: 8px!important;
    margin-bottom: 10px;
    border: 1px solid #b6b6b6!important;
    width: 17%;
    display: block!important;
    justify-self: right;
    margin-top:20px;
}


.procode-full-score-empty {
    font-size: 14px;
}

.procode-input {
    width: 100%!important;
    min-width: 150px;
}

.rezayat-moshtarian-block .pc-media-masonry-col {
    width: auto;
}
@media(min-width:1024px){
    .procode-full-desktop .procode-full-list{display:flex;flex-wrap:wrap;justify-content:space-between;}
    .procode-full-desktop .procode-full-card{margin:5px;width:49%;}
}


/* card view */
.procode-card-grid{
    display:grid;
    grid-template-columns:repeat(1,1fr);
    gap:16px;
}
.procode-card{
    position:relative;
    background:#fff;
    border-radius:18px;
    overflow:hidden;
    box-shadow:0 10px 25px rgba(0,0,0,.08);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 400px;
}
.procode-card .pc-media img{
    width:100%;
    height:220px;
    object-fit:contain;
    background:#fafafa;
}
.procode-card hr{margin-bottom:0!important;}
.pc-body{
    padding:14px;
    text-align:center;
}
.procode-card .pc-title{font-size:14px;font-weight:600;margin-bottom:8px;text-align: right; color:#222;}
.procode-card .pc-score{font-size:13px;color:#777;text-align: right;}
.procode-card .pc-price{font-size: 13px !important;font-weight: 700;text-align: right;}
.procode-card .pc-price-currency{padding-right: 3px;}
.procode-card .pc-more{
    border-radius: 7px !important;
    cursor: pointer !important;
    background: #ed4545 !important;
    color: #fff !important;
    height: 36px !important;
    font-size: 10px;
    padding: 10px !important;
    min-height: min-content !important;
    font-weight: 900;
}
.procode-card .pc-more:hover{box-shadow: 0 0 9px #ed4545a6;}
.procode-card .pc-overlay{
    position:absolute;
    inset:0;
    background:rgba(255,255,255,.65);
    backdrop-filter:blur(12px);
    transform:translateY(100%);
    transition:.45s cubic-bezier(.4,0,.2,1);
    padding:18px;
    z-index:5;
}
.pc-body,
.pc-media {
    transition: 
        filter 0.35s ease,
        opacity 0.35s ease;
}
.procode-card .pc-media img{background:#fff;}
.procode-card.active .pc-overlay{transform:translateY(0);}
.procode-card.active .pc-body,
.procode-card.active .pc-media{filter:blur(4px);opacity:.4;}
.pc-close{
    float: left;
    border-radius: 5px !important;
    min-height: 23px !important;
    min-width: 10px !important;
    width: 22px !important;
    padding: 2px 2px 0 !important;
}
.pc-close:hover{background:#ed4545!important;color:#fff!important;}
.procode-card .pc-link {
    text-align: center;
    border: none;
    position: absolute;
    bottom: 10px;
    right: 18px;
    left: 18px;
    height: 40px;
    background: #ed4545;
    border-radius: 7px;
    align-content: center;}
    
.procode-card .pc-link a{
    display: inline-block;
    font-weight: 400;
    color: #fff !important;
    font-size: 14px;}
    
.procode-card .pc-link:hover{
    cursor: pointer;
    box-shadow: 0 0 9px #ed4545a6;}

#list-box-price-loder .wd-accordion.wd-style-shadow>.wd-accordion-item{
    box-shadow:none;
}

.procode-card .pc-excerpt{margin-top: 40px;}

.procode-card .pc-body-more{
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 8px;
}

.procode-card .pc-excerpt ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0px 5px;
}

.procode-card .pc-excerpt ul li {
  background: #fbfbfb;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 12px;
  border: 1px solid #f2f2f2;
  align-content: center;
}

/* اگر تعداد فرد بود، آیتم آخر تمام عرض را بگیرد */
.procode-card .pc-excerpt ul li:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}



/* procode list */
.procode-list{border-right: 2px solid #ed4545;}
.procode-list li{list-style: none;padding-right: 10px;}
.pc-price-min, .pc-price-max, .pc-price-single{font-weight: 900;}
.pc-price-sep{padding: 0 4px;}

@media (max-width: 768px) {
    .procode-full-screenshot{
        background: #ffffff !important;
        width: 100%;
        margin-top:20px;
    }
    .procode-full-row1 {
        flex-direction: column;
        padding: 5px;
        gap: 5px;
    }

    .Procode-full-info {
        width: 100%;
    }

    .procode-full-col-side {
        width: 100%;
        flex-direction: row;
        align-items: stretch;
        gap: 5px;
        height: 35px;
        border-top: 1px solid #ccc;
        padding: 5px 5px 0 5px;
        justify-content: space-between;
    }

    .procode-full-score {
        gap: 4px;
    }

    .procode-full-score .procode-score {
        width: 7vw;
    }
    .procode-full-score .procode-score{
        width: 25px;
    }

    .procode-full-score-star{
        font-size: 25px;
        height: 25px;
        margin-top: -15px;
    }

    .procode-full-title {
        white-space: normal;
        margin-bottom: 0;
    }

    .procode-full-toggle {
        width: 35% !important;
        margin-top: auto !important;
        min-height: 5px !important;
        height: 28px;
    }
    .procode-full-score-empty, .procode-full-toggle-text, .procode-full-score {
        font-size: 11px;
    }

    .procode-full-img, .procode-full-img.ph {
        width: 90px;
        height: 90px;
    }

    .procode-full-col-main {
        font-size: 14px;
        align-items: flex-start;
    }

    .procode-price-info {
        display: flex;
        justify-content: space-between;
        font-size: 2.6vw;
        width: 100%;
    }

    .procode-price-info img {
        width: 4.3vw;
    }

    .procode-price-info .price-item:last-child {
        margin-right: 0;
    }

    .procode-pdf, .procode-screenshot {
        font-size: 0px !important;
        padding: 0 !important;
    }

    .procode-screenshot::after {
        content: '📸';
        font-size: 26px;
        padding-left: 4px;
        padding-bottom: 3px;
    }

    .procode-pdf::after {
        content: '📄';
        font-size: 26px;
        padding-left: 4px;
        padding-top: 5px;
    }
    
    .procode-card .pc-price{font-size:14px!important;}
    .procode-card .pc-more {width: 100%;}
    .pc-body-info {
        display: flex;
        justify-content: space-between;
        flex-direction: column;
        width: 100%;
    }
}

/* card view */
@media(min-width:1024px){
    .procode-card-grid{grid-template-columns:repeat(4,1fr);}
}