/* ============================================
   reviews-page.css — [happybud_reviews] shortcode
   Ported from the design package's reviews.css. Dropped from the
   design: .write-review-btn (no product context to submit against from
   a hub page), .stats-strip/.filter-pills (defined in the source CSS
   but unused in its own HTML), .cta-strip (unused there too). Reviewer
   location is state-only, not full city — see happybud_parse_review_
   state() in includes/reviews-page.php for why.
   ======================================== */

.happybud-reviews-page { background: #fcfaf4; }

/* Hero */
.reviews-hero {
  padding: 24px 32px 44px;
  background: #fcfaf4;
  border-bottom: 3px solid #1a1a1a;
  position: relative;
  overflow: hidden;
}
.reviews-hero::before {
  content: "★★★★★ ★★★★★ ★★★★★ ★★★★★ ★★★★★ ★★★★★ ★★★★★ ";
  position: absolute;
  bottom: 12px; left: 0; right: 0;
  font-size: 14px;
  color: rgba(255, 107, 53, 0.12);
  letter-spacing: 0.3em;
  white-space: nowrap; overflow: hidden;
}
.reviews-hero-inner {
  max-width: 916px; margin: 0 auto;
  position: relative; z-index: 2;
}
.reviews-hero .breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600;
  color: #6b6b6b;
  margin-bottom: 20px;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.reviews-hero .breadcrumb a:hover { color: #ff6b35; }
.reviews-hero .breadcrumb iconify-icon { font-size: 10px; }
.hero-eyebrow {
  display: inline-block;
  padding: 8px 16px;
  background: #1a1a1a; color: #ff6b35;
  border-radius: 980px;
  font-size: 12px; font-weight: 800;
  letter-spacing: 0.1em;
  margin-bottom: 14px;
  transform: rotate(-1deg);
}
.hero-text h1 {
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 0.9;
  margin-bottom: 20px;
}
.hero-text h1 .accent {
  background: linear-gradient(135deg, #1f5d3f 0%, #ff6b35 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.reviews-empty-note {
  font-size: 16px; color: #6b6b6b; font-weight: 600;
}

/* Score, inline */
.hero-score {
  display: flex; align-items: baseline; flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}
.hero-score-num {
  font-size: 46px; font-weight: 900;
  letter-spacing: -0.04em; line-height: 1;
}
.hero-score-stars {
  color: #ff6b35; font-size: 20px; letter-spacing: 3px;
}
.hero-score-base {
  font-size: 15px; color: #555; font-weight: 600;
}
.hero-score-base strong { color: #1a1a1a; font-weight: 800; }
.hero-trust {
  display: flex; flex-wrap: wrap; gap: 8px 20px;
  margin-top: 14px;
}
.hero-trust span {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; color: #555;
}
.hero-trust iconify-icon { color: #ff6b35; font-size: 15px; }

/* Rating breakdown */
.rating-breakdown {
  max-width: 980px; margin: 24px auto 0;
  padding: 0 32px 56px;
}
.breakdown-card {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(26, 26, 26, 0.12);
  border-radius: 0;
  padding: 4px 0 34px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.breakdown-header h3 {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.breakdown-header p {
  font-size: 14px;
  color: #6b6b6b;
  line-height: 1.5;
  margin-bottom: 0;
}
.breakdown-bars {
  display: flex; flex-direction: column; gap: 10px;
  align-self: center;
}
.breakdown-row {
  display: flex; align-items: center; gap: 14px;
  font-size: 13px;
  font-weight: 600;
}
.breakdown-row .label {
  flex: 0 0 60px;
  display: inline-flex; align-items: center; gap: 4px;
}
.breakdown-row .label .star { color: #ff6b35; }
.breakdown-row .bar {
  flex: 1;
  height: 12px;
  background: #f0e8d8;
  border-radius: 6px;
  overflow: hidden;
}
.breakdown-row .fill {
  height: 100%;
  background: linear-gradient(90deg, #1f5d3f 0%, #ff6b35 100%);
  border-radius: 6px;
}
.breakdown-row .count {
  flex: 0 0 60px;
  text-align: right;
  color: #6b6b6b;
  font-weight: 700;
}

/* Filters bar — real, working sort (native <select> so it's keyboard/
   screen-reader accessible without extra JS), styled to match the
   design's pill button. */
.filters-bar {
  max-width: 980px; margin: 0 auto;
  padding: 0 32px;
  display: flex; justify-content: flex-end; align-items: center;
  margin-bottom: 10px;
}
.sort-select-native {
  padding: 8px 34px 8px 16px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%231a1a1a' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 14px center;
  border: 2px solid #1a1a1a;
  border-radius: 980px;
  font: inherit;
  font-size: 13px; font-weight: 700;
  color: #1a1a1a;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}
.sort-select-native:hover { background-color: #fff5ee; }

/* Reviews list — one per row; divider + whitespace separate them
   instead of individually bordered cards. */
.reviews-section {
  max-width: 980px; margin: 0 auto;
  padding: 0 32px 64px;
}
.reviews-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
.review-card {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(26, 26, 26, 0.12);
  border-radius: 0;
  padding: 26px 0;
}
.review-card:last-child { border-bottom: none; }
.review-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 14px;
  gap: 12px;
}
.review-author {
  display: flex; align-items: center; gap: 12px;
}
.review-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1f5d3f, #ff6b35);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 900;
  font-size: 18px;
  flex-shrink: 0;
  border: 2px solid #1a1a1a;
}
.review-name {
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 4px;
}
.review-meta {
  font-size: 12px;
  color: #6b6b6b;
  display: flex; align-items: center; gap: 6px;
  flex-wrap: wrap;
}
.review-meta .verified {
  color: #1f5d3f;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.review-meta .verified iconify-icon { font-size: 14px; }
.review-stars {
  color: #ff6b35;
  font-size: 16px;
  letter-spacing: 2px;
  line-height: 1;
  align-self: center;
}
.review-body {
  font-size: 14px;
  line-height: 1.65;
  color: #333;
  margin: 0 0 14px;
}
/* .happybud-reviews-page-prefixed selectors + !important throughout this
   block are deliberate: the shortcode that renders this page commonly
   sits inside an Elementor-built page, and Elementor's own generic
   ".elementor-widget-container img { max-width:100%; height:auto; }"
   -style resets carry the same specificity as a plain ".review-photo img"
   rule — whichever stylesheet happens to print later in <head> wins the
   tie, and that isn't guaranteed to be ours. The extra wrapper class
   raises specificity and !important removes the load-order gamble
   entirely (same reasoning as the earlier Elementor lightbox override). */
.happybud-reviews-page .review-photos {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  margin: 0 0 14px !important;
}
.happybud-reviews-page .review-photo {
  display: block !important;
  width: auto !important;
  max-width: none !important;
  height: auto !important;
  border-radius: 14px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.happybud-reviews-page .review-photo:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}
.happybud-reviews-page .review-photo img {
  display: block !important;
  width: 110px !important;
  height: 110px !important;
  max-width: none !important;
  object-fit: cover !important;
  border-radius: 14px !important;
  border: 1.5px solid #1a1a1a !important;
}

/* Product link — not in the source design (its cards show no product
   context); added since the reviews hub is meaningless without it. */
.review-product-link {
  display: inline-flex; align-items: center; gap: 6px;
  margin-bottom: 14px;
  padding: 6px 14px;
  background: #fff;
  border: 1.5px solid #1a1a1a;
  border-radius: 980px;
  font-size: 12px; font-weight: 700;
  color: #1a1a1a;
  text-decoration: none;
}
.review-product-link:hover { background: #ff6b35; color: #1a1a1a; }
.review-product-link iconify-icon { font-size: 13px; color: #1f5d3f; }
.review-product-link:hover iconify-icon { color: #1a1a1a; }

.review-helpful {
  padding-top: 14px;
  border-top: 1px dashed #e0d8c8;
  display: flex; gap: 18px; align-items: center;
  font-size: 12px;
  color: #6b6b6b;
}
.review-helpful-btn {
  display: inline-flex; align-items: center; gap: 5px;
  background: none; border: none; padding: 0;
  color: #6b6b6b;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s;
}
/* WooCommerce's own woocommerce.css puts a light gray background on
   every plain <button>:hover (button:hover{background-color:#dcd7e2})
   — beats our base background:none on hover since it's the more
   specific state; override it back to transparent here. */
.review-helpful-btn:hover { color: #ff6b35; background: none; background-color: transparent; }

/* Owner reply — renders only if the store has actually replied to a
   review (a native WP comment reply via wp-admin); none currently have
   one, so this is dormant until the first reply exists. */
.owner-reply {
  margin-top: 14px;
  padding: 16px 18px;
  background: rgba(31, 93, 63, 0.06);
  border-left: 4px solid #1f5d3f;
  border-radius: 0 12px 12px 0;
}
.owner-reply .label {
  font-size: 11px; font-weight: 800;
  color: #1f5d3f;
  text-transform: uppercase; letter-spacing: 0.06em;
  margin-bottom: 6px;
  display: inline-flex; align-items: center; gap: 6px;
}
.owner-reply p {
  font-size: 13px;
  line-height: 1.55;
  color: #333;
  margin: 0;
}

/* Load more */
.load-more {
  display: flex; justify-content: center;
  margin-top: 10px;
}
.load-more button {
  padding: 16px 32px;
  background: #1a1a1a;
  color: #ff6b35;
  border: none;
  border-radius: 980px;
  font-size: 14px; font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 8px;
  box-shadow: 4px 4px 0 #ff6b35;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}
.load-more button:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 #ff6b35;
}
.load-more button:disabled {
  opacity: 0.6; cursor: default;
  transform: none; box-shadow: 4px 4px 0 #ff6b35;
}

/* Responsive */
@media (max-width: 1024px) {
  .breakdown-card { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 640px) {
  .reviews-hero { padding: 36px 22px; }
  .reviews-hero::before { display: none; }
  .rating-breakdown, .filters-bar, .reviews-section { padding-left: 22px; padding-right: 22px; }
  .breakdown-card { padding: 4px 0 26px; }
  .review-card { padding: 22px 0; }

  /* Name + verified/state/time line was reading loose next to the
     avatar — tighter gaps and smaller type so it sits flush against
     the avatar's top and bottom instead of floating with extra air. */
  .review-avatar { width: 40px; height: 40px; font-size: 15px; }
  .review-author { gap: 10px; }
  .review-name { font-size: 14px; margin-bottom: 2px; }
  .review-meta { font-size: 11px; gap: 4px; row-gap: 2px; }

  .happybud-reviews-page .review-photos { gap: 8px !important; }
  .happybud-reviews-page .review-photo img { width: 76px !important; height: 76px !important; border-radius: 12px !important; }
}
