/* Stylesheet nhỏ cho web-shop (mobile-first). Không có bản CSS build của site công khai trong repo (dist/ không được git theo dõi). */
:root { --fg: #1f2933; --muted: #5c6b77; --line: #d9e0e6; --accent: #1a7f37; --accent-fg: #fff; --bg: #fff; --warn: #b42318; --ok-bg: #e8f5ec; --err-bg: #fdecea; }
* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--fg); background: var(--bg); }
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.top a { color: inherit; text-decoration: none; font-weight: 600; margin-right: 12px; }
.top nav a:last-child { margin-right: 0; }
main { max-width: 720px; margin: 0 auto; padding: 16px; }
h1 { font-size: 1.5rem; margin: 0 0 12px; }
h2 { font-size: 1.15rem; margin: 20px 0 8px; }
a { color: var(--accent); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid #1d4ed8; outline-offset: 2px; }
.btn, button { display: inline-block; min-height: 44px; padding: 10px 18px; border: 1px solid var(--accent); border-radius: 8px; background: var(--accent); color: var(--accent-fg); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.btn.secondary, button.secondary { background: #fff; color: var(--accent); }
button.link { min-height: 0; padding: 0; border: 0; background: none; color: var(--warn); text-decoration: underline; font-weight: 400; }
button[disabled], button[aria-disabled=true] { opacity: .5; cursor: not-allowed; }
form.inline { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.stack > * { margin-bottom: 12px; }
fieldset { border: 1px solid var(--line); border-radius: 8px; padding: 12px; margin: 0 0 16px; }
legend { font-weight: 600; padding: 0 6px; }
.field { display: flex; flex-direction: column; gap: 4px; margin: 0 0 12px; }
.field label { font-weight: 600; }
input:not([type=radio]):not([type=checkbox]), textarea { width: 100%; min-height: 44px; padding: 8px 10px; border: 1px solid #8794a0; border-radius: 8px; font: inherit; }
.opt { margin: 0 0 8px; }
.opt label { display: flex; gap: 8px; align-items: flex-start; }
.opt input { margin-top: 5px; min-width: 18px; min-height: 18px; }
.hint, .warn { color: var(--muted); font-size: .9rem; }
.warn { color: var(--warn); }
.notice { padding: 10px 12px; border-radius: 8px; margin: 0 0 12px; }
.notice.ok { background: var(--ok-bg); }
.notice.error { background: var(--err-bg); color: var(--warn); }
.lines, .orders { list-style: none; margin: 0 0 16px; padding: 0; }
.lines li { display: grid; grid-template-columns: 64px 1fr; gap: 4px 12px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: center; }
.lines img, .noimg { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; background: #eef2f5; display: block; }
.lines .info { display: flex; flex-direction: column; }
.lines .ctl { grid-column: 2; display: flex; align-items: center; gap: 16px; }
.lines .total { grid-column: 2; font-weight: 600; }
.qty { display: inline-flex; align-items: center; gap: 8px; }
.qty button { min-width: 44px; padding: 8px; }
.qty output { min-width: 2ch; text-align: center; }
.orders li { display: flex; flex-wrap: wrap; gap: 4px 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.quote { width: 100%; border-collapse: collapse; margin: 0 0 12px; }
.quote th { text-align: left; font-weight: 400; padding: 6px 0; }
.quote td { text-align: right; padding: 6px 0; }
.quote .grand th, .quote .grand td { font-weight: 700; border-top: 2px solid var(--fg); }
.subtotal { font-size: 1.1rem; }
@media (min-width: 640px) {
  .lines li { grid-template-columns: 64px 1fr auto auto; }
  .lines .ctl, .lines .total { grid-column: auto; }
}

/* Community forms retain the existing storefront tokens and keyboard flow. */
select { width: 100%; min-height: 44px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; font: inherit; color: var(--fg); background: var(--bg); }
select:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
summary { min-height: 44px; padding: 10px 0; cursor: pointer; }
.recipe-text { white-space: pre-wrap; overflow-wrap: anywhere; }
main, fieldset, .field { min-width: 0; }
.top { flex-wrap: wrap; }

.community-image { display: block; width: 100%; max-width: 640px; height: auto; aspect-ratio: 4 / 3; object-fit: contain; margin: 12px 0; }
