:root{
  --fk-blue:#2874f0;
  --fk-blue-dark:#1e5fc4;
  --fk-pink:#e21e6a;
  --fk-pink-light:#fce7f3;
  --fk-red:#e23744;
  --fk-green:#008c00;
  --bg:#f0f2f5;
  --card:#ffffff;
  --text:#212121;
  --muted:#878787;
  --line:#e0e0e0;
  --primary:var(--fk-pink);
  --primary-dark:#c2185b;
  --accent:var(--fk-blue);
  --danger:var(--fk-red);
  --shadow:0 4px 16px rgba(40,116,240,.12);
  --radius:12px;
  --nav-h:60px;
  --safe-bottom:env(safe-area-inset-bottom,0px);
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:"Segoe UI",Roboto,system-ui,sans-serif;
  background:var(--bg);
  color:var(--text);
  padding-bottom:calc(var(--nav-h) + var(--safe-bottom) + 12px);
}
body.sheet-open{overflow:hidden}
a{color:inherit;text-decoration:none}
img{display:block;max-width:100%}
.appShell{min-height:100vh}
.appMain{max-width:720px;margin:0 auto}

/* Flipkart Minutes header */
.minutesHeader{
  position:sticky;top:0;z-index:100;
  background:linear-gradient(180deg,var(--fk-blue) 0%,var(--fk-blue-dark) 100%);
  color:#fff;padding:10px 12px 0;
  box-shadow:0 4px 14px rgba(30,95,196,.25);
}
.minutesHeaderTop{
  display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:10px;
}
.minutesAddress{display:flex;align-items:center;gap:8px;min-width:0;flex:1;color:#fff}
.minutesAddressIcon{font-size:18px;opacity:.95}
.minutesAddressText{min-width:0;flex:1}
.minutesAddressTitle{font-size:11px;opacity:.85;font-weight:600}
.minutesAddressLabel{font-size:14px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block}
.minutesAddressChevron{opacity:.8;font-size:18px}
.minutesHeaderActions{display:flex;align-items:center;gap:8px;flex-shrink:0}
.etaPill{
  background:var(--fk-red);color:#fff;font-size:11px;font-weight:800;
  padding:6px 10px;border-radius:8px;white-space:nowrap;
}
.headerIconBtn{
  width:34px;height:34px;border-radius:50%;background:rgba(255,255,255,.15);
  display:flex;align-items:center;justify-content:center;font-size:16px;
}

.minutesSearchWrap{
  display:flex;align-items:center;gap:8px;background:#fff;border-radius:10px;
  padding:10px 12px;margin-bottom:8px;
}
.minutesSearchIcon{color:var(--muted);font-size:16px}
.minutesSearch{
  border:none;outline:none;width:100%;font-size:15px;background:transparent;color:var(--text);
}
.minutesSearch::placeholder{color:#9e9e9e}

.catTabBar{
  display:flex;gap:4px;overflow-x:auto;padding:0 0 8px;
  -webkit-overflow-scrolling:touch;scrollbar-width:none;
}
.catTabBar::-webkit-scrollbar{display:none}
.catTab{
  flex:0 0 auto;border:none;background:transparent;color:rgba(255,255,255,.75);
  font-size:14px;font-weight:700;padding:8px 14px 10px;cursor:pointer;position:relative;
}
.catTab.active{color:#fff}
.catTab.active::after{
  content:"";position:absolute;left:14px;right:14px;bottom:2px;height:3px;
  background:var(--fk-pink);border-radius:999px;
}

.minutesMain{padding-bottom:16px}

/* Quick picks */
.quickPickRow{
  display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;
  padding:12px 10px 0;
}
.quickPickCard{
  border:none;border-radius:12px;min-height:72px;padding:8px;
  display:flex;align-items:flex-end;cursor:pointer;color:#fff;
  box-shadow:0 6px 16px rgba(0,0,0,.12);
}
.quickPickLabel{font-size:11px;font-weight:800;line-height:1.2;text-align:left}

/* Offer split */
.offerSplit{
  margin:12px 10px 0;display:flex;align-items:stretch;border-radius:12px;overflow:hidden;
  min-height:64px;box-shadow:0 2px 8px rgba(0,0,0,.06);
}
.offerSplitLeft{
  flex:1;background:#e8f7ef;padding:12px 14px;
}
.offerSplitRight{
  flex:1;background:var(--fk-red);color:#fff;padding:12px 14px;
}
.offerSplitPlus{
  display:flex;align-items:center;justify-content:center;width:28px;
  background:#fff;font-weight:900;color:var(--text);font-size:18px;
}
.offerSplitTitle{font-size:15px;font-weight:800;line-height:1.2}
.offerSplitSub{font-size:11px;margin-top:4px;opacity:.85}

/* Feed sections */
.feedSections{padding:8px 0}
.feedSectionBlock{margin-bottom:14px}
.sectionHead{
  display:flex;align-items:center;justify-content:space-between;
  padding:12px 12px 10px;border-radius:12px 12px 0 0;margin:0 10px;
}
.sectionTitle{font-size:17px;font-weight:800;color:#1a1a1a}
.sectionSub{font-size:12px;color:var(--muted);margin-top:2px}
.sectionViewAll{
  width:36px;height:36px;border-radius:50%;border:none;background:#111;color:#fff;
  font-size:18px;cursor:pointer;flex-shrink:0;
}
.sectionCarousel{
  display:flex;gap:10px;overflow-x:auto;padding:0 10px 12px;
  scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;
}
.sectionCarousel::-webkit-scrollbar{display:none}

/* Product grid */
.feedSection{padding:12px 10px 20px}
.feedHead{display:flex;align-items:center;justify-content:space-between;padding:4px 4px 10px}
.feedTitle{font-size:16px;font-weight:800}
.feedMeta{font-size:12px;color:var(--muted)}

.productGrid{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;
}
.productCarouselTrack .productCard{flex:0 0 140px;scroll-snap-align:start}

.productCard{
  background:var(--card);border:1px solid var(--line);border-radius:var(--radius);
  overflow:hidden;display:flex;flex-direction:column;min-height:100%;
}
.productCard--carousel{min-width:140px;max-width:140px}

.productImageWrap{
  position:relative;aspect-ratio:1/1;background:#fafafa;padding:6px;
}
.productImageWrap img{width:100%;height:100%;object-fit:contain}

.discountPill{
  position:absolute;top:6px;left:6px;z-index:2;
  background:var(--fk-green);color:#fff;font-size:10px;font-weight:800;
  padding:3px 6px;border-radius:4px;line-height:1;
}
.stockBadge{
  position:absolute;top:6px;left:6px;z-index:2;
  font-size:10px;font-weight:800;padding:4px 7px;border-radius:6px;
}
.stockOut{background:#fee2e2;color:#991b1b}
.stockLow{background:#fef3c7;color:#92400e}

.imageAddBtn{
  position:absolute;right:6px;bottom:6px;z-index:3;
  width:34px;height:34px;border-radius:8px;border:2px solid var(--fk-pink);
  background:#fff;color:var(--fk-pink);font-size:22px;font-weight:800;line-height:1;
  cursor:pointer;display:flex;align-items:center;justify-content:center;
  box-shadow:0 2px 8px rgba(0,0,0,.1);
}
.imageAddBtn:disabled{opacity:.5;border-color:#ccc;color:#999}

.imageQtyStepper{
  position:absolute;right:6px;bottom:6px;z-index:3;
  display:inline-flex;align-items:center;background:#fff;
  border:2px solid var(--fk-pink);border-radius:8px;overflow:hidden;
  box-shadow:0 2px 8px rgba(0,0,0,.1);
}
.imageQtyStepper button{
  width:30px;height:30px;border:none;background:var(--fk-pink-light);
  color:var(--fk-pink);font-size:18px;font-weight:800;cursor:pointer;
}
.imageQtyStepper span{
  min-width:24px;text-align:center;font-size:13px;font-weight:800;padding:0 2px;
}

.productBody{padding:8px 8px 10px;flex:1;display:flex;flex-direction:column}
.productName{
  font-size:13px;font-weight:600;line-height:1.35;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
}
.priceRow{display:flex;align-items:baseline;gap:6px;margin-top:6px;flex-wrap:wrap}
.productPrice{font-size:15px;font-weight:800}
.productMrp{font-size:12px;color:var(--muted);text-decoration:line-through}

.emptyFeed,.loadingFeed,.sectionLoading{
  text-align:center;padding:24px 16px;color:var(--muted);font-size:14px;
}

/* Sticky basket bar */
.stickyCartBar{
  position:fixed;left:50%;transform:translateX(-50%);
  bottom:calc(var(--nav-h) + var(--safe-bottom) + 8px);
  width:min(680px,calc(100% - 20px));z-index:90;display:none;
}
.stickyCartBar.show{display:block}
.stickyCartBtn{
  width:100%;border:none;border-radius:12px;padding:14px 16px;
  background:var(--fk-pink);color:#fff;font-size:15px;font-weight:800;
  display:flex;align-items:center;justify-content:space-between;
  box-shadow:0 8px 24px rgba(226,30,106,.35);cursor:pointer;
}

/* Bottom nav */
.bottomNav{
  position:fixed;left:0;right:0;bottom:0;z-index:100;
  background:var(--card);border-top:1px solid var(--line);
  padding-bottom:var(--safe-bottom);
  display:flex;justify-content:space-around;
  height:calc(var(--nav-h) + var(--safe-bottom));padding-top:6px;
}
.navItem{
  flex:1;display:flex;flex-direction:column;align-items:center;gap:2px;
  font-size:10px;font-weight:700;color:var(--muted);border:none;background:transparent;
  cursor:pointer;padding:4px;text-decoration:none;
}
.navItem.active{color:var(--fk-pink)}
.navIcon{font-size:20px;line-height:1}
.navIconWrap{position:relative;display:inline-block}
.navBadge{
  position:absolute;top:-4px;right:-8px;
  background:var(--fk-red);color:#fff;font-size:9px;font-weight:800;
  min-width:16px;height:16px;border-radius:999px;
  display:flex;align-items:center;justify-content:center;padding:0 4px;
}

/* Sheets */
.sheetOverlay{
  position:fixed;inset:0;background:rgba(0,0,0,.45);z-index:200;
  opacity:0;pointer-events:none;transition:.2s ease;
}
.sheetOverlay.show{opacity:1;pointer-events:auto}
.bottomSheet{
  position:fixed;left:0;right:0;bottom:0;z-index:210;
  background:var(--card);border-radius:20px 20px 0 0;
  max-height:88vh;display:flex;flex-direction:column;
  transform:translateY(105%);transition:transform .25s ease;
  padding-bottom:var(--safe-bottom);
}
.bottomSheet.open{transform:translateY(0)}
.sheetHandle{width:40px;height:4px;background:#d1d5db;border-radius:999px;margin:10px auto 0}
.sheetHeader{
  display:flex;align-items:center;justify-content:space-between;
  padding:12px 16px;border-bottom:1px solid var(--line);
}
.sheetTitle{font-size:17px;font-weight:800}
.sheetClose{
  width:36px;height:36px;border-radius:50%;border:1px solid var(--line);
  background:#fff;font-size:22px;cursor:pointer;
}
.sheetBody{overflow:auto;padding:14px 16px;flex:1}
.sheetFooter{padding:12px 16px;border-top:1px solid var(--line);background:var(--card)}

.cartItem{display:flex;gap:10px;padding:10px 0;border-bottom:1px solid var(--line)}
.cartThumb{width:56px;height:56px;object-fit:contain;background:#fafafa;border-radius:10px}
.cartInfo{flex:1;min-width:0}
.cartName{font-size:14px;font-weight:700}
.cartMeta{font-size:12px;color:var(--muted)}
.cartRow{display:flex;align-items:center;justify-content:space-between;margin-top:8px}
.cartLineTotal{font-size:14px;font-weight:800}
.removeBtn{border:none;background:transparent;color:var(--danger);font-size:12px;font-weight:700;cursor:pointer}
.emptyCart{text-align:center;color:var(--muted);padding:24px}
.cartSummary{display:flex;justify-content:space-between;font-size:15px;font-weight:800;margin:8px 0 12px}
.submitBtn{
  width:100%;padding:14px;border:none;border-radius:10px;
  background:var(--fk-pink);color:#fff;font-size:15px;font-weight:800;cursor:pointer;
}
.submitBtn:disabled{opacity:.6;cursor:not-allowed}
.clearCartBtn{
  width:100%;margin-top:8px;padding:10px;border:1px solid var(--line);
  border-radius:10px;background:#fff;font-weight:700;cursor:pointer;
}

.pdpImage{width:100%;max-height:280px;object-fit:contain;margin:0 auto;background:#fafafa;border-radius:12px}
.pdpName{font-size:18px;font-weight:800;margin:12px 0 6px}
.pdpPrice{font-size:22px;font-weight:800}
.pdpMrp{font-size:14px;color:var(--muted);text-decoration:line-through;margin-left:8px}
.pdpActions{margin-top:16px}
.addBtn{
  min-width:72px;padding:10px 16px;border-radius:8px;border:none;
  background:var(--fk-pink);color:#fff;font-size:14px;font-weight:800;cursor:pointer;
}

.catListBtn{
  width:100%;text-align:left;padding:14px 12px;border:none;border-bottom:1px solid var(--line);
  background:#fff;font-size:15px;font-weight:600;cursor:pointer;
}
.catListBtn.active{background:var(--fk-pink-light);color:var(--fk-pink)}

.toastStack{
  position:fixed;top:12px;left:50%;transform:translateX(-50%);
  z-index:300;display:flex;flex-direction:column;gap:8px;
  width:min(420px,calc(100% - 24px));pointer-events:none;
}
.toast{
  background:#111827;color:#fff;padding:12px 14px;border-radius:12px;
  font-size:13px;font-weight:600;opacity:0;transform:translateY(-8px);transition:.2s ease;
}
.toast.show{opacity:1;transform:translateY(0)}
.toast.success{background:#065f46}
.toast.error{background:#991b1b}

.pageWrap{max-width:720px;margin:0 auto;padding:16px}
.pageHero{
  background:linear-gradient(135deg,#e8f0ff,#fff);
  border:1px solid #c7d7fe;border-radius:var(--radius);padding:18px;margin-bottom:14px;
}
.pageHero h1{margin:0 0 6px;font-size:22px}
.pageHero p{margin:0;color:var(--muted);font-size:14px}
.backLink{display:inline-flex;align-items:center;gap:6px;font-weight:700;color:var(--fk-blue);margin-bottom:12px}

.feedSections.is-hidden{display:none}
.quickPickRow.is-hidden,.offerSplit.is-hidden{display:none}
