/* ==========================================================================
   DELIVERY PRO - CUSTOMER APP (MARKETPLACE & LIVE TRACKING)
   ========================================================================== */

.customer-container {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0.85rem 1.5rem;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  flex: 1;
}

/* Customer Hero / Banner */
.customer-hero {
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.25), rgba(249, 115, 22, 0.15)), var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  padding: 1.25rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.hero-content h2 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
  letter-spacing: -0.02em;
}

.hero-content p {
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: 650px;
}

.hero-delivery-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0, 0, 0, 0.4);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  font-size: 0.85rem;
  font-weight: 600;
}

/* Category Filter Pills */
.categories-bar {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.category-pill {
  background: var(--bg-surface-elevated);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all var(--transition-fast);
}

.category-pill:hover, .category-pill.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: 0 0 12px var(--primary-glow);
}

/* Store & Restaurant Grid */
.stores-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
}

.store-card {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-normal);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.store-card:hover {
  transform: translateY(-4px);
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: var(--shadow-xl);
}

.store-cover {
  height: 160px;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.store-tag {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  color: #facc15;
}

.store-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.store-body h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
}

.store-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.store-products {
  margin-top: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  border-top: 1px solid var(--border-subtle);
  padding-top: 0.75rem;
}

.product-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.4rem 0.5rem;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.2);
  transition: background var(--transition-fast);
}

.product-row:hover {
  background: rgba(255, 255, 255, 0.05);
}

.product-info h5 {
  font-size: 0.82rem;
  font-weight: 600;
}

.product-info p {
  font-size: 0.72rem;
  color: var(--accent-emerald);
  font-weight: 700;
}

.add-btn {
  background: var(--primary);
  color: white;
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-fast);
}

.add-btn:hover {
  transform: scale(1.15);
  background: var(--accent-orange);
}

/* FLOATING CART SUMMARY & CHECKOUT BAR */
.cart-floating-bar {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 800;
  background: var(--bg-surface-glass);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(249, 115, 22, 0.4);
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(249, 115, 22, 0.2);
  animation: slideUp 0.3s ease-out;
}

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

.cart-items-preview {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  font-weight: 700;
}

/* LIVE ORDER TRACKING MODAL & TIMELINE */
.tracking-card {
  background: var(--bg-surface-elevated);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.tracking-header {
  padding: 1.25rem 1.5rem;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(16, 185, 129, 0.15));
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tracking-timeline {
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.timeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  z-index: 2;
  flex: 1;
}

.step-node {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 2px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--text-subtle);
  transition: all var(--transition-normal);
}

.timeline-step.active .step-node {
  border-color: var(--accent-orange);
  background: rgba(249, 115, 22, 0.15);
  color: var(--accent-orange);
  box-shadow: 0 0 15px rgba(249, 115, 22, 0.4);
}

.timeline-step.completed .step-node {
  border-color: var(--accent-emerald);
  background: var(--accent-emerald);
  color: white;
}

.step-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-align: center;
}

.timeline-step.active .step-label {
  color: var(--text-main);
}

.timeline-progress-bar {
  position: absolute;
  top: 36px;
  left: 10%;
  right: 10%;
  height: 3px;
  background: var(--border-subtle);
  z-index: 1;
}

.timeline-progress-fill {
  height: 100%;
  background: linear-gradient(to right, var(--accent-emerald), var(--accent-orange));
  width: 25%;
  transition: width 0.5s ease;
}

/* Delivery PIN Security Badge */
.pin-badge {
  background: rgba(99, 102, 241, 0.15);
  border: 1px dashed var(--primary);
  padding: 0.6rem 1rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.pin-code {
  font-family: monospace;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: #818cf8;
}
