/* ===========================
   Single Product Page Styles
   =========================== */

/* Product Reviews Container */
.custom-reviews-container {
  direction: rtl;
  margin-top: 20px;
}
a.first-rating-link {
  color: #207845;
  font-size: 14px;
  font-weight: 500;
}
span.rating-label {
  font-size: 14px;
  font-weight: 500;
  color: #81858b;
  margin-left: 3px;
}
img.star-icon {
  width: 14px;
  height: auto;
  margin-left: 1px;
}
span.rating-value {
  font-size: 14px;
  font-weight: 700;
  color: #212121;
  margin-left: 3px;
}
span.rating-count {
  font-weight: 700;
  font-size: 14px;
  color: #212121;
}
.review-box {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
  background: #fafafa;
  transition: background-color 0.3s;
}

.review-box:hover {
  background: #f5f5f5;
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.review-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.review-author {
  font-weight: 600;
  color: #212121;
  font-size: 14px;
}

.separator {
  color: #d0d0d0;
}

.buyer-label {
  background: #207845;
  color: #fff;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
}

.review-left {
  color: #999;
  font-size: 13px;
}

.review-review-date {
  color: #999;
}

.review-content {
  margin: 12px 0;
  color: #424242;
  font-size: 14px;
  line-height: 1.6;
}

.review-content p {
  margin: 0;
}

.review-footer {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #e0e0e0;
  color: #666;
  font-size: 13px;
}

.helpful-label {
  font-weight: 500;
  color: #207845;
  cursor: pointer;
}

/* Single product full-width buy button + qty box */
.single-buy-button {
  display: block;
  width: 100%;
  background: #207845;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  padding: 10px 14px;
  border-radius: 16px;
  min-height: 44px;
}

.single-product-cart .qty-box {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  box-sizing: border-box;
}

.single-product-cart .qty-btn {
  flex: 0 0 48px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e4e9fe;
  background: none;
  border-radius: 10px;
  cursor: pointer;
}

.single-product-cart .qty-value {
  flex: 1 1 auto;
  text-align: center;
  font-weight: 700;
  font-size: 16px;
}

/* Product Price Area */
.price-area {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.price-top {
  font-size: 13px;
  color: #999;
  display: flex;
  gap: 8px;
  align-items: center;
}

.price-top del {
  text-decoration: line-through;
}

.price-bottom {
  display: flex;
  align-items: center;
  gap: 4px;
}

.price-amount {
  color: #212121;
  font-weight: 700;
  font-size: 18px;
}

.toman-icon {
  width: 18px;
  height: auto;
  display: inline-block;
}

.discount-lable-new {
  background: #207845;
  color: #fff;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 6px;
}

/* Product Installment Box */
.installment-box {
  direction: rtl;
}

.payment-icon {
  width: auto;
  height: 20px;
  display: block;
}

/* Product Rating Shortcode */
.product-rating-shortcode {
  direction: rtl;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.product-rating-shortcode .rating-label {
  color: #666;
  font-size: 14px;
}

.product-rating-shortcode .star-icon {
  width: 16px;
  height: 16px;
}

.product-rating-shortcode .rating-value {
  font-weight: 700;
  color: #212121;
  font-size: 14px;
}

.product-rating-shortcode .rating-count {
  color: #666;
  font-size: 13px;
}

.product-rating-shortcode .first-rating-link {
  color: #207845;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.product-rating-shortcode .first-rating-link:hover {
  color: #1a5e34;
  text-decoration: underline;
}

.installment-box {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  font-size: 13px;
  font-weight: 500;
  color: #008efa;
}
.installment-header {
  display: flex;
}
.payment-methods {
  display: flex;
  flex-direction: column-reverse;
  justify-content: center;
  align-items: flex-start;
  gap: 4px;
  margin-left: 2px;
}
.installment-price .toman-icon {
  width: 13px;
  height: auto;
  margin-right: 2px;
}
.installment-price {
  font-weight: 700;
  margin-right: 3px;
  margin-left: 3px;
}

/* Responsive */
@media (max-width: 767px) {
  .review-box {
    padding: 12px;
    margin-bottom: 12px;
  }

  .review-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .review-left {
    width: 100%;
    text-align: right;
  }

  .price-amount {
    font-size: 16px;
  }

  .price-top {
    font-size: 12px;
    gap: 6px;
  }

  .discount-lable-new {
    font-size: 11px;
    padding: 1px 4px;
  }

  .toman-icon {
    width: 14px;
  }

  .product-rating-shortcode {
    gap: 4px;
  }

  .product-rating-shortcode .rating-label {
    font-size: 13px;
  }

  .product-rating-shortcode .rating-value {
    font-size: 13px;
  }
}
