/**
 * Restaurant Menu Price Tables
 */

.fmj-menu-table-wrapper {
  margin: 30px 0;
}

/* Controls Bar */
.fmj-menu-controls-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  background-color: var(--fmj-bg-cream);
  border: 1px solid var(--fmj-border-warm);
  border-radius: var(--fmj-radius-md);
  padding: 14px 18px;
  margin-bottom: 24px;
}

.fmj-menu-controls-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.fmj-menu-verified-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: #ffffff;
  color: var(--fmj-primary);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 5px 12px;
  border-radius: var(--fmj-radius-full);
  border: 1px solid var(--fmj-border-warm);
}

.fmj-menu-count-pill {
  font-size: 0.82rem;
  color: var(--fmj-text-muted);
  font-weight: 600;
}

.fmj-menu-controls-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.fmj-in-menu-search input {
  height: 38px;
  padding: 0 14px;
  background: #ffffff;
  border: 1px solid var(--fmj-border-warm-dark);
  border-radius: var(--fmj-radius-sm);
  font-size: 0.85rem;
  outline: none;
}

.fmj-in-menu-search input:focus {
  border-color: var(--fmj-primary);
}

.fmj-view-toggle {
  display: flex;
  border: 1px solid var(--fmj-border-warm-dark);
  border-radius: var(--fmj-radius-sm);
  overflow: hidden;
  background: #ffffff;
}

.fmj-view-btn {
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fmj-text-muted);
  transition: all var(--fmj-transition-fast);
}

.fmj-view-btn.active {
  background-color: var(--fmj-primary);
  color: #ffffff;
}

/* Category Jump Bar */
.fmj-menu-category-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  border: 1px solid var(--fmj-border-light);
  border-radius: var(--fmj-radius-md);
  padding: 12px 18px;
  margin-bottom: 32px;
  position: sticky;
  top: 70px;
  z-index: 40;
  box-shadow: var(--fmj-shadow-sm);
}

.fmj-cat-nav-title {
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  color: var(--fmj-text-muted);
  white-space: nowrap;
}

.fmj-cat-nav-scroll {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}
.fmj-cat-nav-scroll::-webkit-scrollbar {
  display: none;
}

.fmj-cat-nav-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--fmj-text-body);
  background-color: var(--fmj-bg-gray-100);
  padding: 6px 14px;
  border-radius: var(--fmj-radius-full);
  transition: all var(--fmj-transition-fast);
}

.fmj-cat-nav-link:hover,
.fmj-cat-nav-link.active {
  background-color: var(--fmj-primary);
  color: #ffffff;
}

/* Sections & Tables */
.fmj-menu-section {
  margin-bottom: 48px;
}

.fmj-section-header {
  display: flex;
  align-items: baseline;
  gap: 12px;
  border-bottom: 2px solid var(--fmj-primary);
  padding-bottom: 10px;
  margin-bottom: 20px;
}

.fmj-section-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--fmj-text-main);
}

.fmj-section-count {
  font-size: 0.82rem;
  color: var(--fmj-text-muted);
  font-weight: 500;
}

/* Table Format */
.fmj-menu-table-responsive {
  display: none;
  background: #ffffff;
  border: 1px solid var(--fmj-border-light);
  border-radius: var(--fmj-radius-md);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  box-shadow: var(--fmj-shadow-sm);
}

.view-table .fmj-menu-table-responsive {
  display: block;
}

.view-table .fmj-menu-cards-grid {
  display: none;
}

.fmj-price-table {
  width: 100%;
}

.fmj-price-table th {
  background-color: var(--fmj-bg-gray-50);
  font-family: var(--fmj-font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--fmj-text-muted);
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--fmj-border-light);
}

.fmj-price-table td {
  padding: 14px 18px;
  font-size: 0.88rem;
  border-bottom: 1px solid var(--fmj-border-subtle);
  vertical-align: middle;
}

.fmj-price-table tr:hover td {
  background-color: var(--fmj-bg-gray-50);
}

.fmj-td-price {
  white-space: nowrap;
}

.fmj-table-price-num {
  font-size: 1rem;
  font-weight: 800;
  color: var(--fmj-primary);
}

.fmj-table-pop-badge {
  background-color: var(--fmj-primary-light);
  color: var(--fmj-primary);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--fmj-radius-full);
  margin-left: 8px;
}

/* Cards Grid Format */
.fmj-menu-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.fmj-menu-item-card {
  background: #ffffff;
  border: 1px solid var(--fmj-border-light);
  border-radius: var(--fmj-radius-md);
  overflow: hidden;
  box-shadow: var(--fmj-shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all var(--fmj-transition);
}

.fmj-menu-item-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--fmj-shadow-md);
  border-color: rgba(166, 25, 46, 0.3);
}

.fmj-card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  background-color: var(--fmj-bg-gray-100);
  overflow: hidden;
}

.fmj-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--fmj-transition-smooth);
}

.fmj-menu-item-card:hover .fmj-card-media img {
  transform: scale(1.06);
}

.fmj-card-placeholder-img {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #cbd5e1;
}

.fmj-popular-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: var(--fmj-primary);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: var(--fmj-radius-full);
  box-shadow: var(--fmj-shadow-sm);
}

.fmj-price-tag {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background-color: #ffffff;
  color: var(--fmj-primary);
  font-weight: 800;
  font-size: 0.95rem;
  padding: 4px 10px;
  border-radius: var(--fmj-radius-sm);
  box-shadow: var(--fmj-shadow-md);
}

.fmj-card-content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.fmj-item-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--fmj-text-main);
  margin-bottom: 6px;
  line-height: 1.35;
}

.fmj-item-desc {
  font-size: 0.82rem;
  color: var(--fmj-text-muted);
  line-height: 1.5;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.fmj-item-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--fmj-text-muted);
}
