:root {
  --bg: #F8F6F3;
  --surface: #FFFFFF;
  --log: #FBFAF8;
  --ink: #1C1917;
  --ink-2: #44403C;
  --muted: #78716C;
  --faint: #A8A29E;
  --line: #EBE6E0;
  --field: #F4F1ED;
  --online: #22A060;
  --orange: #C2410C;
  --accent: #00769C;
  --accent-soft: #E6F7FE;
  --accent-ink: #005776;
  --display: "Bricolage Grotesque", "Figtree", system-ui, sans-serif;
  --shadow: 0 30px 70px -40px rgba(28, 25, 23, 0.35), 0 2px 8px -4px rgba(28, 25, 23, 0.08);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Figtree", "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
button, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.round-btn {
  width: 42px;
  height: 42px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: var(--field);
  color: var(--ink);
  text-decoration: none;
  transition: background-color 0.15s ease;
}
.round-btn:hover { background: #ECE7E1; }
.round-btn.tinted { background: var(--accent-soft); color: var(--accent-ink); }
.round-btn.tinted:hover { filter: brightness(0.97); }

/* ---------- page frame ---------- */
.page { height: 100vh; height: 100dvh; display: flex; flex-direction: column; }
.topbar { display: none; }
.layout { flex: 1; min-height: 0; display: flex; }
.profile { display: none; }

.chat {
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: var(--surface);
}

/* Tablets: the phone layout, centred */
@media (min-width: 700px) and (max-width: 1023px) {
  .layout { padding: 20px; justify-content: center; }
  .chat { max-width: 680px; border: 1px solid var(--line); border-radius: 28px; overflow: hidden; box-shadow: var(--shadow); }
}

/* Desktop: site bar, business card on the left, chat on the right */
@media (min-width: 1024px) {
  .topbar {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 14px 32px;
  }
  .layout {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 32px 28px;
    gap: 24px;
  }
  .profile { display: flex; align-items: flex-start; flex: none; width: 360px; min-height: 0; }
  .profile-card { max-height: 100%; }
  .chat { border: 1px solid var(--line); border-radius: 28px; overflow: hidden; box-shadow: var(--shadow); }
  .chat-head .back-btn, .demo-bar, .intro { display: none !important; }
}

.topbar-left, .topbar-right { display: flex; align-items: center; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 19px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); text-decoration: none; }
.brand img { border-radius: 9px; }
.demo-pill { padding: 8px 14px; border-radius: 999px; background: #EFEAE4; color: var(--ink-2); font-size: 14px; font-weight: 600; }
.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--orange);
  color: #FFFFFF;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}
.cta-btn:hover { background: #A8380A; }
.text-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px; color: var(--ink-2); font-size: 15px; font-weight: 600; text-decoration: none; }
.text-link:hover { background: #EFEAE4; }

/* ---------- business card (desktop) ---------- */
.profile-card {
  width: 100%;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
  scrollbar-width: none;
}
.profile-card::-webkit-scrollbar { display: none; }
.profile-photo { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; background: #E9E2D8; }
.profile-brand { display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 10; background: linear-gradient(140deg, #FFE7D6 0%, #FFF4EC 55%, #FBEADC 100%); }
.profile-brand img { width: 96px; height: 96px; border-radius: 24px; box-shadow: 0 18px 40px -18px rgba(194, 65, 12, 0.55); }
.profile-body { display: flex; flex-direction: column; gap: 10px; padding: 20px 22px 24px; }
.profile-logo { width: 80px; height: 80px; margin: -62px 0 2px; border: 4px solid var(--surface); box-shadow: 0 12px 26px -14px rgba(28, 25, 23, 0.55); }
.profile-kind { font-size: 13px; font-weight: 700; color: var(--accent-ink); }
.profile-body h2 { margin: 0; font-family: var(--display); font-size: 28px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; }
.profile-body p { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.5; }
.skills { list-style: none; display: flex; flex-direction: column; gap: 8px; margin: 6px 0 0; padding: 0; }
.skills li { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--ink-2); }
.skills li i { width: 22px; height: 22px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); }
.hours { display: flex; align-items: center; gap: 8px; margin-top: 4px !important; color: var(--muted) !important; font-size: 14px !important; }

/* ---------- chat header ---------- */
.demo-bar {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 44px;
  padding: 0 6px 0 16px;
  background: var(--ink);
  color: #E7E5E4;
  font-size: 13px;
}
.demo-bar span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.demo-bar a { flex: none; display: flex; align-items: center; gap: 5px; min-height: 44px; padding: 0 10px; color: #FDBA74; font-weight: 700; text-decoration: none; }

.chat-head {
  flex: none;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 68px;
  padding: 10px 14px 10px 6px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
@media (min-width: 1024px) { .chat-head { padding: 14px 18px; min-height: 76px; } }
.back-btn { width: 40px; height: 44px; flex: none; display: flex; align-items: center; justify-content: center; color: var(--ink); text-decoration: none; border-radius: 12px; }
.back-btn:hover { background: var(--field); }
.avatar { width: 44px; height: 44px; flex: none; border-radius: 50%; overflow: hidden; background: var(--field); }
.avatar > .logo { width: 100%; height: 100%; }

/* The business logo, round. Our own logo keeps its rounded square, on white. */
.logo { display: block; flex: none; border-radius: 50%; overflow: hidden; background: var(--accent); }
.logo img { width: 100%; height: 100%; object-fit: cover; }
.logo.inset { display: grid; place-items: center; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.logo.inset img { width: 64%; height: 64%; border-radius: 24%; }
.who { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.who h1 { margin: 0; font-family: var(--display); font-size: 18px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.status { margin: 0; display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; }
.status span:last-child { overflow: hidden; text-overflow: ellipsis; }
.dot { width: 7px; height: 7px; flex: none; border-radius: 50%; background: var(--online); box-shadow: 0 0 0 3px rgba(34, 160, 96, 0.16); }

/* ---------- while the page loads ---------- */
.is-loading .avatar { background: #EFEAE4; }
.is-loading .who h1 { width: 160px; max-width: 70%; height: 18px; border-radius: 6px; background: #EFEAE4; }
.is-loading .status { visibility: hidden; }
.profile:empty::before { content: ""; width: 100%; height: 560px; border-radius: 28px; background: #EFEAE4; }
.loader { margin: auto; display: flex; gap: 7px; }
.loader i { width: 9px; height: 9px; border-radius: 50%; background: #D6CFC7; animation: blink 1.2s infinite ease-in-out both; }
.loader i:nth-child(2) { animation-delay: 0.15s; }
.loader i:nth-child(3) { animation-delay: 0.3s; }

/* ---------- conversation ---------- */
.log {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 14px 18px;
  background: var(--log);
}
@media (min-width: 1024px) { .log { padding: 24px 28px; } }
.log > .spacer { flex: 1 0 0; }

/* Phones: the business introduces itself, like the top of a profile */
.intro { flex: none; display: flex; flex-direction: column; align-items: center; margin: 6px 0 14px; padding: 0 8px; text-align: center; }
.intro-logo { width: 76px; height: 76px; margin-bottom: 10px; box-shadow: 0 14px 30px -16px rgba(28, 25, 23, 0.5); }
.intro-name { font-family: var(--display); font-size: 20px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }
.intro-kind { margin-top: 2px; color: var(--muted); font-size: 13px; }
.intro-about { max-width: 310px; margin: 8px 0 0; color: var(--ink-2); font-size: 14px; line-height: 1.45; }
.intro-skills { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 12px 0 0; padding: 0; }
.intro-skills li { display: inline-flex; align-items: center; gap: 5px; padding: 5px 11px 5px 9px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink-2); font-size: 12.5px; font-weight: 600; }
.intro-skills svg { flex: none; color: var(--accent); }

.day { flex: none; align-self: center; margin: 4px 0; padding: 4px 11px; border-radius: 999px; background: #EFEAE4; color: var(--muted); font-size: 12px; font-weight: 600; }

.msg {
  flex: none;
  max-width: min(84%, 520px);
  padding: 10px 14px;
  font-size: 15.5px;
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.msg.client { align-self: flex-end; background: var(--accent); color: #FFFFFF; border-radius: 20px 20px 6px 20px; }
.msg.bot { align-self: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: 20px 20px 20px 6px; }
.msg.client + .msg.bot, .msg.bot + .msg.client, .card + .msg.client, .choices + .msg.client { margin-top: 8px; }
/* An order sent from the catalogue: the product, with its photo */
.msg.order { display: flex; align-items: center; gap: 10px; padding: 6px 16px 6px 6px; white-space: normal; }
.msg.order .pic { width: 48px; height: 48px; flex: none; border-radius: 15px; }
.order-info { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.order-info b { font-size: 15px; font-weight: 700; line-height: 1.25; }
.order-info span { font-size: 13.5px; opacity: 0.85; }

.new { animation: rise 0.22s ease-out; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }

.typing {
  flex: none;
  align-self: flex-start;
  display: flex;
  align-items: center;
  gap: 5px;
  height: 42px;
  padding: 0 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px 20px 20px 6px;
}
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); animation: blink 1.2s infinite ease-in-out both; }
.typing i:nth-child(2) { animation-delay: 0.15s; }
.typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes blink { 0%, 80%, 100% { opacity: 0.35; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }

/* cards the assistant shows */
.card { flex: none; align-self: flex-start; width: min(330px, 90%); background: var(--surface); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.card-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; }
.card-icon { width: 34px; height: 34px; flex: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--accent-soft); color: var(--accent-ink); }
.card-titles { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.card-title { font-size: 15px; font-weight: 700; }
.card-sub { color: var(--muted); font-size: 12.5px; }
.card-rows { display: flex; flex-direction: column; padding: 0 14px; border-top: 1px solid var(--line); }
.card-row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid #F3EFEA; font-size: 14px; }
.card-row:last-child { border-bottom: 0; }
.card-row span:first-child { flex: none; color: var(--muted); }
.card-row span:last-child { min-width: 0; font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.card-foot { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: var(--accent-soft); color: var(--accent-ink); font-size: 13px; font-weight: 600; }
.card-foot svg { flex: none; }
.pending-dot { width: 7px; height: 7px; flex: none; border-radius: 50%; background: var(--accent); }

.slots { display: flex; flex-direction: column; gap: 10px; padding: 12px 12px 4px; }
.slots-title { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; }
.slots-title svg { color: var(--accent-ink); }
.slot-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.slot { min-height: 54px; display: flex; flex-direction: column; justify-content: center; gap: 1px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); text-align: left; }
.slot small { color: var(--muted); font-size: 12px; }
.slot b { font-size: 15px; font-weight: 700; }
.slot:hover { border-color: var(--accent); }
.slot[aria-pressed="true"] { border: 1.5px solid var(--accent); background: var(--accent-soft); color: var(--accent-ink); }
.slot[aria-pressed="true"] small { color: var(--accent-ink); }
.more { min-height: 44px; border: 0; background: none; color: var(--accent-ink); font-size: 13.5px; font-weight: 700; }

/* A saved request opens again: the card is a button */
.card.summary { padding: 0; color: inherit; text-align: left; font: inherit; transition: box-shadow 0.15s ease, transform 0.15s ease; }
.card.summary:hover { box-shadow: 0 16px 34px -24px rgba(28, 25, 23, 0.5); }
.card.summary:active { transform: scale(0.99); }
.card-more { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; border-top: 1px solid var(--line); color: var(--accent-ink); font-size: 13.5px; font-weight: 700; }
.request-view { display: flex; flex-direction: column; gap: 4px; }
.request-view .card-head { padding: 4px 0 12px; }
.request-view .card-rows { padding: 0 0 14px; }
.request-view .card-foot { border-radius: 16px; }
.request-photo { margin: 0 0 14px; border-radius: 18px; overflow: hidden; background: var(--field); }
.request-photo .pic { aspect-ratio: 16 / 10; }

.choices { flex: none; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 2px; }
.choice {
  min-height: 42px;
  padding: 0 16px;
  border: 1.5px solid var(--accent);
  border-radius: 999px;
  background: var(--surface);
  color: var(--accent-ink);
  font-size: 14.5px;
  font-weight: 600;
  transition: background-color 0.15s ease;
}
.choice:hover { background: var(--accent-soft); }

.notice { flex: none; align-self: flex-end; display: flex; align-items: center; gap: 8px; color: #B42318; font-size: 13px; }
.notice button { min-height: 36px; padding: 0 12px; border: 0; border-radius: 999px; background: #FEE4E2; color: #912018; font-weight: 700; }

.empty { margin: auto; max-width: 320px; display: flex; flex-direction: column; align-items: center; gap: 14px; color: var(--muted); font-size: 15px; line-height: 1.5; text-align: center; }
.empty a, .empty button { min-height: 44px; padding: 0 18px; border: 0; border-radius: 999px; background: var(--ink); color: #FFFFFF; font-weight: 700; display: inline-flex; align-items: center; text-decoration: none; }

/* ---------- composer ---------- */
.composer { flex: none; display: flex; flex-direction: column; gap: 4px; padding: 10px 12px calc(4px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--surface); }
@media (min-width: 1024px) { .composer { padding: 14px 20px 8px; } }
.composer form { display: flex; align-items: flex-end; gap: 8px; }
.composer textarea {
  flex: 1;
  min-width: 0;
  height: 48px;
  max-height: 140px;
  margin: 0;
  padding: 13px 18px;
  border: 1px solid transparent;
  border-radius: 24px;
  background: var(--field);
  font-size: 16px;
  line-height: 22px;
  resize: none;
  outline: none;
  overflow-y: hidden;
  scrollbar-width: none;
}
.composer textarea.tall { overflow-y: auto; }
.composer textarea::placeholder { color: var(--faint); }
.composer textarea:focus { border-color: var(--accent); background: var(--surface); }
.send { width: 48px; height: 48px; flex: none; display: flex; align-items: center; justify-content: center; border: 0; border-radius: 50%; background: var(--accent); color: #FFFFFF; transition: transform 0.15s ease, opacity 0.15s ease; }
.send:active { transform: scale(0.94); }
.send:disabled { opacity: 0.45; cursor: default; }
.powered { align-self: center; display: flex; align-items: center; gap: 6px; min-height: 30px; padding: 0 8px; color: var(--faint); font-size: 11.5px; text-decoration: none; }

/* ---------- restart sheet ---------- */
.sheet {
  width: min(400px, calc(100% - 32px));
  padding: 0;
  border: 0;
  border-radius: 24px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 40px 90px -30px rgba(28, 25, 23, 0.45);
}
.sheet::backdrop { background: rgba(28, 25, 23, 0.42); }
.sheet form { padding: 24px; }
.sheet h2 { margin: 0; font-family: var(--display); font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.sheet p { margin: 8px 0 0; color: var(--muted); font-size: 15px; line-height: 1.5; }
.sheet-actions { display: flex; gap: 10px; margin-top: 20px; }
.sheet-btn { flex: 1; min-height: 48px; border: 0; border-radius: 14px; background: var(--field); font-size: 15px; font-weight: 700; }
.sheet-btn.primary { background: var(--ink); color: #FFFFFF; }
@media (max-width: 640px) {
  .sheet { margin: auto auto 0; width: 100%; max-width: none; border-radius: 24px 24px 0 0; }
  .sheet form { padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
}

/* ---------- catalogue ---------- */
/* Phones: one clear way into the catalogue, just above the message box */
.catalog-bar { margin-bottom: 8px; }
@media (min-width: 1024px) { .catalog-bar { display: none !important; } }
/* While typing on a phone, the keyboard needs the room. */
.composer.is-focused .catalog-bar { display: none; }
.shop-bar {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 8px 8px 8px 10px;
  border: 0;
  border-radius: 18px;
  background: var(--accent-soft);
  color: var(--ink);
  text-align: left;
  transition: transform 0.15s ease;
}
.shop-bar:active { transform: scale(0.985); }
.shop-thumbs { flex: none; display: flex; }
.shop-bar .shop-thumb { width: 38px; height: 38px; border-radius: 50%; box-shadow: 0 0 0 2.5px var(--accent-soft); }
.shop-bar .shop-thumb + .shop-thumb { margin-left: -13px; }
.shop-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.shop-text b { color: var(--accent-ink); font-size: 15px; font-weight: 700; line-height: 1.2; }
.shop-text span { color: var(--ink-2); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shop-cta { flex: none; display: inline-flex; align-items: center; gap: 2px; height: 38px; padding: 0 10px 0 16px; border-radius: 999px; background: var(--accent); color: #FFFFFF; font-size: 14px; font-weight: 700; }

/* The catalogue: in the left column on desktop, in a sheet on phones */
.profile.wide { width: 420px; }
.catalog { display: flex; flex-direction: column; gap: 14px; min-height: 0; }
/* In the left column the panel scrolls: nothing in it may shrink. */
.catalog > * { flex: none; }
.profile .catalog { width: 100%; max-height: 100%; padding: 20px; overflow-y: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 28px; scrollbar-width: none; }
.profile .catalog::-webkit-scrollbar { display: none; }
.catalog-shop { display: flex; align-items: center; gap: 14px; padding-bottom: 2px; }
.shop-logo { width: 58px; height: 58px; }
.catalog-shop-text { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.catalog-shop h2 { margin: 0; font-family: var(--display); font-size: 24px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.catalog-shop span { color: var(--muted); font-size: 13.5px; }
.catalog-search { display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 14px; border-radius: 14px; background: var(--field); color: var(--faint); }
.catalog-search input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; outline: none; color: var(--ink); font: inherit; font-size: 16px; }
.catalog-cats { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -2px; padding: 0 2px 2px; }
.catalog-cats::-webkit-scrollbar { display: none; }
.cat-chip { flex: none; min-height: 38px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink-2); font-size: 14px; font-weight: 600; white-space: nowrap; }
.cat-chip[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: #FFFFFF; }
.catalog-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
@media (min-width: 600px) and (max-width: 1023px) { .sheet .catalog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.catalog-empty { grid-column: 1 / -1; padding: 24px 8px; color: var(--muted); font-size: 15px; text-align: center; }

/* A product: the photo with a "+", its name and its lowest price */
.tile { display: flex; flex-direction: column; gap: 2px; padding: 0; border: 0; background: none; color: var(--ink); text-align: left; }
.tile-media { position: relative; display: block; margin-bottom: 8px; border-radius: 18px; overflow: hidden; background: var(--field); transition: transform 0.15s ease; }
.tile .pic { aspect-ratio: 1 / 1; }
.tile .pic img { transition: transform 0.3s ease; }
.tile:hover .pic img { transform: scale(1.04); }
.tile:active .tile-media { transform: scale(0.98); }
.tile-add { position: absolute; right: 8px; bottom: 8px; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, 0.95); color: var(--accent-ink); box-shadow: 0 6px 16px -6px rgba(28, 25, 23, 0.45); }
.tile b { font-size: 14.5px; font-weight: 700; line-height: 1.25; }
.tile-price { color: var(--accent-ink); font-size: 13.5px; font-weight: 600; }

.pic { position: relative; display: block; width: 100%; overflow: hidden; background: var(--accent-soft); }
.pic img { width: 100%; height: 100%; object-fit: cover; }
.pic .ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--accent); background: linear-gradient(145deg, var(--accent-soft), #FFFFFF); }

/* products the assistant shows in the chat */
.products { flex: none; align-self: stretch; display: flex; gap: 12px; margin: 0 -14px; padding: 2px 14px 6px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 14px; scrollbar-width: none; }
.products::-webkit-scrollbar { display: none; }
@media (min-width: 1024px) { .products { margin: 0 -28px; padding: 2px 28px 6px; scroll-padding: 0 28px; } }
.products .tile { flex: 0 0 148px; scroll-snap-align: start; }

/* sheets */
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 16px 10px 20px; }
.sheet-head h2 { margin: 0; }
.sheet-title { min-width: 0; display: flex; align-items: center; gap: 12px; }
.sheet-title .logo { width: 44px; height: 44px; }
.sheet-title h2 { font-size: 21px; line-height: 1.1; }
.sheet .sheet-title p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.sheet-body { padding: 8px 20px 24px; overflow-y: auto; }
.sheet.full[open] { display: flex; flex-direction: column; width: min(760px, calc(100% - 32px)); height: min(86vh, 900px); }
.sheet.full .sheet-body { flex: 1; min-height: 0; }
@media (max-width: 640px) {
  .sheet.full[open] { width: 100%; height: 92vh; }
}
.sheet.product { width: min(460px, calc(100% - 32px)); }
@media (max-width: 640px) { .sheet.product { width: 100%; max-height: 92vh; } }
.product-view { position: relative; max-height: 92vh; overflow-y: auto; }
.product-close { position: absolute; top: 12px; right: 12px; z-index: 2; background: rgba(255, 255, 255, 0.92); }
.product-media.pic { aspect-ratio: 1 / 1; max-height: 44vh; }
.product-info { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 20px; }
.product-cat { color: var(--accent-ink); font-size: 13px; font-weight: 700; }
.product-info h2 { margin: 0; font-family: var(--display); font-size: 26px; font-weight: 800; letter-spacing: -0.03em; }
.product-info p { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.5; }
.product-info .product-notice { color: var(--muted); font-size: 13.5px; }
.options { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; margin-top: 6px; }
.option { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-height: 56px; padding: 8px 12px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--surface); text-align: left; }
.option small { color: var(--muted); font-size: 13px; }
.option b { font-size: 16px; }
.option[aria-checked="true"] { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); }
.option[aria-checked="true"] small { color: var(--accent-ink); }
/* Quantity and order: always visible at the bottom of the sheet */
.product-bar { position: sticky; bottom: 0; z-index: 1; display: flex; align-items: center; gap: 10px; padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); }
.qty { flex: none; display: flex; align-items: center; gap: 2px; padding: 4px; border-radius: 999px; background: var(--field); }
.qty button { width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--surface); font-size: 20px; line-height: 1; }
.qty output { min-width: 26px; text-align: center; font-weight: 700; }
.order-btn { flex: 1; min-width: 0; min-height: 52px; border: 0; border-radius: 999px; background: var(--accent); color: #FFFFFF; font-size: 16px; font-weight: 700; white-space: nowrap; }
.order-btn:hover { filter: brightness(1.08); }

@media (prefers-reduced-motion: reduce) {
  .new, .typing i { animation: none; }
}
