:root {
  --pink: #ff3d8b;
  --pink-deep: #e5246f;
  --pink-soft: #ffe1ee;
  --lilac: #a66cff;
  --lilac-soft: #efe3ff;
  --peach: #ff9e7a;
  --peach-soft: #ffe9e0;
  --bg: #fff5f9;
  --card: #ffffff;
  --ink: #2b1630;
  --muted: #8a6f86;
  --line: #f6dce8;
  --success: #22b07d;
  --grad: linear-gradient(135deg, #ff3d8b 0%, #c856e8 55%, #a66cff 100%);
  --grad-warm: linear-gradient(135deg, #ff9e7a 0%, #ff3d8b 100%);
  --shadow: 0 10px 30px -12px rgba(229, 36, 111, 0.35);
  --shadow-sm: 0 4px 14px -6px rgba(140, 40, 110, 0.25);
  --radius: 22px;
  --tabbar-h: 68px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Manrope", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; padding: 0; }
input, textarea, select { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }

#app {
  max-width: 520px;
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
  padding-bottom: calc(var(--tabbar-h) + var(--safe-b) + 16px);
}

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px;
  background: rgba(255, 245, 249, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.brand { font-family: "Unbounded", sans-serif; font-weight: 800; font-size: 22px; letter-spacing: -0.02em; }
.brand-mark {
  background: var(--grad); color: #fff;
  padding: 2px 8px 3px; border-radius: 10px; margin-right: 2px;
}
.brand-word { color: var(--pink); }
.icon-btn {
  position: relative; width: 44px; height: 44px; border-radius: 14px;
  display: grid; place-items: center; background: #fff; color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.badge {
  position: absolute; top: -4px; right: -4px;
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px;
  background: var(--pink); color: #fff; font-size: 11px; font-weight: 800;
  display: grid; place-items: center; border: 2px solid var(--bg);
}
.badge[hidden] { display: none; }
.badge.small { top: 2px; right: calc(50% - 24px); }
.badge.pop { animation: pop .35s cubic-bezier(.3,1.6,.5,1); }
@keyframes pop { from { transform: scale(.4); } to { transform: scale(1); } }

main { padding: 0 16px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  margin-top: 6px;
  border-radius: 28px;
  background: var(--grad);
  color: #fff;
  padding: 22px 20px 20px;
  min-height: 178px;
  box-shadow: var(--shadow);
}
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%;
}
.hero::before { width: 220px; height: 220px; right: -70px; top: -80px; background: rgba(255, 158, 122, 0.55); filter: blur(4px); }
.hero::after { width: 140px; height: 140px; right: 40px; bottom: -70px; background: rgba(255, 255, 255, 0.18); }
.hero-img {
  position: absolute; right: -10px; bottom: -6px; width: 46%; max-width: 210px;
  aspect-ratio: 1; object-fit: cover; border-radius: 24px 0 0 0;
  transform: rotate(-6deg); box-shadow: 0 16px 30px -10px rgba(60, 0, 50, .45);
  z-index: 1;
}
.hero-body { position: relative; z-index: 2; max-width: 58%; }
.hero-tag {
  display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  background: rgba(255,255,255,.22); padding: 5px 10px; border-radius: 999px;
}
.hero h1 {
  font-family: "Unbounded", sans-serif; font-weight: 700;
  font-size: 22px; line-height: 1.15; margin: 10px 0 8px; letter-spacing: -0.01em;
}
.hero p { margin: 0 0 14px; font-size: 13px; opacity: .92; }
.hero-cta {
  background: #fff; color: var(--pink-deep); font-weight: 800; font-size: 13px;
  padding: 10px 16px; border-radius: 999px; box-shadow: 0 6px 16px -6px rgba(0,0,0,.25);
}

/* ---------- Search ---------- */
.search {
  margin: 16px 0 4px; display: flex; align-items: center; gap: 10px;
  background: #fff; border-radius: 16px; padding: 0 14px; height: 48px;
  box-shadow: var(--shadow-sm); border: 1.5px solid transparent; transition: border-color .2s;
}
.search:focus-within { border-color: var(--pink); }
.search svg { color: var(--muted); flex: none; }
.search input { flex: 1; border: 0; outline: 0; background: none; font-size: 15px; min-width: 0; }
.search input::placeholder { color: #b9a2b4; }

/* ---------- Chips ---------- */
.chips {
  display: flex; gap: 8px; overflow-x: auto; margin: 12px -16px 4px; padding: 4px 16px 8px;
  scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 14px; border-radius: 999px; background: #fff;
  font-weight: 700; font-size: 13px; color: var(--ink);
  box-shadow: var(--shadow-sm); transition: transform .15s, background .2s, color .2s;
}
.chip:active { transform: scale(.96); }
.chip.active { background: var(--ink); color: #fff; }

/* ---------- Section heading ---------- */
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin: 18px 0 12px; }
.section-head h2 { font-family: "Unbounded", sans-serif; font-size: 18px; font-weight: 700; margin: 0; letter-spacing: -0.01em; }
.section-head span { color: var(--muted); font-size: 13px; font-weight: 600; }

/* ---------- Product grid ---------- */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.card {
  background: var(--card); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
  text-align: left; animation: rise .4s both;
  transition: transform .15s;
}
.card:active { transform: scale(.98); }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.card-media { position: relative; aspect-ratio: 1 / 1.05; background: var(--pink-soft); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-media img.zoom { transform: scale(var(--z, 1)); transform-origin: var(--zo, center); }
.card-badge {
  position: absolute; top: 10px; left: 10px; font-size: 11px; font-weight: 800;
  padding: 4px 9px; border-radius: 999px; color: #fff; background: var(--grad-warm);
}
.card-badge.new { background: var(--lilac); }
.fav-btn {
  position: absolute; top: 8px; right: 8px; width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,.92); display: grid; place-items: center; color: var(--muted);
  transition: transform .15s, color .2s;
}
.fav-btn:active { transform: scale(.85); }
.fav-btn.on { color: var(--pink); }
.fav-btn.on svg { fill: currentColor; }
.card-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card-title { font-weight: 800; font-size: 14px; line-height: 1.25; }
.card-sub { font-size: 12px; color: var(--muted); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-foot { margin-top: auto; padding-top: 8px; display: flex; align-items: flex-end; justify-content: space-between; gap: 6px; }
.price { font-weight: 800; font-size: 15px; color: var(--ink); white-space: nowrap; }
.old-price { font-size: 11px; color: var(--muted); text-decoration: line-through; display: block; font-weight: 600; }
.add-btn {
  flex: none; width: 36px; height: 36px; border-radius: 12px; background: var(--grad); color: #fff;
  display: grid; place-items: center; box-shadow: 0 6px 14px -6px rgba(229,36,111,.7);
  transition: transform .15s;
}
.add-btn:active { transform: scale(.88); }
.add-btn.added { background: var(--success); }

/* ---------- Promo strip ---------- */
.perks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
.perk { background: #fff; border-radius: 16px; padding: 10px; text-align: center; box-shadow: var(--shadow-sm); }
.perk b { display: block; font-size: 18px; }
.perk span { font-size: 11px; color: var(--muted); font-weight: 600; line-height: 1.2; display: block; margin-top: 2px; }

/* ---------- Empty ---------- */
.empty { text-align: center; padding: 48px 16px; }
.empty-art {
  width: 96px; height: 96px; margin: 0 auto 16px; border-radius: 32px;
  background: var(--pink-soft); display: grid; place-items: center; font-size: 42px;
}
.empty h3 { font-family: "Unbounded", sans-serif; font-size: 17px; margin: 0 0 6px; }
.empty p { color: var(--muted); margin: 0 0 18px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 54px; padding: 0 22px; border-radius: 18px; font-weight: 800; font-size: 15px;
  background: var(--grad); color: #fff; box-shadow: var(--shadow); transition: transform .15s, opacity .2s;
}
.btn:active { transform: scale(.98); }
.btn.block { width: 100%; }
.btn.ghost { background: #fff; color: var(--pink-deep); box-shadow: var(--shadow-sm); }
.btn[disabled] { opacity: .5; pointer-events: none; }

/* ---------- Sheet (product detail) ---------- */
.sheet-backdrop {
  position: fixed; inset: 0; background: rgba(43, 22, 48, .45); z-index: 40;
  opacity: 0; pointer-events: none; transition: opacity .25s;
}
.sheet-backdrop.open { opacity: 1; pointer-events: auto; }
.sheet {
  position: fixed; left: 50%; bottom: 0; z-index: 50;
  width: 100%; max-width: 520px; max-height: 94vh; max-height: 94dvh;
  transform: translate(-50%, 105%);
  background: var(--bg); border-radius: 28px 28px 0 0; overflow-y: auto; overscroll-behavior: contain;
  transition: transform .35s cubic-bezier(.2, .9, .25, 1);
  padding-bottom: calc(96px + var(--safe-b));
}
.sheet.open { transform: translate(-50%, 0); }
.sheet-grab { position: sticky; top: 0; z-index: 3; height: 0; }
.sheet-grab::before {
  content: ""; position: absolute; left: 50%; top: 8px; transform: translateX(-50%);
  width: 42px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.85);
}
.sheet-close {
  position: absolute; top: 14px; right: 14px; z-index: 4; width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.92); display: grid; place-items: center; box-shadow: var(--shadow-sm);
}
.gallery { position: relative; background: var(--pink-soft); }
.gallery-track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
}
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-track img { flex: 0 0 100%; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; scroll-snap-align: center; }
.dots { position: absolute; bottom: 14px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; }
.dots i { width: 7px; height: 7px; border-radius: 4px; background: rgba(255,255,255,.6); transition: width .25s, background .25s; }
.dots i.on { width: 20px; background: #fff; }
.detail { padding: 18px 16px 8px; margin-top: -22px; position: relative; z-index: 2; background: var(--bg); border-radius: 24px 24px 0 0; }
.detail-top { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.rating { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 700; }
.rating .star { color: #ffb020; }
.rating small { color: var(--muted); font-weight: 600; }
.detail h2 { font-family: "Unbounded", sans-serif; font-size: 22px; line-height: 1.2; margin: 4px 0 6px; letter-spacing: -0.01em; }
.detail .lead { color: var(--muted); margin: 0 0 14px; }
.detail-price { display: flex; align-items: baseline; gap: 10px; margin-bottom: 16px; }
.detail-price .price { font-size: 24px; }
.detail-price .old-price { display: inline; font-size: 14px; }
.save-tag { background: var(--peach-soft); color: #d2552c; font-size: 12px; font-weight: 800; padding: 4px 8px; border-radius: 8px; }
.label { font-size: 13px; font-weight: 800; margin: 0 0 8px; }
.colors { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.color {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px;
  background: #fff; font-size: 13px; font-weight: 700; border: 2px solid transparent; box-shadow: var(--shadow-sm);
}
.color i { width: 24px; height: 24px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.color.on { border-color: var(--pink); }
.desc { margin: 0 0 14px; }
.features { list-style: none; margin: 0 0 8px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.features li {
  background: #fff; border-radius: 14px; padding: 10px 12px; font-size: 13px; font-weight: 600;
  display: flex; gap: 8px; align-items: flex-start; box-shadow: var(--shadow-sm);
}
.features li::before { content: "✓"; color: var(--pink); font-weight: 900; }
.sheet-bar {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; width: 100%; max-width: 520px; z-index: 60;
  padding: 12px 16px calc(12px + var(--safe-b)); background: rgba(255,245,249,.95);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  display: flex; gap: 10px; align-items: center; border-top: 1px solid var(--line);
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.sheet-bar.open { opacity: 1; pointer-events: auto; }
.sheet-bar .btn { flex: 1; }

/* ---------- Stepper ---------- */
.stepper { display: inline-flex; align-items: center; background: #fff; border-radius: 14px; box-shadow: var(--shadow-sm); height: 44px; }
.stepper button { width: 40px; height: 44px; font-size: 20px; font-weight: 700; color: var(--pink-deep); }
.stepper span { min-width: 26px; text-align: center; font-weight: 800; }
.stepper.sm { height: 34px; border-radius: 11px; }
.stepper.sm button { width: 32px; height: 34px; font-size: 17px; }

/* ---------- Cart ---------- */
.page-title { font-family: "Unbounded", sans-serif; font-size: 24px; margin: 10px 0 14px; letter-spacing: -0.01em; }
.cart-list { display: flex; flex-direction: column; gap: 10px; }
.cart-item {
  display: grid; grid-template-columns: 84px 1fr; gap: 12px; background: #fff; border-radius: 20px; padding: 10px;
  box-shadow: var(--shadow-sm); animation: rise .3s both;
}
.cart-item img { width: 84px; height: 84px; border-radius: 14px; object-fit: cover; }
.ci-body { display: flex; flex-direction: column; min-width: 0; }
.ci-title { font-weight: 800; font-size: 14px; }
.ci-meta { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; margin-top: 2px; }
.ci-meta i { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.ci-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ci-remove { color: var(--muted); font-size: 12px; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }

.summary { background: #fff; border-radius: 22px; padding: 16px; margin-top: 14px; box-shadow: var(--shadow-sm); }
.row { display: flex; justify-content: space-between; padding: 5px 0; font-size: 14px; }
.row span:first-child { color: var(--muted); font-weight: 600; }
.row b { font-weight: 800; }
.row.total { border-top: 1px dashed var(--line); margin-top: 6px; padding-top: 12px; font-size: 17px; }
.row.total span:first-child { color: var(--ink); font-weight: 800; }
.free-ship { margin-top: 10px; font-size: 12px; color: var(--muted); font-weight: 600; }
.progress { height: 8px; border-radius: 4px; background: var(--pink-soft); overflow: hidden; margin-top: 6px; }
.progress i { display: block; height: 100%; background: var(--grad-warm); border-radius: 4px; transition: width .4s; }

/* ---------- Checkout form ---------- */
.form { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.field label { display: block; font-size: 13px; font-weight: 800; margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; border: 1.5px solid var(--line); background: #fff; border-radius: 14px;
  padding: 13px 14px; font-size: 15px; outline: 0; transition: border-color .2s;
}
.field textarea { resize: none; min-height: 76px; }
.field input:focus, .field textarea:focus { border-color: var(--pink); }
.field.err input, .field.err textarea { border-color: #e5484d; }
.field .hint { font-size: 12px; color: #e5484d; margin-top: 4px; display: none; }
.field.err .hint { display: block; }
.options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.option {
  background: #fff; border: 2px solid var(--line); border-radius: 16px; padding: 12px; text-align: left;
  display: flex; flex-direction: column; gap: 2px;
}
.option b { font-size: 14px; }
.option small { color: var(--muted); font-size: 12px; font-weight: 600; }
.option.on { border-color: var(--pink); background: #fff7fb; }
.checkout-btn { margin-top: 16px; }

/* ---------- Success ---------- */
.success { text-align: center; padding: 40px 8px; }
.success-ring {
  width: 108px; height: 108px; border-radius: 50%; margin: 0 auto 18px; background: var(--grad);
  display: grid; place-items: center; color: #fff; box-shadow: var(--shadow); animation: pop .5s cubic-bezier(.3,1.6,.5,1);
}
.success h2 { font-family: "Unbounded", sans-serif; font-size: 22px; margin: 0 0 8px; }
.success p { color: var(--muted); margin: 0 0 22px; }
.order-no { display: inline-block; background: var(--lilac-soft); color: #6e3fc8; font-weight: 800; padding: 6px 12px; border-radius: 10px; margin-bottom: 18px; }

/* ---------- Tab bar ---------- */
.tabbar {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); z-index: 30;
  width: 100%; max-width: 520px; height: calc(var(--tabbar-h) + var(--safe-b));
  padding: 6px 12px var(--safe-b);
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: rgba(255,255,255,.94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line); border-radius: 22px 22px 0 0;
}
.tab {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  font-size: 11px; font-weight: 700; color: var(--muted); transition: color .2s;
}
.tab.active { color: var(--pink); }
.tab.active::before {
  content: ""; position: absolute; top: 2px; width: 26px; height: 4px; border-radius: 2px; background: var(--pink);
}

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(var(--tabbar-h) + var(--safe-b) + 14px); z-index: 70;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--ink); color: #fff; font-weight: 700; font-size: 14px;
  padding: 12px 18px; border-radius: 14px; box-shadow: var(--shadow); transition: all .25s; white-space: nowrap;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Payment ---------- */
.pay-option { align-items: flex-start; gap: 6px; }
.pay-logo { font-family: "Manrope", sans-serif; font-weight: 800; font-size: 19px; letter-spacing: -0.03em; line-height: 1; }
.pay-logo.click { color: #0a8fe8; }
.pay-logo.payme { color: #2a3542; }
.pay-logo.payme b { color: #2ec4c4; font-weight: 800; }
.secure-note { font-size: 12px; color: var(--muted); text-align: center; margin: 8px 0 0; }
.notice { background: var(--peach-soft); color: #9a4220; border-radius: 14px; padding: 12px 14px; font-size: 13px; font-weight: 600; }

/* ---------- Skeleton ---------- */
.skeleton, .skeleton-card {
  background: linear-gradient(100deg, #fbe4ee 30%, #fff1f7 50%, #fbe4ee 70%);
  background-size: 300% 100%; animation: shimmer 1.3s infinite linear; box-shadow: none;
}
.hero.skeleton { min-height: 178px; }
.skeleton-card { aspect-ratio: 1 / 1.55; border-radius: var(--radius); }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }

/* ---------- Orders ---------- */
.order-list { display: flex; flex-direction: column; gap: 10px; }
.order-card {
  display: block; width: 100%; text-align: left; background: #fff; border-radius: 20px; padding: 14px 16px;
  box-shadow: var(--shadow-sm); animation: rise .3s both; margin-bottom: 10px;
}
.order-list .order-card { margin-bottom: 0; }
.oc-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.oc-top b { font-family: "Unbounded", sans-serif; font-size: 15px; }
.oc-items { font-size: 13px; color: var(--muted); margin: 6px 0 8px; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.oc-foot { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); font-weight: 600; }
.oc-foot b { color: var(--ink); font-size: 15px; }
.pill { font-size: 12px; font-weight: 800; padding: 5px 10px; border-radius: 999px; background: var(--pink-soft); color: var(--pink-deep); white-space: nowrap; }
.pill.ok { background: #dcf5ea; color: #13865c; }
.pill.warn { background: var(--peach-soft); color: #c2531f; }
.pill.grey { background: #efe9ee; color: #7d6f7a; }
.mini-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 10px; }
.mini-steps i { height: 5px; border-radius: 3px; background: var(--pink-soft); }
.mini-steps i.on { background: var(--grad-warm); }

.back-link { display: inline-flex; align-items: center; gap: 4px; font-weight: 800; font-size: 14px; color: var(--pink-deep); padding: 10px 0 2px; }
.success.compact { padding: 18px 8px 8px; }
.success.compact p { margin-bottom: 0; }
.status-ring {
  width: 96px; height: 96px; border-radius: 50%; margin: 0 auto 18px; display: grid; place-items: center;
  font-family: "Unbounded", sans-serif; font-size: 40px; font-weight: 800; color: #fff;
}
.status-ring.warn { background: var(--grad-warm); }
.status-ring.grey { background: #c9bcc6; }
.spinner {
  width: 72px; height: 72px; margin: 10px auto 22px; border-radius: 50%;
  border: 6px solid var(--pink-soft); border-top-color: var(--pink); animation: spin .9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.callout {
  display: flex; gap: 12px; align-items: flex-start; text-align: left; background: #fff; border-radius: 18px; padding: 14px;
  box-shadow: var(--shadow-sm); font-size: 14px; line-height: 1.45; margin-top: 4px;
}
.callout-ic { flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--grad); color: #fff; display: grid; place-items: center; }
.nowrap { white-space: nowrap; }
.row b.addr { text-align: right; max-width: 62%; font-weight: 700; }

.tracker { background: #fff; border-radius: 22px; padding: 16px; margin: 14px 0; box-shadow: var(--shadow-sm); }
.t-step { position: relative; display: flex; gap: 14px; padding-bottom: 18px; }
.t-step:last-child { padding-bottom: 0; }
.t-step:not(:last-child)::after {
  content: ""; position: absolute; left: 15px; top: 34px; bottom: 2px; width: 2px; background: var(--line); border-radius: 1px;
}
.t-step.done:not(:last-child)::after { background: var(--pink); }
.t-dot {
  flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: #f6eef3; color: var(--muted); font-weight: 800; font-size: 13px; position: relative; z-index: 1;
}
.t-step.done .t-dot { background: var(--pink); color: #fff; }
.t-step.current .t-dot { background: var(--grad); color: #fff; box-shadow: 0 0 0 6px var(--pink-soft); }
.t-body { display: flex; flex-direction: column; padding-top: 4px; }
.t-body b { font-size: 15px; }
.t-body span { font-size: 12px; color: var(--muted); font-weight: 600; }
.t-step:not(.done):not(.current) .t-body b { color: var(--muted); }

/* ---------- Header actions / profile ---------- */
.top-actions { display: flex; gap: 8px; }
.avatar {
  display: grid; place-items: center; width: 100%; height: 100%; border-radius: inherit;
  background: var(--grad); color: #fff; font-weight: 800; font-size: 14px; letter-spacing: .02em;
}
.avatar.big { width: 60px; height: 60px; border-radius: 20px; font-size: 22px; flex: none; }
#profileBtn.on { padding: 0; overflow: hidden; }

/* ---------- Checkbox ---------- */
.check { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 14px; cursor: pointer; user-select: none; }
.check input { position: absolute; opacity: 0; width: 0; height: 0; }
.check span {
  width: 22px; height: 22px; border-radius: 7px; border: 2px solid #e6c9d8; background: #fff; flex: none;
  display: grid; place-items: center; transition: all .15s;
}
.check input:checked + span { background: var(--pink); border-color: var(--pink); }
.check input:checked + span::after { content: ""; width: 10px; height: 6px; border: solid #fff; border-width: 0 0 2.5px 2.5px; transform: translateY(-1px) rotate(-45deg); }
.check input:focus-visible + span { box-shadow: 0 0 0 3px var(--pink-soft); }
.field label.check { display: flex; margin-bottom: 8px; }
.check.small { font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 8px; }
.check.small span { width: 20px; height: 20px; border-radius: 6px; }

/* ---------- Steps header ---------- */
.steps-head { display: flex; align-items: center; gap: 8px; margin: -4px 0 14px; }
.sh-step { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 800; color: var(--muted); white-space: nowrap; }
.sh-step i { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: #f3e6ee; font-style: normal; font-size: 12px; }
.sh-step.on { color: var(--ink); }
.sh-step.on i { background: var(--grad); color: #fff; }
.sh-step.done i { background: var(--pink); color: #fff; }
.sh-line { flex: 1; height: 2px; border-radius: 1px; background: var(--line); min-width: 16px; }
.sh-line.on { background: var(--pink); }

/* ---------- Cart (1-bosqich) ---------- */
.select-all { display: flex; align-items: center; justify-content: space-between; background: #fff; border-radius: 16px; padding: 12px 14px; margin-bottom: 10px; box-shadow: var(--shadow-sm); }
.muted-sm { font-size: 12px; color: var(--muted); font-weight: 600; }
.cart-item { grid-template-columns: 24px 76px 1fr; align-items: center; transition: opacity .2s; }
.cart-item img { width: 76px; height: 76px; }
.cart-item.off img, .cart-item.off .ci-body { opacity: .45; }
.ci-check { align-self: center; }
.ci-top { display: flex; justify-content: space-between; gap: 6px; align-items: flex-start; }
.ci-del { flex: none; width: 30px; height: 30px; margin: -4px -4px 0 0; border-radius: 9px; display: grid; place-items: center; color: #b49aae; }
.ci-del:active { background: var(--pink-soft); color: var(--pink-deep); }
.ci-foot { margin-top: 8px; }
.minus { color: #13865c; }
.note-sm { font-size: 12px; color: #a993a4; font-weight: 600; margin-top: 10px; line-height: 1.4; }

.promo { margin: 8px 0 4px; }
.promo-field { display: flex; align-items: center; gap: 8px; border: 1.5px dashed #ecc4d7; border-radius: 14px; padding: 4px 4px 4px 12px; color: var(--muted); transition: border-color .2s; }
.promo-field:focus-within { border-color: var(--pink); border-style: solid; }
.promo-field.err { border-color: #e5484d; }
.promo-field input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: 8px 0; }
.promo-field input::placeholder { text-transform: none; letter-spacing: 0; font-weight: 600; color: #b9a2b4; }
.promo-field button { flex: none; height: 38px; padding: 0 14px; border-radius: 10px; background: var(--ink); color: #fff; font-weight: 800; font-size: 13px; }
.promo-field button[disabled] { opacity: .4; }
.promo-err { font-size: 12px; color: #e5484d; font-weight: 700; margin-top: 6px; }
.promo-chip { display: flex; align-items: center; gap: 8px; background: #e8f8f0; color: #13865c; border-radius: 14px; padding: 10px 8px 10px 12px; font-size: 14px; }
.promo-chip b { letter-spacing: .04em; }
.promo-chip span { font-weight: 800; margin-left: auto; }
.promo-chip button { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; color: #13865c; }
.promo-chip button svg { width: 16px; height: 16px; }

/* ---------- Checkout (2-bosqich) ---------- */
.addr-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.addr-card {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: #fff; border-radius: 16px;
  padding: 14px; border: 2px solid transparent; box-shadow: var(--shadow-sm); transition: border-color .15s;
}
.addr-card.on { border-color: var(--pink); background: #fff8fb; }
.addr-card .radio { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2px solid #e6c9d8; display: grid; place-items: center; }
.addr-card.on .radio { border-color: var(--pink); }
.addr-card.on .radio::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--pink); }
.addr-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.addr-body b { font-size: 14px; }
.addr-body span { font-size: 13px; color: var(--muted); font-weight: 600; overflow-wrap: anywhere; }
.addr-price { flex: none; font-weight: 800; font-size: 13px; text-align: right; display: flex; flex-direction: column; align-items: flex-end; }
.addr-price small { font-size: 10px; font-weight: 800; color: #7a43d6; background: var(--lilac-soft); padding: 1px 6px; border-radius: 6px; margin-top: 3px; }
.addr-ic { flex: none; width: 38px; height: 38px; border-radius: 12px; background: var(--pink-soft); color: var(--pink-deep); display: grid; place-items: center; }
.addr-add {
  display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; height: 50px; border-radius: 16px;
  border: 2px dashed #ecc4d7; color: var(--pink-deep); font-weight: 800; font-size: 14px;
}
.addr-add svg { width: 18px; height: 18px; }
.addr-hint { display: flex; gap: 10px; align-items: flex-start; background: var(--lilac-soft); color: #5b2fa8; border-radius: 14px; padding: 12px 14px; font-size: 14px; }
.addr-hint small { color: #7c5cb8; font-weight: 600; }
.recipient { display: flex; justify-content: space-between; align-items: center; background: #fff; border-radius: 14px; padding: 12px 14px; font-size: 14px; box-shadow: var(--shadow-sm); }
.recipient span { color: var(--muted); font-weight: 600; }
.summary.final h3 { font-family: "Unbounded", sans-serif; font-size: 16px; margin: 0 0 8px; }
.row.item-row span { display: flex; flex-direction: column; color: var(--ink) !important; font-weight: 700 !important; padding-right: 10px; }
.row.item-row small { color: var(--muted); font-weight: 600; font-size: 12px; }
.row.sep { border-top: 1px dashed var(--line); margin-top: 6px; padding-top: 10px; }
.row .free { color: #13865c; }
.delivery-note { font-size: 11.5px; line-height: 1.35; color: #ad9aa9; font-weight: 600; margin: -2px 0 4px; }
.field select {
  width: 100%; border: 1.5px solid var(--line); background: #fff; border-radius: 14px; padding: 13px 14px; font-size: 15px; outline: 0;
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%238a6f86' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.field select:focus { border-color: var(--pink); }
.field.err select { border-color: #e5484d; }
.field .hint.show { display: block; }

/* ---------- Auth ---------- */
.auth-head { text-align: center; margin: 8px 0 18px; }
.auth-head .brand.big { font-size: 30px; justify-content: center; display: flex; }
.auth-head p { color: var(--muted); font-weight: 600; margin: 10px 0 0; }
.seg { display: grid; grid-template-columns: 1fr 1fr; background: #f3e4ec; border-radius: 14px; padding: 4px; }
.seg button { height: 40px; border-radius: 11px; font-weight: 800; color: var(--muted); font-size: 14px; }
.seg button.on { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.input-row { display: flex; gap: 8px; }
.input-row input { flex: 1; min-width: 0; }
.mini-btn { flex: none; padding: 0 12px; border-radius: 14px; background: var(--ink); color: #fff; font-weight: 800; font-size: 12px; white-space: nowrap; }
.mini-btn.ok { background: #13865c; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gate p { max-width: 300px; margin-left: auto; margin-right: auto; }

/* ---------- Profile ---------- */
.profile-card { display: flex; align-items: center; gap: 14px; margin: 8px 0 14px; }
.profile-card h2 { font-family: "Unbounded", sans-serif; font-size: 20px; margin: 0 0 2px; }
.ok-mark { color: #13865c; }
.muted-b { color: var(--muted) !important; font-weight: 700 !important; }

@media (min-width: 420px) {
  .hero h1 { font-size: 25px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
