/* Layout: one app column (max 480px) on a blush-to-peach wash; frosted white cards, square tinted product
   tiles, a floating tab bar with a raised berry cart button. Colors come from the Um Raghid logo. */
:root {
  --bg-1: #FCEDEF;
  --bg-2: #FFF4EC;
  --blob-1: rgba(245, 197, 200, .55);
  --blob-2: rgba(255, 206, 173, .45);
  --surface: rgba(255, 255, 255, .74);
  --surface-strong: rgba(255, 255, 255, .9);
  --solid: #FFFFFF;
  --border: rgba(146, 26, 64, .07);
  --ink: #2E1119;
  --ink-2: #6E4A53;
  --ink-3: #A5848B;
  --brand: #921A40;
  --brand-2: #B83A63;
  --brand-ink: #FFFFFF;
  --brand-text: #921A40;
  --brand-soft: #FBE1E6;
  --glow: rgba(146, 26, 64, .45);
  --ok: #2F7A4F;
  --ok-soft: #E1F2E6;
  --pre: #8A4A12;
  --pre-soft: #FFE6D2;
  --tone1: #FDE3E6;
  --tone2: #FFE8D7;
  --tone3: #F7DCDC;
  --tone4: #F6E2EE;
  --tone5: #FBEEE4;
  --shadow-sm: 0 1px 2px rgba(46, 17, 25, .04), 0 8px 24px -14px rgba(146, 26, 64, .28);
  --shadow-lg: 0 18px 40px -18px rgba(46, 17, 25, .35);
  --emo-shadow: drop-shadow(0 10px 10px rgba(46, 17, 25, .18));

  --f: "Readex Pro", "Segoe UI", Tahoma, system-ui, sans-serif;
  --r-lg: 24px;
  --r: 18px;
  --gl: max(16px, env(safe-area-inset-left, 0px));
  --gr: max(16px, env(safe-area-inset-right, 0px));
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg-1: #1A0C11; --bg-2: #22120F; --blob-1: rgba(146, 26, 64, .35); --blob-2: rgba(150, 80, 40, .22);
    --surface: rgba(44, 22, 30, .74); --surface-strong: rgba(48, 24, 32, .92); --solid: #2C161E;
    --border: rgba(255, 220, 228, .07); --ink: #FBEFF1; --ink-2: #CFAEB5; --ink-3: #94727A;
    --brand: #C2335E; --brand-2: #E0577F; --brand-ink: #FFFFFF; --brand-text: #F59AB5; --brand-soft: #4A1A2B;
    --glow: rgba(224, 87, 127, .45); --ok: #8FD3A6; --ok-soft: #1F3A2A; --pre: #FFC993; --pre-soft: #43291A;
    --tone1: #3D1D26; --tone2: #3E271B; --tone3: #3A2125; --tone4: #391E31; --tone5: #35251E;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .25), 0 10px 24px -14px rgba(0, 0, 0, .7);
    --shadow-lg: 0 18px 40px -18px rgba(0, 0, 0, .8);
    --emo-shadow: drop-shadow(0 10px 10px rgba(0, 0, 0, .45));
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg-1: #1A0C11; --bg-2: #22120F; --blob-1: rgba(146, 26, 64, .35); --blob-2: rgba(150, 80, 40, .22);
  --surface: rgba(44, 22, 30, .74); --surface-strong: rgba(48, 24, 32, .92); --solid: #2C161E;
  --border: rgba(255, 220, 228, .07); --ink: #FBEFF1; --ink-2: #CFAEB5; --ink-3: #94727A;
  --brand: #C2335E; --brand-2: #E0577F; --brand-ink: #FFFFFF; --brand-text: #F59AB5; --brand-soft: #4A1A2B;
  --glow: rgba(224, 87, 127, .45); --ok: #8FD3A6; --ok-soft: #1F3A2A; --pre: #FFC993; --pre-soft: #43291A;
  --tone1: #3D1D26; --tone2: #3E271B; --tone3: #3A2125; --tone4: #391E31; --tone5: #35251E;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .25), 0 10px 24px -14px rgba(0, 0, 0, .7);
  --shadow-lg: 0 18px 40px -18px rgba(0, 0, 0, .8);
  --emo-shadow: drop-shadow(0 10px 10px rgba(0, 0, 0, .45));
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; overscroll-behavior-y: none; }
body {
  margin: 0; min-height: 100%;
  background:
    radial-gradient(60vmax 50vmax at 100% 0%, var(--blob-1), transparent 60%),
    radial-gradient(50vmax 50vmax at 0% 100%, var(--blob-2), transparent 60%),
    linear-gradient(165deg, var(--bg-1), var(--bg-2));
  background-attachment: fixed;
  color: var(--ink);
  font: 400 15px/1.55 var(--f);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: none;
}
/* app feel: no text selection or double-tap zoom on controls */
.tab, .btn, .chip, .cbub, .plus, .iconbtn, .step button, .opt, .choice, .linkbtn, .filterbtn, .searchbar, .crow, .pcard-link {
  -webkit-user-select: none; user-select: none; touch-action: manipulation; -webkit-touch-callout: none;
}
button, input, textarea { font: inherit; color: inherit; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--brand-2); outline-offset: 2px; border-radius: 12px; }
h1:focus, h1:focus-visible { outline: none; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ic { width: 22px; height: 22px; flex: none; }
.selectable { user-select: all; direction: ltr; unicode-bidi: isolate; white-space: nowrap; }
.center { text-align: center; }

.app {
  max-width: 480px; margin-inline: auto;
  padding-left: var(--gl); padding-right: var(--gr);
  padding-block: 10px calc(118px + env(safe-area-inset-bottom, 0px));
}
.app.no-tabs { padding-bottom: calc(32px + env(safe-area-inset-bottom, 0px)); }
#view { display: grid; gap: 22px; }
#view > section { display: grid; gap: 12px; min-width: 0; }

.demo {
  justify-self: center; display: table; margin: 0 auto 10px;
  background: var(--brand-soft); color: var(--brand-text);
  font-size: 11.5px; font-weight: 500; padding: 3px 12px; border-radius: 999px;
}

.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); box-shadow: var(--shadow-sm);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: 0; cursor: pointer; text-decoration: none;
  background: linear-gradient(135deg, var(--brand-2), var(--brand));
  color: var(--brand-ink); font-weight: 600; font-size: 15.5px;
  border-radius: 999px; padding: 13px 22px;
  box-shadow: 0 12px 24px -12px var(--glow);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:active { transform: scale(.97); }
.btn.sm { padding: 8px 16px; font-size: 13.5px; }
.btn.block { width: 100%; }
.btn.grow { flex: 1; }
.btn.ghost { background: var(--solid); color: var(--brand-text); box-shadow: var(--shadow-sm); }
.btn.ghost .ic { width: 18px; height: 18px; }
.btn.go { justify-content: space-between; padding-inline: 22px 6px; padding-block: 6px; min-height: 54px; }
.go-ic { width: 42px; height: 42px; border-radius: 50%; background: rgba(255, 255, 255, .2); display: grid; place-items: center; }
.go-ic .ic { width: 20px; height: 20px; }
.linkbtn { background: none; border: 0; cursor: pointer; color: var(--brand-text); font-weight: 600; font-size: 13.5px; text-decoration: none; padding: 6px 4px; }
.center-block { display: block; text-align: center; }

.iconbtn {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: var(--surface-strong); border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  color: var(--ink); cursor: pointer; text-decoration: none;
}
.iconbtn.is-blank { visibility: hidden; }
.iconbtn.is-on { color: var(--brand-text); }
.iconbtn.is-on .ic { fill: currentColor; }
.iconbtn.danger { color: var(--brand-text); width: 38px; height: 38px; }

/* Sub-page bar */
.bar { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.bar h1 { margin: 0; text-align: center; font-size: 18px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar .linkbtn { min-width: 44px; }
.sub { margin: -14px 0 0; color: var(--ink-3); font-size: 13px; }

/* Home top */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.loc { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.loc-ic { width: 40px; height: 40px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-text); display: grid; place-items: center; flex: none; }
.loc-ic .ic { width: 20px; height: 20px; }
.loc-txt { display: grid; min-width: 0; line-height: 1.3; }
.loc-txt small { color: var(--ink-3); font-size: 12px; }
.loc-txt b { font-weight: 600; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.searchrow { display: flex; gap: 10px; }
.searchbar {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px;
  background: var(--surface-strong); border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  border-radius: 18px; padding: 0 14px; height: 52px; color: var(--ink-3); text-decoration: none; font-size: 14px;
}
.searchbar span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.searchbar input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; font-size: 16px; color: var(--ink); height: 100%; }
.searchbar input::placeholder { color: var(--ink-3); }
.searchbar:focus-within { border-color: var(--brand-2); }
.filterbtn {
  width: 52px; height: 52px; border-radius: 18px; display: grid; place-items: center; flex: none;
  background: linear-gradient(135deg, var(--brand-2), var(--brand)); color: var(--brand-ink);
  box-shadow: 0 12px 22px -12px var(--glow);
}

/* Promo banner */
.promo {
  position: relative; display: grid !important; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: center; gap: 0 !important;
  min-height: 150px; padding: 18px 20px; border-radius: var(--r-lg); overflow: hidden;
  background: linear-gradient(120deg, var(--tone1), var(--tone2));
  border: 1px solid var(--border); box-shadow: var(--shadow-sm);
}
.promo::after {
  content: ""; position: absolute; width: 190px; height: 190px; border-radius: 50%;
  inset-inline-end: -40px; bottom: -70px; background: var(--surface); opacity: .7;
}
.promo-txt { position: relative; z-index: 1; display: grid; gap: 12px; justify-items: start; }
.promo h2 { margin: 0; font-size: 18px; font-weight: 600; line-height: 1.35; text-wrap: balance; }
.promo h2 span { display: block; color: var(--brand-text); font-size: 22px; font-weight: 700; }
.promo-art { position: relative; z-index: 1; height: 120px; }
.promo-art span { position: absolute; line-height: 1; filter: var(--emo-shadow); }
.promo-art .pa0 { font-size: 72px; inset-inline-start: 6%; top: 18%; }
.promo-art .pa1 { font-size: 46px; inset-inline-start: 52%; top: 0; rotate: 14deg; }
.promo-art .pa2 { font-size: 40px; inset-inline-start: 56%; top: 58%; rotate: -12deg; }
.promo-art img { width: 100%; height: 100%; object-fit: contain; }

/* Category bubbles */
.cbubs { display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); gap: 14px 10px; }
.cbub { display: grid; justify-items: center; gap: 6px; text-decoration: none; font-size: 12.5px; font-weight: 500; color: var(--ink-2); text-align: center; }
.cbub-ic {
  width: 100%; max-width: 76px; aspect-ratio: 1; border-radius: 22px; display: grid; place-items: center;
  font-size: 34px; background: var(--tone, var(--tone1)); border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  transition: transform .15s ease;
}
.cbub-ic.more { background: var(--surface-strong); color: var(--brand-text); }
.cbub:hover .cbub-ic { transform: translateY(-2px); }
.cbub:active .cbub-ic { transform: scale(.95); }
.tone1 { --tone: var(--tone1); } .tone2 { --tone: var(--tone2); } .tone3 { --tone: var(--tone3); }
.tone4 { --tone: var(--tone4); } .tone5 { --tone: var(--tone5); }

/* Section heads */
.sec-head { display: flex; align-items: center; gap: 10px; }
.sec-head h2 { margin: 0; font-size: 17px; font-weight: 600; display: flex; align-items: center; gap: 6px; flex: 1; }
.sec-head a { color: var(--brand-text); font-size: 13px; font-weight: 600; text-decoration: none; }
.bolt { width: 18px; height: 18px; color: var(--brand-text); fill: currentColor; }
.cd { display: inline-flex; align-items: center; gap: 3px; direction: ltr; font-variant-numeric: tabular-nums; }
.cd b { background: var(--brand-soft); color: var(--brand-text); font-size: 12px; font-weight: 600; border-radius: 7px; padding: 2px 5px; min-width: 24px; text-align: center; }
.cd i { font-style: normal; color: var(--brand-text); font-weight: 700; font-size: 12px; }

/* Product cards */
.pgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.hrow {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(148px, 44%); gap: 12px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  margin-inline: calc(-1 * var(--gr)) calc(-1 * var(--gl)); padding: 2px var(--gr) 14px var(--gl);
  scroll-padding-inline: var(--gr);
}
.hrow::-webkit-scrollbar { display: none; }
.hrow > * { scroll-snap-align: start; }
.pcard {
  position: relative; display: grid; grid-template-rows: 1fr auto; gap: 8px; padding: 10px;
  background: var(--surface-strong); border: 1px solid var(--border); border-radius: 22px; box-shadow: var(--shadow-sm);
  min-width: 0;
}
.pcard-link { display: grid; gap: 2px; text-decoration: none; align-content: start; min-width: 0; }
.media { display: grid; place-items: center; overflow: hidden; background: var(--tone, var(--tone1)); position: relative; }
.media img { width: 100%; height: 100%; object-fit: cover; }
.emo { line-height: 1; filter: var(--emo-shadow); }
.pcard-media { aspect-ratio: 1; border-radius: 16px; margin-bottom: 6px; }
.pcard-media .emo { font-size: clamp(48px, 15vw, 64px); transition: transform .25s ease; }
.pcard:hover .pcard-media .emo { transform: scale(1.06) rotate(-4deg); }
.pcard h3 { margin: 0; font-size: 14px; font-weight: 600; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.unit { font-size: 12px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.off {
  position: absolute; top: 18px; inset-inline-start: 18px;
  background: var(--brand); color: var(--brand-ink); font-size: 11px; font-weight: 600;
  border-radius: 999px; padding: 1px 8px; direction: ltr;
}
.pcard-foot { display: flex; align-items: center; justify-content: space-between; gap: 6px; min-height: 34px; }
.price { font-weight: 700; font-size: 14.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.price s { color: var(--ink-3); font-weight: 400; font-size: 11.5px; }
.pcard-foot .price { display: grid; line-height: 1.2; }
.plus {
  width: 34px; height: 34px; border-radius: 50%; border: 0; cursor: pointer; flex: none;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand-2), var(--brand)); color: var(--brand-ink);
  box-shadow: 0 8px 16px -8px var(--glow);
}
.plus .ic { width: 18px; height: 18px; stroke-width: 2.4; }
.out { font-size: 11.5px; font-weight: 500; color: var(--ink-3); border: 1px dashed var(--ink-3); border-radius: 999px; padding: 2px 8px; white-space: nowrap; }
.out.big { font-size: 14px; padding: 12px 16px; flex: 1; text-align: center; }
.pcard.is-out .media, .pcard.is-out h3 { opacity: .5; }
.pcard.is-out .price { color: var(--ink-3); text-decoration: line-through; }

/* Steppers */
.step { display: inline-flex; align-items: center; gap: 4px; background: var(--solid); border: 1px solid var(--border); border-radius: 999px; padding: 4px; flex: none; }
.step button { width: 38px; height: 38px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center; background: var(--bg-1); color: var(--ink); }
.step button:last-child { background: linear-gradient(135deg, var(--brand-2), var(--brand)); color: var(--brand-ink); }
.step .ic { width: 18px; height: 18px; stroke-width: 2.3; }
.step output { min-width: 26px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.step.sm { padding: 2px; gap: 2px; }
.step.sm button { width: 28px; height: 28px; }
.step.sm .ic { width: 15px; height: 15px; }
.step.sm output { min-width: 20px; font-size: 13.5px; }

/* Categories list */
.crows { display: grid; gap: 12px; }
.crow { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 12px; text-decoration: none; transition: transform .15s ease; }
.crow:active { transform: scale(.98); }
.crow-media { width: 76px; height: 76px; border-radius: 18px; display: grid; place-items: center; font-size: 40px; background: var(--tone); }
.crow-media { filter: none; }
.crow-txt { display: grid; gap: 1px; min-width: 0; }
.crow-txt b { font-weight: 600; font-size: 15.5px; }
.crow-txt small { color: var(--ink-2); font-size: 12.5px; }
.crow-txt em { font-style: normal; color: var(--brand-text); font-size: 12px; font-weight: 500; margin-top: 4px; }
.crow-go { width: 32px; height: 32px; border-radius: 50%; background: var(--bg-1); display: grid; place-items: center; color: var(--ink-2); }
.crow-go .ic { width: 18px; height: 18px; }

/* Chips */
.chips {
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
  margin-inline: calc(-1 * var(--gr)) calc(-1 * var(--gl)); padding: 2px var(--gr) 4px var(--gl);
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; white-space: nowrap; cursor: pointer; text-decoration: none;
  background: var(--surface-strong); border: 1px solid var(--border); color: var(--ink-2);
  border-radius: 999px; padding: 8px 16px; font-size: 13.5px; font-weight: 500;
}
.chip[aria-current="page"], .chip[aria-pressed="true"] {
  background: linear-gradient(135deg, var(--brand-2), var(--brand)); color: var(--brand-ink); border-color: transparent;
}

/* Product details */
.hero-media { aspect-ratio: 1.15; border-radius: 32px; border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.hero-media .emo { font-size: clamp(120px, 40vw, 180px); animation: bob 4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-8px) rotate(-3deg); } }
.pd { display: grid; gap: 12px; }
.pd-head { display: grid; gap: 2px; }
.pd-head h2 { margin: 0; font-size: 24px; font-weight: 700; line-height: 1.3; text-wrap: balance; }
.pd-head .unit { font-size: 14px; }
.pd-price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.pd-price b { font-size: 28px; font-weight: 700; color: var(--brand-text); font-variant-numeric: tabular-nums; }
.pd-price s { color: var(--ink-3); font-size: 15px; }
.off-pill { background: var(--ok-soft); color: var(--ok); font-size: 12px; font-weight: 600; border-radius: 999px; padding: 2px 10px; }
.pd-desc { margin: 0; color: var(--ink-2); font-size: 14.5px; max-width: 46ch; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: 12px; font-weight: 500; padding: 3px 10px; border-radius: 999px; }
.tag.fresh { background: var(--ok-soft); color: var(--ok); }
.tag.preorder { background: var(--pre-soft); color: var(--pre); }
.tag.popular { background: var(--brand-soft); color: var(--brand-text); }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt {
  display: grid; justify-items: center; gap: 0; cursor: pointer; min-width: 84px;
  background: var(--surface-strong); border: 1.5px solid var(--border); border-radius: 16px; padding: 8px 14px;
}
.opt span { font-weight: 600; font-size: 14px; }
.opt small { color: var(--ink-3); font-size: 12px; }
.opt[aria-pressed="true"] { border-color: var(--brand-2); background: var(--brand-soft); }
.opt[aria-pressed="true"] small { color: var(--brand-text); }
.pd-actions { display: flex; align-items: center; gap: 12px; margin-top: 4px; }

/* Cart */
.clines { display: grid; gap: 10px; }
.cline { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px; border-radius: 22px; }
.cline-media .media { width: 72px; height: 72px; border-radius: 16px; }
.cline-media .emo { font-size: 40px; }
.cline-txt { display: grid; min-width: 0; line-height: 1.35; }
.cline-txt b { font-weight: 600; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cline-txt small { color: var(--ink-3); font-size: 12px; }
.cline-txt .price { margin-top: 4px; }
.promo-code { display: flex; align-items: center; gap: 10px; padding: 6px 8px 6px 14px; border-radius: 18px; color: var(--ink-3); }
.promo-code input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; height: 40px; font-size: 16px; color: var(--ink); }
.promo-code input::placeholder { color: var(--ink-3); }
.promo-msg { margin: -12px 4px 0; font-size: 13px; }
.promo-msg.ok { color: var(--ok); }
.promo-msg.bad { color: var(--brand-text); }
.summary { display: grid; gap: 10px; padding: 16px 18px; }
.summary > div, .co-sum > div { display: flex; justify-content: space-between; font-size: 14px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.summary .ok, .co-sum .ok { color: var(--ok); }
.summary .total { border-top: 1px dashed var(--ink-3); padding-top: 12px; color: var(--ink); font-weight: 700; font-size: 17px; }
.note { margin: 0; font-size: 12.5px; color: var(--ink-3); }

/* Checkout */
.checkout { display: grid; gap: 14px; }
.co-sec { display: grid; gap: 12px; padding: 16px; }
.co-sec h2, .info h2 { margin: 0; font-size: 15px; font-weight: 600; }
.field { display: grid; gap: 6px; }
.field label { font-size: 12.5px; font-weight: 500; color: var(--ink-2); }
.field input, .field textarea {
  width: 100%; border: 1px solid var(--border); background: var(--solid);
  border-radius: 14px; padding: 12px 14px; font-size: 16px; outline: none;
}
.field input:focus, .field textarea:focus { border-color: var(--brand-2); }
.field textarea { resize: vertical; min-height: 56px; }
.field input[dir="ltr"] { text-align: right; }
.err { font-size: 12.5px; color: var(--brand-text); font-weight: 500; }
.choices { display: grid; gap: 10px; }
.choices.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.choice {
  position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 10px;
  padding: 12px; padding-inline-end: 32px; border-radius: 16px; cursor: pointer;
  background: var(--solid); border: 1.5px solid var(--border);
}
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; margin: 0; }
.choice-ic { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: var(--bg-1); color: var(--ink-2); }
.choice-ic .ic { width: 20px; height: 20px; }
.choice-txt { display: grid; min-width: 0; line-height: 1.35; }
.choice-txt b { font-size: 14px; font-weight: 600; }
.choice-txt small { font-size: 11.5px; color: var(--ink-3); }
.tick {
  position: absolute; top: 8px; inset-inline-end: 8px; width: 20px; height: 20px; border-radius: 50%;
  display: grid; place-items: center; border: 1.5px solid var(--ink-3); color: transparent;
}
.tick .ic { width: 13px; height: 13px; stroke-width: 3; }
.choice.is-on { border-color: var(--brand-2); background: var(--brand-soft); }
.choice.is-on .choice-ic { background: var(--solid); color: var(--brand-text); }
.choice.is-on .tick { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.choice:has(input:focus-visible) { outline: 3px solid var(--brand-2); outline-offset: 2px; }
.addr-line { margin: 0; display: flex; gap: 8px; align-items: center; font-size: 13.5px; color: var(--ink-2); }
.addr-line .ic { width: 18px; height: 18px; color: var(--brand-text); }
.co-total { display: grid; gap: 12px; padding: 16px; }
.co-sum { display: grid; gap: 6px; }
.co-big { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px dashed var(--ink-3); padding-top: 10px; }
.co-big small { font-size: 14px; color: var(--ink-2); }
.co-big b { font-size: 28px; font-weight: 700; font-variant-numeric: tabular-nums; }

/* Orders */
.sent { display: grid; gap: 10px; padding: 20px; justify-items: center; text-align: center; }
.sent-ic { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--ok-soft); color: var(--ok); }
.sent-ic .ic { width: 28px; height: 28px; stroke-width: 2.6; }
.sent h2 { margin: 0; font-size: 18px; }
.sent p { margin: 0; font-size: 13.5px; color: var(--ink-2); max-width: 40ch; }
.sent-acts { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.msg { width: 100%; margin: 0; text-align: start; white-space: pre-wrap; font: 400 12.5px/1.6 var(--f); color: var(--ink-2); background: var(--solid); border-radius: 14px; padding: 12px; max-height: 180px; overflow: auto; }
.orders { display: grid; gap: 10px; }
.order { display: grid; gap: 6px; padding: 14px 16px; }
.order-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.order-head small { color: var(--ink-3); font-size: 12px; }
.order p { margin: 0; font-size: 13px; color: var(--ink-2); }
.order-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.order-acts { display: flex; gap: 6px; }

/* Profile */
.me { display: flex; align-items: center; gap: 14px; padding: 14px; }
.me-logo { width: 72px; height: 72px; flex: none; }
.me div { display: grid; }
.me b { font-size: 18px; }
.me small { color: var(--ink-2); font-size: 13px; }
.saved { margin: 0; display: flex; align-items: center; gap: 6px; color: var(--ok); font-size: 13px; }
.saved .ic { width: 16px; height: 16px; }
.info { display: grid; gap: 10px; padding: 16px; }
.info p { margin: 0; display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-2); }
.info .ic { width: 20px; height: 20px; color: var(--brand-text); }
.info a { color: var(--brand-text); font-weight: 600; }

/* Empty states */
.empty { display: grid; justify-items: center; gap: 8px; padding: 32px 20px; text-align: center; }
.empty-art { font-size: 56px; filter: var(--emo-shadow); }
.empty h2 { margin: 0; font-size: 18px; }
.empty p { margin: 0 0 6px; color: var(--ink-2); font-size: 14px; max-width: 36ch; }

/* Welcome */
#view[data-view="welcome"] { min-height: calc(100dvh - 40px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)); }
.welcome { display: grid !important; grid-template-rows: auto 1fr auto; gap: 20px !important; padding-block: 12px; }
.w-art { position: relative; width: min(100%, 340px); aspect-ratio: 1; justify-self: center; }
.w-ring { position: absolute; inset: 6%; border-radius: 50%; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg); }
.w-logo { position: absolute; inset: 16%; width: 68%; height: 68%; filter: drop-shadow(0 18px 24px rgba(146, 26, 64, .25)); }
.w-emo { position: absolute; font-size: 44px; line-height: 1; filter: var(--emo-shadow); animation: float 6s ease-in-out infinite; }
.we0 { top: 0; inset-inline-start: 8%; animation-delay: -1s; }
.we1 { top: 10%; inset-inline-end: 0; font-size: 50px; animation-delay: -3s; }
.we2 { bottom: 14%; inset-inline-start: -2%; font-size: 40px; animation-delay: -2s; }
.we3 { bottom: 0; inset-inline-end: 12%; font-size: 48px; animation-delay: -4s; }
.we4 { top: 46%; inset-inline-end: -4%; font-size: 34px; animation-delay: -5s; }
@keyframes float { 50% { transform: translateY(-10px) rotate(6deg); } }
.w-txt { display: grid; gap: 14px; align-content: center; }
.w-txt h1 { margin: 0; font-size: clamp(30px, 8.5vw, 38px); font-weight: 700; line-height: 1.25; color: var(--ink); }
.w-txt h1 span { display: block; color: var(--brand-text); }
.w-txt p { margin: 0; color: var(--ink-2); font-size: 15px; max-width: 34ch; }
.w-txt .btn { justify-self: start; min-width: 200px; margin-top: 6px; }
.w-foot {
  margin: 0; justify-self: stretch; display: flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 12px 16px;
  font-size: 13px; color: var(--ink-2); box-shadow: var(--shadow-sm);
}
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--brand-2); flex: none; }
.dot.on { background: var(--ok); box-shadow: 0 0 0 4px var(--ok-soft); }

/* Tab bar */
.tabbar {
  position: fixed; inset: auto 0 0; z-index: 20; pointer-events: none;
  padding: 0 var(--gr) calc(10px + env(safe-area-inset-bottom, 0px)) var(--gl);
}
.tabbar nav {
  pointer-events: auto; max-width: 448px; margin-inline: auto;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: end;
  background: var(--surface-strong); border: 1px solid var(--border); border-radius: 26px;
  box-shadow: var(--shadow-lg); padding: 8px 4px;
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
}
.tab { display: grid; justify-items: center; gap: 3px; text-decoration: none; color: var(--ink-3); font-size: 11px; font-weight: 500; padding-block: 2px; }
.tab .ic { width: 23px; height: 23px; }
.tab[aria-current="page"] { color: var(--brand-text); }
.tab[aria-current="page"] .ic { stroke-width: 2.3; }
.fab-btn {
  position: relative; width: 60px; height: 60px; margin-top: -34px; border-radius: 50%;
  display: grid; place-items: center; color: var(--brand-ink);
  background: linear-gradient(135deg, var(--brand-2), var(--brand));
  border: 5px solid var(--bg-1); box-shadow: 0 12px 24px -10px var(--glow);
}
.fab-btn .ic { width: 25px; height: 25px; }
.badge {
  position: absolute; top: -4px; inset-inline-end: -4px; min-width: 22px; height: 22px; padding-inline: 6px;
  border-radius: 999px; display: grid; place-items: center;
  background: var(--solid); color: var(--brand-text); font-size: 11.5px; font-weight: 700; box-shadow: var(--shadow-sm);
}

/* Toast */
.toast {
  position: fixed; z-index: 30; left: 0; right: 0; margin-inline: auto; width: max-content;
  bottom: calc(100px + env(safe-area-inset-bottom, 0px));
  display: flex; align-items: center; gap: 14px; max-width: min(440px, calc(100% - 32px));
  background: var(--ink); color: var(--bg-1); border-radius: 16px; padding: 10px 14px; font-size: 13.5px;
  box-shadow: var(--shadow-lg);
}
.toast a { color: var(--brand-soft); font-weight: 600; white-space: nowrap; }
.toast.show { animation: pop .25s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(10px); } }
.shell.no-tabs .toast { bottom: calc(24px + env(safe-area-inset-bottom, 0px)); }

/* Screen change */
#view.enter { animation: viewIn .32s cubic-bezier(.2, .7, .2, 1); }
@keyframes viewIn { from { opacity: 0; transform: translateY(12px); } }

/* Install card */
.install { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; padding: 16px; align-items: start; }
.install-ic { width: 56px; height: 56px; border-radius: 16px; box-shadow: var(--shadow-sm); }
.install-txt { display: grid; gap: 6px; justify-items: start; }
.install h2 { margin: 0; font-size: 15px; font-weight: 600; }
.install p { margin: 0; font-size: 13px; color: var(--ink-2); }
.install ul { margin: 2px 0 0; padding-inline-start: 18px; display: grid; gap: 4px; font-size: 12.5px; color: var(--ink-2); }
.install b { color: var(--ink); font-weight: 600; }

/* Wide screens: the app sits in a phone frame, with the bakery beside it */
.side { display: none; }
@media (min-width: 900px) {
  body { height: 100vh; overflow: hidden; display: flex; align-items: center; justify-content: center; gap: clamp(40px, 7vw, 110px); padding-inline: 32px; }
  .side { display: grid; gap: 10px; justify-items: start; max-width: 300px; }
  .side-logo { width: 150px; height: 150px; filter: drop-shadow(0 18px 28px rgba(146, 26, 64, .25)); }
  .side h2 { margin: 6px 0 0; font-size: 34px; font-weight: 700; }
  .side p { margin: 0; color: var(--ink-2); font-size: 15px; }
  .side .side-note { margin-top: 10px; font-size: 13px; color: var(--ink-3); border-inline-start: 3px solid var(--brand-soft); padding-inline-start: 12px; }
  .shell {
    position: relative; flex: none; width: 412px; height: min(880px, calc(100vh - 48px));
    border-radius: 48px; overflow: hidden; transform: translateZ(0);
    background:
      radial-gradient(420px 360px at 100% 0%, var(--blob-1), transparent 60%),
      linear-gradient(165deg, var(--bg-1), var(--bg-2));
    border: 10px solid var(--surface-strong); box-shadow: 0 40px 80px -30px rgba(46, 17, 25, .45), 0 0 0 1px var(--border);
  }
  .scroller { height: 100%; overflow-y: auto; overflow-x: hidden; scrollbar-width: none; overscroll-behavior: contain; }
  .scroller::-webkit-scrollbar { display: none; }
  .app { padding-top: 18px; }
  #view[data-view="welcome"] { min-height: calc(min(880px, 100vh - 48px) - 60px); }
  .tabbar, .toast { position: absolute; }
}

@media (min-width: 560px) {
  .pcard-media .emo { font-size: 66px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
