/* Welleat customer app — mobile-first, matches the approved prototype. No build step needed. */
:root {
  --pink: #D81B60; --pink-dark: #B0154F; --pink-deep: #8A1538; --pink-tint: #FDE7EF;
  --ink: #1C1B1F; --ink-2: #3A3540; --muted: #6B6570; --muted-2: #4A4450;
  --line: #EEE8EA; --line-2: #E0D9DC; --bg: #FAF7F6; --soft: #F3EEF0;
  --green: #1E5B2E; --green-tint: #E6F4E2; --yellow-tint: #FFF4CC; --yellow-ink: #6B4E00; --blue-tint: #E3EFFA; --blue-ink: #134B7A;
  --radius: 22px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: 'Plus Jakarta Sans', system-ui, sans-serif; color: var(--ink); background: #EFEAEC; -webkit-font-smoothing: antialiased; }
a { color: var(--pink-dark); }
a:hover { color: #7E0E38; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img { max-width: 100%; display: block; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[x-cloak] { display: none !important; }

.shell { max-width: 480px; margin: 0 auto; min-height: 100vh; background: var(--bg); position: relative; padding: 20px 18px 120px; }
.shell.white { background: #fff; }
.shell.has-bar { padding-bottom: 150px; }

/* Header */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wordmark { font-size: 25px; font-weight: 800; font-style: italic; color: var(--pink); letter-spacing: -0.5px; line-height: 1; text-decoration: none; }
.loc { display: flex; align-items: center; justify-content: center; gap: 4px; font-size: 12px; font-weight: 600; color: var(--muted-2); margin-top: 4px; }
.circle-btn { width: 48px; height: 48px; border-radius: 50%; border: 1px solid #E6E0E2; background: #fff; display: inline-flex; align-items: center; justify-content: center; padding: 0; position: relative; flex-shrink: 0; text-decoration: none; color: var(--ink); }
.circle-btn.dark { background: var(--pink); color: #fff; border: 0; font-weight: 800; }
.badge { position: absolute; top: -3px; right: -3px; min-width: 20px; height: 20px; border-radius: 10px; background: var(--pink); color: #fff; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; padding: 0 5px; }
.subhead { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.subhead h1 { font-size: 17px; margin: 0; font-weight: 700; }
.spacer48 { width: 48px; }

h1.big { margin: 22px 0 16px; font-size: 28px; line-height: 1.15; font-weight: 800; letter-spacing: -0.6px; }
h1.page { margin: 8px 0 6px; font-size: 26px; font-weight: 800; }
h2.sec { margin: 24px 0 10px; font-size: 16px; font-weight: 800; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.xs { font-size: 12px; }

/* Inputs */
.field { display: block; margin-bottom: 12px; }
.field > span, .label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.input, select.input, textarea.input { width: 100%; height: 50px; border-radius: 16px; border: 1px solid var(--line-2); background: #fff; padding: 0 16px; font-size: 15px; outline: none; }
textarea.input { height: auto; padding: 12px 16px; line-height: 1.5; }
.input:focus { border-color: var(--pink); box-shadow: 0 0 0 3px rgba(216,27,96,.12); }
.input.err { border: 2px solid var(--pink-dark); }
.search { display: flex; align-items: center; gap: 10px; height: 52px; border-radius: 26px; background: #fff; border: 1px solid #E6E0E2; padding: 0 18px; }
.search input { border: 0; outline: none; background: transparent; font-size: 15px; width: 100%; }
.error { font-size: 13px; color: var(--pink-deep); margin-top: 6px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 52px; padding: 0 22px; border-radius: 26px; border: 0; font-size: 15px; font-weight: 700; text-decoration: none; background: var(--ink); color: #fff; }
.btn:hover { color: #fff; }
.btn.pink { background: var(--pink); }
.btn.block { width: 100%; }
.btn.ghost { background: #fff; color: var(--ink); border: 1px solid #E6E0E2; }
.btn.ghost:hover { color: var(--ink); }
.btn.sm { height: 44px; font-size: 14px; padding: 0 18px; }
.btn[disabled], .btn.disabled { background: #E6E0E2; color: #5E5862; cursor: not-allowed; }
.link-btn { border: 0; background: none; padding: 0; color: var(--pink-dark); font-weight: 700; font-size: 14px; min-height: 44px; }

/* Cards */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.card.tint { background: var(--pink-tint); border: 0; }
.list-card { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 4px 16px; }
.list-row { display: flex; align-items: center; gap: 12px; padding: 14px 0; text-decoration: none; color: var(--ink); width: 100%; background: none; border: 0; text-align: left; }
.list-row + .list-row { border-top: 1px solid var(--line); }
.list-row:hover { color: var(--ink); }

.banner { margin-top: 18px; display: flex; align-items: stretch; border-radius: 28px; background: var(--pink-tint); overflow: hidden; min-height: 150px; }
.banner .txt { flex: 1; padding: 20px 6px 20px 20px; display: flex; flex-direction: column; gap: 8px; justify-content: center; }
.banner img { width: 140px; object-fit: cover; }

.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chips.scroll { flex-wrap: nowrap; overflow-x: auto; margin: 0 -18px; padding: 0 18px; scrollbar-width: none; }
.chip { height: 44px; padding: 0 18px; border-radius: 22px; font-size: 14px; font-weight: 700; border: 1px solid var(--line-2); background: #fff; color: var(--ink); display: inline-flex; align-items: center; text-decoration: none; white-space: nowrap; }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip:hover { color: inherit; }
.chip.on:hover { color: #fff; }

/* Product grid */
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pcard { position: relative; border-radius: 24px; padding: 8px; }
.pcard a { text-decoration: none; color: var(--ink); display: block; }
.pcard img, .pcard .noimg { width: 100%; height: 108px; object-fit: cover; border-radius: 18px; }
.noimg { background: rgba(255,255,255,.6); display: flex; align-items: center; justify-content: center; font-size: 12px; color: var(--muted); }
.pcard .name { padding: 10px 6px 2px; font-weight: 700; font-size: 15px; line-height: 1.25; min-height: 38px; }
.pcard .from { padding: 0 54px 8px 6px; font-size: 13px; color: #5E5862; }
.pcard .add { position: absolute; right: 8px; bottom: 8px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: center; }
.off-badge { position: absolute; left: 14px; top: 14px; font-size: 11px; font-weight: 800; background: var(--pink); color: #fff; border-radius: 8px; padding: 3px 8px; }

/* Product page */
.p-hero { margin: -20px -18px 0; padding: 20px 18px 44px; }
.p-hero img.main { margin-top: 18px; width: 100%; height: 230px; object-fit: cover; border-radius: 28px; }
.thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.thumbs button { border: 2px solid transparent; padding: 0; border-radius: 12px; overflow: hidden; background: none; flex-shrink: 0; }
.thumbs button.on { border-color: var(--pink); }
.thumbs img { width: 64px; height: 46px; object-fit: cover; }
.sheet { margin: -24px -18px 0; background: #fff; border-radius: 32px 32px 0 0; padding: 26px 18px 20px; position: relative; }
.sizes { display: flex; gap: 10px; flex-wrap: wrap; }
.size { flex: 1; min-width: 120px; min-height: 60px; border-radius: 18px; text-align: left; padding: 10px 14px; border: 2px solid #E6E0E2; background: #fff; }
.size.on { border-color: var(--pink); background: var(--pink-tint); }
.price-row { margin-top: 16px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.price-row .now { font-size: 32px; font-weight: 800; }
.price-row .was { font-size: 16px; color: var(--muted); text-decoration: line-through; }
.info-row { margin-top: 16px; display: flex; align-items: center; justify-content: space-between; padding: 14px 2px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted-2); gap: 6px; }
.info-row div { display: flex; align-items: center; gap: 6px; }
.upsell { margin-top: 18px; width: 100%; display: flex; align-items: center; gap: 12px; text-align: left; background: var(--pink-tint); border-radius: 20px; padding: 10px; text-decoration: none; color: var(--ink); }
.upsell img { width: 72px; height: 56px; object-fit: cover; border-radius: 14px; }
.hscroll { display: flex; gap: 10px; overflow-x: auto; margin: 0 -18px; padding: 0 18px 4px; scrollbar-width: none; }
.mini { flex-shrink: 0; width: 160px; background: var(--bg); border-radius: 18px; padding: 8px; position: relative; }
.mini img, .mini .noimg { width: 100%; height: 84px; object-fit: cover; border-radius: 12px; }
.mini .add { position: absolute; right: 8px; bottom: 8px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: center; }

/* Bottom bars */
.bar { position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; width: 100%; max-width: 480px; background: #fff; padding: 12px 18px 22px; box-shadow: 0 -8px 24px rgba(28,27,31,.07); z-index: 20; }
.stepper { display: flex; align-items: center; gap: 2px; background: var(--soft); border-radius: 28px; padding: 4px; }
.stepper button { width: 44px; height: 46px; border: 0; background: transparent; display: flex; align-items: center; justify-content: center; }
.stepper span { min-width: 26px; text-align: center; font-weight: 700; }
.stepper.sm button { height: 36px; }

.nav { position: fixed; left: 50%; transform: translateX(-50%); bottom: 18px; width: calc(100% - 36px); max-width: 444px; height: 68px; border-radius: 34px; background: var(--ink); padding: 8px; display: flex; gap: 6px; align-items: center; z-index: 20; }
.nav a { height: 52px; border-radius: 26px; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 14px; font-weight: 700; width: 52px; flex-shrink: 0; color: #fff; background: #2C2A30; text-decoration: none; position: relative; }
.nav a.on { flex: 1; background: #fff; color: var(--ink); }
.nav a .lbl { display: none; }
.nav a.on .lbl { display: inline; }
.nav a .badge { top: 2px; right: 2px; }

/* Cart & checkout */
.cart-item { display: flex; gap: 12px; align-items: center; background: #fff; border-radius: 22px; padding: 10px; border: 1px solid var(--line); }
.cart-item img, .cart-item .noimg { width: 84px; height: 72px; object-fit: cover; border-radius: 16px; flex-shrink: 0; background: var(--soft); }
.seg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; background: var(--soft); border-radius: 22px; padding: 5px; }
.seg label { height: 48px; border-radius: 18px; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 14px; font-weight: 700; cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg input:checked + label { background: #fff; box-shadow: 0 2px 8px rgba(28,27,31,.08); }
.seg input:focus-visible + label { outline: 2px solid var(--pink); }
.note { display: flex; gap: 8px; align-items: flex-start; background: var(--yellow-tint); border-radius: 16px; padding: 10px 12px; font-size: 13px; line-height: 1.4; color: #4A3F12; }
.dates { display: flex; gap: 8px; overflow-x: auto; margin: 12px -18px 0; padding: 0 18px 4px; scrollbar-width: none; }
.date { flex-shrink: 0; width: 64px; padding: 10px 0; border-radius: 18px; text-align: center; border: 1px solid var(--line-2); background: #fff; cursor: pointer; }
.date.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.date b { display: block; font-size: 20px; margin: 2px 0; }
.date span { display: block; font-size: 12px; }
.slots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.slot { min-height: 52px; padding: 6px 4px; border-radius: 14px; font-size: 13px; font-weight: 700; border: 1px solid var(--line-2); background: #fff; }
.slot small { display: block; font-size: 11px; font-weight: 600; margin-top: 1px; }
.slot.on { border: 2px solid var(--pink); background: var(--pink-tint); }
.slot[disabled] { background: #F1EDEE; color: #77707A; cursor: not-allowed; }
.okbox { margin-top: 10px; display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--green); background: var(--green-tint); border-radius: 14px; padding: 10px 12px; }
.badbox { margin-top: 10px; font-size: 13px; line-height: 1.45; color: var(--pink-deep); background: var(--pink-tint); border-radius: 14px; padding: 10px 12px; }
.warnbox { margin-top: 8px; font-size: 13px; color: var(--yellow-ink); background: var(--yellow-tint); border-radius: 12px; padding: 10px 12px; }
.summary { margin-top: 24px; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--muted-2); }
.summary .row { display: flex; justify-content: space-between; gap: 10px; }
.summary .row b { color: var(--ink); font-weight: 600; }
.summary .disc { color: var(--pink-dark); font-weight: 600; }
.summary .total { font-size: 16px; color: var(--ink); font-weight: 800; }
.hr { height: 1px; background: var(--line); }
.radio-card { width: 100%; display: flex; align-items: center; gap: 12px; text-align: left; border-radius: 16px; padding: 12px 14px; border: 1px solid var(--line); background: #fff; cursor: pointer; }
.radio-card input { width: 20px; height: 20px; accent-color: var(--pink); flex-shrink: 0; }
.radio-card:has(input:checked) { border: 2px solid var(--pink); background: var(--pink-tint); }

/* Pills */
.pill { display: inline-block; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 10px; white-space: nowrap; }
.pill-blue { background: var(--blue-tint); color: var(--blue-ink); }
.pill-yellow { background: var(--yellow-tint); color: var(--yellow-ink); }
.pill-green { background: var(--green-tint); color: var(--green); }
.pill-pink { background: var(--pink-tint); color: var(--pink-deep); }
.pill-grey { background: #EEEAEC; color: var(--muted-2); }

/* Rewards */
.stampcard { background: var(--pink); color: #fff; border-radius: 28px; padding: 20px; }
.dots { margin-top: 16px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; justify-items: center; }
.dot { width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; border: 2px dashed rgba(255,255,255,.75); }
.dot.full { background: #fff; border: 0; }
.reward { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 12px 14px; }
.cost { min-width: 56px; height: 46px; border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; font-weight: 800; font-size: 15px; line-height: 1; }
.cost small { font-size: 10px; font-weight: 700; margin-top: 2px; }
.cost.stamps { background: var(--pink-tint); color: var(--pink-deep); }
.cost.points { background: var(--yellow-tint); color: var(--yellow-ink); }
.voucher { display: flex; align-items: center; gap: 12px; background: var(--green-tint); border-radius: 18px; padding: 12px 14px; }

/* Order timeline */
.timeline .step { display: flex; gap: 14px; }
.timeline .rail { display: flex; flex-direction: column; align-items: center; width: 22px; }
.timeline .d { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #CFC7CB; background: #fff; flex-shrink: 0; }
.timeline .d.done { background: var(--pink); border: 0; }
.timeline .ln { width: 2px; flex: 1; min-height: 26px; background: #E6E0E2; }
.timeline .txt { padding-bottom: 16px; }

/* Flash */
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: 100px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 600; padding: 10px 18px; border-radius: 20px; z-index: 50; max-width: 90%; text-align: center; }
.flash { border-radius: 14px; padding: 10px 12px; font-size: 13px; margin-bottom: 12px; }
.flash.err { background: var(--pink-tint); color: var(--pink-deep); }
.flash.info { background: var(--blue-tint); color: var(--blue-ink); }

.page-body h2 { margin: 18px 0 6px; font-size: 16px; font-weight: 800; }
.page-body p { margin: 0 0 12px; font-size: 14px; line-height: 1.6; color: var(--ink-2); }
.footer-links { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); }
.empty { text-align: center; padding: 60px 10px; }
.empty .ic { width: 88px; height: 88px; border-radius: 50%; background: var(--pink-tint); margin: 0 auto 16px; display: flex; align-items: center; justify-content: center; color: var(--pink); }
.otp { height: 62px; text-align: center; font-size: 26px; font-weight: 700; letter-spacing: 12px; border: 2px solid var(--pink); }
.tabs2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; background: var(--soft); border-radius: 22px; padding: 5px; }
.tabs2 a { height: 46px; border-radius: 18px; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; color: var(--ink); text-decoration: none; }
.tabs2 a.on { background: #fff; box-shadow: 0 2px 8px rgba(28,27,31,.08); }

/* Size picker sheet (home page "+") */
.pick-wrap { position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-end; justify-content: center; }
.pick-backdrop { position: absolute; inset: 0; background: rgba(28,27,31,.45); }
.pick-sheet { position: relative; width: 100%; max-width: 480px; background: #fff; border-radius: 28px 28px 0 0; padding: 20px 18px calc(18px + env(safe-area-inset-bottom)); box-shadow: 0 -8px 30px rgba(0,0,0,.15); }
.pick-in { animation: pickUp .22s ease-out; } .pick-out { animation: pickUp .15s ease-in reverse; }
@keyframes pickUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.pick-head { display: flex; align-items: center; gap: 12px; }
.pick-img { width: 56px; height: 56px; border-radius: 16px; object-fit: cover; flex-shrink: 0; }
.pick-opts { display: grid; gap: 8px; margin: 16px 0; }
.pick-opt { display: flex; justify-content: space-between; align-items: center; height: 56px; padding: 0 16px; border-radius: 18px; border: 1.5px solid var(--line-2); background: #fff; font-size: 15px; text-align: left; }
.pick-opt.on { border-color: var(--pink); background: var(--pink-tint); box-shadow: 0 0 0 1px var(--pink) inset; }
.pick-opt .b { font-weight: 700; }
.pick-foot { display: flex; gap: 10px; align-items: center; }

/* Closed / cut-off dates at checkout */
.date.closed { opacity: .45; cursor: not-allowed; background: var(--soft); border-style: dashed; }
.date.closed b { text-decoration: line-through; }
.holiday-banner { margin-top: 14px; display: flex; gap: 10px; align-items: flex-start; background: var(--yellow-tint); color: var(--yellow-ink); border-radius: 18px; padding: 12px 14px; font-size: 14px; font-weight: 600; line-height: 1.4; }
