/* ============================================================
   ApniDukaan — Custom CSS
   Tailwind CDN handles utilities; this file adds custom
   animations, transitions, and component overrides.
   ============================================================ */

/* ── Google Font ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Noto+Sans+Devanagari:wght@400;600;700&display=swap');

/* ── CSS Variables ───────────────────────────────────────── */
:root {
  --green:      #16a34a;
  --green-dark: #15803d;
  --green-light:#dcfce7;
  --amber:      #f59e0b;
  --amber-dark: #d97706;
  --amber-light:#fef3c7;
  --red:        #ef4444;
  --gray-50:    #f9fafb;
  --gray-100:   #f3f4f6;
  --gray-200:   #e5e7eb;
  --gray-600:   #4b5563;
  --gray-800:   #1f2937;
  --shadow-sm:  0 1px 3px rgba(0,0,0,.08);
  --shadow-md:  0 4px 16px rgba(0,0,0,.10);
  --shadow-lg:  0 8px 32px rgba(0,0,0,.12);
  --radius:     12px;
  --radius-lg:  20px;
  --transition: all .22s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Noto Sans Devanagari', system-ui, sans-serif;
  background: #f8fafc;
  color: var(--gray-800);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Page Loader ─────────────────────────────────────────── */
#page-loader {
  position: fixed; inset: 0;
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  z-index: 9999;
  transition: opacity .4s ease, visibility .4s ease;
}
#page-loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }

.loader-ring {
  width: 48px; height: 48px;
  border: 4px solid var(--green-light);
  border-top-color: var(--green);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Navbar ──────────────────────────────────────────────── */
#navbar {
  position: sticky; top: 0; z-index: 1000;
  background: #fff;
  border-bottom: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  transition: box-shadow .3s ease;
}
#navbar.scrolled { box-shadow: var(--shadow-md); }

.nav-link {
  position: relative;
  font-weight: 500;
  color: var(--gray-600);
  transition: color .2s;
  padding: 6px 4px;
}
.nav-link::after {
  content: '';
  position: absolute; bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: var(--green);
  transition: width .25s ease;
  border-radius: 2px;
}
.nav-link:hover, .nav-link.active { color: var(--green); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

/* ── Hero Banner ─────────────────────────────────────────── */
.hero-slide {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
}
.hero-slide img {
  width: 100%; height: 380px;
  object-fit: cover;
  transition: transform 6s ease;
}
.hero-slide:hover img { transform: scale(1.04); }

/* Carousel dots */
.carousel-dots { display: flex; gap: 6px; justify-content: center; }
.carousel-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gray-200);
  cursor: pointer;
  transition: var(--transition);
}
.carousel-dot.active {
  background: var(--green);
  width: 24px;
  border-radius: 4px;
}

/* ── Category Cards ──────────────────────────────────────── */
.cat-card {
  display: flex; flex-direction: column; align-items: center;
  gap: 8px;
  padding: 16px 12px;
  background: #fff;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
}
.cat-card:hover, .cat-card.active {
  border-color: var(--green);
  background: var(--green-light);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.cat-icon {
  font-size: 2rem;
  line-height: 1;
  transition: transform .2s;
}
.cat-card:hover .cat-icon { transform: scale(1.15); }
.cat-name {
  font-size: .78rem;
  font-weight: 600;
  color: var(--gray-800);
  text-align: center;
  line-height: 1.2;
}

/* ── Product Card ────────────────────────────────────────── */
.product-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
  display: flex; flex-direction: column;
  position: relative;
}
.product-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: var(--green);
}
.product-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: var(--gray-100);
}
.product-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.product-card:hover .product-img-wrap img { transform: scale(1.08); }

.discount-badge {
  position: absolute; top: 10px; left: 10px;
  background: var(--red);
  color: #fff;
  font-size: .7rem; font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
  letter-spacing: .3px;
}
.stock-badge {
  position: absolute; top: 10px; right: 10px;
  font-size: .68rem; font-weight: 600;
  padding: 3px 8px;
  border-radius: 20px;
}
.stock-badge.in-stock  { background: var(--green-light); color: var(--green-dark); }
.stock-badge.low-stock { background: var(--amber-light); color: var(--amber-dark); }
.stock-badge.out-stock { background: #fee2e2; color: #b91c1c; }

.product-body { padding: 14px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.product-name {
  font-size: .92rem; font-weight: 600;
  color: var(--gray-800);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-dukaan {
  font-size: .75rem; color: var(--gray-600);
  display: flex; align-items: center; gap: 4px;
}
.product-price-row {
  display: flex; align-items: center; gap: 8px;
  margin-top: auto;
}
.price-current { font-size: 1.05rem; font-weight: 700; color: var(--green-dark); }
.price-original { font-size: .82rem; color: #9ca3af; text-decoration: line-through; }

.btn-add-cart {
  width: 100%;
  padding: 9px 0;
  background: var(--green);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: .85rem; font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex; align-items: center; justify-content: center; gap: 6px;
  margin-top: 10px;
}
.btn-add-cart:hover { background: var(--green-dark); transform: scale(1.02); }
.btn-add-cart:disabled {
  background: var(--gray-200); color: var(--gray-600); cursor: not-allowed;
  transform: none;
}

/* ── Dukaan Card ─────────────────────────────────────────── */
.dukaan-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
}
.dukaan-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}
.dukaan-img { width: 100%; height: 140px; object-fit: cover; }
.dukaan-body { padding: 14px; }
.dukaan-name { font-size: .95rem; font-weight: 700; color: var(--gray-800); }
.dukaan-meta { font-size: .78rem; color: var(--gray-600); display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.open-badge  { background: var(--green-light); color: var(--green-dark); padding: 2px 8px; border-radius: 20px; font-size: .72rem; font-weight: 600; }
.closed-badge{ background: #fee2e2; color: #b91c1c; padding: 2px 8px; border-radius: 20px; font-size: .72rem; font-weight: 600; }

/* ── Section Heading ─────────────────────────────────────── */
.section-heading {
  font-size: 1.4rem; font-weight: 800;
  color: var(--gray-800);
  position: relative;
  padding-left: 14px;
}
.section-heading::before {
  content: '';
  position: absolute; left: 0; top: 50%;
  transform: translateY(-50%);
  width: 4px; height: 70%;
  background: var(--green);
  border-radius: 4px;
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn-primary {
  background: var(--green);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 11px 24px;
  font-weight: 600;
  font-size: .9rem;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex; align-items: center; gap: 6px;
}
.btn-primary:hover { background: var(--green-dark); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(22,163,74,.3); }

.btn-outline {
  background: transparent;
  color: var(--green);
  border: 2px solid var(--green);
  border-radius: 10px;
  padding: 9px 22px;
  font-weight: 600;
  font-size: .9rem;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex; align-items: center; gap: 6px;
}
.btn-outline:hover { background: var(--green); color: #fff; }

.btn-amber {
  background: var(--amber);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 11px 24px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.btn-amber:hover { background: var(--amber-dark); }

/* ── Search Bar ──────────────────────────────────────────── */
.search-bar {
  display: flex;
  align-items: center;
  background: #fff;
  border: 2px solid var(--gray-200);
  border-radius: 50px;
  padding: 6px 6px 6px 18px;
  transition: border-color .2s;
  box-shadow: var(--shadow-sm);
}
.search-bar:focus-within { border-color: var(--green); box-shadow: 0 0 0 3px rgba(22,163,74,.12); }
.search-bar input {
  flex: 1; border: none; outline: none;
  font-size: .95rem; background: transparent;
  color: var(--gray-800);
}
.search-bar input::placeholder { color: #9ca3af; }
.search-btn {
  background: var(--green);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 9px 20px;
  font-weight: 600;
  font-size: .88rem;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}
.search-btn:hover { background: var(--green-dark); }

/* ── Toast Notification ──────────────────────────────────── */
#toast-container {
  position: fixed; bottom: 24px; right: 24px;
  z-index: 9998;
  display: flex; flex-direction: column; gap: 10px;
  pointer-events: none;
}
.toast {
  background: #1f2937;
  color: #fff;
  padding: 14px 20px;
  border-radius: 12px;
  font-size: .88rem; font-weight: 500;
  box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 10px;
  pointer-events: all;
  animation: slideUp .3s ease;
  max-width: 320px;
}
.toast.success { border-left: 4px solid var(--green); }
.toast.error   { border-left: 4px solid var(--red); }
.toast.info    { border-left: 4px solid #3b82f6; }
.toast.warning { border-left: 4px solid var(--amber); }
@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Form Inputs ─────────────────────────────────────────── */
.form-input {
  width: 100%;
  padding: 11px 14px;
  border: 2px solid var(--gray-200);
  border-radius: 10px;
  font-size: .92rem;
  color: var(--gray-800);
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}
.form-input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(22,163,74,.12);
}
.form-input.error { border-color: var(--red); }
.form-label {
  display: block;
  font-size: .85rem; font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 6px;
}
.form-error { font-size: .78rem; color: var(--red); margin-top: 4px; }

/* ── Cart Item ───────────────────────────────────────────── */
.cart-item {
  display: flex; align-items: center; gap: 14px;
  padding: 16px;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
}
.cart-item:hover { box-shadow: var(--shadow-md); }
.cart-item-img {
  width: 80px; height: 80px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--gray-100);
}
.qty-control {
  display: flex; align-items: center; gap: 0;
  border: 2px solid var(--gray-200);
  border-radius: 8px;
  overflow: hidden;
}
.qty-btn {
  width: 34px; height: 34px;
  background: var(--gray-100);
  border: none;
  font-size: 1rem; font-weight: 700;
  cursor: pointer;
  transition: background .15s;
  display: flex; align-items: center; justify-content: center;
}
.qty-btn:hover { background: var(--green-light); color: var(--green); }
.qty-val {
  width: 40px; height: 34px;
  text-align: center;
  border: none; outline: none;
  font-size: .9rem; font-weight: 600;
  background: #fff;
}

/* ── Order Summary Card ──────────────────────────────────── */
.order-summary {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.order-summary-header {
  background: var(--green);
  color: #fff;
  padding: 16px 20px;
  font-size: 1rem; font-weight: 700;
}
.order-summary-body { padding: 20px; }
.summary-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 0;
  font-size: .9rem;
  border-bottom: 1px solid var(--gray-100);
}
.summary-row:last-child { border-bottom: none; }
.summary-total {
  font-size: 1.1rem; font-weight: 800;
  color: var(--green-dark);
}

/* ── Payment Method Radio ────────────────────────────────── */
.payment-option {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  border: 2px solid var(--gray-200);
  border-radius: 10px;
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: 10px;
}
.payment-option:hover { border-color: var(--green); background: var(--green-light); }
.payment-option input[type="radio"] { accent-color: var(--green); width: 18px; height: 18px; }
.payment-option.selected { border-color: var(--green); background: var(--green-light); }

/* ── Stats Counter ───────────────────────────────────────── */
.stat-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
}
.stat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.stat-icon { font-size: 2.2rem; margin-bottom: 10px; }
.stat-value { font-size: 1.8rem; font-weight: 800; color: var(--green-dark); }
.stat-label { font-size: .82rem; color: var(--gray-600); font-weight: 500; margin-top: 4px; }

/* ── Feature Strip ───────────────────────────────────────── */
.feature-item {
  display: flex; align-items: center; gap: 12px;
  padding: 16px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
}
.feature-icon {
  width: 48px; height: 48px;
  background: var(--green-light);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.feature-text h4 { font-size: .9rem; font-weight: 700; color: var(--gray-800); margin: 0; }
.feature-text p  { font-size: .78rem; color: var(--gray-600); margin: 2px 0 0; }

/* ── Footer ──────────────────────────────────────────────── */
.footer-main {
  background: #111827;
  color: #d1d5db;
}
.footer-link {
  color: #9ca3af;
  text-decoration: none;
  font-size: .85rem;
  line-height: 2;
  transition: color .2s;
  display: block;
}
.footer-link:hover { color: var(--amber); }
.footer-heading { color: #f9fafb; font-weight: 700; font-size: .95rem; margin-bottom: 14px; }

/* ── Back to Top ─────────────────────────────────────────── */
#back-to-top {
  position: fixed; bottom: 24px; right: 24px;
  width: 44px; height: 44px;
  background: var(--green);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  z-index: 900;
}
#back-to-top.visible { opacity: 1; visibility: visible; }
#back-to-top:hover { background: var(--green-dark); transform: translateY(-3px); }

/* ── Mobile Menu ─────────────────────────────────────────── */
#mobile-menu {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 1100;
  opacity: 0; visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
}
#mobile-menu.open { opacity: 1; visibility: visible; }
#mobile-menu-panel {
  position: absolute; top: 0; left: 0;
  width: 280px; height: 100%;
  background: #fff;
  padding: 24px 20px;
  transform: translateX(-100%);
  transition: transform .3s ease;
  overflow-y: auto;
}
#mobile-menu.open #mobile-menu-panel { transform: translateX(0); }

/* ── Skeleton Loader ─────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-200) 50%, var(--gray-100) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: 8px;
}
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── Empty State ─────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--gray-600);
}
.empty-state-icon { font-size: 4rem; margin-bottom: 16px; opacity: .5; }
.empty-state h3 { font-size: 1.2rem; font-weight: 700; color: var(--gray-800); margin-bottom: 8px; }
.empty-state p  { font-size: .9rem; }

/* ── Breadcrumb ──────────────────────────────────────────── */
.breadcrumb { display: flex; align-items: center; gap: 6px; font-size: .82rem; color: var(--gray-600); }
.breadcrumb a { color: var(--green); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb-sep { color: var(--gray-200); }

/* ── Page Header Banner ──────────────────────────────────── */
.page-banner {
  background: linear-gradient(135deg, #14532d 0%, #16a34a 100%);
  color: #fff;
  padding: 36px 0 28px;
}
.page-banner h1 { font-size: 1.6rem; font-weight: 800; margin-bottom: 8px; }

/* ── Filter Sidebar ──────────────────────────────────────── */
.filter-sidebar {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}
.filter-section { margin-bottom: 24px; }
.filter-title { font-size: .88rem; font-weight: 700; color: var(--gray-800); margin-bottom: 12px; text-transform: uppercase; letter-spacing: .5px; }
.filter-chip {
  display: inline-flex; align-items: center;
  padding: 5px 12px;
  border: 1.5px solid var(--gray-200);
  border-radius: 20px;
  font-size: .78rem; font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  margin: 3px;
  background: #fff;
  color: var(--gray-600);
}
.filter-chip:hover, .filter-chip.active {
  border-color: var(--green);
  background: var(--green-light);
  color: var(--green-dark);
}

/* ── Pagination ──────────────────────────────────────────── */
.pagination { display: flex; gap: 6px; align-items: center; justify-content: center; }
.page-btn {
  width: 38px; height: 38px;
  border-radius: 8px;
  border: 1.5px solid var(--gray-200);
  background: #fff;
  font-size: .88rem; font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex; align-items: center; justify-content: center;
  color: var(--gray-600);
}
.page-btn:hover { border-color: var(--green); color: var(--green); }
.page-btn.active { background: var(--green); color: #fff; border-color: var(--green); }
.page-btn:disabled { opacity: .4; cursor: not-allowed; }

/* ── Responsive Utilities ────────────────────────────────── */
@media (max-width: 768px) {
  .section-heading { font-size: 1.15rem; }
  .hero-slide img  { height: 220px; }
  .product-name    { font-size: .85rem; }
  .price-current   { font-size: .95rem; }
  #toast-container { bottom: 16px; right: 16px; left: 16px; }
  .toast           { max-width: 100%; }
}

@media (max-width: 480px) {
  .cat-icon  { font-size: 1.6rem; }
  .cat-name  { font-size: .7rem; }
  .btn-primary, .btn-outline { padding: 9px 16px; font-size: .85rem; }
}

/* ── Scrollbar ───────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--gray-100); }
::-webkit-scrollbar-thumb { background: var(--gray-200); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--green); }

/* ── Selection ───────────────────────────────────────────── */
::selection { background: var(--green-light); color: var(--green-dark); }

/* ============================================================
   ApniDukaan — Phase 2 Additions
   Dashboard layouts, tracking timeline, product detail,
   user/seller/admin panel enhancements
   ============================================================ */

/* ── Dashboard Layout ────────────────────────────────────── */
.dashboard-layout {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}
@media (max-width: 1024px) {
  .dashboard-layout { flex-direction: column; }
  .dashboard-layout aside { width: 100%; position: static; }
}

/* ── Order Tracking Timeline ─────────────────────────────── */
.tracking-timeline {
  position: relative;
  padding-left: 32px;
}
.tracking-timeline::before {
  content: '';
  position: absolute;
  left: 11px; top: 0; bottom: 0;
  width: 2px;
  background: var(--gray-200);
}
.timeline-step {
  position: relative;
  padding-bottom: 28px;
}
.timeline-step:last-child { padding-bottom: 0; }
.timeline-dot {
  position: absolute;
  left: -32px; top: 2px;
  width: 24px; height: 24px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem;
  border: 2px solid var(--gray-200);
  background: #fff;
  z-index: 1;
}
.timeline-dot.done  { background: var(--green); border-color: var(--green); color: #fff; }
.timeline-dot.active{ background: var(--amber); border-color: var(--amber); color: #fff; }
.timeline-dot.pending{ background: #fff; border-color: var(--gray-200); color: var(--gray-400); }
.timeline-label { font-size: .88rem; font-weight: 600; color: var(--gray-800); }
.timeline-label.pending { color: var(--gray-400); }
.timeline-sub   { font-size: .75rem; color: var(--gray-600); margin-top: 2px; }

/* ── Product Detail ──────────────────────────────────────── */
.product-zoom-wrap {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  cursor: zoom-in;
}
.product-zoom-wrap img {
  transition: transform .4s ease;
  width: 100%; height: 100%;
  object-fit: cover;
}
.product-zoom-wrap:hover img { transform: scale(1.06); }

/* ── Table Responsive ────────────────────────────────────── */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.data-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.data-table th {
  background: var(--gray-50);
  padding: 10px 14px;
  text-align: left;
  font-size: .75rem;
  font-weight: 700;
  color: var(--gray-600);
  text-transform: uppercase;
  letter-spacing: .5px;
  border-bottom: 1px solid var(--gray-200);
  white-space: nowrap;
}
.data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--gray-100);
  vertical-align: middle;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--gray-50); }

/* ── Status Pill ─────────────────────────────────────────── */
.status-pill {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: .72rem; font-weight: 700;
  white-space: nowrap;
}
.status-pending   { background: #fef3c7; color: #92400e; }
.status-confirmed { background: #dbeafe; color: #1e40af; }
.status-shipped   { background: #ede9fe; color: #5b21b6; }
.status-delivered { background: #dcfce7; color: #14532d; }
.status-cancelled { background: #fee2e2; color: #991b1b; }

/* ── Info Card ───────────────────────────────────────────── */
.info-card {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}
.info-card-title {
  font-size: .88rem; font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 12px;
  display: flex; align-items: center; gap: 8px;
}

/* ── Action Button Group ─────────────────────────────────── */
.action-group { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.btn-xs {
  padding: 4px 10px;
  border-radius: 8px;
  font-size: .72rem; font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  display: inline-flex; align-items: center; gap: 4px;
}
.btn-xs-green  { background: #dcfce7; color: #15803d; }
.btn-xs-green:hover  { background: #bbf7d0; }
.btn-xs-blue   { background: #dbeafe; color: #1d4ed8; }
.btn-xs-blue:hover   { background: #bfdbfe; }
.btn-xs-red    { background: #fee2e2; color: #b91c1c; }
.btn-xs-red:hover    { background: #fecaca; }
.btn-xs-amber  { background: #fef3c7; color: #92400e; }
.btn-xs-amber:hover  { background: #fde68a; }

/* ── Search Highlight ────────────────────────────────────── */
mark.search-hl {
  background: #fef08a;
  color: inherit;
  border-radius: 2px;
  padding: 0 2px;
}

/* ── Notification Badge ──────────────────────────────────── */
.notif-badge {
  position: absolute; top: -4px; right: -4px;
  min-width: 18px; height: 18px;
  background: var(--red);
  color: #fff;
  font-size: .65rem; font-weight: 800;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
  border: 2px solid #fff;
}

/* ── Responsive Dashboard Sidebar ───────────────────────── */
@media (max-width: 1024px) {
  /* Sidebar becomes horizontal scrollable tabs on mobile */
  aside[aria-label="Dashboard navigation"] {
    width: 100% !important;
  }
  aside[aria-label="Dashboard navigation"] > div {
    position: static !important;
    border-radius: var(--radius);
  }
  aside[aria-label="Dashboard navigation"] nav {
    display: flex;
    overflow-x: auto;
    gap: 4px;
    padding: 8px;
    -webkit-overflow-scrolling: touch;
  }
  aside[aria-label="Dashboard navigation"] nav a {
    white-space: nowrap;
    flex-shrink: 0;
    padding: 8px 14px;
    border-radius: 20px;
    margin-bottom: 0;
  }
  aside[aria-label="Dashboard navigation"] nav hr { display: none; }
  /* Hide user info header on mobile to save space */
  aside[aria-label="Dashboard navigation"] > div > div:first-child {
    display: none;
  }
}

/* ── Print Styles (for order invoices) ──────────────────── */
@media print {
  #navbar, #mobile-menu, #back-to-top, #toast-container,
  .btn-primary, .btn-outline, footer { display: none !important; }
  body { background: #fff; }
  .page-banner { background: #f0fdf4 !important; color: #14532d !important; }
}

/* ============================================================
   ApniDukaan — Feature Additions
   Search typewriter, live suggestions, offer badge,
   unit chips, product brand, dukaan logo upload
   ============================================================ */

/* ── Typewriter cursor on search placeholder ─────────────── */
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}
.search-bar input.typewriter-active::placeholder {
  color: var(--gray-600);
}
/* Animated underline on search focus */
.search-bar:focus-within {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(22,163,74,.15);
  transform: scaleX(1.01);
  transition: transform .2s ease, border-color .2s, box-shadow .2s;
}

/* ── Live Search Suggestions Dropdown ────────────────────── */
.search-suggestions {
  position: absolute;
  top: calc(100% + 6px);
  left: 0; right: 0;
  background: #fff;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  z-index: 2000;
  overflow: hidden;
  max-height: 360px;
  overflow-y: auto;
}
.search-suggestions.hidden { display: none; }

.suggestion-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  cursor: pointer;
  transition: background .15s;
  text-decoration: none;
  color: inherit;
}
.suggestion-item:hover,
.suggestion-item.focused { background: var(--green-light); }

.suggestion-img {
  width: 40px; height: 40px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--gray-100);
}
.suggestion-name {
  font-size: .88rem;
  font-weight: 600;
  color: var(--gray-800);
  line-height: 1.2;
}
.suggestion-meta {
  font-size: .72rem;
  color: var(--gray-600);
  margin-top: 2px;
}
.suggestion-price {
  margin-left: auto;
  font-size: .82rem;
  font-weight: 700;
  color: var(--green-dark);
  flex-shrink: 0;
}
.suggestion-footer {
  padding: 8px 14px;
  font-size: .78rem;
  color: var(--green);
  font-weight: 600;
  text-align: center;
  border-top: 1px solid var(--gray-100);
  cursor: pointer;
}
.suggestion-footer:hover { background: var(--green-light); }

/* Search form wrapper needs relative positioning */
.search-form { position: relative; }

/* ── Offer Badge ─────────────────────────────────────────── */
.offer-badge {
  position: absolute;
  top: 10px; left: 10px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  font-size: .68rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 20px;
  letter-spacing: .3px;
  box-shadow: 0 2px 6px rgba(245,158,11,.4);
  z-index: 2;
}

/* Dukaan card offer badge */
.dukaan-offer-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  font-size: .72rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 20px;
  box-shadow: 0 2px 6px rgba(245,158,11,.35);
}

/* ── Product Brand Name ───────────────────────────────────── */
.product-brand {
  font-size: .7rem;
  font-weight: 700;
  color: var(--green-dark);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 2px;
}

/* ── Unit Chip Selector ──────────────────────────────────── */
.unit-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 6px;
  border: 2px solid var(--gray-200);
  border-radius: 10px;
  font-size: .8rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  background: #fff;
  color: var(--gray-600);
  text-align: center;
  user-select: none;
}
.unit-chip:hover {
  border-color: var(--green);
  background: var(--green-light);
  color: var(--green-dark);
}
.unit-chip.selected,
.unit-chip:has(input:checked) {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
  box-shadow: 0 2px 8px rgba(22,163,74,.3);
}

/* ── Logo Upload Drop Zone ───────────────────────────────── */
.logo-dropzone {
  border: 2px dashed var(--gray-300);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}
.logo-dropzone:hover,
.logo-dropzone.drag-over {
  border-color: var(--green);
  background: var(--green-light);
}

/* ── Responsive search suggestions on mobile ─────────────── */
@media (max-width: 768px) {
  .search-suggestions {
    position: fixed;
    top: auto;
    left: 8px; right: 8px;
    border-radius: var(--radius);
    max-height: 50vh;
  }
}

/* ============================================================
   ApniDukaan — Delivery OTP & Code Styles
   ============================================================ */

/* ── Delivery Code Card ──────────────────────────────────── */
.delivery-code-card {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
  color: #fff;
  border-radius: 14px;
  padding: 10px 20px;
  box-shadow: 0 4px 16px rgba(59,130,246,.35);
  min-width: 100px;
}
.delivery-code-label {
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: .8;
  margin-bottom: 2px;
}
.delivery-code-value {
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: 6px;
  font-family: 'Courier New', monospace;
  line-height: 1;
}

/* ── OTP Digit Input ─────────────────────────────────────── */
.otp-digit {
  font-size: 1.5rem !important;
  font-weight: 900 !important;
  text-align: center !important;
  letter-spacing: 0 !important;
  padding: 10px 4px !important;
  border-radius: 12px !important;
  border: 2px solid var(--gray-200) !important;
  transition: border-color .2s, box-shadow .2s !important;
  font-family: 'Courier New', monospace !important;
}
.otp-digit:focus {
  border-color: #3b82f6 !important;
  box-shadow: 0 0 0 3px rgba(59,130,246,.15) !important;
  outline: none !important;
}
.otp-digit.border-red-400 {
  border-color: #f87171 !important;
  animation: shake .4s ease;
}
@keyframes shake {
  0%,100% { transform: translateX(0); }
  20%,60%  { transform: translateX(-4px); }
  40%,80%  { transform: translateX(4px); }
}

/* ── Order Status Timeline (extended) ───────────────────── */
.timeline-dot.out-for-delivery {
  background: #6366f1;
  border-color: #6366f1;
  color: #fff;
}

/* ── Live Status Badge ───────────────────────────────────── */
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
  background: #dcfce7;
  color: #15803d;
}
.live-badge::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #16a34a;
  animation: pulse-dot 1.5s infinite;
}
@keyframes pulse-dot {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .5; transform: scale(1.4); }
}

/* ── Delivery Dashboard ──────────────────────────────────── */
.delivery-page-banner {
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
  color: #fff;
  padding: 36px 0 28px;
}

/* ── Permission Notice ───────────────────────────────────── */
.permission-notice {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fef3c7;
  border: 1.5px solid #fcd34d;
  border-radius: 10px;
  padding: 8px 14px;
  font-size: .78rem;
  font-weight: 600;
  color: #92400e;
}

/* ── Workflow Steps ──────────────────────────────────────── */
.workflow-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}
.workflow-step-badge {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: .72rem;
  font-weight: 700;
  white-space: nowrap;
}
.workflow-arrow {
  color: var(--gray-300);
  font-size: 1.2rem;
  align-self: center;
}

/* ── Responsive OTP form ─────────────────────────────────── */
@media (max-width: 480px) {
  .otp-digit { font-size: 1.2rem !important; padding: 8px 2px !important; }
  .delivery-code-value { font-size: 1.3rem; letter-spacing: 4px; }
}

/* ============================================================
   ApniDukaan — Final Polish & Optimization
   Accessibility, mobile touch targets, skeleton loaders,
   empty states, animations, performance
   ============================================================ */

/* ── Accessibility: Focus Visible ───────────────────────── */
:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 2px;
  border-radius: 4px;
}
/* Remove outline for mouse users, keep for keyboard */
:focus:not(:focus-visible) { outline: none; }

/* ── Mobile Touch Targets (min 44px) ────────────────────── */
@media (max-width: 768px) {
  .btn-primary,
  .btn-outline,
  .btn-add-cart,
  .search-btn,
  .qty-btn,
  .page-btn {
    min-height: 44px;
    min-width: 44px;
  }
  /* Larger tap targets for nav links */
  .nav-link { padding: 10px 8px; }
  /* Bigger form inputs on mobile */
  .form-input { font-size: 16px; } /* Prevents iOS zoom on focus */
}

/* ── Skeleton Loader Cards ───────────────────────────────── */
.skeleton-card {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  overflow: hidden;
}
.skeleton-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
}
.skeleton-line {
  height: 12px;
  border-radius: 6px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  margin: 6px 0;
}
.skeleton-line.short  { width: 60%; }
.skeleton-line.medium { width: 80%; }
.skeleton-line.full   { width: 100%; }
.skeleton-btn {
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  margin-top: 10px;
}

/* ── Empty State Improvements ────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 48px 20px;
  color: var(--gray-600);
}
.empty-state-icon {
  font-size: 3.5rem;
  margin-bottom: 12px;
  opacity: .45;
  display: block;
}
.empty-state h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 6px;
}
.empty-state p { font-size: .88rem; line-height: 1.5; }

/* ── Smooth Page Transitions ─────────────────────────────── */
main#main-content {
  animation: fadeInUp .25s ease both;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Card Hover Lift ─────────────────────────────────────── */
.product-card,
.dukaan-card,
.info-card,
.stat-card {
  will-change: transform;
}

/* ── Smooth Image Loading ────────────────────────────────── */
img {
  transition: opacity .3s ease;
}
img[loading="lazy"] {
  opacity: 0;
}
img[loading="lazy"].loaded,
img:not([loading]) {
  opacity: 1;
}

/* ── Form Input Improvements ─────────────────────────────── */
.form-input:disabled {
  background: var(--gray-100);
  cursor: not-allowed;
  opacity: .7;
}
.form-input::placeholder { color: #9ca3af; }

/* ── Button Loading State ────────────────────────────────── */
.btn-loading {
  position: relative;
  pointer-events: none;
  opacity: .8;
}
.btn-loading::after {
  content: '';
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px; height: 14px;
  border: 2px solid rgba(255,255,255,.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .6s linear infinite;
}

/* ── Status Badge Animations ─────────────────────────────── */
.stock-badge.out-stock {
  animation: pulse-red 2s ease infinite;
}
@keyframes pulse-red {
  0%, 100% { opacity: 1; }
  50%       { opacity: .7; }
}

/* ── Notification Bell Animation ─────────────────────────── */
@keyframes bell-ring {
  0%, 100% { transform: rotate(0); }
  10%, 30%  { transform: rotate(-15deg); }
  20%, 40%  { transform: rotate(15deg); }
  50%       { transform: rotate(0); }
}
.bell-ring { animation: bell-ring .6s ease; }

/* ── OTP Input Styling ───────────────────────────────────── */
.otp-digit {
  width: 56px; height: 56px;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 800;
  border: 2px solid var(--gray-200);
  border-radius: 12px;
  transition: border-color .2s, box-shadow .2s;
  outline: none;
  background: #fff;
}
.otp-digit:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59,130,246,.15);
}
.otp-digit.filled {
  border-color: var(--green);
  background: var(--green-light);
  color: var(--green-dark);
}

/* ── Delivery Code Display ───────────────────────────────── */
.delivery-code-card {
  background: linear-gradient(135deg, #1e40af, #3b82f6);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  text-align: center;
}
.delivery-code-number {
  font-size: 2.5rem;
  font-weight: 900;
  letter-spacing: .3em;
  font-family: 'Courier New', monospace;
  text-shadow: 0 2px 8px rgba(0,0,0,.2);
}

/* ── Pending Timer Badge ─────────────────────────────────── */
.pending-timer {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-variant-numeric: tabular-nums;
}
.pending-timer.urgent {
  background: #fee2e2;
  color: #b91c1c;
  animation: pulse-red 1.5s ease infinite;
}

/* ── Live Indicator Dot ──────────────────────────────────── */
@keyframes live-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(1.4); opacity: .6; }
}
.live-dot {
  width: 8px; height: 8px;
  background: var(--green);
  border-radius: 50%;
  animation: live-pulse 1.5s ease infinite;
  display: inline-block;
}

/* ── Responsive Table Improvements ──────────────────────── */
@media (max-width: 640px) {
  .data-table th,
  .data-table td {
    padding: 8px 10px;
    font-size: .78rem;
  }
  /* Hide less important columns on mobile */
  .hide-mobile { display: none !important; }
}

/* ── Print Optimization ──────────────────────────────────── */
@media print {
  #navbar, #mobile-menu, #back-to-top,
  #toast-container, .btn-primary, .btn-outline,
  footer, .no-print { display: none !important; }
  body { background: #fff; font-size: 12pt; }
  .info-card { box-shadow: none; border: 1px solid #ccc; }
  .delivery-code-card { background: #f0f4ff !important; color: #1e40af !important; }
}

/* ── High Contrast Mode Support ──────────────────────────── */
@media (prefers-contrast: high) {
  .product-card { border-width: 2px; }
  .btn-primary  { border: 2px solid #000; }
  .form-input   { border-width: 2px; }
}

/* ── Reduced Motion Support ──────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  .skeleton, .skeleton-img, .skeleton-line, .skeleton-btn {
    animation: none;
    background: var(--gray-100);
  }
}

/* ── Rural-Friendly: High Visibility ─────────────────────── */
.price-current {
  font-size: 1.05rem;
  font-weight: 800;
}
.product-name {
  font-size: .9rem;
  font-weight: 600;
  line-height: 1.35;
}
/* Larger text for key actions */
.btn-add-cart {
  font-size: .88rem;
  font-weight: 700;
  letter-spacing: .01em;
}

/* ── Scroll Snap for Mobile Carousels ────────────────────── */
.scroll-snap-x {
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  overflow-x: auto;
  scrollbar-width: none;
}
.scroll-snap-x::-webkit-scrollbar { display: none; }
.scroll-snap-item { scroll-snap-align: start; }

/* ── Safe Area Insets (iPhone notch) ─────────────────────── */
#navbar {
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}
footer {
  padding-bottom: calc(env(safe-area-inset-bottom) + 16px);
}

/* ============================================================
   ApniDukaan — Toggle Switch Component
   Used in stock dashboard and products table
   ============================================================ */

/* ── Toggle Switch ───────────────────────────────────────── */
.toggle-track {
  position: relative;
  width: 40px; height: 20px;
  border-radius: 10px;
  transition: background-color .2s ease;
  cursor: pointer;
  flex-shrink: 0;
}
.toggle-thumb {
  position: absolute;
  top: 2px; left: 2px;
  width: 16px; height: 16px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
  transition: transform .2s ease;
}

/* ── Inline stock edit ───────────────────────────────────── */
.stock-inline-edit {
  display: flex;
  align-items: center;
  gap: 4px;
}
.stock-inline-edit input[type="number"] {
  width: 64px;
  text-align: center;
  font-size: .85rem;
  font-weight: 600;
  padding: 4px 6px;
  border: 1.5px solid var(--gray-200);
  border-radius: 8px;
  outline: none;
  transition: border-color .15s;
}
.stock-inline-edit input[type="number"]:focus {
  border-color: var(--green);
}

/* ── Bulk action bar ─────────────────────────────────────── */
.bulk-action-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 12px 16px;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
}

/* ── Stock row highlight on update ──────────────────────── */
.stock-row-updated {
  animation: rowFlash .8s ease;
}
@keyframes rowFlash {
  0%   { background: #f0fdf4; }
  50%  { background: #dcfce7; }
  100% { background: transparent; }
}

/* ── Notification dropdown ───────────────────────────────── */
.notif-dropdown {
  position: absolute;
  right: 0; top: calc(100% + 8px);
  width: 288px;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-lg);
  z-index: 2000;
  overflow: hidden;
  max-height: 360px;
  overflow-y: auto;
}
.notif-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--gray-100);
  cursor: pointer;
  transition: background .15s;
  text-decoration: none;
  color: inherit;
}
.notif-item:hover { background: var(--gray-50); }
.notif-item:last-child { border-bottom: none; }
.notif-icon { font-size: 1.2rem; flex-shrink: 0; margin-top: 2px; }
.notif-title { font-size: .85rem; font-weight: 600; color: var(--gray-800); }
.notif-msg   { font-size: .75rem; color: var(--gray-600); margin-top: 2px; }

/* ── Checkout progress steps ─────────────────────────────── */
.checkout-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.checkout-step-circle {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem; font-weight: 700;
  transition: var(--transition);
}
.checkout-step-circle.active {
  background: var(--green);
  color: #fff;
  box-shadow: 0 2px 8px rgba(22,163,74,.3);
}
.checkout-step-circle.inactive {
  background: var(--gray-200);
  color: var(--gray-500);
}
.checkout-step-label {
  font-size: .7rem;
  font-weight: 600;
  color: var(--gray-500);
}
.checkout-step-label.active { color: var(--green); }
.checkout-connector {
  flex: 1;
  height: 2px;
  background: var(--gray-200);
  margin: 0 4px;
  margin-top: -18px;
}
.checkout-connector.active { background: var(--green); }

/* ── Mobile: bottom sticky cart bar ─────────────────────── */
@media (max-width: 640px) {
  .sticky-cart-bar {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: #fff;
    border-top: 1px solid var(--gray-200);
    padding: 12px 16px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
    z-index: 800;
    box-shadow: 0 -4px 16px rgba(0,0,0,.08);
  }
}

/* ── Delivery code inline (admin table) ──────────────────── */
.code-inline {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  padding: 4px 10px;
  text-align: center;
}
.code-inline .code-label {
  font-size: .65rem;
  color: #3b82f6;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
  display: block;
}
.code-inline .code-value {
  font-family: 'Courier New', monospace;
  font-size: 1.1rem;
  font-weight: 900;
  color: #1e40af;
  letter-spacing: .15em;
}
