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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: #f9f9f9;
  color: #1a1a1a;
  line-height: 1.6;
}

header {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  color: white;
  padding: 40px 20px;
  text-align: center;
  border-bottom: 4px solid #10b981;
}

header h1 {
  font-size: 2.5em;
  margin-bottom: 10px;
  font-weight: 700;
}

header p {
  font-size: 1.1em;
  opacity: 0.9;
}

.container {
  max-width: 1400px;
  margin: 40px auto;
  padding: 0 20px;
}

.breadcrumb {
  font-size: 0.9em;
  color: #666;
  margin-bottom: 30px;
}

.breadcrumb a {
  color: #10b981;
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.section-title {
  font-size: 2em;
  margin: 40px 0 30px 0;
  border-bottom: 3px solid #10b981;
  padding-bottom: 10px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.product-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.product-image {
  width: 100%;
  height: 220px;
  background: linear-gradient(135deg, #e8e8e8, #f0f0f0);
  overflow: hidden;
  position: relative;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: white;
}

.product-image.loading {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { background-color: #e8e8e8; }
  50% { background-color: #f0f0f0; }
}

.tier-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.75em;
  font-weight: 600;
  color: white;
  text-transform: uppercase;
  z-index: 10;
}

.tier-procedural {
  background-color: #10b981;
}

.tier-supplier {
  background-color: #f59e0b;
}

.tier-meshy {
  background-color: #3b82f6;
}

.tier-2d {
  background-color: #6b7280;
}

.product-info {
  padding: 16px;
}

.product-name {
  font-weight: 600;
  font-size: 1em;
  margin-bottom: 8px;
  color: #1a1a1a;
  line-height: 1.3;
}

.product-meta {
  font-size: 0.85em;
  color: #999;
  margin-bottom: 12px;
}

.product-actions {
  display: flex;
  gap: 8px;
}

.btn {
  flex: 1;
  padding: 8px 12px;
  font-size: 0.85em;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 500;
}

.btn-primary {
  background: #1a1a1a;
  color: white;
}

.btn-primary:hover {
  background: #10b981;
}

.btn-secondary {
  background: #f0f0f0;
  color: #1a1a1a;
  border: 1px solid #ddd;
}

.btn-secondary:hover {
  background: #e8e8e8;
  border-color: #999;
}

.search-bar {
  margin-bottom: 30px;
  display: flex;
  gap: 12px;
}

.search-bar input {
  flex: 1;
  padding: 12px 16px;
  border: 2px solid #ddd;
  border-radius: 6px;
  font-size: 1em;
  transition: border-color 0.2s;
}

.search-bar input:focus {
  outline: none;
  border-color: #10b981;
}

.results-count {
  padding: 12px 16px;
  background: white;
  border-radius: 6px;
  font-size: 0.9em;
  color: #666;
  align-self: center;
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin: 40px 0;
}

.showcase-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.showcase-card:hover {
  box-shadow: 0 12px 32px rgba(16, 185, 129, 0.2);
  transform: translateY(-4px);
}

.showcase-frame {
  width: 100%;
  height: 400px;
  border: none;
  background: white;
}

.showcase-info {
  padding: 20px;
  border-top: 3px solid #10b981;
}

.showcase-info h3 {
  font-size: 1.2em;
  margin-bottom: 8px;
  color: #1a1a1a;
}

.showcase-info p {
  font-size: 0.9em;
  color: #666;
}

footer {
  background: #1a1a1a;
  color: white;
  text-align: center;
  padding: 30px 20px;
  margin-top: 60px;
  font-size: 0.9em;
}

footer a {
  color: #10b981;
  text-decoration: none;
}

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

@media (max-width: 768px) {
  header h1 {
    font-size: 1.8em;
  }

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

  .product-image {
    height: 160px;
  }

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

  .section-title {
    font-size: 1.5em;
  }
}
