/* Floating compare bar */
.compare-fab {
  position: fixed;
  right: 16px;
  bottom: 16px;
  background: #fff;
  border-radius: 999px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: all .2s ease-in-out;
  z-index: 1050;
  border: 1px solid rgba(0, 0, 0, .06);
}

.compare-fab.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.compare-fab .compare-fab-inner {
  display: flex;
  align-items: center;
  gap: 8px;
}

.compare-fab .count {
  display: inline-flex;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-forest, #1f3d2b);
  color: #fff;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}

.compare-fab .label {
  font-weight: 600;
}

.compare-fab .compare-fab-actions .btn {
  padding: 4px 10px;
}

.compare-table th,
.compare-table td {
  vertical-align: middle;
}

/* Keep action buttons above any overlay */
.product-card .product-card-actions,
.product-card .product-card-actions .action-btn {
  position: relative;
  z-index: 6;
}

/* Optional visual feedback */
.action-btn.btn-compare.is-compared {
  outline: 2px solid var(--color-forest);
  border-radius: 8px;
}

.action-btn.btn-compare.is-disabled {
  opacity: .5;
  cursor: not-allowed;
}

/* Floating bar (if you didn't add compare.css before) */
.compare-fab {
  position: fixed;
  right: 16px;
  bottom: 16px;
  background: #fff;
  border-radius: 999px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(0, 0, 0, .06);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .08);
  z-index: 1050;
}

.compare-fab .count {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-forest, #1f3d2b);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.compare-fab .compare-fab-actions .btn {
  padding: 4px 10px;
}


/* Always clickable above overlays */
.product-card .product-card-actions {
  position: relative;
  z-index: 6;
}

.product-card .product-card-actions .action-btn {
  position: relative;
  z-index: 7;
  pointer-events: auto;
}

/* Optional visual feedback */
.action-btn.btn-compare.is-compared {
  outline: 2px solid var(--color-forest);
  border-radius: 8px;
}

.action-btn.btn-compare.is-disabled {
  opacity: .5;
  cursor: not-allowed;
}

/* Floating bar (if you don't already have compare.css) */
.compare-fab {
  position: fixed;
  right: 16px;
  bottom: 16px;
  background: #fff;
  border-radius: 999px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(0, 0, 0, .06);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .08);
  z-index: 1050;
}

.compare-fab .count {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-forest, #1f3d2b);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.compare-fab .compare-fab-actions .btn {
  padding: 4px 10px;
}