/* ============================================================
 * SOBIE REVIEW WIDGET — Stylesheet
 * File: widget.css
 *
 * Phiên bản style mặc định: clean, neutral, dễ override.
 *
 * CÁCH TUỲ CHỈNH MÀU SẮC:
 * Đổi giá trị các CSS variables dưới đây (--hrv-*)
 * Hoặc thêm CSS riêng bên dưới với prefix .hrv-* để ghi đè.
 *
 * Mọi class đều có prefix `.hrv-` để không đụng style theme Haravan.
 * ============================================================ */

/* ============================================================
   CSS VARIABLES — Tuỳ chỉnh ở đây
   ============================================================ */
.hrv-review-widget {
  /* Màu chủ đạo */
  --hrv-primary: #1a1a1a;
  --hrv-primary-hover: #000000;
  --hrv-accent: #f59e0b;          /* Màu sao vàng */
  --hrv-success: #10b981;
  --hrv-error: #ef4444;
  --hrv-warning: #f59e0b;

  /* Text & Background */
  --hrv-text: #1f2937;
  --hrv-text-muted: #6b7280;
  --hrv-text-light: #9ca3af;
  --hrv-bg: #ffffff;
  --hrv-bg-subtle: #f9fafb;
  --hrv-bg-muted: #f3f4f6;
  --hrv-border: #e5e7eb;
  --hrv-border-strong: #d1d5db;

  /* Spacing */
  --hrv-radius: 8px;
  --hrv-radius-lg: 12px;
  --hrv-radius-full: 9999px;

  /* Shadow */
  --hrv-shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --hrv-shadow: 0 4px 12px rgba(0,0,0,0.08);
  --hrv-shadow-lg: 0 10px 32px rgba(0,0,0,0.12);

  /* Font */
  --hrv-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  /* === Container === */
  font-family: var(--hrv-font);
  color: var(--hrv-text);
  line-height: 1.5;
  max-width: 100%;
  margin: 32px 0;
  box-sizing: border-box;
}

.hrv-review-widget *,
.hrv-review-widget *::before,
.hrv-review-widget *::after {
  box-sizing: border-box;
}

/* ============================================================
   HEADER
   ============================================================ */
.hrv-header {
  padding: 24px 0;
  border-top: 1px solid var(--hrv-border);
  border-bottom: 1px solid var(--hrv-border);
  margin-bottom: 24px;
}

.hrv-title {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 20px 0;
  color: var(--hrv-text);
  letter-spacing: -0.02em;
}

.hrv-no-reviews {
  padding: 24px;
  text-align: center;
  color: var(--hrv-text-muted);
  background: var(--hrv-bg-subtle);
  border-radius: var(--hrv-radius);
  font-size: 14px;
}

/* ============================================================
   RATING OVERVIEW — Tổng hợp đánh giá
   ============================================================ */
.hrv-rating-overview {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 32px;
  align-items: center;
}

.hrv-rating-big {
  text-align: center;
  padding-right: 32px;
  border-right: 1px solid var(--hrv-border);
}

.hrv-rating-num {
  font-size: 56px;
  font-weight: 800;
  line-height: 1;
  color: var(--hrv-text);
  letter-spacing: -0.04em;
}

.hrv-rating-big .hrv-stars {
  margin: 8px 0;
  justify-content: center;
}

.hrv-rating-count {
  font-size: 13px;
  color: var(--hrv-text-muted);
}

.hrv-rating-breakdown {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hrv-rating-row {
  display: grid;
  grid-template-columns: 40px 1fr 32px;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: 0;
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
  font: inherit;
  color: var(--hrv-text-muted);
  text-align: left;
  transition: background 0.15s;
}

.hrv-rating-row:hover {
  background: var(--hrv-bg-subtle);
}

.hrv-rating-label {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 13px;
  font-weight: 500;
  color: var(--hrv-accent);
}

.hrv-rating-bar {
  height: 8px;
  background: var(--hrv-bg-muted);
  border-radius: var(--hrv-radius-full);
  overflow: hidden;
}

.hrv-rating-fill {
  display: block;
  height: 100%;
  background: var(--hrv-accent);
  border-radius: inherit;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.hrv-rating-pct {
  font-size: 12px;
  color: var(--hrv-text-muted);
  text-align: right;
}

@media (max-width: 600px) {
  .hrv-rating-overview {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .hrv-rating-big {
    padding-right: 0;
    padding-bottom: 16px;
    border-right: 0;
    border-bottom: 1px solid var(--hrv-border);
  }
}

/* ============================================================
   STARS — Hiển thị sao
   ============================================================ */
.hrv-stars {
  display: inline-flex;
  gap: 2px;
  vertical-align: middle;
}

.hrv-star {
  display: inline-block;
  color: var(--hrv-border-strong);
  width: 16px;
  height: 16px;
  transition: color 0.15s;
}

.hrv-star-full,
.hrv-star-half {
  color: var(--hrv-accent);
}

.hrv-star-half {
  background: linear-gradient(90deg, var(--hrv-accent) 50%, var(--hrv-border-strong) 50%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hrv-stars-sm .hrv-star { width: 14px; height: 14px; }
.hrv-stars-lg .hrv-star { width: 22px; height: 22px; }

.hrv-stars-input { gap: 4px; }
.hrv-stars-input .hrv-star {
  width: 32px;
  height: 32px;
  cursor: pointer;
  transition: transform 0.15s, color 0.15s;
}
.hrv-stars-input .hrv-star:hover {
  transform: scale(1.15);
}
.hrv-stars-input .hrv-star-clickable:focus {
  outline: none;
  color: var(--hrv-accent);
}

/* ============================================================
   ACTIONS — Nút "Viết đánh giá"
   ============================================================ */
.hrv-actions {
  margin-bottom: 20px;
}

.hrv-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  border: 1px solid transparent;
  border-radius: var(--hrv-radius);
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
  white-space: nowrap;
}

.hrv-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.hrv-btn-primary {
  background: var(--hrv-primary);
  color: white;
  border-color: var(--hrv-primary);
}
.hrv-btn-primary:not(:disabled):hover {
  background: var(--hrv-primary-hover);
  border-color: var(--hrv-primary-hover);
}

.hrv-btn-ghost {
  background: transparent;
  color: var(--hrv-text);
  border-color: var(--hrv-border-strong);
}
.hrv-btn-ghost:not(:disabled):hover {
  background: var(--hrv-bg-subtle);
  border-color: var(--hrv-text);
}

.hrv-btn-large {
  padding: 14px 32px;
  font-size: 15px;
  width: 100%;
}

/* ============================================================
   FILTERS — Lọc review
   ============================================================ */
.hrv-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--hrv-border);
}

.hrv-filter {
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  background: var(--hrv-bg);
  color: var(--hrv-text-muted);
  border: 1px solid var(--hrv-border);
  border-radius: var(--hrv-radius-full);
  cursor: pointer;
  transition: all 0.15s;
}

.hrv-filter:hover {
  border-color: var(--hrv-text-muted);
  color: var(--hrv-text);
}

.hrv-filter.active {
  background: var(--hrv-primary);
  color: white;
  border-color: var(--hrv-primary);
}

/* ============================================================
   FORM — Viết review
   ============================================================ */
.hrv-form-container {
  margin-bottom: 24px;
}

.hrv-review-form {
  background: var(--hrv-bg-subtle);
  border: 1px solid var(--hrv-border);
  border-radius: var(--hrv-radius-lg);
  padding: 24px;
  animation: hrv-slideDown 0.3s ease;
}

@keyframes hrv-slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hrv-form-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.hrv-form-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--hrv-text);
}

.hrv-close-btn {
  background: none;
  border: 0;
  color: var(--hrv-text-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  display: flex;
}
.hrv-close-btn:hover {
  background: var(--hrv-bg-muted);
  color: var(--hrv-text);
}

.hrv-field {
  margin-bottom: 16px;
}

.hrv-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}
.hrv-field-row .hrv-field { margin-bottom: 0; }

@media (max-width: 500px) {
  .hrv-field-row { grid-template-columns: 1fr; gap: 16px; }
}

.hrv-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--hrv-text);
  margin-bottom: 6px;
}

.hrv-required {
  color: var(--hrv-error);
}

.hrv-input {
  width: 100%;
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
  color: var(--hrv-text);
  background: var(--hrv-bg);
  border: 1px solid var(--hrv-border-strong);
  border-radius: var(--hrv-radius);
  transition: border-color 0.15s, box-shadow 0.15s;
  -webkit-appearance: none;
  appearance: none;
}

.hrv-input:focus {
  outline: none;
  border-color: var(--hrv-primary);
  box-shadow: 0 0 0 3px rgba(0,0,0,0.06);
}

.hrv-textarea {
  resize: vertical;
  min-height: 100px;
  font-family: inherit;
}

.hrv-hint {
  display: block;
  font-size: 12px;
  color: var(--hrv-text-light);
  margin-top: 4px;
}

/* Upload area */
.hrv-upload-area {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-start;
}

.hrv-upload-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background: var(--hrv-bg);
  border: 1.5px dashed var(--hrv-border-strong);
  border-radius: var(--hrv-radius);
  cursor: pointer;
  color: var(--hrv-text-muted);
  font-size: 11px;
  gap: 4px;
  transition: all 0.15s;
}
.hrv-upload-btn:hover {
  border-color: var(--hrv-text);
  color: var(--hrv-text);
  background: var(--hrv-bg-subtle);
}

.hrv-preview-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hrv-preview {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: var(--hrv-radius);
  overflow: hidden;
  background: var(--hrv-bg-muted);
  border: 1px solid var(--hrv-border);
}

.hrv-preview img,
.hrv-preview video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hrv-preview-video {
  width: 140px;
}

.hrv-preview-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  font-size: 11px;
  color: var(--hrv-text-muted);
}

.hrv-preview-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.hrv-preview-remove:hover {
  background: var(--hrv-error);
}

.hrv-form-footer {
  margin-top: 20px;
}

.hrv-disclaimer {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  color: var(--hrv-text-light);
  text-align: center;
}

/* ============================================================
   REVIEWS LIST
   ============================================================ */
.hrv-reviews-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hrv-review-card {
  padding: 20px 0;
  border-bottom: 1px solid var(--hrv-border);
}
.hrv-review-card:last-child {
  border-bottom: 0;
}

.hrv-review-head {
  margin-bottom: 12px;
}

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

.hrv-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--hrv-bg-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--hrv-text-muted);
  font-size: 14px;
  text-transform: uppercase;
  flex-shrink: 0;
}

.hrv-author-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--hrv-text);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.hrv-verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: rgba(16, 185, 129, 0.1);
  color: var(--hrv-success);
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--hrv-radius-full);
}

.hrv-review-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 2px;
  font-size: 12px;
  color: var(--hrv-text-muted);
}

.hrv-review-date {
  font-size: 12px;
}

.hrv-review-title-text {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 6px 0;
  color: var(--hrv-text);
}

.hrv-review-content {
  font-size: 14px;
  line-height: 1.6;
  color: var(--hrv-text);
  margin: 0 0 12px 0;
  white-space: pre-wrap;
  word-wrap: break-word;
}

/* Media grid trong review */
.hrv-review-media-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.hrv-review-media {
  position: relative;
  display: block;
  width: 88px;
  height: 88px;
  border-radius: var(--hrv-radius);
  overflow: hidden;
  border: 1px solid var(--hrv-border);
  background: var(--hrv-bg-muted);
  cursor: pointer;
  padding: 0;
  transition: transform 0.15s;
}
.hrv-review-media:hover {
  transform: scale(1.03);
}

.hrv-review-media img,
.hrv-review-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hrv-review-video-thumb {
  width: 140px;
}

.hrv-play-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  pointer-events: none;
  transition: background 0.15s;
}
.hrv-review-media:hover .hrv-play-icon {
  background: rgba(0, 0, 0, 0.5);
}

/* Admin response */
.hrv-admin-response {
  margin-top: 12px;
  padding: 12px 14px;
  background: var(--hrv-bg-subtle);
  border-left: 3px solid var(--hrv-primary);
  border-radius: 0 var(--hrv-radius) var(--hrv-radius) 0;
}

.hrv-admin-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--hrv-primary);
  margin-bottom: 4px;
}

.hrv-admin-response p {
  margin: 0;
  font-size: 13px;
  color: var(--hrv-text);
  line-height: 1.5;
}

/* Review footer */
.hrv-review-foot {
  margin-top: 12px;
  display: flex;
  gap: 12px;
}

.hrv-helpful-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid var(--hrv-border);
  color: var(--hrv-text-muted);
  font-size: 12px;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: var(--hrv-radius-full);
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
}
.hrv-helpful-btn:hover:not(:disabled) {
  border-color: var(--hrv-text);
  color: var(--hrv-text);
}
.hrv-helpful-btn.hrv-voted {
  background: rgba(16, 185, 129, 0.1);
  color: var(--hrv-success);
  border-color: transparent;
}

/* ============================================================
   LOAD MORE
   ============================================================ */
.hrv-load-more-wrap {
  margin-top: 24px;
  text-align: center;
}

.hrv-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--hrv-text-muted);
  font-size: 14px;
}

/* ============================================================
   LOADING / SPINNER / TOAST
   ============================================================ */
.hrv-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 40px 20px;
  color: var(--hrv-text-muted);
  font-size: 14px;
}

.hrv-spinner {
  width: 20px;
  height: 20px;
  border: 2.5px solid var(--hrv-border-strong);
  border-top-color: var(--hrv-primary);
  border-radius: 50%;
  animation: hrv-spin 0.7s linear infinite;
  display: inline-block;
}

.hrv-spinner-sm {
  width: 12px;
  height: 12px;
  border-width: 2px;
  vertical-align: -2px;
  margin-right: 4px;
}

@keyframes hrv-spin {
  to { transform: rotate(360deg); }
}

.hrv-error {
  padding: 16px;
  background: rgba(239, 68, 68, 0.08);
  color: var(--hrv-error);
  border-radius: var(--hrv-radius);
  text-align: center;
  font-size: 14px;
}

/* ============================================================
   SUCCESS MESSAGE
   ============================================================ */
.hrv-success {
  text-align: center;
  padding: 32px 20px;
  background: var(--hrv-bg-subtle);
  border-radius: var(--hrv-radius-lg);
  border: 1px solid var(--hrv-border);
}
.hrv-success-icon {
  display: inline-flex;
  width: 64px;
  height: 64px;
  background: rgba(16, 185, 129, 0.12);
  color: var(--hrv-success);
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.hrv-success h3 {
  margin: 0 0 8px 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--hrv-text);
}
.hrv-success p {
  margin: 0;
  font-size: 14px;
  color: var(--hrv-text-muted);
}

/* ============================================================
   LIGHTBOX
   ============================================================ */
.hrv-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: hrv-fadeIn 0.2s;
}

@keyframes hrv-fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.hrv-lightbox-content {
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hrv-lightbox-content img,
.hrv-lightbox-content video {
  max-width: 100%;
  max-height: 90vh;
  border-radius: 8px;
  object-fit: contain;
}

.hrv-lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.15);
  border: 0;
  color: white;
  font-size: 28px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  transition: background 0.15s;
}
.hrv-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* ============================================================
   TOAST NOTIFICATIONS
   ============================================================ */
.hrv-toast-container {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 99998;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.hrv-toast {
  padding: 12px 20px;
  border-radius: var(--hrv-radius);
  font-size: 14px;
  font-weight: 500;
  color: white;
  box-shadow: var(--hrv-shadow-lg);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: auto;
  max-width: 90vw;
  text-align: center;
}

.hrv-toast-show {
  opacity: 1;
  transform: translateY(0);
}

.hrv-toast-info    { background: var(--hrv-text); }
.hrv-toast-error   { background: var(--hrv-error); }
.hrv-toast-warning { background: var(--hrv-warning); color: #1f2937; }
.hrv-toast-success { background: var(--hrv-success); }

/* ============================================================
 * SOBIE WIDGET — CSS ADDITIONS cho v1.2 (DYNAMIC ICONS)
 *
 * Append ĐOẠN NÀY vào CUỐI file widget.css trong Haravan theme.
 * Không xóa code cũ.
 *
 * Mục đích:
 *  ✓ Hỗ trợ icon ảnh custom upload (<img>)
 *  ✓ Container 12x12 cho icon nhỏ trong rating breakdown
 *  ✓ Empty state với opacity (cho custom icon ảnh)
 *  ✓ SVG fill đúng bất kể viewBox 24x24 hay 100x100
 * ============================================================ */

/* === RATING ICON (icon nhỏ 12x12 trong breakdown 5★ 4★ ...) === */
.hrv-rating-icon {
  display: inline-flex;
  width: 12px;
  height: 12px;
  align-items: center;
  justify-content: center;
  color: var(--hrv-accent);
  margin-left: 2px;
}

.hrv-rating-icon svg,
.hrv-rating-icon img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

/* === SVG ICON CHO STAR — đảm bảo svg fill đúng container === */
.hrv-star svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* === IMG ICON (cho custom upload) — opacity cho empty state === */
.hrv-star img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  opacity: 0.25;
  transition: opacity 0.15s;
}

.hrv-star-full img,
.hrv-star-half img {
  opacity: 1;
}

/* === Hover state trên input stars khi dùng img === */
.hrv-stars-input .hrv-star img {
  opacity: 0.3;
}
.hrv-stars-input .hrv-star:hover img,
.hrv-stars-input .hrv-star.hrv-star-full img {
  opacity: 1;
}

/* === Half-star với img — hiển thị opacity 0.6 (gần đúng) === */
.hrv-star-half img {
  opacity: 0.6;
}
/* ============================================================
 * SOBIE WIDGET — CSS ADDITIONS cho v1.3 (BIG SUMMARY STARS)
 *
 * Append ĐOẠN NÀY vào CUỐI file widget.css trong Haravan theme.
 * Không xóa code v1.2 cũ.
 *
 * Mục đích:
 *  ✓ Phóng to stars trong overview (cho ngang với số 5.0 to)
 *  ✓ Thêm gap giữa stars cho thoáng
 *  ✓ Responsive: mobile to hơn desktop một chút (vì 5.0 cũng to hơn)
 * ============================================================ */

/* === BIG SUMMARY STARS (.hrv-stars-lg trong .hrv-rating-big) === */
.hrv-rating-big .hrv-stars-lg {
  display: inline-flex;
  gap: 6px;
  margin: 8px 0;
}

.hrv-rating-big .hrv-stars-lg .hrv-star {
  width: 44px;
  height: 44px;
}

/* Mobile: stars to hơn chút vì số 5.0 cũng to hơn */
@media (max-width: 640px) {
  .hrv-rating-big .hrv-stars-lg .hrv-star {
    width: 52px;
    height: 52px;
  }
  .hrv-rating-big .hrv-stars-lg {
    gap: 8px;
  }
}
/* ============================================================
 * SOBIE WIDGET — CSS ADDITIONS cho v1.3 (BIG SUMMARY STARS)
 *
 * Append ĐOẠN NÀY vào CUỐI file widget.css trong Haravan theme.
 * Không xóa code v1.2 cũ.
 *
 * Mục đích:
 *  ✓ Phóng to stars trong overview (cho ngang với số 5.0 to)
 *  ✓ Thêm gap giữa stars cho thoáng
 *  ✓ Responsive: mobile to hơn desktop một chút (vì 5.0 cũng to hơn)
 * ============================================================ */

/* === BIG SUMMARY STARS (.hrv-stars-lg trong .hrv-rating-big) === */
.hrv-rating-big .hrv-stars-lg {
  display: inline-flex;
  gap: 6px;
  margin: 8px 0;
}

.hrv-rating-big .hrv-stars-lg .hrv-star {
  width: 44px;
  height: 44px;
}

/* Mobile: stars to hơn chút vì số 5.0 cũng to hơn */
@media (max-width: 640px) {
  .hrv-rating-big .hrv-stars-lg .hrv-star {
    width: 52px;
    height: 52px;
  }
  .hrv-rating-big .hrv-stars-lg {
    gap: 8px;
  }
}

/* === FILTER ICON (icon nhỏ trong nút filter "5 [icon]") === */
.hrv-filter-icon {
  display: inline-flex;
  width: 14px;
  height: 14px;
  vertical-align: middle;
  margin-left: 2px;
}

.hrv-filter-icon img,
.hrv-filter-icon svg {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

/* ============================================================
 * SOBIE WIDGET — CSS ADDITIONS cho v1.3 (HERO LAYOUT)
 *
 * Append ĐOẠN NÀY vào CUỐI file widget.css trong Haravan theme.
 * Không xóa code v1.2 cũ.
 *
 * Mục đích v1.3:
 *  ✓ Hero layout: 1 icon TO bên cạnh số 5.0 (thay vì 5 sao nhỏ)
 *  ✓ Số 5.0 + icon cùng cao, cùng hàng — thành "stamp" thương hiệu
 *  ✓ "4 đánh giá" xuống hàng dưới, căn giữa
 *  ✓ Filter icon nhỏ cho buttons 5/4/3/2/1
 * ============================================================ */

/* === HERO LAYOUT — 5.0 và icon to bên cạnh === */
.hrv-rating-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 8px;
}

.hrv-rating-hero .hrv-rating-num {
  font-size: 64px;
  line-height: 1;
  font-weight: 700;
  margin: 0;
}

.hrv-rating-hero-icon {
  width: 64px;
  height: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hrv-rating-hero-icon img,
.hrv-rating-hero-icon svg {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

/* Mobile: tăng cỡ vì màn hẹp nhưng có nhiều chỗ */
@media (max-width: 640px) {
  .hrv-rating-hero {
    gap: 16px;
  }
  .hrv-rating-hero .hrv-rating-num {
    font-size: 80px;
  }
  .hrv-rating-hero-icon {
    width: 80px;
    height: 80px;
  }
}

/* === Count text below hero === */
.hrv-rating-big .hrv-rating-count {
  text-align: center;
  display: block;
  margin: 0;
}

/* === FILTER ICON (icon nhỏ trong nút filter "5 [icon]") === */
.hrv-filter-icon {
  display: inline-flex;
  width: 14px;
  height: 14px;
  vertical-align: middle;
  margin-left: 2px;
}

.hrv-filter-icon img,
.hrv-filter-icon svg {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}