/* QR Restaurant Manager — Elementor Menu Widget */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600&family=Lato:wght@300;400;700&display=swap');

/* ── Section Title ────────────────────────────────────────────────────────── */
.qrm-el-section-title {
  font-family:     'Playfair Display', Georgia, serif;
  font-size:       clamp(20px, 4vw, 28px);
  font-weight:     600;
  letter-spacing:  -0.01em;
  margin:          32px 0 20px;
  padding-bottom:  12px;
  border-bottom:   2px solid currentColor;
  opacity:         0.9;
}

/* ── Menu Container ───────────────────────────────────────────────────────── */
.qrm-el-menu {
  font-family: 'Lato', sans-serif;
  width:       100%;
}

/* ── List Layout ──────────────────────────────────────────────────────────── */
.qrm-el-layout-list .qrm-el-item {
  display:       flex;
  flex-direction: column;
  padding:       16px 0;
  border-bottom: 1px solid #eee;
}
.qrm-el-layout-list .qrm-el-item:last-child {
  border-bottom: none;
}

/* ── Card Layout ──────────────────────────────────────────────────────────── */
.qrm-el-layout-card {
  display:               grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap:                   20px;
}
.qrm-el-layout-card .qrm-el-item {
  border:        1px solid #eee;
  border-radius: 12px;
  overflow:      hidden;
  transition:    box-shadow 0.2s;
}
.qrm-el-layout-card .qrm-el-item:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
.qrm-el-img {
  width:       100%;
  height:      180px;
  object-fit:  cover;
  display:     block;
}
.qrm-el-layout-card .qrm-el-body {
  padding: 14px 16px 16px;
}
.qrm-el-layout-list .qrm-el-body {
  width: 100%;
}

/* ── Item Header ──────────────────────────────────────────────────────────── */
.qrm-el-header {
  display:     flex;
  align-items: baseline;
  flex-wrap:   wrap;
  gap:         8px;
  margin-bottom: 6px;
}

.qrm-el-name {
  font-family:  'Playfair Display', Georgia, serif;
  font-size:    16px;
  font-weight:  600;
  flex:         1;
  min-width:    140px;
  line-height:  1.3;
}

.qrm-el-price {
  font-family:   'Lato', sans-serif;
  font-size:     15px;
  font-weight:   700;
  color:         #e94560;
  white-space:   nowrap;
  margin-left:   auto;
}

/* ── Description ─────────────────────────────────────────────────────────── */
.qrm-el-desc {
  font-size:   13px;
  font-weight: 300;
  line-height: 1.5;
  color:       #666;
  margin:      0;
}

/* ── Allergens ────────────────────────────────────────────────────────────── */
.qrm-el-allergens {
  font-size:   11px;
  color:       #999;
  margin:      6px 0 0;
  font-style:  italic;
}

/* ── Badges ───────────────────────────────────────────────────────────────── */
.qrm-el-badge {
  display:       inline-flex;
  align-items:   center;
  font-size:     11px;
  font-weight:   700;
  padding:       2px 8px;
  border-radius: 50px;
  white-space:   nowrap;
  line-height:   1.6;
}

.qrm-el-badge--new          { background: #dbeafe; color: #1d4ed8; }
.qrm-el-badge--popular      { background: #fee2e2; color: #b91c1c; }
.qrm-el-badge--vegan        { background: #dcfce7; color: #15803d; }
.qrm-el-badge--vegetarian   { background: #d1fae5; color: #065f46; }
.qrm-el-badge--spicy        { background: #ffedd5; color: #c2410c; }
.qrm-el-badge--gluten_free  { background: #fef9c3; color: #854d0e; }
.qrm-el-badge--chef         { background: #f3e8ff; color: #7e22ce; }

/* ── Hidden items (from manager dashboard toggle) ────────────────────────── */
.qrm-el-item[style*="display: none"],
.qrm-el-item[style*="display:none"] {
  /* already hidden by inline CSS from QRM_Menu_Visibility */
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 480px) {
  .qrm-el-layout-card {
    grid-template-columns: 1fr;
  }
  .qrm-el-name {
    font-size: 15px;
  }
}
