/* Scoped recreation of Haochen's SwiftUI Figma components and Tokens.swift. */
@font-face { font-family: 'AllerEase Jost'; src: url('demo-assets/Jost.ttf') format('truetype'); font-weight: 100 900; font-display: swap; }
.hero-demo > .ae-demo { grid-area: 2 / 1; width: min(100%, 405px); justify-self: end; align-self: start; margin-top: calc(56% + 22px); min-width: 0; position: relative; }
.ae-demo { --ae-teal:#59c0d1; --ae-teal-dark:#30b1c7; --ae-ink:#1a1a1a; --ae-muted:#868686; color:var(--ae-ink); font: 15px/1.4 'AllerEase Jost',sans-serif; }
.ae-demo *, .ae-demo *::before, .ae-demo *::after { box-sizing: border-box; }
.ae-demo .ae-demo-note { margin:8px 8px 12px; color:#686868; font:12px/1.5 'AllerEase Jost',sans-serif; }
.ae-demo .ae-app { position:relative; isolation:isolate; display:flex; flex-direction:column; height:720px; max-height: min(800px, 88svh); min-height:460px; overflow:hidden; background:#fff; border:1px solid #e6e6e6; border-radius:18px; box-shadow:0 16px 48px rgb(26 26 26 / 10%); }
.ae-demo button,.ae-demo input { font:inherit; }
.ae-demo button { cursor:pointer; color:inherit; border:0; background:none; text-align:inherit; }
.ae-demo button:focus-visible,.ae-demo input:focus-visible,.ae-demo summary:focus-visible { outline:2px solid #157e90; outline-offset:2px; }
.ae-demo h2,.ae-demo h3,.ae-demo h4,.ae-demo p { margin:0; }
.ae-demo svg { width:24px; height:24px; flex-shrink:0; }
.ae-demo .ae-topbar { min-height:54px; flex:none; display:grid; grid-template-columns:65px 1fr 65px; align-items:center; border-bottom:1px solid #d9d9d9; padding:0 8px; background:white; }
.ae-demo .ae-topbar h2 { font-size:17px; line-height:1.2; font-weight:500; text-align:center; outline:0; }
.ae-demo .ae-back { width:44px; height:44px; display:grid; place-items:center; padding:0; }
.ae-demo .ae-topbar .ae-link { font-size:11px; padding:4px; }
.ae-demo .ae-scroll { flex:1; min-height:0; overflow-y:auto; overflow-x:hidden; overscroll-behavior:contain; scrollbar-width:thin; scrollbar-color:#d9d9d9 transparent; }
.ae-demo .ae-content { padding:20px 20px 28px; }
.ae-demo .ae-search-block { padding:16px 20px; border-bottom:1px solid #d9d9d9; }
.ae-demo .ae-search { display:flex; align-items:center; gap:12px; width:100%; height:48px; padding:0 14px; border:1px solid #efefef; border-radius:8px; background:#fbfbfb; color:var(--ae-muted); }
.ae-demo .ae-search svg { width:18px; height:18px; }
.ae-demo .ae-search input { width:100%; min-width:0; border:0; background:none; font-size:17px; color:var(--ae-ink); }
.ae-demo .ae-search input::placeholder { color:#9b9b9b; opacity:1; }
.ae-demo .ae-section-line { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-top:28px; margin-bottom:14px; }
.ae-demo [data-scroll="profile"] .ae-section-line { margin-top:2px; margin-bottom:0; }
.ae-demo .ae-section-line h3 { font-size:20px; font-weight:400; letter-spacing:.02em; text-transform:uppercase; }
.ae-demo .ae-link { color:var(--ae-teal-dark); padding:6px; font-size:13px; font-weight:500; min-height:36px; }
.ae-demo .ae-allergen-group h4 { font-size:18px; font-weight:400; margin:14px 0 10px; }
.ae-demo .ae-flow { display:flex; flex-wrap:wrap; gap:10px; align-items:flex-start; }
.ae-demo .ae-chip { min-height:36px; padding:7px 16px; font-size:15px; line-height:22px; background:#f1f1f1; color:#9b9b9b; border-radius:6px; }
.ae-demo .is-selected { background:var(--ae-teal); color:#fff; }
.ae-demo .ae-hint { display:block; margin-top:3px; font-size:11px; color:#cfcfcf; }
.ae-demo .ae-pinned { flex:none; padding:14px 20px; background:white; }
.ae-demo .ae-pill { display:flex; justify-content:center; align-items:center; width:100%; min-height:50px; padding:8px 20px; text-align:center; border-radius:999px; color:#fff; background:var(--ae-teal); font-size:18px; font-weight:500; }
.ae-demo .ae-pinned p { font-size:13px; color:var(--ae-muted); text-align:center; margin-top:12px; }
.ae-demo .ae-caption { color:var(--ae-muted); font-size:12px; font-style:italic; margin:8px 0 0; }
.ae-demo .ae-store { padding:16px 20px; display:flex; gap:8px; align-items:center; border-bottom:1px solid #d9d9d9; }
.ae-demo .ae-store > span { font-size:22px; flex:1; min-width:0; }
.ae-demo .ae-store svg { color:var(--ae-muted); width:20px; }
.ae-demo .ae-store .ae-link { font-weight:400; }
.ae-demo .ae-collections { display:flex; overflow-x:auto; gap:14px; padding-bottom:6px; overscroll-behavior-x:contain; }
.ae-demo .ae-collection { display:flex; flex:none; gap:14px; width:310px; padding:12px; border:1px solid #e6e6e6; border-radius:12px; align-items:center; }
.ae-demo .ae-collection img { width:104px; height:104px; border-radius:8px; object-fit:cover; }
.ae-demo .ae-collection strong { font-size:18px; font-weight:500; display:block; }
.ae-demo .ae-collection small { font-size:13px; display:block; margin-top:4px; }
.ae-demo .ae-outlined { display:inline-block; color:var(--ae-teal-dark); border:1px solid; border-radius:999px; padding:6px 14px; font-size:13px; margin-top:12px; }
.ae-demo .ae-results-heading { display:flex; align-items:flex-start; gap:12px; margin-top:20px; }
.ae-demo .ae-results-heading h3 { font-size:22px; font-weight:400; line-height:1.25; flex:1; }
.ae-demo .ae-results-heading .ae-link { font-size:17px; font-weight:400; padding-top:2px; }
.ae-demo .ae-unsafe-toggle { font-size:13px; line-height:1.4; color:#e5484d; padding:10px 0 0; }
.ae-demo .ae-grid { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:16px; padding-top:20px; }
.ae-demo .ae-demo-note.ae-price-note { margin: 4px 0 0; }
.ae-demo .ae-price-note + .ae-grid { padding-top: 8px; }
.ae-demo .ae-card-wrap { min-width:0; }
.ae-demo .ae-card { width:100%; padding:0; display:block; overflow:hidden; border-radius:8px; border:1px solid #e6e6e6; background:#fafafa; }
.ae-demo .ae-card-image { position:relative; display:block; aspect-ratio:1.05; background:white; padding:14px; }
.ae-demo .ae-card-image img { width:100%; height:100%; object-fit:contain; display:block; }
.ae-demo .ae-card-image .ae-risk { position:absolute; top:6px; left:6px; max-width:calc(100% - 12px); }
.ae-demo .ae-card-body { display:block; padding:8px 10px 10px; }
.ae-demo .ae-price-line { display:flex; justify-content:space-between; align-items:center; gap:4px; }
.ae-demo .ae-view { padding:3px 16px; min-height:24px; background:var(--ae-teal-dark); border-radius:999px; font-size:11px; color:white; }
.ae-demo .ae-brand { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:var(--ae-muted); font-size:11px; margin-top:4px; }
.ae-demo .ae-card-name { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; font-size:13px; min-height:36px; line-height:18px; }
.ae-demo .ae-unit { display:block; color:#9b9b9b; font-size:11px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; margin-top:2px; }
.ae-demo .ae-tags { display:flex; flex-wrap:wrap; gap:6px; padding-top:8px; }
.ae-demo .ae-tag { color:var(--ae-muted); font-size:11px; padding:3px 9px; border:1px solid #e6e6e6; border-radius:5px; }
.ae-demo .ae-risk { display:inline-block; padding:3px 7px; font-size:11px; border-radius:4px; line-height:1.5; }
.ae-demo .ae-safe { color:#2e9e5b; background:#e3f5ea; }
.ae-demo .ae-caution { color:#1a1a1a; background:#ffcd00; }
.ae-demo .ae-unsafe { color:white; background:#e5484d; }
.ae-demo .ae-empty { text-align:center; padding:32px 0; color:var(--ae-muted); }
.ae-demo .ae-bottom-nav { flex:none; display:flex; border-top:1px solid #efefef; height:60px; background:white; }
.ae-demo .ae-nav-item { flex:1; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:2px; color:var(--ae-muted); font-size:11px; padding:7px 0 3px; }
.ae-demo .ae-nav-item.is-active { color:var(--ae-teal-dark); background:none; }
.ae-demo .ae-detail-image { height:230px; padding:18px 0; display:flex; align-items:center; justify-content:center; }
.ae-demo .ae-detail-image img { height:100%; max-width:100%; object-fit:contain; }
.ae-demo .ae-detail-brand { color:var(--ae-muted); font-size:15px; }
.ae-demo .ae-product-title { font-size:22px; font-weight:500; line-height:1.3; margin-top:2px; }
.ae-demo .ae-muted { color:var(--ae-muted); }
.ae-demo .ae-detail-price { font-size:22px; font-weight:500; color:var(--ae-teal-dark); margin-top:10px; }
.ae-demo [data-scroll="detail"] .ae-risk { margin-top:10px; }
.ae-demo .ae-sale { color:#e5484d; font-size:13px; }
.ae-demo .ae-reasons { font-size:13px; padding-left:18px; margin:6px 0 0; }
.ae-demo .ae-excluded { position:relative; border:1.5px solid var(--ae-teal); border-radius:6px; margin-top:18px; padding:38px 12px 10px; }
.ae-demo .ae-excluded-title { position:absolute; top:0; left:0; padding:5px 10px; font-size:13px; color:white; background:var(--ae-teal); border-radius:4px 0 10px 0; }
.ae-demo .ae-excluded-chip { padding:9px 18px; border-radius:4px; background:#f1f1f1; color:#9b9b9b; font-size:13px; }
.ae-demo .ae-excluded-chip.ae-unsafe { background:#e5484d; color:white; }
.ae-demo .ae-excluded-chip.ae-caution { background:#ffcd00; color:#1a1a1a; }
.ae-demo .ae-align-right { text-align:right; }
.ae-demo .ae-align-right .ae-link { font-size:11px; }
.ae-demo .ae-ingredients { margin-top:26px; }
.ae-demo .ae-ingredients h4 { font-size:15px; font-weight:500; margin-bottom:8px; }
.ae-demo .ae-ingredients p + p { margin-top:12px; }
.ae-demo mark { font-weight:600; padding:0 2px; border-radius:2px; }
.ae-demo .ae-hit-unsafe { color:#e5484d; background:#fde8e8; }
.ae-demo .ae-hit-caution { color:#b88600; background:#fff4cc; }
.ae-demo .ae-hit-safe { color:inherit; background:transparent; }
.ae-demo .ae-nutrition { width:min(260px,100%); border-top:2px solid #1a1a1a; margin:20px 0; padding-top:8px; }
.ae-demo .ae-nutrition h3 { font-size:17px; font-weight:500; }
.ae-demo .ae-nutrition p { font-size:13px; padding:2px 0; }
.ae-demo .ae-nutrition table { width:100%; border-collapse:collapse; font-size:13px; }
.ae-demo .ae-nutrition th,.ae-demo .ae-nutrition td { border-bottom:.5px solid #d9d9d9; padding:3px 0; font-weight:400; text-align:left; }
.ae-demo .ae-nutrition td:last-child { text-align:right; }
.ae-demo .ae-nutrition small { font-size:11px; display:block; margin-top:4px; }
.ae-demo .ae-expandable { border-bottom:1px solid #d9d9d9; }
.ae-demo .ae-expandable summary { cursor:pointer; font-size:20px; text-transform:uppercase; padding:14px 0; }
.ae-demo .ae-expandable summary::marker { color:var(--ae-teal-dark); }
.ae-demo .ae-expandable p { margin-bottom:10px; }
.ae-demo .ae-alternatives { display:flex; overflow-x:auto; gap:12px; }
.ae-demo .ae-alternatives .ae-card-wrap { flex:0 0 150px; }
.ae-demo .ae-detail-actions { display:flex; gap:14px; padding:12px 20px; border-top:1px solid #efefef; flex:none; }
.ae-demo .ae-detail-actions .ae-pill { min-height:46px; font-size:15px; padding:8px 10px; }
.ae-demo .ae-outline { border:1px solid var(--ae-teal-dark); color:var(--ae-teal-dark); background:white; }
.ae-demo .ae-danger { background:#e5484d; }
.ae-demo .ae-filter-content .ae-section-line { margin-top:12px; }
.ae-demo .ae-filter-content .ae-section-line + .ae-flow + .ae-section-line { margin-top:44px; }
.ae-demo .ae-filter-content .ae-section-line h3 { font-size:24px; letter-spacing:.04em; }
.ae-demo .ae-filter-content .ae-chip { min-height:44px; }
.ae-demo .ae-price-band { width:78px; height:78px; padding:8px; border:1px solid #efefef; border-radius:50%; background:#f8f8f8; font-size:13px; text-align:center; }
.ae-demo .ae-price-band.is-selected { color:white; background:var(--ae-teal); border-color:transparent; }
.ae-demo .ae-store-choice { display:flex; flex-direction:column; width:100%; padding:16px; border:1px solid #e6e6e6; border-radius:8px; margin-top:12px; }
.ae-demo .ae-store-choice.is-selected { color:var(--ae-ink); background:#ebfff3; border-color:var(--ae-teal); }
.ae-demo .ae-list-item { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; padding:12px 0; border-bottom:1px solid #efefef; }
.ae-demo .ae-toast { position:absolute; top:58px; left:12px; right:12px; padding:12px 18px; border-radius:24px; color:white; background:#1c1c1ef2; box-shadow:0 4px 15px #0003; text-align:center; z-index:2; }
.ae-demo .ae-image-placeholder { display:flex; width:100%; height:100%; align-items:center; justify-content:center; flex-direction:column; color:var(--ae-teal-dark); font-size:11px; }
.ae-demo .ae-image-placeholder svg { width:50px; height:50px; }
.ae-demo .ae-loading { padding:24px; }
@media (max-width: 960px) {
  .hero-demo > .ae-demo { grid-area: 3 / 1; justify-self: center; margin-top: 38px; }
}
@media(max-width:380px) { .ae-demo .ae-content { padding-left:14px; padding-right:14px; } .ae-demo .ae-grid { gap:12px; } .ae-demo .ae-view { padding-left:10px; padding-right:10px; } .ae-demo .ae-topbar { grid-template-columns:50px 1fr 50px; } }
.ae-demo .ae-scan { display:flex; align-items:center; justify-content:center; gap:8px; width:100%; min-height:48px; background:#f1f1f1; color:#9b9b9b; border-radius:999px; margin-top:18px; font-size:17px; padding:8px; }

/* In-store AR concept video inside the interactive website demo */
.ae-demo .ae-list-navigation { padding:14px 18px; border-top:1px solid #eee; flex:none; }
.ae-demo .ae-list-navigation .ae-pill { width:100%; background:var(--ae-teal); color:white; border-radius:999px; padding:13px 10px; text-align:center; }
.ae-demo .ae-navigation-screen { display:flex; flex-direction:column; flex:1; min-height:0; background:#111; }
.ae-demo .ae-navigation-screen .ae-topbar { background:white; flex:none; }
.ae-demo .ae-navigation-done { color:var(--ae-teal-dark); font-size:15px; padding:8px; }
.ae-demo .ae-navigation-stage { flex:1; min-height:0; display:flex; justify-content:center; align-items:center; overflow:auto; background:#101010; }
.ae-demo .ae-navigation-video { display:block; width:100%; height:100%; max-height:100%; object-fit:contain; background:#111; }
.ae-demo .ae-navigation-disclaimer { flex:none; background:#eaeaea; color:#666; padding:12px 8px; text-align:center; font-size:12px; }

.ae-qty-control {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.ae-qty-btn {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid #55BACA;
  border-radius: 7px;
  background: #fff;
  color: #23A9BF;
  font-size: 18px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.ae-qty-btn:hover {
  background: #e6f8fb;
}
.ae-qty-price {
  font-size: 0.85em;
}
