.products-dashboard {
  display: grid;
  gap: 16px;
  margin-bottom: 8px;
}

.products-dashboard__metrics {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 12px;
}

@media (max-width: 1200px) {
  .products-dashboard__metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .products-dashboard__metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.products-dashboard__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
}

@media (max-width: 800px) {
  .products-dashboard__row {
    grid-template-columns: 1fr;
  }
}

.products-dashboard__recent,
.products-dashboard__recommend {
  display: grid;
  gap: 8px;
  align-content: start;

  h4 {
    margin: 0;
    font-size: var(--font-size-md, 0.9375rem);
    font-weight: var(--font-weight-bold, 700);
  }

  p {
    margin: 0;
    color: var(--text-secondary, #5f6e6a);
    font-size: var(--font-size-base, 0.875rem);
  }
}

.products-dashboard__recent ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
}

.products-dashboard__recent button {
  all: unset;
  cursor: pointer;
  color: var(--primary-color);
  font-size: var(--font-size-sm, 0.8125rem);

  &:hover, &:focus-visible {
    text-decoration: underline;
  }
}

.products-dashboard__hint {
  font-size: var(--font-size-sm, 0.8125rem);
}
