*{box-sizing:border-box}
body{
  margin:0;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial;
  background:#f8fafc;
  color:#0f172a;
}
.header{
  padding:20px 28px;
  border-bottom:1px solid #e5e7eb;
}
.layout{
  display:flex;
  min-height:calc(100vh - 80px);
}
.sidebar{
  width:220px;
  border-right:1px solid #e5e7eb;
  padding:20px;
}
.sidebar ul{
  list-style:none;
  padding:0;
  margin:0;
}
.sidebar li{
  padding:10px 6px;
  cursor:pointer;
  color:#334155;
}
.sidebar li.active{
  font-weight:600;
}
.content{
  flex:1;
  padding:28px;
}
.grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(220px,1fr));
  gap:24px;
}
.card{
  background:white;
  border-radius:14px;
  overflow:hidden;
  box-shadow:0 8px 24px rgba(0,0,0,.06);
  transition:transform .25s ease, box-shadow .25s ease;
}
.card:hover{
  transform:scale(1.15);
  z-index:2;
  box-shadow:0 20px 60px rgba(0,0,0,.25);
}
.card img{
  width:100%;
  height:220px;
  object-fit:contain;
  background:#f1f5f9;
}
.card p{
  margin:0;
  padding:12px;
  font-size:14px;
  text-align:center;
}
@media(max-width:768px){
  .layout{flex-direction:column}
  .sidebar{width:100%;border-right:none;border-bottom:1px solid #e5e7eb}
  .card:hover{transform:scale(1.05)}
}
