* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; line-height: 1.6; color: #333; background: #f8f9fa; }

.site-header { background: #1a1a2e; color: white; box-shadow: 0 2px 10px rgba(0,0,0,0.15); }
.header-top { max-width: 1280px; margin: 0 auto; padding: 1rem 1.5rem; display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.logo a { color: white; text-decoration: none; font-size: 1.6rem; font-weight: 700; }
.logo .tagline { display: block; font-size: 0.75rem; opacity: 0.75; margin-top: 2px; }
.search-form { flex: 1; display: flex; min-width: 280px; max-width: 560px; }
.search-form input { flex: 1; padding: 0.7rem 1rem; border: none; border-radius: 6px 0 0 6px; font-size: 0.95rem; outline: none; }
.search-form button { background: #e94560; color: white; border: none; padding: 0 1.4rem; border-radius: 0 6px 6px 0; cursor: pointer; font-weight: 600; }
.search-form button:hover { background: #c73e54; }
.main-nav { display: flex; align-items: center; gap: 1.5rem; margin-left: auto; }
.main-nav a { color: white; text-decoration: none; font-weight: 500; }
.cart-count { background: #e94560; color: white; font-size: 0.75rem; font-weight: 700; padding: 0.15rem 0.45rem; border-radius: 10px; }

.container { max-width: 1280px; margin: 2rem auto; padding: 0 1.5rem; }
.page-header { margin-bottom: 1.5rem; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 1.5rem; }
.product-card { background: white; border-radius: 10px; overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,0.08); transition: transform 0.2s; display: flex; flex-direction: column; }
.product-card:hover { transform: translateY(-4px); }
.product-card img { width: 100%; height: 200px; object-fit: cover; background: #eee; }
.product-card .info { padding: 1.1rem; flex: 1; display: flex; flex-direction: column; }
.product-card h3 { font-size: 1.05rem; margin-bottom: 0.3rem; }
.product-card .sku { font-size: 0.8rem; color: #777; }
.product-card .price { font-size: 1.3rem; font-weight: 700; color: #e94560; }
.product-card .map-note { font-size: 0.75rem; color: #888; }
.product-card .category-badge {
  font-size: 0.75rem;
  background: #f0f0f0;
  color: #555;
  display: inline-block;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  margin: 0.4rem 0 0.6rem;
}
.filter-bar select {
  font-size: 0.95rem;
}

.btn { display: inline-block; background: #e94560; color: white; padding: 0.55rem 1.1rem; border: none; border-radius: 6px; cursor: pointer; text-decoration: none; font-weight: 500; }
.btn:hover { background: #c73e54; }
.btn-secondary { background: #16213e; }

table { width: 100%; border-collapse: collapse; background: white; margin: 1rem 0; }
th, td { padding: 0.75rem; text-align: left; border-bottom: 1px solid #eee; }
th { background: #1a1a2e; color: white; }
.cart-summary { background: white; padding: 1.5rem; border-radius: 10px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; margin-bottom: 0.3rem; font-weight: 500; }
.form-group input, .form-group textarea { width: 100%; padding: 0.65rem; border: 1px solid #ccc; border-radius: 6px; }
.alert { padding: 1rem; border-radius: 6px; margin: 1rem 0; }
.alert-success { background: #d4edda; color: #155724; }
.alert-error { background: #f8d7da; color: #721c24; }
footer { text-align: center; padding: 2rem; color: #666; background: #fff; margin-top: 2rem; border-top: 1px solid #eee; }
.admin-nav { background: #1a1a2e; padding: 0.75rem 1rem; }
.admin-nav a { color: white; margin-right: 1.2rem; text-decoration: none; }

@media (max-width: 900px) {
  .header-top { flex-direction: column; align-items: stretch; }
  .product-detail { grid-template-columns: 1fr !important; }
  .product-grid { grid-template-columns: 1fr; }
}
