:root{
  --bg:#f6f8fb;
  --card:#ffffff;
  --text:#0f172a;
  --muted:#475569;
  --line:#e2e8f0;
  --brand:#0b3a77;
  --brand2:#0f4aa0;
  --shadow: 0 10px 30px rgba(2, 8, 23, .08);
  --radius: 14px;
}

*{ box-sizing:border-box; }

body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--text);
  background:var(--bg);
}

a{ color:var(--brand2); text-decoration:none; }
a:hover{ text-decoration:underline; }

.container{
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

.site-header{
  background:#ffffff;
  border-bottom:1px solid var(--line);
}

.site-header .bar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:14px 0;
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:800;
  letter-spacing:.2px;
  color:var(--text);
}

.brand-badge{
  width:38px;
  height:38px;
  border-radius:10px;
  display:grid;
  place-items:center;
  background:linear-gradient(135deg, var(--brand), var(--brand2));
  color:#fff;
  font-weight:800;
  font-size:14px;
}

.nav{
  display:flex;
  gap:14px;
  align-items:center;
  flex-wrap:wrap;
}

.nav a{
  color:var(--muted);
  padding:8px 10px;
  border-radius:10px;
}
.nav a:hover{
  background:rgba(15, 74, 160, .08);
  text-decoration:none;
  color:var(--brand2);
}

main{
  padding: 22px 0 50px;
}

.page-title{
  margin: 14px 0 6px;
  font-size: 44px;
  letter-spacing:-.8px;
  color:var(--brand);
  text-align:center;
}

.page-subtitle{
  margin: 0 0 26px;
  color:var(--muted);
  text-align:center;
  font-size:18px;
}

.grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap:18px;
}

.card{
  background:var(--card);
  border:1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow:hidden;
}

.card-body{
  padding:16px;
}

.product-img{
  width:100%;
  height: 190px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: radial-gradient(circle at 30% 20%, #ffffff, #eef2ff);
  border-bottom:1px solid var(--line);
}

.product-img img{
  max-width: 88%;
  max-height: 88%;
  object-fit: contain;
  filter: drop-shadow(0 12px 18px rgba(2,8,23,.18));
}

.product-title{
  font-size: 20px;
  font-weight: 800;
  margin: 10px 0 6px;
}

.product-desc{
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
  min-height: 38px;
  margin: 0 0 12px;
}

.price{
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 12px;
}

.controls{
  display:flex;
  gap:10px;
  align-items:center;
}

.qty{
  width: 74px;
  padding: 10px 10px;
  border:1px solid var(--line);
  border-radius: 12px;
  background:#fff;
  font-size:14px;
}

.btn{
  display:inline-flex;
  justify-content:center;
  align-items:center;
  gap:8px;
  border:0;
  padding: 12px 14px;
  border-radius: 12px;
  font-weight: 800;
  cursor:pointer;
  transition: transform .06s ease, background .12s ease, box-shadow .12s ease;
}

.btn-primary{
  color:#fff;
  background: linear-gradient(180deg, var(--brand2), var(--brand));
  box-shadow: 0 10px 18px rgba(11,58,119,.22);
}

.btn-primary:hover{
  filter: brightness(1.03);
  text-decoration:none;
}

.btn-danger{
  color:#fff;
  background: linear-gradient(180deg, #b91c1c, #7f1d1d);
  box-shadow: 0 10px 18px rgba(127,29,29,.22);
}

.btn-danger:hover{
  filter: brightness(1.03);
  text-decoration:none;
}

.btn-secondary{
  color: var(--brand);
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: 0 10px 18px rgba(2,8,23,.08);
}

.btn-secondary:hover{
  text-decoration:none;
  border-color: rgba(15, 74, 160, .25);
}

.btn:active{
  transform: translateY(1px);
}

.table{
  width:100%;
  border-collapse: collapse;
  background:#fff;
  border:1px solid var(--line);
  border-radius: var(--radius);
  overflow:hidden;
  box-shadow: var(--shadow);
}

.table th, .table td{
  padding:12px 12px;
  border-bottom: 1px solid var(--line);
  font-size:14px;
}

.table th{
  text-align:left;
  color: var(--muted);
  font-weight:800;
  background:#fafbff;
}

.table tr:last-child td{
  border-bottom:none;
}

.right{ text-align:right; }

.cart-item{
  display:flex;
  align-items:center;
  gap:10px;
}

.cart-thumb{
  width:44px;
  height:44px;
  border-radius:10px;
  border:1px solid var(--line);
  background:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  flex:0 0 auto;
}

.cart-thumb img{
  width:90%;
  height:90%;
  object-fit:contain;
}

.card-footer{
  padding: 14px 16px;
  border-top:1px solid var(--line);
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
}

.kpi{
  font-weight:800;
}

.notice{
  background:#fff;
  border:1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px 16px;
  margin: 0 auto 18px;
  max-width: 820px;
  color: var(--muted);
  line-height:1.4;
}