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

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
  background: #f6f2e7;
  color: #15352f;
}

#app {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: stretch;
}

.loader-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.loader-logo-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loader-logo {
  height: 80px;
  width: 80px;
  border-radius: 20px;
  object-fit: cover;
  position: relative;
  z-index: 2;
  animation: logoFloat 2s ease-in-out infinite;
  box-shadow: 0 8px 24px rgba(34, 197, 94, 0.25);
}

.loader-ripple {
  position: absolute;
  width: 80px;
  height: 80px;
  border-radius: 20px;
  background: rgba(34, 197, 94, 0.2);
  animation: ripple 2s ease-out infinite;
  z-index: 1;
}

.loader-spinner {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 4px solid rgba(34, 197, 94, 0.2);
  border-top-color: #22c55e;
  border-right-color: #16a34a;
  animation: spin 0.8s linear infinite;
  box-shadow: 0 0 16px rgba(34, 197, 94, 0.3);
}

.loader-text {
  font-size: 14px;
  color: #647067;
  font-weight: 500;
  animation: fadeInOut 2s ease-in-out infinite;
  margin-top: 8px;
}

@keyframes logoFloat {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-8px) scale(1.02);
  }
}

@keyframes ripple {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }
  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}

@keyframes fadeInOut {
  0%, 100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}

@keyframes logoPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.9;
  }
}

.app-shell {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  background: #f6f2e7;
  padding: 18px 18px 80px;
}

/* Full-bleed layout for splash / loader screens */
.app-shell--fullscreen {
  padding: 0;
  max-width: none;
}

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

.logo-mark {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
}

.top-icons {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-btn {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: none;
  background: rgba(13, 59, 50, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
}

.splash {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 100vh;
  animation: fadeIn 0.5s ease-out;
  position: relative;
  padding: 24px 18px 32px;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.splash-hero {
  margin-top: auto;
  padding: 18px 16px 20px;
  border-radius: 20px;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.78),
    rgba(0, 0, 0, 0.45),
    transparent
  );
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: #fdfaf2;
}

.splash-title {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.1;
  color: #fdfaf2;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.splash-subtitle {
  font-size: 15px;
  color: #fdfaf2;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.pill {
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.7);
  color: #fefce8;
}

.primary-btn,
.secondary-btn {
  width: 100%;
  padding: 14px 16px;
  border-radius: 999px;
  border: none;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

.primary-btn {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: #fdfaf2;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3);
}

.primary-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.4);
}

.primary-btn:active:not(:disabled) {
  transform: translateY(0);
}

.primary-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.secondary-btn {
  background: #fdfaf2;
  color: #0d3b32;
  border: 2px solid #ded2b9;
  transition: all 0.2s ease;
}

.secondary-btn:hover:not(:disabled) {
  background: #f5f0e3;
  border-color: #c9b99a;
  transform: translateY(-1px);
}

.secondary-btn:active:not(:disabled) {
  transform: translateY(0);
}

.splash-footer {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 32px;
}

.splash-meta {
  font-size: 12px;
  color: #fdfaf2;
  text-align: center;
}

.chips-row {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.chip {
  font-size: 11px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.65);
  color: #fdfaf2;
}

.splash-secondary-card {
  margin-top: 12px;
  padding: 16px 16px 18px;
  border-radius: 18px;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.78),
    rgba(0, 0, 0, 0.45),
    transparent
  );
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #fdfaf2;
}

.splash-secondary-title {
  font-size: 20px;
  font-weight: 700;
  color: #fefce8;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.splash-secondary-text {
  font-size: 14px;
  color: #e5e7eb;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.tag {
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(93, 59, 10, 0.12);
  color: #5d3b0a;
}

.home {
  min-height: calc(100vh - 56px);
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: fadeInUp 0.45s ease-out;
}

.hero-glow {
  margin-top: 10px;
  padding: 16px 16px 14px;
  border-radius: 20px;
  border: 2px solid rgba(240, 180, 60, 0.9);
  background: #fff7e6;
  box-shadow: 0 0 18px rgba(240, 180, 60, 0.6);
  animation: neonGlow 2.4s ease-in-out infinite;
}

.hero-glow-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  background: rgba(240, 180, 60, 0.15);
  color: #7a4b00;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

@keyframes neonGlow {
  0% {
    box-shadow: 0 0 4px rgba(240, 180, 60, 0.3),
      0 0 0 rgba(240, 180, 60, 0.0);
    border-color: rgba(240, 180, 60, 0.6);
  }
  50% {
    box-shadow: 0 0 22px rgba(240, 180, 60, 0.9),
      0 0 40px rgba(240, 180, 60, 0.55);
    border-color: rgba(240, 180, 60, 1);
  }
  100% {
    box-shadow: 0 0 4px rgba(240, 180, 60, 0.3),
      0 0 0 rgba(240, 180, 60, 0.0);
    border-color: rgba(240, 180, 60, 0.6);
  }
}

.hero-glow-title {
  font-size: 15px;
  font-weight: 600;
}

.hero-glow-sub {
  font-size: 13px;
  margin-top: 4px;
}

.hero-glow-cta {
  margin-top: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: #fdfaf2;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.hero-glow-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.4);
}

.auth-screen {
  min-height: calc(100vh - 56px);
  display: flex;
  flex-direction: column;
  gap: 24px;
  animation: fadeInUp 0.45s ease-out;
  padding-bottom: 24px;
}

.auth-header {
  margin-top: 24px;
  padding: 24px 20px 20px;
  border-radius: 24px;
  background: radial-gradient(circle at top left, #fee2c5, #fdfaf2 40%, #f6f2e7 100%);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.15);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.auth-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 6px;
  color: #0d3b32;
  letter-spacing: -0.02em;
}

.auth-subtitle {
  font-size: 14px;
  color: #7a847f;
  line-height: 1.4;
}

.auth-form {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 0 4px;
}

.field-label {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: #0d3b32;
}

.field-input {
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  border: 2px solid #ded2b9;
  background: #fdfaf2;
  font-size: 15px;
  transition: all 0.2s ease;
}

.field-input:focus {
  outline: none;
  border-color: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
  background: #fff;
}

.field-input:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.auth-helper {
  font-size: 12px;
  color: #7a847f;
}

/* 4-digit verification code boxes */
.code-input-row {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.code-input {
  max-width: 56px;
  text-align: center;
  font-size: 20px;
  padding: 10px 0;
}

.link-btn {
  margin-top: 4px;
  border: none;
  background: transparent;
  color: #0d3b32;
  font-size: 13px;
  text-decoration: underline;
  cursor: pointer;
  align-self: flex-start;
}

/* Hero glow icons row on home */
.hero-glow-icons {
  margin-top: 10px;
  display: flex;
  gap: 12px;
  font-size: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-glow-icons span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  border-radius: 8px;
  background: rgba(34, 197, 94, 0.1);
  transition: transform 0.2s ease;
}

.hero-glow-icons span:hover {
  transform: scale(1.1);
}

/* Centered processing overlay for payments */
.processing-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.processing-card {
  background: #fdfaf2;
  border-radius: 18px;
  padding: 18px 20px 16px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  min-width: 240px;
  max-width: 320px;
  text-align: center;
}

.processing-spinner {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 3px solid rgba(34, 197, 94, 0.2);
  border-top-color: #22c55e;
  border-right-color: #16a34a;
  margin: 0 auto;
  animation: spin 0.7s linear infinite;
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.3);
}

/* Responsive tweaks for small screens */
@media (max-width: 480px) {
  .app-shell {
    padding: 14px 12px 72px;
  }

  .home {
    gap: 14px;
  }

  .section-title {
    font-size: 15px;
  }

  .category-row {
    gap: 8px;
  }

  .category-chip {
    min-width: 0;
    max-width: 110px;
    font-size: 12px;
  }

  .product-card {
    min-width: 140px;
  }

  .browse-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .product-tile {
    flex: 1 1 auto;
    min-width: 0;
  }

  .cart-item-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .glow-card {
    font-size: 12px;
  }

  .auth-header {
    margin-top: 16px;
    padding: 20px 16px 18px;
  }

  .auth-screen {
    padding: 0 8px 24px;
    gap: 20px;
  }

  .auth-form {
    padding: 0 2px;
    gap: 16px;
  }

  .field-input {
    padding: 14px 16px;
    font-size: 16px; /* Prevents zoom on iOS */
  }

  .primary-btn, .secondary-btn {
    padding: 16px;
    font-size: 16px; /* Better touch target */
  }

  .loader-logo {
    height: 64px;
    width: 64px;
  }

  .loader-ripple {
    width: 64px;
    height: 64px;
  }

  .loader-text {
    font-size: 13px;
  }
}

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

.hub-strip {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: #efe7d4;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}

.hub-strip-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  cursor: pointer;
}

.hub-strip-title {
  font-weight: 600;
  color: #0d3b32;
}

.hub-strip-sub {
  color: #7a847f;
}

.hub-strip-toggle {
  border: none;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 11px;
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: #fdfaf2;
  cursor: pointer;
  transition: all 0.2s ease;
}

.hub-strip-toggle:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3);
}

.cart-chip {
  padding: 6px 10px;
  border-radius: 999px;
  background: #0d3b32;
  color: #fdfaf2;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.home-title-block {
  display: flex;
  flex-direction: column;
}

.home-greeting {
  font-size: 13px;
  color: #7a847f;
}

.home-title {
  font-size: 22px;
  font-weight: 700;
}

.streak-pill {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(238, 170, 65, 0.18);
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.search-bar {
  margin-top: 12px;
  padding: 12px 16px;
  border-radius: 16px;
  background: #fdfaf2;
  border: 2px solid #ded2b9;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #7a847f;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.search-bar:focus-within {
  border-color: #22c55e;
  box-shadow: 0 2px 12px rgba(34, 197, 94, 0.15);
}

.search-input {
  border: none;
  background: transparent;
  outline: none;
  width: 100%;
  font-size: 15px;
  color: #0d3b32;
}

.search-input::placeholder {
  color: #9ca3af;
}

.hamper-banner {
  margin-top: 16px;
  padding: 16px 16px 14px;
  border-radius: 18px;
  background: #f59e0b;
  color: #422006;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hamper-title {
  font-size: 16px;
  font-weight: 700;
}

.hamper-subtitle {
  font-size: 13px;
}

.hamper-timer {
  margin-top: 4px;
  font-weight: 600;
  font-size: 14px;
}

.section-title {
  font-size: 16px;
  font-weight: 600;
  margin-top: 18px;
  margin-bottom: 8px;
}

.category-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.category-chip {
  min-width: 90px;
  max-width: 130px;
  padding: 10px 12px;
  border-radius: 16px;
  background: linear-gradient(135deg, #fdfaf2, #f6f2e7);
  border: 2px solid #ded2b9;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.category-chip:hover {
  background: #f5f0e3;
  border-color: #c9b99a;
  transform: translateY(-1px);
}

.category-chip:active {
  transform: translateY(0);
}

.category-icon {
  font-size: 20px;
  margin-bottom: 4px;
}

.recommended-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
}

.recommended-row::-webkit-scrollbar,
.category-row::-webkit-scrollbar {
  height: 4px;
}

.recommended-row::-webkit-scrollbar-thumb,
.category-row::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.12);
  border-radius: 999px;
}

.loyalty-widget {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 16px;
  background: #efe7d4;
  font-size: 13px;
}

.loyalty-bar {
  margin-top: 8px;
  height: 6px;
  border-radius: 999px;
  background: rgba(21, 53, 47, 0.18);
  overflow: hidden;
}

.loyalty-bar-fill {
  height: 100%;
  width: 40%;
  border-radius: inherit;
  background: linear-gradient(90deg, #fbbf24, #22c55e);
}

.product-card {
  min-width: 150px;
  background: #fdfaf2;
  border-radius: 18px;
  padding: 12px 10px 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.product-name {
  font-size: 14px;
  font-weight: 600;
  word-wrap: break-word;
}

.product-meta {
  font-size: 12px;
  color: #7a847f;
}

.combo-btn {
  margin-top: 4px;
  padding: 8px 10px;
  border-radius: 999px;
  font-size: 13px;
  border: none;
  cursor: pointer;
}

.combo-btn.primary {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: #fdfaf2;
  transition: all 0.2s ease;
}

.combo-btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3);
}

.combo-btn.ghost {
  background: #efe7d4;
  color: #0d3b32;
}

.voice-bot-btn {
  position: relative;
}

.voice-bot-btn span {
  display: inline-block;
  animation: pulse 2s ease-in-out infinite;
}

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

.bot-overlay {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  top: 0;
  background: rgba(15, 23, 42, 0.45);
  display: flex;
  justify-content: center;
  align-items: flex-end;
  z-index: 25;
}

.bot-sheet {
  width: 100%;
  max-width: 430px;
  background: #fdfaf2;
  border-radius: 18px 18px 0 0;
  padding: 12px 14px 16px;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  max-height: 70vh;
}

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

.bot-title {
  font-size: 16px;
  font-weight: 600;
}

.bot-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
}

.bot-chip {
  font-size: 11px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #efe7d4;
  cursor: pointer;
}

.bot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 6px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bot-msg {
  max-width: 80%;
  padding: 8px 10px;
  border-radius: 14px;
  font-size: 13px;
}

.bot-msg.user {
  align-self: flex-end;
  background: #0d3b32;
  color: #fdfaf2;
  border-bottom-right-radius: 4px;
}

.bot-msg.bot {
  align-self: flex-start;
  background: #efe7d4;
  color: #15352f;
  border-bottom-left-radius: 4px;
}

.bot-input-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
}

.bot-input {
  flex: 1;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid #ded2b9;
  background: #fdfaf2;
  font-size: 13px;
}

.bot-send {
  border: none;
  border-radius: 999px;
  padding: 8px 10px;
  font-size: 13px;
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: #fdfaf2;
  cursor: pointer;
  transition: all 0.2s ease;
}

.bot-send:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3);
}

.install-sheet {
  position: fixed;
  left: 50%;
  bottom: 80px;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  padding: 10px 16px 14px;
  box-sizing: border-box;
  z-index: 30;
}

.install-sheet-inner {
  background: #fdfaf2;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  padding: 12px 14px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.install-sheet-logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  object-fit: cover;
}

.install-sheet-text {
  flex: 1;
  font-size: 13px;
}

.install-sheet-actions {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.install-btn {
  border: none;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: #fdfaf2;
  cursor: pointer;
  transition: all 0.2s ease;
}

.install-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3);
}

.install-dismiss {
  border: none;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 11px;
  background: transparent;
  color: #647067;
  cursor: pointer;
}

.browse-grid {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.product-tile {
  flex: 1 1 calc(50% - 10px);
  min-width: 150px;
  background: #fdfaf2;
  border-radius: 18px;
  padding: 10px 10px 12px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.product-tile-name {
  font-size: 14px;
  font-weight: 600;
}

.product-tile-meta {
  font-size: 12px;
  color: #7a847f;
}

.product-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4px;
}

.product-price-row span {
  font-size: 13px;
  font-weight: 600;
  color: #0d3b32;
}

.product-add-btn {
  border: none;
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: #fdfaf2;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(34, 197, 94, 0.3);
}

.product-add-btn:hover {
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
  transform: scale(1.05);
  box-shadow: 0 3px 8px rgba(34, 197, 94, 0.4);
}

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

.pack-icons {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pack-icon {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: #efe7d4;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.toast {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  background: #0d3b32;
  color: #fdfaf2;
  padding: 14px 20px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  z-index: 10000;
  max-width: 90%;
  text-align: center;
  animation: slideUpToast 0.3s ease-out;
}

@keyframes slideUpToast {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.toast-error {
  background: #dc2626;
}

.toast-success {
  background: #16a34a;
}

.toast {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 100px;
  padding: 14px 20px;
  border-radius: 12px;
  background: rgba(21, 53, 47, 0.95);
  color: #fdfaf2;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  z-index: 10000;
  max-width: 90%;
  text-align: center;
  animation: slideUpToast 0.3s ease-out, fadeOutToast 0.3s ease-out 1.9s forwards;
  backdrop-filter: blur(10px);
}

@keyframes slideUpToast {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

@keyframes fadeOutToast {
  to {
    opacity: 0;
    transform: translateX(-50%) translateY(-10px);
  }
}

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

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

@keyframes fadeInOut {
  0% {
    opacity: 0;
    transform: translate(-50%, 8px);
  }
  10% {
    opacity: 1;
    transform: translate(-50%, 0);
  }
  85% {
    opacity: 1;
    transform: translate(-50%, 0);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, 8px);
  }
}

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

@keyframes rippleExpand {
  0% {
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0.5;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.5);
    opacity: 0;
  }
}

@keyframes rippleFadeIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

@keyframes rippleFadeOut {
  from {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  to {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
  }
}

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

/* Order Tracking Screen */
.order-tracking-screen {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  background: #f6f2e7;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

#order-tracking-map {
  flex: 1;
  width: 100%;
  position: relative;
  background: #e5e0d5;
  overflow: hidden;
}

#order-tracking-map .leaflet-container {
  height: 100%;
  width: 100%;
  z-index: 1;
}

/* Status overlay positioned at bottom, always visible */
#order-status-overlay {
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 1000 !important;
  pointer-events: auto !important;
}

.custom-marker {
  background: transparent !important;
  border: none !important;
}

.hub-marker,
.delivery-marker,
.rider-marker {
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.rider-marker div {
  animation: pulse 2s ease-in-out infinite;
}

/* Ensure map tiles load properly */
.leaflet-tile-container img {
  max-width: none !important;
}

/* Address autocomplete suggestions */
#address-suggestions {
  max-height: 200px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #22c55e #f6f2e7;
}

#address-suggestions::-webkit-scrollbar {
  width: 6px;
}

#address-suggestions::-webkit-scrollbar-track {
  background: #f6f2e7;
  border-radius: 10px;
}

#address-suggestions::-webkit-scrollbar-thumb {
  background: #22c55e;
  border-radius: 10px;
}

.address-suggestion-item:hover {
  background: #f6f2e7 !important;
}

/* Custom popup styling */
.leaflet-popup-content-wrapper {
  border-radius: 12px !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
  padding: 0 !important;
}

.leaflet-popup-content {
  margin: 0 !important;
}

.leaflet-popup-tip {
  background: #ffffff !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

/* Keep popup open - prevent auto-closing */
.leaflet-popup {
  pointer-events: auto !important;
}

.leaflet-popup-close-button {
  font-size: 20px !important;
  width: 24px !important;
  height: 24px !important;
  line-height: 24px !important;
  color: #647067 !important;
  padding: 0 !important;
  text-align: center !important;
  transition: color 0.2s !important;
}

.leaflet-popup-close-button:hover {
  color: #0d3b32 !important;
}

/* Better map controls */
.leaflet-control-zoom {
  border: none !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
  border-radius: 8px !important;
  overflow: hidden;
}

.leaflet-control-zoom a {
  background: #ffffff !important;
  color: #0d3b32 !important;
  border: none !important;
  width: 36px !important;
  height: 36px !important;
  line-height: 36px !important;
  font-size: 18px !important;
  transition: background 0.2s !important;
}

.leaflet-control-zoom a:hover {
  background: #f6f2e7 !important;
}

.leaflet-control-attribution {
  background: rgba(255, 255, 255, 0.9) !important;
  border-radius: 6px !important;
  padding: 4px 8px !important;
  font-size: 10px !important;
  color: #647067 !important;
}

.cart-screen {
  min-height: calc(100vh - 56px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
}

.cart-title {
  font-size: 20px;
  font-weight: 700;
}

.cart-items {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cart-item-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 14px;
  background: #fdfaf2;
}

.cart-item-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.cart-item-name {
  font-size: 14px;
  font-weight: 600;
}

.cart-item-meta {
  font-size: 12px;
  color: #7a847f;
}

.cart-item-qty {
  font-size: 13px;
}

.cart-summary {
  margin-top: 4px;
  padding: 14px 12px;
  border-radius: 16px;
  background: #efe7d4;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}

.glow-card {
  margin-top: 10px;
  padding: 14px 12px;
  border-radius: 16px;
  background: #f8d58d;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
}

.glow-card-actions {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}

.glow-btn {
  flex: 1;
  padding: 9px 10px;
  border-radius: 999px;
  border: none;
  font-size: 14px;
  cursor: pointer;
}

.glow-btn.accept {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: #fdfaf2;
  transition: all 0.2s ease;
}

.glow-btn.accept:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3);
}

.glow-btn.reject {
  background: #0d3b32;
  color: #fdfaf2;
}

.footer-nav {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 10px;
  width: 100%;
  max-width: 430px;
  padding: 8px 18px 10px;
  box-sizing: border-box;
  z-index: 15;
}

.footer-nav-inner {
  background: #fdfaf2;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  display: flex;
  justify-content: space-around;
  padding: 8px 10px;
}

.footer-tab {
  border: none;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 11px;
  cursor: pointer;
  color: #647067;
}

.footer-tab span {
  font-size: 18px;
}

.footer-tab.active {
  color: #0d3b32;
  font-weight: 600;
}



