/* ============================================================
   MARKETPLACE ADDITIONS — Homepage + Buyer Account
   Based on Vepo Design System + smooth animations
   ============================================================ */

:root {
  --primary: #00a651;
  --primary-dark: #00863f;
  --primary-light: #e7f7ee;
  --red: #e8374b;
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f2f3f1;
  --ink: #171b18;
  --ink-soft: #6b756e;
  --ink-faint: #9aa39c;
  --line: #eceeec;
  --line-strong: #dfe2df;
  --r-xl: 26px;
  --r-lg: 18px;
  --r-md: 14px;
  --r-sm: 10px;
  --r-pill: 999px;
  --e1: 0 1px 2px rgba(15,33,22,.05);
  --e2: 0 6px 20px rgba(15,33,22,.08);
  --dur: .25s;
  --ease: cubic-bezier(.22,1,.36,1);
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes pulseSoft {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

.animate-fade-up {
  animation: fadeUp .55s var(--ease) both;
}

.animate-card {
  animation: scaleIn .4s var(--ease) both;
}

/* Stagger product cards */
.p-grid .p-card:nth-child(1) { animation-delay: 0.05s; }
.p-grid .p-card:nth-child(2) { animation-delay: 0.10s; }
.p-grid .p-card:nth-child(3) { animation-delay: 0.15s; }
.p-grid .p-card:nth-child(4) { animation-delay: 0.20s; }
.p-grid .p-card:nth-child(5) { animation-delay: 0.25s; }
.p-grid .p-card:nth-child(6) { animation-delay: 0.30s; }
.p-grid .p-card:nth-child(7) { animation-delay: 0.35s; }
.p-grid .p-card:nth-child(8) { animation-delay: 0.40s; }

/* ============================================================
   HOMEPAGE — Hero fallbacks
   ============================================================ */
.hero-fallback {
  background: linear-gradient(135deg, #00a651 0%, #00c765 50%, #00863f 100%);
  position: absolute;
  inset: 0;
}
.hero-fallback-2 {
  background: linear-gradient(135deg, #1a5c2e 0%, #00a651 60%, #00c765 100%);
  position: absolute;
  inset: 0;
}

/* ============================================================
   HOMEPAGE — Categories Icons
   ============================================================ */
.section-cats {
  padding: 28px 0 12px;
}

.cat-icons {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.cat-icons::-webkit-scrollbar { display: none; }

.cat-icon-item {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-width: 72px;
  text-align: center;
  color: var(--ink);
  transition: var(--dur) var(--ease);
}
.cat-icon-item:hover {
  color: var(--primary);
  transform: translateY(-3px);
}

.cat-ic {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--surface);
  border: 1.5px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  transition: var(--dur) var(--ease);
  box-shadow: var(--e1);
}
.cat-icon-item:hover .cat-ic {
  background: var(--primary-light);
  border-color: var(--primary);
  box-shadow: 0 6px 16px rgba(0,166,81,.18);
}

.cat-icon-item span:last-child {
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.3;
}

/* ============================================================
   HOMEPAGE — Featured Vendors
   ============================================================ */
.section-vendors {
  padding: 36px 0;
}

.vendor-scroll {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: none;
}
.vendor-scroll::-webkit-scrollbar { display: none; }

.vendor-card {
  flex: 0 0 160px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  transition: var(--dur) var(--ease);
  box-shadow: var(--e1);
}
.vendor-card:hover {
  box-shadow: var(--e2);
  transform: translateY(-4px);
  border-color: var(--primary-light);
}

.vendor-logo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--dur) var(--ease);
}
.vendor-card:hover .vendor-logo {
  transform: scale(1.06);
}

.vendor-info strong {
  font-size: 13.5px;
  font-weight: 700;
  display: block;
  margin-bottom: 2px;
}

.vendor-rating {
  font-size: 12px;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
}
.vendor-rating span:first-child {
  color: #f5a623;
  font-size: 13px;
}
.vendor-count {
  color: var(--ink-faint);
  font-size: 11px;
}

.vendor-btn {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  padding: 6px 12px;
  border-radius: var(--r-pill);
  background: var(--primary-light);
  transition: var(--dur) var(--ease);
}
.vendor-card:hover .vendor-btn {
  background: var(--primary);
  color: #fff;
}

/* ============================================================
   HOMEPAGE — Product Cards marketplace tweaks
   ============================================================ */
.p-vendor {
  font-size: 11.5px;
  color: var(--ink-faint);
  margin-bottom: 8px;
  font-weight: 500;
}

.p-card .p-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--primary);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--r-pill);
  z-index: 2;
}

.p-card {
  transition: var(--dur) var(--ease);
}
.p-card:hover {
  box-shadow: var(--e2);
  transform: translateY(-4px);
}

/* ============================================================
   BUYER ACCOUNT — Dashboard
   ============================================================ */
.acc-dashboard {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 16px 40px;
}

/* Profile Header */
.acc-profile-header {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 22px 20px;
  margin-bottom: 20px;
  box-shadow: var(--e1);
  transition: var(--dur) var(--ease);
}
.acc-profile-header:hover {
  box-shadow: var(--e2);
}

.acc-avatar {
  flex-shrink: 0;
}
.acc-avatar img {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary-light);
  transition: var(--dur) var(--ease);
}
.acc-profile-header:hover .acc-avatar img {
  border-color: var(--primary);
}

.acc-profile-info h1 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.verified-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  border-radius: 50%;
  animation: pulseSoft 2.5s ease-in-out infinite;
}

.acc-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  color: var(--ink-soft);
  margin-bottom: 4px;
}
.acc-meta svg {
  flex-shrink: 0;
  opacity: .7;
}

.acc-profile-info .btn {
  margin-top: 10px;
}

/* Stats Cards */
.acc-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.acc-stat-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 18px 12px;
  text-align: center;
  transition: var(--dur) var(--ease);
  box-shadow: var(--e1);
}
.acc-stat-card:hover {
  border-color: var(--primary);
  box-shadow: var(--e2);
  transform: translateY(-3px);
}

.stat-icon {
  width: 42px;
  height: 42px;
  margin: 0 auto 10px;
  border-radius: 12px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--dur) var(--ease);
}
.acc-stat-card:hover .stat-icon {
  background: var(--primary);
  color: #fff;
  transform: scale(1.08);
}

.stat-num {
  font-size: 22px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.1;
  margin-bottom: 2px;
}

.stat-label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-soft);
}

/* Menu List */
.acc-menu {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  overflow: hidden;
  margin-bottom: 28px;
  box-shadow: var(--e1);
}

.acc-menu-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  transition: var(--dur) var(--ease);
  color: var(--ink);
}
.acc-menu-item:last-child {
  border-bottom: none;
}
.acc-menu-item:hover {
  background: var(--surface-2);
}

.menu-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--surface-2);
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--dur) var(--ease);
}
.acc-menu-item:hover .menu-icon {
  background: var(--primary-light);
  color: var(--primary);
  transform: scale(1.06);
}

.menu-label {
  flex: 1;
  font-size: 14.5px;
  font-weight: 600;
}

.menu-chevron {
  color: var(--ink-faint);
  flex-shrink: 0;
  transition: var(--dur) var(--ease);
}
.acc-menu-item:hover .menu-chevron {
  color: var(--primary);
  transform: translateX(-3px);
}

/* Logout special */
.acc-menu-item.logout {
  color: var(--red);
}
.acc-menu-item.logout .menu-icon {
  background: #fef2f3;
  color: var(--red);
}
.acc-menu-item.logout:hover {
  background: #fef2f3;
}
.acc-menu-item.logout:hover .menu-icon {
  background: var(--red);
  color: #fff;
}

/* Recent Orders */
.acc-recent-orders {
  margin-top: 8px;
}

.acc-recent-orders .section-head {
  margin-bottom: 14px;
}
.acc-recent-orders h3 {
  font-size: 16px;
  font-weight: 800;
}

.order-list {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.order-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  transition: var(--dur) var(--ease);
}
.order-row:last-child {
  border-bottom: none;
}
.order-row:hover {
  background: var(--surface-2);
}

.order-info {
  flex: 1;
  min-width: 0;
}
.order-info strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 2px;
}
.order-info span {
  font-size: 12px;
  color: var(--ink-faint);
}

.order-status {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: var(--surface-2);
  color: var(--ink-soft);
  white-space: nowrap;
}
.order-status.status-completed,
.order-status.status-processing {
  background: var(--primary-light);
  color: var(--primary-dark);
}
.order-status.status-on-hold,
.order-status.status-pending {
  background: #fff8e6;
  color: #c47d00;
}
.order-status.status-cancelled,
.order-status.status-failed {
  background: #fef2f3;
  color: var(--red);
}

.order-total {
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
  white-space: nowrap;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 600px) {
  .acc-profile-header {
    flex-direction: column;
    text-align: center;
    padding: 24px 18px;
  }
  .acc-profile-info h1 {
    justify-content: center;
  }
  .acc-meta {
    justify-content: center;
  }
  .acc-profile-info .btn {
    width: 100%;
  }

  .acc-stats {
    gap: 10px;
  }
  .stat-num {
    font-size: 19px;
  }
  .stat-label {
    font-size: 11.5px;
  }

  .vendor-card {
    flex: 0 0 148px;
  }
}

@media (max-width: 400px) {
  .acc-stats {
    grid-template-columns: 1fr 1fr 1fr;
  }
  .stat-icon {
    width: 36px;
    height: 36px;
  }
}

/* Reduce motion preference */
@media (prefers-reduced-motion: reduce) {
  .animate-fade-up,
  .animate-card,
  .verified-badge {
    animation: none !important;
  }
  .p-card:hover,
  .vendor-card:hover,
  .acc-stat-card:hover {
    transform: none;
  }
}

/* ============================================================
   LOCATION BAR (Snappfood style)
   ============================================================ */
.location-bar {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface-2);
  border-radius: var(--r-pill);
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  max-width: 220px;
  border: 1px solid var(--line);
  transition: var(--dur) var(--ease);
}
.location-bar:hover {
  border-color: var(--primary);
  background: var(--primary-light);
}
.location-bar .loc-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}

/* Location Modal */
.loc-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.loc-modal[hidden] { display: none; }
.loc-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.45);
}
.loc-modal-box {
  position: relative;
  background: #fff;
  border-radius: 20px 20px 0 0;
  width: 100%;
  max-width: 560px;
  max-height: 92vh;
  padding: 20px 18px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: fadeUp .35s var(--ease);
}
.loc-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.loc-modal-header h3 {
  font-size: 17px;
  font-weight: 800;
}
.loc-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-2);
}
.loc-hint {
  font-size: 13px;
  color: var(--ink-soft);
  margin: 0;
}
.loc-search-wrap input {
  width: 100%;
  height: 46px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-pill);
  padding: 0 16px;
  font-family: inherit;
  font-size: 14px;
  outline: none;
}
.loc-search-wrap input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}
.loc-map {
  height: 280px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface-2);
}
.loc-confirm {
  width: 100%;
  height: 50px;
  font-size: 15px;
  font-weight: 700;
  border-radius: var(--r-pill);
}

/* ============================================================
   SNAPFOOD-STYLE PRODUCT CARDS
   ============================================================ */
.sf-product-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sf-card {
  display: flex;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px;
  transition: var(--dur) var(--ease);
  box-shadow: var(--e1);
}
.sf-card:hover {
  box-shadow: var(--e2);
}

.sf-img {
  flex: 0 0 100px;
  width: 100px;
  height: 100px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  background: var(--surface-2);
}
.sf-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sf-discount {
  position: absolute;
  top: 6px;
  right: 6px;
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 8px;
}

.sf-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sf-top {
  display: flex;
  align-items: center;
  gap: 6px;
}
.sf-rating {
  font-size: 12px;
  font-weight: 700;
  color: #f5a623;
}
.sf-body h3 {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  margin: 0;
}
.sf-body h3 a:hover { color: var(--primary); }
.sf-vendor {
  font-size: 12px;
  color: var(--ink-faint);
}
.sf-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
}
.sf-price {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.sf-price del {
  font-size: 11px;
  color: var(--ink-faint);
}
.sf-price strong {
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
}
.sf-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.sf-stock {
  font-size: 11px;
  color: var(--red);
  font-weight: 600;
}
.sf-card .button,
.sf-card .add_to_cart_button {
  background: var(--primary-light) !important;
  color: var(--primary) !important;
  border: none !important;
  border-radius: var(--r-pill) !important;
  padding: 8px 14px !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
  min-height: auto !important;
}
.sf-card .button:hover,
.sf-card .add_to_cart_button:hover {
  background: var(--primary) !important;
  color: #fff !important;
}

/* ============================================================
   VENDOR STORE PAGE
   ============================================================ */
.vendor-store-page { padding-bottom: 80px; }
.vs-header {
  background: linear-gradient(160deg, var(--primary-light), #fff);
  padding: 16px 0 28px;
  border-bottom: 1px solid var(--line);
}
.vs-back {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fff;
  margin-bottom: 14px;
  box-shadow: var(--e1);
}
.vs-profile {
  display: flex;
  gap: 16px;
  align-items: center;
}
.vs-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #fff;
  box-shadow: var(--e2);
  flex-shrink: 0;
}
.vs-avatar img { width: 100%; height: 100%; object-fit: cover; }
.vs-info h1 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 4px;
}
.vs-meta {
  display: flex;
  gap: 12px;
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.vs-rating { color: #f5a623; font-weight: 700; }
.vs-desc {
  font-size: 13px;
  color: var(--ink-soft);
  margin: 0;
}
.vs-products { padding: 24px 0 40px; }

/* ============================================================
   SELLER DASHBOARD
   ============================================================ */
.seller-dashboard {
  padding: 24px 0 80px;
}
.sd-header {
  margin-bottom: 24px;
}
.sd-welcome h1 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 2px;
}
.sd-welcome p {
  color: var(--ink-soft);
  font-size: 14px;
}
.sd-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  margin-top: 16px;
  padding-bottom: 4px;
}
.sd-tabs a {
  flex: 0 0 auto;
  padding: 10px 16px;
  border-radius: var(--r-pill);
  font-size: 13.5px;
  font-weight: 700;
  background: var(--surface-2);
  color: var(--ink-soft);
  transition: var(--dur) var(--ease);
}
.sd-tabs a.active,
.sd-tabs a:hover {
  background: var(--primary);
  color: #fff;
}

.sd-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
.sd-stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 18px 12px;
  text-align: center;
  box-shadow: var(--e1);
}
.sd-stat-num {
  font-size: 24px;
  font-weight: 800;
  color: var(--primary);
}
.sd-stat-label {
  font-size: 12.5px;
  color: var(--ink-soft);
  font-weight: 600;
}

.sd-quick {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.sd-section {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: var(--e1);
}
.sd-section h3 {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 14px;
}

.sd-prod-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.sd-prod-row:last-child { border-bottom: none; }
.sd-prod-img {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface-2);
  flex-shrink: 0;
}
.sd-prod-img img { width: 100%; height: 100%; object-fit: cover; }
.sd-prod-info { flex: 1; min-width: 0; }
.sd-prod-info strong { display: block; font-size: 14px; }
.sd-prod-info span { font-size: 12px; color: var(--ink-faint); }

.sd-form label {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  margin-bottom: 6px;
}
.sd-form input,
.sd-form textarea {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 14px;
  margin-bottom: 14px;
  outline: none;
}
.sd-form input:focus,
.sd-form textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}
.sd-form small {
  display: block;
  font-size: 12px;
  color: var(--ink-faint);
  margin-top: -10px;
  margin-bottom: 12px;
}

/* Product vendor box on single */
.product-vendor-box {
  margin: 12px 0 16px;
  padding: 12px 14px;
  background: var(--primary-light);
  border-radius: 12px;
}
.pv-link {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.pv-label { font-size: 12.5px; color: var(--ink-soft); }
.pv-go { font-size: 12.5px; font-weight: 700; color: var(--primary); margin-right: auto; }

/* Mobile bottom nav refinements */
.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  display: flex;
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 6px 0 env(safe-area-inset-bottom, 8px);
  box-shadow: 0 -4px 20px rgba(0,0,0,.06);
}
.mobile-bottom-nav a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 6px 4px;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--ink-faint);
  position: relative;
  transition: var(--dur) var(--ease);
}
.mobile-bottom-nav a svg {
  width: 22px;
  height: 22px;
}
.mobile-bottom-nav a.active {
  color: var(--primary);
}
.mobile-bottom-nav .mbn-badge {
  position: absolute;
  top: 2px;
  left: 50%;
  transform: translateX(-120%);
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  min-width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
}

@media (min-width: 900px) {
  .mobile-bottom-nav { display: none; }
  .loc-modal-box {
    border-radius: 20px;
    margin-bottom: 40px;
    max-height: 80vh;
  }
  .loc-modal {
    align-items: center;
  }
}

/* ============================================================
   SNAPFOOD HOMEPAGE LAYOUT
   ============================================================ */
.sf-home {
  padding-bottom: 80px;
  background: #f7f7f7;
  min-height: 100vh;
}

/* Top bar */
.sf-topbar {
  background: #fff;
  padding: 10px 0 12px;
  position: sticky;
  top: 0;
  z-index: 90;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.sf-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.sf-cart-icon {
  position: relative;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--ink);
}
.sf-cart-badge {
  position: absolute;
  top: 2px;
  left: 2px;
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  min-width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
}
.sf-search-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface-2);
  border-radius: var(--r-pill);
  padding: 0 16px;
  height: 46px;
}
.sf-search-wrap svg { color: var(--ink-faint); flex-shrink: 0; }
.sf-search-input {
  flex: 1;
  border: 0;
  background: transparent;
  outline: 0;
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
}
.sf-search-input::placeholder { color: var(--ink-faint); }

/* Categories */
.sf-cats { padding: 16px 0 8px; background: #fff; }
.sf-cats-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.sf-cats-scroll::-webkit-scrollbar { display: none; }
.sf-cat-chip {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 68px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink);
}
.sf-cat-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--e1);
  transition: var(--dur) var(--ease);
}
.sf-cat-chip:hover .sf-cat-icon {
  border-color: var(--primary);
  background: var(--primary-light);
  transform: translateY(-2px);
}

/* Promo */
.sf-promo { padding: 12px 0; }
.sf-promo-card {
  background: linear-gradient(120deg, #00a651, #00c765);
  border-radius: 18px;
  padding: 20px 18px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.sf-promo-tag {
  display: inline-block;
  background: rgba(255,255,255,.25);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 6px;
}
.sf-promo-text h2 {
  font-size: 16px;
  font-weight: 800;
  margin: 0 0 4px;
}
.sf-promo-text p {
  font-size: 12.5px;
  opacity: .9;
  margin: 0;
}
.sf-promo-btn {
  flex-shrink: 0;
  background: #fff;
  color: var(--primary);
  font-weight: 700;
  font-size: 13px;
  padding: 10px 18px;
  border-radius: var(--r-pill);
}

/* Section head */
.sf-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.sf-section-head h2 {
  font-size: 16px;
  font-weight: 800;
  margin: 0;
}
.sf-see-all {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
}

/* Vendors horizontal */
.sf-vendors {
  padding: 16px 0;
  background: #fff;
  margin-top: 8px;
}
.sf-vendors-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.sf-vendors-scroll::-webkit-scrollbar { display: none; }
.sf-vendor-card {
  flex: 0 0 110px;
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 10px;
  transition: var(--dur) var(--ease);
}
.sf-vendor-card:hover {
  box-shadow: var(--e2);
  transform: translateY(-2px);
  border-color: var(--primary-light);
}
.sf-vendor-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 8px;
  background: var(--primary-light);
}
.sf-vendor-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sf-vendor-name {
  font-size: 12.5px;
  font-weight: 700;
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sf-vendor-meta {
  font-size: 11px;
  color: var(--ink-faint);
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.sf-star { color: #f5a623; font-weight: 700; }

/* Products list Snappfood */
.sf-products {
  padding: 16px 0 32px;
  background: #fff;
  margin-top: 8px;
}
.sf-product-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sf-card {
  display: flex;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px;
  transition: var(--dur) var(--ease);
}
.sf-card:hover { box-shadow: var(--e2); }
.sf-img {
  flex: 0 0 96px;
  width: 96px;
  height: 96px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  background: var(--surface-2);
}
.sf-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sf-discount {
  position: absolute;
  top: 6px;
  right: 6px;
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 8px;
}
.sf-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.sf-row-top { display: flex; gap: 6px; }
.sf-rating {
  font-size: 12px;
  font-weight: 700;
  color: #f5a623;
}
.sf-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
  margin: 0;
}
.sf-title a:hover { color: var(--primary); }
.sf-vendor-link {
  font-size: 12px;
  color: var(--ink-faint);
  font-weight: 500;
}
.sf-vendor-link:hover { color: var(--primary); }
.sf-row-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 4px;
}
.sf-price-box {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.sf-price-box del {
  font-size: 11px;
  color: var(--ink-faint);
}
.sf-price-box strong {
  font-size: 14px;
  font-weight: 800;
}
.sf-act {
  display: flex;
  align-items: center;
  gap: 8px;
}
.sf-stock {
  font-size: 11px;
  color: var(--red);
  font-weight: 600;
}
.sf-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-light) !important;
  color: var(--primary) !important;
  border: none !important;
  border-radius: var(--r-pill) !important;
  padding: 8px 14px !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
  min-height: auto !important;
  white-space: nowrap;
  transition: var(--dur) var(--ease);
}
.sf-add:hover {
  background: var(--primary) !important;
  color: #fff !important;
}
.sf-empty {
  padding: 24px;
  text-align: center;
  color: var(--ink-soft);
  font-size: 14px;
}

/* Hide old Vepo hero on front when sf-home present */
body.home .hero,
body.home .section-cats,
body.home .section-vendors,
body.home .section-products {
  display: none;
}

/* Location bar inside sf-topbar */
.sf-topbar .location-bar {
  max-width: none;
  flex: 1;
  background: transparent;
  border: none;
  padding: 4px 0;
  font-size: 13.5px;
}

@media (min-width: 768px) {
  .sf-card {
    max-width: 100%;
  }
  .sf-product-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
}
@media (min-width: 1100px) {
  .sf-product-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================================
   APP SHELL — max ~720px like Snappfood mobile web
   ============================================================ */
html, body.sf-app {
  background: #e8e8e8 !important;
  margin: 0;
  padding: 0;
}
body.sf-app #page.sf-app-shell,
body.sf-app .sf-app-shell {
  max-width: 720px;
  margin: 0 auto;
  background: #f7f7f7;
  min-height: 100vh;
  position: relative;
  box-shadow: 0 0 40px rgba(0,0,0,.08);
}

/* Hide classic Vepo chrome completely */
body.sf-app .topbar,
body.sf-app header.site,
body.sf-app footer[role="contentinfo"],
body.sf-app .mobile-drawer,
body.sf-app .burger {
  display: none !important;
}

body.sf-app .container {
  max-width: 100%;
  padding-left: 16px;
  padding-right: 16px;
}

/* Bottom nav always visible on sf-app */
body.sf-app .mobile-bottom-nav,
body.sf-app .sf-bottom-nav {
  display: flex !important;
  max-width: 720px;
  left: 50%;
  transform: translateX(-50%);
  right: auto;
  width: 100%;
}

.sf-bottom-nav a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 4px 6px;
  font-size: 11px;
  font-weight: 600;
  color: #9aa39c;
}
.sf-bottom-nav a.active {
  color: #ff00a8; /* snappfood pink-ish for account accent - use primary green for brand */
  color: var(--primary);
}
.sf-bottom-nav a svg {
  width: 24px;
  height: 24px;
}

/* Location bar style closer to Snappfood */
.location-bar {
  flex-direction: column;
  align-items: flex-start !important;
  gap: 2px !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  max-width: none !important;
}
.location-bar > svg:first-child { display: none; }
.location-bar .loc-text {
  font-size: 12px;
  color: var(--ink-soft);
  font-weight: 500;
}
/* "موقعیت انتخابی" label via ::before on button - handled in HTML if needed */

.sf-topbar .sf-topbar-inner {
  align-items: flex-start;
}
.sf-topbar .location-bar {
  order: 1;
  flex: 1;
}

/* Category grid more like Snappfood rounded squares */
.sf-cat-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: #f5f5f5;
  border: none;
  box-shadow: none;
}
.sf-cat-chip {
  min-width: 72px;
  font-size: 12px;
  font-weight: 600;
}

/* Vendor cards horizontal store style */
.sf-vendors {
  background: transparent;
  padding: 8px 0 16px;
}
.sf-vendor-card {
  flex: 0 0 140px;
  border-radius: 14px;
  border: none;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
  padding: 12px;
  text-align: right;
}
.sf-vendor-avatar {
  width: 48px;
  height: 48px;
  margin: 0 0 8px auto;
}

/* Product cards */
.sf-products {
  background: transparent;
  padding-top: 4px;
}
.sf-card {
  border: none;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
  border-radius: 14px;
  background: #fff;
}

/* Safe area for bottom nav */
body.sf-app .sf-home,
body.sf-app .seller-dashboard,
body.sf-app .vendor-store-page,
body.sf-app .acc-dashboard,
body.sf-app .woocommerce-account {
  padding-bottom: 90px !important;
}

/* My account page clean */
body.sf-app .woocommerce-account .woocommerce-MyAccount-navigation {
  display: none; /* use our dashboard UI instead */
}
body.sf-app .myaccount-container {
  padding: 16px;
  max-width: 720px;
}

@media (max-width: 720px) {
  body.sf-app {
    background: #f7f7f7 !important;
  }
  body.sf-app #page.sf-app-shell {
    box-shadow: none;
  }
  body.sf-app .mobile-bottom-nav {
    left: 0;
    transform: none;
    max-width: none;
  }
}

.location-bar .loc-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 4px;
}
.location-bar .loc-text {
  font-size: 11.5px !important;
  color: var(--ink-soft) !important;
  font-weight: 500 !important;
}


/* Category icon images */
.sf-cat-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 18px;
}

/* Snappfood Account page */
.sf-account {
  padding: 16px 16px 100px;
  max-width: 720px;
  margin: 0 auto;
  background: #f7f7f7;
  min-height: 60vh;
}
.sf-acc-header {
  background: #fff;
  border-radius: 0 0 16px 16px;
  padding: 20px 16px;
  margin: -16px -16px 16px;
}
.sf-acc-user {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.sf-acc-user h1 {
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 4px;
}
.sf-acc-phone {
  font-size: 13px;
  color: var(--ink-soft);
  direction: ltr;
  display: inline-block;
}
.sf-acc-edit {
  font-size: 13px;
  font-weight: 700;
  color: #e91e8c;
  white-space: nowrap;
}
.sf-acc-menu {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,.05);
}
.sf-acc-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 16px;
  border-bottom: 1px solid #f0f0f0;
  color: var(--ink);
  transition: background .2s;
}
.sf-acc-item:last-child { border-bottom: none; }
.sf-acc-item:hover { background: #fafafa; }
.sf-acc-item-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  flex-shrink: 0;
}
.sf-acc-item-label {
  flex: 1;
  font-size: 14.5px;
  font-weight: 600;
}
.sf-acc-badge {
  font-size: 12px;
  font-weight: 700;
  color: #e91e8c;
}
.sf-acc-chevron { color: #ccc; flex-shrink: 0; }
.sf-acc-item.is-logout { color: #e8374b; }
.sf-acc-item.is-logout .sf-acc-item-icon {
  background: #fef2f3;
  color: #e8374b;
}

.sf-vendor-box {
  margin-top: 16px;
  background: #fff;
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 1px 4px rgba(0,0,0,.05);
}
.sf-vendor-box h3 {
  font-size: 15px;
  font-weight: 800;
  margin: 0 0 6px;
}
.sf-vendor-box p {
  font-size: 13px;
  color: var(--ink-soft);
  margin: 0 0 12px;
}
.sf-vendor-box input,
.sf-vendor-box textarea {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 11px 14px;
  font-family: inherit;
  font-size: 14px;
  margin-bottom: 10px;
  outline: none;
}
.sf-vendor-box.pending {
  background: #fff8e6;
  color: #c47d00;
  font-weight: 700;
  text-align: center;
}
.sf-vendor-box.approved {
  background: var(--primary-light);
  color: var(--primary-dark);
  font-weight: 700;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

/* Hide default WC nav on account when using custom UI */
body.sf-app .woocommerce-MyAccount-navigation { display: none !important; }
body.sf-app .woocommerce-account .woocommerce {
  max-width: 720px;
  margin: 0 auto;
}
body.sf-app .myaccount-container { padding: 0 !important; }

/* Meta row on product cards */
.sf-meta-row {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 12px;
  color: var(--ink-soft);
}
.sf-prep::before {
  content: "⏱ ";
}
.sf-view {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-light);
  padding: 8px 14px;
  border-radius: 999px;
}

/* Bottom sheet modal */
.sf-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.sf-modal[hidden] { display: none !important; }
.sf-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.4);
}
.sf-modal-sheet {
  position: relative;
  background: #fff;
  width: 100%;
  max-width: 720px;
  border-radius: 20px 20px 0 0;
  padding: 12px 18px 28px;
  max-height: 85vh;
  overflow-y: auto;
  animation: fadeUp .3s ease;
}
.sf-modal-handle {
  width: 40px;
  height: 4px;
  background: #ddd;
  border-radius: 4px;
  margin: 0 auto 12px;
}
.sf-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}
.sf-modal-head h3 {
  font-size: 16px;
  font-weight: 800;
  margin: 0;
}
.sf-modal-sub {
  font-size: 12px;
  color: var(--ink-faint);
  margin-bottom: 2px;
}
.sf-modal-x {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f5f5f5;
  font-size: 22px;
  line-height: 1;
  border: none;
  cursor: pointer;
}
.sf-modal-hint {
  font-size: 14px;
  color: var(--ink-soft);
  text-align: center;
  padding: 20px 0;
}
.sf-addon-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 16px;
}
.sf-addon-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 4px;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
}
.sf-addon-name { flex: 1; font-size: 14px; font-weight: 600; }
.sf-addon-price { font-size: 13px; color: var(--ink-soft); }
.sf-addon-confirm { width: 100%; height: 50px; font-size: 15px; border-radius: 14px; }

.sf-stars-input {
  display: flex;
  gap: 6px;
  direction: ltr;
  justify-content: flex-end;
}
.sf-stars-input button {
  background: none;
  border: none;
  font-size: 28px;
  color: #ddd;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}
.sf-stars-input button.on { color: #f5a623; }

.sf-modal-sheet input[type=text],
.sf-modal-sheet textarea {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 14px;
  margin-top: 6px;
}
.sf-modal-sheet label {
  font-size: 13px;
  font-weight: 700;
}

/* Clean selects in seller form */
.sd-form select {
  width: 100%;
  height: 48px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 0 14px;
  font-family: inherit;
  font-size: 14px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23999' stroke-width='1.5' fill='none'/%3E%3C/svg%3E") no-repeat left 14px center;
  appearance: none;
  -webkit-appearance: none;
  margin-bottom: 14px;
  outline: none;
}
.sd-form select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}
.sd-form label {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  margin-bottom: 6px;
}
.sf-deliv-home {
  font-size: 11px;
  background: #f0f0f0;
  padding: 2px 8px;
  border-radius: 6px;
  color: var(--ink-soft);
}

/* Hide leftover single product chrome from old theme */
body.single-product .pd-layout,
body.single-product .pd-tabs,
body.single-product .pd-sidebar,
body.single-product .pd-compose,
body.single-product .pd-perf {
  display: none !important;
}

/* Delivery status card — seller dashboard */
.sd-delivery-card {
  background: #fff;
  border-radius: 20px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  border: 2px solid #e8e8e8;
}
.sd-delivery-card.needs-set {
  border-color: var(--primary);
  box-shadow: 0 4px 20px rgba(0,166,81,.12);
}
.sd-delivery-card.is-saved {
  border-color: #c8e6d0;
}
.sd-delivery-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
  gap: 12px;
}
.sd-delivery-head h3 {
  font-size: 16px;
  font-weight: 800;
  margin: 0 0 4px;
}
.sd-delivery-head p {
  font-size: 13px;
  color: var(--ink-soft);
  margin: 0;
}
.sd-delivery-badge {
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  white-space: nowrap;
}
.sd-delivery-modes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}
.sd-mode {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 12px;
  border: 1.5px solid #e8e8e8;
  border-radius: 14px;
  cursor: pointer;
  transition: .2s;
  position: relative;
}
.sd-mode input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.sd-mode.active,
.sd-mode:has(input:checked) {
  border-color: var(--primary);
  background: var(--primary-light);
}
.sd-mode-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
}
.sd-mode-desc {
  font-size: 11.5px;
  color: var(--ink-soft);
}
.sd-delivery-fee-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}
.sd-delivery-fee-row label {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
  display: block;
}
.sd-delivery-fee-row input[type=number] {
  width: 100%;
  height: 48px;
  border: 1.5px solid #e8e8e8;
  border-radius: 12px;
  padding: 0 14px;
  font-family: inherit;
  font-size: 14px;
}
.sd-cod-check {
  display: flex !important;
  align-items: center;
  gap: 8px;
  font-weight: 600 !important;
  font-size: 13.5px !important;
  padding: 12px;
  background: #f8f8f8;
  border-radius: 12px;
  cursor: pointer;
}
.sd-cod-check input {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
}
.sd-delivery-save {
  width: 100%;
  height: 50px;
  border-radius: 14px;
  font-size: 15px;
}

.sf-empty-area {
  text-align: center;
  padding: 48px 24px;
  background: #fff;
  border-radius: 20px;
  margin: 12px 0;
}
.sf-empty-icon { font-size: 40px; margin-bottom: 12px; }
.sf-empty-area h3 {
  font-size: 16px;
  font-weight: 800;
  margin: 0 0 8px;
}
.sf-empty-area p {
  font-size: 13.5px;
  color: var(--ink-soft);
  margin: 0 0 16px;
  line-height: 1.6;
}

/* Radio active toggle helper */
.sd-mode input:checked + .sd-mode-title {
  color: var(--primary-dark);
}

/* Cart & Checkout: action bar above bottom nav, hide nav on these pages */
body.woocommerce-cart .mobile-bottom-nav,
body.woocommerce-cart .sf-bottom-nav,
body.woocommerce-checkout .mobile-bottom-nav,
body.woocommerce-checkout .sf-bottom-nav {
  display: none !important;
}
body.woocommerce-cart .sf-cart-footer,
body.woocommerce-checkout .sf-ck-footer {
  bottom: 0 !important;
  z-index: 300 !important;
}
body.woocommerce-cart .sf-topbar,
body.woocommerce-checkout .sf-topbar {
  display: none !important;
}

/* Payment methods visible */
.sf-ck-payments {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
.sf-ck-payments li {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 14px 0 !important;
  border-bottom: 1px solid #f0f0f0 !important;
}
.sf-ck-payments input.input-radio {
  width: 18px;
  height: 18px;
  accent-color: var(--primary, #00a651);
}
.sf-ck-payments label {
  flex: 1;
  font-size: 14px !important;
  font-weight: 700 !important;
  cursor: pointer;
}
.sf-ck-payments .payment_box {
  width: 100%;
  margin: 8px 0 0 !important;
}

/* ===== Snappfood header exact ===== */
.sf-topbar {
  background: var(--sf-header-bg, #fff) !important;
  padding: 10px 0 12px !important;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: none !important;
  box-shadow: none !important;
}
.sf-topbar .container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 16px;
}
.sf-topbar-inner {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px !important;
}
.sf-addr-btn,
.sf-topbar .location-bar.sf-addr-btn {
  display: inline-flex !important;
  align-items: center;
  gap: 4px;
  background: var(--sf-addr-bg, #FFE8EC) !important;
  color: var(--sf-addr-text, #E8374B) !important;
  border: none !important;
  border-radius: 999px !important;
  padding: 8px 14px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  font-family: inherit;
  cursor: pointer;
  box-shadow: none !important;
  max-width: 70%;
}
.sf-addr-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sf-addr-chevron { flex-shrink: 0; }
.sf-cart-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
  position: relative;
}
.sf-cart-badge {
  position: absolute;
  top: 2px;
  left: 2px;
  background: var(--sf-pink, #FF4D6D);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  min-width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sf-search-wrap {
  display: flex !important;
  align-items: center;
  gap: 10px;
  background: var(--sf-search-bg, #F5F5F7) !important;
  border-radius: 14px !important;
  padding: 0 14px !important;
  height: 48px !important;
  border: none !important;
}
.sf-search-wrap svg { color: #bbb; }
.sf-search-input {
  flex: 1;
  border: none !important;
  background: transparent !important;
  font-size: 14px !important;
  font-family: inherit;
  outline: none;
  height: 100%;
  text-align: right;
}
.sf-search-input::placeholder {
  color: #c45a7a;
  font-weight: 600;
}

/* Hide old location label styles */
.sf-topbar .loc-label { display: none !important; }
.sf-topbar .location-bar:not(.sf-addr-btn) {
  background: var(--sf-addr-bg, #FFE8EC) !important;
  color: var(--sf-addr-text, #E8374B) !important;
  border-radius: 999px !important;
  padding: 8px 14px !important;
}

/* ===== Header exact Snappfood (screenshot) ===== */
.sf-topbar {
  background: #fff !important;
  padding: 8px 0 12px !important;
  position: sticky;
  top: 0;
  z-index: 100;
  border: none !important;
  box-shadow: 0 1px 0 rgba(0,0,0,.04) !important;
}
.sf-topbar .container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 16px !important;
}
.sf-topbar-inner {
  display: flex !important;
  flex-direction: row-reverse;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px !important;
}
/* Location: title + address under it — NO pink pill */
.sf-loc-btn,
.sf-topbar .location-bar {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-end !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  max-width: calc(100% - 48px);
  cursor: pointer;
  font-family: inherit;
  text-align: right;
}
.sf-loc-title {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 700;
  color: #1a1a1a !important;
  line-height: 1.3;
}
.sf-loc-title svg { color: #1a1a1a; }
.sf-loc-addr {
  display: block;
  font-size: 11.5px;
  font-weight: 500;
  color: #9a9a9a !important;
  margin-top: 2px;
  line-height: 1.4;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sf-topbar .loc-label,
.sf-topbar .loc-text { display: none !important; }
.sf-cart-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #222;
  margin-top: 2px;
}
.sf-search-wrap {
  display: flex !important;
  flex-direction: row-reverse;
  align-items: center;
  gap: 10px;
  background: #F2F2F2 !important;
  border-radius: 12px !important;
  padding: 0 14px !important;
  height: 46px !important;
  border: none !important;
}
.sf-search-wrap svg { color: #b0b0b0; order: 2; }
.sf-search-input {
  flex: 1;
  border: none !important;
  background: transparent !important;
  font-size: 13.5px !important;
  font-family: inherit;
  outline: none;
  text-align: right;
  color: #333;
}
.sf-search-input::placeholder {
  color: #FF2D55;
  font-weight: 700;
  opacity: 1;
}

/* Map modal clickable */
.loc-modal {
  position: fixed !important;
  inset: 0 !important;
  z-index: 99999 !important;
  display: none;
  align-items: flex-end;
  justify-content: center;
  background: rgba(0,0,0,.45);
}
.loc-modal:not([hidden]) {
  display: flex !important;
}
.loc-modal-box {
  background: #fff;
  width: 100%;
  max-width: 720px;
  border-radius: 20px 20px 0 0;
  padding: 16px;
  max-height: 92vh;
  overflow: auto;
  position: relative;
  z-index: 2;
}
.loc-modal-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
}
#vepoMap.loc-map,
#vepoMap {
  pointer-events: auto !important;
  touch-action: none;
  position: relative;
  z-index: 5;
}
.leaflet-container {
  pointer-events: auto !important;
  z-index: 5 !important;
  height: 100% !important;
  width: 100% !important;
}

/* Smaller category icons like Snappfood */
.sf-cat-grid {
  gap: 8px 6px !important;
  padding: 2px 8px 10px !important;
}
.sf-cat-tile-icon {
  border-radius: 14px !important;
  max-width: 64px;
  margin: 0 auto;
}
.sf-cat-tile-icon img {
  width: 58% !important;
  height: 58% !important;
}
.sf-cat-emoji { font-size: 22px !important; }
.sf-cat-tile-name {
  font-size: 11px !important;
  font-weight: 600 !important;
}

/* ===== My Account full layout ===== */
.sf-myaccount {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 0 100px;
  min-height: 70vh;
  background: #f5f5f7;
}
.sf-acc-subhead {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: #fff;
  font-weight: 800;
  font-size: 15px;
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid #f0f0f0;
}
.sf-acc-back {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sf-myaccount-content {
  padding: 12px 16px;
}
.sf-account {
  max-width: 720px;
  margin: 0 auto;
}
.sf-acc-header {
  background: #fff;
  border-radius: 16px;
  padding: 18px 16px;
  margin-bottom: 12px;
}
.sf-acc-user {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.sf-acc-user h1 {
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 4px;
}
.sf-acc-phone {
  font-size: 13px;
  color: #888;
}
.sf-acc-edit {
  font-size: 13px;
  font-weight: 700;
  color: var(--sf-pink, #FF4D6D);
  white-space: nowrap;
}
.sf-acc-menu {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 12px;
}
.sf-acc-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid #f5f5f5;
  text-decoration: none;
  color: #1a1a1a;
}
.sf-acc-item:last-child { border-bottom: none; }
.sf-acc-item-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #f5f5f7;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #444;
  flex-shrink: 0;
}
.sf-acc-item-label {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
}
.sf-acc-chevron { color: #ccc; flex-shrink: 0; }
.sf-acc-item.is-logout { color: #e8374b; }
.sf-acc-item.is-logout .sf-acc-item-icon { background: #fef2f3; color: #e8374b; }
.sf-acc-badge {
  background: #ffe8ec;
  color: #e8374b;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 8px;
}
.sf-vendor-box {
  background: #fff;
  border-radius: 16px;
  padding: 18px 16px;
  margin-top: 12px;
}
.sf-vendor-box h3 { font-size: 15px; font-weight: 800; margin: 0 0 8px; }
.sf-vendor-box p { font-size: 13px; color: #666; margin: 0 0 12px; line-height: 1.6; }
.sf-vendor-box input,
.sf-vendor-box textarea {
  width: 100%;
  border: 1.5px solid #eee;
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 10px;
  font-family: inherit;
  font-size: 13.5px;
  box-sizing: border-box;
}
.sf-vendor-box.approved {
  background: #e8f8ef;
  color: #0a7a3e;
  font-weight: 700;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}
.sf-vendor-box.pending {
  background: #fff8e6;
  color: #b45309;
  font-weight: 600;
}
/* Hide default WC nav */
body.woocommerce-account .woocommerce-MyAccount-navigation,
.sf-myaccount .woocommerce-MyAccount-navigation {
  display: none !important;
}
body.woocommerce-account .woocommerce-MyAccount-content {
  width: 100% !important;
  float: none !important;
}
.sf-myaccount .woocommerce-orders-table,
.sf-myaccount .woocommerce-table {
  width: 100%;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  border-collapse: collapse;
}
.sf-myaccount .woocommerce-orders-table th,
.sf-myaccount .woocommerce-orders-table td {
  padding: 12px;
  font-size: 13px;
  border-bottom: 1px solid #f0f0f0;
  text-align: right;
}
.sf-myaccount .woocommerce-EditAccountForm,
.sf-myaccount .woocommerce-Address {
  background: #fff;
  border-radius: 16px;
  padding: 16px;
}
.sf-myaccount .woocommerce-EditAccountForm input.input-text,
.sf-myaccount .woocommerce-Address input.input-text {
  width: 100%;
  height: 46px;
  border: 1.5px solid #eee;
  border-radius: 12px;
  padding: 0 12px;
  margin-bottom: 10px;
  font-family: inherit;
}
.sf-myaccount .button,
.sf-myaccount button[type=submit] {
  background: var(--sf-btn, var(--primary, #00a651));
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 12px 20px;
  font-weight: 700;
  font-family: inherit;
}
/* Hide broken top location on account if conflicting */
body.woocommerce-account .sf-topbar { display: none !important; }
