/* Food front — explore / restaurant */

.fd-plugin {
  --fd-ink: #0f172a;
  --fd-muted: #64748b;
  --fd-border: #e2e8f0;
  --fd-soft: #f8fafc;
  --fd-accent: #c2410c;
  --fd-accent-soft: #ffedd5;
  color: var(--fd-ink);
}

.fd-topbar h1 { font-weight: 700; }

.fd-filters {
  margin-bottom: 16px;
  padding: 14px;
  border: 1px solid var(--fd-border);
  border-radius: 12px;
  background: var(--fd-soft);
}

.fd-filters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
  align-items: center;
}

.fd-check {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: 0.9rem;
  color: var(--fd-muted);
}

.fd-cuisine-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.fd-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--fd-border);
  background: #fff;
  color: var(--fd-ink) !important;
  text-decoration: none !important;
  font-size: 0.85rem;
  font-weight: 600;
}

.fd-chip.is-active,
.fd-chip:hover {
  background: var(--fd-accent-soft);
  border-color: #fdba74;
  color: #9a3412 !important;
}

.fd-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}

.fd-card {
  display: block;
  border: 1px solid var(--fd-border);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  text-decoration: none !important;
  color: inherit !important;
  transition: box-shadow .15s ease, transform .15s ease;
}

.fd-card:hover {
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.fd-card-media {
  height: 130px;
  background: var(--fd-soft);
}

.fd-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fd-card-placeholder {
  height: 100%;
  min-height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fb923c;
  font-size: 2rem;
  background: linear-gradient(135deg, #fff7ed, #ffedd5);
}

.fd-card-body { padding: 12px 14px 14px; }
.fd-card-body h3 { margin: 0 0 4px; font-size: 1.05rem; font-weight: 700; }
.fd-meta { margin: 0 0 6px; color: var(--fd-muted); font-size: 0.85rem; }
.fd-price { margin: 0; font-size: 0.9rem; }
.fd-price strong { color: var(--fd-accent); }

.fd-pill {
  display: inline-block;
  padding: 2px 8px;
  margin-right: 4px;
  border-radius: 999px;
  background: var(--fd-soft);
  border: 1px solid var(--fd-border);
  font-size: 0.75rem;
  font-weight: 600;
}

.fd-rating { color: #b45309; font-weight: 700; margin-left: 4px; }

.fd-empty {
  grid-column: 1 / -1;
  padding: 28px 18px;
  text-align: center;
  border: 1px dashed var(--fd-border);
  border-radius: 12px;
  background: var(--fd-soft);
  color: var(--fd-muted);
}

.fd-restaurant-hero {
  display: flex;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--fd-border);
  border-radius: 14px;
  background: #fff;
}

.fd-restaurant-hero-icon {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #fff7ed, #ffedd5);
  color: #ea580c;
  font-size: 1.6rem;
  flex-shrink: 0;
}

.fd-menu-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--fd-border);
  border-radius: 10px;
  margin-bottom: 8px;
  background: #fff;
  text-decoration: none !important;
  color: inherit !important;
}

.fd-menu-item:hover { border-color: #fdba74; background: #fffbeb; }
.fd-menu-item-price { font-weight: 700; color: var(--fd-accent); white-space: nowrap; }

.fd-item-card {
  display: flex;
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--fd-border);
  border-radius: 14px;
  background: #fff;
}

.fd-item-media {
  width: 120px;
  min-height: 120px;
  border-radius: 12px;
  flex-shrink: 0;
}

.fd-side-nav .nav-link {
  padding: 10px 14px;
  color: var(--fd-ink) !important;
  border-bottom: 1px solid var(--fd-border);
}

.fd-side-nav .nav-link.active,
.fd-side-nav .nav-link:hover {
  background: var(--fd-accent-soft);
  color: #9a3412 !important;
}

@media (max-width: 767px) {
  .fd-restaurant-hero,
  .fd-item-card { flex-direction: column; }
}
