/* ═══ CART BAR ═══ */
#hb-cart-bar {
  position: fixed;
  bottom: 64px; /* above bottom nav */
  left: 0; right: 0;
  background: linear-gradient(135deg, var(--green-deep), var(--green-dark));
  padding: 10px 16px 14px;
  border-radius: 22px 22px 0 0;
  box-shadow: 0 -4px 30px rgba(0,0,0,.25);
  z-index: 750;
  transform: translateY(110%);
  transition: transform 0.38s cubic-bezier(.34,1.56,.64,1);
}
#hb-cart-bar.show { transform: translateY(0); }

.hb-meter-wrap { margin-bottom: 10px; }
.hb-meter-labels {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
}
.hb-meter-labels span {
  font-size: 10.5px;
  font-weight: 800;
  color: var(--green-glow);
}
.hb-meter-track {
  background: rgba(255,255,255,.12);
  border-radius: var(--radius-full);
  height: 5px;
  overflow: hidden;
}
.hb-meter-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--green-glow), var(--amber));
  border-radius: var(--radius-full);
  transition: width 0.5s cubic-bezier(.4,0,.2,1);
  width: 0%;
}

.hb-cart-row { display: flex; align-items: center; gap: 12px; }
.hb-cart-info { flex: 1; cursor: pointer; }
.hb-cart-items-txt {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,.65);
}
.hb-cart-total-txt {
  font-family: 'Sora', sans-serif;
  font-size: 22px;
  font-weight: 900;
  color: var(--amber);
  line-height: 1;
}
.hb-checkout-trigger {
  background: linear-gradient(135deg, var(--amber), var(--amber-deep));
  color: var(--green-deep);
  border: none;
  padding: 12px 22px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(245,158,11,.4);
  transition: var(--spring);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ═══ CART DRAWER ═══ */
#hb-cart-drawer {
  position: fixed;
  bottom: 130px;
  left: 0; right: 0;
  background: var(--green-deep);
  border-radius: 22px 22px 0 0;
  box-shadow: 0 -6px 40px rgba(0,0,0,.5);
  z-index: 720;
  max-height: 60vh;
  overflow-y: auto;
  display: none;
  padding: 0 0 14px;
}
.hb-cd-handle {
  width: 36px;
  height: 4px;
  background: rgba(255,255,255,.2);
  border-radius: 4px;
  margin: 10px auto 8px;
}
.hb-cd-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 16px 12px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.hb-cd-head h3 {
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  font-family: 'Sora', sans-serif;
}
.hb-cd-clear {
  background: rgba(231,76,60,.15);
  color: #ef4444;
  border: 1px solid rgba(231,76,60,.3);
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
}
#hb-cart-items { padding: 8px 16px; }

.hb-cart-row-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.hb-cri-img {
  width: 40px; height: 40px;
  background: rgba(77,218,133,.12);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.hb-cri-info { flex: 1; min-width: 0; }
.hb-cri-name {
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hb-cri-meta {
  font-size: 10px;
  color: var(--green-glow);
  font-weight: 700;
  margin-top: 1px;
}
.hb-cri-ctrl {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.hb-cri-btn {
  width: 26px; height: 26px;
  border-radius: 50%;
  border: none;
  font-size: 14px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hb-cri-minus { background: var(--green-dark); color: var(--green-glow); }
.hb-cri-plus { background: var(--green-glow); color: #fff; }
.hb-cri-qty {
  min-width: 20px;
  text-align: center;
  font-size: 13px;
  font-weight: 900;
  color: #fff;
}
.hb-cri-amt {
  font-size: 14px;
  font-weight: 900;
  color: var(--amber);
  flex-shrink: 0;
  min-width: 44px;
  text-align: right;
}

/* ═══ OVERLAY ═══ */
#hb-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  z-index: 1000;
  backdrop-filter: blur(4px);
  animation: hb-fade-in 0.25s ease;
}
@keyframes hb-fade-in { from { opacity: 0; } to { opacity: 1; } }

/* ═══ CHECKOUT SHEET ═══ */
#hb-checkout-sheet {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  max-height: 95vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 26px 26px 0 0;
  z-index: 1010;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(.4,0,.2,1);
  -webkit-overflow-scrolling: touch;
}
#hb-checkout-sheet.open { transform: translateY(0); }

.hb-sheet-top {
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 2;
  padding: 14px 20px 0;
  border-radius: 26px 26px 0 0;
}
.hb-drag-handle {
  width: 36px;
  height: 4px;
  background: var(--gray-200);
  border-radius: 4px;
  margin: 0 auto 14px;
}

/* Step bar */
.hb-step-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.hb-step-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.hb-step-circle {
  width: 30px; height: 30px;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--gray-200);
  background: #fff;
  color: var(--gray-400);
  transition: var(--spring);
}
.hb-step-circle.done {
  background: var(--green-light);
  border-color: var(--green-light);
  color: #fff;
}
.hb-step-circle.active {
  background: var(--green-dark);
  border-color: var(--green-dark);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(26,92,56,.15);
}
.hb-step-label {
  font-size: 9px;
  font-weight: 800;
  color: var(--gray-400);
  letter-spacing: 0.3px;
}
.hb-step-label.active { color: var(--green-dark); }
.hb-step-line {
  width: 40px;
  height: 2px;
  background: var(--gray-200);
  margin-bottom: 14px;
}
.hb-step-line.done { background: var(--green-light); }

.hb-sheet-hdr {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--gray-100);
}
.hb-sheet-title {
  font-family: 'Sora', sans-serif;
  font-size: 17px;
  font-weight: 800;
  color: var(--green-deep);
}
.hb-sheet-close {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--gray-100);
  border: none;
  font-size: 15px;
}

.hb-step-panel {
  padding: 16px 20px 120px;
  display: none;
}
.hb-step-panel.active { display: block; }

/* Cart items */
.hb-co-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--gray-50);
}
.hb-co-img {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, #f0fff4, #e0f7ea);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}
.hb-co-info { flex: 1; min-width: 0; }
.hb-co-name { font-size: 13px; font-weight: 800; color: var(--gray-800); }
.hb-co-meta { font-size: 10px; color: var(--gray-400); font-weight: 700; margin-top: 2px; }
.hb-co-ctrl { display: flex; align-items: center; gap: 7px; flex-shrink: 0; }
.hb-co-btn {
  width: 28px; height: 28px;
  border-radius: 8px;
  border: none;
  font-size: 16px;
  font-weight: 900;
}
.hb-co-minus { background: var(--gray-100); color: var(--gray-600); }
.hb-co-plus { background: var(--green-dark); color: #fff; }
.hb-co-qty { min-width: 20px; text-align: center; font-size: 14px; font-weight: 900; }
.hb-co-price {
  font-size: 14px;
  font-weight: 900;
  color: var(--green-dark);
  min-width: 44px;
  text-align: right;
  flex-shrink: 0;
}

/* Bill */
.hb-bill-card {
  background: linear-gradient(135deg, #f0fff6, #fafff7);
  border: 1.5px solid #c3efd4;
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-top: 16px;
}
.hb-bill-title {
  font-size: 12px;
  font-weight: 900;
  color: var(--green-deep);
  margin-bottom: 12px;
  letter-spacing: 0.3px;
}
.hb-bill-row {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
  font-size: 13px;
  color: var(--gray-600);
  font-weight: 600;
}
.hb-bill-row.hb-saving { color: #16a34a; }
.hb-bill-row.hb-saving span:last-child { font-weight: 900; }
.hb-bill-row.hb-grand {
  font-size: 16px;
  font-weight: 900;
  color: var(--green-deep);
}
.hb-bill-row.hb-grand span:last-child { color: var(--amber-deep); }
.hb-bill-dash {
  border: none;
  border-top: 1.5px dashed var(--gray-200);
  margin: 10px 0;
}

.hb-delivery-tag {
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #fff7ed, #fef3c7);
  border: 1.5px solid #fed7aa;
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-top: 12px;
}
.hb-dt-icon { font-size: 24px; }
.hb-dt-main {
  font-size: 12px;
  font-weight: 900;
  color: #c2410c;
}
.hb-dt-sub {
  font-size: 10.5px;
  color: #9a3412;
  font-weight: 700;
  margin-top: 1px;
}
.hb-dt-fast {
  margin-left: auto;
  background: #ea580c;
  color: #fff;
  font-size: 9px;
  font-weight: 900;
  padding: 3px 9px;
  border-radius: var(--radius-full);
}

.hb-sheet-footer {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #fff;
  padding: 12px 20px 22px;
  box-shadow: 0 -4px 24px rgba(0,0,0,.08);
  z-index: 1020;
  display: none;
}
.hb-sheet-footer.show { display: block; }
.hb-primary-btn {
  width: 100%;
  padding: 16px;
  border-radius: var(--radius-lg);
  border: none;
  font-size: 15px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition);
}
.hb-btn-green {
  background: linear-gradient(135deg, var(--green-dark), var(--green-deep));
  color: #fff;
  box-shadow: 0 4px 20px rgba(26,92,56,.3);
}
.hb-btn-amber {
  background: linear-gradient(135deg, var(--amber), var(--amber-deep));
  color: var(--green-deep);
  box-shadow: 0 4px 20px rgba(245,158,11,.35);
}
.hb-btn-loading { opacity: 0.7; pointer-events: none; }

/* Address form */
.hb-saved-addr {
  background: linear-gradient(135deg, #f0fff4, #e8fdf1);
  border: 2px solid var(--green-light);
  border-radius: var(--radius-lg);
  padding: 14px;
  margin-bottom: 16px;
  cursor: pointer;
  display: none;
}
.hb-saved-addr.show { display: block; }
.hb-sa-row { display: flex; align-items: center; justify-content: space-between; }
.hb-sa-label {
  font-size: 9px;
  font-weight: 900;
  color: var(--green-deep);
  letter-spacing: 0.5px;
  margin-bottom: 3px;
}
.hb-sa-text {
  font-size: 13px;
  font-weight: 800;
  color: var(--green-dark);
}
.hb-sa-change {
  font-size: 11px;
  color: var(--green-mid);
  font-weight: 800;
  border: 1.5px solid var(--green-mid);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  flex-shrink: 0;
  margin-left: 10px;
}

.hb-form-section-label {
  font-size: 12px;
  font-weight: 900;
  color: var(--green-deep);
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}
.hb-form-group { display: flex; flex-direction: column; gap: 10px; }
.hb-field {
  padding: 13px 16px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 700;
  color: var(--gray-800);
  outline: none;
  width: 100%;
  background: #fff;
  transition: var(--transition);
}
.hb-field:focus {
  border-color: var(--green-light);
  box-shadow: 0 0 0 3px rgba(56,178,106,.1);
}
.hb-field::placeholder { color: var(--gray-400); font-weight: 600; }
.hb-field[readonly] { background: var(--gray-50); cursor: pointer; }
.hb-field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hb-save-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  cursor: pointer;
}
.hb-save-row input[type=checkbox] {
  width: 17px; height: 17px;
  accent-color: var(--green-dark);
}
.hb-save-row span {
  font-size: 12px;
  font-weight: 700;
  color: var(--gray-600);
}

/* Society dropdown */
.hb-soc-wrap { position: relative; }
.hb-soc-arrow {
  position: absolute;
  right: 14px; top: 50%;
  transform: translateY(-50%);
  color: var(--gray-400);
  font-size: 11px;
  pointer-events: none;
}
.hb-soc-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0; right: 0;
  background: #fff;
  border: 2px solid var(--green-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: none;
  z-index: 100;
  overflow: hidden;
  animation: hb-slide-down 0.2s ease;
}
.hb-soc-dropdown.show { display: block; }
@keyframes hb-slide-down {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
.hb-soc-search-wrap { padding: 10px 12px; background: var(--gray-50); }
.hb-soc-search {
  width: 100%;
  padding: 9px 13px;
  border: 1.5px solid var(--gray-200);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  outline: none;
}
.hb-soc-list { max-height: 170px; overflow-y: auto; }
.hb-soc-item {
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 700;
  color: var(--gray-800);
  cursor: pointer;
  border-bottom: 1px solid var(--gray-50);
  display: flex;
  align-items: center;
  gap: 8px;
}
.hb-soc-item:hover, .hb-soc-item.sel {
  background: #f0fff4;
  color: var(--green-dark);
}
.hb-soc-footer { padding: 8px 12px; border-top: 1px solid var(--gray-100); }
.hb-add-soc-btn {
  width: 100%;
  background: none;
  border: 2px dashed var(--green-light);
  color: var(--green-dark);
  padding: 8px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 800;
}

/* Payment cards */
.hb-pay-card {
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 10px;
  cursor: pointer;
  background: #fff;
  transition: var(--transition);
}
.hb-pay-card.selected {
  border-color: var(--green-dark);
  background: linear-gradient(135deg, #f0fff4, #fafff7);
}
.hb-pay-inner { display: flex; align-items: center; gap: 14px; }
.hb-pay-icon {
  width: 46px; height: 46px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}
.hb-pay-title { font-size: 14px; font-weight: 800; color: var(--gray-800); }
.hb-pay-sub { font-size: 11px; color: var(--gray-400); font-weight: 600; margin-top: 2px; }
.hb-pay-radio {
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 2px solid var(--gray-400);
  background: #fff;
  flex-shrink: 0;
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.hb-pay-radio.on { background: var(--green-dark); border-color: var(--green-dark); }
.hb-pay-dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; }

.hb-upi-expand {
  background: linear-gradient(135deg, #fffbeb, #fef9c3);
  border: 2px solid #fcd34d;
  border-radius: var(--radius-md);
  padding: 16px;
  margin-top: 10px;
  display: none;
}
.hb-upi-expand.show { display: block; }
.hb-upi-step {
  font-size: 11px;
  font-weight: 900;
  color: #92400e;
  margin-bottom: 10px;
  letter-spacing: 0.3px;
}
.hb-upi-card {
  background: #fff;
  border-radius: 12px;
  padding: 14px;
  text-align: center;
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
}
.hb-upi-hint {
  font-size: 9px;
  color: var(--gray-400);
  font-weight: 700;
  margin-bottom: 4px;
  letter-spacing: 0.5px;
}
.hb-upi-val {
  font-family: 'Sora', sans-serif;
  font-size: 18px;
  font-weight: 900;
  color: var(--green-dark);
  letter-spacing: 0.5px;
}
.hb-copy-btn {
  margin-top: 10px;
  background: var(--green-dark);
  color: #fff;
  border: none;
  padding: 7px 18px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 800;
}
.hb-upi-tip {
  font-size: 10px;
  color: #92400e;
  font-weight: 600;
  margin-top: 6px;
}

/* CAPTCHA */
.hb-captcha-wrap {
  background: var(--gray-50);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-top: 14px;
}
.hb-captcha-label {
  font-size: 10px;
  font-weight: 900;
  color: var(--gray-600);
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}
.hb-captcha-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.hb-captcha-q {
  font-family: 'Sora', sans-serif;
  font-size: 16px;
  font-weight: 900;
  color: var(--green-deep);
  background: #fff;
  padding: 11px 16px;
  border-radius: 10px;
  border: 2px solid var(--gray-200);
  flex-shrink: 0;
}
.hb-cap-input { flex: 1; padding: 11px 14px !important; }

.hb-order-mini {
  background: var(--gray-50);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-top: 14px;
  border: 1.5px solid var(--gray-100);
}
.hb-om-label {
  font-size: 10px;
  font-weight: 900;
  color: var(--gray-400);
  letter-spacing: 0.8px;
  margin-bottom: 8px;
}
.hb-om-row { display: flex; justify-content: space-between; align-items: center; }
.hb-om-count { font-size: 13px; color: var(--gray-600); font-weight: 700; }
.hb-om-total {
  font-family: 'Sora', sans-serif;
  font-size: 22px;
  font-weight: 900;
  color: var(--amber-deep);
}

/* ═══ SUCCESS SCREEN ═══ */
#hb-success-screen {
  display: none;
  position: fixed;
  inset: 0;
  background: #fff;
  z-index: 2000;
  overflow-y: auto;
}
.hb-success-bg {
  min-height: 100vh;
  background: linear-gradient(160deg, var(--green-deep) 0%, var(--green-dark) 45%, #fff 45%);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 24px 40px;
}
.hb-success-top {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 0 30px;
}
.hb-success-ring {
  width: 90px; height: 90px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  border: 3px solid rgba(255,255,255,.4);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: hb-ring-pop 0.6s cubic-bezier(.34,1.56,.64,1) both;
  margin-bottom: 16px;
}
.hb-success-ring span { font-size: 44px; }
@keyframes hb-ring-pop {
  from { transform: scale(0); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.hb-success-title {
  font-family: 'Sora', sans-serif;
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
}
.hb-success-sub {
  font-size: 13px;
  color: rgba(255,255,255,.75);
  font-weight: 700;
}
.hb-success-card {
  background: #fff;
  border-radius: 24px;
  width: 100%;
  max-width: 380px;
  box-shadow: var(--shadow-xl);
  padding: 24px;
  margin-top: -10px;
}
.hb-oid-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, #f0fff4, #e8fdf1);
  border: 2px solid var(--green-light);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  margin-bottom: 18px;
}
.hb-oid-label {
  font-size: 9px;
  font-weight: 900;
  color: var(--green-deep);
  letter-spacing: 1px;
}
.hb-oid-val {
  font-family: 'Sora', sans-serif;
  font-size: 20px;
  font-weight: 900;
  color: var(--green-dark);
  letter-spacing: 2px;
}
.hb-oid-copy {
  background: var(--green-dark);
  color: #fff;
  border: none;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 800;
}
.hb-detail-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--gray-50);
}
.hb-detail-row:last-child { border: none; }
.hb-d-icon { font-size: 16px; flex-shrink: 0; margin-top: 1px; }
.hb-d-label {
  font-size: 10px;
  font-weight: 900;
  color: var(--gray-400);
  letter-spacing: 0.3px;
}
.hb-d-val {
  font-size: 13px;
  font-weight: 800;
  color: var(--gray-800);
  margin-top: 1px;
}
.hb-success-actions {
  width: 100%;
  max-width: 380px;
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hb-wa-notify-btn {
  width: 100%;
  background: linear-gradient(135deg, #25d366, #20bf5a);
  color: #fff;
  border: none;
  padding: 15px;
  border-radius: var(--radius-lg);
  font-size: 14px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 16px rgba(37,211,102,.3);
}
.hb-continue-btn {
  width: 100%;
  background: #fff;
  color: var(--green-dark);
  border: 2px solid var(--green-light);
  padding: 14px;
  border-radius: var(--radius-lg);
  font-size: 14px;
  font-weight: 900;
}
