/* Riya's Cake Studio app: mobile-first PWA styles */
:root {
  --cream: #FFF8F1; --cream-2: #FCEEE2; --peach: #FBE3D2; --peach-2: #F4B393; --rose-gold: #B76E79; --rose: #B83A5E;
  --choco: #3E2319; --choco-2: #5A3526; --text: #3E2319; --soft: #6B4435; --muted: #8A6A5C;
  --line: #F0DFD3; --line-2: #E2C9B8; --gold: #E3A332; --wheat: #8A6414;
  --wa: #16804A; --wa-dark: #11663B; --wa-bright: #1DA851;
  --display: "Fraunces", Georgia, serif; --body: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --r: 18px; --shadow: 0 1px 2px rgba(62,35,25,.05), 0 6px 18px rgba(62,35,25,.08);
  --app-w: 520px; --bar-h: 58px; --tab-h: 64px;
  --safe-t: env(safe-area-inset-top); --safe-b: env(safe-area-inset-bottom);
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
html:has(dialog[open]) { overflow: hidden; }
body { margin: 0; font-family: var(--body); font-size: 16px; line-height: 1.5; color: var(--text); background: #EFE2D7; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; margin: 0; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--rose); outline-offset: 2px; border-radius: 8px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icon { width: 24px; height: 24px; flex: none; }
.veg { display: inline-grid; place-items: center; width: 13px; height: 13px; border: 1.5px solid #1E8A3E; border-radius: 3px; background: #fff; flex: none; }
.veg::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #1E8A3E; }

/* ---------- shell ---------- */
.app { position: relative; max-width: var(--app-w); min-height: 100dvh; margin: 0 auto; background: var(--cream); box-shadow: 0 0 40px rgba(62,35,25,.12); }
.appbar {
  position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 6px;
  height: calc(var(--bar-h) + var(--safe-t)); padding: var(--safe-t) 8px 0;
  background: rgba(255,248,241,.94); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line);
}
.appbar__title { flex: 1; min-width: 0; font-family: var(--display); font-weight: 700; font-size: 1.2rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-left: 4px; }
.brand { display: flex; align-items: center; gap: 9px; flex: 1; min-width: 0; padding-left: 6px; text-decoration: none; }
.brand__mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: linear-gradient(135deg, #F7C3CF, var(--peach-2)); }
.brand__mark .icon { width: 21px; height: 21px; }
.brand__name { font-family: var(--display); font-style: italic; font-weight: 700; font-size: 1.25rem; line-height: 1; }
.brand__sub { display: block; font-size: .58rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--rose-gold); margin-top: 3px; }
.ibtn { position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; cursor: pointer; flex: none; text-decoration: none; color: var(--choco); }
.ibtn:active { background: var(--cream-2); }

.screen { min-height: calc(100dvh - var(--bar-h) - var(--safe-t)); padding-bottom: calc(var(--tab-h) + var(--safe-b) + 84px); outline: none; }
body.no-tabs .screen { padding-bottom: calc(150px + var(--safe-b)); }
@media (prefers-reduced-motion: no-preference) { .screen > * { animation: in .25s ease both; } }

.tabbar {
  position: fixed; z-index: 45; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: var(--app-w);
  display: grid; grid-template-columns: repeat(4, 1fr); height: calc(var(--tab-h) + var(--safe-b)); padding-bottom: var(--safe-b);
  background: rgba(255,255,255,.97); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(62,35,25,.06);
}
body.no-tabs .tabbar { display: none; }
.tab { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; text-decoration: none; color: var(--muted); font-size: .72rem; font-weight: 800; }
.tab .icon { width: 25px; height: 25px; }
.tab__pill { display: grid; place-items: center; width: 56px; height: 30px; border-radius: 999px; transition: background-color .2s; }
.tab[aria-current="page"] { color: var(--choco); }
.tab[aria-current="page"] .tab__pill { background: var(--peach); }
.tab--help .icon { color: var(--wa); }
.badge-count { position: absolute; top: 4px; left: calc(50% + 6px); min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: var(--rose); color: #fff; font-size: .7rem; line-height: 19px; text-align: center; border: 2px solid #fff; }

.fab-wa {
  position: fixed; z-index: 44; right: max(16px, calc((100vw - var(--app-w)) / 2 + 16px)); bottom: calc(var(--tab-h) + var(--safe-b) + 14px);
  display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: var(--wa-bright); color: #fff;
  box-shadow: 0 10px 24px rgba(19,120,60,.38); text-decoration: none;
}
.fab-wa .icon { width: 30px; height: 30px; }
body.has-bar .fab-wa { bottom: calc(var(--sticky-h, 128px) + var(--safe-b) + 12px); width: 50px; height: 50px; }
body.has-bar .fab-wa .icon { width: 26px; height: 26px; }
@media (prefers-reduced-motion: no-preference) { .fab-wa::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--wa-bright); z-index: -1; animation: ping 2.8s ease-out infinite; } }

/* ---------- common ---------- */
.sec { padding: 18px 16px 4px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.sec-head h2 { font-size: 1.3rem; }
.link { background: none; border: 0; padding: 6px 0; color: var(--rose); font-weight: 800; font-size: .9rem; text-decoration: none; cursor: pointer; }
.muted { color: var(--muted); }
.soft { color: var(--soft); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 12px 20px; border-radius: 16px; border: 2px solid transparent;
  font-weight: 800; font-size: 1rem; line-height: 1.15; text-decoration: none; cursor: pointer; text-align: center;
}
.btn:active { transform: scale(.98); }
.btn--block { width: 100%; }
.btn--primary { background: var(--choco); color: var(--cream); }
.btn--wa { background: var(--wa); color: #fff; }
.btn--ghost { background: #fff; color: var(--choco); border-color: var(--line-2); }
.btn--soft { background: var(--peach); color: var(--choco); }
.btn[disabled] { opacity: .45; pointer-events: none; }
.hscroll { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 -16px; padding: 2px 16px 10px; scroll-padding-inline: 16px; }
.hscroll::-webkit-scrollbar { display: none; }
.hscroll > * { scroll-snap-align: start; flex: none; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 2px 16px 8px; }
.chips::-webkit-scrollbar { display: none; }
.chip { text-decoration: none; display: inline-flex; align-items: center; gap: 6px; flex: none; min-height: 42px; padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--line-2); background: #fff; font-weight: 800; font-size: .92rem; color: var(--soft); cursor: pointer; white-space: nowrap; }
.chip .icon { width: 18px; height: 18px; }
.chip[aria-pressed="true"], .chip[aria-selected="true"] { background: var(--choco); border-color: var(--choco); color: var(--cream); }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; border-radius: 14px; background: var(--cream-2); margin: 12px 16px 4px; }
.seg button { min-height: 42px; border: 0; border-radius: 11px; background: transparent; font-weight: 800; color: var(--soft); cursor: pointer; }
.seg button[aria-selected="true"] { background: #fff; color: var(--choco); box-shadow: 0 1px 4px rgba(62,35,25,.15); }
.price { font-weight: 800; color: var(--choco); }
.mrp { color: var(--muted); font-weight: 700; text-decoration: line-through; font-size: .88em; }
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; font-size: .68rem; font-weight: 800; background: #fff; color: var(--choco); }
.tag--best { background: var(--choco); color: var(--cream); }
.tag--sig { background: var(--gold); color: var(--choco); }
.tag--wheat { background: #FFF4D6; color: var(--wheat); }
.tag--offer { background: var(--rose); color: #fff; }
.empty { margin: 32px 16px; padding: 28px 20px; text-align: center; background: #fff; border-radius: var(--r); border: 1px dashed var(--line-2); color: var(--soft); }
.empty .icon { width: 42px; height: 42px; margin: 0 auto 10px; color: var(--rose-gold); }
.empty h3 { font-size: 1.2rem; color: var(--choco); margin-bottom: 6px; }
.empty .btn { margin-top: 16px; }

/* fields */
.field { display: grid; gap: 6px; margin-bottom: 14px; border: 0; padding: 0; min-width: 0; }
.field > label, .field > legend, .label { font-weight: 800; font-size: .92rem; color: var(--choco); padding: 0; }
.field legend { margin-bottom: 8px; }
.opt { font-weight: 600; color: var(--muted); }
.hint { font-size: .84rem; color: var(--muted); }
input[type="text"], input[type="tel"], input[type="search"], input[type="number"], input[type="date"], select, textarea {
  display: block; width: 100%; min-height: 50px; padding: 12px 14px; font: inherit; font-size: 16px; color: var(--text);
  background: #fff; border: 1.5px solid var(--line-2); border-radius: 14px;
}
textarea { resize: vertical; min-height: 96px; }
select { appearance: none; -webkit-appearance: none; padding-right: 40px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%233E2319' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 12px center / 18px; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: none; border-color: var(--choco); box-shadow: 0 0 0 3px rgba(183,110,121,.3); }
input:user-invalid, textarea:user-invalid { border-color: #C0392B; }
.search { position: relative; display: block; margin: 12px 16px 8px; }
.search .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--muted); }
.search input { padding-left: 44px; border-radius: 999px; }

/* ---------- home ---------- */
.hero { margin: 14px 16px 0; padding: 20px; border-radius: 24px; overflow: hidden; position: relative;
  background: radial-gradient(120% 90% at 100% 0%, #FBD6C6 0, transparent 60%), linear-gradient(160deg, #FFF3EA, #FDE3EA); border: 1px solid #F6D6DA; }
.hero__pills { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.hero__pills > span { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; background: #fff; font-size: .74rem; font-weight: 800; box-shadow: var(--shadow); }
.hero__pills .icon { width: 14px; height: 14px; color: var(--rose-gold); }
.hero__row { display: grid; grid-template-columns: 1fr 118px; gap: 12px; align-items: center; }
.hero h1 { font-size: 1.62rem; }
.hero h1 em { font-weight: 600; color: var(--rose); }
.hero p { color: var(--soft); font-size: .93rem; margin-top: 8px; }
.hero img { width: 118px; height: 118px; object-fit: cover; border-radius: 50%; border: 4px solid #fff; box-shadow: var(--shadow); }
.hero .btn { margin-top: 16px; }
.install { display: flex; align-items: center; gap: 12px; margin: 14px 16px 0; padding: 12px 14px; border-radius: 16px; background: var(--choco); color: var(--cream); }
.install img { width: 42px; height: 42px; border-radius: 10px; }
.install div { flex: 1; font-size: .88rem; }
.install strong { display: block; font-size: .98rem; }
.install .btn { min-height: 40px; padding: 6px 14px; font-size: .9rem; border-radius: 12px; background: var(--cream); color: var(--choco); }
.cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.cat { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 4px 0; border: 0; background: none; text-decoration: none; text-align: center; font-weight: 800; font-size: .78rem; line-height: 1.2; cursor: pointer; }
.cat__icon { display: grid; place-items: center; width: 62px; height: 62px; border-radius: 20px; background: var(--peach); color: var(--choco); box-shadow: var(--shadow); }
.cat:nth-child(2) .cat__icon { background: #F6E3C4; color: var(--wheat); }
.cat:nth-child(3) .cat__icon { background: #FBE0E7; color: var(--rose); }
.cat:nth-child(4) .cat__icon { background: #DDEFF7; color: #2B5E7A; }
.cat__icon .icon { width: 30px; height: 30px; }
.offer-card { width: 270px; display: flex; gap: 12px; padding: 10px; border-radius: var(--r); background: #fff; border: 1px solid #F6D1D9; text-decoration: none; box-shadow: var(--shadow); cursor: pointer; text-align: left; }
.offer-card img { width: 86px; height: 86px; object-fit: cover; border-radius: 12px; flex: none; }
.offer-card h3 { font-size: .98rem; }
.offer-card p { font-size: .8rem; color: var(--soft); margin-top: 3px; line-height: 1.35; }
.offer-card .price { color: var(--rose); font-size: .95rem; }
.pcard { width: 156px; text-decoration: none; background: #fff; border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }
.pcard__img { position: relative; aspect-ratio: 1; background: var(--cream-2); }
.pcard__img img { width: 100%; height: 100%; object-fit: cover; }
.pcard__img .tag { position: absolute; top: 8px; left: 8px; }
.pcard__body { padding: 9px 10px 11px; }
.pcard h3 { font-size: .95rem; font-family: var(--body); font-weight: 800; line-height: 1.25; }
.pcard .price { font-size: .95rem; }
.story-card { display: grid; grid-template-columns: 104px 1fr; gap: 14px; align-items: center; padding: 12px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); }
.story-card img { width: 104px; height: 124px; object-fit: cover; border-radius: 14px; }
.story-card h3 { font-size: 1.1rem; }
.story-card p { font-size: .86rem; color: var(--soft); margin-top: 4px; line-height: 1.45; }
.story-card .fssai { display: flex; align-items: center; gap: 5px; margin-top: 8px; font-size: .75rem; font-weight: 800; color: var(--choco); }
.story-card .fssai .icon { width: 16px; height: 16px; color: var(--rose-gold); }
.rating-teaser { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: var(--r); background: var(--cream-2); text-decoration: none; }
.rating-big { font-family: var(--display); font-weight: 700; font-size: 2rem; line-height: 1; }
.stars { display: flex; gap: 1px; color: var(--gold); }
.stars .icon { width: 16px; height: 16px; }
.banner { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: var(--r); background: var(--choco); color: var(--cream); text-decoration: none; }
.banner .icon { width: 34px; height: 34px; color: #F7C8A8; }
.banner strong { display: block; font-family: var(--display); font-size: 1.1rem; }
.banner span { font-size: .85rem; color: #EBD5C8; }

/* ---------- menu ---------- */
.group-title { padding: 16px 16px 8px; font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--rose-gold); }
.plist { display: grid; gap: 10px; padding: 0 16px; }
.prow { display: grid; grid-template-columns: 96px 1fr; gap: 12px; align-items: center; padding: 10px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); text-decoration: none; box-shadow: var(--shadow); }
.prow__img { position: relative; width: 96px; height: 96px; border-radius: 14px; overflow: hidden; background: #EAF4E2; display: grid; place-items: center; color: #3D6B2A; }
.prow__img img { width: 100%; height: 100%; object-fit: cover; }
.prow__img .count { position: absolute; right: 5px; bottom: 5px; display: inline-flex; align-items: center; gap: 3px; padding: 1px 6px; border-radius: 999px; background: rgba(40,20,12,.75); color: #fff; font-size: .66rem; font-weight: 800; }
.prow__img .count .icon { width: 12px; height: 12px; }
.prow h3 { font-family: var(--body); font-weight: 800; font-size: 1rem; line-height: 1.25; }
.prow p { font-size: .82rem; color: var(--soft); line-height: 1.35; margin-top: 2px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.prow__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 6px; }
.prow__tags { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 4px; }
.pack { margin: 0 16px 12px; padding: 14px 16px 6px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); }
.pack h3 { font-size: 1.05rem; margin-bottom: 4px; }
.pack-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); font-weight: 700; }
.pack-row .price { margin-left: auto; }
.pack-row .link { padding: 8px 0 8px 12px; }

/* ---------- product detail ---------- */
.carousel { position: relative; background: var(--cream-2); }
.carousel__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; aspect-ratio: 1 / .92; }
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__slide { position: relative; flex: 0 0 100%; margin: 0; scroll-snap-align: start; }
.carousel__slide img { width: 100%; height: 100%; object-fit: cover; }
.carousel__slide figcaption { position: absolute; left: 12px; bottom: 34px; padding: 4px 10px; border-radius: 999px; background: rgba(40,20,12,.72); color: #fff; font-size: .78rem; font-weight: 700; max-width: calc(100% - 24px); }
.carousel__slide figcaption:empty { display: none; }
.carousel__slide .rep { margin-left: 4px; padding-left: 6px; border-left: 1px solid rgba(255,255,255,.4); font-weight: 600; opacity: .85; }
.carousel__count { position: absolute; top: 12px; right: 12px; padding: 3px 10px; border-radius: 999px; background: rgba(40,20,12,.7); color: #fff; font-size: .78rem; font-weight: 800; }
.carousel__dots { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; gap: 6px; }
.carousel__dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: rgba(255,255,255,.7); box-shadow: 0 0 0 1px rgba(62,35,25,.25); cursor: pointer; transition: width .2s; }
.carousel__dots button[aria-current="true"] { width: 22px; background: #fff; }
.carousel__noimg { display: grid; place-items: center; align-content: center; gap: 8px; height: 100%; background: linear-gradient(160deg, #EAF4E2, #D9ECCB); color: #3D6B2A; font-weight: 800; }
.carousel__noimg .icon { width: 44px; height: 44px; }
.detail { padding: 16px; }
.detail__cat { display: flex; align-items: center; gap: 6px; font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--rose-gold); }
.detail h1 { font-size: 1.65rem; margin-top: 4px; }
.detail__desc { color: var(--soft); margin-top: 6px; }
.detail__price { display: flex; align-items: baseline; gap: 8px; margin-top: 10px; font-size: 1.5rem; }
.opt-group { margin-top: 20px; border: 0; padding: 0; min-width: 0; }
.opt-group > legend, .opt-title { display: flex; justify-content: space-between; width: 100%; margin-bottom: 10px; font-weight: 800; color: var(--choco); padding: 0; }
.toggles { display: flex; flex-wrap: wrap; gap: 8px; }
.toggle { position: relative; }
.toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.toggle span { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 76px; min-height: 54px; padding: 6px 12px; border-radius: 14px; border: 1.5px solid var(--line-2); background: #fff; font-weight: 800; line-height: 1.2; cursor: pointer; }
.toggle small { font-size: .74rem; color: var(--muted); font-weight: 700; }
.toggle input:checked + span { background: var(--choco); border-color: var(--choco); color: var(--cream); }
.toggle input:checked + span small { color: #F7C8A8; }
.toggle input:focus-visible + span { outline: 3px solid var(--rose); outline-offset: 2px; }
.toggle input:disabled + span { opacity: .45; cursor: not-allowed; }
.radio-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.radio-card { position: relative; }
.radio-card input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.radio-card span { display: grid; gap: 2px; height: 100%; padding: 12px 12px 12px 42px; border-radius: 16px; border: 1.5px solid var(--line-2); background: #fff; font-weight: 800; cursor: pointer; position: relative; line-height: 1.25; }
.radio-card span::before { content: ""; position: absolute; left: 14px; top: 14px; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line-2); background: #fff; }
.radio-card small { font-weight: 600; font-size: .78rem; color: var(--muted); }
.radio-card input:checked + span { border-color: var(--choco); background: #FFF6EF; }
.radio-card input:checked + span::before { border-color: var(--choco); box-shadow: inset 0 0 0 4px #fff; background: var(--choco); }
.radio-card input:disabled + span { opacity: .5; cursor: not-allowed; }
.radio-card input:focus-visible + span { outline: 3px solid var(--rose); outline-offset: 2px; }
.date-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 2px 16px 6px; }
.date-chips::-webkit-scrollbar { display: none; }
.date-chips .toggle span { min-width: 64px; min-height: 64px; }
.date-chips .toggle small:first-child { text-transform: uppercase; letter-spacing: .06em; font-size: .68rem; }
.date-chips .toggle strong { font-size: 1.2rem; }
.date-other { margin-top: 8px; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line-2); border-radius: 999px; background: #fff; }
.qty button { display: grid; place-items: center; width: 44px; height: 44px; border: 0; background: none; border-radius: 50%; cursor: pointer; }
.qty button[disabled] { opacity: .35; }
.qty .icon { width: 18px; height: 18px; }
.qty output { min-width: 26px; text-align: center; font-weight: 800; }
.qty--sm button { width: 36px; height: 36px; }
.promo { display: flex; align-items: center; gap: 8px; margin-top: 16px; padding: 10px 12px; border-radius: 12px; background: #FDE3EA; color: var(--rose); font-weight: 800; font-size: .88rem; }
.promo .icon { width: 20px; height: 20px; }
.counter { font-weight: 600; font-size: .78rem; color: var(--muted); }

.sticky {
  position: fixed; z-index: 46; left: 50%; bottom: 0; transform: translateX(-50%); width: 100%; max-width: var(--app-w);
  padding: 10px 16px calc(12px + var(--safe-b)); background: rgba(255,255,255,.98); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(62,35,25,.1);
}
.sticky__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.sticky__total { font-size: 1.3rem; }
.sticky__row { display: grid; grid-template-columns: 1.3fr 1fr; gap: 10px; }
.sticky__row .btn { min-height: 52px; padding: 10px 8px; gap: 6px; font-size: .95rem; }
.sticky__row .icon { width: 20px; height: 20px; }
.sticky__top .link { display: inline-flex; align-items: center; gap: 2px; }
.sticky__top .link .icon { width: 18px; height: 18px; }

/* ---------- cart & orders ---------- */
.citem { display: grid; grid-template-columns: 76px 1fr; gap: 12px; margin: 0 16px 10px; padding: 10px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); }
.citem__img { width: 76px; height: 76px; border-radius: 12px; overflow: hidden; background: #EAF4E2; display: grid; place-items: center; color: #3D6B2A; }
.citem__img img { width: 100%; height: 100%; object-fit: cover; }
.citem h3 { font-family: var(--body); font-weight: 800; font-size: .98rem; line-height: 1.25; }
.citem__opts { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.citem__opts span { padding: 2px 8px; border-radius: 999px; background: var(--cream-2); font-size: .74rem; font-weight: 700; color: var(--soft); }
.citem__row { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.summary { margin: 6px 16px 0; padding: 14px 16px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); }
.summary div { display: flex; justify-content: space-between; padding: 4px 0; }
.summary .total { border-top: 1px dashed var(--line-2); margin-top: 6px; padding-top: 10px; font-size: 1.15rem; font-weight: 800; }
.summary .promo-line { color: var(--rose); font-weight: 800; font-size: .86rem; }
.order { margin: 0 16px 12px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); overflow: hidden; }
.order__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; padding: 14px 16px 10px; }
.order__id { font-weight: 800; }
.status { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; background: #FFF4D6; color: #7A5A0C; font-size: .76rem; font-weight: 800; white-space: nowrap; }
.status--done { background: #E2F4E8; color: var(--wa-dark); }
.order__items { padding: 0 16px 10px; font-size: .88rem; color: var(--soft); }
.timeline { margin: 0 16px; padding: 12px 0 4px; border-top: 1px solid var(--line); }
.timeline li { position: relative; display: flex; gap: 12px; padding-bottom: 14px; font-size: .88rem; }
.timeline li::before { content: ""; position: absolute; left: 11px; top: 24px; bottom: 0; width: 2px; background: var(--line-2); }
.timeline li:last-child::before { display: none; }
.timeline .dot { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--cream-2); border: 2px solid var(--line-2); flex: none; }
.timeline .done .dot { background: var(--wa); border-color: var(--wa); color: #fff; }
.timeline .dot .icon { width: 14px; height: 14px; }
.timeline strong { display: block; }
.timeline .done strong { color: var(--wa-dark); }
.order__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 0 16px 14px; }
.order__actions .btn { min-height: 44px; font-size: .88rem; padding: 8px 10px; border-radius: 12px; }
.note { margin: 0 16px 14px; padding: 10px 12px; border-radius: 12px; background: var(--cream-2); font-size: .82rem; color: var(--soft); }

/* ---------- help ---------- */
.help-hero { margin: 16px; padding: 22px 18px; border-radius: 24px; background: var(--wa); color: #fff; text-align: center; }
.help-hero > .icon { width: 54px; height: 54px; margin: 0 auto 10px; }
.help-hero h2 { font-size: 1.45rem; }
.help-hero p { color: #DDF5E6; margin: 6px 0 16px; }
.help-hero .btn { background: #fff; color: var(--wa-dark); }
.qlist { display: grid; gap: 8px; padding: 0 16px; }
.qitem { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 10px 14px; border-radius: 16px; background: #fff; border: 1px solid var(--line); text-decoration: none; font-weight: 800; cursor: pointer; text-align: left; width: 100%; }
.qitem > .icon:first-child { width: 36px; height: 36px; padding: 7px; border-radius: 12px; background: var(--peach); color: var(--choco); }
.qitem span { flex: 1; }
.qitem small { display: block; font-weight: 600; color: var(--muted); font-size: .8rem; }
.qitem > .icon:last-child { width: 18px; height: 18px; color: var(--muted); }

/* ---------- bulk wizard ---------- */
.wizard-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 16px; }
.wizard-steps li { display: grid; gap: 6px; font-size: .74rem; font-weight: 800; color: var(--muted); text-align: center; }
.wizard-steps li::before { content: ""; height: 6px; border-radius: 999px; background: var(--line); }
.wizard-steps li.on { color: var(--choco); }
.wizard-steps li.on::before { background: var(--choco); }
.wizard { padding: 0 16px; }
.wizard h2 { font-size: 1.4rem; margin-bottom: 4px; }
.wizard > p { color: var(--soft); margin-bottom: 18px; }
.guest-quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.suggest { margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: var(--cream-2); font-size: .9rem; }
.review-box { padding: 14px 16px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); margin-bottom: 14px; }
.review-box div { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; font-size: .9rem; }
.review-box dt { color: var(--muted); font-weight: 700; }
.review-box dd { margin: 0; font-weight: 800; text-align: right; }
.wizard-nav { display: grid; grid-template-columns: 1fr 1.6fr; gap: 10px; }

/* ---------- reviews & gallery ---------- */
.rating-sum { display: flex; align-items: center; gap: 14px; margin: 14px 16px; padding: 16px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); }
.rating-sum .rating-big { font-size: 2.6rem; }
.rev { margin: 0 16px 10px; padding: 16px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); }
.rev h3 { font-size: 1.02rem; margin: 6px 0 4px; }
.rev blockquote { margin: 0; color: var(--soft); font-size: .92rem; }
.rev figcaption { margin-top: 8px; font-weight: 800; font-size: .88rem; }
.ggrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 0 16px; }
.ggrid a { aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: var(--cream-2); }
.ggrid img { width: 100%; height: 100%; object-fit: cover; }
.reels { display: grid; gap: 12px; padding: 0 16px; }
.reel { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; border-radius: var(--r); overflow: hidden; cursor: pointer; background: #140A07; }
.reel img { width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.reel__play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: rgba(255,255,255,.94); color: var(--rose); }
.reel__play .icon { width: 28px; height: 28px; margin-left: 3px; }
.reel span:last-child { position: absolute; left: 12px; bottom: 10px; color: #fff; font-weight: 800; text-shadow: 0 1px 6px rgba(0,0,0,.6); }
.player { aspect-ratio: 16 / 9; width: 100%; border: 0; border-radius: 14px; background: #000; }

/* ---------- profile ---------- */
.card { margin: 0 16px 12px; padding: 16px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); }
.card h2 { font-size: 1.15rem; margin-bottom: 12px; }
.avatar { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: linear-gradient(135deg, #F7C3CF, var(--peach-2)); font-family: var(--display); font-weight: 700; font-size: 1.6rem; color: var(--choco); }
.addr { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--line); }
.addr:first-of-type { border-top: 0; }
.addr .icon { width: 22px; height: 22px; color: var(--rose-gold); margin-top: 2px; }
.addr div { flex: 1; font-size: .9rem; }
.addr strong { display: flex; align-items: center; gap: 6px; }
.addr__actions { display: flex; gap: 14px; margin-top: 4px; }
.def { padding: 1px 8px; border-radius: 999px; background: #E2F4E8; color: var(--wa-dark); font-size: .7rem; }
.info-list li { display: flex; gap: 10px; align-items: center; padding: 8px 0; font-size: .92rem; }
.info-list .icon { width: 20px; height: 20px; color: var(--rose-gold); }

/* ---------- sheet & toast ---------- */
dialog { border: 0; padding: 0; background: transparent; max-width: none; max-height: none; color: var(--text); }
dialog::backdrop { background: rgba(38,20,14,.55); }
.sheet { margin: auto auto 0; width: 100%; max-width: var(--app-w); }
.sheet__inner { max-height: 92dvh; overflow-y: auto; background: var(--cream); border-radius: 24px 24px 0 0; padding: 8px 16px calc(18px + var(--safe-b)); }
.sheet__grip { width: 44px; height: 5px; border-radius: 999px; background: var(--line-2); margin: 4px auto 10px; }
.sheet__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.sheet__head h2 { font-size: 1.3rem; }
@media (prefers-reduced-motion: no-preference) { .sheet[open] { animation: up .25s ease-out; } }
.toast {
  position: fixed; z-index: 90; left: 50%; bottom: calc(var(--tab-h) + var(--safe-b) + 84px); transform: translate(-50%, 16px);
  display: flex; align-items: center; gap: 10px; width: max-content; max-width: min(92vw, 480px); padding: 12px 12px 12px 16px; border-radius: 14px;
  background: var(--choco); color: var(--cream); font-weight: 700; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
}
body.has-bar .toast { bottom: calc(var(--sticky-h, 128px) + var(--safe-b) + 74px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast:empty { display: none; }
.toast .btn { min-height: 36px; padding: 6px 12px; font-size: .88rem; border-radius: 10px; background: var(--cream); color: var(--choco); white-space: nowrap; }

@keyframes in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes up { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes ping { 0% { transform: scale(1); opacity: .45; } 80%, 100% { transform: scale(1.35); opacity: 0; } }
.note .icon { display: inline-block; width: 18px; height: 18px; vertical-align: -4px; margin-right: 4px; color: var(--wa); }
