:root { color-scheme: light; }
* { box-sizing: border-box; }
body { margin: 0; font-family: Segoe UI, Arial, sans-serif; background: #f5f7fb; color: #222; }
.container { width: min(1080px, 92vw); margin: 0 auto; }
header { background: #101828; color: white; }
.nav { display: flex; justify-content: space-between; align-items: center; height: 64px; }
.logo {
	color: #fff;
	text-decoration: none;
	font-weight: 700;
	display: inline-flex;
	align-items: center;
	gap: 10px;
}
.logo img {
	width: 64px;
	height: 26px;
	object-fit: contain;
	display: block;
}
.nav-links { display: flex; gap: 18px; align-items: center; }
.nav a { color: #d0d5dd; text-decoration: none; }
h1 { margin-top: 28px; }
.subtitle { color: #667085; margin-bottom: 20px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.card { background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 6px 22px rgba(16,24,40,.07); }
.card img { width: 100%; height: 180px; object-fit: cover; }
.card-body { padding: 14px; }
.price { color: #b42318; font-weight: 700; }
.btn, button { display: inline-block; background: #175cd3; color: #fff; border: 0; border-radius: 8px; padding: 10px 14px; text-decoration: none; cursor: pointer; }
.detail { margin-top: 26px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; background: #fff; border-radius: 12px; padding: 14px; }
.detail img { width: 100%; border-radius: 10px; }
ul { line-height: 1.8; }
.form-card { margin: 20px 0 30px; background: #fff; border-radius: 12px; padding: 16px; }
label { display: block; margin-bottom: 12px; }
input, textarea { width: 100%; margin-top: 6px; padding: 10px; border: 1px solid #d0d5dd; border-radius: 8px; }
table { width: 100%; border-collapse: collapse; background: #fff; }
th, td { border-bottom: 1px solid #eaecf0; text-align: left; padding: 10px; }
.flash-wrap { margin-top: 14px; }
.flash { padding: 10px 12px; border-radius: 8px; margin-bottom: 8px; }
.flash.success { background: #ecfdf3; color: #027a48; }
.flash.error { background: #fef3f2; color: #b42318; }
@media (max-width: 800px) { .detail { grid-template-columns: 1fr; } }
/* Admin */
.admin-tabs { display:flex; gap:8px; margin:18px 0 14px; }
.atab { padding:8px 18px; border-radius:8px; background:#e4e7ec; color:#344054; text-decoration:none; font-weight:600; font-size:.95em; }
.atab.active { background:#175cd3; color:#fff; }
.panel { background:#fff; border-radius:12px; box-shadow:0 6px 22px rgba(16,24,40,.07); border:1px solid #eaecf0; }
.panel summary { border-radius:12px; }
.frow { display:flex; flex-wrap:wrap; gap:12px; margin-bottom:12px; }
.frow label { flex:1; min-width:160px; }
.badge { display:inline-block; padding:2px 10px; border-radius:20px; font-size:.8em; font-weight:600; }
.badge-on  { background:#ecfdf3; color:#027a48; }
.badge-off { background:#fef3f2; color:#b42318; }
.btn-sm { display:inline-block; padding:5px 11px; font-size:.84em; border-radius:6px; background:#344054; color:#fff; border:0; cursor:pointer; text-decoration:none; }
.btn-warn   { background:#b54708; }
.btn-danger { background:#b42318; }

@media (max-width: 700px) {
	.logo img { width: 52px; height: 22px; }
	.logo { font-size: 0.94rem; gap: 8px; }
	.nav-links { gap: 12px; font-size: 0.92rem; }
}
