/* Delivery — Produtos: reprodução visual do fluxo VendaFácil. */
.vf-products {
  --vf-primary: #2563eb;
  --vf-border: #e5e7eb;
  --vf-muted: #6b7280;
  --vf-text: #111827;
  display: grid;
  gap: 1rem;
  max-width: 1440px;
  margin: 0 auto;
  color: var(--vf-text);
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
}

.vf-products * { box-sizing: border-box; }
.vf-products__breadcrumb { color: var(--vf-muted); font-size: .82rem; }
.vf-products__breadcrumb button {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--vf-primary);
  cursor: pointer;
  text-decoration: underline;
}
.vf-products__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
}
.vf-products__toolbar h2 { margin: 0; font-size: 1.05rem; font-weight: 700; }
.vf-products__actions { display: flex; flex-wrap: wrap; gap: .5rem; }

.vf-btn {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  padding: .42rem .72rem;
  border: 1px solid #cbd5e1;
  border-radius: .35rem;
  background: #fff;
  color: #374151;
  cursor: pointer;
  font: inherit;
  font-size: .82rem;
  font-weight: 600;
}
.vf-btn:hover { border-color: #94a3b8; background: #f8fafc; }
.vf-btn--primary { border-color: var(--vf-primary); background: var(--vf-primary); color: #fff; }
.vf-btn--primary:hover { background: #1d4ed8; border-color: #1d4ed8; }
.vf-btn--danger { border-color: #ef4444; color: #b91c1c; }
.vf-btn--link { min-height: auto; padding: 0; border: 0; color: var(--vf-primary); background: transparent; }
.vf-btn:disabled { opacity: .55; cursor: wait; }

.vf-filter-bar,
.vf-card {
  border: 1px solid var(--vf-border);
  border-radius: .65rem;
  background: var(--card-bg, #fff);
  box-shadow: 0 1px 3px rgba(15, 23, 42, .06);
}
.vf-filter-bar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(150px, 220px) auto;
  gap: .65rem;
  align-items: end;
  padding: .85rem 1rem;
}
.vf-filter-bar__buttons { display: flex; justify-content: flex-end; gap: .45rem; }

.vf-field { display: grid; gap: .35rem; min-width: 0; }
.vf-field > span,
.vf-field > label { color: #374151; font-size: .82rem; font-weight: 600; }
.vf-field small, .vf-help { color: var(--vf-muted); font-size: .76rem; line-height: 1.4; }
.vf-field input,
.vf-field select,
.vf-field textarea {
  width: 100%;
  min-height: 38px;
  padding: .5rem .65rem;
  border: 1px solid #d1d5db;
  border-radius: .38rem;
  background: var(--card-bg, #fff);
  color: var(--text, #111827);
  font: inherit;
  font-size: .86rem;
}
.vf-field textarea { min-height: 88px; resize: vertical; }
.vf-field input:focus,
.vf-field select:focus,
.vf-field textarea:focus { outline: 2px solid rgba(37, 99, 235, .18); border-color: var(--vf-primary); }

.vf-table-card { padding: 0; overflow: hidden; }
.vf-table-wrap { overflow-x: auto; }
.vf-table { width: 100%; border-collapse: collapse; font-size: .82rem; }
.vf-table th {
  padding: .7rem .75rem;
  border-bottom: 1px solid var(--vf-border);
  color: var(--vf-muted);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .045em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}
.vf-table td { padding: .55rem .75rem; border-bottom: 1px solid #edf0f3; vertical-align: middle; }
.vf-table tbody tr:hover { background: rgba(37, 99, 235, .025); }
.vf-table tbody tr:last-child td { border-bottom: 0; }
.vf-table__right { text-align: right !important; }
.vf-product-thumb {
  display: inline-grid;
  width: 40px;
  height: 40px;
  place-items: center;
  overflow: hidden;
  border: 1px solid #d1d5db;
  border-radius: .35rem;
  background: #f8fafc;
  color: #94a3b8;
}
.vf-product-thumb img { width: 100%; height: 100%; object-fit: cover; }
.vf-code { color: var(--vf-muted); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .76rem; }
.vf-badge {
  display: inline-flex;
  padding: .18rem .4rem;
  border-radius: .35rem;
  font-size: .69rem;
  font-weight: 700;
  line-height: 1.15;
}
.vf-badge--active { background: #dcfce7; color: #15803d; }
.vf-badge--inactive { background: #fee2e2; color: #b91c1c; }
.vf-badge--unavailable { background: #fef3c7; color: #b45309; }
.vf-badge--hidden { margin-left: .25rem; background: #e5e7eb; color: #4b5563; }
.vf-products .hidden { display: none !important; }
.vf-empty { padding: 3rem 1rem !important; color: var(--vf-muted); text-align: center; }

.vf-product-editor { max-width: 1060px; }
.vf-product-editor--edit { max-width: 1440px; }
.vf-product-form-card { padding: 1.5rem; }
.vf-product-form-card h2 { margin: 0 0 1.35rem; font-size: 1.05rem; }
.vf-editor-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: .8rem;
  margin-bottom: 1.2rem;
}
.vf-editor-head h2 { margin: 0 0 .25rem; }
.vf-form-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1rem;
}
.vf-col-12 { grid-column: span 12; }
.vf-col-8 { grid-column: span 8; }
.vf-col-6 { grid-column: span 6; }
.vf-col-4 { grid-column: span 4; }
.vf-col-3 { grid-column: span 3; }
.vf-photo-preview {
  display: none;
  max-width: 160px;
  max-height: 160px;
  margin: .55rem 0;
  border: 1px solid #d1d5db;
  border-radius: .4rem;
  object-fit: cover;
}
.vf-photo-preview.is-visible { display: block; }
.vf-choice-stack { display: grid; gap: .5rem; }
.vf-check {
  display: flex;
  gap: .5rem;
  align-items: flex-start;
  color: #374151;
  font-size: .84rem;
}
.vf-check input { width: 16px; height: 16px; margin-top: .12rem; accent-color: var(--vf-primary); }
.vf-fieldset {
  margin: 0;
  padding: 1rem;
  border: 1px solid var(--vf-border);
  border-radius: .5rem;
  background: var(--card-bg, #fff);
}
.vf-fieldset legend { padding: 0 .3rem; font-size: .9rem; font-weight: 700; }
.vf-ingredients-list { display: grid; gap: .5rem; margin-top: .45rem; }
.vf-ingredient-row {
  display: grid;
  grid-template-columns: 48px minmax(180px, 1fr) minmax(180px, .7fr) auto;
  gap: .55rem;
  align-items: center;
  padding: .55rem;
  border: 1px solid var(--vf-border);
  border-radius: .45rem;
  background: #f8fafc;
}
.vf-ingredient-thumb {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  overflow: hidden;
  border: 1px solid #d1d5db;
  border-radius: .35rem;
  background: #fff;
  color: #9ca3af;
}
.vf-ingredient-thumb img { width: 100%; height: 100%; object-fit: cover; }
.vf-paid-options { display: grid; gap: .75rem; }
.vf-paid-options.is-collapsed > .vf-paid-options__content { display: none; }
.vf-paid-options:not(.is-collapsed) > .vf-paid-options__intro { display: none; }
.vf-paid-options__top { display: flex; align-items: center; justify-content: space-between; gap: .7rem; }
.vf-additions-list {
  display: grid;
  gap: .45rem;
  max-height: 12rem;
  overflow-y: auto;
  padding: .75rem;
  border: 1px solid var(--vf-border);
  border-radius: .45rem;
  background: #f8fafc;
}
.vf-addition-option { display: flex; gap: .5rem; align-items: center; font-size: .83rem; }
.vf-addition-option img { width: 28px; height: 28px; border: 1px solid #d1d5db; border-radius: .3rem; object-fit: cover; opacity: .85; }
.vf-form-actions { display: flex; flex-wrap: wrap; gap: .5rem; padding-top: .25rem; }
.vf-delete-zone { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--vf-border); }

@media (max-width: 760px) {
  .vf-filter-bar { grid-template-columns: 1fr; }
  .vf-filter-bar__buttons { justify-content: flex-start; }
  .vf-col-8, .vf-col-6, .vf-col-4, .vf-col-3 { grid-column: span 12; }
  .vf-product-form-card { padding: 1rem; }
  .vf-ingredient-row { grid-template-columns: 48px 1fr auto; }
  .vf-ingredient-row .vf-ingredient-file { grid-column: 2 / -1; }
}
