:root {
  --brand: #d21f6b;
  --brand-dark: #a61152;
  --brand-soft: #ffe3ef;
  --accent: #ffb100;
  --green: #0aa854;
  --green-dark: #067a3e;
  --ink: #1c1c22;
  --muted: #6f6f7a;
  --line: #ececf1;
  --bg: #f6f6f8;
  --card: #ffffff;
  --shadow: 0 2px 10px rgba(28, 28, 34, 0.06);
  --shadow-lg: 0 12px 34px rgba(28, 28, 34, 0.14);
  --radius: 14px;
  --maxw: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
button { font: inherit; border: 0; background: none; cursor: pointer; color: inherit; }
img { max-width: 100%; display: block; }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 10px 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-logo {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 16px; letter-spacing: 0.2px; }
.brand-text em { font-style: normal; font-size: 11.5px; color: var(--muted); }

.search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.search-wrap > svg {
  position: absolute;
  left: 14px;
  width: 19px;
  height: 19px;
  color: var(--muted);
  pointer-events: none;
}

#searchInput {
  width: 100%;
  height: 46px;
  border: 1.5px solid var(--line);
  border-radius: 13px;
  padding: 0 42px 0 42px;
  font-size: 14.5px;
  background: #fbfbfd;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

#searchInput:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(210, 31, 107, 0.1);
  background: #fff;
}

.search-clear {
  position: absolute;
  right: 8px;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: none;
  align-items: center;
  justify-content: center;
  color: var(--muted);
}

.search-clear.show { display: flex; }
.search-clear svg { width: 18px; height: 18px; }
.search-clear:hover { background: var(--line); color: var(--ink); }

.top-actions { display: flex; gap: 10px; align-items: center; }

.b-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 44px;
  padding: 0 16px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 600;
  border: 1.5px solid var(--line);
  background: #fff;
  transition: transform 0.15s, box-shadow 0.15s;
  position: relative;
}

.b-chip:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.b-chip svg { width: 19px; height: 19px; }

.b-call { color: var(--green-dark); }
.b-call svg { color: var(--green); }

.b-wa { color: #0b7a3f; }
.b-wa svg { color: #25d366; }

.b-cart { padding: 0 14px; }
.b-cart svg { width: 21px; height: 21px; }

.cart-count {
  position: absolute;
  top: -8px;
  right: -6px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 10px;
  background: var(--brand);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  box-sizing: content-box;
}

/* ---------- Deliver bar ---------- */
.deliver-bar {
  background: var(--brand);
  color: #fff;
}

.deliver-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 9px 20px;
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
}

.live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #7dffb0;
  box-shadow: 0 0 0 4px rgba(125, 255, 176, 0.25);
  animation: pulse 1.6s infinite;
  flex: none;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(125, 255, 176, 0.3); }
  50% { box-shadow: 0 0 0 6px rgba(125, 255, 176, 0.08); }
}

.sep { opacity: 0.55; }
.flex-spacer { flex: 1; }
.hours { opacity: 0.9; }

/* ---------- Hero ---------- */
.hero {
  max-width: var(--maxw);
  margin: 20px auto 0;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  align-items: center;
  gap: 24px;
  background: linear-gradient(120deg, #fff0f6, #ffeaea 60%, #fff6e6);
  border: 1px solid #ffe1ec;
  border-radius: 22px;
  overflow: hidden;
  position: relative;
}

.hero-copy { padding: 34px 0 34px 34px; }

.pill {
  display: inline-block;
  background: #fff;
  color: var(--brand);
  font-size: 12.5px;
  font-weight: 700;
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid #ffd3e3;
  margin-bottom: 14px;
}

.hero h1 {
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.12;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}

.hero h1 em { font-style: normal; color: var(--brand); }
.hero h1 .hl {
  background: linear-gradient(90deg, var(--brand), #ff6b9d);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-copy > p { color: var(--muted); font-size: 15px; max-width: 46ch; margin-bottom: 22px; }

.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 24px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  box-shadow: 0 8px 20px rgba(210, 31, 107, 0.28);
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(210, 31, 107, 0.34); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding: 0 24px;
  border-radius: 12px;
  background: #fff;
  color: var(--green-dark);
  font-weight: 700;
  font-size: 15px;
  border: 1.5px solid var(--green);
}

.btn-ghost svg { width: 20px; height: 20px; color: #25d366; }

.hero-stats { display: flex; gap: 26px; }
.hero-stats span { display: flex; flex-direction: column; font-size: 12.5px; color: var(--muted); }
.hero-stats strong { font-size: 18px; color: var(--ink); }

.hero-art-hide {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.hero-art { width: min(300px, 100%); height: auto; }

/* ---------- Ticker ---------- */
.ticker {
  overflow: hidden;
  background: var(--ink);
  color: #fff;
  margin-top: 18px;
  padding: 9px 0;
}

.ticker-track {
  display: inline-flex;
  white-space: nowrap;
  gap: 0;
  animation: marquee 26s linear infinite;
  will-change: transform;
}

.ticker-track span {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.4px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ticker-track span::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Categories ---------- */
.cats {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 22px 20px 6px;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.cats::-webkit-scrollbar { display: none; }

.chip {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  background: #fff;
  border: 1.5px solid var(--line);
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  transition: all 0.18s;
  white-space: nowrap;
}

.chip .n {
  background: var(--line);
  color: var(--muted);
  font-size: 11.5px;
  border-radius: 999px;
  padding: 1px 7px;
}

.chip:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-1px); }

.chip.active {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 6px 16px rgba(210, 31, 107, 0.26);
}

.chip.active .n { background: rgba(255, 255, 255, 0.24); color: #fff; }

/* ---------- Shop ---------- */
.shop { max-width: var(--maxw); margin: 0 auto; padding: 24px 20px 90px; }

.section-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 16px;
}

.section-head h2 { font-size: 22px; letter-spacing: -0.3px; }

.section-head .count { color: var(--muted); font-size: 13px; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
  gap: 14px;
}

/* ---------- Product card ---------- */
.card {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s, box-shadow 0.18s;
  animation: pop 0.3s ease;
}

@keyframes pop {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

.card-img {
  position: relative;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.card-img .pimg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-img svg {
  width: 52px;
  height: 52px;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.12));
}

.card-img .off {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--ink);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 8px;
}

.card-img .veggie {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.92);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-img .veggie::before {
  content: "";
  width: 10px;
  height: 10px;
  border: 2px solid var(--green);
  border-radius: 50%;
  background: var(--green);
}

.card-body { padding: 12px 13px 13px; display: flex; flex-direction: column; flex: 1; }

.card-name {
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 38px;
}

.card-about {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-unit { font-size: 12.5px; color: #9a9aa5; margin-top: 2px; }

.card-bottom {
  margin-top: auto;
  padding-top: 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.card-price { display: flex; flex-direction: column; line-height: 1.15; }
.card-price .now { font-size: 17px; font-weight: 800; }
.card-price .was { font-size: 12.5px; color: #b0b0ba; text-decoration: line-through; }

.add-btn {
  flex: none;
  height: 38px;
  padding: 0 18px;
  border-radius: 10px;
  border: 1.6px solid var(--brand);
  color: var(--brand);
  background: #fff;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.4px;
  transition: all 0.15s;
}

.add-btn:hover { background: var(--brand-soft); }

.stepper {
  flex: none;
  display: flex;
  align-items: center;
  background: var(--green);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(10, 168, 84, 0.25);
}

.stepper button {
  width: 38px;
  height: 38px;
  color: #fff;
  font-size: 21px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.stepper button:hover { background: var(--green-dark); }
.stepper .q { min-width: 34px; text-align: center; color: #fff; font-size: 14.5px; font-weight: 700; }

/* ---------- No results ---------- */
.no-results {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
}

.no-results svg { width: 52px; height: 52px; margin-bottom: 12px; }
.no-results h3 { color: var(--ink); margin-bottom: 4px; font-size: 18px; }
.no-results .btn-primary { margin-top: 18px; }

/* ---------- Footer ---------- */
.footer {
  background: #17171c;
  color: #cfcfd8;
  padding: 44px 20px 28px;
  margin-top: 10px;
}

.footer-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 30px;
}

.f-brand { display: flex; gap: 14px; }
.f-brand strong { color: #fff; font-size: 17px; display: block; margin-bottom: 6px; }
.f-brand p { font-size: 13.5px; line-height: 1.6; max-width: 40ch; }

.f-col h4 { color: #fff; font-size: 14px; margin-bottom: 14px; letter-spacing: 0.4px; }
.f-col a, .f-col span { display: block; font-size: 13.5px; margin-bottom: 9px; color: #b8b8c3; }
.f-col a:hover { color: #fff; }

.f-bottom {
  max-width: var(--maxw);
  margin: 34px auto 0;
  border-top: 1px solid #2b2b33;
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: #8d8d99;
}

/* ---------- FABs ---------- */
.fab {
  position: fixed;
  right: 18px;
  bottom: 22px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25);
  z-index: 55;
  transition: transform 0.15s;
}

.fab:hover { transform: scale(1.08); }
.fab svg { width: 27px; height: 27px; }

.fab-wa { background: #25d366; color: #fff; bottom: 86px; }
.fab-call {
  background: linear-gradient(135deg, #00c853, #00933e);
  color: #fff;
  animation: callPulse 2s infinite;
}

@keyframes callPulse {
  0%, 100% { box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25), 0 0 0 0 rgba(0, 200, 83, 0.5); }
  50% { box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25), 0 0 0 12px rgba(0, 200, 83, 0); }
}

/* ---------- Drawer ---------- */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(17, 17, 20, 0.42);
  z-index: 80;
  animation: fade 0.25s ease;
}

@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(430px, 100%);
  background: #fff;
  z-index: 90;
  transform: translateX(105%);
  transition: transform 0.32s cubic-bezier(0.2, 0.8, 0.25, 1);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
}

.drawer.open { transform: translateX(0); }

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  flex: none;
}

.drawer-head h2 {
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 9px;
}

.drawer-head h2 svg { width: 22px; height: 22px; color: var(--brand); }

.drawer-head .cart-count {
  position: static;
  background: var(--brand-soft);
  color: var(--brand);
  border: 0;
}

.drawer-close {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  background: var(--bg);
}

.drawer-close:hover { background: var(--line); color: var(--ink); }
.drawer-close svg { width: 19px; height: 19px; }

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 14px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  -webkit-overflow-scrolling: touch;
}

.cart-item {
  display: flex;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  animation: pop 0.25s ease;
}

.cart-item .ci-img {
  width: 62px;
  height: 62px;
  border-radius: 12px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.cart-item .ci-img .pimg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item .ci-img svg { width: 30px; height: 30px; fill: #fff; stroke: #fff; }

.ci-main { flex: 1; min-width: 0; }
.ci-name { font-size: 14px; font-weight: 600; line-height: 1.25; }
.ci-unit { font-size: 12px; color: var(--muted); margin-top: 2px; }

.ci-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}

.ci-price { font-size: 14.5px; font-weight: 700; }
.ci-price .was { font-size: 12px; color: #b0b0ba; text-decoration: line-through; font-weight: 400; margin-left: 6px; }

.ci-total { font-size: 13px; font-weight: 600; margin-top: 4px; }
.ci-total em { font-style: normal; color: var(--green); font-size: 12px; }

/* ---------- Empty cart ---------- */
.empty-cart {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 30px;
  color: var(--muted);
}

.empty-cart svg { width: 74px; height: 74px; margin-bottom: 16px; }
.empty-cart h3 { color: var(--ink); font-size: 19px; margin-bottom: 6px; }
.empty-cart p { font-size: 14px; max-width: 30ch; margin-bottom: 20px; }

/* ---------- Cart summary ---------- */
.cart-summary {
  flex: none;
  border-top: 1px solid var(--line);
  padding: 16px 20px 20px;
  background: #fff;
}

.sum-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  padding: 4px 0;
  color: var(--muted);
}

.sum-row.green span:last-child { color: var(--green-dark); font-weight: 700; }
.sum-row.total { font-size: 16.5px; font-weight: 800; color: var(--ink); border-top: 1px dashed var(--line); margin-top: 6px; padding-top: 10px; }

.btn-checkout {
  width: 100%;
  height: 50px;
  margin-top: 12px;
  border-radius: 13px;
  background: linear-gradient(135deg, #25d366, #0aa854);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  box-shadow: 0 8px 20px rgba(10, 168, 84, 0.3);
  transition: transform 0.15s;
}

.btn-checkout:hover { transform: translateY(-1px); }
.btn-checkout svg { width: 21px; height: 21px; }

.note { font-size: 11.5px; color: #9a9aa5; text-align: center; margin-top: 10px; }

/* ---------- Mobile cart bar ---------- */
.mbar {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 70;
  animation: rise 0.3s ease;
}

@keyframes rise { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.mbar button {
  width: 100%;
  height: 58px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  box-shadow: 0 12px 30px rgba(210, 31, 107, 0.4);
}

.mbar-left { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.2; }
.mbar-left strong { font-size: 15px; }
.mbar-left em { font-style: normal; font-size: 12px; opacity: 0.85; }
.mbar-right { display: flex; align-items: center; font-size: 13px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  top: 74px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 20px;
  border-radius: 12px;
  z-index: 100;
  box-shadow: var(--shadow-lg);
  animation: toast 2.6s ease forwards;
  max-width: 90vw;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@keyframes toast {
  0% { opacity: 0; transform: translate(-50%, -12px); }
  10% { opacity: 1; transform: translate(-50%, 0); }
  90% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -12px); }
}

body.locked { overflow: hidden; }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .topbar-inner { grid-template-columns: auto 1fr; gap: 12px; padding: 10px 14px; }
  .top-actions { grid-column: 1 / -1; }
  .top-actions .b-call span, .top-actions .b-wa span { display: none; }
  .top-actions .b-call, .top-actions .b-wa { width: 46px; padding: 0; justify-content: center; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .brand-text em { display: none; }
  .hero { grid-template-columns: 1fr; padding: 24px 18px; }
  .hero-copy { padding: 0; }
  .hero-art-hide { display: none; }
  .deliver-inner .hours { display: none; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .shop { padding: 18px 14px 110px; }
  .cats { padding: 18px 14px 4px; }
  .card-bottom { flex-direction: column; align-items: stretch; }
  .card-bottom .add-btn { width: 100%; }
  .card-bottom .stepper { justify-content: space-between; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .fab { width: 48px; height: 48px; right: 14px; }
  .fab svg { width: 24px; height: 24px; }
  .fab-wa { bottom: 74px; }
}