/* HuntBee product-page hybrid sections: compact specifications + review preview. */

.hb-theme #product-specification {
  padding-bottom: 22px;
}

.hb-theme .hb-specification-toggle,
.hb-theme .hb-review-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 9px 14px;
  border: 1px solid #dcd8cf;
  border-radius: 7px;
  background: #faf9f5;
  color: #202933;
  font-weight: 800;
  line-height: 1.2;
  cursor: pointer;
}

.hb-theme .hb-specification-toggle {
  margin: -4px 0 14px;
}

.hb-theme .hb-specification-toggle:hover,
.hb-theme .hb-specification-toggle:focus,
.hb-theme .hb-review-toggle:hover,
.hb-theme .hb-review-toggle:focus {
  border-color: #cfc7b7;
  background: #fffaf0;
  color: #111820;
}

.hb-theme .hb-specification-toggle i,
.hb-theme .hb-review-toggle i {
  margin: 0 !important;
  color: #d99a00;
  font-size: 12px;
}

.hb-theme .hb-specification-toggle.is-open i {
  transform: rotate(180deg);
}

.hb-theme .hb-specification-content {
  margin-top: 2px;
}

/* HuntBee software products are single-license purchases in normal storefront use.
   Keep the OpenCart quantity field in the DOM for cart/minimum logic, but hide the
   shopper-facing +/- control and let Add to Cart use the full row width. */
.hb-theme .hb-product-qty-cart {
  grid-template-columns: minmax(0, 1fr) !important;
}

.hb-theme .hb-product-qty {
  display: none !important;
}

/* Reviews */
.hb-theme #product-reviews {
  overflow: hidden;
}

.hb-theme #product-reviews > .hb-product-section-heading {
  margin-bottom: 14px;
}

.hb-theme .hb-review-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 0 20px;
  padding: 18px 20px;
  border: 1px solid #e1ddd4;
  border-radius: 10px;
  background: linear-gradient(135deg, #faf8f2 0%, #fff 100%);
}

.hb-theme .hb-review-summary-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}

.hb-theme .hb-review-summary-kicker {
  color: #178ea2;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.hb-theme .hb-review-summary-copy strong {
  color: #111820;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.3;
}

.hb-theme .hb-review-summary-count {
  color: #6e7881;
  font-size: 12.5px;
}

.hb-theme .hb-review-summary-score {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
  color: #6e7881;
  font-size: 12px;
}

.hb-theme .hb-review-summary-score .hb-product-stars {
  display: flex;
  gap: 3px;
  color: #e3a300;
  font-size: 16px;
}

.hb-theme .hb-review-summary-score .hb-product-stars i {
  margin: 0 !important;
}

.hb-theme .hb-review-list {
  display: grid;
  gap: 14px;
}

.hb-theme .hb-review-card,
.hb-theme #review .review-list,
.hb-theme #review .review-item {
  position: relative;
  padding: 18px 20px 19px;
  overflow: hidden;
  border: 1px solid #ded9cf;
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 5px 16px rgba(17,24,32,.035);
}

.hb-theme .hb-review-card:before,
.hb-theme #review .review-list:before,
.hb-theme #review .review-item:before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 3px;
  background: #f6b51b;
}

.hb-theme .hb-review-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}

.hb-theme .hb-review-card-header strong {
  color: #111820;
  font-weight: 800;
}

.hb-theme .hb-review-card-header span {
  color: #89929a;
  white-space: nowrap;
}

.hb-theme .hb-review-card-rating {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-bottom: 10px;
  color: #e0a100;
}

.hb-theme .hb-review-card-rating i {
  margin: 0 !important;
}

.hb-theme .hb-review-card-text {
  color: #4e5963;
}

.hb-theme .hb-review-card-text p:last-child,
.hb-theme .hb-review-card-text:last-child {
  margin-bottom: 0;
}

.hb-theme .hb-review-toggle-wrap {
  display: flex;
  justify-content: center;
  margin-top: 16px;
}

.hb-theme .hb-review-toggle {
  min-width: 170px;
  background: #fff;
}

.hb-theme .hb-review-pagination-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #ece8df;
}

.hb-theme .hb-review-pagination-row .pagination {
  margin: 0;
}

.hb-theme .hb-review-results {
  color: #7f8991;
}

.hb-theme .hb-review-empty {
  margin: 0;
  padding: 15px 16px;
  border: 1px solid #e6e2d8;
  border-radius: 8px;
  background: #fbfaf6;
  color: #68727c;
}

/* Legacy OpenCart review markup fallback. */
.hb-theme #product-reviews #review > table {
  margin-bottom: 12px;
  overflow: hidden;
  border: 1px solid #e3ded4;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 5px 16px rgba(17,24,32,.035);
}

.hb-theme #product-reviews #review > table > tbody > tr:first-child > td {
  background: #faf8f3;
}

.hb-theme #product-reviews #review > table td {
  padding: 12px 14px;
  border-color: #ece8df;
  color: #4e5963;
}

.hb-theme #product-reviews #review > table strong {
  color: #111820;
}

.hb-theme #product-reviews #review .fa-star,
.hb-theme #product-reviews #review .fa-star-o,
.hb-theme #product-reviews #review .fa-solid.fa-star,
.hb-theme #product-reviews #review .fa-regular.fa-star {
  color: #e0a100;
}

/* Review form */
.hb-theme .hb-review-form {
  margin-top: 30px;
  padding: 26px 28px;
  border: 1px solid #ded9cf;
  border-radius: 11px;
  background: #faf9f5;
}

.hb-theme .hb-review-form h3 {
  margin: 0 0 20px;
  padding-bottom: 13px;
  border-bottom: 1px solid #e7e2d9;
}

.hb-theme .hb-review-form .form-group {
  margin-left: 0;
  margin-right: 0;
  margin-bottom: 20px;
}

.hb-theme .hb-review-form .form-group > .col-sm-12 {
  float: none;
  width: 100%;
  padding: 0;
}

.hb-theme .hb-review-form .control-label {
  display: block;
  margin-bottom: 8px;
  color: #26313b;
  text-align: left;
}

.hb-theme .hb-review-form .form-control {
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #d6d1c7;
  border-radius: 7px;
  background: #fff;
  box-shadow: none;
  transition: border-color .16s ease, box-shadow .16s ease;
}

.hb-theme .hb-review-form .form-control:focus {
  border-color: #8bbec8;
  box-shadow: 0 0 0 3px rgba(42,167,184,.10);
}

.hb-theme .hb-review-form textarea.form-control {
  min-height: 140px;
  resize: vertical;
}

.hb-theme .hb-review-form .help-block {
  margin-top: 7px;
}

.hb-theme .hb-review-form .buttons {
  margin-top: 22px;
}

.hb-theme .hb-review-form .buttons .pull-right {
  float: none !important;
  display: flex;
  justify-content: flex-end;
}

.hb-theme .hb-review-form #button-review {
  min-width: 140px;
  min-height: 44px;
  border-radius: 7px;
}

/* Accessible star rating control. Inputs remain standard OpenCart rating radios. */
.hb-theme .hb-star-rating-input {
  display: inline-flex;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  padding: 5px 0 3px;
}

.hb-theme .hb-star-rating-input input[type="radio"] {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.hb-theme .hb-star-rating-input label {
  margin: 0;
  padding: 2px;
  color: #c8cdd2;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transition: color .15s ease, transform .15s ease;
}

.hb-theme .hb-star-rating-input label i {
  margin: 0 !important;
}

.hb-theme .hb-star-rating-input label:hover,
.hb-theme .hb-star-rating-input label:hover ~ label,
.hb-theme .hb-star-rating-input input[type="radio"]:checked ~ label {
  color: #e0a100;
}

.hb-theme .hb-star-rating-input label:hover {
  transform: translateY(-1px) scale(1.06);
}

.hb-theme .hb-star-rating-input input[type="radio"]:focus + label {
  outline: 2px solid rgba(42,167,184,.35);
  outline-offset: 3px;
  border-radius: 3px;
}

.hb-theme .hb-rating-help {
  display: block;
  margin-top: 6px;
  color: #78828b;
  font-size: 12px;
}

/* Captcha spacing inside review form */
.hb-theme .hb-review-form .g-recaptcha,
.hb-theme .hb-review-form iframe[src*="recaptcha"] {
  max-width: 100%;
}

@media (max-width: 767px) {
  .hb-theme .hb-review-summary {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
  }

  .hb-theme .hb-review-summary-score {
    align-items: flex-start;
  }

  .hb-theme .hb-review-card-header,
  .hb-theme .hb-review-pagination-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .hb-theme .hb-review-card-header span {
    white-space: normal;
  }

  .hb-theme .hb-specification-toggle,
  .hb-theme .hb-review-toggle {
    width: 100%;
  }

  .hb-theme .hb-review-form {
    padding: 18px;
  }

  .hb-theme .hb-review-form .buttons .pull-right,
  .hb-theme .hb-review-form #button-review {
    width: 100%;
  }
}


/* Hard fallback for OpenCart's default AJAX review table markup.
   This guarantees visually separate review cards even if JS conversion is skipped. */
.hb-theme #product-reviews #review > table.table {
  display: block !important;
  width: 100% !important;
  margin: 0 0 14px !important;
  border: 1px solid #e1ddd3 !important;
  border-radius: 12px !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  overflow: hidden !important;
  background: #fff !important;
  box-shadow: 0 5px 18px rgba(17, 24, 32, .045) !important;
}

.hb-theme #product-reviews #review > table.table > tbody {
  display: block !important;
  width: 100% !important;
}

.hb-theme #product-reviews #review > table.table > tbody > tr {
  display: flex !important;
  width: 100% !important;
}

.hb-theme #product-reviews #review > table.table > tbody > tr:first-child {
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
  padding: 16px 18px 0 !important;
  background: #fff !important;
}

.hb-theme #product-reviews #review > table.table > tbody > tr:first-child > td {
  display: block !important;
  width: auto !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: #111820 !important;
}

.hb-theme #product-reviews #review > table.table > tbody > tr:first-child > td:first-child {
  font-weight: 800 !important;
}

.hb-theme #product-reviews #review > table.table > tbody > tr:first-child > td:last-child {
  color: #7d8790 !important;
  font-size: 12px !important;
}

.hb-theme #product-reviews #review > table.table > tbody > tr:nth-child(2) {
  display: block !important;
}

.hb-theme #product-reviews #review > table.table > tbody > tr:nth-child(2) > td {
  display: block !important;
  width: 100% !important;
  padding: 11px 18px 17px !important;
  border: 0 !important;
  background: transparent !important;
  color: #4e5963 !important;
  font-size: 14px !important;
  line-height: 1.68 !important;
}

.hb-theme #product-reviews #review > table.table > tbody > tr:nth-child(2) > td p {
  margin: 0 0 10px !important;
}

.hb-theme #product-reviews #review > table.table .fa-stack {
  width: 18px !important;
  height: 18px !important;
  margin-right: 2px !important;
  color: #e0a100 !important;
  line-height: 18px !important;
}

.hb-theme #product-reviews #review > table.table .fa-stack i {
  color: #e0a100 !important;
  font-size: 15px !important;
  line-height: 18px !important;
}

@media (max-width: 767px) {
  .hb-theme #product-reviews #review > table.table > tbody > tr:first-child {
    align-items: flex-start !important;
    flex-direction: column !important;
    gap: 3px !important;
  }
}
