/* Bakereee design system — colours & shapes taken from the logo and "What We Bake" poster */
:root {
  --pink: #e3106f;          /* hot magenta: buttons, price badges, ribbons */
  --pink-deep: #a50e4a;     /* ribbon shadow / pressed */
  --pink-ribbon: linear-gradient(180deg, #ee2a85 0%, #c8105e 60%, #a50e4a 100%);
  --pink-soft: #f8bbd0;
  --blush: #fdedee;         /* page background */
  --blush-2: #fbdbe5;
  --cream: #fff8f0;         /* cards, logo centre */
  --choc: #3e2117;          /* logo text brown */
  --ink: #1a1a1a;
  --muted: #74606a;
  --line: #f3c9d7;
  --ok: #1f7a3a;
  --ok-bg: #e5f5ea;
  --warn: #9a5a00;
  --warn-bg: #fff2dc;
  --bad: #b3261e;
  --bad-bg: #fde7e6;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 6px 22px rgba(163, 14, 74, 0.12);
  --shadow-sm: 0 2px 8px rgba(163, 14, 74, 0.1);
  --script: 'Kaushan Script', 'Pacifico', cursive;
  --body: 'Nunito', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--blush);
  line-height: 1.45;
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { color: var(--pink-deep); }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.15; }
.script { font-family: var(--script); font-weight: 400; }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }
.center { text-align: center; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* decorative pink waves in the corners, like the poster */
.waves::before, .waves::after {
  content: '';
  position: fixed;
  z-index: -1;
  width: 46vmin;
  height: 46vmin;
  background: radial-gradient(circle at 30% 30%, #f0418f, #c8105e 70%);
  border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%;
  opacity: 0.9;
  pointer-events: none;
}
.waves::before { top: -26vmin; left: -24vmin; }
.waves::after { bottom: -28vmin; right: -24vmin; }

/* Wordmark: "Baker" in brown/black + "eee" in pink */
.wordmark { display: inline-block; padding-bottom: 0.22em; font-family: var(--script); font-size: 1.9rem; color: var(--ink); letter-spacing: 0.5px; line-height: 1; }
.wordmark .eee { color: var(--pink); position: relative; }
.wordmark .eee::after { /* curved brush-stroke underline, as in the logo */
  content: ''; position: absolute; left: 2%; right: -4%; bottom: -0.2em; height: 0.26em;
  background: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%20100%2020%22%20preserveAspectRatio%3D%22none%22%3E%3Cpath%20fill%3D%22%23e3106f%22%20d%3D%22M3.6%2017.6C1.2%2017%20.6%2014.4%202.4%2012.6%2012%205%2030%201.6%2052%201.8c18.4.2%2034.4%203.4%2044%208.4%202.4%201.2%202.6%203.8.8%205-1.2.8-2.8.8-4.2.1C83.6%2011.6%2069.6%2010%2052%2010%2032.6%2010%2017.2%2012.6%208%2017c-1.5.7-3%20.9-4.4.6Z%22/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.tagline { font-family: var(--script); color: var(--choc); font-size: 0.95rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 20px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--pink-ribbon); color: #fff; font-weight: 800; letter-spacing: 0.2px;
  box-shadow: 0 4px 0 var(--pink-deep), var(--shadow-sm); text-decoration: none;
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--pink-deep); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn.ghost { background: #fff; color: var(--pink-deep); box-shadow: inset 0 0 0 2px var(--pink-soft); }
.btn.ghost:active { box-shadow: inset 0 0 0 2px var(--pink); }
.btn.small { min-height: 36px; padding: 6px 14px; font-size: 0.9rem; }
.btn.block { width: 100%; }
.btn.wa { background: linear-gradient(180deg, #2bd46a, #18a84f); box-shadow: 0 4px 0 #0f7a38; }
.btn.danger { background: #fff; color: var(--bad); box-shadow: inset 0 0 0 2px #f4b6b1; }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; color: var(--pink-deep); display: inline-grid; place-items: center; cursor: pointer; box-shadow: var(--shadow-sm); }

/* Price badge pill: "35 AED for 6" */
.price-badge {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 84px; padding: 6px 12px; border-radius: 16px;
  background: var(--pink-ribbon); color: #fff; line-height: 1.05; box-shadow: 0 3px 0 var(--pink-deep);
}
.price-badge b { font-size: 1.35rem; font-weight: 900; }
.price-badge b small { font-size: 0.8rem; font-weight: 800; margin-left: 2px; }
.price-badge span { font-size: 0.8rem; font-weight: 700; }
.price-badge .was { text-decoration: line-through; opacity: 0.8; font-size: 0.75rem; }

/* Ribbon banner for category names */
.ribbon {
  position: relative; display: inline-block; margin: 0 auto; padding: 8px 34px 12px;
  background: var(--pink-ribbon); color: #fff; font-family: var(--script); font-size: 1.9rem;
  border-radius: 14px 14px 30px 30px / 14px 14px 18px 18px; box-shadow: 0 4px 0 var(--pink-deep);
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.12);
}
/* Cards */
.card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid #fff; }
.card.pad { padding: 18px; }
.cream { background: var(--cream); }

/* Forms */
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label, .label { font-weight: 800; font-size: 0.92rem; color: var(--choc); }
.input, select.input, textarea.input {
  width: 100%; min-height: 46px; padding: 10px 14px; border-radius: 14px; border: 2px solid var(--line);
  background: #fff; outline: none; transition: border-color 0.15s;
}
.input:focus { border-color: var(--pink); }
textarea.input { min-height: 80px; resize: vertical; }
.err { color: var(--bad); font-size: 0.85rem; font-weight: 700; }
.input.invalid { border-color: var(--bad); }
.choice-row { display: flex; flex-wrap: wrap; gap: 8px; }
.choice {
  border: 2px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 14px; min-height: 44px; cursor: pointer; font-weight: 700;
}
.choice[aria-pressed='true'] { border-color: var(--pink); background: var(--blush); color: var(--pink-deep); }
.choice:disabled { opacity: 0.45; cursor: not-allowed; text-decoration: line-through; }

/* Stepper */
.stepper { display: inline-flex; align-items: center; background: var(--blush); border-radius: 999px; padding: 3px; gap: 2px; }
.stepper button { width: 38px; height: 38px; border-radius: 50%; border: 0; background: #fff; color: var(--pink-deep); font-size: 1.3rem; font-weight: 900; cursor: pointer; box-shadow: var(--shadow-sm); }
.stepper output { min-width: 30px; text-align: center; font-weight: 900; }

/* Chips / pills */
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; background: var(--blush); color: var(--pink-deep); font-size: 0.78rem; font-weight: 800; }
.chip.ok { background: var(--ok-bg); color: var(--ok); }
.chip.warn { background: var(--warn-bg); color: var(--warn); }
.chip.bad { background: var(--bad-bg); color: var(--bad); }
.chip.grey { background: #f1eef0; color: #5d5358; }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%) translateY(20px); opacity: 0;
  background: var(--choc); color: #fff; padding: 12px 18px; border-radius: 14px; font-weight: 700; z-index: 100;
  transition: all 0.25s ease; max-width: 92vw; box-shadow: var(--shadow);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Heart sparkle divider */
.hearts { display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--pink); }
.hearts::before, .hearts::after { content: ''; width: 40px; height: 3px; border-radius: 3px; background: var(--pink); }

.demo-banner { background: var(--choc); color: #fff; text-align: center; font-size: 0.82rem; padding: 6px 12px; }
.demo-banner a { color: var(--pink-soft); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
