:root{font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Tahoma,Arial,sans-serif;color:#161616;background:#f6f7f8}*{box-sizing:border-box}body{margin:0;direction:rtl}.top{position:sticky;top:0;z-index:10;background:#fff;border-bottom:1px solid #e7e7e7;padding:14px 18px;display:flex;align-items:center;gap:12px}.brand{font-size:22px;font-weight:800}.sub{color:#666;font-size:13px}.wrap{max-width:1100px;margin:auto;padding:20px}.controls{display:grid;grid-template-columns:1fr 220px;gap:10px;margin-bottom:18px}.controls input,.controls select,.field input,.field textarea,.field select{width:100%;padding:12px;border:1px solid #d9d9d9;border-radius:12px;background:#fff;font:inherit}.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:14px}.card{background:#fff;border:1px solid #e8e8e8;border-radius:18px;overflow:hidden;box-shadow:0 3px 14px rgba(0,0,0,.04)}.card img{width:100%;aspect-ratio:1/1;object-fit:cover;background:#f0f0f0}.pad{padding:14px}.name{font-weight:800;font-size:17px;margin-bottom:6px}.meta{font-size:13px;color:#666;min-height:38px}.price{font-size:18px;font-weight:800;margin-top:10px}.tag{display:inline-block;padding:5px 9px;background:#f0f2f4;border-radius:99px;font-size:12px;margin:3px 0}.empty{padding:50px 10px;text-align:center;color:#777}.adminbar{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:16px}.btn{border:0;border-radius:12px;padding:11px 16px;font:inherit;font-weight:700;cursor:pointer;background:#111;color:#fff}.btn.secondary{background:#eceff2;color:#111}.btn.danger{background:#b42318}.panel{background:#fff;border:1px solid #e6e6e6;border-radius:18px;padding:16px;margin-bottom:18px}.formgrid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.field label{display:block;font-size:13px;margin-bottom:5px;color:#555}.span2{grid-column:1/-1}.products-table{width:100%;border-collapse:collapse;background:#fff}.products-table th,.products-table td{padding:10px;border-bottom:1px solid #eee;text-align:right;font-size:14px}.thumb{width:46px;height:46px;border-radius:9px;object-fit:cover;background:#eee}.login{max-width:420px;margin:70px auto;background:#fff;border:1px solid #e5e5e5;border-radius:18px;padding:22px}.hint{font-size:12px;color:#777}.status{padding:8px 10px;border-radius:10px;background:#f2f4f7;margin:8px 0;font-size:13px}.hide{display:none}@media(max-width:700px){.controls,.formgrid{grid-template-columns:1fr}.products-table{font-size:12px}.products-table .optional{display:none}.wrap{padding:14px}.brand{font-size:19px}}
