*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Default brand styling for the Mobile App (light, clean, purple-accented) */
  --primary-bg: #F8F9FB;     /* Clean light gray background */
  --card-bg: #FFFFFF;        /* White card background */
  --card-accent: #F1F3F7;    /* Subtle highlight background */
  --accent-purple: #6D4FD6;  /* Primary brand purple */
  --accent-gold: #FFBE1A;    /* Accent gold/yellow */
  --accent-orange: #ED8936;  /* Orange accent */
  --text-primary: #1A202C;   /* Deep slate for primary text */
  --text-muted: #718096;     /* Muted grey for subtext */
  --white: #ffffff;
  --green-success: #38A169;
  --red-error: #E53E3E;
  --font-display: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --shadow-premium: 0 4px 20px rgba(0, 0, 0, 0.04);
  --shadow-purple: 0 8px 30px rgba(109, 79, 214, 0.18);
  --border-color: #E2E8F0;
  --border-light: #F7FAFC;
}

body.theme-light {
  /* Same variables are kept identical for consistent light/clean appearance */
  --primary-bg: #F8F9FB;
  --card-bg: #FFFFFF;
  --card-accent: #F1F3F7;
  --accent-purple: #6D4FD6;
  --accent-gold: #FFBE1A;
  --accent-orange: #ED8936;
  --text-primary: #1A202C;
  --text-muted: #718096;
  --white: #ffffff;
  --green-success: #38A169;
  --red-error: #E53E3E;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
}

html, body {
  width: 100%;
  height: 100%;
  background-color: var(--primary-bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  overscroll-behavior-y: contain;
}

/* ==================== GLOBAL LAYOUT ==================== */
/* ==================== GLOBAL LAYOUT ==================== */
.app-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Home Header (Blinkit Style) */
.app-header.header-home {
  height: 140px;
  background-color: var(--accent-purple);
  padding: 16px 16px 10px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-bottom: none;
  box-shadow: 0 4px 20px rgba(108, 46, 181, 0.12);
}

.header-home-content {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  justify-content: space-between;
}

.header-top-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
}

.delivery-header-blinkit {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  max-width: 75%;
}

.delivery-store-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.store-prefix {
  font-size: 12px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.9);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.delivery-time-row {
  display: flex;
  align-items: center;
  margin-top: 1px;
}

.delivery-time-large {
  font-size: 24px;
  font-weight: 900;
  color: #ffffff;
  line-height: 1.1;
  font-family: var(--font-display);
}

.delivery-distance-pill {
  background-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 12px;
  margin-left: 8px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.delivery-address-blinkit {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  max-width: 100%;
}

.delivery-address-blinkit span {
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.delivery-address-blinkit svg.chevron-down {
  width: 12px;
  height: 12px;
  color: #ffffff;
  stroke-width: 3px;
  flex-shrink: 0;
}

.header-actions-blinkit {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.header-action-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  color: #ffffff;
  transition: all 0.2s ease;
}

.header-action-btn:active {
  background: rgba(255, 255, 255, 0.3);
}

.header-action-btn svg {
  width: 18px;
  height: 18px;
}

.cart-badge-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background-color: var(--accent-gold);
  color: #000000;
  font-size: 9px;
  font-weight: 800;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Search Section in Header */
.search-section-blinkit {
  width: 100%;
  margin-top: 8px;
}

.search-section-blinkit .search-bar-row {
  width: 100%;
}

.search-section-blinkit .search-bar {
  background: #ffffff;
  border-radius: 12px;
  height: 42px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
}

.search-section-blinkit .search-bar input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-primary);
}

.search-icon-blinkit {
  width: 18px;
  height: 18px;
  color: var(--accent-purple);
  stroke-width: 2.5px;
}

.search-section-blinkit .mic-btn {
  width: 16px;
  height: 16px;
  color: var(--accent-purple);
  cursor: pointer;
}

/* Generic Header State */
.app-header.header-generic {
  height: 64px;
  background-color: #ffffff;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.header-generic-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.header-generic-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.header-actions-generic {
  display: flex;
  align-items: center;
}

.header-action-btn.dark {
  background: var(--card-accent);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
}

.header-action-btn.dark:active {
  background: var(--primary-bg);
}

.cart-badge-count.dark-badge {
  background-color: var(--accent-purple);
  color: #ffffff;
}

body.home-header-active .main-content {
  padding-top: 0px;
}

body.no-app-header .main-content {
  padding-top: 0px !important;
}

/* ==================== SCREENS ROUTING ==================== */
  .main-content {
    padding-top: 68px !important;
    padding-bottom: calc(76px + var(--safe-bottom));
    min-height: 100%;
  }
  
  .screen {
    display: none !important;
  }
  
  .screen.active {
    display: block !important;
    animation: fadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  }
  
  /* Categories screen uses flex layout to enable split-pane */
  #screen-categories.active {
    display: flex !important;
    flex-direction: column;
    height: calc(100vh - 64px); /* subtract bottom nav height */
  }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==================== SPLASH SCREEN (BLINKIT STYLE) ==================== */
.splash-screen.blinkit-splash {
  position: fixed;
  inset: 0;
  z-index: 2100;
  background: #6D4FD6 !important; /* brand purple */
  color: #FFFFFF;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.splash-content-blinkit {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  transform: translateY(-25px);
  width: 100%;
  max-width: 320px;
  padding: 0 16px;
  box-sizing: border-box;
}

/* Shopping bag bounce/scale-in and hover-float */
.splash-bag-animation {
  position: relative;
  width: 76px;
  height: 76px;
  margin-bottom: 14px;
  animation: bagIntro 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.splash-bag-svg {
  width: 100%;
  height: 100%;
  stroke: #ffffff !important;
  fill: rgba(255, 255, 255, 0.1);
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.15));
  animation: bagPulse 2s ease-in-out infinite 0.6s;
}

/* Floating items falling into the bag */
.floating-item {
  position: absolute;
  font-size: 18px;
  opacity: 0;
  transform: translateY(-35px) scale(0.5);
  animation: itemFall 1.0s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.floating-item.item-1 {
  left: 12px;
  top: -16px;
  animation-delay: 0.15s;
}

.floating-item.item-2 {
  left: 38px;
  top: -24px;
  animation-delay: 0.28s;
}

.floating-item.item-3 {
  left: 58px;
  top: -16px;
  animation-delay: 0.40s;
}

@keyframes bagIntro {
  0% {
    opacity: 0;
    transform: scale(0.5) translateY(15px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes bagPulse {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-5px) scale(1.02);
  }
}

@keyframes itemFall {
  0% {
    opacity: 0;
    transform: translateY(-35px) scale(0.5) rotate(0deg);
  }
  50% {
    opacity: 1;
    transform: translateY(-8px) scale(1.1) rotate(15deg);
  }
  100% {
    opacity: 0;
    transform: translateY(16px) scale(0.6) rotate(-15deg);
  }
}

/* IESVRA Brand Text Letters */
.splash-brand-text {
  font-family: 'Poppins', 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: 3px;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  line-height: 1;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  width: 100%;
}

.splash-brand-text .letter {
  opacity: 0;
  transform: translateY(8px) scale(0.95);
  display: inline-block;
  animation: letterFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.splash-brand-text .letter.letter-v {
  color: #FFD700;
}

.splash-brand-text .letter:nth-child(1) { animation-delay: 0.15s; }
.splash-brand-text .letter:nth-child(2) { animation-delay: 0.22s; }
.splash-brand-text .letter:nth-child(3) { animation-delay: 0.29s; }
.splash-brand-text .letter:nth-child(4) { animation-delay: 0.36s; }
.splash-brand-text .letter:nth-child(5) { animation-delay: 0.43s; }
.splash-brand-text .letter:nth-child(6) { animation-delay: 0.50s; }

@keyframes letterFadeIn {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Tagline sliding in */
.splash-tagline {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  margin-top: 10px;
  opacity: 0;
  transform: translateY(10px);
  animation: taglineIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.65s forwards;
}

@keyframes taglineIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==================== PRELOADER SCREEN (BLINKIT STYLE) ==================== */
.preloader-screen {
  position: fixed;
  inset: 0;
  z-index: 2200;
  background-color: #F3F4F6 !important; /* light gray background */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.preloader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
}

.preloader-icon-wrap {
  width: 90px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  animation: preloaderBounce 1.4s ease-in-out infinite;
}

.preloader-svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.06));
}

.preloader-text {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #4B5563; /* muted dark gray */
  line-height: 1.5;
  margin: 0;
}

@keyframes preloaderBounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Home Purple Banner Padding & Heading Clearance Fix */
.express-purple-banner-new {
  padding-top: 40px !important;
  margin-top: 20px !important;
}

.splash-store-badges .badge-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  width: 100%;
}
.splash-store-badges .store-badge img {
  height: 40px;
  width: auto;
}

/* ==================== ONBOARDING SCREEN ==================== */
.onboarding-screen {
  position: fixed;
  inset: 0;
  z-index: 2050;
  background-color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 40px 24px 60px;
}
.onboarding-top-bar {
  display: flex;
  justify-content: flex-end;
  width: 100%;
}
.onboard-skip-link {
  background: none;
  border: none;
  color: #A0AEC0;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.onboarding-carousel {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.onboarding-slide {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.onboarding-slide h2 {
  font-size: 28px;
  font-weight: 800;
  color: #1A202C;
  line-height: 1.25;
  margin-bottom: 12px;
}
.onboarding-slide h2 .highlight-purple {
  color: var(--accent-purple);
}
.onboarding-slide p {
  font-size: 14px;
  color: #718096;
  line-height: 1.5;
  max-width: 280px;
  margin-bottom: 24px;
}
.slide-illustration {
  width: 200px;
  height: 200px;
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.slide-illustration svg {
  width: 100%;
  height: 100%;
}
.onboarding-bottom-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  width: 100%;
}
.onboarding-dots {
  display: flex;
  gap: 8px;
}
.onboarding-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #E2E8F0;
  transition: all 0.3s;
}
.onboarding-dots .dot.active {
  background-color: var(--accent-purple);
  width: 24px;
  border-radius: 4px;
}
.onboard-next-btn {
  width: 100%;
  height: 52px;
  background-color: var(--accent-purple);
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  border: none;
  border-radius: 26px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(107, 70, 193, 0.3);
  transition: background-color 0.2s;
}
.onboard-next-btn:active {
  background-color: #553C9A;
}

/* ==================== LOGIN SCREEN ==================== */
.login-screen {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background-color: var(--primary-bg);
  padding: 60px 24px calc(40px + var(--safe-bottom));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow-y: auto;
}

.login-header {
  text-align: center;
  margin-top: 20px;
}

.login-header h2 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 16px;
  margin-bottom: 6px;
}

.login-header p {
  font-size: 13px;
  color: var(--text-muted);
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 40px 0;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.input-group label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.input-group input {
  height: 52px;
  border-radius: 14px;
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  padding: 0 16px;
  color: var(--text-primary);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s ease;
}

.input-group input:focus {
  border-color: var(--accent-purple);
}

.login-btn {
  height: 52px;
  border-radius: 14px;
  background-color: var(--accent-purple);
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(107, 70, 193, 0.25);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: opacity 0.2s ease;
}

.login-btn:active {
  opacity: 0.85;
}

/* Tab Segment Control */
.auth-tabs {
  display: flex;
  background: var(--card-accent);
  border-radius: 14px;
  padding: 4px;
  margin-bottom: 24px;
  border: 1px solid var(--border-color);
}

.auth-tab {
  flex: 1;
  text-align: center;
  padding: 12px 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-muted);
  background: none;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.auth-tab.active {
  background: var(--card-bg);
  color: var(--accent-purple);
  box-shadow: var(--shadow-premium);
}

.social-login {
  text-align: center;
  margin-top: 10px;
}

.social-login .divider {
  position: relative;
  margin-bottom: 24px;
}

.social-login .divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background-color: var(--border-color);
  z-index: 1;
}

.social-login .divider span {
  position: relative;
  background-color: var(--primary-bg);
  padding: 0 12px;
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  z-index: 2;
  letter-spacing: 0.05em;
}

.social-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.social-btn {
  flex: 1;
  height: 50px;
  border-radius: 14px;
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 700;
  transition: all 0.2s ease;
}

.social-btn:active {
  background-color: var(--card-accent);
}

.social-btn svg {
  flex-shrink: 0;
}

/* ==================== HOME SCREEN ==================== */
/* ==================== HOME SCREEN ==================== */
/* Header Mockup Style (Clean White background) */
.app-header.header-home {
  height: 64px;
  background-color: #ffffff;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.delivery-header-new {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  max-width: 75%;
}

.location-icon-circle-new {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: rgba(108, 46, 181, 0.08);
  color: var(--accent-purple);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.location-icon-circle-new svg {
  width: 16px;
  height: 16px;
}

.delivery-text-wrap-new {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.delivery-to-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.delivery-address-row-new {
  display: flex;
  align-items: center;
  gap: 3px;
  max-width: 100%;
}

.delivery-address-row-new span {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.delivery-address-row-new svg {
  width: 10px;
  height: 10px;
  color: var(--accent-purple);
  stroke-width: 3px;
  flex-shrink: 0;
}

.header-actions-new {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hdr-action-btn-new {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--card-accent);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  color: var(--text-primary);
  transition: all 0.2s ease;
}

.hdr-action-btn-new:active {
  background: rgba(0, 0, 0, 0.05);
}

.hdr-action-btn-new svg {
  width: 18px;
  height: 18px;
}

.notification-badge-new {
  position: absolute;
  top: -2px;
  right: -2px;
  background-color: var(--red-error);
  color: #ffffff;
  font-size: 8px;
  font-weight: 800;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #ffffff;
}

.cart-badge-count-new {
  position: absolute;
  top: -2px;
  right: -2px;
  background-color: var(--red-error);
  color: #ffffff;
  font-size: 8px;
  font-weight: 800;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #ffffff;
}

/* Home tab Content header active spacing */
body.home-header-active .main-content {
  padding-top: 72px; /* Normal height padding since the search is inside the page content, not fixed header! */
}

/* Search Bar inside Home Screen content */
.search-section-new {
  padding: 14px 16px;
  background-color: var(--primary-bg);
}

.search-bar-row-new {
  width: 100%;
}

.search-bar-new {
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: var(--card-bg);
  border: 1px solid rgba(0, 0, 0, 0.03);
  border-radius: 12px;
  padding: 0 14px;
  height: 44px;
  box-shadow: var(--shadow-premium);
}

.search-icon-new {
  width: 18px;
  height: 18px;
  color: var(--accent-purple);
  stroke-width: 2.5px;
}

.search-bar-new input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 13px;
  font-family: var(--font-body);
}

.search-bar-new input::placeholder {
  color: var(--text-muted);
}

.mic-btn-new {
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  cursor: pointer;
}

/* Express Purple Banner - Redesigned */
.express-purple-banner-new {
  background: linear-gradient(135deg, #2D1263 0%, #380E83 50%, #5B21B6 100%);
  border-radius: 20px;
  margin: 14px 16px 16px;
  padding: 24px 18px 20px !important;
  position: relative;
  overflow: hidden;
  color: #ffffff;
  box-shadow: 0 10px 25px rgba(56, 14, 131, 0.28);
}

.banner-text-new {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  z-index: 2;
  max-width: 60%;
}

.banner-sub-header {
  font-size: 9px;
  font-weight: 800;
  color: var(--accent-gold);
  letter-spacing: 0.1em;
  margin-bottom: 2px;
}

.banner-title-italic {
  font-style: italic;
  font-size: 26px;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.banner-location-pill {
  background-color: var(--accent-gold);
  color: #000000;
  font-size: 9px;
  font-weight: 850;
  padding: 4px 10px;
  border-radius: 12px;
  display: inline-block;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.banner-order-btn-new {
  background-color: var(--accent-gold);
  color: #000000;
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(255, 190, 26, 0.3);
  transition: transform 0.15s;
}

.banner-order-btn-new:active {
  transform: scale(0.96);
}

.banner-image-new {
  flex-shrink: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.banner-image-new img {
  width: 125px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.2));
}

/* 4 Promises Strip */
.promises-strip-new {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 8px 16px 20px;
}

.promise-item-new {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
}

.promise-icon-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.promise-icon-circle svg {
  width: 18px;
  height: 18px;
}

.promise-icon-circle.accent-orange {
  background-color: rgba(237, 137, 54, 0.08);
  color: #ED8936;
}

.promise-icon-circle.accent-purple {
  background-color: rgba(108, 46, 181, 0.08);
  color: var(--accent-purple);
}

.promise-icon-circle.accent-yellow {
  background-color: rgba(255, 190, 26, 0.1);
  color: #D69E2E;
}

.promise-icon-circle.accent-blue {
  background-color: rgba(49, 130, 206, 0.08);
  color: #3182CE;
}

.promise-texts {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
}

.promise-texts strong {
  font-size: 9px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.1;
}

.promise-texts span {
  font-size: 8px;
  font-weight: 600;
  color: var(--text-muted);
}

/* Category grid header and sections */
.section-title-new {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  margin: 0;
}

/* Categories 2-Row Icon Grid */
.categories-grid-new {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px 6px;
  padding: 0 16px 20px;
}

.category-grid-item-new {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 5px;
  cursor: pointer;
}

.category-grid-icon-wrap-new {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  background-color: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: var(--shadow-premium);
  transition: transform 0.2s, border-color 0.2s;
}

.category-grid-icon-wrap-new img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.category-grid-item-new span {
  font-size: 9px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.category-grid-item-new:active .category-grid-icon-wrap-new {
  transform: translateY(-2px);
  border-color: var(--accent-purple);
}

/* Horizontally Scrolling Trending Section */
.trending-scroll-row {
  display: flex;
  overflow-x: auto;
  gap: 12px;
  padding: 4px 16px 24px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.trending-scroll-row::-webkit-scrollbar {
  display: none;
}

/* Profile Edit Modal */
.profile-edit-modal {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.profile-edit-modal.active {
  display: flex;
}

.profile-edit-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 28px 24px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.profile-edit-card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
  text-align: center;
}

.profile-edit-field {
  margin-bottom: 16px;
}

.profile-edit-field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.profile-edit-field input {
  width: 100%;
  padding: 12px 16px;
  background: var(--card-accent);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: border-color 0.2s ease;
}

.profile-edit-field input:focus {
  border-color: var(--accent-purple);
}

.profile-edit-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.profile-edit-actions button {
  flex: 1;
  padding: 12px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.profile-edit-actions .btn-cancel {
  background: var(--card-accent);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.profile-edit-actions .btn-save {
  background: var(--accent-purple);
  color: #fff;
}

.section-title {
  padding: 0 20px;
  margin-bottom: 12px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.categories-scroll {
  display: flex;
  gap: 16px;
  padding: 0 20px 24px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.categories-scroll::-webkit-scrollbar {
  display: none;
}

.category-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  cursor: pointer;
}

.category-icon-wrap {
  width: 62px;
  height: 62px;
  border-radius: 18px;
  background-color: var(--card-bg);
  border: 1px solid rgba(0, 0, 0, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  box-shadow: var(--shadow-premium);
  transition: transform 0.2s;
}

.category-icon-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.category-item span {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  text-align: center;
  max-width: 70px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.category-item:active .category-icon-wrap {
  transform: scale(0.95);
  border-color: var(--accent-gold);
}

.offers-scroll {
  display: flex;
  gap: 14px;
  padding: 0 20px 24px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.offers-scroll::-webkit-scrollbar {
  display: none;
}

.offer-card {
  min-width: 220px;
  background-color: var(--card-bg);
  border-radius: 18px;
  padding: 20px;
  border: 1px solid rgba(0, 0, 0, 0.04);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-premium);
}

.offer-card h4 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--accent-gold);
  margin-bottom: 4px;
}

.offer-card p {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.offer-btn {
  background-color: var(--accent-gold);
  color: var(--white);
  border: none;
  border-radius: 10px;
  padding: 6px 12px;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  width: fit-content;
}

.best-sellers-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 0 20px;
}

.mobile-product-card {
  background-color: var(--card-bg);
  border-radius: var(--card-radius, 16px);
  border: 1px solid rgba(0, 0, 0, 0.03);
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 215px;
  cursor: pointer;
  box-shadow: var(--shadow-premium);
  position: relative;
}

.trending-scroll-row .mobile-product-card {
  width: 135px;
  flex-shrink: 0;
}

.mobile-product-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 12px;
  background-color: rgba(0, 0, 0, 0.01);
  margin-bottom: 8px;
}

.wishlist-btn-card {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  cursor: pointer;
  z-index: 5;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  transition: transform 0.15s;
}

.wishlist-btn-card:active {
  transform: scale(0.9);
}

.wishlist-btn-card.active {
  color: var(--red-error);
  fill: var(--red-error);
}

.mobile-product-card .p-name {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 4px;
}

.p-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: 6px;
}

.p-price-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
}

.p-price {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.1;
}

.p-mrp {
  font-size: 9px;
  color: var(--text-muted);
  text-decoration: line-through;
}

.mobile-add-btn {
  background-color: var(--white);
  color: var(--accent-purple);
  border: 1px solid var(--accent-purple);
  border-radius: 8px;
  height: 28px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  box-shadow: 0 2px 6px rgba(108, 46, 181, 0.05);
  transition: all 0.2s ease;
}

.mobile-add-btn.gold {
  background-color: var(--accent-gold);
  color: #000000;
  border: none;
  width: 54px;
  box-shadow: 0 2px 6px rgba(255, 190, 26, 0.25);
}

.mobile-add-btn.gold:active {
  background-color: #e2a912;
}

.product-card-discount-badge {
  position: absolute;
  top: 4px;
  left: 4px;
  background-color: #EF4444;
  color: var(--white);
  font-size: 8px;
  font-weight: 800;
  padding: 2px 5px;
  border-radius: 4px;
  z-index: 2;
  font-family: var(--font-display);
}

.product-card-rating {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 9px;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 4px;
}

/* ==================== CATEGORIES GRID VIEW ==================== */
.categories-grid-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px 10px;
  padding: 10px 16px 24px;
}

.category-card {
  background-color: var(--card-bg);
  border: 1px solid rgba(0, 0, 0, 0.03);
  border-radius: 16px;
  padding: 12px 6px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-premium);
}

.category-card:active {
  transform: scale(0.97);
  border-color: var(--accent-purple);
}

.category-card img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  margin-bottom: 8px;
}

.category-card h4 {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.25;
  margin: 0;
}

/* ==================== OFFERS SCREEN ==================== */
.coupon-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 10px 20px 24px;
}

.coupon-card {
  background-color: var(--card-bg);
  border: 1px dashed rgba(109, 79, 214, 0.2);
  border-radius: 16px;
  padding: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow-premium);
}

.coupon-details h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.coupon-details p {
  font-size: 11px;
  color: var(--text-muted);
}

.coupon-code {
  background-color: rgba(109, 79, 214, 0.05);
  color: var(--accent-purple);
  border: 1px solid rgba(109, 79, 214, 0.3);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 8px;
  text-transform: uppercase;
}

/* ==================== CART VIEW ==================== */
.cart-items-container {
  padding: 12px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cart-item-card {
  background-color: var(--card-bg);
  border-radius: 18px;
  padding: 12px;
  display: flex;
  gap: 12px;
  align-items: center;
  box-shadow: var(--shadow-premium);
}

.cart-item-card img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  background-color: rgba(0, 0, 0, 0.01);
  border-radius: 12px;
}

.cart-item-info {
  flex: 1;
}

.cart-item-info h4 {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cart-item-price {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-purple);
}

.qty-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  background-color: var(--primary-bg);
  border-radius: 8px;
  padding: 4px 8px;
}

.qty-controls button {
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.qty-controls span {
  font-size: 13px;
  font-weight: 700;
}

.receipt-summary {
  margin: 12px 20px 24px;
  background-color: var(--card-bg);
  border-radius: 18px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow-premium);
}

.receipt-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-muted);
}

.receipt-row.total {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  padding-top: 12px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

.checkout-btn {
  background-color: var(--accent-purple);
  color: var(--white);
  height: 52px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(109,79,214,0.35);
  width: 100%;
  margin-top: 8px;
  transition: background 0.2s;
}
.checkout-btn:active {
  background-color: #4C1D95;
}

/* ==================== TRACK ORDER & ORDERS HISTORY ==================== */
.order-history-card {
  background-color: var(--card-bg);
  border-radius: 18px;
  margin: 12px 20px;
  padding: 16px;
  border: 1px solid rgba(0, 0, 0, 0.03);
  box-shadow: var(--shadow-premium);
}

.order-history-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 12px;
  color: var(--text-muted);
}

.order-history-header strong {
  color: var(--text-primary);
}

.order-history-body {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.order-details h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}

.order-details p {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.track-btn {
  background-color: rgba(201, 165, 92, 0.08);
  color: var(--accent-gold);
  border: 1px solid var(--accent-gold);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.tracking-back-header {
  padding: 12px 20px;
}

.back-btn {
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}

.back-btn svg {
  width: 18px;
  height: 18px;
}

.tracking-map-container {
  margin: 0 20px 24px;
  border-radius: 20px;
  background-color: var(--card-bg);
  border: 1px solid rgba(0, 0, 0, 0.05);
  padding: 12px;
  height: 180px;
  overflow: hidden;
  box-shadow: var(--shadow-premium);
}

.vector-map {
  width: 100%;
  height: 100%;
}

.timeline-container {
  padding: 0 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.timeline-step {
  display: flex;
  gap: 16px;
  position: relative;
}

.timeline-step::before {
  content: '';
  position: absolute;
  top: 24px;
  left: 11px;
  bottom: -24px;
  width: 2px;
  background-color: rgba(0, 0, 0, 0.05);
}

.timeline-step:last-child::before {
  display: none;
}

.step-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: var(--card-bg);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  border: 2px solid rgba(0, 0, 0, 0.05);
}

.step-details h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
}

.step-details p {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Completed Timeline States */
.timeline-step.completed::before {
  background-color: var(--accent-purple);
}

.timeline-step.completed .step-icon {
  background-color: var(--accent-purple);
  color: var(--white);
  border-color: var(--accent-purple);
}

.timeline-step.completed .step-details h4 {
  color: var(--accent-purple);
}

/* Delivered Step Green Styling */
.timeline-step#step-delivered.completed .step-icon {
  background-color: var(--green-success);
  border-color: var(--green-success);
}

.timeline-step#step-delivered.completed .step-details h4 {
  color: var(--green-success);
}

.rider-card {
  background-color: var(--card-bg);
  margin: 0 20px 24px;
  padding: 16px;
  border-radius: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow-premium);
}

.rider-info {
  display: flex;
  gap: 12px;
  align-items: center;
}

.rider-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--accent-gold);
  color: var(--white);
  font-size: 14px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rider-info h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
}

.rider-info p {
  font-size: 10px;
  color: var(--text-muted);
}

.rider-call-btn {
  background-color: var(--accent-gold);
  color: var(--white);
  border: none;
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.rider-call-btn svg {
  width: 12px;
  height: 12px;
}

/* ==================== PROFILE ==================== */
.profile-hero-card {
  margin: 12px 20px 20px;
  padding: 24px;
  background: linear-gradient(135deg, var(--card-bg) 0%, var(--primary-bg) 100%);
  border-radius: 20px;
  border: 1px solid rgba(201, 165, 92, 0.2);
  text-align: center;
  box-shadow: var(--shadow-premium);
}

.avatar-circle {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background-color: var(--accent-gold);
  color: var(--white);
  font-size: 24px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  box-shadow: var(--shadow-gold);
}

.profile-hero-card h3 {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--text-primary);
}

.profile-hero-card p {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

.plus-membership-banner {
  margin: 0 20px 24px;
  background: linear-gradient(135deg, #1b263b 0%, #2b3a55 100%);
  border-radius: 18px;
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow-premium);
}

.plus-membership-banner h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
}

.plus-membership-banner .gold-text {
  color: var(--accent-gold);
}

.plus-membership-banner p {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 2px;
}

.join-plus-btn {
  background-color: rgba(201, 165, 92, 0.15);
  color: var(--accent-gold);
  border: 1px solid var(--accent-gold);
  padding: 4px 10px;
  font-size: 9px;
  font-weight: 700;
  border-radius: 6px;
  text-transform: uppercase;
}

.profile-menu-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 20px 24px;
}

.profile-menu-item {
  background-color: var(--card-bg);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  box-shadow: var(--shadow-premium);
}

.profile-menu-item .item-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.profile-menu-item .item-left svg {
  width: 18px;
  height: 18px;
  color: var(--accent-gold);
}

.profile-menu-item .item-left span {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.profile-menu-item .chevron {
  width: 16px;
  height: 16px;
  color: var(--text-muted);
}

/* ==================== PRODUCT DETAIL SHEET OVERLAY ==================== */
.detail-overlay {
  position: fixed;
  inset: 0;
  z-index: 1500;
  background-color: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.detail-sheet {
  width: 100%;
  background-color: var(--card-bg);
  border-top: 2px solid rgba(201, 165, 92, 0.2);
  border-radius: 28px 28px 0 0;
  max-height: 85vh;
  overflow-y: auto;
  padding-bottom: calc(24px + var(--safe-bottom));
  animation: slideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.sheet-bar {
  width: 40px;
  height: 4px;
  border-radius: 2px;
  background-color: rgba(0, 0, 0, 0.08);
  margin: 12px auto;
}

.detail-hero {
  padding: 24px;
  text-align: center;
  position: relative;
}

.detail-hero img {
  width: 180px;
  height: 180px;
  object-fit: contain;
  background-color: rgba(0, 0, 0, 0.01);
  border-radius: 16px;
}

.detail-hero .discount-pill {
  position: absolute;
  top: 12px;
  left: 24px;
  background-color: var(--accent-gold);
  color: var(--white);
  font-size: 9px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 8px;
}

.detail-info {
  padding: 0 24px;
}

.detail-info .cat-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.detail-info h2 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 4px;
  margin-bottom: 8px;
}

.detail-prices {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 12px;
}

.detail-prices .dp-now {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
}

.detail-prices .dp-was {
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: line-through;
}

.detail-prices .dp-off {
  font-size: 11px;
  color: var(--accent-gold);
  font-weight: 700;
}

.detail-rating {
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 12px;
  margin-bottom: 16px;
  color: var(--text-muted);
}

.detail-rating .dr-stars {
  color: var(--accent-gold);
}

.detail-rating .dr-text {
  color: var(--text-primary);
  font-weight: 700;
}

.detail-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 20px;
}

.delivery-options {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.selector-btn {
  flex: 1;
  background-color: var(--primary-bg);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 12px;
  padding: 12px;
  color: var(--text-muted);
  cursor: pointer;
  text-align: left;
}

.selector-btn.active {
  border-color: var(--accent-gold);
  color: var(--text-primary);
  background-color: var(--card-bg);
  box-shadow: var(--shadow-premium);
}

.selector-btn h4 {
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 2px;
}

.selector-btn p {
  font-size: 9px;
}

.detail-actions {
  display: flex;
  gap: 12px;
}

.detail-add-btn {
  flex: 1;
  background-color: var(--primary-bg);
  color: var(--text-primary);
  border: 1px solid rgba(0, 0, 0, 0.05);
  height: 52px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  text-transform: uppercase;
}

.detail-buy-btn {
  flex: 1.2;
  background-color: var(--accent-gold);
  color: var(--white);
  border: none;
  height: 52px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  text-transform: uppercase;
  box-shadow: var(--shadow-gold);
}

/* ==================== BOTTOM TAB NAVIGATION ==================== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background-color: var(--card-bg);
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding-bottom: var(--safe-bottom);
  z-index: 1000;
  box-shadow: 0 -4px 30px rgba(15, 23, 42, 0.03);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  border: none;
  background: none;
  cursor: pointer;
  padding: 6px 16px;
  border-radius: 20px;
  -webkit-tap-highlight-color: transparent;
  position: relative;
  transition: all 0.2s ease;
}

.nav-item svg {
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  transition: color 0.2s;
}

.nav-item span {
  font-size: 9px;
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.2s;
  letter-spacing: 0.03em;
}

.nav-item.active {
  background-color: rgba(109, 79, 214, 0.1);
}

.nav-item.active svg {
  color: var(--accent-purple);
}

.nav-item.active span {
  color: var(--accent-purple);
}

/* Toast Alerts */
.toast-container {
  position: fixed;
  bottom: 80px;
  left: 20px;
  right: 20px;
  z-index: 2000;
  pointer-events: none;
  display: flex;
  justify-content: center;
}

.toast {
  background-color: var(--card-bg);
  border: 1px solid var(--accent-gold);
  color: var(--text-primary);
  padding: 12px 24px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 500;
  box-shadow: var(--shadow-premium);
  display: none;
  animation: slideUpToast 0.3s ease-out;
  max-width: 100%;
  text-align: center;
  word-wrap: break-word;
}

.toast.show {
  display: block;
}

@keyframes slideUpToast {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Theme Toggle Button Icon Display */
body.theme-light .theme-icon-sun {
  display: none !important;
}
body.theme-light .theme-icon-moon {
  display: block !important;
}
body:not(.theme-light) .theme-icon-sun {
  display: block !important;
}
body:not(.theme-light) .theme-icon-moon {
  display: none !important;
}

/* Profile screen gear icon and badge styles */
.profile-badge {
  font-size: 11px;
  font-weight: 700;
  color: var(--green-success);
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.settings-gear-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.settings-gear-btn:active {
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--accent-gold);
}

.settings-gear-btn svg {
  width: 20px;
  height: 20px;
}

/* Wallet and Refer Badges styling */
.item-right-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ==================== LOCATION PICKER MODAL ==================== */
.location-picker-overlay {
  position: fixed;
  inset: 0;
  z-index: 2200;
  background: rgba(0, 0, 0, 0);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
  transition: background 0.3s ease;
}

.location-picker-overlay.active {
  background: rgba(0, 0, 0, 0.55);
  pointer-events: auto;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.location-picker-sheet {
  width: 100%;
  max-width: 480px;
  background: var(--card-bg);
  border-radius: 24px 24px 0 0;
  padding: 20px 20px calc(24px + var(--safe-bottom));
  display: flex;
  flex-direction: column;
  max-height: 85%;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.1);
  overflow-y: auto;
}

.location-picker-overlay.active .location-picker-sheet {
  transform: translateY(0);
}

.sheet-bar-handle {
  width: 40px;
  height: 5px;
  background: var(--border-color);
  border-radius: 3px;
  align-self: center;
  margin-bottom: 15px;
}

.location-picker-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.location-picker-header h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.location-picker-header .close-btn {
  background: var(--card-accent);
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  transition: opacity 0.2s;
}

.location-picker-header .close-btn:active {
  opacity: 0.7;
}

.location-search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--primary-bg);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 0 14px;
  height: 46px;
}

.location-search-bar input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-primary);
}

.location-quick-actions {
  display: flex;
  flex-direction: column;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
}

.location-action-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-color);
  cursor: pointer;
  transition: background 0.2s;
}

.location-action-item:last-child {
  border-bottom: none;
}

.location-action-item:active {
  background: var(--primary-bg);
}

.location-action-left {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 85%;
}

.location-action-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.location-action-icon svg {
  width: 18px;
  height: 18px;
}

.location-action-icon.current-loc,
.location-action-icon.add-address {
  background: rgba(108, 46, 181, 0.08);
  color: var(--accent-purple);
}

.location-action-icon.whatsapp {
  background: rgba(37, 211, 102, 0.1);
  color: #25D366;
}

.location-action-icon.zomato {
  background: rgba(226, 56, 70, 0.1);
  color: #E23846;
}

.location-action-text h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.location-action-text h4.text-brand {
  color: var(--accent-purple);
}

.location-action-text p {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
  margin-bottom: 0;
  line-height: 1.3;
}

.saved-address-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 16px;
  box-shadow: var(--shadow-premium);
  position: relative;
  cursor: pointer;
  transition: all 0.2s;
}

.saved-address-card.active {
  border-color: var(--accent-purple);
  background: rgba(108, 46, 181, 0.02);
}

.address-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.address-badge-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.address-icon-wrap {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: rgba(108, 46, 181, 0.08);
  color: var(--accent-purple);
  display: flex;
  align-items: center;
  justify-content: center;
}

.address-title-badge {
  display: flex;
  flex-direction: column;
}

.address-title-badge strong {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
}

.frequent-pill {
  font-size: 8px;
  font-weight: 700;
  background: rgba(108, 46, 181, 0.08);
  color: var(--accent-purple);
  padding: 1px 6px;
  border-radius: 10px;
  width: fit-content;
  margin-top: 2px;
}

.distance-badge {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--primary-bg);
  padding: 2px 8px;
  border-radius: 6px;
}

.saved-address-card .address-text {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.45;
  margin-top: 8px;
  margin-bottom: 6px;
}

.saved-address-card .phone-text {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 0;
}

.address-card-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.address-card-actions .action-btn {
  background: var(--primary-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-primary);
  transition: background 0.2s;
}

.address-card-actions .action-btn:active {
  background: var(--card-accent);
}

.address-share-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #FFF9E6;
  border: 1px solid rgba(255, 190, 26, 0.2);
  border-radius: 12px;
  padding: 10px 14px;
}

.address-share-banner p {
  font-size: 11px;
  font-weight: 600;
  color: #7F5F00;
  line-height: 1.3;
  margin: 0;
}

.share-icon-wrap {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: rgba(255, 190, 26, 0.2);
  color: #B58400;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-right: 8px;
}

.banner-left {
  display: flex;
  align-items: center;
}

.banner-close {
  background: none;
  border: none;
  color: #7F5F00;
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 4px;
}



/* =========================================================
   PREMIUM REDESIGN V2 CSS (Categories, Orders, Cart, Deals)
   ========================================================= */

/* 1. Trust Badge Footer Pattern */
.trust-badge-footer {
  background: linear-gradient(135deg, #4c1d95, #6d28d9);
  border-radius: 16px;
  padding: 16px;
  margin: 20px 16px;
  color: #fff;
  text-align: center;
  box-shadow: 0 10px 25px rgba(109, 40, 217, 0.25);
  position: relative;
  overflow: hidden;
}
.trust-badge-footer.light-theme {
  background: #ffffff;
  color: var(--text-primary);
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  border: 1px solid var(--border-color);
}
.trust-badge-title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 16px;
  z-index: 2;
  position: relative;
}
.trust-badge-footer.light-theme .trust-badge-title {
  display: none;
}
.trust-badge-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  z-index: 2;
  position: relative;
}
.trust-badge-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.trust-badge-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.trust-badge-footer.light-theme .trust-badge-icon {
  background: #f3e8ff;
  color: #6d28d9;
}
.trust-badge-text {
  font-size: 10px;
  line-height: 1.2;
  font-weight: 500;
  opacity: 0.9;
}
.trust-badge-footer.light-theme .trust-badge-text {
  opacity: 1;
  color: var(--text-muted);
}
.trust-bg-fx {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, rgba(255,190,26,0.2) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 1;
}

/* 2. Categories Screen Redesign */
.categories-header-premium {
  padding: 16px 16px 0;
}
.categories-header-premium h2 {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.categories-subtitle {
  font-size: 13px;
  color: var(--text-muted);
}
.categories-hero-banner {
  background: linear-gradient(135deg, #1e1b4b, #4c1d95);
  border-radius: 20px;
  margin: 16px;
  padding: 20px;
  position: relative;
  overflow: visible;
  color: white;
  box-shadow: 0 12px 30px rgba(76, 29, 149, 0.3);
}
.cat-banner-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 8px;
}
.cat-banner-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
  max-width: 60%;
  margin-bottom: 30px;
}
.cat-banner-graphic {
  position: absolute;
  right: -10px;
  top: -10px;
  width: 120px;
  height: 120px;
  z-index: 2;
}
.search-docked {
  background: white;
  border-radius: 14px;
  padding: 4px;
  display: flex;
  align-items: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transform: translateY(10px);
}
.search-docked input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 10px 12px;
  font-size: 13px;
  outline: none;
}
.search-docked .search-btn {
  background: var(--accent-purple);
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}
.categories-grid-new {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 16px;
  margin-top: 10px;
}
.category-card-premium {
  background: #fff;
  border-radius: 20px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 6px 16px rgba(0,0,0,0.04);
  position: relative;
  transition: transform 0.2s;
}
.category-card-premium:active {
  transform: scale(0.98);
}
.cat-img-wrap {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.cat-img-wrap img {
  width: 60px;
  height: 60px;
  object-fit: contain;
}
.category-card-premium h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.cat-count {
  font-size: 11px;
  color: var(--text-muted);
  background: #f1f5f9;
  padding: 4px 10px;
  border-radius: 12px;
  font-weight: 600;
}
.cat-go-btn {
  position: absolute;
  bottom: 16px;
  right: 16px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-purple);
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* 3. Order Tracking Screen Redesign */
.order-tracking-premium {
  background: var(--primary-bg);
  min-height: 100vh;
  padding-bottom: 80px;
}
.order-header-banner {
  background: linear-gradient(135deg, #2e1065, #5b21b6);
  padding: 20px 20px 30px;
  border-radius: 0 0 24px 24px;
  color: white;
  position: relative;
}
.order-header-banner h3 {
  font-size: 14px;
  font-weight: 500;
  opacity: 0.9;
  margin-bottom: 4px;
}
.order-header-banner h1 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 4px;
}
.order-header-banner p {
  font-size: 13px;
  opacity: 0.8;
}
.delivery-truck-gfx {
  position: absolute;
  right: 10px;
  top: 20px;
  width: 130px;
  height: auto;
}
.order-progress-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 30px;
  position: relative;
}
.progress-track {
  position: absolute;
  top: 50%;
  left: 30px;
  right: 30px;
  height: 4px;
  background: rgba(255,255,255,0.2);
  transform: translateY(-50%);
  border-radius: 2px;
  z-index: 1;
}
.progress-fill {
  position: absolute;
  top: 50%;
  left: 30px;
  width: 50%;
  height: 4px;
  background: #a78bfa;
  transform: translateY(-50%);
  border-radius: 2px;
  z-index: 1;
}
.progress-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 2;
}
.progress-node .icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
  border: 2px solid transparent;
}
.progress-node.active .icon {
  background: #fff;
  color: #5b21b6;
  border-color: #a78bfa;
}
.progress-node span {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}
.status-timeline {
  background: #fff;
  border-radius: 20px;
  margin: -16px 16px 16px;
  padding: 24px 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  position: relative;
  z-index: 10;
}
.timeline-item {
  display: flex;
  margin-bottom: 24px;
  position: relative;
}
.timeline-item:last-child { margin-bottom: 0; }
.timeline-item::after {
  content: '';
  position: absolute;
  left: 15px;
  top: 32px;
  bottom: -24px;
  width: 2px;
  background: var(--border-color);
}
.timeline-item:last-child::after { display: none; }
.timeline-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  margin-right: 16px;
  z-index: 2;
}
.timeline-item.completed .timeline-icon {
  background: var(--accent-purple);
  color: white;
}
.timeline-item.current .timeline-icon {
  background: var(--green-success);
  color: white;
  box-shadow: 0 0 0 4px rgba(56, 161, 105, 0.2);
}
.timeline-item.completed::after { background: var(--accent-purple); }
.timeline-content { flex: 1; }
.timeline-title {
  font-weight: 700;
  font-size: 15px;
  color: var(--text-primary);
  margin-bottom: 2px;
}
.timeline-desc {
  font-size: 12px;
  color: var(--text-muted);
}
.timeline-time {
  background: #f8fafc;
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-purple);
  margin-top: 4px;
  display: inline-block;
}
.delivery-partner-card {
  background: #fff;
  border-radius: 20px;
  margin: 16px;
  padding: 16px;
  display: flex;
  align-items: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
.partner-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #4f46e5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 18px;
  margin-right: 16px;
}
.partner-info { flex: 1; }
.partner-name { font-weight: 700; font-size: 16px; margin-bottom: 2px; }
.partner-role { font-size: 12px; color: var(--text-muted); }
.partner-rating { font-size: 12px; font-weight: 600; color: #d97706; margin-top: 4px; display: flex; align-items: center; gap: 4px; }
.partner-call-btn {
  background: var(--accent-purple);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 10px 16px;
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* 4. Empty Cart Screen Redesign */
.empty-cart-premium {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 20px 20px;
  text-align: center;
  background: #fff;
  border-radius: 24px;
  margin: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}
.cart-gfx-container {
  position: relative;
  width: 200px;
  height: 200px;
  margin-bottom: 24px;
}
.cart-gfx-container img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.empty-cart-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.empty-cart-title span { color: var(--accent-purple); }
.empty-cart-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 24px;
  padding: 0 16px;
}
.btn-continue-shopping {
  background: linear-gradient(135deg, #6d28d9, #4c1d95);
  color: white;
  width: 100%;
  padding: 16px;
  border-radius: 16px;
  font-weight: 700;
  font-size: 15px;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 8px 20px rgba(109, 40, 217, 0.2);
}
.you-may-like-section {
  padding: 16px;
}
.yml-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.yml-header h3 { font-size: 18px; font-weight: 700; }
.yml-header a { font-size: 13px; font-weight: 600; color: var(--accent-purple); text-decoration: none; }
.yml-scroll {
  display: flex;
  overflow-x: auto;
  gap: 12px;
  padding-bottom: 12px;
  scrollbar-width: none;
}
.yml-scroll::-webkit-scrollbar { display: none; }
.yml-card {
  min-width: 140px;
  background: #fff;
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  border: 1px solid var(--border-color);
  position: relative;
}
.yml-card img {
  width: 100%;
  height: 100px;
  object-fit: contain;
  margin-bottom: 8px;
}
.yml-card .heart-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  color: var(--text-muted);
  background: transparent;
  border: none;
}
.yml-card-title { font-size: 12px; font-weight: 600; color: var(--text-primary); margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.yml-card-rating { font-size: 11px; color: #d97706; margin-bottom: 8px; display: flex; align-items: center; gap: 4px; }
.yml-card-bottom { display: flex; justify-content: space-between; align-items: center; }
.yml-card-price { font-weight: 700; font-size: 14px; color: var(--text-primary); }
.yml-add-btn { background: #f3e8ff; color: var(--accent-purple); border: none; width: 28px; height: 28px; border-radius: 8px; display: flex; align-items: center; justify-content: center; }

/* 5. Deals & Coupons Screen Redesign */
.deals-header-premium {
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.deals-header-text h2 { font-size: 24px; font-weight: 800; margin-bottom: 4px; }
.deals-header-text p { font-size: 13px; color: var(--text-muted); }
.deals-header-gfx {
  width: 100px;
  height: 80px;
}
.deals-toggle-wrap {
  display: flex;
  background: #f1f5f9;
  border-radius: 12px;
  margin: 0 16px 16px;
  padding: 4px;
}
.deals-toggle-btn {
  flex: 1;
  padding: 10px 0;
  text-align: center;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-muted);
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.deals-toggle-btn.active {
  background: var(--accent-purple);
  color: white;
  box-shadow: 0 4px 10px rgba(108, 46, 181, 0.2);
}
.coupon-ticket {
  display: flex;
  margin: 0 16px 16px;
  height: 120px;
  position: relative;
  filter: drop-shadow(0 6px 12px rgba(0,0,0,0.06));
}
.coupon-left {
  width: 100px;
  border-radius: 16px 0 0 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.coupon-left::after {
  content: '';
  position: absolute;
  right: -6px;
  top: 0;
  bottom: 0;
  width: 12px;
  background-image: radial-gradient(circle at 12px 6px, transparent 6px, #fff 7px);
  background-size: 12px 16px;
  background-position: -6px 0;
  z-index: 2;
}
.coupon-left img { width: 50px; height: 50px; object-fit: contain; }
.coupon-right {
  flex: 1;
  background: #fff;
  border-radius: 0 16px 16px 0;
  padding: 16px 16px 16px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.coupon-right::before {
  content: '';
  position: absolute;
  left: -6px;
  top: -10px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary-bg);
  z-index: 3;
}
.coupon-right::after {
  content: '';
  position: absolute;
  left: -6px;
  bottom: -10px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary-bg);
  z-index: 3;
}
.coupon-title { font-size: 16px; font-weight: 800; color: var(--text-primary); margin-bottom: 4px; }
.coupon-desc { font-size: 11px; color: var(--text-muted); line-height: 1.3; margin-bottom: 8px; }
.coupon-date { font-size: 10px; font-weight: 600; color: var(--accent-purple); display: flex; align-items: center; gap: 4px; }
.coupon-copy-btn {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--accent-purple);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.coupon-sash {
  position: absolute;
  top: 10px;
  right: -30px;
  background: #d97706;
  color: white;
  font-size: 9px;
  font-weight: 800;
  padding: 4px 30px;
  transform: rotate(45deg);
  text-transform: uppercase;
}
.coupon-ticket.gold .coupon-left { background: linear-gradient(135deg, #fde68a, #f59e0b); }
.coupon-ticket.green .coupon-left { background: linear-gradient(135deg, #bbf7d0, #22c55e); }
.coupon-ticket.purple .coupon-left { background: linear-gradient(135deg, #c4b5fd, #6d28d9); }
.coupon-ticket.purple-dark .coupon-left { background: linear-gradient(135deg, #8b5cf6, #4c1d95); }

/* ===== NEW PREMIUM TIMELINE STEPS ===== */
.timeline-step-new {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
  position: relative;
}
.ts-icon-wrap {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  z-index: 1;
}
.ts-purple { background: linear-gradient(135deg, #6D4FD6, #4C1D95); }
.ts-green  { background: linear-gradient(135deg, #10B981, #059669); }
.ts-grey   { background: #E2E8F0; }
.ts-line {
  width: 2px;
  background: #E2E8F0;
  position: absolute;
  left: 15px;
  top: 32px;
  bottom: -20px;
}
.timeline-step-new:last-child .ts-line { display: none; }
.ts-content {
  flex: 1;
  margin-left: 12px;
  padding-top: 4px;
}
.ts-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-primary);
  font-family: var(--font-display);
}
.ts-desc {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
  line-height: 1.4;
}
.ts-time {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  white-space: nowrap;
  padding-top: 6px;
  text-align: right;
}

/* ===== ORDER LIST CARD (PREMIUM) ===== */
.order-card-new {
  background: white;
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  border: 1px solid #F1F5F9;
}
.order-card-new-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

/* ===== COUPON CARD FIXES (DEALS & OFFERS) ===== */
.coupon-ticket-new {
  display: flex;
  margin: 0 16px;
  min-height: 115px;
  height: auto;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  position: relative;
  border: 1px solid #F1F5F9;
}

.coupon-left-new {
  width: 85px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.coupon-right-new {
  flex: 1;
  display: flex;
  padding: 12px 14px;
  position: relative;
  overflow: hidden;
  min-width: 0;
}

.coupon-details-new {
  flex: 1.4;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-right: 8px;
  min-width: 0;
  z-index: 1;
  position: relative;
}

.coupon-details-new h4 {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-primary, #1E293B);
  margin: 0 0 2px 0;
  line-height: 1.25;
}

.coupon-details-new p {
  font-size: 10px;
  color: var(--text-muted, #64748B);
  margin: 2px 0 6px 0;
  line-height: 1.3;
}

.coupon-validity-new {
  font-size: 9.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
  padding-top: 2px;
  padding-right: 12px;
  position: relative;
  z-index: 5;
  white-space: nowrap;
}

.coupon-notch-divider {
  width: 1px;
  border-left: 1.5px dashed #E2E8F0;
  margin: 4px 0;
  position: relative;
  flex-shrink: 0;
}

.coupon-notch-circle-top {
  content: '';
  position: absolute;
  top: -20px;
  left: -9px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #f8f9fa;
  z-index: 3;
}

.coupon-notch-circle-bottom {
  content: '';
  position: absolute;
  bottom: -20px;
  left: -9px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #f8f9fa;
  z-index: 3;
}

.coupon-actions-new {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-left: 6px;
  padding-top: 14px;
  position: relative;
  min-width: 95px;
  z-index: 1;
}

.coupon-sash-new {
  position: absolute;
  top: 7px;
  right: -26px;
  color: white;
  font-size: 6.5px;
  font-weight: 900;
  padding: 2.5px 24px;
  transform: rotate(45deg);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  pointer-events: none;
  z-index: 1;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.coupon-code-pill-new {
  color: white;
  border: 1.5px dashed rgba(255, 255, 255, 0.75);
  border-radius: 8px;
  padding: 6px 0;
  font-size: 11px;
  font-weight: 800;
  width: 88%;
  margin-bottom: 5px;
  cursor: pointer;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.coupon-code-pill-new:active {
  transform: scale(0.96);
}

.coupon-copy-text-new {
  font-size: 9px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 3px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

/* ==================== CATEGORIES SCREEN & SEARCH RESULTS ==================== */

/* Categories Tab Grid Layout */
#categoriesListContainer {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 16px;
}

/* Search Results Overlay */
.search-results-overlay {
  position: absolute;
  top: 100%;
  left: 16px;
  right: 16px;
  background-color: var(--card-bg, #ffffff);
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.05);
  max-height: 400px;
  overflow-y: auto;
  z-index: 1000;
  margin-top: 8px;
  padding: 8px;
}

/* Individual Search Result Item */
.search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.03);
  cursor: pointer;
  transition: background-color 0.2s;
  border-radius: 10px;
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item:hover {
  background-color: rgba(0, 0, 0, 0.02);
}

.search-result-item img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  border-radius: 8px;
  background-color: rgba(0, 0, 0, 0.02);
  flex-shrink: 0;
}

.search-result-info {
  flex: 1;
  min-width: 0; /* truncate text properly */
}

.sr-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary, #1e293b);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: left;
}

.sr-category {
  font-size: 10px;
  color: var(--text-muted, #64748b);
  font-weight: 500;
  text-align: left;
}

.search-result-price {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-purple, #6B46C1);
  flex-shrink: 0;
}

.search-no-results {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px 20px;
  text-align: center;
  color: var(--text-muted, #64748b);
}

.search-no-results svg {
  width: 32px;
  height: 32px;
  margin-bottom: 10px;
  stroke: var(--text-muted, #64748b);
}

.search-no-results div {
  font-size: 12px;
  font-weight: 600;
}

@ m e d i a   ( m i n - w i d t h :   4 8 1 p x )   {   h t m l   {   b a c k g r o u n d :   # e 2 e 8 f 0 ;   d i s p l a y :   f l e x ;   j u s t i f y - c o n t e n t :   c e n t e r ;   }   b o d y   {   m a x - w i d t h :   4 8 0 p x ;   h e i g h t :   1 0 0 v h ;   p o s i t i o n :   r e l a t i v e ;   b o x - s h a d o w :   0   0   2 0 p x   r g b a ( 0 , 0 , 0 , 0 . 1 5 ) ;   }   # s p l a s h ,   # p r e l o a d e r ,   . b o t t o m - n a v - n e w ,   . o n b o a r d i n g - s c r e e n ,   . a p p - h e a d e r - n e w ,   . t o p - s e a r c h - h e a d e r - n e w ,   # b o t t o m C a r t W i d g e t ,   # s o c i a l L o g i n M o d a l ,   # l o c a t i o n P i c k e r O v e r l a y ,   . t o a s t   {   m a x - w i d t h :   4 8 0 p x   ! i m p o r t a n t ;   l e f t :   5 0 %   ! i m p o r t a n t ;   t r a n s f o r m :   t r a n s l a t e X ( - 5 0 % )   ! i m p o r t a n t ;   r i g h t :   a u t o   ! i m p o r t a n t ;   m a r g i n :   0   ! i m p o r t a n t ;   }   }  
 