/* ============================================================
   MINZO — Ultra-Premium Professional Quick-Commerce Theme
   Matches Salonap App Design System & Color Palette
   Primary Green (#0B9B34) + Accent Orange (#FF6D00)
   ============================================================ */

/* ── DESIGN TOKENS ── */
:root {
  /* Surface & Canvas */
  --bg:              #F8FAFC;
  --surface:         #FFFFFF;
  --surface-2:       #F1F5F9;
  --surface-3:       #E2E8F0;
  --card:            #FFFFFF;
  --card-hover:      #FFFFFF;

  /* Typography Colors */
  --text:            #212121;
  --text-dark:       #1A3C34;
  --text-mid:        #334155;
  --text-muted:      #64748B;
  --text-light:      #94A3B8;

  /* Borders & Dividers */
  --border:          #E2E8F0;
  --border-light:    #F1F5F9;
  --glass-border:    rgba(0, 0, 0, 0.06);
  --glass-bg:        rgba(255, 255, 255, 0.95);
  --nav-bg:          rgba(255, 255, 255, 0.98);
  --bnav-bg:         rgba(255, 255, 255, 0.98);

  /* Primary Quick-Commerce Green (Salonap Palette) */
  --green:           #0B9B34;
  --green-dark:      #05611F;
  --green-light:     #11D147;
  --green-subtle:    #E8F5E9;
  --green-border:    #A5D6A7;

  /* Accent Orange (Salonap Palette) */
  --accent:          #FF6D00;
  --accent-dark:     #E65100;
  --accent-light:    #FF9E40;
  --accent-subtle:   #FFF3E0;
  --accent-border:   #FFE0B2;

  /* Functional Status Colors */
  --red:             #EF5350;
  --red-dark:        #C62828;
  --red-subtle:      #FFEBEE;
  --red-border:      #FFCDD2;

  --purple:          #7C3AED;
  --purple-subtle:   #FAF5FF;
  --purple-border:   #E9D5FF;
  --gold:            #FFC107;
  --gold-subtle:     #FFFBEB;
  --gold-border:     #FDE68A;
  --orange:          #FF6D00;

  /* Elevation & Shadows */
  --shadow-xs:       0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-sm:       0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03);
  --shadow-md:       0 4px 14px rgba(0, 0, 0, 0.06), 0 2px 4px rgba(0, 0, 0, 0.03);
  --shadow-lg:       0 10px 28px rgba(0, 0, 0, 0.08), 0 4px 10px rgba(0, 0, 0, 0.03);
  --shadow-green:    0 4px 14px rgba(11, 155, 52, 0.25);
  --shadow-accent:   0 4px 14px rgba(255, 109, 0, 0.25);
  --shadow-glow:     0 4px 16px rgba(11, 155, 52, 0.2);

  /* Radii */
  --radius-xs:       4px;
  --radius-sm:       8px;
  --radius:          12px;
  --radius-lg:       16px;
  --radius-xl:       22px;
  --radius-full:     9999px;

  /* Transitions */
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition:      0.22s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.35s cubic-bezier(0.4, 0, 0.2, 1);

  /* Layout Dimensions */
  --promo-h:         30px;
  --nav-h:           114px;
  --bnav-h:          64px;
  --max-w:           1240px;
}

/* ── RESET & BASE ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-size: 15px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Custom Scrollbars */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-light); }

/* ── TOP PROMO TICKER ── */
.top-promo-bar {
  background: var(--green-subtle);
  border-bottom: 1px solid var(--green-border);
  height: var(--promo-h);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--green-dark);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  overflow: hidden;
  padding: 0 12px;
}

.promo-ticker-content {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ticker-dot {
  color: var(--green-light);
  font-size: 14px;
}

/* ── MAIN NAVBAR ── */
.nav {
  position: fixed;
  top: var(--promo-h);
  left: 0;
  right: 0;
  z-index: 55;
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo img {
  height: 30px;
  width: auto;
  object-fit: contain;
  border-radius: 6px;
}

.nav-logo-wrap {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.nav-logo-text {
  font-size: 1.3rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--green);
  line-height: 1;
}

.nav-logo-sub {
  font-size: 7px;
  font-weight: 900;
  color: var(--accent);
  letter-spacing: 0.04em;
  margin-top: 1px;
  white-space: nowrap;
}

/* Location & Delivery ETA Pill */
.nav-location {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 4px 8px;
  cursor: pointer;
  text-align: left;
  flex: 1;
  min-width: 0;
  max-width: 220px;
  transition: var(--transition);
}

.nav-location:hover {
  background: var(--surface-3);
  border-color: var(--text-light);
}

.nav-location-eta {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--green);
  color: #fff;
  padding: 2px 6px;
  border-radius: var(--radius-xs);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.02em;
  white-space: nowrap;
  flex-shrink: 0;
}

.eta-pulse {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #fff;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

.nav-location-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.loc-label-title {
  font-size: 8px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1;
}

.loc-label-addr {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}

.loc-label-addr span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.loc-label-addr svg {
  color: var(--text-muted);
  flex-shrink: 0;
}

/* Nav Actions (Hidden on mobile since Bottom Nav provides Cart and Account tabs) */
.nav-actions {
  display: none;
}

.nav-download-btn,
.nav-explore-btn,
.nav-search {
  display: none;
}

/* Mobile Search Row */
.mobile-search-row {
  max-width: var(--max-w);
  width: 100%;
  margin: 6px auto 0;
}

.mobile-search {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--surface-2);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 0 10px;
  transition: var(--transition);
}

.mobile-search:focus-within {
  background: #FFFFFF;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(11, 155, 52, 0.12);
}

.mobile-search .search-icon {
  color: var(--text-light);
  display: flex;
  align-items: center;
  margin-right: 6px;
}

.mobile-search input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-family: inherit;
  font-size: 13px;
  color: var(--text);
  padding: 7px 0;
}

.mobile-search-btn {
  background: var(--green);
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius-full);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-xs);
  transition: var(--transition);
  flex-shrink: 0;
  margin-left: 6px;
}

.mobile-search-btn:hover {
  background: var(--green-dark);
}

/* Desktop Category Navigation Strip */
.category-strip {
  display: none;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  max-width: var(--max-w);
  width: 100%;
  margin: 8px auto 0;
  padding-top: 6px;
  border-top: 1px solid var(--border-light);
}

.cat-strip-chip {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-mid);
  white-space: nowrap;
  cursor: pointer;
  transition: var(--transition);
}

.cat-strip-chip:hover,
.cat-strip-chip.active {
  background: var(--green-subtle);
  border-color: var(--green-border);
  color: var(--green-dark);
}

/* ── MAIN CONTENT CONTAINER ── */
.main {
  padding-top: calc(var(--promo-h) + var(--nav-h) + 16px);
  padding-bottom: calc(var(--bnav-h) + 100px);
  max-width: var(--max-w);
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}

.view {
  display: none;
}

.view.active {
  display: block;
  animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── CATEGORY VISUAL STORY BUBBLES ── */
.cat-bubbles-container {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 8px 2px 14px;
  margin-bottom: 4px;
}

.cat-bubble {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  width: 72px;
  flex-shrink: 0;
  transition: transform var(--transition);
}

.cat-bubble:hover {
  transform: translateY(-3px);
}

.cat-bubble-img-wrap {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: 6px;
  position: relative;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.cat-bubble:hover .cat-bubble-img-wrap {
  border-color: var(--green);
  box-shadow: var(--shadow-md);
}

.cat-bubble-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cat-bubble-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
  max-height: 28px;
  overflow: hidden;
}

/* ── HOME ACTION PORTAL CARDS (Categories & Get App) ── */
.home-portal-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  margin: 10px 0 18px;
}

.portal-card {
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  position: relative;
  overflow: hidden;
}

.portal-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.portal-category:hover {
  border-color: var(--green);
}

.portal-app:hover {
  border-color: var(--accent);
}

.portal-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform var(--transition);
}

.portal-card:hover .portal-icon-wrap {
  transform: scale(1.08);
}

.cat-portal-icon {
  background: var(--green-subtle);
  color: var(--green);
  border: 1px solid var(--green-border);
}

.app-portal-icon {
  background: var(--accent-subtle);
  color: var(--accent);
  border: 1px solid var(--accent-border);
}

.portal-info {
  flex: 1;
  min-width: 0;
}

.portal-badge {
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  display: inline-block;
  margin-bottom: 4px;
  line-height: 1.2;
}

.green-badge {
  background: var(--green-subtle);
  color: var(--green-dark);
  border: 1px solid var(--green-border);
}

.red-badge {
  background: var(--accent-subtle);
  color: var(--accent-dark);
  border: 1px solid var(--accent-border);
}

.portal-title {
  font-size: 14px;
  font-weight: 900;
  color: var(--text);
  line-height: 1.2;
}

.portal-desc {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ── SERVICE STATUS & LIVE TRACK ORDER ── */
.service-banner {
  padding: 10px 14px;
  border-radius: var(--radius-lg);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-xs);
}

.service-banner.success {
  background: var(--green-subtle);
  border: 1px solid var(--green-border);
  color: var(--green-dark);
}

.service-banner.warn {
  background: var(--gold-subtle);
  border: 1px solid var(--gold-border);
  color: var(--gold);
}

.service-banner.error {
  background: var(--red-subtle);
  border: 1px solid var(--red-border);
  color: var(--red);
}

/* ── FEATURE TRUST BADGES ── */
.feature-badges {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
  margin: 14px 0 22px;
  padding: 2px 0;
}

.feature-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 7px 16px;
  font-size: 12px;
  font-weight: 800;
  color: var(--text-mid);
  white-space: nowrap;
  box-shadow: var(--shadow-xs);
  flex-shrink: 0;
}

/* ── PRODUCT SECTIONS & SCROLL ── */
.product-section {
  margin-bottom: 28px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding: 0 4px;
}

.section-title {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--text);
  letter-spacing: -0.02em;
}

.section-see-all {
  font-size: 13px;
  font-weight: 800;
  color: var(--green);
  text-decoration: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: var(--transition);
}

.section-see-all:hover {
  color: var(--green-dark);
  transform: translateX(2px);
}

.product-scroll {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 4px 2px 14px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 16px;
  padding: 6px 2px;
}

/* ── PRODUCT CARD (Modern Quick-Commerce Style) ── */
.p-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  width: 170px;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  position: relative;
  cursor: pointer;
}

.p-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--text-light);
}

.p-card__img-wrap {
  width: 100%;
  height: 150px;
  background: #FAFAFA;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.p-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
  transition: transform var(--transition);
}

.p-card:hover .p-card__img-wrap img {
  transform: scale(1.06);
}

/* Delivery ETA Tag on Card */
.p-card__eta {
  position: absolute;
  top: 6px;
  left: 6px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(4px);
  border: 1px solid var(--border);
  color: var(--text-mid);
  font-size: 9px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  gap: 3px;
  z-index: 2;
}

.p-card__heart {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(4px);
  border: 1px solid var(--border);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  transition: var(--transition);
  z-index: 2;
}

.p-card__heart:hover,
.p-card__heart.active {
  background: #FFFFFF;
  color: var(--red);
  border-color: var(--red-border);
  transform: scale(1.15);
}

.p-card__disc {
  position: absolute;
  bottom: 6px;
  left: 6px;
  background: var(--green);
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 900;
  padding: 2px 7px;
  border-radius: var(--radius-xs);
  box-shadow: var(--shadow-xs);
  z-index: 2;
}

.p-card__body {
  padding: 10px 12px 12px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.p-card__name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
  height: 35px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.p-card__sub {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.p-card__rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 800;
  margin: 6px 0 2px;
}

.p-card__rating .star-icon {
  color: #F59E0B;
}

.p-card__rating .rating-count {
  color: var(--text-light);
  font-size: 10px;
  font-weight: 600;
}

.p-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--border-light);
}

.p-card__prices {
  display: flex;
  flex-direction: column;
}

.p-card__price {
  font-size: 15px;
  font-weight: 900;
  color: var(--text);
  letter-spacing: -0.02em;
}

.p-card__mrp {
  font-size: 11px;
  color: var(--text-light);
  text-decoration: line-through;
}

.p-card__variant-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 2px 8px;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--text-mid);
  cursor: pointer;
  margin-top: 3px;
  width: fit-content;
  max-width: 100%;
  transition: var(--transition);
}

.p-card__variant-chip:hover {
  background: var(--green-subtle);
  border-color: var(--green);
  color: var(--green-dark);
}

/* Button & Steppers */
.add-btn {
  background: var(--green-subtle);
  color: var(--green-dark);
  border: 1.5px solid var(--green);
  border-radius: var(--radius-sm);
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  transition: var(--transition);
}

.add-btn.has-variants {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 11px;
}

.add-btn:hover {
  background: var(--green);
  color: #FFFFFF;
}

.out-btn {
  background: var(--surface-3);
  color: var(--text-light);
  border: none;
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 700;
  cursor: not-allowed;
}

.qty-ctrl {
  display: flex;
  align-items: center;
  background: var(--green);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
}

.qty-btn {
  background: none;
  border: none;
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 900;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition);
}

.qty-btn:hover {
  background: rgba(0, 0, 0, 0.15);
}

.qty-num {
  font-size: 12px;
  font-weight: 900;
  color: #FFFFFF;
  padding: 0 4px;
  min-width: 20px;
  text-align: center;
}

/* ── UNIFIED FLOATING ACTION BAR (SPLIT TRACK ORDER / CART) ── */
.floating-bottom-bar {
  position: fixed;
  bottom: calc(var(--bnav-h) + 12px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 45;
  width: calc(100% - 24px);
  max-width: 520px;
  animation: slideUpFloat 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: auto;
}

@keyframes slideUpFloat {
  from { opacity: 0; transform: translate(-50%, 20px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}

/* Split Mode (Track Order + Cart) */
.fbb-split-container {
  display: flex;
  align-items: stretch;
  gap: 8px;
  width: 100%;
}

.fbb-track-half {
  flex: 1;
  background: linear-gradient(135deg, #111827 0%, #1f2937 100%);
  color: #FFFFFF;
  border-radius: var(--radius-xl);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: var(--transition);
  min-width: 0;
}

.fbb-track-half:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.fbb-cart-half {
  flex: 1;
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  color: #FFFFFF;
  border-radius: var(--radius-xl);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  box-shadow: var(--shadow-green);
  transition: var(--transition);
  min-width: 0;
}

.fbb-cart-half:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(11, 155, 52, 0.45);
}

/* Full Mode (Full Track Order or Full Cart) */
.fbb-full-container {
  width: 100%;
  border-radius: var(--radius-xl);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: var(--transition);
}

.fbb-full-container.track-mode {
  background: linear-gradient(135deg, #111827 0%, #1f2937 100%);
  color: #FFFFFF;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.fbb-full-container.cart-mode {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  color: #FFFFFF;
  box-shadow: var(--shadow-green);
}

.fbb-full-container:hover {
  transform: translateY(-2px);
}

/* Common internal items */
.fbb-icon-wrap {
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.fbb-pulse-dot {
  position: absolute;
  top: 1px;
  right: 1px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: fbbPulse 1.8s infinite;
}

@keyframes fbbPulse {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { box-shadow: 0 0 0 7px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.fbb-text-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.fbb-label {
  font-size: 10px;
  font-weight: 700;
  opacity: 0.85;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fbb-title {
  font-size: 13px;
  font-weight: 900;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fbb-arrow-btn {
  background: rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius-full);
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.fbb-full-btn {
  background: #FFFFFF;
  color: var(--green-dark);
  border: none;
  border-radius: var(--radius-full);
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 900;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.fbb-full-container.track-mode .fbb-full-btn {
  color: #111827;
}

/* ── PROMO SCHEMES (A & B) ── */
.promo-section-wrap {
  border-radius: var(--radius-xl);
  padding: 18px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.promo-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  color: #fff;
}

.promo-section-title {
  font-size: 1.2rem;
  font-weight: 900;
}

.promo-progress-wrap {
  background: rgba(255, 255, 255, 0.25);
  border-radius: 99px;
  height: 6px;
  overflow: hidden;
  margin-bottom: 14px;
}

.promo-progress-fill {
  background: #FFFFFF;
  height: 100%;
  border-radius: 99px;
  transition: width 0.3s ease;
}

/* ── CART VIEW ── */
.cart-view {
  max-width: 660px;
  margin: 0 auto;
  padding-bottom: 90px;
}

.cart-page-title {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--text);
  margin-bottom: 16px;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 12px;
  margin-bottom: 10px;
  box-shadow: var(--shadow-sm);
}

.cart-item-img {
  width: 64px;
  height: 64px;
  background: #FAFAFA;
  border-radius: var(--radius);
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-item-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
}

.cart-item-info {
  flex: 1;
  min-width: 0;
}

.cart-item-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cart-item-sub {
  font-size: 11px;
  color: var(--text-muted);
  margin: 2px 0;
}

.cart-item-price {
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
}

.cart-item-qty {
  display: flex;
  align-items: center;
  background: var(--green);
  border-radius: var(--radius-sm);
}

.qb {
  background: none;
  border: none;
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  width: 28px;
  height: 28px;
  cursor: pointer;
}

.qb:hover {
  background: rgba(0, 0, 0, 0.15);
}

.qn {
  font-size: 12px;
  font-weight: 900;
  color: #fff;
  padding: 0 6px;
}

.cart-summary {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 18px;
  margin-top: 18px;
  box-shadow: var(--shadow-sm);
}

.cart-summary-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-mid);
  margin-bottom: 8px;
}

.summary-row.savings {
  color: var(--green);
  font-weight: 800;
}

.summary-row.total {
  font-size: 16px;
  font-weight: 900;
  color: var(--text);
  border-top: 1px dashed var(--border);
  padding-top: 12px;
  margin-top: 10px;
}

.coupon-apply-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--purple-subtle);
  border: 1.5px dashed var(--purple);
  color: var(--purple);
  border-radius: var(--radius-lg);
  padding: 13px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  margin-top: 14px;
  transition: var(--transition);
}

.coupon-apply-btn:hover {
  background: #F3E8FF;
  transform: translateY(-1px);
}

.coupon-apply-btn.applied {
  background: var(--green-subtle);
  border-color: var(--green);
  color: var(--green-dark);
}

.checkout-btn {
  width: 100%;
  background: var(--green);
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius-lg);
  padding: 15px;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
  margin-top: 14px;
  box-shadow: var(--shadow-green);
  transition: var(--transition);
}

.checkout-btn:hover {
  background: var(--green-dark);
  transform: translateY(-1px);
}

.checkout-btn:disabled {
  background: var(--border);
  color: var(--text-light);
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.free-del-bar {
  width: 100%;
  height: 6px;
  background: var(--border);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 4px;
}

.free-del-bar-fill {
  height: 100%;
  background: var(--green);
  border-radius: 99px;
  transition: width 0.3s ease;
}

.free-del-hint {
  font-size: 11px;
  color: var(--text-muted);
  text-align: right;
  margin-bottom: 12px;
}

/* Empty states */
.cart-empty,
.favourites-empty {
  text-align: center;
  padding: 60px 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
}

.empty-emoji {
  font-size: 3.2rem;
  margin-bottom: 12px;
}

.cart-empty h3,
.favourites-empty h3 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 6px;
}

.cart-empty p,
.favourites-empty p {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.btn-red {
  background: var(--green);
  color: #fff;
  border: none;
  border-radius: var(--radius-lg);
  padding: 11px 24px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: var(--transition);
}

.btn-red:hover {
  background: var(--green-dark);
}

.btn-ghost {
  background: var(--surface-2);
  color: var(--text-mid);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.btn-ghost:hover {
  background: var(--surface-3);
}

/* ── WALLET VIEW ── */
.wallet-view {
  max-width: 600px;
  margin: 0 auto;
  padding-bottom: 80px;
}

.wallet-header-card {
  background: linear-gradient(135deg, #0B9B34 0%, #11D147 100%);
  color: #FFFFFF;
  border-radius: var(--radius-xl);
  padding: 24px;
  margin: 14px 0 20px;
  box-shadow: var(--shadow-green);
  position: relative;
  overflow: hidden;
}

.wallet-header-card::after {
  content: '💳';
  position: absolute;
  right: -10px;
  bottom: -15px;
  font-size: 110px;
  opacity: 0.15;
}

.wallet-balance-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.9;
  margin-bottom: 6px;
}

.wallet-balance-amount {
  font-size: 2.5rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.wallet-balance-sub {
  font-size: 12px;
  opacity: 0.85;
  margin-top: 4px;
}

.wallet-add-btn {
  background: #FFFFFF;
  color: var(--green-dark);
  border: none;
  border-radius: var(--radius-full);
  padding: 8px 20px;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  margin-top: 16px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.wallet-add-btn:hover {
  background: #F0FDF4;
  transform: translateY(-1px);
}

.wallet-tx-section {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}

.wallet-tx-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.wallet-tx-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
}

.wallet-tx-item:last-child {
  border-bottom: none;
}

.wallet-tx-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.wallet-tx-icon.credit {
  background: var(--green-subtle);
  color: var(--green);
}

.wallet-tx-icon.debit {
  background: var(--red-subtle);
  color: var(--red);
}

.wallet-tx-info {
  flex: 1;
  min-width: 0;
}

.wallet-tx-desc {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.wallet-tx-date {
  font-size: 11px;
  color: var(--text-muted);
}

.wallet-tx-amt {
  font-size: 14px;
  font-weight: 900;
}

.wallet-tx-amt.credit { color: var(--green); }
.wallet-tx-amt.debit  { color: var(--red); }

/* ── PROFILE VIEW ── */
.profile-view {
  max-width: 600px;
  margin: 0 auto;
  padding-bottom: 80px;
}

.profile-avatar {
  width: 70px;
  height: 70px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #0B9B34, #11D147);
  color: #fff;
  font-size: 26px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-green);
}

.profile-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: 14px;
}

.profile-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 18px;
  border-bottom: 1px solid var(--border-light);
  cursor: pointer;
  transition: var(--transition);
}

.profile-row:last-child {
  border-bottom: none;
}

.profile-row:hover {
  background: var(--surface-2);
}

.profile-row-icon {
  font-size: 18px;
  width: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-row-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  flex: 1;
}

.profile-row-chevron {
  font-size: 18px;
  color: var(--text-light);
  font-weight: 700;
}

/* ── EXPLORE VIEW (Main Explore & Inner Explore) ── */
.main-explore-container,
.inner-explore-container,
.inner-explore-products-area {
  padding-bottom: 120px;
}

.explore-header-strip {
  margin-bottom: 14px;
}

.explore-page-title {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--text);
  line-height: 1.2;
}

.explore-page-sub {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
}

.explore-layout {
  display: flex;
  gap: 14px;
  height: calc(100vh - var(--nav-h) - var(--promo-h) - var(--bnav-h) - 40px);
  min-height: 520px;
}

.explore-sidebar {
  width: 86px;
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xl);
  overflow-y: auto;
  padding: 8px 4px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: var(--shadow-sm);
}

.sidebar-cat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 4px;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.sidebar-cat:hover {
  background: var(--surface-2);
}

.sidebar-cat.active {
  background: var(--green-subtle);
  border: 1.5px solid var(--green);
  box-shadow: 0 2px 8px rgba(11, 155, 52, 0.15);
}

.sidebar-cat-img {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--surface-2);
  overflow: hidden;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
}

.sidebar-cat-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sidebar-cat-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-mid);
  line-height: 1.2;
}

.sidebar-cat.active .sidebar-cat-label {
  color: var(--green-dark);
  font-weight: 900;
}

.explore-products-pane {
  flex: 1;
  overflow-y: auto;
  padding-right: 4px;
}

.explore-group-section {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}

.explore-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-light);
}

.explore-group-title {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--text);
}

.explore-group-count {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 700;
  margin-left: 6px;
}

.explore-view-all-btn {
  background: var(--green-subtle);
  color: var(--green-dark);
  border: 1px solid var(--green-border);
  border-radius: var(--radius-full);
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: var(--transition);
}

.explore-view-all-btn:hover {
  background: var(--green);
  color: #FFFFFF;
}

.explore-subcat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: 10px;
}

.explore-subcat-card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 10px 6px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.explore-subcat-card:hover {
  transform: translateY(-2px);
  border-color: var(--green);
  box-shadow: var(--shadow-sm);
  background: var(--green-subtle);
}

.explore-subcat-img-wrap {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 1.5px solid var(--border);
  margin: 0 auto 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  transition: var(--transition);
}

.explore-subcat-card:hover .explore-subcat-img-wrap {
  border-color: var(--green);
}

.explore-subcat-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.explore-subcat-name {
  font-size: 11px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
  height: 28px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* ── INNER EXPLORE VIEW ── */
.inner-explore-topbar {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
  padding: 4px 0;
}

.inner-back-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--surface-2);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-full);
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 800;
  color: var(--text-mid);
  cursor: pointer;
  transition: var(--transition);
}

.inner-back-btn:hover {
  background: var(--green-subtle);
  border-color: var(--green);
  color: var(--green-dark);
  transform: translateX(-2px);
}

.inner-explore-title-wrap {
  display: flex;
  flex-direction: column;
}

.inner-explore-title {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--text);
  line-height: 1.1;
}

.inner-explore-count {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 700;
}

.inner-subcat-ribbon {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 4px 2px 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border-light);
}

.inner-subcat-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-full);
  padding: 6px 16px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-mid);
  white-space: nowrap;
  cursor: pointer;
  transition: var(--transition);
}

.inner-subcat-chip:hover {
  background: var(--surface-2);
  border-color: var(--text-light);
}

.inner-subcat-chip.active {
  background: var(--green);
  border-color: var(--green);
  color: #FFFFFF;
  font-weight: 800;
  box-shadow: var(--shadow-green);
}

.inner-chip-img {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
}

.inner-empty-state {
  text-align: center;
  padding: 60px 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
}

/* ── ORDERS VIEW & RESPONSIVE RECENT ORDERS ── */
.orders-view {
  max-width: 800px;
  margin: 0 auto;
  padding-bottom: 120px;
}

.orders-header {
  margin-bottom: 20px;
}

.orders-title {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--text);
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}

.orders-filter-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 4px;
}

.orders-filter-row::-webkit-scrollbar {
  display: none;
}

.orders-filter-btn {
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-full);
  padding: 7px 18px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-mid);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.orders-filter-btn:hover {
  background: var(--surface-2);
  border-color: var(--text-light);
}

.orders-filter-btn.active {
  background: var(--green);
  border-color: var(--green);
  color: #FFFFFF;
  box-shadow: var(--shadow-green);
  font-weight: 800;
}

.order-card {
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-2xl);
  padding: 18px 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.order-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
}

.order-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  gap: 12px;
  flex-wrap: wrap;
}

.order-card-id {
  display: flex;
  align-items: center;
  gap: 12px;
}

.order-icon-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  background: var(--surface-2);
}

.order-icon-circle.delivered { background: #E8F8EE; color: var(--green-dark); }
.order-icon-circle.active { background: #FEF3C7; color: #D97706; }
.order-icon-circle.cancelled { background: #FEE2E2; color: #DC2626; }

.order-number {
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
}

.order-date {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
}

.order-status-badge {
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.order-status-badge.delivered {
  background: #E8F8EE;
  color: var(--green-dark);
  border: 1px solid rgba(11, 155, 52, 0.2);
}

.order-status-badge.active,
.order-status-badge.placed,
.order-status-badge.packing,
.order-status-badge.ready,
.order-status-badge.outfordelivery {
  background: #FEF3C7;
  color: #B45309;
  border: 1px solid rgba(217, 119, 6, 0.25);
}

.order-status-badge.cancelled {
  background: #FEE2E2;
  color: #DC2626;
  border: 1px solid rgba(220, 38, 38, 0.2);
}

.order-items-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.order-item-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-mid);
  max-width: 100%;
}

.order-item-thumb {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  object-fit: contain;
  background: #FFFFFF;
}

.order-item-thumb-placeholder {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  background: var(--surface-3);
}

.order-item-more {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: var(--radius-lg);
  background: var(--surface-3);
  font-size: 11px;
  font-weight: 800;
  color: var(--text-muted);
}

.order-address {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 14px;
  display: flex;
  align-items: flex-start;
  gap: 6px;
  line-height: 1.4;
}

.order-charges-section {
  background: var(--surface-2);
  border-radius: var(--radius-lg);
  padding: 12px 14px;
  margin-bottom: 14px;
  border: 1px solid var(--border);
}

.order-charge-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 6px;
  font-weight: 600;
}

.order-charge-row.wallet { color: var(--green-dark); font-weight: 700; }
.order-charge-row.coupon { color: var(--green-dark); font-weight: 700; }

.order-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
  padding-top: 8px;
  border-top: 1px dashed var(--border);
  margin-top: 4px;
}

.order-total-amount {
  font-size: 15px;
  font-weight: 900;
  color: var(--text);
}

.order-card-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.order-pay-badge {
  font-size: 11px;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  background: var(--surface-3);
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.order-track-btn {
  background: var(--green);
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius-full);
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-green);
}

.order-track-btn:hover {
  background: var(--green-dark);
  transform: translateY(-1px);
}

.order-detail-btn {
  background: var(--surface-2);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-full);
  padding: 7px 16px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  transition: var(--transition);
}

.order-detail-btn:hover {
  background: var(--surface-3);
  border-color: var(--text-light);
}

/* ── WALLET & ADD MONEY MODAL ── */
.wallet-view {
  max-width: 600px;
  margin: 0 auto;
  padding-bottom: 120px;
}

.wallet-header-card {
  background: linear-gradient(135deg, #0B9B34 0%, #065F20 100%);
  color: #FFFFFF;
  border-radius: var(--radius-2xl);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 10px 30px rgba(11, 155, 52, 0.3);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.wallet-header-card::after {
  content: '';
  position: absolute;
  right: -20px;
  bottom: -20px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  pointer-events: none;
}

.wallet-balance-label {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.9;
  margin-bottom: 6px;
}

.wallet-balance-amount {
  font-size: 2.4rem;
  font-weight: 900;
  margin-bottom: 4px;
  letter-spacing: -0.03em;
}

.wallet-balance-sub {
  font-size: 12px;
  opacity: 0.85;
  margin-bottom: 18px;
}

.wallet-add-btn {
  background: #FFFFFF;
  color: var(--green-dark);
  font-weight: 900;
  font-size: 14px;
  border: none;
  border-radius: var(--radius-full);
  padding: 10px 26px;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.wallet-add-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.wallet-tx-section {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.wallet-tx-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 16px;
}

.wallet-tx-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
}

.wallet-tx-item:last-child {
  border-bottom: none;
}

.wallet-tx-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.wallet-tx-icon.credit { background: #E8F8EE; color: var(--green-dark); }
.wallet-tx-icon.debit { background: #FEE2E2; color: #DC2626; }

.wallet-tx-info {
  flex: 1;
  min-width: 0;
}

.wallet-tx-desc {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wallet-tx-date {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.wallet-tx-amt {
  font-size: 14px;
  font-weight: 800;
}

.wallet-tx-amt.credit { color: var(--green-dark); }
.wallet-tx-amt.debit { color: #DC2626; }

/* Add Money Modal / Sheet */
.add-money-modal-body {
  padding: 24px;
}

.add-money-presets {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 14px 0 20px;
}

.preset-chip {
  flex: 1;
  min-width: 70px;
  padding: 10px 14px;
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--border);
  background: var(--surface-2);
  font-size: 13px;
  font-weight: 800;
  color: var(--text);
  cursor: pointer;
  text-align: center;
  transition: var(--transition);
}

.preset-chip:hover {
  border-color: var(--green);
  background: #E8F8EE;
  color: var(--green-dark);
}

.preset-chip.active {
  border-color: var(--green);
  background: #E8F8EE;
  color: var(--green-dark);
  box-shadow: 0 0 0 2px rgba(11, 155, 52, 0.2);
}

/* ── ORDER DETAILS MODAL ── */
#rating-modal-overlay.open {
  display: flex !important;
  align-items: center;
  justify-content: center;
}

#rating-modal-inner {
  position: relative;
  background: var(--card);
  border-radius: var(--radius-2xl);
  padding: 24px;
  width: 90%;
  max-width: 480px;
  max-height: 88vh;
  overflow-y: auto;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xl);
}

.rating-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}

.rating-modal-close:hover {
  background: var(--surface-3);
  color: var(--text);
}

.detail-order-id {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--text);
  margin-bottom: 2px;
}

.detail-date {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 12px;
}

.detail-status-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.detail-section-label {
  font-size: 11px;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 16px 0 8px;
}

.detail-items-list {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 8px 14px;
}

.detail-item-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-light);
}

.detail-item-row:last-child {
  border-bottom: none;
}

.detail-item-img {
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  object-fit: contain;
  background: #FFFFFF;
}

.detail-item-info {
  flex: 1;
  min-width: 0;
}

.detail-item-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.detail-item-qty {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.detail-item-price {
  font-size: 13px;
  font-weight: 800;
  color: var(--text);
}

.detail-address {
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.4;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 10px 14px;
}

/* ── BOTTOM NAV (Mobile) ── */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: var(--bnav-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.04);
  height: var(--bnav-h);
  padding: 0 8px;
}

.bnav-inner {
  display: flex;
  align-items: center;
  justify-content: space-around;
  height: 100%;
  max-width: 500px;
  margin: 0 auto;
}

.bnav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  position: relative;
  padding: 4px 12px;
  transition: var(--transition);
}

.bnav-item svg {
  width: 22px;
  height: 22px;
  transition: transform var(--transition);
}

.bnav-item.active {
  color: var(--green);
}

.bnav-item.active svg {
  transform: translateY(-2px);
}

.b-badge {
  position: absolute;
  top: 0;
  right: 8px;
  background: var(--accent);
  color: #FFFFFF;
  font-size: 9px;
  font-weight: 900;
  border-radius: var(--radius-full);
  padding: 1px 5px;
}

/* ── MODALS & SHEETS ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-overlay.open {
  display: flex;
  animation: fadeIn 0.2s ease-out;
}

.modal-content,
.auth-modal,
.download-modal,
.variant-modal-sheet {
  background: var(--card);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  max-width: 440px;
  width: 100%;
  position: relative;
  padding: 20px 24px 24px;
  animation: scaleUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.variant-modal-sheet {
  max-width: 460px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
}

.variant-sheet-handle {
  display: none;
}

.variant-sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
}

.variant-sheet-product-info {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.variant-sheet-thumb {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.variant-sheet-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.variant-sheet-meta {
  min-width: 0;
}

.variant-sheet-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.variant-sheet-subtitle {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  font-size: 11px;
}

.variant-sheet-eta {
  background: var(--green-subtle);
  color: var(--green-dark);
  font-weight: 800;
  font-size: 9.5px;
  padding: 2px 6px;
  border-radius: var(--radius-full);
}

.variant-sheet-cat {
  color: var(--text-muted);
  font-weight: 600;
}

.variant-sheet-close {
  background: var(--surface-2);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  font-size: 14px;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  flex-shrink: 0;
}

.variant-sheet-close:hover {
  background: var(--surface-3);
  color: var(--text);
}

.variant-sheet-body {
  overflow-y: auto;
  padding-right: 2px;
}

.variant-sheet-section-title {
  font-size: 11px;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.variant-options-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.variant-row-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 12px 16px;
  transition: var(--transition);
}

.variant-row-card:hover {
  border-color: var(--green);
  background: #FFFFFF;
  box-shadow: 0 4px 12px rgba(11, 155, 52, 0.08);
}

.variant-row-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.variant-row-thumb {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: #FAFAFA;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.variant-row-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 2px;
}

.variant-row-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.variant-row-unit {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--text);
}

.variant-row-pricing {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 2px;
}

.variant-row-price {
  font-size: 15px;
  font-weight: 900;
  color: var(--green-dark);
}

.variant-row-mrp {
  font-size: 12px;
  color: var(--text-light);
  text-decoration: line-through;
}

.variant-row-disc {
  font-size: 10.5px;
  font-weight: 800;
  color: var(--red);
  background: var(--red-subtle);
  padding: 1px 6px;
  border-radius: 4px;
}

@keyframes scaleUp {
  from { opacity: 0; transform: scale(0.95); }
  to   { opacity: 1; transform: scale(1); }
}

.auth-close,
.download-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  color: var(--text-muted);
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  z-index: 5;
}

.auth-close:hover,
.download-close:hover {
  background: var(--red-subtle);
  color: var(--red);
  border-color: var(--red);
}

.download-modal {
  background: #FFFFFF;
  border-radius: var(--radius-2xl);
  border: 1px solid var(--border);
  border-top: 4px solid var(--green);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.14);
  max-width: 400px;
  width: 100%;
  position: relative;
  padding: 28px 24px 24px;
  text-align: center;
  animation: scaleUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.download-modal-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #E8F8EE;
  border: 2px solid rgba(11, 155, 52, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin: 0 auto 14px;
  box-shadow: 0 4px 12px rgba(11, 155, 52, 0.12);
}

.download-modal-title {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--text);
  margin-bottom: 6px;
  font-family: 'Outfit', sans-serif;
  letter-spacing: -0.01em;
}

.download-modal-sub {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 18px;
}

.pwa-install-action-btn {
  width: 100%;
  background: linear-gradient(135deg, #0B9B34, #11D147);
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius-xl);
  padding: 13px 20px;
  font-size: 15px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(11, 155, 52, 0.3);
  transition: var(--transition);
  margin-bottom: 12px;
}

.pwa-install-action-btn:hover {
  background: var(--green-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(11, 155, 52, 0.4);
}

.ios-install-guide {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 12px 14px;
  text-align: left;
  margin-bottom: 14px;
}

.ios-step {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.ios-step:last-child {
  margin-bottom: 0;
}

.ios-step-num {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--green);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Floating PWA Install Banner at Bottom */
.pwa-install-banner {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 480px;
  background: #FFFFFF;
  border: 1.5px solid var(--green-border);
  border-radius: var(--radius-2xl);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 10px 32px rgba(11, 155, 52, 0.2), 0 2px 8px rgba(0, 0, 0, 0.08);
  z-index: 95;
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (min-width: 901px) {
  .pwa-install-banner {
    bottom: 24px;
    right: 24px;
    left: auto;
    transform: none;
    max-width: 380px;
  }
}

.pwa-banner-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.pwa-banner-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  object-fit: contain;
  box-shadow: var(--shadow-xs);
  flex-shrink: 0;
}

.pwa-banner-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.pwa-banner-title {
  font-size: 13px;
  font-weight: 900;
  color: var(--text);
  line-height: 1.2;
}

.pwa-banner-sub {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pwa-banner-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.pwa-banner-btn {
  background: var(--green);
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius-full);
  padding: 7px 16px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: var(--shadow-green);
  transition: var(--transition);
}

.pwa-banner-btn:hover {
  background: var(--green-dark);
  transform: scale(1.04);
}

.pwa-banner-close {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-muted);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  cursor: pointer;
  transition: var(--transition);
}

.pwa-banner-close:hover {
  background: var(--surface-3);
  color: var(--text);
}

.download-badges {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
  margin-bottom: 14px;
}

.store-badge-btn {
  background: #FFFFFF;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 8px 12px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  box-shadow: var(--shadow-sm);
}

.store-badge-btn:hover {
  border-color: var(--green);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(11, 155, 52, 0.15);
}

.store-badge-btn img {
  height: 28px;
  width: auto;
  display: block;
}

.live-soon-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #E8F8EE;
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 800;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  margin: 4px auto 16px;
  border: 1px solid rgba(11, 155, 52, 0.25);
}

.continue-web-btn {
  width: 100%;
  height: 48px;
  background: var(--green);
  color: #FFFFFF;
  font-weight: 900;
  font-size: 15px;
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-green);
  display: flex;
  align-items: center;
  justify-content: center;
}

.continue-web-btn:hover {
  background: var(--green-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(11, 155, 52, 0.4);
}

/* ── Location & Confirm Map Theme Styling ── */
.map-container-wrapper {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: calc(100% - 56px);
}

.map-view-block {
  position: relative;
  flex: 1;
  width: 100%;
  min-height: 240px;
}

.map-div {
  width: 100%;
  height: 100%;
  min-height: 240px;
  background: #f1f5f9;
}

.map-search-wrapper {
  position: absolute;
  top: 12px;
  left: 14px;
  right: 14px;
  z-index: 10;
  display: flex;
  align-items: center;
  background: #FFFFFF;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  border: 1.5px solid var(--border);
  padding: 4px 14px;
  transition: var(--transition);
}

.map-search-wrapper:focus-within {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(11, 155, 52, 0.15);
}

.map-search-icon-fixed {
  font-size: 14px;
  margin-right: 6px;
}

.map-search-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 8px 4px;
  font-size: 13px;
  color: var(--text);
  background: transparent;
  font-family: inherit;
}

.map-gps-btn {
  position: absolute;
  right: 14px;
  bottom: 16px;
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 1.5px solid var(--border);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  transition: var(--transition);
}

.map-gps-btn:hover {
  border-color: var(--green);
  background: #E8F8EE;
  transform: scale(1.06);
}

/* ── EXACT FIXED CENTER MAP PIN ── */
.map-center-pin-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -100%);
  pointer-events: none;
  z-index: 25;
  display: flex;
  flex-direction: column;
  align-items: center;
  user-select: none;
}

.pin-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.25));
}

.pin-head {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, #EF4444 0%, #B91C1C 100%);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(239, 68, 68, 0.45);
  border: 2.5px solid #FFFFFF;
}

.pin-inner {
  transform: rotate(45deg);
  width: 14px;
  height: 14px;
  background: #FFFFFF;
  border-radius: 50%;
}

.pin-shadow {
  width: 16px;
  height: 6px;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 50%;
  margin-top: 2px;
  filter: blur(1px);
}

/* ── LIVE ORDER TRACKING MODAL ── */
.tracking-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 999;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: fadeIn 0.25s ease-out;
}

.tracking-modal-overlay.open {
  display: flex !important;
}

.tracking-modal-content {
  background: #f8fafc;
  border-radius: 20px;
  width: 100%;
  max-width: 1100px;
  height: 86vh;
  max-height: 850px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border);
  animation: slideUpFloat 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.tracking-modal-header {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  flex-shrink: 0;
  z-index: 10;
}

.tracking-modal-back,
.tracking-modal-close-icon {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}

.tracking-modal-back:hover,
.tracking-modal-close-icon:hover {
  background: var(--surface-3);
  color: var(--text);
  transform: scale(1.05);
}

.tracking-modal-title {
  font-size: 17px;
  font-weight: 900;
  font-family: 'Outfit', sans-serif;
  color: var(--text);
  margin: 0;
  line-height: 1.2;
}

.tracking-modal-subtitle {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
}

.tracking-modal-body {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 0;
  position: relative;
}

/* ════════════════════════════════════════════════════════════════════════════
   LIVE ORDER TRACKING 2-COLUMN SPLIT (Matching Salonap)
════════════════════════════════════════════════════════════════════════════ */
.tow-split-view {
  display: flex;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.tow-map-column {
  flex: 1.2;
  position: relative;
  height: 100%;
  background: #e2e8f0;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}

.tow-data-column {
  flex: 1;
  height: 100%;
  overflow-y: auto;
  padding: 16px 20px 40px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: #f8fafc;
}

/* Map area */
.tow-map-area {
  width: 100%;
  height: 100%;
  min-height: 280px;
  position: relative;
  background: #e2e8f0;
}

/* Floating Live ETA Banner Pill on Map */
.tow-floating-eta-pill {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 1000;
  background: linear-gradient(135deg, rgba(11, 155, 52, 0.94) 0%, rgba(4, 120, 87, 0.98) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #ffffff;
  padding: 8px 18px;
  border-radius: 30px;
  font-size: 13.5px;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 8px 24px rgba(11, 155, 52, 0.4);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  letter-spacing: 0.2px;
}

.tow-eta-pulse-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 10px #4ade80;
  animation: pulse 1.4s infinite;
}

/* Live ETA & Distance Theme Stats Card in Right Data Column */
.tow-eta-stats-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
}

.tow-eta-stat-box {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition);
}

.tow-eta-stat-box:hover {
  transform: translateY(-1px);
}

.tow-eta-stat-box.eta-box {
  background: linear-gradient(135deg, rgba(11, 155, 52, 0.08) 0%, rgba(16, 185, 129, 0.03) 100%);
  border-color: rgba(11, 155, 52, 0.25);
}

.tow-eta-stat-box.dist-box {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08) 0%, rgba(59, 130, 246, 0.03) 100%);
  border-color: rgba(37, 99, 235, 0.25);
}

.tow-eta-stat-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.eta-box .tow-eta-stat-icon {
  background: #dcfce7;
  color: #047857;
}

.dist-box .tow-eta-stat-icon {
  background: #dbeafe;
  color: #1d4ed8;
}

.tow-eta-stat-info {
  min-width: 0;
  flex: 1;
}

.tow-eta-stat-label {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tow-eta-stat-val {
  font-size: 16px;
  font-weight: 900;
  font-family: 'Outfit', sans-serif;
  color: var(--text);
  margin-top: 1px;
}

.eta-box .tow-eta-stat-val {
  color: #047857;
}

.dist-box .tow-eta-stat-val {
  color: #1d4ed8;
}

.tow-recenter-btn {
  position: absolute;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  background: #ffffff;
  color: var(--text);
  border: 1px solid var(--border);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.tow-recenter-btn:hover {
  background: var(--surface-2);
  transform: scale(1.08);
}

/* ── Cards on the Right Data Column ── */
.tow-data-card {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
  padding: 16px;
}

.tow-card-heading {
  font-size: 14px;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
  color: var(--text);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Status Header Card */
.tow-status-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.tow-order-num-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.tow-order-num {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
}

.tow-copy-btn {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 11px;
  color: var(--text-mid);
  cursor: pointer;
}

.tow-status-headline {
  font-size: 18px;
  font-weight: 900;
  font-family: 'Outfit', sans-serif;
  color: var(--text);
  margin-top: 2px;
}

.tow-status-pill {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 800;
  text-transform: capitalize;
}

.tow-status-pill.placed { background: #eff6ff; color: #2563eb; border: 1px solid #bfdbfe; }
.tow-status-pill.packing { background: #fef3c7; color: #d97706; border: 1px solid #fde68a; }
.tow-status-pill.ready { background: #f3e8ff; color: #7c3aed; border: 1px solid #e9d5ff; }
.tow-status-pill.onway { background: #d1fae5; color: #059669; border: 1px solid #a7f3d0; }
.tow-status-pill.delivered { background: #dcfce7; color: #047857; border: 1px solid #86efac; }

/* Delivery OTP Security Card */
.tow-otp-card {
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border-radius: 16px;
  padding: 16px;
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.tow-otp-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.tow-otp-icon {
  font-size: 24px;
}

.tow-otp-title {
  font-size: 14px;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
}

.tow-otp-desc {
  font-size: 11px;
  opacity: 0.8;
}

.tow-otp-boxes {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px dashed rgba(255, 255, 255, 0.25);
  border-radius: 12px;
  padding: 12px;
  cursor: pointer;
  transition: var(--transition);
}

.tow-otp-boxes:hover {
  background: rgba(255, 255, 255, 0.14);
}

.tow-otp-digit {
  width: 38px;
  height: 44px;
  background: #ffffff;
  color: #0f172a;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 900;
  font-family: 'Outfit', sans-serif;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.tow-otp-copy-btn {
  margin-left: 10px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.2);
  padding: 6px 12px;
  border-radius: 20px;
}

/* Driver Partner Card */
.tow-driver-card {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid var(--border);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.tow-driver-avatar-wrap {
  position: relative;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.tow-driver-initial-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(135deg, #0B9B34 0%, #047857 100%);
  color: #ffffff;
  font-size: 20px;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(11, 155, 52, 0.35);
  border: 2px solid #ffffff;
}

.tow-driver-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--green);
}

.tow-driver-online-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--green);
  border: 2px solid #fff;
}

.tow-driver-meta {
  flex: 1;
  min-width: 0;
}

.tow-driver-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tow-driver-name {
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
}

.tow-driver-rating-pill {
  font-size: 11px;
  font-weight: 800;
  background: #fef3c7;
  color: #b45309;
  padding: 2px 6px;
  border-radius: 12px;
}

.tow-driver-subtext {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.tow-call-driver-btn {
  background: var(--green);
  color: #ffffff;
  border-radius: 24px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(11, 155, 52, 0.25);
  transition: var(--transition);
  flex-shrink: 0;
}

.tow-call-driver-btn:hover {
  background: var(--green-dark);
  transform: scale(1.04);
}

/* Timeline Steps */
.tow-timeline-steps {
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  padding-left: 6px;
}

.tow-timeline-step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  position: relative;
}

.tow-timeline-step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 13px;
  top: 28px;
  bottom: -10px;
  width: 2px;
  background: var(--border);
}

.tow-timeline-step.done:not(:last-child)::after {
  background: var(--green);
}

.tow-timeline-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f1f5f9;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  color: var(--text-muted);
  z-index: 2;
  flex-shrink: 0;
}

.tow-timeline-step.done .tow-timeline-icon {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

.tow-timeline-step.active .tow-timeline-icon {
  background: #fff;
  border-color: var(--green);
  color: var(--green);
  box-shadow: 0 0 0 4px rgba(11, 155, 52, 0.2);
}

.tow-timeline-info {
  flex: 1;
}

.tow-timeline-name {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
}

.tow-timeline-desc {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 1px;
}

/* Items List */
.tow-items-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tow-item-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 0;
}

.tow-item-row:not(:last-child) {
  border-bottom: 1px dashed var(--border-light);
}

.tow-item-img {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  background: #f8fafc;
  border: 1px solid var(--border-light);
}

.tow-item-info {
  flex: 1;
  min-width: 0;
}

.tow-item-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.tow-item-qty {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 2px;
}

.tow-item-pricing {
  text-align: right;
}

.tow-item-mrp {
  font-size: 11px;
  color: #94a3b8;
  text-decoration: line-through;
  display: block;
}

.tow-item-price {
  font-size: 13px;
  font-weight: 800;
  color: var(--text);
}

/* Bill Breakdown */
.tow-bill-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
}

.tow-bill-row {
  display: flex;
  justify-content: space-between;
  color: var(--text-mid);
}

.tow-bill-row.tow-green-text {
  color: var(--green);
  font-weight: 700;
}

.tow-bill-divider {
  height: 1px;
  background: var(--border);
  margin: 4px 0;
}

.tow-bill-row.tow-grand-total {
  font-size: 15px;
  font-weight: 900;
  color: var(--text);
}

.tow-bill-payment-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 12px;
  color: var(--text-muted);
}

.tow-pay-status-badge {
  background: #e2e8f0;
  color: #475569;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 10.5px;
  font-weight: 800;
}

.tow-pay-status-badge.paid {
  background: #dcfce7;
  color: #047857;
}

/* Action Buttons */
.tow-actions-row {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}

.tow-action-btn {
  flex: 1;
  padding: 12px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: var(--transition);
}

.tow-action-btn.secondary {
  background: #ffffff;
  border: 1px solid var(--border);
  color: var(--text);
}

.tow-action-btn.secondary:hover {
  background: var(--surface-2);
}

.tow-action-btn.primary {
  background: var(--green);
  border: none;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(11, 155, 52, 0.2);
}

.tow-action-btn.primary:hover {
  background: var(--green-dark);
  transform: translateY(-1px);
}

/* Marker image styling */
.tow-marker-img-icon,
.tow-leaflet-custom-marker {
  background: transparent !important;
  border: none !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tow-leaflet-custom-marker:hover {
  transform: translateY(-4px) scale(1.08);
}

/* Mobile Adjustments */
@media (max-width: 860px) {
  .tracking-modal-content {
    max-width: 580px;
    height: 92vh;
    max-height: 92vh;
  }

  .tow-split-view {
    flex-direction: column;
    overflow-y: auto;
  }

  .tow-map-column {
    height: 280px;
    min-height: 280px;
    flex: none;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .tow-data-column {
    height: auto;
    overflow-y: visible;
    flex: none;
    padding: 14px;
  }
}

/* Footer & Actions */
.tow-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 4px;
}

.tow-footer-left {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--green);
}

.tow-footer-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  animation: pulseDot 1.5s infinite;
}

.tow-view-btn {
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 800;
  color: var(--text);
  cursor: pointer;
  transition: var(--transition);
}

.tow-view-btn:hover {
  background: var(--surface-3);
}

.tow-view-btn.highlight-btn {
  background: var(--green);
  color: #FFFFFF;
  border-color: var(--green);
}

.map-details-card {
  background: #FFFFFF;
  border-top: 1px solid var(--border);
  padding: 16px 20px 18px;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.06);
  z-index: 10;
}

.map-details-card-header {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.map-details-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #E8F8EE;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.map-details-card-title {
  font-size: 11px;
  font-weight: 800;
  color: var(--green-dark);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}

.map-details-card-address {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
  max-height: 36px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

#location-confirm-btn,
#addr-save-btn {
  background: var(--green) !important;
  color: #FFFFFF !important;
  font-weight: 900 !important;
  border: none !important;
  border-radius: var(--radius-lg) !important;
  box-shadow: var(--shadow-green) !important;
  transition: var(--transition) !important;
}

#location-confirm-btn:hover,
#addr-save-btn:hover {
  background: var(--green-dark) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 20px rgba(11, 155, 52, 0.35) !important;
}

.tag-chips-wrapper {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.tag-chip {
  padding: 8px 14px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--border);
  background: var(--surface-2);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-mid);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 4px;
}

.tag-chip.active {
  border-color: var(--green);
  background: #E8F8EE;
  color: var(--green-dark);
  font-weight: 800;
}

/* ── Location Modal & Address Form Scrolling ── */
#location-modal .modal-content {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 90vh;
  max-height: 680px;
}

#loc-screen-list,
#loc-screen-map {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.address-form-overlay {
  position: absolute;
  inset: 0;
  background: var(--card);
  z-index: 25;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.address-form-overlay.open {
  transform: translateY(0);
}

.address-form-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card);
  flex-shrink: 0;
}

.address-form-body {
  padding: 20px;
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--bg);
}

.phone-row {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.phone-prefix {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  font-weight: 800;
  color: var(--text);
  font-size: 14px;
  display: flex;
  align-items: center;
}

.auth-input {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  outline: none;
  margin-bottom: 12px;
  transition: var(--transition);
}

.auth-input:focus {
  background: #FFFFFF;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(11, 155, 52, 0.15);
}

.auth-btn {
  width: 100%;
  background: var(--green);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 13px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: var(--transition);
}

.auth-btn:hover {
  background: var(--green-dark);
}

.otp-inputs {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 16px;
}

.otp-input {
  width: 44px;
  height: 50px;
  text-align: center;
  font-size: 18px;
  font-weight: 900;
  background: var(--surface-2);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  outline: none;
}

.otp-input:focus {
  border-color: var(--green);
  background: #fff;
}

.auth-divider {
  text-align: center;
  font-size: 11px;
  color: var(--text-light);
  margin: 16px 0;
  position: relative;
}

.google-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  transition: var(--transition);
}

.google-btn:hover {
  background: var(--surface-2);
}

.google-btn img {
  width: 18px;
  height: 18px;
}

/* ── PRODUCT MODAL ── */
/* ── PRODUCT MODAL (BIGGER 2-COLUMN SPLIT LAYOUT) ── */
.product-modal {
  background: var(--card);
  border-radius: var(--radius-2xl);
  border: 1px solid var(--border);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.22);
  max-width: 960px;
  width: 94vw;
  max-height: 88vh;
  position: relative;
  animation: scaleUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.pm-split-container {
  display: grid;
  grid-template-columns: 420px 1fr;
  height: 100%;
  max-height: 88vh;
  overflow: hidden;
}

.pm-left-col {
  background: #F8FAFC;
  border-right: 1px solid var(--border);
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  overflow-y: auto;
}

.pm-hero-img-wrap {
  width: 100%;
  height: 340px;
  min-height: 260px;
  background: #FFFFFF;
  border-radius: var(--radius-xl);
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  position: relative;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.pm-hero-img-wrap img {
  width: 100%;
  height: 100%;
  max-height: 310px;
  object-fit: contain;
  display: block;
  transition: transform 0.3s ease;
}

.pm-hero-img-wrap:hover img {
  transform: scale(1.04);
}

.pm-hero-disc {
  position: absolute;
  top: 12px;
  right: 12px;
  bottom: auto !important;
  left: auto !important;
  background: var(--green);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 900;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 8px rgba(11, 155, 52, 0.3);
  z-index: 5;
  pointer-events: none;
  display: inline-block;
  width: auto !important;
  height: auto !important;
}

.pm-gallery-strip {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 4px 2px;
}

.pm-gallery-thumb {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-md);
  background: #FFFFFF;
  border: 1.5px solid var(--border);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
}

.pm-gallery-thumb:hover {
  border-color: var(--text-mid);
}

.pm-gallery-thumb.active {
  border-color: var(--green);
  box-shadow: 0 0 0 2px rgba(11, 155, 52, 0.2);
}

.pm-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.pm-right-col {
  padding: 24px 28px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.pm-right-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.pm-close-btn {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-full);
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 15px;
  transition: var(--transition);
  flex-shrink: 0;
}

.pm-close-btn:hover {
  background: var(--surface-3);
  color: var(--red);
}

.pm-heart {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--border);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  box-shadow: var(--shadow-sm);
  z-index: 2;
  transition: var(--transition);
}

.pm-heart:hover {
  transform: scale(1.1);
}

.pm-heart.active {
  color: var(--red);
  border-color: var(--red-border);
}

.pm-cat {
  font-size: 11px;
  font-weight: 800;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pm-name {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--text);
  margin: 4px 0;
  line-height: 1.3;
}

.pm-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.pm-rating-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
}

.pm-star.filled { color: #F59E0B; }
.pm-star.empty  { color: var(--border); }

.pm-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 14px;
}

.pm-price {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--text);
}

.pm-mrp {
  font-size: 14px;
  color: var(--text-light);
  text-decoration: line-through;
}

.pm-disc {
  background: var(--accent-subtle);
  color: var(--accent-dark);
  font-size: 11px;
  font-weight: 900;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.pm-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.pm-eta-badge {
  background: var(--green-subtle);
  color: var(--green-dark);
  font-size: 10px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.pm-variant-selector-wrap {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 12px 14px;
  margin: 12px 0 16px;
}

.pm-variant-selector-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}

.pm-selected-variant-name {
  color: var(--green-dark);
  font-weight: 900;
  text-transform: none;
}

.pm-variant-chips-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pm-unit-chip {
  background: #FFFFFF;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-full);
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 800;
  color: var(--text-mid);
  cursor: pointer;
  transition: var(--transition);
}

.pm-unit-chip:hover {
  border-color: var(--green);
  color: var(--green-dark);
}

.pm-unit-chip.active {
  background: var(--green-subtle);
  border-color: var(--green);
  color: var(--green-dark);
  box-shadow: 0 0 0 2px rgba(11, 155, 52, 0.2);
}

.pm-shade-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #FFFFFF;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-full);
  padding: 4px 12px 4px 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-mid);
  cursor: pointer;
  transition: var(--transition);
}

.pm-shade-chip:hover {
  border-color: var(--text);
}

.pm-shade-chip.active {
  border-color: var(--green);
  background: var(--green-subtle);
  color: var(--green-dark);
  font-weight: 900;
  box-shadow: 0 0 0 2px rgba(11, 155, 52, 0.25);
}

.pm-shade-color-circle {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid #FFFFFF;
  box-shadow: 0 1px 4px rgba(0,0,0,0.25);
  flex-shrink: 0;
}

.pm-shade-color-circle.mini {
  width: 16px;
  height: 16px;
}

.variant-row-unit-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.variant-row-card.selected-highlight {
  border-color: var(--green);
  background: var(--green-subtle);
  box-shadow: 0 2px 8px rgba(11, 155, 52, 0.15);
}

.pm-desc-title {
  font-size: 12px;
  font-weight: 800;
  color: var(--text-mid);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 14px;
  margin-bottom: 4px;
}

.pm-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

.pm-bottom-action-bar {
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
}

.pm-add-btn {
  width: 100%;
  background: var(--green);
  color: #fff;
  border: none;
  border-radius: var(--radius-lg);
  padding: 13px;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: var(--shadow-green);
  transition: var(--transition);
}

.pm-add-btn:hover {
  background: var(--green-dark);
}

.pm-add-btn.disabled {
  background: var(--border);
  color: var(--text-muted);
  cursor: not-allowed;
  box-shadow: none;
}

.pm-qty-row {
  display: flex;
  gap: 12px;
  align-items: center;
}

.pm-qty-action-btn {
  flex: 1;
  background: var(--surface-2);
  border: 1.5px solid var(--border);
  color: var(--text);
  border-radius: var(--radius-lg);
  padding: 12px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: var(--transition);
}

.pm-qty-action-btn:hover {
  background: var(--red-subtle);
  border-color: var(--red);
  color: var(--red);
}

.pm-qty-action-btn.inc {
  background: var(--green);
  color: #FFFFFF;
  border-color: var(--green);
  box-shadow: var(--shadow-green);
}

.pm-qty-action-btn.inc:hover {
  background: var(--green-dark);
}

.pm-qty-display {
  font-size: 15px;
  font-weight: 900;
  color: var(--green-dark);
  min-width: 90px;
  text-align: center;
}

/* ── PAYMENT BOTTOM SHEET ── */
.pay-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.pay-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
  animation: fadeIn 0.2s ease-out;
}

.pay-sheet {
  position: relative;
  background: var(--card);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  border: 1px solid var(--border);
  border-bottom: none;
  box-shadow: var(--shadow-lg);
  max-width: 540px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 16px 20px 24px;
  animation: slideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1;
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}

.pay-handle {
  width: 38px;
  height: 4px;
  background: var(--border);
  border-radius: 99px;
  margin: 0 auto 14px;
}

.pay-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.pay-title {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--text);
}

.pay-close-btn {
  background: var(--surface-2);
  border: none;
  width: 30px;
  height: 30px;
  border-radius: var(--radius-full);
  color: var(--text-muted);
  cursor: pointer;
}

.pay-section {
  margin-bottom: 16px;
}

.pay-section-label {
  font-size: 11px;
  font-weight: 800;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.pay-address-card {
  display: flex;
  gap: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 12px;
}

.pay-address-icon {
  font-size: 18px;
  flex-shrink: 0;
}

.pay-address-name {
  font-size: 13px;
  font-weight: 800;
  color: var(--text);
}

.pay-address-full {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.35;
}

.pay-bill {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 12px 14px;
}

.pay-bill-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-mid);
  margin-bottom: 6px;
}

.pay-bill-row.coupon { color: var(--purple); font-weight: 700; }
.pay-bill-row.wallet { color: var(--green); font-weight: 700; }
.pay-bill-row.total  { font-size: 14px; font-weight: 900; color: var(--text); border-top: 1px dashed var(--border); padding-top: 8px; margin-top: 8px; }

.pay-wallet-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--green-subtle);
  border: 1px solid var(--green-border);
  border-radius: var(--radius-lg);
  padding: 12px 14px;
  margin-bottom: 16px;
}

.pay-wallet-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pay-wallet-icon {
  font-size: 20px;
}

.pay-wallet-label {
  font-size: 13px;
  font-weight: 800;
  color: var(--green-dark);
}

.pay-wallet-bal {
  font-size: 11px;
  color: var(--green);
}

.pay-toggle {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 24px;
}

.pay-toggle input { opacity: 0; width: 0; height: 0; }

.pay-toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--border);
  border-radius: 99px;
  cursor: pointer;
  transition: 0.2s;
}

.pay-toggle-slider::before {
  content: '';
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: 0.2s;
}

.pay-toggle input:checked + .pay-toggle-slider {
  background: var(--green);
}

.pay-toggle input:checked + .pay-toggle-slider::before {
  transform: translateX(18px);
}

.pay-notes-input {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 12px;
  font-size: 12px;
  color: var(--text);
  outline: none;
}

.pay-methods {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pay-method-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 12px 14px;
  cursor: pointer;
  text-align: left;
  transition: var(--transition);
}

.pay-method-btn.active {
  background: var(--green-subtle);
  border-color: var(--green);
}

.pm-icon {
  font-size: 20px;
}

.pm-label {
  font-size: 13px;
  font-weight: 800;
  color: var(--text);
}

.pm-sub {
  font-size: 11px;
  color: var(--text-muted);
}

.pay-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.pay-amount-label span:first-child {
  font-size: 11px;
  color: var(--text-muted);
  display: block;
}

.pay-amount-val {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--text);
}

.pay-confirm-btn {
  background: var(--green);
  color: #fff;
  border: none;
  border-radius: var(--radius-lg);
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: var(--shadow-green);
  transition: var(--transition);
}

.pay-confirm-btn:hover {
  background: var(--green-dark);
}

/* ── COUPON SHEET ── */
.coupon-overlay {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.coupon-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
}

.coupon-sheet {
  position: relative;
  background: var(--card);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  border: 1px solid var(--border);
  border-bottom: none;
  box-shadow: var(--shadow-lg);
  max-width: 540px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  padding: 16px 20px 24px;
  z-index: 1;
  animation: slideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.coupon-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 12px 0 16px;
}

.coupon-header h2 {
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--text);
}

.coupon-close {
  background: var(--surface-2);
  border: none;
  width: 30px;
  height: 30px;
  border-radius: var(--radius-full);
  color: var(--text-muted);
  cursor: pointer;
}

.coupon-manual-row {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}

.coupon-manual-row input {
  flex: 1;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text);
  outline: none;
}

.coupon-manual-row input:focus {
  border-color: var(--purple);
  background: #fff;
}

.coupon-apply-manual-btn {
  background: var(--purple);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 0 18px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.coupon-card {
  background: #FFFFFF;
  border: 1.5px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 14px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.coupon-card:hover {
  border-color: var(--purple);
  background: var(--purple-subtle);
}

.coupon-card.best {
  border-color: var(--purple);
  background: var(--purple-subtle);
}

.coupon-best-badge {
  position: absolute;
  top: -10px;
  right: 12px;
  background: var(--purple);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.coupon-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.coupon-code {
  font-size: 14px;
  font-weight: 900;
  color: var(--purple);
  background: #FFFFFF;
  border: 1px solid var(--purple-border);
  padding: 2px 8px;
  border-radius: var(--radius-xs);
}

.coupon-discount {
  font-size: 13px;
  font-weight: 900;
  color: var(--green);
}

.coupon-desc {
  font-size: 12px;
  color: var(--text-mid);
  margin-bottom: 6px;
}

.coupon-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-light);
  border-top: 1px solid var(--border-light);
  padding-top: 6px;
}

.coupon-apply-btn-sm {
  background: var(--purple);
  color: #fff;
  border: none;
  border-radius: var(--radius-xs);
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.coupon-card.used {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ── TOAST NOTIFICATIONS ── */
.toast-container {
  position: fixed;
  bottom: calc(var(--bnav-h) + 14px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  background: #1E293B;
  color: #FFFFFF;
  border-radius: var(--radius-full);
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 700;
  box-shadow: var(--shadow-lg);
  pointer-events: auto;
  animation: toastIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast.success { background: #0B9B34; }
.toast.error   { background: #DC2626; }
.toast.info    { background: #2563EB; }

@keyframes toastIn {
  from { opacity: 0; transform: translateY(12px) scale(0.95); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── SITE FOOTER ── */
.site-footer {
  background: #FFFFFF;
  border-top: 1px solid var(--border);
  padding: 40px 16px 20px;
  margin-top: 40px;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-light);
}

.footer-logo {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--green);
  letter-spacing: -0.04em;
  margin-bottom: 8px;
}

.footer-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 360px;
}

.footer-heading {
  font-size: 13px;
  font-weight: 800;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--green);
}

.footer-links a.danger {
  color: var(--red);
}

.copyright {
  text-align: center;
  padding-top: 18px;
  font-size: 12px;
  color: var(--text-light);
}

/* ── SPINNER ── */
.spinner {
  width: 28px;
  height: 28px;
  border: 3px solid var(--border);
  border-top-color: var(--green);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ── RESPONSIVE / MOBILE PHONES (max-width: 480px) ── */
@media (max-width: 480px) {
  :root {
    --nav-h: 96px;
    --promo-h: 26px;
    --bnav-h: 60px;
  }

  html {
    font-size: 14px;
  }

  .main {
    padding-left: 10px;
    padding-right: 10px;
    padding-top: calc(var(--promo-h) + var(--nav-h) + 12px);
    padding-bottom: calc(var(--bnav-h) + 24px);
  }

  .nav {
    padding: 6px 10px;
  }

  .nav-logo img {
    height: 24px;
  }

  .nav-logo-text {
    font-size: 1.15rem;
  }

  .nav-logo-sub {
    font-size: 6px;
  }

  .nav-location {
    padding: 3px 6px;
    gap: 4px;
  }

  .nav-location-eta {
    font-size: 8.5px;
    padding: 2px 4px;
  }

  .loc-label-title {
    font-size: 7.5px;
  }

  .loc-label-addr {
    font-size: 10px;
  }

  .mobile-search input {
    font-size: 12px;
    padding: 6px 0;
  }

  .cat-bubbles-container {
    gap: 10px;
    padding: 6px 0 12px;
  }

  .cat-bubble {
    width: 62px;
  }

  .cat-bubble-img-wrap {
    width: 52px;
    height: 52px;
  }

  .cat-bubble-title {
    font-size: 10px;
  }

  .feature-badge {
    padding: 5px 12px;
    font-size: 11px;
  }

  .product-scroll {
    gap: 10px;
    padding: 2px 0 10px;
  }

  .product-scroll .p-card {
    width: 144px;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 4px 0;
  }

  .p-card {
    width: auto;
  }

  .p-card__img-wrap {
    height: 125px;
  }

  .p-card__name {
    font-size: 12px;
    height: 32px;
  }

  .p-card__sub {
    font-size: 10px;
  }

  .p-card__price {
    font-size: 13.5px;
  }

  .p-card__mrp {
    font-size: 10px;
  }

  .add-btn {
    padding: 4px 10px;
    font-size: 11px;
  }

  .qty-btn {
    width: 24px;
    height: 24px;
    font-size: 13px;
  }

  .qty-num {
    font-size: 11px;
    padding: 0 3px;
  }

  /* Explore view on mobile */
  .explore-layout {
    gap: 8px;
  }

  .explore-sidebar {
    width: 72px;
    padding: 4px 2px;
    gap: 4px;
  }

  .sidebar-cat {
    padding: 6px 2px;
  }

  .sidebar-cat-img {
    width: 38px;
    height: 38px;
  }

  .sidebar-cat-label {
    font-size: 9px;
  }

  .explore-compact-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }

  .explore-thumb-card {
    padding: 6px 4px;
  }

  .explore-thumb-img {
    width: 48px;
    height: 48px;
  }

  .explore-thumb-name {
    font-size: 9.5px;
    height: 24px;
  }

  .explore-thumb-price {
    font-size: 10px;
  }

  .inner-explore-title {
    font-size: 1.15rem;
  }

  .inner-back-btn {
    padding: 6px 12px;
    font-size: 11px;
  }

  .inner-cat-chip {
    padding: 5px 12px;
    font-size: 11px;
  }

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

  /* Floating Action Bar on small screens */
  .floating-bottom-bar {
    width: calc(100% - 16px);
    bottom: calc(var(--bnav-h) + 8px);
  }

  /* Modals on small screens */
  .modal-overlay {
    padding: 0;
    align-items: flex-end;
  }

  .modal-content,
  .auth-modal,
  .download-modal,
  .product-modal,
  .variant-modal-sheet {
    max-width: 100%;
    border-radius: 20px 20px 0 0;
    padding: 0;
    max-height: 88vh;
  }

  .modal-content,
  .auth-modal,
  .download-modal,
  .variant-modal-sheet {
    padding: 18px 14px;
  }

  .pm-split-container {
    grid-template-columns: 1fr;
    max-height: 88vh;
    overflow-y: auto;
  }

  .pm-left-col {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 16px 14px;
    background: #F8FAFC;
  }

  .pm-hero-img-wrap {
    max-height: 240px;
    padding: 10px;
  }

  .pm-gallery-strip {
    margin-top: 10px;
  }

  .pm-gallery-thumb {
    width: 48px;
    height: 48px;
  }

  .pm-right-col {
    padding: 16px 14px 24px;
  }

  .variant-sheet-handle {
    display: block;
    width: 36px;
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    margin: 0 auto 10px;
  }
}

/* ── RESPONSIVE / TABLETS (min-width: 481px) and (max-width: 767px) ── */
@media (min-width: 481px) and (max-width: 767px) {
  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 14px;
  }

  .explore-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
  }
}

/* ── RESPONSIVE / DESKTOP (min-width: 768px) ── */
@media (min-width: 768px) {
  :root {
    --nav-h: 88px;
    --bnav-h: 0px;
  }

  .bottom-nav {
    display: none;
  }

  .mobile-search-row {
    display: none;
  }

  .nav {
    padding: 10px 24px;
  }

  .nav-inner {
    display: flex;
    align-items: center;
    gap: 16px;
  }

  .nav-logo img {
    height: 34px;
  }

  .nav-logo-text {
    font-size: 1.5rem;
  }

  .nav-logo-sub {
    font-size: 8px;
  }

  .nav-location {
    max-width: 200px;
    padding: 5px 10px;
    flex-shrink: 0;
  }

  .nav-location-eta {
    font-size: 10px;
    padding: 3px 6px;
  }

  .nav-search {
    display: flex;
    flex: 1 1 160px;
    min-width: 140px;
    max-width: 420px;
    align-items: center;
    background: var(--surface-2);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2px 4px 2px 12px;
    transition: var(--transition);
  }

  .nav-search:focus-within {
    background: #FFFFFF;
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(11, 155, 52, 0.12);
  }

  .nav-search .search-icon {
    color: var(--text-light);
    display: flex;
    align-items: center;
    margin-right: 6px;
  }

  .nav-search input {
    flex: 1;
    min-width: 60px;
    background: none;
    border: none;
    outline: none;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    padding: 6px 0;
  }

  .nav-search .search-btn {
    background: var(--green);
    color: #FFFFFF;
    border: none;
    border-radius: var(--radius);
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: var(--shadow-green);
    transition: var(--transition);
  }

  .nav-search .search-btn:hover {
    background: var(--green-dark);
    box-shadow: 0 4px 16px rgba(11, 155, 52, 0.35);
    transform: translateY(-1px);
  }

  .nav-explore-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--green-subtle);
    border: 1.5px solid var(--green-border);
    border-radius: var(--radius-full);
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 800;
    color: var(--green-dark);
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
    white-space: nowrap;
  }

  .nav-explore-btn:hover {
    background: var(--green);
    border-color: var(--green);
    color: #FFFFFF;
    box-shadow: var(--shadow-green);
    transform: translateY(-1px);
  }

  .nav-download-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--accent-subtle);
    border: 1.5px solid var(--accent-border);
    color: var(--accent);
    padding: 6px 12px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
    white-space: nowrap;
  }

  .nav-download-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #FFFFFF;
    box-shadow: 0 4px 14px rgba(255, 109, 0, 0.25);
    transform: translateY(-1px);
  }

  .nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    flex-shrink: 0;
  }

  .nav-profile-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--text-mid);
    width: auto;
    height: auto;
    padding: 6px 12px;
    border-radius: var(--radius-full);
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .profile-btn-label {
    display: inline;
  }

  .nav-cart-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--green);
    color: #FFFFFF;
    border: none;
    border-radius: var(--radius-lg);
    padding: 7px 16px;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: var(--shadow-green);
    white-space: nowrap;
    flex-shrink: 0;
  }

  @media (max-width: 1280px) {
    .nav-download-btn {
      display: none;
    }
  }

  @media (max-width: 1100px) {
    .nav-explore-btn {
      display: none;
    }
    .nav-location {
      max-width: 160px;
    }
    .loc-label-title {
      display: none;
    }
  }

  .category-strip {
    display: flex;
  }

  .main {
    padding-top: calc(var(--promo-h) + var(--nav-h) + 24px);
    padding-bottom: 130px;
  }

  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 18px;
  }

  .p-card {
    width: auto;
  }

  .p-card__img-wrap {
    height: 170px;
  }

  .footer-inner {
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
  }

  .floating-bottom-bar {
    bottom: 24px;
    right: 24px;
    left: auto;
    transform: none;
    width: auto;
    min-width: 360px;
    max-width: 520px;
  }
}

/* ══════════════════════ IN-APP WEB PUSH NOTIFICATION BANNERS ══════════════════════ */
.inapp-notif-container {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 999999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 380px;
  width: calc(100% - 32px);
  pointer-events: none;
}

@media (max-width: 600px) {
  .inapp-notif-container {
    top: 12px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
  }
}

.inapp-notif-card {
  pointer-events: auto;
  background: #FFFFFF;
  border: 1.5px solid var(--green-border);
  border-left: 5px solid var(--green);
  border-radius: var(--radius-xl);
  padding: 12px 14px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.14), 0 4px 12px rgba(11, 155, 52, 0.15);
  cursor: pointer;
  animation: notifSlideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.inapp-notif-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18), 0 6px 16px rgba(11, 155, 52, 0.22);
}

.inapp-notif-card.hide {
  transform: translateY(-20px) scale(0.95);
  opacity: 0;
}

.inapp-notif-icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: var(--green-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.inapp-notif-logo {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.inapp-notif-content {
  flex: 1;
  min-width: 0;
}

.inapp-notif-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 2px;
  line-height: 1.25;
}

.inapp-notif-body {
  font-size: 12px;
  color: var(--text-mid);
  line-height: 1.4;
}

.inapp-notif-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 14px;
  cursor: pointer;
  padding: 0 2px;
  line-height: 1;
  transition: var(--transition);
  flex-shrink: 0;
}

.inapp-notif-close:hover {
  color: var(--text);
}

@keyframes notifSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.92);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ══════════════════════════════════════════════════════════
   SCHEME B SEE ALL PROMO DEALS VIEW (Mirrors Salonap)
══════════════════════════════════════════════════════════ */
#view-promo-deals {
  background: #f8fafc;
  min-height: calc(100vh - 120px);
  padding-bottom: 80px;
  margin-top: calc(-1 * (var(--promo-h) + var(--nav-h) + 16px));
  margin-left: -16px;
  margin-right: -16px;
}

@media (min-width: 1280px) {
  #view-promo-deals {
    margin-left: calc(-1 * (100vw - var(--max-w)) / 2 - 16px);
    margin-right: calc(-1 * (100vw - var(--max-w)) / 2 - 16px);
  }
}

.promo-see-all-header-card {
  position: relative;
  overflow: hidden;
  padding-top: calc(var(--promo-h) + var(--nav-h) + 8px);
  padding-bottom: 38px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.18);
  transform-origin: top center;
  animation: clothBreeze 7s ease-in-out infinite alternate;
}

/* Satin Silk Shimmer Highlights */
.promo-see-all-header-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 300%;
  height: 100%;
  background: linear-gradient(
    105deg,
    transparent 15%,
    rgba(255, 255, 255, 0.05) 30%,
    rgba(255, 255, 255, 0.18) 48%,
    rgba(255, 255, 255, 0.25) 52%,
    rgba(255, 255, 255, 0.06) 68%,
    transparent 85%
  );
  pointer-events: none;
  animation: clothSheenWave 9s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  z-index: 1;
}

/* 3D Cloth Breeze Wave Physics */
@keyframes clothBreeze {
  0% {
    filter: brightness(1);
    transform: perspective(1200px) rotateX(0deg) skewY(0deg);
  }
  30% {
    filter: brightness(1.05);
    transform: perspective(1200px) rotateX(1.4deg) skewY(-0.35deg);
  }
  65% {
    filter: brightness(0.96);
    transform: perspective(1200px) rotateX(-0.9deg) skewY(0.25deg);
  }
  100% {
    filter: brightness(1.04);
    transform: perspective(1200px) rotateX(0.7deg) skewY(-0.15deg);
  }
}

@keyframes clothSheenWave {
  0% {
    transform: translateX(-50%) skewX(-15deg);
  }
  50% {
    transform: translateX(15%) skewX(-15deg);
  }
  100% {
    transform: translateX(65%) skewX(-15deg);
  }
}

.promo-see-all-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 16px;
  position: relative;
  z-index: 4;
}

.promo-see-all-topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0 6px;
  color: #fff;
}

.promo-see-all-back-btn {
  background: rgba(255,255,255,0.22);
  border: 1px solid rgba(255,255,255,0.35);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: var(--transition);
  flex-shrink: 0;
  backdrop-filter: blur(8px);
}

.promo-see-all-back-btn:hover {
  background: rgba(255,255,255,0.4);
  transform: scale(1.06);
}

.promo-see-all-topbar-title {
  font-size: 20px;
  font-weight: 900;
  font-family: 'Outfit', sans-serif;
  letter-spacing: -0.02em;
  flex: 1;
  text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.promo-see-all-hero {
  padding: 6px 0 8px;
  color: #fff;
}

.promo-see-all-hero-title {
  font-size: 24px;
  font-weight: 900;
  font-family: 'Outfit', sans-serif;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.25);
}

.promo-see-all-hero-sub {
  font-size: 13.5px;
  opacity: 0.95;
  line-height: 1.4;
  text-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

/* Multi-layer SVG Wave Parallax at Banner Bottom */
.banner-waves-wrap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 36px;
  overflow: hidden;
  line-height: 0;
  z-index: 3;
  pointer-events: none;
}

.banner-wave-svg {
  position: relative;
  display: block;
  width: 100%;
  height: 36px;
}

.banner-wave-parallax > use {
  animation: moveBannerWave 18s cubic-bezier(.55,.5,.45,.5) infinite;
}
.banner-wave-parallax > use:nth-child(1) {
  animation-delay: -2s;
  animation-duration: 7s;
}
.banner-wave-parallax > use:nth-child(2) {
  animation-delay: -3s;
  animation-duration: 10s;
}
.banner-wave-parallax > use:nth-child(3) {
  animation-delay: -4s;
  animation-duration: 13s;
}
.banner-wave-parallax > use:nth-child(4) {
  animation-delay: -5s;
  animation-duration: 19s;
}

@keyframes moveBannerWave {
  0% {
    transform: translate3d(-90px, 0, 0);
  }
  100% {
    transform: translate3d(85px, 0, 0);
  }
}

.promo-see-all-chips {
  display: flex;
  gap: 8px;
  padding: 16px;
  max-width: var(--max-w);
  margin: 0 auto;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.promo-see-all-chips::-webkit-scrollbar {
  display: none;
}

.promo-chip {
  padding: 7px 18px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--text-mid);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-xs);
}

.promo-chip.active {
  color: #fff;
  font-weight: 700;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.promo-see-all-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 8px 16px 32px;
}

@media (min-width: 768px) {
  .promo-see-all-grid {
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 16px;
    padding: 12px 24px 40px;
  }
}



