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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: #EFEFEF;
  color: #212121;
}

.app {
  max-width: 480px;
  margin: 0 auto;
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: #FFFFFF;
  overflow: hidden;
  box-shadow: 0 0 24px rgba(0,0,0,0.08);
}

button {
  font: inherit;
  color: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

/* ---------- Header ---------- */
.header-zone {
  background: linear-gradient(180deg, #9FCBF7 0%, #8FC1F5 100%);
  padding: 12px 16px 10px;
  flex-shrink: 0;
}

.brand-row {
  display: flex;
  gap: 12px;
}

.pill {
  flex: 1;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: 16px;
}

.store-pill { background: #FFE11B; }
.travel-pill { background: #FFFFFF; }

.location-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}

.location-btn {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.4);
  border-radius: 10px;
  padding: 8px 10px;
  min-width: 0;
}

.location-label { font-weight: 700; font-size: 13px; }
.location-address {
  flex: 1;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: left;
}
.chevron { font-size: 12px; }

.coin-chip {
  background: #FFFFFF;
  border-radius: 20px;
  padding: 8px 12px;
  font-weight: 700;
  font-size: 13px;
  white-space: nowrap;
}

.search-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.search-box {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #FFFFFF;
  border: 1.5px solid #2874F0;
  border-radius: 12px;
  height: 46px;
  padding: 0 12px;
}

.search-box input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 14px;
  color: #212121;
  background: transparent;
}
.search-box input::placeholder { color: #9A9A9A; }

.scan-btn {
  width: 46px;
  height: 46px;
  background: #FFFFFF;
  border-radius: 12px;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Scrollable body ---------- */
.body-scroll {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* ---------- Category tabs ---------- */
.category-tabs {
  display: flex;
  overflow-x: auto;
  padding: 16px 12px 8px;
  gap: 4px;
  scrollbar-width: none;
}
.category-tabs::-webkit-scrollbar { display: none; }

.cat-tab {
  flex: 0 0 auto;
  width: 76px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 4px;
}

.cat-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: #F0F0F0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  transition: background 0.2s;
}
.cat-tab.active .cat-icon-wrap { background: #E8F0FE; }

.cat-label {
  font-size: 12px;
  color: #4A4A4A;
  margin-top: 6px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 76px;
}
.cat-tab.active .cat-label { color: #2874F0; font-weight: 700; }

.cat-underline {
  margin-top: 6px;
  height: 2.5px;
  width: 0;
  background: #2874F0;
  border-radius: 2px;
  transition: width 0.2s;
}
.cat-tab.active .cat-underline { width: 28px; }

/* ---------- Banner carousel ---------- */
.banner-section { margin-top: 16px; padding: 0 16px; }

.banner-track-wrap {
  border-radius: 16px;
  overflow: hidden;
}

.banner-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.banner-track::-webkit-scrollbar { display: none; }

.banner-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  height: 170px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
}

.banner-title { font-size: 19px; font-weight: 800; }
.banner-sub { font-size: 13px; color: #3A3A3A; margin-top: 4px; }

.banner-ad {
  position: absolute;
  right: 12px;
  bottom: 12px;
  background: rgba(0,0,0,0.3);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
}

.banner-dots {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin-top: 10px;
}
.dot {
  width: 6px;
  height: 6px;
  border-radius: 3px;
  background: #D0D0D0;
  transition: width 0.2s, background 0.2s;
}
.dot.active { background: #2874F0; width: 16px; }

/* ---------- Shortcuts ---------- */
.shortcuts-section {
  background: #EAF0FB;
  margin-top: 16px;
  padding: 18px 0;
}
.section-heading {
  font-size: 20px;
  font-weight: 700;
  padding: 0 16px;
  margin-bottom: 14px;
}
.shortcuts-row {
  display: flex;
  overflow-x: auto;
  gap: 12px;
  padding: 0 16px;
  scrollbar-width: none;
}
.shortcuts-row::-webkit-scrollbar { display: none; }

.shortcut-card {
  flex: 0 0 148px;
  background: #FFFFFF;
  border-radius: 12px;
  padding: 8px;
}
.shortcut-thumb {
  width: 100%;
  height: 130px;
  border-radius: 8px;
  background: #E0E0E0;
}
.shortcut-label { font-size: 14px; color: #4A4A4A; margin-top: 8px; }
.shortcut-cta { font-size: 14px; font-weight: 700; margin-top: 2px; }

/* ---------- Deals grid ---------- */
.deals-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 12px;
  padding: 16px;
}

.deal-thumb {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 8px;
  background: #EFEFEF;
  display: flex;
  align-items: flex-end;
  padding: 6px;
}

.rating-badge {
  display: flex;
  align-items: center;
  background: #FFFFFF;
  padding: 3px 6px;
  border-radius: 6px;
  gap: 2px;
}
.rating-num { font-size: 12px; font-weight: 700; }
.star { color: #2E8B3D; font-size: 11px; }
.review-count { font-size: 11px; color: #7A7A7A; }

.deal-title { font-size: 13px; color: #4A4A4A; margin-top: 8px; }
.deal-brand { font-weight: 700; color: #212121; }

.deal-price-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}
.deal-mrp { font-size: 13px; color: #9A9A9A; text-decoration: line-through; }
.deal-price { font-size: 15px; font-weight: 800; }

.bottom-spacer { height: 12px; }

/* ---------- Bottom nav ---------- */
.bottom-nav {
  flex-shrink: 0;
  display: flex;
  border-top: 1px solid #EAEAEA;
  background: #FFFFFF;
  padding: 8px 0 14px;
}

.nav-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: #4A4A4A;
}
.nav-tab.active { color: #2874F0; }
.nav-icon { font-size: 20px; }
.nav-label { font-size: 11px; font-weight: 600; }

/* ---------- Responsive ---------- */
@media (min-width: 481px) {
  body { background: #DADADA; padding: 24px 0; }
  .app { height: 90vh; border-radius: 20px; }
}
