:root {
  --orange: #e8762c;
  --orange-text: #b4531a;
  --ink: #1c1712;
  --blue: #3a5373;
  --sand: #f6efe7;
  --gray: #776c64;
  --white: #fefcf7;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: Inter, system-ui, sans-serif; color: var(--ink); background: var(--white); }
h1, h2, .brand { font-family: Fredoka, system-ui, sans-serif; }
header { padding: 20px 16px; border-bottom: 3px solid var(--ink); }
.brand { font-size: 26px; font-weight: 700; }
.shelf { max-width: 960px; margin: 0 auto; padding: 24px 16px 140px; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.product { border: 3px solid var(--ink); border-radius: 18px; padding: 16px; background: #fff; }
.product .price { font-weight: 700; color: var(--orange-text); }
.product .sold-out { color: var(--gray); font-size: 14px; }

.bubble { position: fixed; right: 16px; bottom: 16px; width: 72px; height: 56px; border-radius: 16px 16px 16px 0; background: var(--orange); border: 4px solid var(--ink); cursor: pointer; display: grid; place-items: center; }
.bubble .face { width: 54px; height: 36px; border-radius: 11px 11px 11px 4px; background: var(--ink); position: relative; }
.bubble .face::before, .bubble .face::after { content: ""; position: absolute; top: 11px; width: 8px; height: 8px; border-radius: 50%; background: var(--white); }
.bubble .face::before { left: 13px; } .bubble .face::after { right: 13px; }

.panel { position: fixed; right: 16px; bottom: 88px; width: min(380px, calc(100vw - 32px)); height: min(560px, calc(100vh - 120px)); background: var(--white); border: 4px solid var(--ink); border-radius: 20px; display: flex; flex-direction: column; overflow: hidden; }
.panel header { padding: 12px 16px; font-weight: 700; background: var(--sand); }
.messages { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.msg { max-width: 85%; padding: 10px 12px; border-radius: 14px; white-space: pre-wrap; line-height: 1.4; }
.msg.customer { align-self: flex-end; background: var(--blue); color: var(--white); border-bottom-right-radius: 0; }
.msg.assistant { align-self: flex-start; background: #fff; border: 2px solid var(--ink); border-bottom-left-radius: 0; }
.msg.notice { align-self: center; background: var(--sand); font-size: 14px; }
.card { align-self: flex-start; border: 3px solid var(--ink); border-radius: 14px; padding: 12px; background: #fde6d4; display: flex; flex-direction: column; gap: 8px; }
.card a.button, button { font: inherit; font-weight: 600; border-radius: 10px; border: 3px solid var(--ink); padding: 8px 14px; cursor: pointer; background: #fff; color: var(--ink); text-decoration: none; text-align: center; }
.button.strong, button.strong { background: var(--blue); color: var(--white); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 12px 8px; }
.chips button { border-radius: 999px; padding: 6px 12px; font-size: 14px; }
form.send { display: flex; gap: 8px; padding: 12px; border-top: 3px solid var(--ink); }
form.send input { flex: 1; font: inherit; padding: 8px 10px; border: 2px solid var(--ink); border-radius: 10px; }

body.checkout main { max-width: 420px; margin: 48px auto; padding: 24px 16px; border: 4px solid var(--ink); border-radius: 20px; }
body.checkout .total { font-size: 32px; font-weight: 700; }
body.checkout button { background: var(--blue); color: var(--white); width: 100%; font-size: 18px; }
body.checkout .note { color: var(--gray); font-size: 14px; }
