.rate > label:before,
.rate > label:after {
  content: none !important;
  display: none !important;
}

.rate > input {
  display: none;
}

.rate {
  display: inline-flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  border: 0;
}

.rate > label {
  cursor: pointer;
  margin: 0;
  padding: 0 0.1rem;
}

.rate > label i {
  font-size: 1.2rem;
}

.rating-star i {
  color: #ffb503 !important;
}

ul.thumb {
  margin: 0 auto;
  padding: 0;
  float: left;
}

ul.thumb li {
  list-style: none;
  margin: 10px;
}

ul.thumb li img {
  width: 80px;
  height: 80px;
  border: 1px solid grey;
}

.card-product-grid .title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6em;
}

.specs-table th {
  width: 40%;
  background: #f8f9fa;
}

.page-jump {
  position: relative;
}

.page-jump-toggle {
  min-width: 2.5rem;
}

.page-jump-popover {
  display: none;
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%);
  z-index: 20;
  width: 180px;
  padding: 10px;
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.page-jump-popover.is-open {
  display: block;
}

.page-jump-popover::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 100%;
  margin-left: -6px;
  border: 6px solid transparent;
  border-top-color: #fff;
}

.page-jump-label {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  color: #6c757d;
}

.page-jump-row {
  display: flex;
  gap: 6px;
}

.page-jump-row input {
  min-width: 0;
}

/* Floating shopping assistant */
.pc-assistant-fab {
  position: fixed;
  right: 22px;
  bottom: 96px;
  z-index: 1050;
  width: 84px;
  height: 84px;
  border: 0;
  border-radius: 50%;
  background: #198754;
  color: #fff;
  box-shadow: 0 12px 32px rgba(25, 135, 84, 0.42);
  cursor: pointer;
  font-size: 1.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.18s ease, background 0.18s ease;
}

.pc-assistant-fab:hover,
.pc-assistant-fab.is-open {
  background: #157347;
  transform: scale(1.04);
}

.pc-assistant-panel {
  position: fixed;
  right: 22px;
  bottom: 198px;
  z-index: 1050;
  width: min(400px, calc(100vw - 24px));
  max-height: min(72vh, 640px);
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.22);
  overflow: hidden;
}

.pc-assistant-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  background: #0f766e;
  color: #fff;
}

.pc-assistant-subtitle {
  font-size: 12px;
  opacity: 0.9;
}

.pc-assistant-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pc-assistant-close {
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  padding: 0 4px;
  cursor: pointer;
}

.pc-assistant-log {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 12px;
  background: #f8fafc;
  min-height: 160px;
}

.pc-assistant-bubble {
  margin-bottom: 8px;
  padding: 8px 10px;
  border-radius: 12px;
  font-size: 0.92rem;
  white-space: pre-wrap;
  word-break: break-word;
}

.pc-assistant-bubble-user {
  background: #dbeafe;
  margin-left: 18%;
}

.pc-assistant-bubble-bot,
.pc-assistant-bubble-welcome {
  background: #fff;
  border: 1px solid #e5e7eb;
  margin-right: 12%;
}

.pc-assistant-results {
  max-height: 38%;
  overflow-y: auto;
  padding: 0 12px 8px;
  border-top: 1px solid #eef2f7;
  background: #fff;
}

.pc-assistant-section-title {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
  margin: 8px 0 4px;
  font-weight: 700;
}

.pc-assistant-build {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 8px;
  margin-bottom: 8px;
  background: #fcfcfd;
}

.pc-assistant-build-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
}

.pc-assistant-build-title {
  font-weight: 700;
  color: #0f172a;
}

.pc-assistant-build-score {
  flex: 0 0 auto;
  font-size: 0.78rem;
  font-weight: 700;
  color: #0f766e;
  background: #ecfdf5;
  border: 1px solid #99f6e4;
  border-radius: 999px;
  padding: 2px 8px;
  white-space: nowrap;
}

.pc-assistant-build-summary {
  font-size: 0.78rem;
  color: #64748b;
  margin: 4px 0 6px;
}

.pc-assistant-build table {
  font-size: 0.78rem;
  margin-bottom: 0;
}

.pc-assistant-note {
  font-size: 0.78rem;
  color: #64748b;
  margin: 0;
}

.pc-assistant-form {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid #e5e7eb;
  background: #fff;
}

.pc-assistant-form input {
  flex: 1 1 auto;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 0.92rem;
}

.pc-assistant-status {
  margin: 0;
  padding: 0 12px 10px;
  font-size: 0.78rem;
  color: #64748b;
  min-height: 1.2em;
}

@media (max-width: 575.98px) {
  .pc-assistant-fab {
    right: 14px;
    bottom: 104px;
    width: 78px;
    height: 78px;
    font-size: 1.8rem;
  }

  .pc-assistant-panel {
    right: 8px;
    left: 8px;
    width: auto;
    bottom: 198px;
    max-height: 78vh;
  }
}
