/* ═══════════════════════════════════════════
   beorganic.sk – Hodnotenia zákazníkov
   Platformové farby:
   • #738671 / rgb(115,134,113) – primárna olivová (tlačidlo "Pridať do košíka")
   • #64775d / --bo-color-accent – tmavšia akcentová
   • #34312d / --bo-color-text   – textová
   ═══════════════════════════════════════════ */

#bo-reviews-section {
  max-width: 960px;
  margin: 40px auto;
  padding: 36px 32px;
  background: #fff;
  border: 1px solid #e8e0d0;
  border-radius: 16px;
  font-family: inherit;
}

.bo-reviews-title {
  font-size: 1.6rem;
  font-weight: 600;
  color: #34312d;
  margin: 0 0 20px;
  text-align: center;
}

/* ── Summary (priemer + počet) ── */
.bo-reviews-summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 20px;
  margin-bottom: 24px;
  background: #f5f1e8;
  border-radius: 12px;
}

.bo-reviews-avg {
  font-size: 2.4rem;
  font-weight: 700;
  color: #64775d;
  line-height: 1;
}

.bo-reviews-avg-stars .bo-stars-inline {
  font-size: 1.4rem;
  color: #f5a623;
  letter-spacing: 2px;
}

.bo-reviews-avg-count {
  font-size: 0.9rem;
  color: #6b7c6b;
}

/* ── Akcia tlačidlo (Napísať recenziu) ── */
.bo-reviews-actions {
  text-align: center;
  margin-bottom: 20px;
}

body.bodyClass .bo-reviews-write-btn,
.bo-reviews-write-btn {
  padding: 10px 24px !important;
  background: #738671 !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 8px !important;
  font-size: 0.95rem !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  transition: background 0.2s !important;
}

body.bodyClass .bo-reviews-write-btn:hover,
.bo-reviews-write-btn:hover {
  background: #64775d !important;
  color: #ffffff !important;
}

/* ── Formulár ── */
.bo-review-form-wrap {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  margin-bottom: 20px;
}

.bo-review-form-wrap.open {
  max-height: 900px;
}

.bo-review-form {
  padding: 24px;
  background: #f9f6f1;
  border-radius: 12px;
  border: 1px solid #e8e0d0;
}

.bo-form-row {
  margin-bottom: 16px;
}

.bo-form-row label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #34312d;
  margin-bottom: 6px;
}

.bo-form-row input[type="text"],
.bo-form-row input[type="email"],
.bo-form-row textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d4cab8;
  border-radius: 6px;
  font-size: 0.95rem;
  font-family: inherit;
  background: #fff;
  color: #34312d;
  box-sizing: border-box;
}

.bo-form-row input:focus,
.bo-form-row textarea:focus {
  outline: none;
  border-color: #738671;
}

.bo-form-row textarea {
  resize: vertical;
  min-height: 80px;
}

/* Star rating picker */
.bo-star-rating {
  display: inline-flex;
  gap: 4px;
  font-size: 1.8rem;
  cursor: pointer;
}

.bo-star-rating span {
  color: #ddd;
  transition: color 0.15s;
  user-select: none;
}

.bo-star-rating span.active {
  color: #f5a623;
}

.bo-star-rating span:hover {
  transform: scale(1.1);
}

.bo-form-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 12px;
}

body.bodyClass .bo-review-submit,
.bo-review-submit {
  padding: 10px 24px !important;
  background: #738671 !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 6px !important;
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: background 0.2s !important;
}

body.bodyClass .bo-review-submit:hover:not(:disabled),
.bo-review-submit:hover:not(:disabled) {
  background: #64775d !important;
  color: #ffffff !important;
}

.bo-review-submit:disabled {
  opacity: 0.6 !important;
  cursor: not-allowed !important;
}

.bo-form-status {
  font-size: 0.9rem;
  font-weight: 500;
}

.bo-form-status.success {
  color: #2d7a2d;
}

.bo-form-status.error {
  color: #c33;
}

.bo-form-note {
  margin-top: 10px;
  font-size: 0.8rem;
  color: #888;
  font-style: italic;
}

/* ── Zoznam recenzií ── */
.bo-reviews-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.bo-reviews-empty {
  text-align: center;
  color: #888;
  font-style: italic;
  padding: 30px;
}

.bo-review {
  padding: 18px;
  background: #f9f6f1;
  border-radius: 10px;
  border: 1px solid #e8e0d0;
}

.bo-review-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.bo-review-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bo-review-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: #738671;
  color: #ffffff;
  border-radius: 50%;
  font-size: 1.1rem;
  font-weight: 600;
}

.bo-review-name {
  font-weight: 600;
  color: #34312d;
  font-size: 0.95rem;
}

.bo-review-date {
  font-size: 0.8rem;
  color: #888;
}

.bo-review-stars .bo-stars-inline {
  color: #f5a623;
  font-size: 1rem;
  letter-spacing: 1px;
}

.bo-review-text {
  margin: 8px 0 0;
  color: #34312d;
  font-size: 0.95rem;
  line-height: 1.5;
  white-space: pre-wrap;
}

/* ═══════════════════════════════════════════
   Rating row pri H1 – hviezdičky + priemer + počet + Bestseller
   ═══════════════════════════════════════════ */
.bo-rating-row {
  display: flex !important;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 8px 0 16px;
}

.bo-rating-row .bo-stars {
  color: #f5a623;
  font-size: 1.1rem;
  letter-spacing: 2px;
  line-height: 1;
}

.bo-rating-row .bo-rating-avg {
  font-size: 1rem;
  font-weight: 700;
  color: #64775d;
}

.bo-rating-row .bo-rating-count {
  font-size: 0.88rem;
  color: #6b7c6b;
  text-decoration: underline;
  cursor: pointer;
}

.bo-rating-row .bo-rating-count:hover {
  color: #64775d;
}

.bo-rating-row .bo-rating-text {
  display: inline-block;
  padding: 3px 10px;
  background: #e6ede4;
  color: #64775d;
  border-radius: 12px;
  font-size: 0.78rem;
  font-weight: 600;
}

/* ═══════════════════════════════════════════
   MOBILE
   ═══════════════════════════════════════════ */
@media (max-width: 768px) {
  #bo-reviews-section {
    padding: 24px 16px;
    margin: 24px 12px;
  }

  .bo-reviews-title { font-size: 1.3rem; }

  .bo-reviews-summary {
    flex-direction: column;
    gap: 8px;
    padding: 16px;
  }

  .bo-reviews-avg { font-size: 2rem; }

  .bo-review-form { padding: 16px; }

  .bo-form-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .bo-form-status { text-align: center; }

  .bo-review-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .bo-rating-row {
    gap: 6px;
  }
}
