/* MercadoFácil - correção lista de produtos + categorias loja */

.products-grid.mf-products-list-mode {
  display: block !important;
  grid-template-columns: none !important;
  width: 100% !important;
}

.mf-products-list-toolbar {
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.mf-products-list-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.mf-products-list-actions select {
  min-width: 240px;
}

.mf-products-table-wrap {
  width: 100%;
  overflow-x: auto;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 16px;
}

.mf-products-table {
  width: 100%;
  min-width: 1180px;
  border-collapse: collapse;
  font-size: 13px;
}

.mf-products-table th,
.mf-products-table td {
  padding: 12px 10px;
  border-bottom: 1px solid #f1f1f1;
  vertical-align: middle;
}

.mf-products-table th {
  background: #fafafa;
  text-align: left;
  font-size: 12px;
  color: var(--text-muted, #777);
  font-weight: 900;
}

.mf-products-table tr:hover td {
  background: #fffaf8;
}

.mf-col-check {
  width: 36px;
  text-align: center;
}

.mf-col-image {
  width: 68px;
}

.mf-col-product {
  min-width: 280px;
}

.mf-product-title {
  font-weight: 900;
  color: var(--text, #111827);
}

.mf-product-desc {
  font-size: 12px;
  color: var(--text-muted, #777);
  margin-top: 3px;
  max-width: 420px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mf-list-thumb,
.mf-list-thumb-placeholder {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: contain;
  background: #f6f6f8;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mf-money {
  font-weight: 900;
  white-space: nowrap;
}

.mf-promo-price {
  color: #ff4b2b;
  font-weight: 900;
}

.mf-status-active {
  color: #059669;
  font-weight: 900;
}

.mf-status-inactive {
  color: #dc2626;
  font-weight: 900;
}

.mf-col-actions {
  width: 150px;
  text-align: right;
  white-space: nowrap;
}

.mf-col-actions .btn {
  margin-left: 4px;
}

/* Loja: categorias roláveis horizontalmente */
.ph-cats {
  display: flex !important;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0 16px 10px !important;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.ph-cats::-webkit-scrollbar {
  height: 5px;
}

.ph-cats::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,.18);
  border-radius: 999px;
}

.ph-cat {
  flex: 0 0 auto;
  min-width: 68px;
  scroll-snap-align: start;
}

.mf-cats-hint {
  padding: 0 16px 6px;
  font-size: 11px;
  color: var(--text-muted, #777);
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
