/* A2Z Mart – customer store (mobile first, coral theme) */
:root {
  --primary: #ff5a36;
  --primary-dark: #e2401d;
  --accent: #7c4dff;
  --sun: #ffb800;
  --mint: #12b886;
  --ink: #1f1b2d;
  --muted: #8a8698;
  --bg: #fff8f3;
  --card: #ffffff;
  --line: #f1e9e3;
  --radius: 22px;
  --shadow: 0 10px 30px rgba(255, 90, 54, .12);
  --shadow-soft: 0 4px 16px rgba(31, 27, 45, .06);
  --nav-h: 76px;
}
* { -webkit-tap-highlight-color: transparent; }
html, body { background: #f3ece7; }
body { font-family: 'Poppins', system-ui, sans-serif; color: var(--ink); font-size: 14px; }
a { color: inherit; text-decoration: none; }
.text-muted-2 { color: var(--muted) !important; }
.fw-800 { font-weight: 800; }
.min-w-0 { min-width: 0; }

.app {
  max-width: 480px; min-height: 100vh; margin: 0 auto; background: var(--bg);
  position: relative; padding-bottom: calc(var(--nav-h) + 28px); overflow-x: hidden;
}
@media (min-width: 520px) { .app { box-shadow: 0 0 60px rgba(0, 0, 0, .08); } }

/* ---------- Top ---------- */
.hero {
  background: radial-gradient(120% 120% at 0% 0%, #ff8a5b 0%, var(--primary) 45%, #ff2e63 100%);
  color: #fff; padding: 22px 20px 70px; border-radius: 0 0 34px 34px; position: relative; overflow: hidden;
}
.hero::after { content: ''; position: absolute; right: -60px; top: -40px; width: 200px; height: 200px; border-radius: 50%; background: rgba(255,255,255,.12); }
.hero::before { content: ''; position: absolute; left: -40px; bottom: -70px; width: 160px; height: 160px; border-radius: 50%; background: rgba(255,184,0,.25); }
.hero > * { position: relative; z-index: 1; }
.brand { font-weight: 800; font-size: 20px; letter-spacing: -.3px; }
.brand-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--sun); margin-left: 2px; }
.icon-btn {
  width: 42px; height: 42px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.18); color: #fff; border: 0; font-size: 18px; backdrop-filter: blur(6px);
}
.icon-btn.light { background: #fff; color: var(--ink); box-shadow: var(--shadow-soft); }
.searchbar {
  margin: -30px 20px 0; position: relative; z-index: 2; background: #fff; border-radius: 18px; box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 16px;
}
.searchbar input { border: 0; outline: 0; flex: 1; font-size: 14px; background: transparent; min-width: 0; }
.searchbar .go { width: 42px; height: 42px; border-radius: 14px; border: 0; background: var(--ink); color: #fff; font-size: 16px; flex: 0 0 42px; }
.page-head {
  position: sticky; top: 0; z-index: 20; background: rgba(255,248,243,.92); backdrop-filter: blur(10px);
  padding: 16px 20px 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.page-head h1 { font-size: 20px; font-weight: 800; margin: 0; }

/* ---------- Flash ---------- */
.flash-wrap { padding: 12px 20px 0; }
.flash-msg { border-radius: 16px; padding: 11px 14px; font-size: 13px; font-weight: 600; display: flex; gap: 8px; align-items: center; }
.flash-success { background: #d3f9d8; color: #2b8a3e; }
.flash-error { background: #ffe3e3; color: #c92a2a; }
.flash-info { background: #e7f5ff; color: #1971c2; }

/* ---------- Price chips & pills ---------- */
.price-chips { display: flex; gap: 10px; padding: 20px 20px 0; }
.price-chip { flex: 1; border-radius: 18px; padding: 12px 8px; text-align: center; color: #fff; font-weight: 800; font-size: 20px; line-height: 1.1; box-shadow: var(--shadow-soft); }
.price-chip small { display: block; font-weight: 500; font-size: 11px; opacity: .92; }
.pc-7 { background: linear-gradient(135deg, #12b886, #38d9a9); }
.pc-10 { background: linear-gradient(135deg, #7c4dff, #b197fc); }
.pc-20 { background: linear-gradient(135deg, #ff5a36, #ffb800); }
.filter-pills { display: flex; gap: 8px; overflow-x: auto; padding: 4px 20px 10px; scrollbar-width: none; }
.filter-pills::-webkit-scrollbar { display: none; }
.pill { flex: 0 0 auto; border: 1.5px solid var(--line); background: #fff; color: var(--ink); border-radius: 999px; padding: 7px 16px; font-weight: 600; font-size: 13px; }
.pill.active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- Section heads ---------- */
.section { padding: 26px 0 0; }
.section-head { display: flex; align-items: center; justify-content: space-between; padding: 0 20px 12px; gap: 10px; }
.section-head h2 { font-size: 17px; font-weight: 800; margin: 0; display: flex; align-items: center; }
.section-head .see { color: var(--primary); font-weight: 600; font-size: 13px; white-space: nowrap; }
.section-emoji { display: inline-flex; width: 30px; height: 30px; border-radius: 10px; align-items: center; justify-content: center; margin-right: 8px; font-size: 15px; flex: 0 0 30px; }
.eyebrow { font-size: 10.5px; letter-spacing: 1.2px; font-weight: 700; color: var(--primary); text-transform: uppercase; display: block; margin-bottom: 2px; }

/* ---------- Product image ---------- */
.pimg { position: relative; width: 100%; aspect-ratio: 1 / 1; overflow: hidden; background: linear-gradient(135deg, #fff1ec, #ffe3d6); }
.pimg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pimg.contain img { object-fit: contain; }

/* ---------- Product card (grid) ---------- */
.pcard { background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-soft); position: relative; display: block; transition: transform .15s; }
.pcard:active { transform: scale(.98); }
.pcard .body { padding: 10px 12px 12px; }
.pcard .name { font-weight: 600; font-size: 13px; line-height: 1.3; min-height: 34px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard .meta { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
.price { font-weight: 800; font-size: 17px; }
.stats { color: var(--muted); font-size: 11px; display: flex; gap: 8px; }
.stats i { margin-right: 2px; }
.badge-new { position: absolute; top: 10px; left: 10px; z-index: 2; background: var(--ink); color: #fff; font-size: 10px; font-weight: 700; padding: 4px 9px; border-radius: 999px; letter-spacing: .4px; }
.badge-low { position: absolute; top: 10px; left: 10px; z-index: 2; background: #fff3bf; color: #a35f00; font-size: 10px; font-weight: 700; padding: 4px 9px; border-radius: 999px; }
.like-fab {
  position: absolute; top: 8px; right: 8px; z-index: 3; width: 34px; height: 34px; border-radius: 12px; border: 0;
  background: rgba(255,255,255,.88); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; font-size: 16px; color: var(--ink);
}
.like-fab.liked { color: #ff2e63; }
.add-mini { width: 32px; height: 32px; border-radius: 11px; border: 0; background: var(--primary); color: #fff; font-size: 18px; line-height: 1; flex: 0 0 32px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 6px 20px; }

/* ---------- HOME 1: Our Picks – big swipe slider ---------- */
.picks { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 20px; padding: 4px 20px 6px; scrollbar-width: none; }
.picks::-webkit-scrollbar { display: none; }
.pick-card {
  flex: 0 0 86%; scroll-snap-align: start; border-radius: 28px; overflow: hidden; position: relative; color: #fff;
  display: grid; grid-template-columns: 1fr 1fr; min-height: 190px; box-shadow: var(--shadow);
}
.pick-c0 { background: linear-gradient(135deg, #ff8a5b, #ff2e63); }
.pick-c1 { background: linear-gradient(135deg, #7c4dff, #b197fc); }
.pick-c2 { background: linear-gradient(135deg, #12b886, #38d9a9); }
.pick-c3 { background: linear-gradient(135deg, #f59f00, #ffd43b); }
.pick-c4 { background: linear-gradient(135deg, #1f1b2d, #4c4369); }
.pick-copy { padding: 18px 8px 18px 18px; display: flex; flex-direction: column; justify-content: space-between; min-width: 0; }
.pick-copy .tag { display: inline-block; background: rgba(255,255,255,.22); border-radius: 999px; padding: 3px 10px; font-size: 10px; font-weight: 700; letter-spacing: .6px; align-self: flex-start; }
.pick-copy strong { font-size: 17px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin: 10px 0 6px; }
.pick-copy .pick-price { font-size: 26px; font-weight: 800; line-height: 1; }
.pick-img { position: relative; margin: 14px 14px 14px 0; border-radius: 20px; overflow: hidden; background: rgba(255,255,255,.25); }
.pick-img img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.picks-dots { display: flex; gap: 6px; justify-content: center; padding-top: 10px; }
.picks-dots button { width: 7px; height: 7px; border-radius: 999px; border: 0; background: #ffd0c2; padding: 0; transition: width .2s; }
.picks-dots button.active { width: 22px; background: var(--primary); }

/* ---------- HOME 2: New arrivals – numbered tall rail ---------- */
.new-rail { display: flex; gap: 12px; overflow-x: auto; padding: 4px 20px 10px; scroll-snap-type: x mandatory; scroll-padding: 0 20px; scrollbar-width: none; }
.new-rail::-webkit-scrollbar { display: none; }
.new-card { flex: 0 0 140px; scroll-snap-align: start; position: relative; }
.new-card .num { position: absolute; left: -4px; bottom: 54px; z-index: 2; font-size: 64px; font-weight: 800; line-height: 1; color: #fff; -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill; }
.new-card .ph { aspect-ratio: 3 / 4; border-radius: 22px; overflow: hidden; background: #fff; box-shadow: var(--shadow-soft); position: relative; }
.new-card .ph img { width: 100%; height: 100%; object-fit: cover; }
.new-card .ribbon { position: absolute; top: 10px; right: -30px; transform: rotate(35deg); background: var(--accent); color: #fff; font-size: 9px; font-weight: 800; letter-spacing: 1px; padding: 3px 34px; }
.new-card .cap { padding: 8px 4px 0 28px; }
.new-card .cap strong { display: block; font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.new-card .cap span { font-weight: 800; color: var(--primary); }

/* ---------- HOME 3: Most loved – feature + ranked list ---------- */
.loved { padding: 0 20px; display: grid; gap: 12px; }
.loved-feature { border-radius: 26px; overflow: hidden; position: relative; display: block; aspect-ratio: 16 / 11; box-shadow: var(--shadow); }
.loved-feature img { width: 100%; height: 100%; object-fit: cover; }
.loved-feature::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(31,27,45,.85)); }
.loved-feature .over { position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 2; color: #fff; display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; }
.loved-feature .crown { position: absolute; top: 14px; left: 14px; z-index: 2; background: #fff; color: #ff2e63; font-weight: 800; font-size: 11px; border-radius: 999px; padding: 5px 12px; }
.loved-feature .over strong { font-size: 18px; line-height: 1.2; display: block; }
.loved-feature .hearts { background: #ff2e63; border-radius: 14px; padding: 6px 10px; font-weight: 800; font-size: 13px; white-space: nowrap; }
.loved-row { display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 18px; padding: 8px 12px 8px 8px; box-shadow: var(--shadow-soft); }
.loved-row img { width: 54px; height: 54px; border-radius: 14px; object-fit: cover; flex: 0 0 54px; }
.loved-row .rank { font-weight: 800; color: #ffb4a2; font-size: 18px; width: 24px; text-align: center; flex: 0 0 24px; }
.loved-row .t { flex: 1; min-width: 0; }
.loved-row .t strong { display: block; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.loved-row .t span { font-weight: 800; font-size: 13px; }
.loved-row .h { color: #ff2e63; font-weight: 700; font-size: 12.5px; white-space: nowrap; }

/* ---------- HOME 4: Most viewed – staggered wall ---------- */
.wall { columns: 2; column-gap: 12px; padding: 0 20px; }
.wall-tile { break-inside: avoid; display: block; margin-bottom: 12px; border-radius: 22px; overflow: hidden; background: #fff; box-shadow: var(--shadow-soft); position: relative; }
.wall-tile img { width: 100%; display: block; object-fit: cover; }
.wall-tile.h0 img { aspect-ratio: 3 / 4; }
.wall-tile.h1 img { aspect-ratio: 1 / 1; }
.wall-tile.h2 img { aspect-ratio: 4 / 5; }
.wall-tile .eye { position: absolute; top: 10px; left: 10px; background: rgba(31,27,45,.7); color: #fff; font-size: 11px; font-weight: 700; border-radius: 999px; padding: 4px 10px; backdrop-filter: blur(4px); }
.wall-tile .cap { padding: 9px 12px 11px; }
.wall-tile .cap strong { display: block; font-size: 12.5px; font-weight: 600; line-height: 1.3; }
.wall-tile .cap span { font-weight: 800; }

/* Promo strip */
.promo { margin: 26px 20px 0; padding: 16px; border-radius: 22px; display: flex; align-items: center; gap: 14px; background: linear-gradient(135deg, #1f1b2d, #3b3355); color: #fff; }
.promo .big { font-size: 38px; }

/* Double-tap heart burst */
.heart-burst {
  position: absolute; left: 50%; top: 50%; z-index: 5; pointer-events: none; font-size: 90px; color: #fff;
  transform: translate(-50%, -50%) scale(0); text-shadow: 0 8px 24px rgba(255,46,99,.6); animation: burst .9s ease forwards;
}
@keyframes burst {
  0% { transform: translate(-50%,-50%) scale(0); opacity: 0; }
  15% { transform: translate(-50%,-50%) scale(1.2); opacity: 1; }
  30% { transform: translate(-50%,-50%) scale(.95); }
  45% { transform: translate(-50%,-50%) scale(1.05); }
  80% { transform: translate(-50%,-50%) scale(1); opacity: 1; }
  100% { transform: translate(-50%,-80%) scale(1); opacity: 0; }
}
.pop { animation: pop .35s ease; }
@keyframes pop { 50% { transform: scale(1.35); } }

/* ---------- Product detail ---------- */
.detail-gallery { position: relative; background: #fff; border-radius: 0 0 34px 34px; overflow: hidden; }
.detail-gallery .slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.detail-gallery .slides::-webkit-scrollbar { display: none; }
.detail-gallery .slide { flex: 0 0 100%; scroll-snap-align: start; aspect-ratio: 1 / 1.02; background: linear-gradient(135deg, #fff1ec, #ffe3d6); position: relative; }
.detail-gallery .slide img { width: 100%; height: 100%; object-fit: contain; }
.gallery-top { position: absolute; top: 16px; left: 16px; right: 16px; z-index: 6; display: flex; justify-content: space-between; }
.gallery-top .icon-btn { background: rgba(255,255,255,.9); color: var(--ink); }
.gallery-dots { position: absolute; bottom: 16px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; z-index: 6; }
.gallery-dots span { width: 8px; height: 8px; border-radius: 999px; background: #fff; opacity: .55; transition: all .2s; box-shadow: 0 1px 4px rgba(0,0,0,.2); }
.gallery-dots span.active { width: 22px; opacity: 1; }
.dbl-hint { position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%); z-index: 6; background: rgba(31,27,45,.55); color: #fff; font-size: 11px; padding: 4px 12px; border-radius: 999px; white-space: nowrap; pointer-events: none; }
.thumbs { display: flex; gap: 10px; padding: 14px 20px 0; overflow-x: auto; }
.thumbs button { width: 58px; height: 58px; flex: 0 0 58px; border: 2px solid transparent; border-radius: 14px; overflow: hidden; padding: 0; background: #fff; }
.thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.thumbs button.active { border-color: var(--primary); }
.info-card { background: #fff; margin: 16px 20px 0; border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-soft); }
.stat-row { display: flex; gap: 10px; margin-top: 14px; }
.stat-box { flex: 1; background: var(--bg); border-radius: 16px; padding: 10px; text-align: center; }
.stat-box b { display: block; font-size: 16px; }
.stat-box span { font-size: 11px; color: var(--muted); }
.stock-ok { color: var(--mint); }
.stock-low { color: #e8590c; }
.desc { white-space: pre-line; }
.qty { display: inline-flex; align-items: center; background: var(--bg); border-radius: 14px; padding: 4px; }
.qty button { width: 34px; height: 34px; border: 0; border-radius: 11px; background: #fff; font-size: 18px; font-weight: 700; box-shadow: var(--shadow-soft); color: var(--ink); }
.qty span, .qty input { min-width: 34px; width: 38px; text-align: center; font-weight: 700; border: 0; background: transparent; }
.qty.sm button { width: 28px; height: 28px; font-size: 15px; border-radius: 9px; }
.qty.dark { background: rgba(255,255,255,.1); }
.qty.dark span { color: #fff; }
.sticky-cta {
  position: fixed; bottom: calc(var(--nav-h) + 22px); left: 50%; transform: translateX(-50%); width: calc(100% - 40px); max-width: 440px; z-index: 30;
  background: var(--ink); color: #fff; border-radius: 22px; padding: 10px 10px 10px 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  box-shadow: 0 14px 30px rgba(31,27,45,.3);
}
.btn-primary-dm { background: var(--primary); color: #fff; border: 0; border-radius: 16px; font-weight: 700; padding: 13px 20px; box-shadow: 0 8px 18px rgba(255,90,54,.35); display: inline-block; text-align: center; }
.btn-primary-dm:hover, .btn-primary-dm:focus { background: var(--primary-dark); color: #fff; }
.btn-primary-dm:disabled { opacity: .5; }
.btn-ghost-dm { background: #fff; color: var(--ink); border: 1.5px solid var(--line); border-radius: 16px; font-weight: 600; padding: 12px 18px; display: inline-block; text-align: center; }
.btn-danger-soft { background: #fff0f0; color: #e03131; border: 0; border-radius: 12px; font-weight: 600; font-size: 12px; padding: 7px 12px; }

/* ---------- Bottom navigation ---------- */
.bottom-nav {
  position: fixed; bottom: 12px; left: 50%; transform: translateX(-50%); width: calc(100% - 24px); max-width: 456px; height: var(--nav-h); z-index: 40;
  background: rgba(255,255,255,.94); backdrop-filter: blur(14px); border-radius: 26px; box-shadow: 0 12px 34px rgba(31,27,45,.14);
  display: flex; align-items: center; justify-content: space-around; padding: 0 6px;
}
.bottom-nav a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; color: var(--muted); font-size: 10.5px; font-weight: 600; position: relative; }
.bottom-nav a i { font-size: 20px; }
.bottom-nav a.active { color: var(--primary); }
.bottom-nav a.active::after { content: ''; position: absolute; bottom: -9px; width: 5px; height: 5px; border-radius: 50%; background: var(--primary); }
.bottom-nav .nav-center { margin-top: -34px; }
.bottom-nav .nav-center .bubble {
  width: 58px; height: 58px; border-radius: 20px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #ff8a5b, var(--primary)); color: #fff; font-size: 24px; box-shadow: 0 10px 22px rgba(255,90,54,.45);
  border: 4px solid var(--bg); position: relative;
}
.bottom-nav .nav-center.active::after { display: none; }
.nav-badge {
  position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--ink); color: #fff;
  font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center; border: 2px solid #fff;
}

/* ---------- List & orders ---------- */
.seg { display: flex; background: #fff; border-radius: 16px; padding: 5px; margin: 0 20px; box-shadow: var(--shadow-soft); }
.seg a { flex: 1; text-align: center; border-radius: 12px; padding: 10px; font-weight: 700; color: var(--muted); }
.seg a.active { background: var(--ink); color: #fff; }
.list-item { display: flex; gap: 12px; align-items: center; background: #fff; border-radius: 20px; padding: 10px; box-shadow: var(--shadow-soft); }
.list-item .thumb { width: 72px; height: 72px; border-radius: 16px; overflow: hidden; flex: 0 0 72px; background: #fff1ec; }
.list-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.list-item .name { font-weight: 600; font-size: 13.5px; }
.list-item.unavailable { opacity: .6; }
.summary { background: #fff; border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-soft); }
.note { display: flex; gap: 10px; background: #fff7e6; color: #8a5300; border-radius: 16px; padding: 12px 14px; font-size: 12.5px; }
.order-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-soft); overflow: hidden; display: block; }
.order-card .top { padding: 14px 16px; display: flex; justify-content: space-between; align-items: center; gap: 10px; border-bottom: 1px dashed var(--line); }
.order-card .items { padding: 6px 16px; }
.order-line { display: flex; align-items: center; gap: 10px; padding: 8px 0; }
.order-line .ph { width: 42px; height: 42px; border-radius: 12px; overflow: hidden; flex: 0 0 42px; background: #fff1ec; }
.order-line .ph img { width: 100%; height: 100%; object-fit: cover; }
.order-line.cancelled .lbl { text-decoration: line-through; color: var(--muted); }
.order-card .foot { padding: 12px 16px 16px; }
.status { font-size: 11px; font-weight: 700; padding: 5px 10px; border-radius: 999px; white-space: nowrap; }
.st-confirmed { background: #fff3bf; color: #a35f00; }
.st-ready { background: #d0ebff; color: #1864ab; }
.st-picked { background: #d3f9d8; color: #2b8a3e; }
.st-cancel { background: #ffe3e3; color: #c92a2a; }
.st-expired { background: #e9ecef; color: #495057; }
.countdown { background: linear-gradient(135deg, var(--ink), #3b3355); color: #fff; border-radius: 16px; padding: 12px 14px; display: flex; align-items: center; gap: 12px; }
.countdown .time { font-weight: 800; font-size: 18px; letter-spacing: .5px; }
.ready-box { background: linear-gradient(135deg, #12b886, #38d9a9); color: #fff; border-radius: 16px; padding: 12px 14px; display: flex; gap: 12px; align-items: center; }
.reason { font-size: 11px; color: #c92a2a; }
.empty { text-align: center; padding: 40px 30px; }
.empty .big { font-size: 64px; }
.date-opt { display: block; }
.date-opt input { display: none; }
.date-opt span { display: block; border: 2px solid var(--line); border-radius: 16px; padding: 10px 6px; text-align: center; font-weight: 700; font-size: 13px; background: #fff; }
.date-opt span small { display: block; font-weight: 500; color: var(--muted); font-size: 11px; }
.date-opt input:checked + span { border-color: var(--primary); background: #fff1ec; color: var(--primary); }

/* ---------- Shop ---------- */
.shop-card { margin: 0 20px; border-radius: 28px; padding: 22px; color: #fff; position: relative; overflow: hidden; background: linear-gradient(150deg, #2b2440, var(--ink)); }
.shop-card .open { display: inline-flex; align-items: center; gap: 6px; background: rgba(18,184,134,.2); color: #63e6be; font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 999px; }
.shop-card .open.closed { background: rgba(255,90,54,.2); color: #ffa8a8; }
.shop-card .open::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.big-action { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; border-radius: 24px; padding: 22px 10px; font-weight: 700; color: #fff; box-shadow: var(--shadow-soft); }
.big-action:hover { color: #fff; }
.big-action i { font-size: 30px; }
.ba-call { background: linear-gradient(135deg, #12b886, #38d9a9); }
.ba-map { background: linear-gradient(135deg, #7c4dff, #b197fc); }
.map-box {
  margin: 0 20px; height: 170px; border-radius: 24px; position: relative; overflow: hidden; display: block;
  background: linear-gradient(90deg, rgba(255,255,255,.6) 2px, transparent 2px) 0 0 / 40px 40px, linear-gradient(0deg, rgba(255,255,255,.6) 2px, transparent 2px) 0 0 / 40px 40px, linear-gradient(135deg, #d0ebff, #e6fcf5);
}
.map-pin { position: absolute; left: 50%; top: 45%; transform: translate(-50%, -50%); font-size: 40px; color: var(--primary); animation: bounce 1.6s infinite; }
@keyframes bounce { 50% { transform: translate(-50%, -62%); } }
.detail-row { display: flex; gap: 14px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line); }
.detail-row:last-child { border-bottom: 0; }
.detail-row .ic { width: 40px; height: 40px; border-radius: 14px; background: var(--bg); display: flex; align-items: center; justify-content: center; color: var(--primary); font-size: 18px; flex: 0 0 40px; }

/* ---------- Profile ---------- */
.profile-hero { text-align: center; padding-bottom: 80px; }
.avatar { width: 86px; height: 86px; border-radius: 30px; margin: 6px auto 10px; background: linear-gradient(135deg, var(--sun), #fff); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 32px; font-weight: 800; box-shadow: 0 10px 24px rgba(0,0,0,.15); }
.id-chip { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.2); border-radius: 999px; padding: 6px 8px 6px 14px; font-weight: 700; letter-spacing: 1px; }
.id-chip button { border: 0; background: #fff; color: var(--primary); border-radius: 999px; width: 28px; height: 28px; }
.float-stats { margin: -56px 20px 0; position: relative; z-index: 2; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); display: flex; padding: 16px 6px; }
.float-stats div { flex: 1; text-align: center; }
.float-stats div + div { border-left: 1px solid var(--line); }
.float-stats b { display: block; font-size: 20px; }
.float-stats span { font-size: 11px; color: var(--muted); }
.menu-list { background: #fff; border-radius: var(--radius); margin: 16px 20px 0; box-shadow: var(--shadow-soft); overflow: hidden; }
.menu-list a, .menu-list button { display: flex; align-items: center; gap: 14px; padding: 15px 18px; width: 100%; border: 0; background: none; text-align: left; font-weight: 600; color: var(--ink); }
.menu-list > * + * { border-top: 1px solid var(--line) !important; }
.menu-list .ic { width: 36px; height: 36px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 17px; }
.menu-list .chev { margin-left: auto; color: var(--muted); }
.hscroll { display: flex; gap: 14px; overflow-x: auto; padding: 4px 20px 10px; scroll-snap-type: x mandatory; scroll-padding: 0 20px; scrollbar-width: none; }
.hscroll::-webkit-scrollbar { display: none; }
.hscroll > * { scroll-snap-align: start; flex: 0 0 150px; }

/* ---------- Auth ---------- */
.auth-top { padding: 34px 26px 90px; }
.auth-top h1 { font-size: 28px; font-weight: 800; line-height: 1.15; margin: 18px 0 6px; }
.auth-card { margin: -60px 16px 0; background: #fff; border-radius: 30px; padding: 24px 20px; box-shadow: var(--shadow); position: relative; z-index: 2; }
.dm-label { font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 6px; text-transform: uppercase; letter-spacing: .6px; display: block; }
.dm-input { width: 100%; border: 1.5px solid var(--line); border-radius: 16px; padding: 13px 16px; font-size: 15px; background: var(--bg); outline: 0; transition: border-color .2s, background .2s; color: var(--ink); }
.dm-input:focus { border-color: var(--primary); background: #fff; }
.input-icon { position: relative; }
.input-icon i { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.input-icon .dm-input { padding-left: 42px; }
.pin-input { letter-spacing: 14px; font-size: 26px; font-weight: 800; text-align: center; -webkit-text-security: disc; }
.pin-input::placeholder { letter-spacing: 10px; color: #d9cfc8; }
.success-id { font-size: 32px; font-weight: 800; letter-spacing: 3px; color: var(--primary); background: #fff1ec; border: 2px dashed #ffc9b9; border-radius: 20px; padding: 14px; text-align: center; word-break: break-all; }
.confetti { font-size: 60px; text-align: center; animation: pop 1s ease; }
.form-err { background: #ffe3e3; color: #c92a2a; border-radius: 14px; padding: 10px 14px; font-size: 13px; font-weight: 600; margin-bottom: 12px; }

/* ---------- Toast & sheet ---------- */
.dm-toast {
  position: fixed; left: 50%; bottom: calc(var(--nav-h) + 34px); transform: translate(-50%, 20px); background: var(--ink); color: #fff;
  padding: 11px 18px; border-radius: 14px; font-weight: 600; font-size: 13px; opacity: 0; transition: all .25s; z-index: 1080;
  white-space: nowrap; box-shadow: 0 10px 24px rgba(0,0,0,.25); pointer-events: none;
}
.dm-toast.show { opacity: 1; transform: translate(-50%, 0); }
.offcanvas.sheet { border-radius: 28px 28px 0 0; max-width: 480px; margin: 0 auto; height: auto !important; }
.sheet-grip { width: 44px; height: 5px; border-radius: 999px; background: var(--line); margin: 10px auto 0; }
.modal-content { border-radius: 26px; border: 0; }
