html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: #fff;
  color: var(--text);
}

.container {
  width: min(var(--container), calc(100% - 32px));
  margin-inline: auto;
}

.page {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

.main-with-navbar {
  padding-top: 64px;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.section {
  padding: 40px 0;
}

.section-dark {
  background: #f9fafb;
}

.muted {
  color: var(--muted);
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.25s ease;
  text-decoration: none;
  color: var(--text);
  display: block;
}

.card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.card-media {
  width: 100%;
  height: 200px;
  background: #e5e7eb;
}

.card-body {
  padding: 16px;
}

.card-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
  line-height: 1.4;
}

.card-meta {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.3px;
}

.price {
  font-size: 15px;
  font-weight: 700;
  color: var(--accent);
  margin-top: 6px;
}

.grid {
  display: grid;
  gap: 18px;
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 520px) {
  .grid-4, .grid-3 { grid-template-columns: 1fr; }
}

.back-link:hover {
  color: var(--accent);
}

.article-content img {
  max-width: 100%;
  border-radius: 8px;
  margin: 16px 0;
}
