/* ── Variant Modal ── */
.vm-trigger {
  width: 100%;
  padding: 0.6rem;
  background: var(--black);
  color: white;
  border: 2px solid var(--black);
  border-radius: 4px;
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  font-weight: 700;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.15s;
  box-shadow: 3px 3px 0 rgba(0,0,0,0.3);
}
.vm-trigger:hover { background: #333; }

.vm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: vm-fade-in 0.2s ease;
}
@keyframes vm-fade-in { from { opacity: 0; } to { opacity: 1; } }

.vm-card {
  background: var(--white);
  border: 3px solid var(--black);
  box-shadow: 8px 8px 0 var(--black);
  width: 100%;
  max-width: 520px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: vm-slide-up 0.25s ease;
}
@keyframes vm-slide-up { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.vm-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  border-bottom: 2px solid var(--black);
  background: var(--cream);
}
.vm-header-img {
  width: 70px;
  height: 90px;
  object-fit: contain;
  background: #f5f5f5;
  border-radius: 4px;
  flex-shrink: 0;
}
.vm-header-info { flex: 1; min-width: 0; }
.vm-header-title { font-weight: 700; font-size: 0.95rem; line-height: 1.3; }
.vm-header-sub { font-family: 'Space Mono', monospace; font-size: 0.65rem; color: #888; margin-top: 0.2rem; }
.vm-close {
  width: 32px;
  height: 32px;
  border: 2px solid var(--black);
  background: var(--white);
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.12s;
}
.vm-close:hover { background: #f0f0f0; }

.vm-search {
  margin: 0.75rem 1.25rem;
  padding: 0.5rem 0.75rem;
  border: 2px solid #ddd;
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  width: calc(100% - 2.5rem);
  transition: border-color 0.12s;
}
.vm-search:focus { border-color: var(--purple); outline: none; }

.vm-list {
  overflow-y: auto;
  flex: 1;
  padding: 0.5rem 0;
}
.vm-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 1.25rem;
  border-bottom: 1px solid #eee;
  transition: background 0.1s;
}
.vm-row:hover { background: rgba(168,85,247,0.04); }
.vm-row-info { flex: 1; min-width: 0; overflow: hidden; }
.vm-row-label {
  font-weight: 700;
  font-size: 0.8rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.vm-row-price {
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  font-weight: 700;
}
.vm-row-original {
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  color: #999;
  text-decoration: line-through;
  margin-left: 0.35rem;
}
.vm-row .cart-widget { flex-shrink: 0; width: auto !important; }
.vm-row .atc-brutal { font-size: 0.6rem; padding: 0.4rem 0.6rem; white-space: nowrap; display: inline-block !important; width: auto !important; }
.vm-row .cart-qty-controls { width: auto !important; }
.vm-row .cart-qty-btn { width: 26px; height: 26px; font-size: 0.8rem; }
.vm-row .cart-qty-value { font-size: 0.7rem; min-width: 18px; }

@media (max-width: 600px) {
  .vm-card { max-height: 90vh; max-width: 100%; border-radius: 0; }
  .vm-overlay { padding: 0; align-items: flex-end; }
  .vm-card { animation: vm-sheet-up 0.25s ease; }
  @keyframes vm-sheet-up { from { transform: translateY(100%); } to { transform: translateY(0); } }
  .vm-header { padding: 1rem; }
  .vm-row { padding: 0.5rem 1rem; }
  .vm-search { margin: 0.5rem 1rem; width: calc(100% - 2rem); }
}
