:root{
  --accent: #0077cc;
  --accent-2: #00a676;
  --muted:#6b6b6b;
  --bg:#f6f8fb;
  --card:#fff;
  --radius:12px;
  --shadow: 0 8px 24px rgba(20,20,40,0.06);
}

*{box-sizing:border-box}
body{
  margin:0; font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,"Helvetica Neue",Arial; background:var(--bg); color:#111;
}
.wrap{max-width:1100px; margin:0 auto; padding:0 16px}

/* Header */
.site-header{background:linear-gradient(90deg,var(--accent),var(--accent-2)); color:white; padding:12px 0; position:sticky; top:0; z-index:90}
.header-inner{display:flex; align-items:center; justify-content:space-between; gap:12px}
.brand{display:flex; gap:10px; align-items:center}
.logo{width:54px;height:54px;border-radius:10px;background:rgba(255,255,255,0.12);display:grid;place-items:center;font-weight:700}
.tag{font-size:12px;color:rgba(255,255,255,0.92)}

/* Search */
.search-area input{
  width:420px; max-width:60vw; padding:10px 12px; border-radius:999px; border:0; outline:none;
  box-shadow:0 6px 20px rgba(10,10,10,0.06)
}

/* Header actions */
.actions .btn-outline{background:transparent;border:1px solid rgba(255,255,255,0.2);color:white;padding:8px 12px;border-radius:8px}

/* Filters bar */
.filters-bar{display:flex; gap:12px; flex-wrap:wrap; padding:12px 16px; align-items:center; background:white; margin-top:8px; border-bottom:1px solid #eef2f5}
.filter-group{display:flex;flex-direction:column;font-size:13px}
.filter-group label{font-size:12px;color:var(--muted); margin-bottom:6px}
.filter-group select, .filter-group input{padding:8px 10px;border-radius:8px;border:1px solid #e6e9ec;background:white}
.filter-actions{margin-left:auto}
.btn, .btn-light {
  padding:10px 14px; border-radius:8px; cursor:pointer; border:0;
}
.btn{background:var(--accent); color:white}
.btn-light{background:#f5f7fa; color:var(--muted); border:1px solid #eef2f5}

/* Main */
.main{padding:20px 0}
.hero{display:flex; gap:20px; align-items:center; margin-bottom:18px}
.hero-inner{flex:1}
.hero h2{margin:0 0 8px 0}
.hero p{color:var(--muted); margin:0}
.hero-img{width:320px; height:140px; object-fit:cover; border-radius:12px; box-shadow:var(--shadow)}

/* Catalog */
.catalog h3{margin:6px 0 12px 0}
.products-grid{display:grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap:18px}

/* Product card */
.card{
  background:var(--card); border-radius:12px; padding:12px; box-shadow:var(--shadow); display:flex; flex-direction:column; gap:8px;
}
.card .thumb{height:180px; border-radius:10px; overflow:hidden; display:grid; place-items:center; background:#fafafa}
.card img{width:100%; height:100%; object-fit:cover}
.card h4{margin:6px 0 0 0}
.card .price{color:var(--accent); font-weight:700}
.card .meta{font-size:13px; color:var(--muted)}
.card .specs{display:flex; gap:8px; flex-wrap:wrap; margin-top:6px}
.spec{background:#f5f7fa;padding:6px 8px;border-radius:8px;font-size:12px;color:var(--muted)}
.card .card-actions{display:flex; gap:8px; margin-top:auto}
.card button{flex:1; padding:10px; border-radius:8px; border:0; cursor:pointer}
.btn-buy{background:var(--accent); color:white}
.btn-details{background:#f7f7f7;color:var(--muted); border:1px solid #eef2f5}

/* Reviews stars */
.stars{color:#f6b93b; font-weight:700}

/* How it works */
.how-it-works{margin-top:22px; padding:14px; background:white;border-radius:10px; box-shadow:var(--shadow)}

/* Footer */
.site-footer{padding:18px 0; margin-top:24px; background:white; border-top:1px solid #eef2f5}
.site-footer .footer-links a{color:var(--muted); text-decoration:none; margin-left:8px}

/* Modal */
.modal{position:fixed; inset:0; display:none; align-items:center; justify-content:center; background:rgba(0,0,0,0.45); z-index:200; padding:20px}
.modal[aria-hidden="false"]{display:flex}
.modal-panel{background:white; width:100%; max-width:720px; border-radius:12px; padding:18px; max-height:90vh; overflow:auto; position:relative}
.modal-close{position:absolute; right:12px; top:8px; background:transparent; border:0; font-size:26px; cursor:pointer}

/* Cart */
#cartItems{margin:12px 0; display:flex; flex-direction:column; gap:10px}
.cart-row{display:flex; gap:12px; align-items:center; padding:8px; border-radius:8px; background:#fbfcff}
.cart-row img{width:64px; height:64px; object-fit:cover; border-radius:8px}
.qty-controls{display:flex; gap:6px; align-items:center}
.qty-controls button{padding:6px 8px}

/* Forms */
input, textarea, select{padding:10px;border-radius:8px;border:1px solid #e8ebef}
label{display:block;margin-top:10px;font-size:13px;color:var(--muted)}
.form-actions{display:flex; gap:10px; margin-top:12px}

/* Small screens */
@media(max-width:800px){
  .header-inner{flex-direction:column;align-items:flex-start;gap:10px}
  .hero{flex-direction:column}
  .hero-img{width:100%; height:160px}
  .search-area input{width:100%}
  .filters-bar{overflow:auto}
}