:root {
  --primary: #5c4033;
  --primary-hover: #3e2723;
  --accent: #d32f2f;
  --bg: #f4f6f8;
  --card-bg: #ffffff;
  --text: #212529;
  --text-muted: #6c757d;
}
* { box-sizing: border-box; margin: 0; padding: 0; font-family: sans-serif; }
body { background-color: var(--bg); color: var(--text); line-height: 1.5; display: flex; flex-direction: column; min-height: 100vh; overflow-x: hidden; }
.header { background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,0.06); position: sticky; top: 0; z-index: 100; }
.header-container { max-width: 1200px; margin: 0 auto; padding: 15px 20px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.logo { font-size: 22px; font-weight: bold; color: var(--primary); text-decoration: none; }
.logo span { color: var(--accent); }
.search-form { display: flex; gap: 5px; }
.search-form input { padding: 6px 10px; border: 1px solid #ccc; border-radius: 4px; }
.search-form button { padding: 6px 12px; background: var(--primary); color: #fff; border: none; border-radius: 4px; cursor: pointer; }
.nav { display: flex; gap: 15px; align-items: center; flex-wrap: wrap; }
.nav a { text-decoration: none; color: var(--text); font-weight: 500; font-size: 0.95rem; }
.main-content { flex: 1; }
.hero { background: linear-gradient(135deg, #5c4033, #8d6e63); color: white; padding: 60px 20px; text-align: center; }
.hero h1 { font-size: 2.2rem; margin-bottom: 10px; }
.hero p { font-size: 1.1rem; margin-bottom: 20px; }
.container { max-width: 1200px; margin: 40px auto; padding: 0 20px; width: 100%; }
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.product-card { background: var(--card-bg); border-radius: 12px; overflow: hidden; box-shadow: 0 4px 12px rgba(0,0,0,0.05); display: flex; flex-direction: column; position: relative; }
.product-img { width: 100%; height: 200px; object-fit: cover; }
.placeholder-img { width: 100%; height: 200px; background: #e0e0e0; color: #666; display: flex; align-items: center; justify-content: center; text-align: center; padding: 10px; font-size: 0.9rem; font-weight: bold; }
.product-info { padding: 15px; display: flex; flex-direction: column; flex-grow: 1; }
.brand-title { font-size: 0.85rem; color: #777; margin-bottom: 4px; }
.product-info h3 a { text-decoration: none; color: var(--text); font-size: 1rem; margin-bottom: 8px; }
.price-block { margin-top: auto; display: flex; gap: 10px; align-items: baseline; margin-bottom: 15px; }
.current-price { font-size: 1.1rem; font-weight: bold; color: var(--accent); }
.btn-primary, .btn-detail { background: var(--primary); color: white; padding: 10px 20px; border-radius: 6px; text-decoration: none; text-align: center; font-weight: bold; border: none; cursor: pointer; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
.btn-primary:hover, .btn-detail:hover { background: var(--primary-hover); }
.badge { position: absolute; top: 10px; left: 10px; background: var(--accent); color: white; padding: 3px 8px; font-size: 11px; font-weight: bold; border-radius: 4px; }
.footer { background: #222; color: #aaa; padding: 30px 20px; text-align: center; margin-top: auto; }
.seller-info { font-size: 0.85rem; margin-top: 5px; color: #777; }
.footer-links { margin-top: 10px; font-size: 0.9rem; }
.footer-links a { color: #ccc; text-decoration: none; }

@media (max-width: 992px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .product-page > div { grid-template-columns: 1fr !important; }
  .header-container { flex-direction: column; align-items: stretch; }
}
@media (max-width: 480px) {
  .product-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.5rem; }
}
