:root { --ink: #1a1a1a; --muted: #6b6b6b; --line: #e7e5e0; --bg: #faf9f6; --accent: #1a1a1a; }
* { box-sizing: border-box; }
body { margin: 0; font: 15px/1.5 Georgia, "Times New Roman", serif; color: var(--ink); background: var(--bg); }
a { color: inherit; }
.bar { display: flex; align-items: center; justify-content: space-between; padding: 18px 32px; border-bottom: 1px solid var(--line); background: #fff; }
.logo { font-size: 22px; font-style: italic; text-decoration: none; }
.cart-link { font: 14px system-ui, sans-serif; text-decoration: none; border: 1px solid var(--ink); padding: 6px 14px; border-radius: 999px; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 32px; }
h1 { font-weight: normal; font-size: 34px; margin: 0 0 20px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.product { background: #fff; border: 1px solid var(--line); padding: 14px; }
.product .img { aspect-ratio: 1; margin-bottom: 12px; }
.product h3 { font-weight: normal; margin: 0; font-size: 17px; }
.product p { margin: 4px 0 12px; color: var(--muted); font-family: system-ui, sans-serif; }
.btn { font: 600 14px system-ui, sans-serif; background: var(--accent); color: #fff; border: 0; padding: 10px 16px; cursor: pointer; }
.btn:disabled { opacity: .6; }
.btn.ghost { background: none; color: var(--ink); border: 1px solid var(--ink); }
.checkout { display: grid; grid-template-columns: 1fr 380px; gap: 32px; align-items: start; }
@media (max-width: 820px) { .checkout { grid-template-columns: 1fr; } .wrap, .bar { padding-left: 16px; padding-right: 16px; } }
.panel { background: #fff; border: 1px solid var(--line); padding: 20px; }
.lines { list-style: none; margin: 0; padding: 0; font-family: system-ui, sans-serif; font-size: 14px; }
.line { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.thumb { width: 52px; height: 52px; flex: none; }
.line-name { flex: 1; } .line-name small { display: block; color: var(--muted); }
.qty { width: 22px; height: 22px; border: 1px solid var(--line); background: #fff; cursor: pointer; margin: 0 6px; }
.sum-row { display: flex; justify-content: space-between; padding: 6px 0; font-family: system-ui, sans-serif; font-size: 14px; }
.sum-row.discount { color: #1d7a3a; }
.sum-row.grand { font-size: 18px; font-weight: 700; border-top: 1px solid var(--line); margin-top: 8px; padding-top: 12px; }
.coupon { font-family: system-ui, sans-serif; font-size: 14px; margin: 14px 0; }
.coupon form { display: flex; gap: 8px; }
.coupon input { flex: 1; padding: 10px; border: 1px solid #cfccc5; font: inherit; }
.form-message { min-height: 20px; margin-top: 6px; font-size: 13px; }
.form-message.is-error { color: #b3261e; } .form-message.is-success { color: #1d7a3a; }
.applied-chip { display: inline-flex; gap: 8px; align-items: center; background: #eef6f0; padding: 4px 8px; font-size: 13px; }
.applied-chip button { border: 0; background: none; text-decoration: underline; cursor: pointer; font: inherit; color: var(--muted); }
.devbox { margin-top: 24px; font: 13px system-ui, sans-serif; color: var(--muted); border: 1px dashed #cfccc5; padding: 12px; }

.demo-banner { background: #1d1d1f; color: #f5f5f7; font: 13px/1.4 system-ui, sans-serif; text-align: center; padding: 8px 16px; }
.demo-banner a { color: #8fd19e; }
