/* Custom CSS */

/*پرداخت دلخواه*/

.cpw-wrap, .cpw-wrap *, .cpw-admin *{font-family:'YekanBakhFaNum','IRANSans',tahoma,sans-serif !important}

/* Front UI (clean, no icons) */
.cpw-wrap{max-width:640px;margin:24px auto;background:#fff;border-radius:16px;box-shadow:0 8px 24px rgba(0,0,0,.08);overflow:hidden;border:1px solid #eee}
.cpw-logo{display:block;text-align:center;background:linear-gradient(135deg,#f7f8fa,#eef2f7);padding:18px;margin:0}
.cpw-logo img{max-height:90px;max-width:100%;height:auto;width:auto;display:inline-block}
.cpw-form{padding:18px;margin-top:10px}
.cpw-label{display:block;margin-bottom:6px;font-weight:700;color:#111827}
.cpw-label span{color:#ef4444}
.cpw-input-wrap{position:relative;display:flex;align-items:center}
.cpw-input{flex:1 1 auto;width:100%;padding:12px 14px;border:1.5px solid #e5e7eb;border-radius:12px;background:#fcfcfd;transition:.2s;text-align:right}
.cpw-input::placeholder{color:#9ca3af}
.cpw-input:focus{outline:none;border-color:#1a73e8;box-shadow:0 0 0 4px rgba(26,115,232,.12)}
.cpw-field{margin-bottom:14px}
.cpw-help{color:#6b7280;font-size:.85rem;margin-top:4px;display:block}
.cpw-actions{margin-top:10px}
.cpw-btn{padding:12px 16px;border:0;border-radius:12px;background:#1a73e8;color:#fff;cursor:pointer;font-weight:700;width:100%;box-shadow:0 6px 14px rgba(26,115,232,.25)}
.cpw-btn.loading{opacity:.8;pointer-events:none}
.cpw-btn-secondary{background:#6b7280}
.cpw-amount-row{display:flex;align-items:center;gap:8px}
.cpw-amount-input{}
.cpw-suffix{background:#f3f4f6;border:1px solid #e5e7eb;border-radius:10px;padding:8px 10px;white-space:nowrap}
/* Result */
.cpw-result-box{border:1px dashed #ddd;border-radius:16px;padding:16px;background:#fff}
.cpw-result-row{display:flex;justify-content:space-between;margin-bottom:8px}
.cpw-badge{padding:4px 8px;border-radius:999px;background:#e5e7eb}
.cpw-success{background:#dcfce7;color:#166534}
.cpw-failed{background:#fee2e2;color:#991b1b}
.cpw-result-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.not-print{display:block}
@media print {.not-print{display:none} .cpw-wrap{box-shadow:none;border:0}}

/* Admin full width */
.cpw-admin .cpw-card{background:#fff;border:1px solid #e5e7eb;border-radius:12px;padding:16px;margin:12px 0}
.cpw-admin .cpw-card.full{max-width:none;width:100%}
.cpw-admin .form-table.wide{width:100%}
.cpw-stats{display:flex;gap:24px;align-items:center;margin-bottom:12px;flex-wrap:wrap}
.cpw-filter{margin-bottom:10px;display:flex;gap:8px;align-items:center;flex-wrap:wrap}


/* تب محصولات*/


ahv-rtl {direction: rtl; font-family: inherit;}
.ahv-tabs{background:#fff;border-radius:12px!important;box-shadow:0 6px 18px rgba(0,0,0,.06);padding:10px!important}

/* Notice */
.ahv-tabs .ahv-notice{display:block;background:#eef7ff;border:1px solid #cde4ff;color:#0b4870;padding:8px 12px;border-radius:10px;margin-bottom:10px;font-weight:600}
.ahv-tabs .ahv-notice[hidden]{display:none}
.ahv-tabs .ahv-notice.is-success{background:#ebf9f1;border-color:#bcead5;color:#115e38}
.ahv-tabs .ahv-notice.is-error{background:#fff4f4;border-color:#ffd1d1;color:#7a1111}

/* Tab headers — compact */
.ahv-tabs .ahv-tab-headers{display:flex;gap:8px;flex-wrap:nowrap;margin-bottom:10px;overflow-x:auto;white-space:nowrap;-webkit-overflow-scrolling:touch;scrollbar-width:thin}
.ahv-tabs .ahv-tab-header{border:1px solid #ececec;background:#f7f7f7;padding:8px 12px;border-radius:12px!important;cursor:pointer;font-weight:700;transition:all .2s;display:inline-flex;align-items:center;gap:8px;flex:0 0 auto;font-size:14px}
.ahv-tabs .ahv-tab-header:hover{transform:translateY(-1px)}
.ahv-tabs .ahv-tab-header.is-active{background:#f1f5ff;color:#222;border-color:#c9a33b}
.ahv-tabs .ahv-tab-icon svg, .ahv-tabs .ahv-tab-icon img{display:block}
@media (min-width: 768px){
  .ahv-tabs .ahv-tab-headers{flex-wrap:wrap;overflow:visible}
}
.ahv-tabs .ahv-tab-panels{border-top:1px solid #eee;padding-top:10px}
.ahv-tabs .ahv-tab-panel{display:none;animation:fade .2s ease}
.ahv-tabs .ahv-tab-panel.is-active{display:block}
@keyframes fade{from{opacity:.7}to{opacity:1}}

/* Reviews summary: keep items on one row (also for not-logged-in) */
.ahv-tabs .ahv-reviews-summary{display:flex;align-items:center;gap:8px;background:#faf8ef;border:1px solid #f0e4b2;border-radius:12px;padding:8px 10px;flex-wrap:nowrap}
.ahv-tabs .ahv-avg{display:flex;align-items:center;gap:6px;min-width:0;flex:1 1 auto}
.ahv-tabs .ahv-avg-text{font-weight:700;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ahv-tabs .ahv-review-form-cta{flex:0 0 auto}
.ahv-tabs .ahv-review-form-cta .ahv-btn{padding:6px 10px;font-size:13px;border-radius:10px;white-space:nowrap}

/* Review form */
.ahv-tabs .ahv-review-form-card{background:#f9f9f9;border:1px solid #eee;border-radius:12px;padding:10px}
.ahv-tabs .ahv-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.ahv-tabs .ahv-form-grid .full{grid-column:1/-1}
.ahv-tabs .ahv-form-grid input, .ahv-tabs .ahv-form-grid textarea{width:100%}
.ahv-tabs .ahv-field-error{color:#b30000;font-size:13px;margin-top:4px}
.ahv-tabs .ahv-field-success{color:#106b38;font-size:13px;margin-top:8px}

/* comments */
.ahv-tabs .ahv-comments-list .ahv-comment{border:1px solid #eee;border-radius:12px;padding:12px;margin:12px 0;background:#fff;position:relative}
.ahv-tabs .ahv-comment-header{display:flex;align-items:center;gap:8px;margin-bottom:6px}
.ahv-tabs .ahv-comment-author{font-weight:700}
.ahv-tabs .ahv-comment-title{font-weight:700;margin:2px 0 6px 0}
.ahv-tabs .ahv-badge{background:#222;color:#fff;border-radius:8px;padding:2px 6px;font-size:12px}

/* Threaded */
.ahv-tabs .ahv-thread .ahv-level{list-style:none;margin:0;padding:0 0 0 12px;border-right:2px solid #eee}
.ahv-tabs .ahv-thread .ahv-level .ahv-level{margin-right:12px}

/* Admin highlight */
.ahv-tabs .ahv-comment-admin{background:#fffef7;border-color:#f3e3b0;box-shadow:0 2px 10px rgba(201,163,59,.15)}
.ahv-tabs .ahv-comment-admin .ahv-comment-inner{transform:translateX(-6px)}
@media (prefers-reduced-motion:no-preference){ .ahv-tabs .ahv-comment-inner{transition:transform .15s ease} }

/* Reply link */
.ahv-tabs .ahv-reply-link a{font-size:13px;text-decoration:none}
.ahv-tabs .ahv-reply-link a:hover{text-decoration:underline}

/* Stars (display) — yellow */
.ahv-tabs .ahv-stars{--v:0;position:relative;display:inline-block;font-size:20px;line-height:1;color:#FFC107}
.ahv-tabs .ahv-stars::before{content:"★★★★★";letter-spacing:3px;opacity:.25;color:#999}
.ahv-tabs .ahv-stars::after{content:"★★★★★";letter-spacing:3px;position:absolute;inset:0;white-space:nowrap;overflow:hidden;width:calc((var(--v) / 5)*100%);color:#FFC107}

/* Stars (input) — yellow */
.ahv-tabs .ahv-stars-input{display:inline-flex;flex-direction:row-reverse}
.ahv-tabs .ahv-stars-input input{display:none}
.ahv-tabs .ahv-stars-input label{font-size:26px;cursor:pointer;opacity:.5;transition:opacity .1s,color .1s; color:#FFC107}
.ahv-tabs .ahv-stars-input input:checked ~ label,
.ahv-tabs .ahv-stars-input label:hover,
.ahv-tabs .ahv-stars-input label:hover ~ label{opacity:1}

/* Buttons */
.ahv-tabs .ahv-btn{background:#c9a33b;border:0;padding:9px 14px;border-radius:10px;color:#fff;font-weight:700;cursor:pointer;white-space:nowrap}
.ahv-tabs .ahv-btn:hover{filter:brightness(.95)}
.ahv-tabs .ahv-login-link{font-weight:700}


/*نمایش قیمت محصولات وب خانی*/


.psb-box {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    background: #fffdf7;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 15px 20px;
    font-family: 'ایرانی سنس';
    text-align: center;
    gap: 10px;
}

.psb-section {
    flex: 1 1 30%;
    min-width: 100px;
    
}

.psb-price {
    position: relative;
    text-align: center;
}
.psb-discount {
    margin-bottom: 6px;
    background: #e63946;
    color: #fff;
    padding: 2px 8px;
    border-radius: 50px;
    font-size: 13px;
    display: block;
}
.psb-new-price {
    font-size: 15px;
    font-weight: bold;
    color: #000;
}
.psb-old-price {
    text-decoration: line-through;
    color: #999;
    display: block;
    font-size: 11px;
    margin-top: 2px;
}

.psb-sales {
    text-align: center;
}
.psb-sales strong {
    font-size: 16px;
    display: block;
    color: #333;
}
.psb-rating {
    text-align: center;
    color: #f9a825;
    font-size: 14px;
    font-weight: bold;
}

@media (max-width: 599px) {
    .psb-box  {
        flex-wrap: nowrap;
        flex-direction: row;
        gap: 8px;
       
       
    }

    .psb-section {
        flex: 1;
        margin-bottom: 0;
    }

    .psb-new-price {
        font-size: 14px;
    }

    .psb-old-price {
        font-size: 10px;
    }

    .psb-sales strong {
        font-size: 14px;
    }

    .psb-rating {
        font-size: 13px;
       
    }

    .psb-discount {
        font-size: 10px;
       
    }
}

.psb-star-icon {
    display: flex;
    justify-content: center;
    align-items: center;
}

.psb-star-icon svg {
    width: 24px;  /* اندازه جدید کوچکتر */
    height: 24px;
    fill: #FFD700 !important;
}


*/پشتیبانی سایت*/
