:root{--brand:#16a34a;--bg:#f6f7fb;--text:#111827;--muted:#6b7280;--card:#fff;--border:#e5e7eb}*{box-sizing:border-box}body{margin:0;font-family:Arial,Helvetica,sans-serif;background:var(--bg);color:var(--text)}a{color:#0f766e;text-decoration:none}button{border:0;border-radius:12px;background:var(--brand,#16a34a);color:white;padding:11px 16px;font-weight:700;cursor:pointer}button:disabled{opacity:.5;cursor:not-allowed}input,select,textarea{width:100%;padding:10px 12px;border:1px solid var(--border);border-radius:10px;background:white}textarea{min-height:90px}label{display:block;font-size:13px;color:#374151;margin:8px 0}aside{position:fixed;left:0;top:0;bottom:0;width:230px;background:#111827;color:white;padding:22px}aside h2{margin-top:0;font-size:22px}aside a{display:block;color:white;padding:12px;border-radius:10px;margin:4px 0}aside a:hover{background:#1f2937}main{margin-left:230px;padding:24px}.top{display:flex;justify-content:space-between;align-items:center}.card{background:var(--card);border:1px solid var(--border);border-radius:18px;padding:18px;box-shadow:0 10px 30px rgba(17,24,39,.06);margin-bottom:16px}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:16px}.stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:16px}.stats b{font-size:34px;display:block}.stats span{color:var(--muted)}.alert{padding:12px 14px;border-radius:14px;margin-bottom:16px;background:#ecfdf5;color:#065f46}.alert.error{background:#fef2f2;color:#991b1b}table{width:100%;border-collapse:collapse}th,td{padding:12px;border-bottom:1px solid var(--border);text-align:left;vertical-align:top}th{font-size:13px;color:#6b7280}.formgrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:10px}.formgrid .full{grid-column:1/-1}.inline{display:flex;gap:8px;flex-wrap:wrap;align-items:end}.inline input,.inline select{width:auto;min-width:120px}.danger{background:#dc2626}.qr{max-width:180px;border:1px solid var(--border);border-radius:12px;padding:8px;background:white}.auth{min-height:100vh;display:grid;place-items:center;background:linear-gradient(135deg,#0f172a,#065f46)}.authcard{width:min(430px,92vw)}.authcard h1{margin-bottom:4px}.authcard small{color:var(--muted)}
.public{background:#f8fafc}.public header{background:#fff;display:flex;justify-content:space-between;align-items:center;padding:18px clamp(16px,5vw,70px);box-shadow:0 6px 20px rgba(0,0,0,.05);position:sticky;top:0;z-index:5}.public header h1{margin:0}.public header p{margin:4px 0;color:var(--muted)}.logo{max-height:60px;max-width:140px;object-fit:contain}.hero{margin:24px auto;max-width:1120px;border-radius:28px;padding:50px 28px;color:white;background:linear-gradient(120deg,var(--brand),#111827);background-size:cover;background-position:center}.hero h2{font-size:38px;margin:0 0 8px}.hero p{font-size:18px;max-width:700px}.shopbar{max-width:1120px;margin:0 auto 18px;display:flex;gap:12px;padding:0 8px}.shopbar input{font-size:16px}.catalog{max-width:1120px;margin:0 auto 70px;display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:18px;padding:0 8px}.product{background:white;border:1px solid var(--border);border-radius:20px;padding:14px;box-shadow:0 8px 24px rgba(17,24,39,.06);display:flex;flex-direction:column;gap:8px}.product img{width:100%;height:170px;object-fit:cover;border-radius:16px;background:#eee}.product h3{margin:0}.product p{color:#6b7280;min-height:42px}.product b{font-size:22px}.product small{color:var(--brand);font-weight:700}.cart{display:none;position:fixed;inset:0;background:rgba(0,0,0,.55);z-index:20;justify-content:flex-end}.cart.open{display:flex}.cart>div{background:white;width:min(430px,95vw);padding:22px;overflow:auto}.close{float:right;background:#111827;border-radius:50%;width:38px;height:38px;padding:0}.cartitem{display:flex;justify-content:space-between;gap:8px;border-bottom:1px solid var(--border);padding:10px 0}.cartitem button{padding:4px 8px;background:#dc2626}@media(max-width:760px){aside{position:static;width:auto}aside a{display:inline-block}main{margin-left:0;padding:14px}.public header{align-items:flex-start}.hero{margin:14px 8px;padding:30px 18px}.hero h2{font-size:28px}.shopbar{position:sticky;top:84px;background:#f8fafc;padding:10px 8px;z-index:4}.inline input,.inline select{width:100%}}
