/* ===== FRESH SABJI HUB — HOME SCREEN ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green-primary: #2E7D32;
  --green-mid: #43A047;
  --green-light: #81C784;
  --green-pale: #E8F5E9;
  --green-bg: #F1F8F1;
  --orange: #FF6F00;
  --orange-light: #FFF3E0;
  --yellow: #F9A825;
  --yellow-light: #FFFDE7;
  --pink: #E91E8C;
  --pink-light: #FCE4EC;
  --white: #FFFFFF;
  --text-dark: #1A2E1A;
  --text-mid: #4A5568;
  --text-light: #9E9E9E;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.07);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.10);
  --shadow-green: 0 4px 16px rgba(46,125,50,0.18);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --font-main: 'Plus Jakarta Sans', sans-serif;
  --font-display: 'Bricolage Grotesque', sans-serif;
}

body {
  background: #D0E8D0;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  font-family: var(--font-main);
}

/* Phone Shell */
.phone-shell {
  width: 390px;
  height: 844px;
  background: var(--white);
  border-radius: 48px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.25), 0 0 0 10px #1a1a1a, 0 0 0 12px #333;
  overflow: hidden;
  position: relative;
}

.app-screen {
  width: 100%;
  height: 100%;
  background: var(--green-bg);
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  display: flex;
  flex-direction: column;
}
.app-screen::-webkit-scrollbar { display: none; }

/* Status Bar */
.status-bar {
  background: var(--green-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 24px 8px;
  flex-shrink: 0;
}
.time { color: white; font-size: 13px; font-weight: 700; font-family: var(--font-main); }
.status-icons { display: flex; gap: 6px; align-items: center; }

/* Top Bar */
.top-bar {
  background: var(--green-primary);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 4px 20px 20px;
  flex-shrink: 0;
}
.location-row {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 4px;
}
.location-text {
  font-size: 12px;
  color: rgba(255,255,255,0.85);
  font-weight: 500;
}
.greeting {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: white;
  line-height: 1.2;
}
.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--green-pale);
  border: 2.5px solid rgba(255,255,255,0.5);
  overflow: hidden;
  flex-shrink: 0;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }

/* Search */
.search-wrap {
  background: var(--green-primary);
  padding: 0 20px 0;
  flex-shrink: 0;
}
.search-bar {
  background: white;
  border-radius: 16px;
  display: flex;
  align-items: center;
  padding: 12px 14px;
  gap: 10px;
  box-shadow: var(--shadow-md);
  margin-bottom: -18px;
  position: relative;
  z-index: 2;
}
.search-bar input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 13.5px;
  color: var(--text-mid);
  font-family: var(--font-main);
  background: transparent;
}
.search-bar input::placeholder { color: #bbb; }
.filter-btn {
  width: 32px;
  height: 32px;
  background: var(--green-pale);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Banner */
.banner-wrap {
  padding: 28px 20px 16px;
  flex-shrink: 0;
}
.banner {
  background: linear-gradient(135deg, #1B5E20 0%, #2E7D32 40%, #388E3C 100%);
  border-radius: var(--radius-lg);
  padding: 22px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  min-height: 130px;
  box-shadow: var(--shadow-green);
}
.banner::before {
  content: '';
  position: absolute;
  top: -30px; right: -30px;
  width: 120px; height: 120px;
  background: rgba(255,255,255,0.06);
  border-radius: 50%;
}
.banner::after {
  content: '';
  position: absolute;
  bottom: -40px; left: 30%;
  width: 160px; height: 160px;
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
}
.banner-text { z-index: 1; }
.banner-tag {
  display: inline-block;
  background: rgba(255,255,255,0.18);
  color: #A5D6A7;
  font-size: 10.5px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 8px;
  letter-spacing: 0.3px;
}
.banner-text h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: white;
  line-height: 1.25;
  margin-bottom: 12px;
}
.banner-text h3 .highlight { color: #A5D6A7; }
.banner-btn {
  background: white;
  color: var(--green-primary);
  border: none;
  border-radius: 10px;
  padding: 8px 18px;
  font-size: 12.5px;
  font-weight: 700;
  font-family: var(--font-main);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.banner-img { z-index: 1; }
.veggie-circle {
  width: 90px;
  height: 90px;
  background: rgba(255,255,255,0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border: 2px solid rgba(255,255,255,0.15);
}
.veggie-emoji {
  font-size: 32px;
  position: absolute;
  animation: float 3s ease-in-out infinite;
}
.veggie-emoji.v2 { font-size: 20px; top: 5px; right: 5px; animation-delay: 1s; }
.veggie-emoji.v3 { font-size: 18px; bottom: 8px; left: 8px; animation-delay: 2s; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}
.banner-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
}
.dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
}
.dot.active {
  width: 18px;
  border-radius: 3px;
  background: white;
}

/* Section Header */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 20px 12px;
  flex-shrink: 0;
}
.section-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--text-dark);
}
.see-all {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--green-mid);
  cursor: pointer;
}

/* Categories Grid */
.categories-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 0 20px 16px;
  flex-shrink: 0;
}
.cat-card {
  border-radius: var(--radius-md);
  padding: 18px 14px 14px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}
.cat-card::after {
  content: '';
  position: absolute;
  top: -20px; right: -20px;
  width: 70px; height: 70px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
}
.cat-card:active { transform: scale(0.97); }
.cat-green { background: linear-gradient(135deg, #E8F5E9, #C8E6C9); }
.cat-orange { background: linear-gradient(135deg, #FFF3E0, #FFE0B2); }
.cat-yellow { background: linear-gradient(135deg, #FFFDE7, #FFF9C4); }
.cat-pink { background: linear-gradient(135deg, #FCE4EC, #F8BBD0); }

.cat-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: rgba(255,255,255,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.cat-emoji { font-size: 26px; }
.cat-name {
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-dark);
}
.cat-sub {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-mid);
}

/* Deals Scroll */
.deals-scroll {
  display: flex;
  gap: 12px;
  padding: 0 20px 20px;
  overflow-x: auto;
  scrollbar-width: none;
  flex-shrink: 0;
}
.deals-scroll::-webkit-scrollbar { display: none; }
.deal-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 14px 12px;
  min-width: 130px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  box-shadow: var(--shadow-sm);
  position: relative;
  flex-shrink: 0;
  cursor: pointer;
  transition: transform 0.2s;
}
.deal-card:active { transform: scale(0.97); }
.deal-badge {
  background: #E8F5E9;
  color: var(--green-primary);
  font-size: 9.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 20px;
  margin-bottom: 4px;
}
.deal-emoji { font-size: 36px; margin: 4px 0; align-self: center; }
.deal-name {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-dark);
  font-family: var(--font-display);
}
.deal-weight {
  font-size: 11px;
  color: var(--text-light);
  font-weight: 500;
}
.deal-price-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}
.deal-price {
  font-size: 15px;
  font-weight: 800;
  color: var(--green-primary);
  font-family: var(--font-display);
}
.deal-old {
  font-size: 11px;
  color: var(--text-light);
  text-decoration: line-through;
}
.add-btn {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  background: var(--green-primary);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 300;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(46,125,50,0.3);
}

/* Bottom Nav */
.bottom-nav {
  background: white;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 10px 8px 20px;
  border-top: 1px solid #F0F0F0;
  position: sticky;
  bottom: 0;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.06);
  flex-shrink: 0;
  margin-top: auto;
}
.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  padding: 4px 10px;
  border-radius: 12px;
  transition: background 0.2s;
}
.nav-item span {
  font-size: 10px;
  font-weight: 600;
  color: #999;
}
.nav-item.active span { color: var(--green-primary); }
.cart-nav { position: relative; }
.cart-bubble {
  width: 46px;
  height: 46px;
  background: linear-gradient(135deg, #2E7D32, #43A047);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: -18px;
  box-shadow: 0 4px 16px rgba(46,125,50,0.35);
  position: relative;
}
.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 16px;
  height: 16px;
  background: #FF5252;
  color: white;
  font-size: 9px;
  font-weight: 800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid white;
}
.cart-nav span { color: var(--green-primary); font-weight: 700; }