/* Malinco Compare v1.0.0 */

/* ── Buton „Compară" activ ─────────────────────────────────────────────────*/
.btn-cmp.cmp-added { border-color: #c8102e; color: #c8102e; background: #fff5f6; }

/* ── Bara plutitoare ───────────────────────────────────────────────────────*/
#mlcmp-bar {
  position: fixed;
  bottom: 16px;
  right: 16px;
  z-index: 9998;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #111827;
  color: #fff;
  border-radius: 12px;
  padding: 10px 14px;
  box-shadow: 0 6px 24px rgba(0,0,0,.25);
  font-size: 13px;
}
#mlcmp-bar .mlcmp-bar-cnt { font-weight: 600; }
#mlcmp-bar .mlcmp-bar-go {
  background: #c8102e;
  color: #fff;
  border-radius: 8px;
  padding: 8px 14px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
#mlcmp-bar .mlcmp-bar-go:hover { background: #a50d26; }
#mlcmp-bar .mlcmp-bar-x {
  background: none;
  border: none;
  color: #9ca3af;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 4px;
}
#mlcmp-bar .mlcmp-bar-x:hover { color: #fff; }
@media (max-width: 640px) {
  #mlcmp-bar { left: 16px; right: 16px; justify-content: space-between; bottom: 12px; }
}

/* ── Toast ─────────────────────────────────────────────────────────────────*/
.mlcmp-toast {
  position: fixed;
  bottom: 76px;
  right: 16px;
  z-index: 9999;
  background: #111827;
  color: #fff;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 13px;
  box-shadow: 0 6px 24px rgba(0,0,0,.25);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .25s, transform .25s;
  max-width: 320px;
}
.mlcmp-toast.show { opacity: 1; transform: translateY(0); }

/* ── Pagina de comparare ───────────────────────────────────────────────────*/
.mlcompare-page { padding: 8px 0 24px; }
.mlcmp-loading, .mlcmp-empty { color: #6b7280; font-size: 14px; line-height: 1.7; }
.mlcmp-empty p { margin: 0 0 8px; }

.mlcmp-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.mlcmp-table {
  border-collapse: collapse;
  width: 100%;
  min-width: 640px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  font-size: 13px;
}
.mlcmp-table th, .mlcmp-table td {
  border: 1px solid #e5e7eb;
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  min-width: 160px;
}
.mlcmp-table thead td { vertical-align: bottom; }
.mlcmp-table th {
  background: #f9fafb;
  font-weight: 600;
  color: #374151;
  width: 140px;
  min-width: 120px;
}
.mlcmp-table tbody tr:nth-child(even) td { background: #fafafa; }

.mlcmp-prod { position: relative; }
.mlcmp-prod a { text-decoration: none; color: inherit; display: block; }
.mlcmp-prod img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  display: block;
  margin-bottom: 8px;
  background: #fafafa;
  border-radius: 8px;
}
.mlcmp-name { font-weight: 600; line-height: 1.4; display: block; }
.mlcmp-rm {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 24px;
  height: 24px;
  border: 1px solid #e5e7eb;
  border-radius: 50%;
  background: #fff;
  color: #6b7280;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}
.mlcmp-rm:hover { color: #c8102e; border-color: #c8102e; }

.mlcmp-stock.instock    { color: #059669; font-weight: 600; }
.mlcmp-stock.backorder  { color: #d97706; font-weight: 600; }
.mlcmp-stock.outofstock { color: #ef4444; font-weight: 600; }

.mlcmp-atc {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #c8102e;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 9px 16px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
}
.mlcmp-atc:hover { background: #a50d26; }
.mlcmp-atc--ghost { background: #fff; color: #374151; border: 1.5px solid #d1d5db; }
.mlcmp-atc--ghost:hover { background: #f3f4f6; color: #111827; }
