* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
  background: #f3f5f8;
  color: #1f2937;
  padding-bottom: 85px;
}

.header {
  background: linear-gradient(135deg, #0b8a4b, #066335);
  color: #fff;
  padding: 14px 16px;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 3px 12px rgba(0,0,0,0.14);
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.brand {
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.brand span {
  color: #ffd54f;
}

.location {
  font-size: 12px;
  opacity: 0.92;
  margin-top: 2px;
}

.track-btn {
  background: rgba(255,255,255,0.18);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.4);
  padding: 7px 13px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.search-box input {
  width: 100%;
  padding: 11px 14px;
  border-radius: 10px;
  border: none;
  font-size: 14px;
  outline: none;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.categories {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 12px 16px;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
}

.categories::-webkit-scrollbar {
  display: none;
}

.cat-btn {
  white-space: nowrap;
  padding: 8px 14px;
  border-radius: 20px;
  border: 1px solid #d1d5db;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
}

.cat-btn.active {
  background: #0b8a4b;
  color: #fff;
  border-color: #0b8a4b;
}

.custom-pill {
  background: #fff8e1;
  border-color: #ffb300;
  color: #b26a00;
}

.trust-banner {
  background: #e8f5e9;
  color: #1b5e20;
  font-size: 12px;
  padding: 8px 16px;
  text-align: center;
  border-bottom: 1px solid #c8e6c9;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 14px 16px;
}

/* Hero Banner */
.hero-banner {
  background: linear-gradient(120deg, #111827, #1f2937);
  color: #fff;
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.1);
}

.hero-tag {
  background: #fbbf24;
  color: #111827;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  display: inline-block;
  margin-bottom: 6px;
}

.hero-banner h2 {
  font-size: 16px;
  line-height: 1.35;
  margin-bottom: 4px;
}

.hero-banner p {
  font-size: 12px;
  color: #d1d5db;
}

.hero-btn {
  background: #0f9d58;
  color: #fff;
  border: none;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 12px;
  white-space: nowrap;
  cursor: pointer;
}

.section-title {
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 12px;
  color: #111827;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (min-width: 640px) {
  .product-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }
}

.product-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  border: 1px solid #eef0f3;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.15s ease;
}

.product-card:hover {
  transform: translateY(-2px);
}

.prod-img-wrap {
  position: relative;
  width: 100%;
  height: 130px;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.prod-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.prod-emoji-fallback {
  font-size: 46px;
}

.time-badge {
  position: absolute;
  bottom: 6px;
  left: 8px;
  background: rgba(255,255,255,0.92);
  color: #111827;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 5px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.12);
}

.prod-body {
  padding: 10px 12px 12px;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
}

.prod-cat {
  font-size: 10px;
  color: #0b8a4b;
  text-transform: uppercase;
  font-weight: 700;
}

.prod-name {
  font-size: 14px;
  font-weight: 700;
  margin: 3px 0;
  color: #111827;
  line-height: 1.3;
}

.prod-unit {
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 10px;
}

.prod-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.prod-price {
  font-weight: 800;
  font-size: 15px;
  color: #111827;
}

.add-btn {
  background: #f0fdf4;
  color: #0b8a4b;
  border: 1.5px solid #0b8a4b;
  padding: 5px 14px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 12px;
  cursor: pointer;
}

.qty-control {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #0b8a4b;
  color: #fff;
  padding: 4px 8px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 13px;
}

.qty-control button {
  background: none;
  border: none;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  padding: 0 4px;
}

.cart-bar {
  position: fixed;
  bottom: 14px;
  left: 14px;
  right: 14px;
  max-width: 930px;
  margin: 0 auto;
  background: #0b8a4b;
  color: #fff;
  padding: 14px 18px;
  border-radius: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 6px 20px rgba(11,138,75,0.4);
  cursor: pointer;
  z-index: 60;
}

.hidden {
  display: none !important;
}

/* Modals */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 100;
}

@media (min-width: 640px) {
  .modal {
    align-items: center;
  }
}

.modal-content {
  background: #fff;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 20px 20px 0 0;
  padding: 20px;
}

@media (min-width: 640px) {
  .modal-content {
    border-radius: 16px;
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.close-btn {
  background: #f3f4f6;
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
}

.cart-items-list {
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 10px;
  margin-bottom: 10px;
}

.cart-item-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  padding: 6px 0;
}

.bill-box {
  background: #f9fafb;
  padding: 10px 12px;
  border-radius: 10px;
  margin-bottom: 14px;
  font-size: 13px;
}

.bill-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
}

.bill-row.grand {
  font-weight: 800;
  font-size: 15px;
  border-top: 1px dashed #d1d5db;
  padding-top: 6px;
  margin-top: 6px;
}

form input, form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  margin-bottom: 10px;
  font-size: 14px;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  background: #f0fdf4;
  padding: 8px 10px;
  border-radius: 8px;
  margin-bottom: 12px;
}

.checkbox-row input {
  width: auto;
  margin: 0;
}

.payment-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}

.pay-card {
  border: 1px solid #d1d5db;
  padding: 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.pay-card input {
  width: auto;
  margin: 0;
}

.upi-box {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  padding: 10px;
  border-radius: 8px;
  margin-bottom: 12px;
  font-size: 13px;
}

.upi-box input {
  margin-top: 8px;
  margin-bottom: 0;
}

.primary-btn {
  width: 100%;
  background: #0b8a4b;
  color: #fff;
  border: none;
  padding: 13px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.track-search {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.track-search input {
  flex: 1;
  padding: 10px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
}

.small-btn {
  background: #0b8a4b;
  color: #fff;
  border: none;
  padding: 0 16px;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
}

.track-result {
  background: #f9fafb;
  padding: 12px;
  border-radius: 10px;
  font-size: 14px;
}

.hint-text {
  font-size: 13px;
  color: #4b5563;
  margin-bottom: 10px;
}