* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, Segoe UI, Roboto, sans-serif; color: #222; background: #fafafa; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 16px; }

.site-header { background: #1b5e20; color: #fff; padding: 14px 0; }
.header-inner { display: flex; justify-content: space-between; align-items: center; }
.logo { color: #fff; font-weight: bold; font-size: 1.3rem; text-decoration: none; }
.main-nav a { color: #fff; text-decoration: none; margin-left: 20px; }

.category-filter { margin: 24px 0; display: flex; gap: 12px; flex-wrap: wrap; }
.category-filter a { padding: 6px 14px; border-radius: 20px; background: #eee; text-decoration: none; color: #333; }
.category-filter a.active { background: #1b5e20; color: #fff; }

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; margin: 20px 0 40px; }
.product-card { background: #fff; border: 1px solid #eee; border-radius: 8px; padding: 12px; text-align: center; }
.product-card img { width: 100%; height: 140px; object-fit: cover; border-radius: 6px; }
.product-card h3 { font-size: 1rem; margin: 8px 0 4px; }
.product-card .unit { color: #777; font-size: 0.85rem; }
.product-card .price { font-weight: bold; margin: 6px 0; }
.product-card form { display: flex; gap: 6px; justify-content: center; }
.product-card input[type=number] { width: 50px; }
.product-card button { background: #1b5e20; color: #fff; border: none; padding: 6px 10px; border-radius: 4px; cursor: pointer; }
.out-of-stock { color: #c62828; font-size: 0.85rem; }

.site-footer { text-align: center; padding: 20px 0; color: #777; margin-top: 40px; }

/* Banner Slider */
.banner-slider { position: relative; overflow: hidden; border-radius: 10px; margin: 20px 0; max-height: 320px; }
.banner-track { display: flex; transition: transform 0.5s ease; }
.banner-slide { min-width: 100%; position: relative; }
.banner-slide img { width: 100%; height: 320px; object-fit: cover; display: block; }
.banner-caption {
    position: absolute; bottom: 20px; left: 20px; background: rgba(0,0,0,0.55);
    color: #fff; padding: 10px 18px; border-radius: 6px; font-size: 1.1rem;
}
.banner-nav {
    position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,0.4);
    color: #fff; border: none; font-size: 1.2rem; padding: 8px 12px; cursor: pointer; border-radius: 4px;
}
.banner-prev { left: 12px; }
.banner-next { right: 12px; }
.banner-dots { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; }
.banner-dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,0.6); cursor: pointer; }
.banner-dot.active { background: #fff; }