/* Page layout styles — catalog, product detail. */

.app-main {
  max-width: min(1200px, 100%);
  margin: 0 auto;
  padding: var(--space-lg);
  padding-top: calc(52px + var(--space-lg));
  flex: 1;
}

app-router > .app-router {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.app-main--enter {
  animation: page-enter 0.25s ease-out;
}

@keyframes page-enter {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Catalog */

.catalog-view__search {
  width: 100%;
  padding: var(--space-sm) var(--space-md);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font: inherit;
  margin-bottom: var(--space-md);
  background: var(--color-surface);
  color: var(--color-text);

  &::placeholder {
    color: var(--color-text-muted);
  }

  &:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: -1px;
  }
}

.catalog-view__filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

/* Product detail */
