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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #f5f5f5;
  padding: 20px;
}

header {
  max-width: 1200px;
  margin: 0 auto 40px;
  text-align: center;
}

header h1 {
  font-size: 2rem;
  margin-bottom: 10px;
  font-weight: 600;
}

header p {
  color: #666;
  font-size: 1rem;
}

main {
  max-width: 1200px;
  margin: 0 auto;
}

.filters {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 20px;
  background: white;
  border: 2px solid #ddd;
  color: #333;
  font-size: 0.9rem;
  cursor: pointer;
  font-family: inherit;
}

.filter-btn:hover {
  border-color: #000;
}

.filter-btn.active {
  background: #000;
  color: white;
  border-color: #000;
}

#category-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

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

.gift-card {
  background: white;
  border: 1px solid #ddd;
  overflow: hidden;
}

.gift-image {
  width: 100%;
  height: 280px;
  overflow: hidden;
  background: #f9f9f9;
}

.gift-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gift-content {
  padding: 20px;
}

.gift-content h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  font-weight: 600;
}

.description {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 15px;
}

.size {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.gift-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.price {
  font-size: 1.1rem;
  font-weight: 600;
}

.category {
  font-size: 0.85rem;
  color: #666;
}

.buy-link {
  display: inline-block;
  padding: 10px 20px;
  background: #000;
  color: white;
  text-decoration: none;
  font-size: 0.9rem;
  border: 2px solid #000;
}

.buy-link:hover {
  background: white;
  color: #000;
}

.no-items {
  text-align: center;
  color: #666;
  padding: 40px;
  font-size: 1.1rem;
}

footer {
  max-width: 1200px;
  margin: 60px auto 0;
  text-align: center;
  color: #666;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  body {
    padding: 15px;
  }

  header h1 {
    font-size: 1.5rem;
  }

  .filters {
    gap: 8px;
  }

  .filter-btn {
    padding: 8px 16px;
    font-size: 0.85rem;
  }

  .gift-grid {
    grid-template-columns: 1fr;
  }
}