:root {
  --container: 1200px;
  --accent: #0b7280;
  --muted: #6b7280;
  --card: #ffffff;
  --radius: 14px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { 
  height: 100%; 
  font-family: Inter, system-ui, Segoe UI, Roboto, Arial; 
  background: linear-gradient(180deg, #f8fdff, #f3f9fb); 
  color: #0f172a; 
}

.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }

.site-header { background: var(--card); box-shadow: 0 1px 6px rgba(12, 20, 25, 0.04); position: sticky; top: 0; z-index: 80; }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 12px 20px; }
.brand a { font-weight: 800; color: var(--accent); text-decoration: none; font-size: 18px; }
.main-nav { display: flex; gap: 18px; }
.main-nav a { color: #0f172a; text-decoration: none; font-weight: 700; }

.cart-wrap { padding: 40px 0; }

h1 { font-size: 32px; margin-bottom: 24px; color: var(--accent); }

.cart-items { display: flex; flex-direction: column; gap: 16px; margin-bottom: 30px; }

.cart-row { 
  display: flex; 
  gap: 20px; 
  align-items: center; 
  background: var(--card); 
  padding: 16px; 
  border-radius: var(--radius); 
  box-shadow: 0 6px 20px rgba(9, 30, 40, 0.04); 
}

.cart-img img { 
  width: 100px; 
  height: 100px; 
  object-fit: cover; 
  border-radius: 10px; 
  background: #f3f4f6; 
}

.cart-name { flex: 1; font-weight: 800; font-size: 16px; color: #0f172a; }

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

.qty-btn { 
  width: 32px; 
  height: 32px; 
  border-radius: 8px; 
  border: 1px solid #e0f4f9; 
  background: #fff; 
  cursor: pointer; 
  font-weight: 700; 
  color: var(--muted); 
  transition: all 0.2s;
}
.qty-btn:hover { border-color: var(--accent); color: var(--accent); }

.qty-num { min-width: 30px; text-align: center; font-weight: 800; }

.cart-price { width: 120px; text-align: right; font-weight: 900; color: #ff5252; font-size: 18px; }

.remove-btn { 
  background: #ffe5e5; 
  color: #ff5252; 
  border: none; 
  padding: 8px 12px; 
  border-radius: 8px; 
  cursor: pointer; 
  font-weight: 700; 
  font-size: 13px; 
  margin-left: 10px;
}
.remove-btn:hover { background: #ff5252; color: #fff; }

.cart-footer { 
  background: var(--card); 
  border-radius: var(--radius); 
  box-shadow: 0 6px 20px rgba(9, 30, 40, 0.04); 
  padding: 24px; 
  display: flex; 
  flex-direction: column; 
  align-items: flex-end; 
  gap: 20px; 
}

.summary-row { 
  display: flex; 
  justify-content: flex-end; 
  gap: 20px; 
  font-weight: 800; 
  font-size: 22px; 
  color: #0f172a; 
}

.cart-actions { display: flex; gap: 16px; }

.btn { 
  padding: 12px 24px; 
  border-radius: 12px; 
  font-weight: 800; 
  cursor: pointer; 
  border: none; 
  text-decoration: none; 
  font-size: 16px; 
  transition: opacity 0.2s; 
}

.continue { 
  background: transparent; 
  border: 2px solid #e0f4f9; 
  color: var(--accent); 
}
.continue:hover { background: #e0f4f9; }

.checkout { 
  background: linear-gradient(90deg, #8be8ff, #66a6ff); 
  color: #042; 
}
.checkout:hover { opacity: 0.9; }

.empty { padding: 40px; text-align: center; color: var(--muted); font-weight: 700; font-size: 18px; }

@media(max-width: 720px) {
  .cart-row { flex-direction: column; align-items: flex-start; gap: 12px; }
  .cart-img { display: flex; width: 100%; justify-content: center; margin-bottom: 10px; }
  .cart-img img { width: 120px; height: 120px; }
  .cart-price { width: 100%; text-align: left; font-size: 20px; margin: 10px 0; }
  .qty-btn { width: 40px; height: 40px; }
  
  .cart-footer { align-items: stretch; }
  .summary-row { justify-content: space-between; }
  .cart-actions { flex-direction: column; }
  .btn { text-align: center; width: 100%; }
}
