@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');
:root {
    --bg: #f1f5f9;
    --surface: #fff;
    --text: #0f172a;
    --muted: #64748b;
    --accent: #2563eb;
    --sale: #dc2626;
    --radius: 12px;
    --border: #e2e8f0;
    --wrap: 1240px;
}
body.has-proto-bar { font-family: 'Inter', system-ui, sans-serif; background: var(--bg); color: var(--text); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1rem; }
.header { background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 2.75rem; z-index: 50; }
.header-inner { display: flex; align-items: center; gap: 1.5rem; padding: 1rem 0; }
.logo { font-weight: 800; font-size: 1.3rem; color: var(--accent); text-decoration: none; }
.search { flex: 1; max-width: 480px; display: flex; }
.search input { flex: 1; padding: 0.65rem 1rem; border: 1px solid var(--border); border-radius: var(--radius) 0 0 var(--radius); font-size: 0.9rem; outline: none; }
.search input:focus { border-color: var(--accent); }
.search button { padding: 0 1.1rem; background: var(--accent); color: #fff; border: none; border-radius: 0 var(--radius) var(--radius) 0; cursor: pointer; font-size: 1rem; }
.header-actions { display: flex; align-items: center; gap: 1.25rem; margin-left: auto; font-size: 0.88rem; font-weight: 600; }
.cart { display: flex; align-items: center; gap: 0.4rem; padding: 0.5rem 1rem; background: var(--bg); border-radius: var(--radius); }
.layout { display: grid; grid-template-columns: 240px 1fr; gap: 1.5rem; padding: 1.5rem 0 3rem; }
.sidebar { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; height: fit-content; position: sticky; top: 6.5rem; }
.sidebar h3 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 1rem; }
.filter label { display: flex; align-items: center; gap: 0.5rem; font-size: 0.88rem; margin-bottom: 0.45rem; cursor: pointer; color: var(--text); }
.toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; font-size: 0.88rem; color: var(--muted); }
.sort { padding: 0.4rem 0.75rem; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); font-size: 0.85rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 1rem; }
.product { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: box-shadow .2s, transform .2s; }
.product:hover { box-shadow: 0 12px 32px rgba(0,0,0,0.08); transform: translateY(-2px); }
.product-img { aspect-ratio: 1; overflow: hidden; background: #f8fafc; position: relative; }
.product-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.product:hover .product-img img { transform: scale(1.04); }
.badge { position: absolute; top: 0.5rem; left: 0.5rem; font-size: 0.65rem; font-weight: 700; padding: 0.2rem 0.5rem; border-radius: 6px; color: #fff; background: var(--sale); }
.product-body { padding: 1rem; }
.product h3 { font-size: 0.9rem; font-weight: 600; margin-bottom: 0.35rem; line-height: 1.35; }
.rating { font-size: 0.75rem; color: #f59e0b; margin-bottom: 0.35rem; }
.price-row { display: flex; align-items: baseline; gap: 0.5rem; margin-bottom: 0.65rem; }
.price { font-weight: 800; font-size: 1.1rem; }
.old-price { font-size: 0.8rem; color: var(--muted); text-decoration: line-through; }
.btn-cart { width: 100%; padding: 0.6rem; background: var(--accent); color: #fff; border: none; border-radius: 8px; font-weight: 600; cursor: pointer; font-size: 0.85rem; transition: opacity .15s; }
.btn-cart:hover { opacity: 0.9; }
.footer { background: var(--surface); border-top: 1px solid var(--border); padding: 2rem 0; text-align: center; font-size: 0.85rem; color: var(--muted); }
@media (max-width: 900px) { .layout { grid-template-columns: 1fr; } .sidebar { display: none; } .search { display: none; } }
