* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #f2f2f7;
  color: #1a1a1a;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 16px;
  width: 100%;
}

header {
  background: #fff;
  padding: 24px 0;
  border-bottom: 1px solid #e5e5ea;
}

header h1 {
  font-size: 28px;
  font-weight: 800;
  color: #D03190;
}

header .subtitle {
  font-size: 14px;
  color: #888;
  margin-top: 4px;
}

main {
  flex: 1;
  padding: 16px;
}

.loading, .empty {
  text-align: center;
  padding: 60px 20px;
  color: #888;
}

.empty .hint {
  margin-top: 8px;
  font-size: 13px;
  color: #aaa;
}

.catalog {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.product-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  transition: transform 0.15s ease;
}

.product-card:hover {
  transform: translateY(-2px);
}

.product-photo {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: #e5e5ea;
}

.product-photo-placeholder {
  width: 100%;
  height: 200px;
  background: #e5e5ea;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #aaa;
  font-size: 40px;
}

.product-info {
  padding: 16px;
}

.product-name {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}

.product-description {
  font-size: 13px;
  color: #888;
  margin-bottom: 12px;
}

.product-price {
  font-size: 22px;
  font-weight: 800;
  color: #D03190;
}

.product-status {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
  margin-top: 8px;
}

.status-available {
  background: rgba(52, 199, 89, 0.15);
  color: #34C759;
}

.status-requested {
  background: rgba(255, 149, 0, 0.15);
  color: #FF9500;
}

footer {
  background: #fff;
  border-top: 1px solid #e5e5ea;
  padding: 16px 0;
  text-align: center;
  font-size: 13px;
  color: #888;
}

.footer-links {
  margin-bottom: 8px;
}

.footer-links a {
  color: #D03190;
  text-decoration: none;
  margin: 0 12px;
  font-size: 13px;
}

.footer-links a:hover {
  text-decoration: underline;
}

.legal-content {
  padding: 24px 0 40px;
}

.legal-content h2 {
  font-size: 18px;
  font-weight: 700;
  margin: 28px 0 8px;
}

.legal-content h3 {
  font-size: 15px;
  font-weight: 600;
  margin: 20px 0 6px;
}

.legal-content p {
  font-size: 14px;
  line-height: 1.6;
  color: #444;
  margin-bottom: 8px;
}

.legal-content ul {
  padding-left: 20px;
  margin-bottom: 12px;
}

.legal-content li {
  font-size: 14px;
  line-height: 1.6;
  color: #444;
  margin-bottom: 4px;
}

.legal-content a {
  color: #D03190;
}

.legal-content .updated {
  font-size: 13px;
  color: #888;
  margin-bottom: 20px;
}

.support-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  margin: 16px 0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.support-card a {
  color: #D03190;
  font-size: 18px;
  text-decoration: none;
}

@media (max-width: 600px) {
  .catalog {
    grid-template-columns: 1fr;
  }

  header h1 {
    font-size: 22px;
  }
}
