/* ===== VELORIA PLUGIN — CSS ===== */

/* ── Compare Bar ─────────────────────────────────────────── */
.compare-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 3px solid var(--color-primary, #2D1B69);
  padding: 16px 0;
  z-index: 300;
  box-shadow: 0 -4px 24px rgba(45,27,105,0.15);
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.compare-bar.is-visible { transform: translateY(0); }

.compare-bar__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.compare-bar__title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-text, #1C1C2E);
  white-space: nowrap;
}

.compare-bar__products {
  display: flex;
  gap: 0.75rem;
  flex: 1;
  min-width: 0;
}

.compare-product-slot {
  width: 72px;
  height: 72px;
  border: 2px dashed var(--color-border, #E4DDEF);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--color-text-muted, #6E6E82);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--color-surface-alt, #F5F2FA);
}

.compare-product-slot img { width: 100%; height: 100%; object-fit: cover; }

.compare-product-slot__remove {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #E74C3C;
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}

.compare-bar__actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

/* ── Wishlist Button States ───────────────────────────────── */
[data-wishlist-toggle].is-active svg {
  fill: currentColor;
  color: var(--color-secondary, #C4956A);
}

/* ── Compare Button States ───────────────────────────────── */
[data-compare-toggle].is-active {
  background: var(--color-primary, #2D1B69);
  color: #fff;
  border-color: var(--color-primary, #2D1B69);
}

/* ── Compare Table ───────────────────────────────────────── */
.compare-table-wrap {
  margin-top: 2rem;
}

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

.compare-table tbody tr:nth-child(even) td {
  background: var(--color-surface-alt, #F5F2FA);
}
