* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Poppins', sans-serif; background: #f0f2f5; color: #1a1a1a; }
.admin-layout { display: flex; min-height: 100vh; }
.sidebar { width: 240px; background: #1b4332; color: white; padding: 20px 0; flex-shrink: 0; }
.sidebar-brand { font-size: 1.3rem; font-weight: 700; padding: 0 20px 24px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.sidebar-nav { padding-top: 12px; }
.nav-item { display: block; padding: 12px 20px; color: rgba(255,255,255,0.75); text-decoration: none; transition: 0.2s; font-size: 0.95rem; }
.nav-item:hover, .nav-item.active { background: rgba(255,255,255,0.1); color: white; }
.admin-main { flex: 1; padding: 24px 32px; overflow-y: auto; }
.admin-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; }
.admin-header h1 { font-size: 1.5rem; color: #1b4332; }
.admin-section { display: none; }
.admin-section.active { display: block; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat-card { background: white; padding: 24px; border-radius: 12px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); text-align: center; }
.stat-card h3 { font-size: 1.8rem; color: #2d6a4f; }
.stat-card p { color: #666; font-size: 0.9rem; margin-top: 4px; }
.section-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.btn-primary { background: #2d6a4f; color: white; border: none; padding: 10px 20px; border-radius: 8px; font-weight: 600; cursor: pointer; font-family: inherit; }
.btn-primary:hover { background: #1b4332; }
.btn-outline { background: transparent; border: 1px solid #2d6a4f; color: #2d6a4f; padding: 10px 20px; border-radius: 8px; cursor: pointer; font-family: inherit; }
.btn-sm { padding: 6px 12px; font-size: 0.8rem; border: 1px solid #ddd; border-radius: 6px; cursor: pointer; background: white; margin-right: 4px; }
.btn-danger { color: #c0392b; border-color: #c0392b; }
.product-form-card { background: white; padding: 24px; border-radius: 12px; margin-bottom: 24px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 16px; }
.form-group { margin-bottom: 12px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 500; margin-bottom: 4px; }
.form-group input, .form-group select { width: 100%; padding: 10px 12px; border: 1px solid #ddd; border-radius: 8px; font-family: inherit; font-size: 0.95rem; }
.upload-area { border: 2px dashed #ccc; border-radius: 10px; padding: 24px; text-align: center; position: relative; cursor: pointer; }
.upload-area input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.form-actions { display: flex; gap: 12px; margin-top: 16px; }
.table-wrap { background: white; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th, .admin-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid #eee; font-size: 0.9rem; }
.admin-table th { background: #f8f9fa; font-weight: 600; }
.thumb { width: 40px; height: 40px; object-fit: cover; border-radius: 6px; }
.order-admin-card { background: white; padding: 16px; border-radius: 10px; margin-bottom: 12px; display: flex; justify-content: space-between; align-items: center; box-shadow: 0 1px 4px rgba(0,0,0,0.05); }
.order-admin-card select { padding: 6px 10px; border-radius: 6px; border: 1px solid #ddd; }
.review-card { background: white; padding: 16px; border-radius: 10px; margin-bottom: 12px; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(80px); background: #1b4332; color: white; padding: 12px 24px; border-radius: 50px; opacity: 0; transition: 0.3s; z-index: 999; }
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }
@media (max-width: 768px) {
  .admin-layout { flex-direction: column; }
  .sidebar { width: 100%; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}
