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

:root {
  /* Brand Palette */
  --primary: hsl(152, 76%, 42%);      /* Vibrant Green from reference image */
  --primary-light: hsl(152, 76%, 95%);
  --primary-glow: hsla(152, 76%, 42%, 0.15);
  --primary-dark: hsl(152, 76%, 32%);
  
  --accent-red: hsl(354, 76%, 59%);
  --accent-red-light: hsl(354, 76%, 96%);
  
  /* Neutral Palette */
  --bg-app: hsl(220, 20%, 97%);       /* Off-white background */
  --bg-card: hsl(0, 0%, 100%);        /* White cards */
  --text-main: hsl(220, 20%, 10%);    /* Deep charcoal */
  --text-muted: hsl(220, 10%, 45%);   /* Muted gray */
  --text-light: hsl(220, 10%, 65%);   /* Lighter gray */
  --border: hsl(220, 15%, 92%);       /* Border color */
  --border-light: hsl(220, 15%, 96%); /* Light border */
  
  /* System UI */
  --phone-width: 412px;
  --phone-height: 840px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 16px 36px rgba(0, 0, 0, 0.08);
  --shadow-inset: inset 0 2px 4px rgba(0, 0, 0, 0.06);
  
  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-spring: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Base Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--font);
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

body {
  background: var(--bg-app);
  min-height: 100vh;
  color: var(--text-main);
}

/* App Shell Layout */
.app-container {
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  background: var(--bg-app);
}

/* Screens Layout Container */
.screen-wrapper {
  flex: 1;
  position: relative;
  overflow: hidden;
}

/* Screen Base */
.screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none; /* Controlled via JS */
  flex-direction: column;
  background: var(--bg-app);
  overflow-y: auto;
  overflow-x: hidden;
  padding-bottom: 90px; /* Safe area for bottom navigation */
}

/* Custom Scrollbar for screens */
.screen::-webkit-scrollbar {
  width: 4px;
}
.screen::-webkit-scrollbar-track {
  background: transparent;
}
.screen::-webkit-scrollbar-thumb {
  background: hsl(220, 10%, 80%);
  border-radius: 4px;
}

/* Active Page State */
.screen.active {
  display: flex;
}

/* Nav Bar styles */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 72px;
  background: hsla(0, 0%, 100%, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0 16px 12px 16px; /* Extra bottom padding for home indicator styling */
  z-index: 90;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.03);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 10px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-fast);
  position: relative;
  flex: 1;
  height: 100%;
  padding-top: 8px;
}

.nav-item svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--text-muted);
  stroke-width: 2;
  transition: var(--transition-fast);
  margin-bottom: 3px;
}

.nav-item.active {
  color: var(--primary);
}

.nav-item.active svg {
  stroke: var(--primary);
  transform: translateY(-2px);
}

/* Notification / Cart Badges */
.nav-badge {
  position: absolute;
  top: 4px;
  right: 25%;
  background: var(--primary);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 2px solid var(--bg-card);
  animation: badgePop var(--transition-spring);
  pointer-events: none;
}

.nav-badge.hidden {
  display: none;
}

/* Animations */
@keyframes badgePop {
  0% { transform: scale(0); }
  100% { transform: scale(1); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Headers */
.screen-header {
  padding: 16px 20px;
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
  text-align: center;
  flex: 1;
}

.btn-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-app);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
  color: var(--text-main);
}

.btn-icon:active {
  transform: scale(0.9);
  background: var(--border);
}

.btn-icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

/* Buttons */
.btn-primary {
  width: 100%;
  padding: 15px 24px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(15, 203, 116, 0.2);
}

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

.btn-primary:active {
  transform: scale(0.97);
}

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

/* 1. Login & OTP Screen Style */
.screen-login {
  background: linear-gradient(180deg, var(--primary) 0%, var(--primary) 30%, var(--bg-app) 30%, var(--bg-app) 100%);
  padding-bottom: 0;
}

.login-top {
  height: 30%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  padding: 20px;
}

.logo-box {
  width: 68px;
  height: 68px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.logo-box svg {
  width: 36px;
  height: 36px;
  stroke: white;
  stroke-width: 2.5;
  fill: none;
}

.logo-title {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.login-card {
  flex: 1;
  background: var(--bg-card);
  border-radius: 36px 36px 0 0;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 -10px 30px rgba(0,0,0,0.03);
}

.login-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 8px;
  text-align: center;
}

.login-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 30px;
  line-height: 1.5;
  max-width: 280px;
}

.phone-input-container {
  width: 100%;
  display: flex;
  background: var(--bg-app);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px 18px;
  margin-bottom: 24px;
  align-items: center;
  transition: var(--transition-fast);
}

.phone-input-container:focus-within {
  border-color: var(--primary);
  background: var(--bg-card);
  box-shadow: 0 0 0 4px var(--primary-glow);
}

.phone-prefix {
  font-weight: 600;
  color: var(--text-main);
  margin-right: 12px;
  border-right: 1px solid var(--border);
  padding-right: 12px;
}

.phone-input {
  border: none;
  background: transparent;
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-main);
  letter-spacing: 0.5px;
}

.otp-inputs-row {
  display: flex;
  justify-content: space-between;
  width: 100%;
  gap: 8px;
  margin-bottom: 32px;
}

.otp-input {
  width: 48px;
  height: 54px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-app);
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-main);
  transition: var(--transition-fast);
}

.otp-input:focus {
  border-color: var(--primary);
  background: var(--bg-card);
  box-shadow: 0 0 0 4px var(--primary-glow);
}

.otp-input.error {
  border-color: var(--accent-red);
  background: var(--accent-red-light);
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.15);
}

.error-msg {
  color: var(--accent-red);
  font-size: 13px;
  font-weight: 600;
  margin-top: -16px;
  margin-bottom: 20px;
  text-align: center;
  animation: shake 0.3s ease-in-out;
}

.error-msg.hidden {
  display: none;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

.phone-highlight {
  color: var(--primary);
  font-weight: 700;
}

.resend-text {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 24px;
  text-align: center;
}

.resend-link {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.resend-link.disabled {
  color: var(--text-light);
  cursor: not-allowed;
}

/* 2. Home Screen Style */
.home-header {
  padding: 16px 20px;
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.home-header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.location-box {
  display: flex;
  flex-direction: column;
}

.location-label {
  font-size: 11px;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
}

.location-value-container {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.location-value {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-main);
}

.location-value-container svg {
  width: 14px;
  height: 14px;
  stroke: var(--text-main);
  stroke-width: 2.5;
  fill: none;
}

.location-sub {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
}

.header-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.notification-btn {
  position: relative;
}

.notification-dot {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 8px;
  height: 8px;
  background: var(--accent-red);
  border-radius: 50%;
  border: 1.5px solid var(--bg-card);
}

.btn-login-nav {
  padding: 8px 14px;
  background: var(--bg-card);
  border: 1.5px solid var(--primary);
  color: var(--primary);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-fast);
}

.btn-login-nav svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.btn-login-nav:active {
  transform: scale(0.95);
  background: var(--primary-light);
}

/* Search Bar */
.search-container {
  display: flex;
  background: var(--bg-app);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 16px;
  align-items: center;
  gap: 10px;
  transition: var(--transition-fast);
}

.search-container:focus-within {
  border-color: var(--primary);
  background: var(--bg-card);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.search-container svg {
  width: 18px;
  height: 18px;
  stroke: var(--text-muted);
  stroke-width: 2.2;
  fill: none;
}

.search-input {
  border: none;
  background: transparent;
  flex: 1;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-main);
}

/* Category Slider */
.categories-slider {
  display: flex;
  overflow-x: auto;
  gap: 16px;
  padding: 16px 20px;
  background: var(--bg-card);
  user-select: none;
}

.categories-slider::-webkit-scrollbar {
  display: none;
}

.category-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  flex-shrink: 0;
}

.category-icon-wrapper {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.category-item:active .category-icon-wrapper {
  transform: scale(0.9);
}

.category-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-main);
}

/* Section Styling */
.section-wrapper {
  padding: 20px;
}

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

.section-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-main);
}

.section-link {
  color: var(--primary);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

/* Popular Near You Cards */
.stores-row {
  display: flex;
  overflow-x: auto;
  gap: 14px;
  padding-bottom: 8px;
}

.stores-row::-webkit-scrollbar {
  display: none;
}

.store-card {
  width: 200px;
  background: var(--bg-card);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: 1px solid var(--border-light);
}

.store-card:active {
  transform: translateY(2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.store-banner {
  height: 110px;
  background-color: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
}

.store-info {
  padding: 12px 14px;
}

.store-name {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.store-rating-row {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
}

.store-rating-row svg {
  width: 14px;
  height: 14px;
  fill: hsl(45, 100%, 50%);
  stroke: hsl(45, 100%, 50%);
}

.store-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.store-meta svg {
  width: 12px;
  height: 12px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.free-delivery-badge {
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
}

/* Products Grid / Horizontal List */
.products-scroll {
  display: flex;
  overflow-x: auto;
  gap: 14px;
  padding-bottom: 8px;
}

.products-scroll::-webkit-scrollbar {
  display: none;
}

.product-card {
  width: 145px;
  background: var(--bg-card);
  border-radius: 20px;
  padding: 12px;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: var(--transition-smooth);
  border: 1px solid var(--border-light);
}

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

.product-image-container {
  height: 100px;
  width: 100%;
  background: var(--bg-app);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  font-size: 44px;
  position: relative;
  overflow: hidden;
}

.product-image-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-weight {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.product-price {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-main);
}

/* Floating Add Action Button */
.btn-add-product {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-add-product svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2.5;
  fill: none;
}

.btn-add-product:active {
  transform: scale(0.85);
}

/* Quantity Adjuster inline state */
.qty-adjuster {
  display: flex;
  align-items: center;
  background: var(--primary-light);
  border: 1px solid var(--primary);
  border-radius: 16px;
  padding: 2px;
  gap: 8px;
}

.btn-qty-mini {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg-card);
  border: none;
  color: var(--primary);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 12px;
}

.qty-val-mini {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary-dark);
}

/* 3. Categories Screen Style */
.categories-grid-container {
  padding: 16px;
}

.filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-card);
  padding: 10px 16px;
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 57px;
  z-index: 9;
}

.filter-chip-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  flex: 1;
}

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

.filter-chip {
  padding: 8px 14px;
  border-radius: 12px;
  background: var(--bg-app);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  flex-shrink: 0;
  transition: var(--transition-fast);
}

.filter-chip.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.btn-sort-filter-trigger {
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  margin-left: 8px;
}

.btn-sort-filter-trigger svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 2.2;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding-top: 12px;
}

.products-grid .product-card {
  width: 100%;
}

/* 4. Cart Screen Style */
.cart-items-list {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cart-item-card {
  background: var(--bg-card);
  border-radius: 20px;
  padding: 14px;
  display: flex;
  gap: 12px;
  align-items: center;
  box-shadow: var(--shadow-sm);
  position: relative;
  border: 1px solid var(--border-light);
}

.cart-item-image {
  width: 68px;
  height: 68px;
  background: var(--bg-app);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
}

.cart-item-details {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.cart-item-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 2px;
}

.cart-item-weight {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

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

.cart-item-right-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.btn-delete-cart {
  color: var(--accent-red);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
  transition: var(--transition-fast);
}

.btn-delete-cart:active {
  transform: scale(0.85);
}

.btn-delete-cart svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2.2;
}

/* Promo Code Box */
.promo-section {
  margin: 0 16px 12px 16px;
  background: var(--bg-card);
  border-radius: 20px;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}

.promo-tag-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.promo-tag-icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2.2;
  fill: none;
}

.promo-input {
  border: none;
  background: transparent;
  flex: 1;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
}

.promo-input::placeholder {
  color: var(--text-muted);
  font-weight: 500;
}

.btn-promo-apply {
  padding: 10px 18px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-promo-apply:active {
  transform: scale(0.95);
}

/* Bill Summary Box */
.bill-summary-card {
  margin: 0 16px 20px 16px;
  background: var(--bg-card);
  border-radius: 24px;
  padding: 18px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}

.bill-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 14px;
}

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

.bill-row.discount {
  color: var(--primary);
  font-weight: 600;
}

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

.bill-row.total {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0;
}

/* Cart Footer Actions */
.cart-footer {
  position: absolute;
  bottom: 72px; /* sits right above bottom nav */
  left: 0;
  width: 100%;
  background: var(--bg-card);
  padding: 12px 16px;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.03);
  z-index: 10;
}

/* Empty Cart State */
.empty-cart-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
}

.empty-cart-icon {
  width: 80px;
  height: 80px;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 16px;
}

.empty-cart-icon svg {
  width: 36px;
  height: 36px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.empty-cart-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 6px;
}

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

/* 5. Shop Detail Screen Style */
.shop-hero {
  height: 160px;
  background-color: var(--primary-light);
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 16px 20px;
}

.shop-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.5) 100%);
}

.shop-hero-info {
  position: relative;
  color: white;
  z-index: 1;
}

.shop-hero-name {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 4px;
}

.shop-hero-tags {
  font-size: 12px;
  opacity: 0.9;
}

.shop-details-container {
  background: var(--bg-card);
  border-radius: 28px 28px 0 0;
  margin-top: -20px;
  position: relative;
  z-index: 2;
  padding: 20px;
  min-height: calc(100% - 140px);
}

.shop-details-meta {
  display: flex;
  justify-content: space-around;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 16px;
  margin-bottom: 16px;
}

.shop-meta-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.shop-meta-label {
  font-size: 11px;
  color: var(--text-light);
  font-weight: 600;
}

.shop-meta-value {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 2px;
}

/* 6. Order Tracking Screen Style */
.tracking-container {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.tracking-card {
  background: var(--bg-card);
  border-radius: 24px;
  padding: 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}

.tracking-status-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.tracking-status-gif {
  font-size: 32px;
  width: 54px;
  height: 54px;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: float 2s infinite ease-in-out;
}

.tracking-status-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 2px;
}

.tracking-status-desc {
  font-size: 12px;
  color: var(--text-muted);
}

/* Visual Map Simulator */
.map-simulator {
  height: 180px;
  background: #e3f2fd;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-inset);
  margin-bottom: 16px;
}

.map-road {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 12px;
  background: #b0bec5;
  transform: translateY(-50%);
}

.map-road-dashed {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  background: repeating-linear-gradient(90deg, #fff, #fff 10px, transparent 10px, transparent 20px);
  transform: translateY(-50%);
}

.map-shop-marker {
  position: absolute;
  top: 50%;
  left: 30px;
  transform: translateY(-50%);
  font-size: 24px;
}

.map-home-marker {
  position: absolute;
  top: 50%;
  right: 30px;
  transform: translateY(-50%);
  font-size: 24px;
}

.map-courier-marker {
  position: absolute;
  top: 50%;
  left: 30px; /* Moves dynamically via JS */
  transform: translate(-50%, -50%);
  font-size: 26px;
  transition: left 1s linear;
}

/* Timeline */
.timeline {
  display: flex;
  flex-direction: column;
  position: relative;
  padding-left: 24px;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 5px;
  width: 2px;
  height: calc(100% - 24px);
  background: var(--border);
}

.timeline-item {
  position: relative;
  padding-bottom: 20px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-dot {
  position: absolute;
  top: 4px;
  left: -24px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--border);
  border: 2.5px solid var(--bg-card);
  transition: var(--transition-fast);
}

.timeline-item.active .timeline-dot {
  background: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-glow);
}

.timeline-item.completed .timeline-dot {
  background: var(--primary);
}

.timeline-item.completed::after {
  content: '';
  position: absolute;
  top: 8px;
  left: -19px;
  width: 2px;
  height: calc(100% + 12px);
  background: var(--primary);
  z-index: 1;
}

.timeline-item:last-child.completed::after {
  display: none;
}

.timeline-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
}

.timeline-item.active .timeline-title {
  color: var(--text-main);
}

.timeline-item.completed .timeline-title {
  color: var(--text-main);
  text-decoration: line-through;
  opacity: 0.6;
}

.timeline-time {
  font-size: 11px;
  color: var(--text-light);
  margin-top: 2px;
}

/* 7. Settings Screen Style */
.settings-menu {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
}

.settings-card {
  background: var(--bg-card);
  border-radius: 20px;
  padding: 16px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-light);
}

.profile-section {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.profile-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
}

.profile-info {
  display: flex;
  flex-direction: column;
}

.profile-name {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-main);
}

.profile-phone {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}

.menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-light);
  cursor: pointer;
  transition: var(--transition-fast);
}

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

.menu-item:active {
  opacity: 0.6;
}

.menu-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.menu-item-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--bg-app);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.menu-item-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2.2;
}

.menu-item-text {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
}

.menu-item-chevron svg {
  width: 16px;
  height: 16px;
  stroke: var(--text-light);
  stroke-width: 2.2;
}

.menu-item.logout .menu-item-icon {
  background: var(--accent-red-light);
  color: var(--accent-red);
}

.menu-item.logout .menu-item-text {
  color: var(--accent-red);
}

/* Modals & Sheets */
.bottom-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--bg-card);
  border-radius: 32px 32px 0 0;
  z-index: 110;
  transform: translateY(100%);
  transition: transform var(--transition-smooth);
  box-shadow: 0 -10px 40px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
  max-height: 80%;
  padding-bottom: 24px;
}

.bottom-sheet.open {
  transform: translateY(0);
}

.bottom-sheet-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 105;
  display: none;
  opacity: 0;
  transition: opacity var(--transition-smooth);
}

.bottom-sheet-overlay.open {
  display: block;
  opacity: 1;
}

.sheet-handle {
  width: 48px;
  height: 5px;
  background: var(--border);
  border-radius: 3px;
  margin: 12px auto;
  cursor: pointer;
}

.sheet-header {
  padding: 0 24px 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-light);
}

.sheet-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-main);
}

.sheet-content {
  padding: 20px 24px;
  overflow-y: auto;
}

/* Product Detail Sheet elements */
.detail-sheet-hero {
  height: 160px;
  background: var(--bg-app);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 72px;
  margin-bottom: 16px;
}

.detail-sheet-name {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 4px;
}

.detail-sheet-weight {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.detail-sheet-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 20px;
}

.detail-sheet-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-light);
  padding-top: 16px;
}

.detail-sheet-price {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-main);
}

.detail-sheet-actions {
  display: flex;
  align-items: center;
}

.btn-add-detail {
  padding: 10px 24px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-add-detail:active {
  transform: scale(0.95);
}

/* Toast Notification */
.toast-notice {
  position: fixed;
  bottom: 90px;
  left: 50%;
  transform: translate(-50%, 20px);
  background: hsl(220, 20%, 15%);
  color: white;
  padding: 10px 18px;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 600;
  z-index: 200;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.toast-notice.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.toast-notice svg {
  width: 14px;
  height: 14px;
  stroke: var(--primary);
  stroke-width: 3;
}

/* Responsive adjustment: stretch when the viewport is small (like a real mobile phone screen) */
/* Onboarding Screen Style */
.screen-onboarding {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--bg-card);
  padding-bottom: 0;
}

.onboarding-slides-container {
  flex: 1;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.onboarding-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: opacity 0.4s ease;
  pointer-events: none;
  padding: 40px 24px;
}

.onboarding-slide.active {
  opacity: 1;
  pointer-events: auto;
  position: relative;
}

.onboarding-graphics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  width: 100%;
  max-width: 280px;
  margin-bottom: 30px;
}

.graphic-item {
  background: var(--bg-app);
  border-radius: 20px;
  padding: 16px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  aspect-ratio: 1;
}

.graphic-item span {
  font-size: 10px;
  font-weight: 700;
  margin-top: 6px;
  color: var(--text-main);
}

.onboarding-graphic-singles {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 40px;
  box-shadow: 0 10px 25px rgba(15, 203, 116, 0.1);
}

.graphic-emoji-big {
  font-size: 64px;
  animation: float 3s infinite ease-in-out;
}

.onboarding-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-main);
  text-align: center;
  margin-bottom: 12px;
  line-height: 1.2;
}

.onboarding-desc {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.5;
  max-width: 260px;
}

.onboarding-footer {
  padding: 20px 24px 40px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-card);
  border-top: 1px solid var(--border-light);
}

.onboarding-dots {
  display: flex;
  gap: 6px;
}

.onboarding-dots .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border);
  transition: var(--transition-fast);
}

.onboarding-dots .dot.active {
  width: 14px;
  border-radius: 3px;
  background: var(--primary);
}

.btn-onboarding-next {
  padding: 10px 24px;
  background: hsl(220, 20% ,10%);
  color: white;
  border: none;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
}

.btn-onboarding-next:active {
  transform: scale(0.95);
}

.btn-onboarding-skip {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

/* Home Search Filter & Promo Carousel Styles */
.search-row {
  display: flex;
  gap: 10px;
  align-items: center;
  width: 100%;
}

.btn-home-filter {
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-home-filter svg {
  width: 20px;
  height: 20px;
}

.btn-home-filter:active {
  transform: scale(0.9);
}

.promo-carousel-wrapper {
  margin: 24px 12px 0;
  overflow: hidden;
  position: relative;
  border-radius: 8px;
  flex-shrink: 0;
}

.promo-carousel {
  display: flex;
  width: 100%;
  height: clamp(106px, 24vw, 240px);
  background: transparent;
  border-radius: 8px;
  transition: transform 0.45s ease;
  will-change: transform;
}

.promo-banner-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  min-height: 0;
  aspect-ratio: auto;
  overflow: hidden;
}

.promo-banner-slide-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: transparent;
}

.promo-arrow {
  position: absolute;
  top: calc(50% - 12px);
  z-index: 3;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #10221b;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  transform: translateY(-50%);
}

.promo-arrow-prev { left: 8px; }
.promo-arrow-next { right: 8px; }

.promo-header-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 6px;
}

.logo-circle {
  width: 16px;
  height: 16px;
  background: white;
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 800;
}

.promo-banner-text {
  flex: 1;
}

.promo-banner-text h3 {
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 4px;
  line-height: 1.3;
}

.promo-banner-text p {
  font-size: 10px;
  opacity: 0.9;
  margin-bottom: 10px;
  line-height: 1.4;
}

.btn-promo-shop {
  padding: 5px 12px;
  background: white;
  color: var(--text-main);
  border: none;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}

.promo-banner-graphic {
  font-size: 54px;
  margin-left: 10px;
  user-select: none;
}

.promo-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 10px 0 2px;
}

.promo-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c8eee0;
  cursor: pointer;
  transition: var(--transition-fast);
}

.promo-dot.active {
  width: 18px;
  border-radius: 4px;
  background: var(--primary);
}

@media (max-width: 500px) {
  .promo-carousel {
    height: 118px;
  }
}

/* Category Grid Style */
.categories-grid-new {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 14px;
}

.categories-grid-new .category-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.categories-grid-new .category-icon-wrapper {
  width: 54px;
  height: 54px;
  border-radius: 16px;
}

.categories-grid-new .category-name {
  font-size: 11px;
  font-weight: 600;
}

/* Product Details Screen Styles */
.screen-product-detail {
  background: var(--bg-card);
}

.product-detail-body {
  flex: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.detail-img-circle-container {
  display: flex;
  justify-content: center;
  position: relative;
  margin-bottom: 24px;
}

.detail-img-circle {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: hsl(45, 100%, 93%);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.btn-share-product {
  position: absolute;
  right: 28px;
  bottom: 8px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  color: var(--text-main);
  transition: var(--transition-fast);
}

.btn-share-product:active {
  transform: scale(0.9);
}

.btn-share-product svg {
  width: 18px;
  height: 18px;
}

.product-detail-info {
  display: flex;
  flex-direction: column;
}

.detail-product-name {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 4px;
}

.detail-product-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.detail-product-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 16px;
}

.detail-product-rating svg {
  width: 14px;
  height: 14px;
  fill: hsl(45, 100%, 50%);
}

.detail-product-price {
  font-size: 26px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 20px;
}

.detail-qty-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.detail-qty-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
}

.detail-qty-options {
  display: flex;
  gap: 10px;
}

.qty-option-card {
  flex: 1;
  padding: 10px;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  background: var(--bg-card);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: var(--transition-fast);
}

.qty-option-card span {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.qty-option-card strong {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-main);
  margin-top: 4px;
}

.qty-option-card.active {
  border-color: var(--primary);
  background: var(--primary-light);
}

.qty-option-card.active span {
  color: var(--primary-dark);
}

.qty-option-card.active strong {
  color: var(--primary-dark);
}

.product-detail-footer {
  padding: 16px 20px 28px 20px;
  background: var(--bg-card);
  border-top: 1px solid var(--border-light);
  display: flex;
  gap: 16px;
  align-items: center;
}

.qty-adjuster-large {
  display: flex;
  align-items: center;
  background: var(--bg-app);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 3px;
  gap: 12px;
}

.btn-qty-large {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-card);
  border: none;
  color: var(--text-main);
  font-weight: 700;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.qty-val-large {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  min-width: 14px;
  text-align: center;
}

/* Checkout Screen Styles */
.checkout-body {
  flex: 1;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.checkout-card {
  background: var(--bg-card);
  border-radius: 20px;
  padding: 16px;
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.checkout-card-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-main);
}

.checkout-card-title .text-optional {
  font-size: 10px;
  font-weight: 500;
  color: var(--text-light);
}

.address-details-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.address-details-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.address-label-bold {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-main);
}

.btn-change-address {
  background: transparent;
  border: none;
  color: hsl(220, 80%, 45%);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.address-text-full {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

.address-phone-num {
  font-size: 12px;
  color: var(--text-muted);
}

.checkout-divider {
  height: 1px;
  background: var(--border-light);
  margin: 14px 0;
}

.instructions-input {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid hsl(152, 60%, 80%);
  background: hsl(152, 76%, 96%);
  border-radius: 10px;
  font-size: 13px;
  color: hsl(152, 76%, 30%);
  font-weight: 600;
  transition: var(--transition-fast);
}

.instructions-input:focus {
  outline: none;
  border-color: var(--primary);
  background: hsl(152, 76%, 94%);
}

.payment-method-pill-active {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1.5px solid var(--primary);
  background: var(--bg-card);
  border-radius: 10px;
}

.radio-circle {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--border);
  position: relative;
}

.radio-circle.active {
  border-color: var(--primary);
}

.radio-circle.active::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
}

.payment-method-text {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
}

.checkout-footer {
  padding: 16px 20px 28px 20px;
  background: var(--bg-card);
  border-top: 1px solid var(--border-light);
}

/* Order Tracking Screen Stepper Styles */
.arriving-card {
  background: var(--primary-light);
  border-radius: 20px;
  padding: 16px;
  border: 1.5px solid var(--primary-glow);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.arriving-card-left {
  display: flex;
  flex-direction: column;
}

.arriving-label {
  font-size: 13px;
  color: var(--primary-dark);
  font-weight: 700;
}

.arriving-time {
  font-size: 34px;
  font-weight: 800;
  color: var(--text-main);
  margin: 2px 0;
}

.arriving-time .min-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
}

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

.scooter-rider-graphic {
  font-size: 54px;
  display: block;
}

.order-meta-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 14px 0;
}

.order-meta-id {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 2px;
}

.order-meta-date {
  font-size: 11px;
  color: var(--text-light);
}

.horizontal-stepper-card {
  background: var(--bg-card);
  border-radius: 20px;
  padding: 18px 24px;
  border: 1px solid var(--border-light);
  position: relative;
  height: 80px;
  display: flex;
  align-items: center;
}

.horizontal-line-progress-container {
  position: absolute;
  top: 38px;
  left: 36px;
  width: calc(100% - 72px);
  height: 4px;
  background: var(--border);
  z-index: 1;
}

.horizontal-line-progress {
  height: 100%;
  background: var(--primary);
  width: 33%;
  transition: width 1s linear;
}

.stepper-nodes {
  position: absolute;
  top: 18px;
  left: 20px;
  width: calc(100% - 40px);
  display: flex;
  justify-content: space-between;
  z-index: 2;
}

.step-node {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.step-node .node-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  border: 2.5px solid var(--bg-card);
  color: var(--text-light);
  transition: var(--transition-fast);
}

.step-node.active .node-circle {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary-dark);
}

.delivery-partner-card {
  background: var(--bg-card);
  border-radius: 20px;
  padding: 14px;
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 12px;
}

.partner-avatar-img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  overflow: hidden;
}

.partner-details {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.partner-label {
  font-size: 11px;
  color: var(--text-light);
  font-weight: 600;
  margin-bottom: 2px;
}

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

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

.btn-partner-call {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-app);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-partner-call svg {
  width: 16px;
  height: 16px;
}

.btn-partner-call:active {
  transform: scale(0.9);
}

/* My Orders Screen Styles */
/* My Orders Screen Styles */
.orders-filter-tabs {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-light);
}

.order-tab {
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  border: 1.5px solid transparent;
  background: transparent;
  transition: var(--transition-fast);
  text-align: center;
}

.order-tab.active {
  background: hsl(152, 76%, 93%);
  color: hsl(152, 76%, 35%);
  border-color: hsl(152, 76%, 42%);
}

.orders-list-container {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.order-card-new {
  background: var(--bg-card);
  border-radius: 20px;
  padding: 16px;
  border: 1.5px solid hsl(152, 20%, 92%);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.order-card-header-new {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.order-card-id-new {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-main);
}

.order-card-status-badge {
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
  border: 1px solid transparent;
}

.order-card-status-badge.status-on-the-way {
  background: hsl(40, 100%, 96%);
  color: hsl(40, 95%, 45%);
  border-color: hsl(40, 100%, 85%);
}

.order-card-status-badge.status-delivered {
  background: hsl(152, 76%, 94%);
  color: hsl(152, 76%, 32%);
  border-color: hsl(152, 76%, 82%);
}

.order-card-status-badge.status-cancelled {
  background: var(--accent-red-light);
  color: var(--accent-red);
  border-color: hsl(0, 100%, 92%);
}

.order-card-date-new {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: -4px;
}

.order-card-divider {
  height: 1px;
  background: var(--border-light);
  margin: 2px 0;
}

.order-card-delivery-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
}

.order-card-delivery-info span {
  font-weight: 700;
  color: var(--text-main);
}

.order-card-delivery-info strong {
  font-weight: 500;
  color: var(--text-muted);
  font-size: 12px;
}

.order-card-items-new {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
}

.order-card-footer-new {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-light);
  padding-top: 12px;
}

.order-card-total-new {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-main);
}

.order-card-footer-new .btn-primary {
  width: auto;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  border-radius: 8px;
  background: var(--primary);
  color: white;
  border: none;
  cursor: pointer;
  box-shadow: none;
}
/* Order Success Screen Styles */
.screen-success {
  background: var(--bg-app);
  overflow-y: auto;
}

.btn-close-success {
  position: absolute;
  top: 60px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  cursor: pointer;
  z-index: 10;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
}

.btn-close-success:active {
  transform: scale(0.9);
}

.btn-close-success svg {
  width: 18px;
  height: 18px;
}

.success-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 80px 24px 40px 24px;
  text-align: center;
  gap: 16px;
}

.success-checkmark-circle {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: hsl(152, 76%, 94%);
  border: 2px solid hsl(152, 76%, 82%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.success-checkmark {
  font-size: 48px;
  color: var(--primary);
  font-weight: bold;
}

.success-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1.3;
}

.success-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: -8px;
  font-weight: 600;
}

.success-meta {
  font-size: 12px;
  color: var(--text-light);
  line-height: 1.5;
  margin-top: -4px;
}

.success-card {
  width: 100%;
  background: var(--bg-card);
  border-radius: 20px;
  padding: 16px;
  border: 1.5px solid hsl(152, 20%, 92%);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
}

.success-card-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 2px;
}

.success-delivery-time {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-main);
  text-align: center;
  margin: 6px 0;
}

.success-items-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
}

.success-item-row {
  display: flex;
  justify-content: space-between;
  color: var(--text-muted);
}

.success-item-name {
  flex: 1;
  color: var(--text-main);
}

.success-item-qty {
  width: 40px;
  text-align: center;
}

.success-item-price {
  width: 60px;
  text-align: right;
  font-weight: 600;
  color: var(--text-main);
}

.success-divider {
  height: 1px;
  background: var(--border-light);
  margin: 2px 0;
}

.success-row.total {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: var(--text-main);
}

.success-row.total strong {
  font-weight: 800;
  font-size: 15px;
}

.btn-secondary-home {
  width: 100%;
  padding: 14px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 700;
  border: none;
  background: #e2e8f0;
  color: #475569;
  cursor: pointer;
  margin-top: 10px;
  transition: var(--transition-fast);
}

.btn-secondary-home:active {
  transform: scale(0.98);
  background: #cbd5e1;
}

/* Settings / Profile Screen Styles */
.profile-container {
  display: flex;
  flex-direction: column;
  background: var(--bg-app);
  height: calc(100% - 57px);
  overflow-y: auto;
}

.profile-header-area {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 20px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-light);
}

.profile-image-container {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 2.5px solid var(--primary);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  background: var(--bg-app);
}

.profile-img-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-meta-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.profile-name-bold {
  font-size: 19px;
  font-weight: 800;
  color: var(--text-main);
}

.profile-phone-muted {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

.profile-sections-wrapper {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.profile-section-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.profile-section-title {
  font-size: 12px;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-left: 4px;
}

.profile-menu-card {
  background: var(--bg-card);
  border-radius: 20px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.profile-menu-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-light);
  cursor: pointer;
  background: var(--bg-card);
  transition: var(--transition-fast);
}

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

.profile-menu-item:active {
  background: var(--bg-app);
}

.profile-menu-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.profile-icon-box {
  width: 20px;
  height: 20px;
  color: #475569;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-icon-box svg {
  width: 100%;
  height: 100%;
}

.profile-menu-text {
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
}

.profile-menu-chevron {
  width: 16px;
  height: 16px;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-menu-chevron svg {
  width: 100%;
  height: 100%;
  stroke-width: 2.5;
}

.profile-menu-item.logout .profile-icon-box {
  color: var(--accent-red);
}

.profile-menu-item.logout .profile-menu-text {
  color: var(--accent-red);
}

/* PC Desktop Web App Mode Styles */
@media (min-width: 768px) {
  /* Move bottom nav to top desktop header */
  .bottom-nav {
    position: fixed;
    top: 0;
    bottom: auto;
    height: 64px;
    background: white;
    box-shadow: var(--shadow-sm);
    border-top: none;
    border-bottom: 1px solid var(--border-light);
    padding: 0 60px;
    justify-content: flex-end;
    gap: 40px;
    z-index: 100;
  }

  .bottom-nav::before {
    content: 'DELZZY';
    font-weight: 900;
    font-size: 22px;
    color: var(--primary);
    margin-right: auto;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
  }

  .nav-item {
    height: 100%;
    border-top: 3px solid transparent;
    border-bottom: 3px solid transparent;
    padding: 0 10px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-muted);
  }

  .nav-item.active {
    border-bottom-color: var(--primary);
    background: transparent;
    color: var(--primary);
  }

  .nav-item svg {
    width: 18px;
    height: 18px;
    margin-bottom: 0;
  }

  /* Content wrapper styling under desktop header */
  .app-container {
    height: 100%;
    padding-top: 64px;
    padding-bottom: 0;
    background: var(--bg-app);
  }

  .screen-wrapper {
    height: 100%;
  }

  .screen {
    padding-top: 24px;
    padding-bottom: 40px;
    overflow-y: auto;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding-left: 20px;
    padding-right: 20px;
  }

  /* Adjust page headers in desktop mode */
  .screen-header {
    background: transparent !important;
    border-bottom: none !important;
    padding: 16px 0;
    margin-bottom: 10px;
    color: var(--text-main) !important;
  }

  .screen-header .btn-back {
    background: var(--bg-card) !important;
    color: var(--text-main) !important;
    border: 1px solid var(--border) !important;
    box-shadow: var(--shadow-sm) !important;
  }

  .screen-header .header-title {
    font-size: 26px;
    font-weight: 800;
    color: var(--text-main) !important;
  }

  /* Horizontal Categories Grid on Desktop */
  .categories-grid-new {
    grid-template-columns: repeat(8, 1fr);
    gap: 20px;
  }

  .categories-grid-new .category-icon-wrapper {
    width: 72px;
    height: 72px;
    border-radius: 20px;
  }

  .categories-grid-new .category-name {
    font-size: 13px;
    font-weight: 700;
  }

  /* Popular products grid instead of horizontal scroll on Desktop */
  .products-scroll {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    overflow-x: visible;
    padding-bottom: 0;
  }

  .products-scroll .product-card {
    width: auto;
  }

  /* Categories products grid column expansion */
  .products-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }

  /* Store Row flex wrapping on Desktop */
  .stores-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    overflow-x: visible;
  }

  .store-card {
    width: auto;
  }

  /* Cart Screen split layout on Desktop */
  #cartContentWrapper {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 30px;
    align-items: start;
  }

  .cart-items-list {
    max-height: calc(100vh - 200px);
    overflow-y: auto;
    padding-right: 10px;
  }

  /* Checkout Screen split layout on Desktop */
  .checkout-body {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 30px;
    align-items: start;
  }

  .checkout-footer {
    border-top: none;
    padding: 0;
    background: transparent;
  }

  /* Profile screen split layout on Desktop */
  .profile-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    align-items: start;
    background: var(--bg-card);
    border-radius: 24px;
    padding: 30px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    margin-top: 15px;
  }

  .profile-header-area {
    flex-direction: column;
    text-align: center;
    border-bottom: none;
    background: transparent;
    padding: 0;
    gap: 16px;
  }

  .profile-image-container {
    width: 100px;
    height: 100px;
  }

  .profile-meta-info {
    align-items: center;
  }

  .profile-sections-wrapper {
    padding: 0;
  }

  .promo-banner-slide {
    height: 240px;
  }
}

