@font-face {
  font-family: 'mrcomment';
  src: url('../font/mrcomment.woff2?95980187') format('woff2');
  font-weight: normal;
  font-style: normal;
}
.nav-link[href="#eextra-4"]::before {
  content: '\e98a';
  font-family: "fontello";
  font-style: normal;
  font-size: 24px;
  margin-left: 5px;
  font-weight: 400;
  vertical-align:middle
}
.nav-link[href="#eextra-5"]::before {
  content: '\e9ba';
  font-family: "fontello";
  font-style: normal;
  font-size: 24px;
  margin-left: 5px;
  font-weight: 400;
  vertical-align:middle
}
[class^="mrc-"]:before, [class*=" mrc-"]:before {
  font-family: "mrcomment";
  font-style: normal;
  font-weight: normal;
  speak: never;
  display: inline-block;
  text-decoration: inherit;
  width: 1em;
  margin-right: .2em;
  text-align: center;
  font-variant: normal;
  text-transform: none;
  line-height: 1em;
  margin-left: .2em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.mrc-star:before { content: '\e800'; } /* '' */
.mrc-star-empty:before { content: '\e801'; } /* '' */
.mrc-thumbs-up-1:before { content: '\e802'; } /* '' */
.mrc-thumbs-down:before { content: '\e803'; } /* '' */
.mrc-thumbs-up:before { content: '\e804'; } /* '' */
.mrc-thumbs-down-1:before { content: '\e805'; } /* '' */
.mrc-heart:before { content: '\e806'; } /* '' */
.mrc-heart-empty:before { content: '\e807'; } /* '' */
.mrc-floppy:before { content: '\e808'; } /* '' */
.mrc-left:before { content: '\e809'; } /* '' */
.mrc-cancel-circled:before { content: '\e80a'; } /* '' */
.mrc-help-circled:before { content: '\e80b'; } /* '' */
.mrc-help-circled-alt:before { content: '\e80c'; } /* '' */
.mrc-help-circled-1:before { content: '\e80d'; } /* '' */
.mrc-right:before { content: '\e80e'; } /* '' */
.mrc-comment:before { content: '\e80f'; } /* '' */
.mrc-chat:before { content: '\e810'; } /* '' */
.mrc-comment-1:before { content: '\e820'; } /* '' */
.mrc-user-male:before { content: '\f062'; } /* '' */
.mrc-star-half-alt:before { content: '\f123'; } /* '' */


.star-rating i {
    cursor: pointer;
    color: #ccc;
    font-size: 20px;
}
.star-rating i.selected {
    color: gold;
}

/* ========== پایه‌ها و چیدمان ========== */
.mrcomment-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: flex-start;
  margin-top: 2rem;
}

.mrcomment-block {
  flex: 3;

}
.mrcomment-block .pagination {
  display: flex;
  justify-content: center;
}
.mrcomment-block .page-link{
	border:0;
	margin:4px;
	width: 36px;
	height: 36px;
	text-align: center;
	border-radius:25px !important;
}
.mrcomment-block .page-item.disabled .page-link{
	color:#555;
}
.mrcomment-sidebar {
  flex: 1;
  position: sticky;
  top: 70px;
}

/* ========== تیترها ========== */
.mrcomment-block h3,
.mrcomment-block h4 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: #111827;
}
.text-center{
	text-align:center
}
/* ========== فرم ثبت نظر ========== */
#mrcomment-form-reviews textarea, .product-review-card textarea,
#mrcomment-form-reviews input[type="text"] ,
#mrcomment-form-questions textarea,
#mrcomment-form-questions input[type="text"]{
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  margin-bottom: 0.8rem;
  transition: all 0.2s ease;
}


/* ========== کارت‌های پیشنهاد (👍👎🤔) ========== */
.recommendation-cards {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.recommendation-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  padding: 0.8rem;
  background: #f9fafb;
  cursor: pointer;
  transition: all 0.2s ease;
}

.recommendation-card:hover {
  background: #eef2ff;
  border-color: #6366f1;
}

.recommendation-card input {
  display: none;
}

.recommendation-icon {
  font-size: 1.5rem;
}

.recommendation-text {
  font-size: 0.9rem;
  margin-top: 0.3rem;
}

/* ========== ستاره‌های امتیاز ========== */
.star-rating {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1rem;
  cursor: pointer;
}

.star-rating i, .summary-score .stars i , .mrcomment-stars i {
  font-style: normal;
  font-size: 1.2rem;
  color: #d1d5db;
  transition: color 0.2s;
}

.star-rating i:hover,
.star-rating i.active {
  color: #fbbf24;
}

.star-value {
  margin-left: 0.5rem;
  font-size: 0.85rem;
  color: #6b7280;
}

/* ========== باکس خلاصه امتیاز ========== */
.review-summary, .question-summary {
  border: 1px solid #e5e7eb;
  padding: 1.5rem;
  border-radius: 12px;
  background: #fff;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.summary-score {
display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-size: 1.3rem;
  margin: .5rem 0;
  flex-direction: column;
}
.summary-score .fs_sm{
	font-size:12px;
}
.summary-score .avg-number {
  font-size: 2rem;
  font-weight: 700;
  color: #000;
}

.summary-score .stars .filled , .mrcomment-stars .filled {
  font-style: normal;
  color: #fbbf24;
}

.total-count {
  color: #6b7280;
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

/* ========== لیست نظرات ========== */
.mrcomment-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mrcomment-item {
  border-bottom: 1px solid #e5e7eb;
  padding: 1rem 0;
}

.mrcomment-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
}
.mrcomment-header small{
	margin-right:auto
}
.mrcomment-header strong {
  font-weight: 600;
  color: #333;
}
.mrcomment-stars i:before{
	margin:0
}
.mrcomment-header small {
  color: #9ca3af;
}
.comment-footer{
	display: flex;
  align-items: center;
  justify-content: space-between;
}
.product-combination-name{
	font-size: 80%;
	color: #9ca3af;
}
.mrcomment-content {
color: #374151;
  margin-bottom: 0.5rem;
  line-height: 1.8;
  font-size: 14px;
}
.criteria {
display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom:10px;
  }
  .criteria .star-rating{
margin:0
  }
  .criteria i:before{
	  font-size: 22px;
	  margin:0
  }
  .criteria label{
	  margin:0
  }
.mrcomment-recommend.yes {
  color: #2d7931;
font-size: 80%;
}

.mrcomment-recommend.no {
  color: #dc2626;
font-size: 80%;
}
.mrcomment-recommend::before {
  content: "";
  display: inline-block;
  vertical-align: middle;
  width: 6px;
  height: 6px;
  background: #ddd;
  margin-left: 8px;
  border-radius: 25px;
}
.recommendation-card.active {
    border-color: #007bff;
    background-color: #e6f0ff;
}

.mrcomment-reply {
  background: #f9fafb;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  margin-top: 0.5rem;
  text-align: justify;
  color: #374151;
  border: 1px solid #ddd;
}
.mrcomment-reply p{
	margin-bottom:0.5rem
}
.mrcomment-reply p:nth-last-child(2){
	margin-bottom:0
}
.mrcomment-like {
  margin-top: 0.5rem;
  text-align:left;
  margin-right: auto;
}

.mrcomment-like button {
  border: none;
  background: transparent;
  cursor: pointer;
  color: #6b7280;
  margin-right: 0.8rem;
  transition: color 0.2s;
}

.mrcomment-like button:hover {
  color: #111827;
}

/* ========== مودال نظر جدید ========== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background: #fff;
  padding: 2rem;
  border-radius: 16px;
  width: 90%;
  max-width: 600px;
  position: relative;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  animation: fadeIn 0.3s ease;
}

.modal-close {
  position: absolute;
  top: .5rem;
  right: 1rem;
  font-size: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: #6b7280;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

/* ========== واکنش‌گرایی ========== */
@media (max-width: 768px) {
  .mrcomment-wrapper {
    flex-direction: column;
  }
  .mrcomment-sidebar {
    position: static;
    width: 100%;
  }
}
#mrcomment-block{
	position:relative
}
.loading_comment{
	width:100%;
	height:100%;
	position:absolute;
	left:0;
	top:0;
	top:0;
	bottom:0;
	margin:auto;
	z-index:1;
	background:#fff;
	opacity:0.5
}
.buyer{
	color:#2d7931;
	font-size: 80%;
}
.buyer:before{
content: "";
  display: inline-block;
  vertical-align: middle;
  width: 6px;
  height: 6px;
  background: #ddd;
  margin-left: 8px;
  border-radius: 25px;
}

.mrcomment-upload-box {
  border: 2px dashed #ccc;
  border-radius: 8px;
  padding: 25px;
  text-align: center;
  cursor: pointer;
  transition: 0.2s;
  background-color: #fafafa;
}
.mrcomment-upload-box:hover {
  background-color: #f0f0f0;
  border-color: #999;
}
.mrcomment-upload-box.dragover {
  background-color: #e8f5e9;
  border-color: #4caf50;
}
#selectedFilesPreview {
  margin-top: 10px;
}
.selected-file {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid #ddd;
  padding: 5px 10px;
  margin-bottom: 5px;
  border-radius: 5px;
  background: #fff;
}
.selected-file img {
  max-width: 50px;
  max-height: 50px;
  object-fit: cover;
  margin-right: 8px;
  border-radius: 4px;
}

.mrcomment-attachments {
  margin: 15px 0;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e9ecef;
}

.attachments-title {
  margin-bottom: 10px;
  font-size: 14px;
  color: #495057;
}

.attachments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}

.attachment-item {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  background: white;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: transform 0.2s ease;
}

.attachment-item:hover {
  transform: translateY(-2px);
}

.attachment-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.attachment-image {
  width: 100%;
  height: 120px;
  object-fit: cover;
  display: block;
}

.attachment-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.attachment-item:hover .attachment-overlay {
  opacity: 1;
}

.attachment-overlay .material-icons {
  color: white;
  font-size: 24px;
}

.attachment-video,
.attachment-audio {
  width: 100%;
  max-height: 120px;
}

.attachment-info {
  padding: 8px;
  text-align: center;
  font-size: 12px;
  color: #6c757d;
}

.file-attachment {
  padding: 10px;
}

.file-link {
  display: flex;
  align-items: center;
  gap: 8px;
}

.file-icon .material-icons {
  font-size: 24px;
  color: #dc3545;
}

.file-info {
  flex: 1;
  min-width: 0;
}

.file-name {
  display: block;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-type {
  font-size: 10px;
  color: #6c757d;
}

.download-icon {
  font-size: 18px;
  color: #28a745;
}

/* برای فایل‌های PDF */
.file-attachment .material-icons[style*="picture_as_pdf"] {
  color: #dc3545;
}

/* برای فایل‌های Word */
.file-attachment .material-icons[style*="article"] {
  color: #2b579a;
}

/* برای فایل‌های Excel */
.file-attachment .material-icons[style*="table_chart"] {
  color: #217346;
}

.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 20px;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.lightbox-image {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: #fff;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
}

.lightbox-download {
    position: absolute;
    bottom: -40px;
    left: 0;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 20px;
    padding: 5px 15px;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

.lightbox-download:hover {
    background: #0056b3;
}

.mrcomment-sorting-section {
  background: #f8f9fa;
border: 1px solid #e9ecef;
box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  border-radius: 12px;
  padding: 10px 15px 0px 15px;
  margin-bottom: 20px;
}

.sorting-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  flex-wrap: wrap;
  gap: 10px;
}

.sorting-label {
  font-weight: 600;
  color: #495057;
}

.sorting-options {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.sort-btn {
  padding: 6px 12px;
  border: 1px solid #dee2e6;
  background: white;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 13px;
}

.sort-btn:hover {
  background: #e9ecef;
  border-color: #adb5bd;
}

.sort-btn.active {
  background: #fff;
  color: white;
border: 1px solid #11bec4;
  border-radius: 5px;
  color: #11bec4;
}

.sorting-stats {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 13px;
  color: #6c757d;
}

.average-rating {
  display: flex;
  align-items: center;
  gap: 5px;
}

.avg-number {
  font-weight: 600;
  color: #495057;
}

@media (max-width: 768px) {
  .sorting-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .sorting-stats {
    flex-direction: column;
    gap: 8px;
  }
}


.mrcomment-ai-section {
    margin: 20px 0;
    position: relative;
}


.mrcomment-ai-section .h4 img, .mrcomment-summary .h4 img{
border: 2px solid #a09ec9;
	border-radius:75px;
	margin-left:10px;
	overflow:hidden;
}
.ai-summary-cached {
background: #e9ecef;
  background: linear-gradient(165deg, #F1F6FF 0%, #FFF 30%, #FFF 70%, #F5F2FF 100%);
  border-radius: 8px;
  padding: 20px;
  border: 1px solid #e9ecef;
  position: relative;
  z-index: 1;
  max-height: 500px;
  overflow: hidden;
}
.ai-summary-cached.expanded{
    max-height:none;
	padding-bottom:40px;
}
.st_showmore_btnn{
position: absolute;
  bottom: 1px;
  margin: auto;
  left: 1px;
  right: 1px;
  text-align: center;
  line-height: 120px;
  background: linear-gradient(180deg,hsla(225,96%,2%,.001),#fff 50%);
  border-radius: 0 0 10px 10px;
  }
  .ai-summary-cached.expanded .st_showmore_btnn {
  line-height: 50px;
  }
.product-summary-box{
		position:relative;
	z-index:1
}
.ai-summary-cached:before, .product-summary-box:before{
content: "";
  bottom: 100%;
  right: 27px;
  height: 18px;
  width: 2px;
  background:  #a09ec9;
  position: absolute;
}
.ai-summary-cached p {
font-size: 13px;
  line-height: 1.7;
  margin-bottom: 10px;
  color: #495057;
  text-align: justify;
  border-bottom: 1px solid #ddd;
  padding-bottom: 10px;
}
.ai-summary-cached p:nth-last-child(3){
	border:0
}
.summary-points {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
}

.summary-points .positive,
.summary-points .negative,
.summary-points .topic {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
	border:1px solid rgba(0,0,0,0.1);
}
.ai-audio-player{
	width:100%;
	margin-bottom:10px;
	padding-bottom:10px;
	border-bottom:1px solid #eee
}
.ai-audio-player audio{
	width:100%;
	border-radius:5px
}
.summary-points .positive {
    background: #f0f9f4;
    color: #166534;
    border: 1px solid #dcfce7;
}

.summary-points .negative {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fee2e2;
}

.summary-points .positive::before {
    content: '✓';
    font-weight: bold;
}

.summary-points .negative::before {
    content: '✗';
    font-weight: bold;
}

@media (max-width: 768px) {
    .mrcomment-ai-section {
        padding: 16px;
        margin: 16px 0;
    }
    
    .ai-summary-cached {
        padding: 16px;
    }
    
    .summary-points {
        grid-template-columns: 1fr;
    }
}

.mrcomment-summary {

    margin: 20px 0;
}

.product-summary-box {
background: white;
  border-radius: 8px;
  padding: 20px;
  border: 1px solid #e9ecef;
}
.mrcomment-summary .h4, .mrcomment-ai-section .h4{
	display:flex;
	align-items:center
}
.mrcomment-summary .h4 small, .mrcomment-ai-section .h4 small{
margin-top:10px;
}
.summary-text {
    font-size: 14px;
    line-height: 1.7;
    color: #495057;
    margin: 0;
    text-align: justify;
}

.summary-text strong {
    color: #2c3e50;
    font-weight: 600;
}

@media (max-width: 768px) {
    .mrcomment-summary {
        padding: 16px;
        margin: 16px 0;
    }
    
    .summary-text {
        font-size: 14px;
        line-height: 1.6;
    }
}

/* ظرف اصلی */
.faq-tablist {

  margin: 20px auto;

  direction: rtl;
}

/* هر آیتم */
.faq-item {
  border: 1px solid #ccc;
  border-radius: 6px;
  margin-bottom: 8px;
  overflow: hidden;
}

/* دکمه سوال */
.faq-question {
width: 100%;
  text-align: right;
  padding: 12px 15px;
  background: #fff;
  border: none;
  outline: none;
  cursor: pointer;
  font-size: 13px;
  transition: background 0.2s;
  position: relative;
}

.faq-question::after {
  content: '+';
  position: absolute;
  left: 15px;
  font-weight: bold;
}

.faq-question.active {
  background: #e3f2fd;
}

.faq-question.active::after {
  content: '-';
}
/* پاسخ */
.faq-answer {
  display: none;
  padding: 12px 15px;
  background: #fff;
  font-size: 13px;
  line-height: 1.5;
}

.product-review-card {
padding-bottom:10px ;
margin-bottom:10px;
border-bottom:1px solid #ddd;
	}
	.product-review-card:last-child {
border:0
	}
