.prod-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
}

.search-wrap {
  position: relative;
  flex: 1;
  min-width: 240px;
}

.search-wrap svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
}

.search-wrap .mp-in { padding-left: 42px; }

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  cursor: pointer;
  font-family: var(--font-body);
  border: 1.5px solid var(--mp-line-strong);
  background: transparent;
  color: var(--mp-ink);
  padding: 6px 14px;
  font-size: 12.5px;
  font-weight: 600;
  border-radius: 999px;
  transition: all 160ms var(--ease-soft);
}

.chip.is-active {
  border-color: var(--mp-ink);
  background: var(--mp-ink);
  color: #fff;
}

.table {
  border: 1px solid var(--mp-line);
  border-radius: 16px;
  overflow: hidden;
}

.row-grid {
  display: grid;
  grid-template-columns: minmax(200px, 1fr) 120px 110px 152px 108px;
  gap: 8px;
  align-items: center;
}

.table-head {
  padding: 12px 18px;
  background: var(--mp-paper-warm);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mp-ink-muted);
}

.table-head .ta-r { text-align: right; }
.table-head .ta-c { text-align: center; }

.prow {
  padding: 13px 18px;
  border-top: 1px solid var(--mp-line);
  background: var(--mp-paper);
  transition: background 160ms var(--ease-soft);
}

.prow.is-marked {
  background: var(--mp-wash-mint);
  box-shadow: inset 3px 0 0 var(--mp-mint);
}

.prod-cell {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.prod-thumb {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 12px;
  background: var(--mp-wash-mint);
  border: 1px solid var(--mp-line);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.prod-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
}

/* Wash variantes por categoria (aplicado inline via data-wash) */
.prod-thumb[data-wash="mint"]     { background: var(--mp-wash-mint); }
.prod-thumb[data-wash="blue"]     { background: var(--mp-wash-blue); }
.prod-thumb[data-wash="butter"]   { background: var(--mp-wash-butter); }
.prod-thumb[data-wash="cream"]    { background: var(--mp-wash-cream); }
.prod-thumb[data-wash="peach"]    { background: var(--mp-wash-peach); }
.prod-thumb[data-wash="lavender"] { background: var(--mp-wash-lavender); }

.prod-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.prod-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  color: var(--mp-ink);
  line-height: 1.2;
}

.prod-cat {
  font-size: 12px;
  color: var(--mp-ink-muted);
  display: block;
  margin-top: 2px;
}

.prod-sku {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--mp-ink-soft);
  letter-spacing: 0.02em;
}

.prod-price {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  color: var(--mp-ink);
  text-align: right;
}

.prod-subtotal {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  text-align: right;
}

.prod-subtotal.is-empty { color: var(--mp-ink-muted); }
.prod-subtotal.is-filled { color: var(--mp-ink); }

.qty {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--mp-line-strong);
  border-radius: 999px;
  background: var(--mp-paper);
  overflow: hidden;
}

.qty button {
  border: none;
  background: transparent;
  width: 32px;
  height: 34px;
  color: var(--mp-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
}

.qty input {
  width: 60px;
  height: 34px;
  border: none;
  outline: none;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  color: var(--mp-ink);
  background: transparent;
  -moz-appearance: textfield;
}

.qty input::-webkit-outer-spin-button,
.qty input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.no-results {
  padding: 40px 18px;
  text-align: center;
  color: var(--mp-ink-muted);
  font-size: 14px;
}

.products-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 64px 18px;
  background: var(--mp-paper);
}

.products-loading-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--mp-wash-mint);
  border-top-color: var(--mp-teal);
  border-radius: 50%;
  animation: products-loading-spin 0.8s linear infinite;
}

.products-loading-text {
  margin: 0;
  font-size: 14px;
  color: var(--mp-ink-muted);
  letter-spacing: 0.02em;
}

@keyframes products-loading-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 720px) {
  .row-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .table-head { display: none; }
  .prow { padding: 16px 18px; }
  .prod-price,
  .prod-subtotal { text-align: left; }
  .qty { justify-self: flex-start; }
}
