/* ==========================================================
   RouteManifest - Customer Portal Stylesheet
   Modern, Ultra-clean, Fast & Mobile-Responsive
   ========================================================== */

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

:root {
  --primary: #0B4627;
  --primary-hover: #07341c;
  --primary-light: #EAF7EE;
  --primary-border: #C8E6C9;
  --accent: #198754;
  --accent-secondary: #FF9800;
  --dark: #1E293B;
  --muted: #64748B;
  --light-bg: #F8FAF9;
  --card-bg: #FFFFFF;
  --border: #E2E8F0;
  --danger: #EF4444;
  --danger-light: #FEE2E2;
  --warning: #F59E0B;
  --warning-light: #FEF3C7;
  --info: #0EA5E9;
  --info-light: #E0F2FE;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.06);
  --shadow-lg: 0 12px 30px rgba(0,0,0,0.08);
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

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

body {
  font-family: var(--font);
  background-color: var(--light-bg);
  color: var(--dark);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Layout Utilities */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }
.grid { display: grid; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--primary);
  color: #FFFFFF;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(11, 70, 39, 0.25);
}

.btn-accent {
  background-color: var(--accent);
  color: #FFFFFF;
}

.btn-accent:hover {
  background-color: #146c43;
}

.btn-outline {
  border-color: var(--primary-border);
  color: var(--primary);
  background-color: #FFFFFF;
}

.btn-outline:hover {
  background-color: var(--primary-light);
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1.05rem;
}

/* Header & Navbar */
.topbar {
  background-color: var(--primary);
  color: #FFFFFF;
  font-size: 0.82rem;
  padding: 8px 0;
  font-weight: 500;
}

.topbar a {
  color: #A3E635;
  text-decoration: underline;
}

.header {
  background-color: #FFFFFF;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 75px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo img {
  height: 48px;
  width: auto;
}

.location-picker {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: var(--primary-light);
  color: var(--primary);
  padding: 8px 14px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.nav-links a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--dark);
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.cart-btn {
  position: relative;
  background-color: var(--primary-light);
  color: var(--primary);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cart-btn:hover {
  background-color: var(--primary);
  color: #FFFFFF;
}

.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background-color: var(--danger);
  color: #FFFFFF;
  font-size: 0.72rem;
  font-weight: 700;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #FFFFFF;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, #0B4627 0%, #155734 60%, #1E7E48 100%);
  color: #FFFFFF;
  padding: 60px 0 70px;
  border-radius: 0 0 32px 32px;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 40px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 18px;
  letter-spacing: -0.5px;
}

.hero-title span {
  color: #4ECCA3;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: #D1E7DD;
  margin-bottom: 28px;
  max-width: 520px;
}

.hero-search {
  display: flex;
  background: #FFFFFF;
  border-radius: var(--radius-full);
  padding: 6px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  max-width: 520px;
}

.hero-search input {
  flex: 1;
  border: none;
  outline: none;
  padding: 12px 20px;
  font-size: 0.95rem;
  font-family: inherit;
  border-radius: var(--radius-full);
}

.hero-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 4px solid rgba(255,255,255,0.2);
}

.hero-card img {
  width: 100%;
  height: 380px;
  object-fit: cover;
}

.hero-floating-badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: rgba(11, 70, 39, 0.92);
  backdrop-filter: blur(8px);
  color: #FFFFFF;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,0.2);
}

/* Categories Pills / Grid */
.section {
  padding: 50px 0;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 30px;
}

.section-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.5px;
}

.section-subtitle {
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: 4px;
}

.category-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 10px;
  scrollbar-width: thin;
}

.category-card {
  background: #FFFFFF;
  border: 1px solid var(--border);
  padding: 14px 22px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
  font-weight: 700;
  font-size: 0.92rem;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.category-card:hover,
.category-card.active {
  background-color: var(--primary);
  color: #FFFFFF;
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(11, 70, 39, 0.15);
}

.category-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.category-card.active .category-icon {
  background: rgba(255,255,255,0.2);
  color: #FFFFFF;
}

/* Product Cards Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 24px;
}

.product-card {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-border);
}

.product-img-wrap {
  position: relative;
  width: 100%;
  height: 190px;
  overflow: hidden;
  background-color: #E2E8F0;
}

.product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.product-card:hover .product-img-wrap img {
  transform: scale(1.05);
}

.product-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tag-veg {
  background-color: #E8F5E9;
  color: #2E7D32;
  border: 1px solid #A5D6A7;
}

.tag-nonveg {
  background-color: #FFEBEE;
  color: #C62828;
  border: 1px solid #EF9A9A;
}

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

.product-category {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.product-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 6px;
}

.product-desc {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.4;
  margin-bottom: 14px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid #F1F5F9;
}

.product-price {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
}

/* Features / Why Choose Us */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.feature-box {
  background: #FFFFFF;
  padding: 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin: 0 auto 16px;
}

.feature-box h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-box p {
  font-size: 0.88rem;
  color: var(--muted);
}

/* Cart & Checkout */
.cart-table {
  width: 100%;
  border-collapse: collapse;
  background: #FFFFFF;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.cart-table th, .cart-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.cart-table th {
  background: #F8FAFC;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
}

.qty-control {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  background: #FFFFFF;
  overflow: hidden;
}

.qty-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  cursor: pointer;
  font-weight: 700;
  color: var(--primary);
}

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

.qty-input {
  width: 38px;
  text-align: center;
  border: none;
  outline: none;
  font-weight: 700;
  font-size: 0.9rem;
}

.order-summary-card {
  background: #FFFFFF;
  border-radius: var(--radius-md);
  padding: 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 0.95rem;
  color: var(--muted);
}

.summary-total {
  border-top: 1px dashed var(--border);
  padding-top: 16px;
  margin-top: 16px;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
  display: flex;
  justify-content: space-between;
}

/* Order Tracker Stepper */
.tracker-card {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 30px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

.tracker-stepper {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin: 40px 0;
}

.tracker-stepper::before {
  content: '';
  position: absolute;
  top: 24px;
  left: 40px;
  right: 40px;
  height: 4px;
  background: #E2E8F0;
  z-index: 1;
}

.stepper-progress {
  position: absolute;
  top: 24px;
  left: 40px;
  height: 4px;
  background: var(--accent);
  z-index: 2;
  transition: width 0.4s ease;
}

.step-item {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
}

.step-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 4px solid #E2E8F0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--muted);
  transition: all 0.3s ease;
}

.step-item.active .step-circle {
  border-color: var(--accent);
  background: var(--accent);
  color: #FFFFFF;
  box-shadow: 0 0 0 6px rgba(25, 135, 84, 0.15);
}

.step-item.completed .step-circle {
  border-color: var(--accent);
  background: var(--accent);
  color: #FFFFFF;
}

.step-label {
  font-size: 0.9rem;
  font-weight: 700;
  margin-top: 10px;
  color: var(--dark);
}

.step-desc {
  font-size: 0.78rem;
  color: var(--muted);
}

/* Forms */
.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--dark);
}

.form-control {
  width: 100%;
  padding: 11px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  background: #FFFFFF;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(11, 70, 39, 0.1);
}

/* Footer */
.footer {
  background: #062816;
  color: #E2E8F0;
  padding: 60px 0 24px;
  margin-top: 70px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h5 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 18px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #94A3B8;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #4ECCA3;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: #94A3B8;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--radius-full);
}

.badge-success { background: #DCFCE7; color: #166534; }
.badge-warning { background: #FEF3C7; color: #92400E; }
.badge-info { background: #E0F2FE; color: #075985; }
.badge-danger { background: #FEE2E2; color: #991B1B; }

/* Mobile Hamburger Button */
.mobile-hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--dark);
  cursor: pointer;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  transition: background 0.2s;
  align-items: center;
  justify-content: center;
}
.mobile-hamburger:hover {
  background: var(--primary-light);
  color: var(--primary);
}

/* Mobile Nav Overlay */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(3px);
  z-index: 1000;
}
.mobile-nav-overlay.open {
  display: block;
}

/* Mobile Slide-in Drawer */
.mobile-nav-drawer {
  position: fixed;
  top: 0;
  left: -310px;
  width: 290px;
  height: 100vh;
  background: #FFFFFF;
  z-index: 1100;
  box-shadow: 6px 0 30px rgba(0,0,0,0.2);
  display: flex;
  flex-direction: column;
  transition: left 0.32s cubic-bezier(0.4,0,0.2,1);
  overflow-y: auto;
}
.mobile-nav-drawer.open {
  left: 0;
}
.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid #E5E7EB;
  background: var(--primary-light);
}
.mobile-nav-links {
  display: flex;
  flex-direction: column;
  padding: 10px 12px;
  gap: 4px;
  flex: 1;
}
.mobile-nav-links a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 16px;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #1F2937;
  text-decoration: none;
  transition: all 0.18s;
}
.mobile-nav-links a:hover {
  background: var(--primary-light);
  color: var(--primary);
}
.mobile-nav-links a.active {
  background: var(--primary);
  color: #FFFFFF;
}
.mobile-nav-links a i {
  width: 18px;
  text-align: center;
  font-size: 1rem;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-subtitle { margin: 0 auto 28px; }
  .hero-search { margin: 0 auto; }
  .hero-card { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .pub-topbar-hide { display: none; }
}

@media (max-width: 768px) {
  .pub-topbar-hide { display: none !important; }
  .mobile-hamburger { display: flex; }
  .nav-links { display: none; }
  .location-picker-desk { display: none; }
  .nav-auth-desktop { display: none !important; }
  .navbar { height: 65px; padding: 0 6px; }
  .brand-logo img { height: 38px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-title { font-size: 2.2rem; }
}

@media (max-width: 640px) {
  .navbar { height: 60px; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 1.9rem; }
  .tracker-stepper { flex-direction: column; gap: 24px; }
  .tracker-stepper::before { display: none; }
  .products-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 12px !important; }
  .section { padding: 28px 0; }
}

@media (max-width: 420px) {
  .products-grid { grid-template-columns: 1fr !important; }
  .category-scroll { gap: 8px; }
  .category-card { padding: 10px 16px; font-size: 0.82rem; }
}

