/* ⚠️ ADDED by Claude — poori site me sticky/colored top header wale pages
   phone ke status bar (time/signal/battery) ke peeche chhup jaate the ya
   overlap ho jaate the, kyunki page full-screen (viewport-fit=cover) mode
   me safe-area ka hisaab nahi rakhta tha. Yeh ek hi global rule sab jagah
   fix kar deta hai — jahan viewport-fit=cover set hai wahan status bar
   jitni jagah chhod dega, warna (purane pages jaha abhi set nahi hai)
   0px hi rahega, koi extra gap nahi aayega.
*/
/* ⚠️ FIXED by Claude: env(safe-area-inset-top) sirf tab kaam karta hai jab
   browser/WebView isse properly support/report kare. Aapni.shop app ke
   native WebView wrapper (jo is PHP codebase se bahar hai) shaayad ye
   value 0 report kar raha hai, isliye status bar overlap abhi bhi dikh
   raha tha. Ab max() se ek minimum 28px padding hamesha guaranteed hai,
   chahe env() 0 de ya kuch bhi — aur agar kisi device par real safe-area
   isse bhi zyada hai (jaise notch wale phone), to woh bada wala value
   use hoga.
*/
body{padding-top:max(28px, env(safe-area-inset-top));}

/* ============================================
   ApniDukan - Complete UI System
   Inspired by: Meesho-style Mobile Shopping
   Color: Purple #9333ea / Pink #ec4899
   Font: System (DM Sans feel)
============================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary:     #9333ea;
  --primary-dark:#7c3aed;
  --primary-light:#f3e8ff;
  --accent:      #ec4899;
  --green:       #16a34a;
  --green-light: #dcfce7;
  --red:         #ef4444;
  --yellow:      #f59e0b;
  --bg:          #f5f5f5;
  --white:       #ffffff;
  --text:        #111827;
  --text-muted:  #6b7280;
  --border:      #e5e7eb;
  --card-shadow: 0 2px 8px rgba(0,0,0,0.08);
  --radius:      12px;
  --radius-lg:   18px;
  --radius-full: 999px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  padding-bottom: 75px;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; }

/* ============================================
   TOP BAR / HEADER
============================================ */
.topbar {
  background: var(--primary);
  color: #fff;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 3px 14px rgba(147,51,234,0.3);
}

.iconBtn {
  width: 38px; height: 38px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  text-decoration: none;
  font-size: 20px;
  background: rgba(255,255,255,0.15);
  transition: background 0.2s;
}
.iconBtn:hover { background: rgba(255,255,255,0.25); }

.walletBox {
  display: flex; align-items: center; gap: 6px;
  font-weight: 700; font-size: 15px;
  background: rgba(255,255,255,0.18);
  padding: 6px 12px;
  border-radius: var(--radius-full);
}

/* ============================================
   SEARCH BAR
============================================ */
.searchBar, .searchWrap {
  display: flex; align-items: center;
  background: #fff;
  border-radius: var(--radius-full);
  padding: 10px 16px;
  gap: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.12);
}
.searchBar input, .searchWrap input {
  flex: 1; border: none; outline: none;
  font-size: 14px; font-family: inherit;
  color: var(--text);
  background: transparent;
}
.searchBar input::placeholder,
.searchWrap input::placeholder { color: #9ca3af; }
.sIco { font-size: 17px; color: #9ca3af; }

/* Sticky search header row */
.searchRow {
  background: var(--primary);
  padding: 8px 12px 10px;
  display: flex; align-items: center; gap: 10px;
}
.backBtn {
  color: #fff; font-size: 22px;
  text-decoration: none; flex-shrink: 0;
  line-height: 1;
}
.stickyTop { position: sticky; top: 0; z-index: 100; }

/* ============================================
   CART ICON
============================================ */
.cartIcon {
  position: relative;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
  transition: background 0.2s;
}
.cartIcon:hover { background: rgba(255,255,255,0.3); }
.cartIcon .ico { font-size: 20px; }
.cartBadge {
  position: absolute; top: -5px; right: -5px;
  background: #ff2d2d; color: #fff;
  font-size: 11px; min-width: 18px; height: 18px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; border: 2px solid var(--primary);
}

/* ============================================
   SORT / FILTER BAR  (image 1 style)
============================================ */
.sortFilterBar {
  background: #fff;
  display: flex;
  border-bottom: 1px solid var(--border);
  position: sticky; top: 56px; z-index: 90;
}
.sfBtn {
  flex: 1; display: flex; align-items: center; justify-content: center;
  gap: 6px; padding: 11px 8px;
  font-size: 13px; font-weight: 600; color: var(--text);
  border: none; background: none;
  border-right: 1px solid var(--border);
  cursor: pointer; transition: background 0.15s;
}
.sfBtn:last-child { border-right: none; }
.sfBtn:hover { background: #faf5ff; color: var(--primary); }
.sfBtn.active { color: var(--primary); }
.sfBtn svg { width: 14px; height: 14px; }

/* ============================================
   CATEGORY SCROLL ROW (image 1 top)
============================================ */
.catScrollRow {
  background: #fff;
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.catScrollRow::-webkit-scrollbar { display: none; }

.catThumb {
  display: flex; flex-direction: column; align-items: center;
  gap: 5px; padding: 4px 14px;
  min-width: 80px; cursor: pointer;
  text-decoration: none;
  border-right: 1px solid #f0f0f0;
}
.catThumb:last-child { border-right: none; }
.catThumb img {
  width: 54px; height: 54px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
}
.catThumb span {
  font-size: 11px; font-weight: 600; color: var(--text);
  text-align: center; max-width: 70px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.catThumb.active img { border-color: var(--primary); }
.catThumb.active span { color: var(--primary); }

/* ============================================
   OFFER / COUPON BANNER (image 1 green banner)
============================================ */
.offerBanner {
  margin: 10px 12px;
  background: linear-gradient(135deg, #f0fdf4, #dcfce7);
  border: 1.5px dashed var(--green);
  border-radius: var(--radius);
  padding: 10px 14px;
  display: flex; align-items: center; justify-content: space-between;
}
.offerText { font-size: 13px; color: #166534; }
.offerText strong { font-size: 18px; font-weight: 800; color: var(--green); }
.offerApplied {
  display: flex; align-items: center; gap: 5px;
  font-size: 13px; font-weight: 700; color: var(--green);
  background: var(--green); color: #fff;
  padding: 6px 12px; border-radius: var(--radius-full);
}

/* ============================================
   DISCOUNT APPLIED TAG (on product card)
============================================ */
.discountTag {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--green); color: #fff;
  font-size: 11px; font-weight: 700;
  padding: 3px 8px; border-radius: var(--radius-full);
  margin-top: 4px;
}
.specialOffer {
  font-size: 11px; color: var(--green);
  font-weight: 600; margin-top: 2px;
}

/* ============================================
   PRODUCT GRID + CARDS (2-column like Meesho)
============================================ */
.container { padding: 10px 12px; }

.gridProducts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.pCard {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  position: relative;
  display: flex; flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}
.pCard:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.pImg {
  width: 100%; height: 170px;
  object-fit: contain;
  background: #fafafa;
  padding: 8px;
}

/* Wishlist heart on card */
.wishBtn {
  position: absolute; top: 8px; right: 8px;
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,0.9);
  display: flex; align-items: center; justify-content: center;
  border: none; font-size: 16px; cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  transition: transform 0.2s;
  text-decoration: none;
  color: #9ca3af;
}
.wishBtn:hover, .wishBtn.active { color: var(--red); transform: scale(1.15); }

.offTag {
  position: absolute; top: 8px; left: 8px;
  background: var(--red); color: #fff;
  font-size: 10px; font-weight: 800;
  padding: 3px 7px; border-radius: var(--radius-full);
}

.pCardBody { padding: 8px 10px 10px; flex: 1; display: flex; flex-direction: column; }

.pName {
  font-size: 13px; font-weight: 500;
  color: #374151;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
}

.pPrice {
  display: flex; align-items: baseline; gap: 6px;
  margin-top: 6px;
}
.pPrice b { font-size: 15px; font-weight: 800; color: var(--text); }
.pPrice s { font-size: 12px; color: #9ca3af; font-weight: 400; }
.pPrice .offPct { font-size: 11px; color: var(--green); font-weight: 700; }

.starRow {
  display: flex; align-items: center; gap: 4px;
  margin-top: 4px;
}
.starBadge {
  display: inline-flex; align-items: center; gap: 3px;
  background: var(--green); color: #fff;
  font-size: 11px; font-weight: 700;
  padding: 2px 7px; border-radius: var(--radius-full);
}
.starBadge.low { background: var(--yellow); }
.reviewCount { font-size: 11px; color: var(--text-muted); }

.addBtn {
  margin-top: 8px; width: 100%;
  padding: 9px;
  background: var(--primary);
  color: #fff; border: none;
  border-radius: var(--radius);
  font-weight: 700; font-size: 13px;
  font-family: inherit;
  transition: background 0.2s;
}
.addBtn:hover { background: var(--primary-dark); }
.addBtn.outStock { background: #e5e7eb; color: #9ca3af; cursor: not-allowed; }

/* ============================================
   SORT MODAL  (image 4)
============================================ */
.modalOverlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 200;
  display: none; align-items: flex-end;
}
.modalOverlay.open { display: flex; }

.modalSheet {
  background: #fff;
  width: 100%;
  border-radius: 20px 20px 0 0;
  padding-bottom: 16px;
  animation: slideUp 0.25s ease;
  max-height: 90vh; overflow-y: auto;
}
@keyframes slideUp {
  from { transform: translateY(40px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.modalHead {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 16px 12px;
  border-bottom: 1px solid var(--border);
}
.modalTitle {
  font-size: 14px; font-weight: 800; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--text);
}
.modalClose {
  width: 32px; height: 32px;
  border-radius: 50%; border: none;
  background: #f3f4f6; font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}

/* Sort option row */
.sortOption {
  display: flex; align-items: center; justify-content: space-between;
  padding: 15px 16px;
  font-size: 15px; font-weight: 500;
  border-bottom: 1px solid #f9fafb;
  cursor: pointer;
  transition: background 0.15s;
}
.sortOption:hover { background: #faf5ff; }
.sortOption:last-child { border-bottom: none; }

.radioCircle {
  width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.2s;
}
.radioCircle.checked {
  border-color: var(--primary);
  background: var(--primary);
}
.radioCircle.checked::after {
  content: '';
  width: 8px; height: 8px;
  background: #fff; border-radius: 50%;
}

/* ============================================
   FILTER MODAL  (image 2 — two-panel)
============================================ */
.filterModal {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 200;
  display: none;
}
.filterModal.open { display: block; }

.filterSheet {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: #fff;
  border-radius: 20px 20px 0 0;
  height: 88vh;
  display: flex; flex-direction: column;
  animation: slideUp 0.25s ease;
}

.filterHead {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px; border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.filterHead .modalTitle { color: var(--text); }

.filterBody {
  display: flex; flex: 1; overflow: hidden;
}

/* Left sidebar tabs */
.filterTabs {
  width: 110px; background: #f9fafb;
  overflow-y: auto; flex-shrink: 0;
  border-right: 1px solid var(--border);
}
.filterTab {
  padding: 15px 12px;
  font-size: 13px; font-weight: 500; color: var(--text-muted);
  cursor: pointer; border-left: 3px solid transparent;
  transition: all 0.15s;
  border-bottom: 1px solid #f0f0f0;
}
.filterTab.active {
  background: #fff;
  color: var(--primary);
  font-weight: 700;
  border-left-color: var(--primary);
}

/* Right panel content */
.filterPanel {
  flex: 1; overflow-y: auto; padding: 12px;
}
.filterPanelTitle {
  font-size: 15px; font-weight: 700; margin-bottom: 12px;
}

/* Filter search input */
.filterSearch {
  display: flex; align-items: center;
  background: #f3f4f6; border-radius: var(--radius);
  padding: 9px 12px; gap: 8px; margin-bottom: 14px;
}
.filterSearch input {
  flex: 1; border: none; background: none; outline: none;
  font-size: 14px; font-family: inherit;
}
.filterSearch .sIco { color: #9ca3af; font-size: 16px; }

/* Checkbox option */
.checkOption {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 4px;
  border-bottom: 1px solid #f9fafb;
  cursor: pointer;
}
.checkOption:last-child { border-bottom: none; }
.checkBox {
  width: 22px; height: 22px; border-radius: 5px;
  border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: all 0.15s;
}
.checkBox.checked { background: var(--primary); border-color: var(--primary); }
.checkBox.checked::after {
  content: '✓'; color: #fff; font-size: 13px; font-weight: 800;
}
.checkLabel { font-size: 14px; font-weight: 500; }

/* Gender grid (image 5) */
.genderGrid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 10px; padding: 8px 0;
}
.genderItem {
  display: flex; flex-direction: column; align-items: center;
  gap: 8px; cursor: pointer;
}
.genderAvatar {
  width: 62px; height: 62px; border-radius: 50%;
  object-fit: cover; border: 3px solid transparent;
  transition: border-color 0.2s;
}
.genderItem.active .genderAvatar { border-color: var(--primary); }
.genderItem span { font-size: 12px; font-weight: 600; color: var(--text); }

/* Filter footer */
.filterFoot {
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  background: #fff; flex-shrink: 0;
}
.filterCount { font-size: 14px; font-weight: 600; color: var(--text-muted); }
.filterDone {
  background: var(--primary); color: #fff;
  border: none; border-radius: var(--radius);
  padding: 12px 32px; font-size: 15px; font-weight: 700;
  font-family: inherit; cursor: pointer;
  transition: background 0.2s;
}
.filterDone:hover { background: var(--primary-dark); }

/* ============================================
   CATEGORY CHIPS / PILL FILTER BAR
============================================ */
.filterBar {
  display: flex; gap: 8px; padding: 10px 12px;
  overflow-x: auto; scrollbar-width: none;
  background: #fff; border-bottom: 1px solid var(--border);
}
.filterBar::-webkit-scrollbar { display: none; }

.filterChip {
  white-space: nowrap; padding: 7px 14px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--border);
  background: #fff; color: #374151;
  font-size: 13px; font-weight: 600;
  text-decoration: none; transition: all 0.15s;
  cursor: pointer;
}
.filterChip:hover { border-color: var(--primary); color: var(--primary); }
.filterChip.active {
  background: var(--primary); color: #fff; border-color: var(--primary);
}

/* ============================================
   PAGE HEADER (back button style)
============================================ */
.pageHeader {
  background: var(--primary); color: #fff;
  padding: 14px 14px;
  display: flex; align-items: center; gap: 12px;
  font-size: 17px; font-weight: 700;
  position: sticky; top: 0; z-index: 90;
  box-shadow: 0 2px 10px rgba(147,51,234,0.25);
}
.pageHeader a { color: #fff; text-decoration: none; font-size: 22px; line-height: 1; }
.pageHeader .badge {
  margin-left: auto;
  background: rgba(255,255,255,0.2);
  font-size: 12px; padding: 3px 10px;
  border-radius: var(--radius-full);
}

/* ============================================
   SECTION TITLE
============================================ */
.sectionTitle {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 12px 8px;
}
.sectionTitle h2 { font-size: 17px; font-weight: 800; }
.btnSmall {
  color: var(--primary); font-size: 13px; font-weight: 700;
  text-decoration: none; padding: 6px 12px;
  border: 1.5px solid var(--primary); border-radius: var(--radius-full);
}

/* ============================================
   BANNER (homepage promo)
============================================ */
.banner {
  margin: 10px 12px; border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--card-shadow);
}
.banner img { width: 100%; }

/* ============================================
   CATEGORY GRID (3-col grid on homepage)
============================================ */
.gridCats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px; padding: 0 12px;
}
.catCard {
  background: #fff; border-radius: var(--radius);
  padding: 14px 10px; text-align: center;
  box-shadow: var(--card-shadow);
  text-decoration: none; color: var(--text);
  transition: transform 0.2s, box-shadow 0.2s;
}
.catCard:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}
.catCard img {
  width: 60px; height: 60px;
  object-fit: contain; margin: 0 auto 8px;
  border-radius: 10px;
}
.catCard b { font-size: 12px; font-weight: 600; display: block; }

/* ============================================
   BOTTOM NAV  (Meesho-style 5-tab)
============================================ */
.bottomNav {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: #fff;
  display: flex; justify-content: space-around;
  padding: 8px 0 10px;
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 16px rgba(0,0,0,0.07);
  z-index: 100;
}
.navItem {
  display: flex; flex-direction: column; align-items: center;
  gap: 3px; text-decoration: none;
  color: var(--text-muted); font-size: 11px; font-weight: 600;
  flex: 1; padding: 2px 0;
  transition: color 0.15s;
}
.navItem .ico {
  font-size: 22px; display: block;
  transition: transform 0.2s;
}
.navItem:hover { color: var(--primary); }
.navItem:hover .ico { transform: scale(1.1); }
.navItem.active { color: var(--primary); }

/* ============================================
   FORM ELEMENTS
============================================ */
.formGroup { margin-bottom: 14px; }
.formGroup label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 5px; }
.formInput, .formSelect, .formTextarea {
  width: 100%; padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius); font-size: 14px;
  font-family: inherit; color: var(--text);
  background: #fff; outline: none;
  transition: border-color 0.2s;
}
.formInput:focus, .formSelect:focus { border-color: var(--primary); }
.formTextarea { resize: vertical; min-height: 90px; }

.btnPrimary {
  width: 100%; padding: 14px;
  background: var(--primary); color: #fff;
  border: none; border-radius: var(--radius);
  font-size: 16px; font-weight: 700;
  font-family: inherit; cursor: pointer;
  transition: background 0.2s; letter-spacing: 0.02em;
}
.btnPrimary:hover { background: var(--primary-dark); }

.btnOutline {
  width: 100%; padding: 13px;
  background: transparent; color: var(--primary);
  border: 2px solid var(--primary); border-radius: var(--radius);
  font-size: 15px; font-weight: 700;
  font-family: inherit; cursor: pointer;
  transition: all 0.2s;
}
.btnOutline:hover { background: var(--primary-light); }

/* ============================================
   CARDS (orders, wallet, etc.)
============================================ */
.card {
  background: #fff; border-radius: var(--radius-lg);
  padding: 14px; margin-bottom: 10px;
  box-shadow: var(--card-shadow);
}

/* ============================================
   BADGE / STATUS PILLS
============================================ */
.badge {
  display: inline-flex; align-items: center;
  padding: 3px 10px; border-radius: var(--radius-full);
  font-size: 11px; font-weight: 700;
}
.badge-green  { background: var(--green-light); color: var(--green); }
.badge-red    { background: #fee2e2; color: var(--red); }
.badge-yellow { background: #fef3c7; color: #92400e; }
.badge-purple { background: var(--primary-light); color: var(--primary); }

/* ============================================
   EMPTY STATE
============================================ */
.emptyBox {
  background: #fff; border-radius: var(--radius-lg);
  padding: 40px 20px; text-align: center;
  color: var(--text-muted); box-shadow: var(--card-shadow);
  margin: 16px;
}
.emptyBox .emptyIco { font-size: 52px; margin-bottom: 12px; }
.emptyBox h3 { font-size: 17px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.emptyBox p { font-size: 13px; margin-bottom: 16px; }

/* ============================================
   TOAST NOTIFICATION
============================================ */
.toast {
  position: fixed; bottom: 80px; left: 50%; transform: translateX(-50%);
  background: #1f2937; color: #fff;
  padding: 10px 20px; border-radius: var(--radius-full);
  font-size: 13px; font-weight: 600;
  z-index: 300; white-space: nowrap;
  animation: toastIn 0.3s ease, toastOut 0.3s ease 2.5s forwards;
  pointer-events: none;
}
@keyframes toastIn  { from { opacity:0; transform: translateX(-50%) translateY(10px); } to { opacity:1; transform: translateX(-50%) translateY(0); } }
@keyframes toastOut { from { opacity:1; } to { opacity:0; } }

/* ============================================
   LOCATION BAR
============================================ */
.locBar {
  background: #6b21a8;
  padding: 7px 14px;
  display: flex; align-items: center; gap: 8px;
}
.locBar a {
  display: flex; align-items: center; gap: 6px;
  text-decoration: none; flex: 1;
}
.locPin { font-size: 18px; }
.locText { flex: 1; }
.locMain { font-size: 13px; font-weight: 800; color: #fff; display: flex; align-items: center; gap: 4px; }
.locMain .arrow { font-size: 10px; color: rgba(255,255,255,.7); }
.locSub { font-size: 11px; color: rgba(255,255,255,.65); }
.locAdd { font-size: 13px; font-weight: 700; color: #d8b4fe; text-decoration: underline; }

/* ============================================
   CART ITEM
============================================ */
.cartItem {
  background: #fff; border-radius: var(--radius);
  padding: 12px; margin-bottom: 8px;
  display: flex; gap: 12px; align-items: center;
  box-shadow: var(--card-shadow);
}
.cartImg {
  width: 70px; height: 70px; border-radius: 10px;
  object-fit: contain; background: #fafafa;
  flex-shrink: 0;
}
.qtyRow { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.qtyBtn {
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--primary-light); border: none;
  font-size: 16px; font-weight: 700; color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.qtyNum { font-size: 15px; font-weight: 800; }

/* ============================================
   COUNT CHIPS
============================================ */
.count { font-size: 13px; color: var(--text-muted); padding: 6px 12px 4px; }

/* ============================================
   ADMIN / SELLER SIDEBAR OVERRIDE
============================================ */
.sellerHeader, .adminHeader {
  background: var(--primary); color: #fff;
  padding: 14px; font-weight: 700;
}

/* ============================================
   UTILITY
============================================ */
.mt4  { margin-top: 4px; }
.mt8  { margin-top: 8px; }
.mt12 { margin-top: 12px; }
.mt16 { margin-top: 16px; }
.p12  { padding: 12px; }
.p16  { padding: 16px; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap8 { gap: 8px; }
.gap12 { gap: 12px; }
.bold { font-weight: 700; }
.text-muted { color: var(--text-muted); }
.text-green { color: var(--green); }
.text-red   { color: var(--red); }
.text-primary { color: var(--primary); }
.text-center { text-align: center; }
.w100 { width: 100%; }
.rounded { border-radius: var(--radius); }
.hidden { display: none !important; }

/* Safe area for phones */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .bottomNav { padding-bottom: calc(10px + env(safe-area-inset-bottom)); }
  body { padding-bottom: calc(75px + env(safe-area-inset-bottom)); }
}

/* ⚠️ ADDED by Claude — "Coming Soon" overlay badge, Blinkit-style:
   image ke center me semi-transparent dark box, white bold text,
   rounded corners — top-left corner ka chhota tag nahi. Product image
   wrapper ko position:relative rakhna zaroori hai isse kaam karne ke liye. */
.comingSoonWrap { position: relative; display: block; }
.comingSoonBadge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(30,30,30,0.62);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  line-height: 1.3;
  text-align: center;
  padding: 8px 14px;
  border-radius: 10px;
  white-space: normal;
  max-width: 85%;
  z-index: 2;
  pointer-events: none;
}
