/* =========================================================
   TAAZAHAAT — ZEPTO & BLINKIT QUICK-COMMERCE THEME (style.css)
   ========================================================= */
:root {
  --green: #0C831F;
  --deep: #096818;
  --lime: #F8CB46;
  --ink: #1F1F1F;
  --muted: #666666;
  --line: #E8E8E8;
  --bg: #F4F6FB;
  --white: #FFFFFF;
  --red: #D92D20;
  --bk-yellow: #F8CB46;
  --bk-green: #0C831F;
  --bk-green-dark: #096818;
  --bk-green-light: #F7FFF9;
  --bk-ink: #1F1F1F;
  --bk-muted: #666666;
  --bk-border: #EEEEEE;
  --bk-bg: #F4F6FB;
  --bk-blue-badge: #256FEF;
  --zepto-purple: #5b21b6;
  --zepto-light-bg: #F4F5F7;
  --zepto-card-bg: #FFFFFF;
  --zepto-pink-btn: #E11D48;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  background: var(--zepto-light-bg);
  color: var(--ink);
  font: 15px/1.5 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  padding-bottom: 75px;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font: inherit;
}

/* =========================================================
   ZEPTO & BLINKIT STICKY HEADER & TOPBAR
   ========================================================= */
.topbar, .bk-header, .zepto-header {
  background: #ffffff;
  border-bottom: 1px solid var(--bk-border);
  position: sticky;
  top: 0;
  z-index: 40;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.topinner, .bk-header-top {
  max-width: 1280px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.zepto-header {
  padding: 10px 14px 6px;
}

.zepto-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.zepto-location-box {
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.zepto-eta-title {
  font-size: 15px;
  font-weight: 900;
  color: #111;
  display: flex;
  align-items: center;
  gap: 4px;
}

.zepto-select-loc {
  font-size: 12px;
  color: #555;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 2px;
}

.zepto-profile-btn, .accountbtn, .bk-login-btn {
  border: 1px solid #E2E8F0;
  background: #ffffff;
  color: #1F1F1F;
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.15s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

.zepto-profile-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  padding: 0;
  background: #E5E7EB;
  border: none;
}

.user-icon-wrap {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #E7F7E9;
  color: var(--bk-green);
  display: grid;
  place-items: center;
}

.user-icon {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

/* Top Pill Switcher */
.zepto-pill-switcher {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: none;
}
.zepto-pill-switcher::-webkit-scrollbar { display: none; }

.z-pill {
  padding: 8px 16px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  border: 1px solid #E5E7EB;
  background: #fff;
  cursor: pointer;
}
.z-pill.active-z1 { background: #E0F2FE; color: #0369A1; border-color: #BAE6FD; }
.z-pill.active-z2 { background: #FEF3C7; color: #B45309; border-color: #FDE68A; }
.z-pill.active-z3 { background: #F3E8FF; color: #6B21A8; border-color: #E9D5FF; }

/* Search Bar */
.search, .bk-search-wrap, .zepto-search {
  flex: 1;
  position: relative;
  margin: 8px 0 12px;
}

.search input, .bk-search-input, .zepto-search input {
  width: 100%;
  height: 44px;
  padding: 0 16px 0 42px;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  background: #F3F4F6;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  outline: 0;
  transition: all 0.2s ease;
}

.search input:focus, .bk-search-input:focus, .zepto-search input:focus {
  background: #ffffff;
  border-color: var(--bk-green);
  box-shadow: 0 0 0 3px rgba(12, 131, 31, 0.12);
}

.zepto-search svg, .bk-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: #6B7280;
  pointer-events: none;
}

/* Category Horizontal Scroll Icons */
.zepto-cat-scroll {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 4px 0 12px;
  scrollbar-width: none;
}
.zepto-cat-scroll::-webkit-scrollbar { display: none; }
.z-cat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  min-width: 58px;
}
.z-cat-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: #EEF2F6;
  display: grid;
  place-items: center;
  font-size: 24px;
}
.z-cat-name {
  font-size: 11px;
  font-weight: 700;
  color: #374151;
}

/* Bottom App Navigation Bar */
.zepto-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  border-top: 1px solid #E5E7EB;
  display: flex;
  justify-content: space-around;
  padding: 8px 0 calc(8px + env(safe-area-inset-bottom));
  z-index: 50;
  box-shadow: 0 -4px 12px rgba(0,0,0,0.05);
}
.z-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: #6B7280;
  font-size: 10px;
  font-weight: 700;
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
}
.z-nav-item.active {
  color: #E11D48;
}
.z-nav-item svg {
  width: 22px;
  height: 22px;
}

/* Cart & Action Buttons */
.accountout {
  font-size: 13px;
  font-weight: 700;
  color: #444;
  white-space: nowrap;
  padding: 7px 10px;
  border-radius: 8px;
}
.accountout:hover { background: #F0F4F1; color: var(--bk-green); }

.cartbtn, .btn, .bk-cart-btn {
  border: 0;
  background: var(--bk-green);
  color: #ffffff;
  border-radius: 10px;
  padding: 11px 18px;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.15s ease;
  white-space: nowrap;
}
.cartbtn:hover, .btn:hover, .bk-cart-btn:hover { background: var(--bk-green-dark); }
.btn.secondary { background: #EDF7EE; color: var(--bk-green); border: 1px solid #C5E6C9; }
.btn.secondary:hover { background: #DCF1DF; }
.btn.danger { background: #FEE4E2; color: #B42318; border: 1px solid #FECDCA; }
.btn.danger:hover { background: #FECDCA; }
.smallbtn { padding: 8px 13px; font-size: 12.5px; border-radius: 8px; }

/* Layout & Grid Components */
.wrap, .bk-container {
  max-width: 1280px;
  margin: 18px auto;
  padding: 0 20px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  letter-spacing: 1.2px;
  font-weight: 900;
  color: var(--bk-green);
  background: #E7F7E9;
  padding: 4px 10px;
  border-radius: 99px;
  text-transform: uppercase;
  margin: 0 0 8px;
}
.muted { color: var(--muted); font-size: 13px; }

.chips, .bk-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 0 14px;
  scrollbar-width: none;
}
.chips::-webkit-scrollbar, .bk-chips::-webkit-scrollbar { display: none; }
.chip, .bk-chip {
  background: #ffffff;
  border: 1px solid #DEDEDE;
  border-radius: 10px;
  padding: 8px 14px;
  white-space: nowrap;
  font-weight: 700;
  font-size: 13px;
  color: #333;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.chip.active, .bk-chip.active {
  background: var(--bk-green-light);
  border-color: var(--bk-green);
  color: var(--bk-green);
}

.sectionhead, .bk-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin: 22px 0 14px;
}
.sectionhead h2, .bk-section-head h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.4px;
}

/* Product Cards Grid */
.grid, .bk-product-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}
.product, .bk-card {
  background: #ffffff;
  border: 1px solid #E8E8E8;
  border-radius: 12px;
  padding: 10px 10px 12px;
  display: flex;
  flex-direction: column;
  min-width: 0;
  position: relative;
  transition: box-shadow 0.15s ease;
}
.product:hover, .bk-card:hover { box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06); }
.product img {
  width: 100%;
  height: 130px;
  object-fit: contain;
  background: #ffffff;
  border-radius: 8px;
  padding: 6px;
}
.product .pname, .bk-prod-title {
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
  margin: 6px 0 4px;
  min-height: 35px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product .unit, .bk-prod-unit {
  font-size: 12px;
  color: #777;
  font-weight: 500;
  margin-bottom: 8px;
}
.price { font-size: 14px; font-weight: 800; margin: 6px 0; }
.price del { font-size: 11px; color: #999; font-weight: 500; margin-left: 4px; }
.addrow, .bk-card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  gap: 6px;
}
.add, .bk-add-btn {
  background: var(--bk-green-light);
  color: var(--bk-green);
  border: 1px solid var(--bk-green);
  border-radius: 7px;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}
.add:hover, .bk-add-btn:hover { background: var(--bk-green); color: #ffffff; }
.qty, .bk-qty-box {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bk-green);
  color: #ffffff;
  border-radius: 7px;
  min-width: 72px;
  height: 32px;
  padding: 0 4px;
  font-weight: 800;
  font-size: 13px;
}
.qty button, .bk-qty-box button {
  border: 0;
  background: transparent;
  color: #ffffff;
  width: 24px;
  height: 28px;
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
  display: grid;
  place-items: center;
}

/* Modals & Forms */
.modalback {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(2px);
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.modalback.show { display: flex; }
.modal {
  background: #ffffff;
  width: min(520px, 100%);
  max-height: 90vh;
  overflow: auto;
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}
.field { display: block; margin: 12px 0; }
.field span, label { display: block; font-size: 12.5px; font-weight: 700; color: #333; margin-bottom: 5px; }
.field input, .field textarea, .field select, input, textarea, select {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid #D8DEE4;
  border-radius: 10px;
  background: #ffffff;
  font-size: 14px;
  outline: none;
}
.field input:focus, .field textarea:focus, input:focus, textarea:focus {
  border-color: var(--bk-green);
  box-shadow: 0 0 0 3px rgba(12, 131, 31, 0.12);
}
.cartline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--bk-border);
  font-size: 14px;
}
.empty { padding: 44px 20px; text-align: center; background: #ffffff; border: 1px dashed #D8DEE4; border-radius: 16px; color: var(--muted); }
.alert { padding: 12px 16px; border-radius: 10px; background: #FEF3F2; border: 1px solid #FECDCA; color: #B42318; font-weight: 600; font-size: 13.5px; margin: 12px 0; }
.alert.success, .success { background: #ECFDF3; border-color: #ABEFC6; color: #067647; }
.footer { padding: 36px 20px; text-align: center; color: var(--muted); font-size: 13px; }

/* Responsive Breakpoints */
@media (max-width: 1050px) {
  .grid, .bk-product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  .grid, .bk-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .wrap, .bk-container { padding: 0 12px; }
}